@visitscotland/component-library 4.3.7 → 4.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,26 +5,26 @@
5
5
  * Released under MIT license <https://lodash.com/license>
6
6
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
7
7
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
8
- */lodash.exports;(function(e,r){(function(){var t,n="4.17.21",a=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",p=1,v=2,m=4,g=1,_=2,S=1,C=2,w=4,E=8,$=16,T=32,B=64,R=128,L=256,te=512,oe=30,Q="...",ce=800,Y=16,ne=1,ge=2,me=3,de=1/0,A=9007199254740991,F=17976931348623157e292,j=NaN,Z=4294967295,fe=Z-1,O=Z>>>1,I=[["ary",R],["bind",S],["bindKey",C],["curry",E],["curryRight",$],["flip",te],["partial",T],["partialRight",B],["rearg",L]],U="[object Arguments]",ae="[object Array]",ee="[object AsyncFunction]",se="[object Boolean]",le="[object Date]",ie="[object DOMException]",ve="[object Error]",Ve="[object Function]",Ae="[object GeneratorFunction]",Ee="[object Map]",Pe="[object Number]",Qe="[object Null]",He="[object Object]",et="[object Promise]",z="[object Proxy]",ht="[object RegExp]",Ue="[object Set]",mt="[object String]",at="[object Symbol]",ur="[object Undefined]",Nt="[object WeakMap]",Xt="[object WeakSet]",jt="[object ArrayBuffer]",cr="[object DataView]",Nn="[object Float32Array]",Tn="[object Float64Array]",An="[object Int8Array]",Dn="[object Int16Array]",Bn="[object Int32Array]",On="[object Uint8Array]",Pn="[object Uint8ClampedArray]",Ln="[object Uint16Array]",Rn="[object Uint32Array]",Oi=/\b__p \+= '';/g,Pi=/\b(__p \+=) '' \+/g,Li=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Xa=/&(?:amp|lt|gt|quot|#39);/g,eo=/[&<>"']/g,Ri=RegExp(Xa.source),Ii=RegExp(eo.source),Mi=/<%-([\s\S]+?)%>/g,Fi=/<%([\s\S]+?)%>/g,to=/<%=([\s\S]+?)%>/g,qi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ui=/^\w*$/,ji=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,In=/[\\^$.*+?()[\]{}|]/g,Wi=RegExp(In.source),Mn=/^\s+/,Hi=/\s/,zi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Gi=/\{\n\/\* \[wrapped with (.+)\] \*/,Ki=/,? & /,Ji=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yi=/[()=,{}\[\]\/\s]/,Qi=/\\(\\)?/g,Zi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ro=/\w*$/,Xi=/^[-+]0x[0-9a-f]+$/i,el=/^0b[01]+$/i,tl=/^\[object .+?Constructor\]$/,rl=/^0o[0-7]+$/i,nl=/^(?:0|[1-9]\d*)$/,al=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Fr=/($^)/,ol=/['\n\r\u2028\u2029\\]/g,qr="\\ud800-\\udfff",sl="\\u0300-\\u036f",il="\\ufe20-\\ufe2f",ll="\\u20d0-\\u20ff",no=sl+il+ll,ao="\\u2700-\\u27bf",oo="a-z\\xdf-\\xf6\\xf8-\\xff",ul="\\xac\\xb1\\xd7\\xf7",cl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dl="\\u2000-\\u206f",fl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",so="A-Z\\xc0-\\xd6\\xd8-\\xde",io="\\ufe0e\\ufe0f",lo=ul+cl+dl+fl,Fn="['’]",pl="["+qr+"]",uo="["+lo+"]",Ur="["+no+"]",co="\\d+",vl="["+ao+"]",fo="["+oo+"]",po="[^"+qr+lo+co+ao+oo+so+"]",qn="\\ud83c[\\udffb-\\udfff]",hl="(?:"+Ur+"|"+qn+")",vo="[^"+qr+"]",Un="(?:\\ud83c[\\udde6-\\uddff]){2}",jn="[\\ud800-\\udbff][\\udc00-\\udfff]",dr="["+so+"]",ho="\\u200d",mo="(?:"+fo+"|"+po+")",ml="(?:"+dr+"|"+po+")",go="(?:"+Fn+"(?:d|ll|m|re|s|t|ve))?",_o="(?:"+Fn+"(?:D|LL|M|RE|S|T|VE))?",yo=hl+"?",bo="["+io+"]?",gl="(?:"+ho+"(?:"+[vo,Un,jn].join("|")+")"+bo+yo+")*",_l="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",So=bo+yo+gl,bl="(?:"+[vl,Un,jn].join("|")+")"+So,Sl="(?:"+[vo+Ur+"?",Ur,Un,jn,pl].join("|")+")",Cl=RegExp(Fn,"g"),wl=RegExp(Ur,"g"),Wn=RegExp(qn+"(?="+qn+")|"+Sl+So,"g"),kl=RegExp([dr+"?"+fo+"+"+go+"(?="+[uo,dr,"$"].join("|")+")",ml+"+"+_o+"(?="+[uo,dr+mo,"$"].join("|")+")",dr+"?"+mo+"+"+go,dr+"+"+_o,yl,_l,co,bl].join("|"),"g"),El=RegExp("["+ho+qr+no+io+"]"),xl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$l=-1,Ie={};Ie[Nn]=Ie[Tn]=Ie[An]=Ie[Dn]=Ie[Bn]=Ie[On]=Ie[Pn]=Ie[Ln]=Ie[Rn]=!0,Ie[U]=Ie[ae]=Ie[jt]=Ie[se]=Ie[cr]=Ie[le]=Ie[ve]=Ie[Ve]=Ie[Ee]=Ie[Pe]=Ie[He]=Ie[ht]=Ie[Ue]=Ie[mt]=Ie[Nt]=!1;var Re={};Re[U]=Re[ae]=Re[jt]=Re[cr]=Re[se]=Re[le]=Re[Nn]=Re[Tn]=Re[An]=Re[Dn]=Re[Bn]=Re[Ee]=Re[Pe]=Re[He]=Re[ht]=Re[Ue]=Re[mt]=Re[at]=Re[On]=Re[Pn]=Re[Ln]=Re[Rn]=!0,Re[ve]=Re[Ve]=Re[Nt]=!1;var Nl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Tl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Al={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Dl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Bl=parseFloat,Ol=parseInt,Co=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Pl=typeof self=="object"&&self&&self.Object===Object&&self,Je=Co||Pl||Function("return this")(),Hn=r&&!r.nodeType&&r,er=Hn&&!0&&e&&!e.nodeType&&e,wo=er&&er.exports===Hn,zn=wo&&Co.process,gt=function(){try{var M=er&&er.require&&er.require("util").types;return M||zn&&zn.binding&&zn.binding("util")}catch{}}(),ko=gt&&gt.isArrayBuffer,Eo=gt&&gt.isDate,xo=gt&&gt.isMap,Vo=gt&&gt.isRegExp,$o=gt&&gt.isSet,No=gt&&gt.isTypedArray;function ut(M,H,W){switch(W.length){case 0:return M.call(H);case 1:return M.call(H,W[0]);case 2:return M.call(H,W[0],W[1]);case 3:return M.call(H,W[0],W[1],W[2])}return M.apply(H,W)}function Ll(M,H,W,pe){for(var Se=-1,De=M==null?0:M.length;++Se<De;){var ze=M[Se];H(pe,ze,W(ze),M)}return pe}function _t(M,H){for(var W=-1,pe=M==null?0:M.length;++W<pe&&H(M[W],W,M)!==!1;);return M}function Rl(M,H){for(var W=M==null?0:M.length;W--&&H(M[W],W,M)!==!1;);return M}function To(M,H){for(var W=-1,pe=M==null?0:M.length;++W<pe;)if(!H(M[W],W,M))return!1;return!0}function Wt(M,H){for(var W=-1,pe=M==null?0:M.length,Se=0,De=[];++W<pe;){var ze=M[W];H(ze,W,M)&&(De[Se++]=ze)}return De}function jr(M,H){var W=M==null?0:M.length;return!!W&&fr(M,H,0)>-1}function Gn(M,H,W){for(var pe=-1,Se=M==null?0:M.length;++pe<Se;)if(W(H,M[pe]))return!0;return!1}function Me(M,H){for(var W=-1,pe=M==null?0:M.length,Se=Array(pe);++W<pe;)Se[W]=H(M[W],W,M);return Se}function Ht(M,H){for(var W=-1,pe=H.length,Se=M.length;++W<pe;)M[Se+W]=H[W];return M}function Kn(M,H,W,pe){var Se=-1,De=M==null?0:M.length;for(pe&&De&&(W=M[++Se]);++Se<De;)W=H(W,M[Se],Se,M);return W}function Il(M,H,W,pe){var Se=M==null?0:M.length;for(pe&&Se&&(W=M[--Se]);Se--;)W=H(W,M[Se],Se,M);return W}function Jn(M,H){for(var W=-1,pe=M==null?0:M.length;++W<pe;)if(H(M[W],W,M))return!0;return!1}var Ml=Qn("length");function Fl(M){return M.split("")}function ql(M){return M.match(Ji)||[]}function Ao(M,H,W){var pe;return W(M,function(Se,De,ze){if(H(Se,De,ze))return pe=De,!1}),pe}function Wr(M,H,W,pe){for(var Se=M.length,De=W+(pe?1:-1);pe?De--:++De<Se;)if(H(M[De],De,M))return De;return-1}function fr(M,H,W){return H===H?Xl(M,H,W):Wr(M,Do,W)}function Ul(M,H,W,pe){for(var Se=W-1,De=M.length;++Se<De;)if(pe(M[Se],H))return Se;return-1}function Do(M){return M!==M}function Bo(M,H){var W=M==null?0:M.length;return W?ta(M,H)/W:j}function Qn(M){return function(H){return H==null?t:H[M]}}function ea(M){return function(H){return M==null?t:M[H]}}function Oo(M,H,W,pe,Se){return Se(M,function(De,ze,Le){W=pe?(pe=!1,De):H(W,De,ze,Le)}),W}function jl(M,H){var W=M.length;for(M.sort(H);W--;)M[W]=M[W].value;return M}function ta(M,H){for(var W,pe=-1,Se=M.length;++pe<Se;){var De=H(M[pe]);De!==t&&(W=W===t?De:W+De)}return W}function ra(M,H){for(var W=-1,pe=Array(M);++W<M;)pe[W]=H(W);return pe}function Wl(M,H){return Me(H,function(W){return[W,M[W]]})}function Po(M){return M&&M.slice(0,Mo(M)+1).replace(Mn,"")}function ct(M){return function(H){return M(H)}}function na(M,H){return Me(H,function(W){return M[W]})}function Er(M,H){return M.has(H)}function Lo(M,H){for(var W=-1,pe=M.length;++W<pe&&fr(H,M[W],0)>-1;);return W}function Ro(M,H){for(var W=M.length;W--&&fr(H,M[W],0)>-1;);return W}function Hl(M,H){for(var W=M.length,pe=0;W--;)M[W]===H&&++pe;return pe}var zl=ea(Nl),Gl=ea(Tl);function Kl(M){return"\\"+Dl[M]}function Jl(M,H){return M==null?t:M[H]}function pr(M){return El.test(M)}function Yl(M){return xl.test(M)}function Ql(M){for(var H,W=[];!(H=M.next()).done;)W.push(H.value);return W}function aa(M){var H=-1,W=Array(M.size);return M.forEach(function(pe,Se){W[++H]=[Se,pe]}),W}function Io(M,H){return function(W){return M(H(W))}}function zt(M,H){for(var W=-1,pe=M.length,Se=0,De=[];++W<pe;){var ze=M[W];(ze===H||ze===f)&&(M[W]=f,De[Se++]=W)}return De}function Hr(M){var H=-1,W=Array(M.size);return M.forEach(function(pe){W[++H]=pe}),W}function Zl(M){var H=-1,W=Array(M.size);return M.forEach(function(pe){W[++H]=[pe,pe]}),W}function Xl(M,H,W){for(var pe=W-1,Se=M.length;++pe<Se;)if(M[pe]===H)return pe;return-1}function eu(M,H,W){for(var pe=W+1;pe--;)if(M[pe]===H)return pe;return pe}function vr(M){return pr(M)?ru(M):Ml(M)}function Et(M){return pr(M)?nu(M):Fl(M)}function Mo(M){for(var H=M.length;H--&&Hi.test(M.charAt(H)););return H}var tu=ea(Al);function ru(M){for(var H=Wn.lastIndex=0;Wn.test(M);)++H;return H}function nu(M){return M.match(Wn)||[]}function au(M){return M.match(kl)||[]}var ou=function M(H){H=H==null?Je:hr.defaults(Je.Object(),H,hr.pick(Je,Vl));var W=H.Array,pe=H.Date,Se=H.Error,De=H.Function,ze=H.Math,Le=H.Object,oa=H.RegExp,su=H.String,yt=H.TypeError,zr=W.prototype,iu=De.prototype,mr=Le.prototype,Gr=H["__core-js_shared__"],Kr=iu.toString,Oe=mr.hasOwnProperty,lu=0,Fo=function(){var s=/[^.]+$/.exec(Gr&&Gr.keys&&Gr.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Jr=mr.toString,uu=Kr.call(Le),cu=Je._,du=oa("^"+Kr.call(Oe).replace(In,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Yr=wo?H.Buffer:t,Gt=H.Symbol,Qr=H.Uint8Array,qo=Yr?Yr.allocUnsafe:t,Zr=Io(Le.getPrototypeOf,Le),Uo=Le.create,jo=mr.propertyIsEnumerable,Xr=zr.splice,Wo=Gt?Gt.isConcatSpreadable:t,xr=Gt?Gt.iterator:t,tr=Gt?Gt.toStringTag:t,en=function(){try{var s=sr(Le,"defineProperty");return s({},"",{}),s}catch{}}(),fu=H.clearTimeout!==Je.clearTimeout&&H.clearTimeout,pu=pe&&pe.now!==Je.Date.now&&pe.now,vu=H.setTimeout!==Je.setTimeout&&H.setTimeout,tn=ze.ceil,rn=ze.floor,sa=Le.getOwnPropertySymbols,hu=Yr?Yr.isBuffer:t,Ho=H.isFinite,mu=zr.join,gu=Io(Le.keys,Le),Ge=ze.max,Ze=ze.min,_u=pe.now,yu=H.parseInt,zo=ze.random,bu=zr.reverse,ia=sr(H,"DataView"),Vr=sr(H,"Map"),la=sr(H,"Promise"),gr=sr(H,"Set"),$r=sr(H,"WeakMap"),Nr=sr(Le,"create"),nn=$r&&new $r,_r={},Su=ir(ia),Cu=ir(Vr),wu=ir(la),ku=ir(gr),Eu=ir($r),an=Gt?Gt.prototype:t,Tr=an?an.valueOf:t,Go=an?an.toString:t;function V(s){if(qe(s)&&!Ce(s)&&!(s instanceof Ne)){if(s instanceof bt)return s;if(Oe.call(s,"__wrapped__"))return Zs(s)}return new bt(s)}var yr=function(){function s(){}return function(u){if(!Fe(u))return{};if(Uo)return Uo(u);s.prototype=u;var h=new s;return s.prototype=t,h}}();function on(){}function bt(s,u){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=t}V.templateSettings={escape:Mi,evaluate:Fi,interpolate:to,variable:"",imports:{_:V}},V.prototype=on.prototype,V.prototype.constructor=V,bt.prototype=yr(on.prototype),bt.prototype.constructor=bt;function Ne(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Z,this.__views__=[]}function xu(){var s=new Ne(this.__wrapped__);return s.__actions__=ot(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=ot(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=ot(this.__views__),s}function Vu(){if(this.__filtered__){var s=new Ne(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function $u(){var s=this.__wrapped__.value(),u=this.__dir__,h=Ce(s),b=u<0,k=h?s.length:0,N=Fc(0,k,this.__views__),D=N.start,P=N.end,q=P-D,G=b?P:D-1,J=this.__iteratees__,X=J.length,ue=0,he=Ze(q,this.__takeCount__);if(!h||!b&&k==q&&he==q)return Ss(s,this.__actions__);var ye=[];e:for(;q--&&ue<he;){G+=u;for(var ke=-1,be=s[G];++ke<X;){var $e=J[ke],Te=$e.iteratee,pt=$e.type,nt=Te(be);if(pt==ge)be=nt;else if(!nt){if(pt==ne)continue e;break e}}ye[ue++]=be}return ye}Ne.prototype=yr(on.prototype),Ne.prototype.constructor=Ne;function rr(s){var u=-1,h=s==null?0:s.length;for(this.clear();++u<h;){var b=s[u];this.set(b[0],b[1])}}function Nu(){this.__data__=Nr?Nr(null):{},this.size=0}function Tu(s){var u=this.has(s)&&delete this.__data__[s];return this.size-=u?1:0,u}function Au(s){var u=this.__data__;if(Nr){var h=u[s];return h===c?t:h}return Oe.call(u,s)?u[s]:t}function Du(s){var u=this.__data__;return Nr?u[s]!==t:Oe.call(u,s)}function Bu(s,u){var h=this.__data__;return this.size+=this.has(s)?0:1,h[s]=Nr&&u===t?c:u,this}rr.prototype.clear=Nu,rr.prototype.delete=Tu,rr.prototype.get=Au,rr.prototype.has=Du,rr.prototype.set=Bu;function Bt(s){var u=-1,h=s==null?0:s.length;for(this.clear();++u<h;){var b=s[u];this.set(b[0],b[1])}}function Ou(){this.__data__=[],this.size=0}function Pu(s){var u=this.__data__,h=sn(u,s);if(h<0)return!1;var b=u.length-1;return h==b?u.pop():Xr.call(u,h,1),--this.size,!0}function Lu(s){var u=this.__data__,h=sn(u,s);return h<0?t:u[h][1]}function Ru(s){return sn(this.__data__,s)>-1}function Iu(s,u){var h=this.__data__,b=sn(h,s);return b<0?(++this.size,h.push([s,u])):h[b][1]=u,this}Bt.prototype.clear=Ou,Bt.prototype.delete=Pu,Bt.prototype.get=Lu,Bt.prototype.has=Ru,Bt.prototype.set=Iu;function Ot(s){var u=-1,h=s==null?0:s.length;for(this.clear();++u<h;){var b=s[u];this.set(b[0],b[1])}}function Mu(){this.size=0,this.__data__={hash:new rr,map:new(Vr||Bt),string:new rr}}function Fu(s){var u=yn(this,s).delete(s);return this.size-=u?1:0,u}function qu(s){return yn(this,s).get(s)}function Uu(s){return yn(this,s).has(s)}function ju(s,u){var h=yn(this,s),b=h.size;return h.set(s,u),this.size+=h.size==b?0:1,this}Ot.prototype.clear=Mu,Ot.prototype.delete=Fu,Ot.prototype.get=qu,Ot.prototype.has=Uu,Ot.prototype.set=ju;function nr(s){var u=-1,h=s==null?0:s.length;for(this.__data__=new Ot;++u<h;)this.add(s[u])}function Wu(s){return this.__data__.set(s,c),this}function Hu(s){return this.__data__.has(s)}nr.prototype.add=nr.prototype.push=Wu,nr.prototype.has=Hu;function xt(s){var u=this.__data__=new Bt(s);this.size=u.size}function zu(){this.__data__=new Bt,this.size=0}function Gu(s){var u=this.__data__,h=u.delete(s);return this.size=u.size,h}function Ku(s){return this.__data__.get(s)}function Ju(s){return this.__data__.has(s)}function Yu(s,u){var h=this.__data__;if(h instanceof Bt){var b=h.__data__;if(!Vr||b.length<a-1)return b.push([s,u]),this.size=++h.size,this;h=this.__data__=new Ot(b)}return h.set(s,u),this.size=h.size,this}xt.prototype.clear=zu,xt.prototype.delete=Gu,xt.prototype.get=Ku,xt.prototype.has=Ju,xt.prototype.set=Yu;function Ko(s,u){var h=Ce(s),b=!h&&lr(s),k=!h&&!b&&Zt(s),N=!h&&!b&&!k&&wr(s),D=h||b||k||N,P=D?ra(s.length,su):[],q=P.length;for(var G in s)(u||Oe.call(s,G))&&!(D&&(G=="length"||k&&(G=="offset"||G=="parent")||N&&(G=="buffer"||G=="byteLength"||G=="byteOffset")||It(G,q)))&&P.push(G);return P}function Jo(s){var u=s.length;return u?s[ya(0,u-1)]:t}function Qu(s,u){return bn(ot(s),ar(u,0,s.length))}function Zu(s){return bn(ot(s))}function ua(s,u,h){(h!==t&&!Vt(s[u],h)||h===t&&!(u in s))&&Pt(s,u,h)}function Ar(s,u,h){var b=s[u];(!(Oe.call(s,u)&&Vt(b,h))||h===t&&!(u in s))&&Pt(s,u,h)}function sn(s,u){for(var h=s.length;h--;)if(Vt(s[h][0],u))return h;return-1}function Xu(s,u,h,b){return Kt(s,function(k,N,D){u(b,k,h(k),D)}),b}function Yo(s,u){return s&&At(u,Ke(u),s)}function ec(s,u){return s&&At(u,it(u),s)}function Pt(s,u,h){u=="__proto__"&&en?en(s,u,{configurable:!0,enumerable:!0,value:h,writable:!0}):s[u]=h}function ca(s,u){for(var h=-1,b=u.length,k=W(b),N=s==null;++h<b;)k[h]=N?t:Wa(s,u[h]);return k}function ar(s,u,h){return s===s&&(h!==t&&(s=s<=h?s:h),u!==t&&(s=s>=u?s:u)),s}function St(s,u,h,b,k,N){var D,P=u&p,q=u&v,G=u&m;if(h&&(D=k?h(s,b,k,N):h(s)),D!==t)return D;if(!Fe(s))return s;var J=Ce(s);if(J){if(D=Uc(s),!P)return ot(s,D)}else{var X=Xe(s),ue=X==Ve||X==Ae;if(Zt(s))return ks(s,P);if(X==He||X==U||ue&&!k){if(D=q||ue?{}:js(s),!P)return q?Ac(s,ec(D,s)):Tc(s,Yo(D,s))}else{if(!Re[X])return k?s:{};D=jc(s,X,P)}}N||(N=new xt);var he=N.get(s);if(he)return he;N.set(s,D),yi(s)?s.forEach(function(be){D.add(St(be,u,h,be,s,N))}):gi(s)&&s.forEach(function(be,$e){D.set($e,St(be,u,h,$e,s,N))});var ye=G?q?Ta:Na:q?it:Ke,ke=J?t:ye(s);return _t(ke||s,function(be,$e){ke&&($e=be,be=s[$e]),Ar(D,$e,St(be,u,h,$e,s,N))}),D}function tc(s){var u=Ke(s);return function(h){return Qo(h,s,u)}}function Qo(s,u,h){var b=h.length;if(s==null)return!b;for(s=Le(s);b--;){var k=h[b],N=u[k],D=s[k];if(D===t&&!(k in s)||!N(D))return!1}return!0}function Zo(s,u,h){if(typeof s!="function")throw new yt(i);return Ir(function(){s.apply(t,h)},u)}function Dr(s,u,h,b){var k=-1,N=jr,D=!0,P=s.length,q=[],G=u.length;if(!P)return q;h&&(u=Me(u,ct(h))),b?(N=Gn,D=!1):u.length>=a&&(N=Er,D=!1,u=new nr(u));e:for(;++k<P;){var J=s[k],X=h==null?J:h(J);if(J=b||J!==0?J:0,D&&X===X){for(var ue=G;ue--;)if(u[ue]===X)continue e;q.push(J)}else N(u,X,b)||q.push(J)}return q}var Kt=Ns(Tt),Xo=Ns(fa,!0);function rc(s,u){var h=!0;return Kt(s,function(b,k,N){return h=!!u(b,k,N),h}),h}function ln(s,u,h){for(var b=-1,k=s.length;++b<k;){var N=s[b],D=u(N);if(D!=null&&(P===t?D===D&&!ft(D):h(D,P)))var P=D,q=N}return q}function nc(s,u,h,b){var k=s.length;for(h=we(h),h<0&&(h=-h>k?0:k+h),b=b===t||b>k?k:we(b),b<0&&(b+=k),b=h>b?0:Si(b);h<b;)s[h++]=u;return s}function es(s,u){var h=[];return Kt(s,function(b,k,N){u(b,k,N)&&h.push(b)}),h}function Ye(s,u,h,b,k){var N=-1,D=s.length;for(h||(h=Hc),k||(k=[]);++N<D;){var P=s[N];u>0&&h(P)?u>1?Ye(P,u-1,h,b,k):Ht(k,P):b||(k[k.length]=P)}return k}var da=Ts(),ts=Ts(!0);function Tt(s,u){return s&&da(s,u,Ke)}function fa(s,u){return s&&ts(s,u,Ke)}function un(s,u){return Wt(u,function(h){return Mt(s[h])})}function or(s,u){u=Yt(u,s);for(var h=0,b=u.length;s!=null&&h<b;)s=s[Dt(u[h++])];return h&&h==b?s:t}function rs(s,u,h){var b=u(s);return Ce(s)?b:Ht(b,h(s))}function tt(s){return s==null?s===t?ur:Qe:tr&&tr in Le(s)?Mc(s):Zc(s)}function pa(s,u){return s>u}function ac(s,u){return s!=null&&Oe.call(s,u)}function oc(s,u){return s!=null&&u in Le(s)}function sc(s,u,h){return s>=Ze(u,h)&&s<Ge(u,h)}function va(s,u,h){for(var b=h?Gn:jr,k=s[0].length,N=s.length,D=N,P=W(N),q=1/0,G=[];D--;){var J=s[D];D&&u&&(J=Me(J,ct(u))),q=Ze(J.length,q),P[D]=!h&&(u||k>=120&&J.length>=120)?new nr(D&&J):t}J=s[0];var X=-1,ue=P[0];e:for(;++X<k&&G.length<q;){var he=J[X],ye=u?u(he):he;if(he=h||he!==0?he:0,!(ue?Er(ue,ye):b(G,ye,h))){for(D=N;--D;){var ke=P[D];if(!(ke?Er(ke,ye):b(s[D],ye,h)))continue e}ue&&ue.push(ye),G.push(he)}}return G}function ic(s,u,h,b){return Tt(s,function(k,N,D){u(b,h(k),N,D)}),b}function Br(s,u,h){u=Yt(u,s),s=Gs(s,u);var b=s==null?s:s[Dt(wt(u))];return b==null?t:ut(b,s,h)}function ns(s){return qe(s)&&tt(s)==U}function lc(s){return qe(s)&&tt(s)==jt}function uc(s){return qe(s)&&tt(s)==le}function Or(s,u,h,b,k){return s===u?!0:s==null||u==null||!qe(s)&&!qe(u)?s!==s&&u!==u:cc(s,u,h,b,Or,k)}function cc(s,u,h,b,k,N){var D=Ce(s),P=Ce(u),q=D?ae:Xe(s),G=P?ae:Xe(u);q=q==U?He:q,G=G==U?He:G;var J=q==He,X=G==He,ue=q==G;if(ue&&Zt(s)){if(!Zt(u))return!1;D=!0,J=!1}if(ue&&!J)return N||(N=new xt),D||wr(s)?Fs(s,u,h,b,k,N):Rc(s,u,q,h,b,k,N);if(!(h&g)){var he=J&&Oe.call(s,"__wrapped__"),ye=X&&Oe.call(u,"__wrapped__");if(he||ye){var ke=he?s.value():s,be=ye?u.value():u;return N||(N=new xt),k(ke,be,h,b,N)}}return ue?(N||(N=new xt),Ic(s,u,h,b,k,N)):!1}function dc(s){return qe(s)&&Xe(s)==Ee}function ha(s,u,h,b){var k=h.length,N=k,D=!b;if(s==null)return!N;for(s=Le(s);k--;){var P=h[k];if(D&&P[2]?P[1]!==s[P[0]]:!(P[0]in s))return!1}for(;++k<N;){P=h[k];var q=P[0],G=s[q],J=P[1];if(D&&P[2]){if(G===t&&!(q in s))return!1}else{var X=new xt;if(b)var ue=b(G,J,q,s,u,X);if(!(ue===t?Or(J,G,g|_,b,X):ue))return!1}}return!0}function as(s){if(!Fe(s)||Gc(s))return!1;var u=Mt(s)?du:tl;return u.test(ir(s))}function fc(s){return qe(s)&&tt(s)==ht}function pc(s){return qe(s)&&Xe(s)==Ue}function vc(s){return qe(s)&&xn(s.length)&&!!Ie[tt(s)]}function ss(s){return typeof s=="function"?s:s==null?lt:typeof s=="object"?Ce(s)?cs(s[0],s[1]):us(s):Di(s)}function ma(s){if(!Rr(s))return gu(s);var u=[];for(var h in Le(s))Oe.call(s,h)&&h!="constructor"&&u.push(h);return u}function hc(s){if(!Fe(s))return Qc(s);var u=Rr(s),h=[];for(var b in s)b=="constructor"&&(u||!Oe.call(s,b))||h.push(b);return h}function ga(s,u){return s<u}function ls(s,u){var h=-1,b=st(s)?W(s.length):[];return Kt(s,function(k,N,D){b[++h]=u(k,N,D)}),b}function us(s){var u=Da(s);return u.length==1&&u[0][2]?Hs(u[0][0],u[0][1]):function(h){return h===s||ha(h,s,u)}}function cs(s,u){return Oa(s)&&Ws(u)?Hs(Dt(s),u):function(h){var b=Wa(h,s);return b===t&&b===u?Ha(h,s):Or(u,b,g|_)}}function cn(s,u,h,b,k){s!==u&&da(u,function(N,D){if(k||(k=new xt),Fe(N))mc(s,u,D,h,cn,b,k);else{var P=b?b(La(s,D),N,D+"",s,u,k):t;P===t&&(P=N),ua(s,D,P)}},it)}function mc(s,u,h,b,k,N,D){var P=La(s,h),q=La(u,h),G=D.get(q);if(G){ua(s,h,G);return}var J=N?N(P,q,h+"",s,u,D):t,X=J===t;if(X){var ue=Ce(q),he=!ue&&Zt(q),ye=!ue&&!he&&wr(q);J=q,ue||he||ye?Ce(P)?J=P:je(P)?J=ot(P):he?(X=!1,J=ks(q,!0)):ye?(X=!1,J=Es(q,!0)):J=[]:Mr(q)||lr(q)?(J=P,lr(P)?J=Ci(P):(!Fe(P)||Mt(P))&&(J=js(q))):X=!1}X&&(D.set(q,J),k(J,q,b,N,D),D.delete(q)),ua(s,h,J)}function ds(s,u){var h=s.length;if(h)return u+=u<0?h:0,It(u,h)?s[u]:t}function ps(s,u,h){u.length?u=Me(u,function(N){return Ce(N)?function(D){return or(D,N.length===1?N[0]:N)}:N}):u=[lt];var b=-1;u=Me(u,ct(_e()));var k=ls(s,function(N,D,P){var q=Me(u,function(G){return G(N)});return{criteria:q,index:++b,value:N}});return jl(k,function(N,D){return Nc(N,D,h)})}function gc(s,u){return vs(s,u,function(h,b){return Ha(s,b)})}function vs(s,u,h){for(var b=-1,k=u.length,N={};++b<k;){var D=u[b],P=or(s,D);h(P,D)&&Pr(N,Yt(D,s),P)}return N}function _c(s){return function(u){return or(u,s)}}function _a(s,u,h,b){var k=b?Ul:fr,N=-1,D=u.length,P=s;for(s===u&&(u=ot(u)),h&&(P=Me(s,ct(h)));++N<D;)for(var q=0,G=u[N],J=h?h(G):G;(q=k(P,J,q,b))>-1;)P!==s&&Xr.call(P,q,1),Xr.call(s,q,1);return s}function hs(s,u){for(var h=s?u.length:0,b=h-1;h--;){var k=u[h];if(h==b||k!==N){var N=k;It(k)?Xr.call(s,k,1):Ca(s,k)}}return s}function ya(s,u){return s+rn(zo()*(u-s+1))}function yc(s,u,h,b){for(var k=-1,N=Ge(tn((u-s)/(h||1)),0),D=W(N);N--;)D[b?N:++k]=s,s+=h;return D}function ba(s,u){var h="";if(!s||u<1||u>A)return h;do u%2&&(h+=s),u=rn(u/2),u&&(s+=s);while(u);return h}function xe(s,u){return Ra(zs(s,u,lt),s+"")}function bc(s){return Jo(kr(s))}function Sc(s,u){var h=kr(s);return bn(h,ar(u,0,h.length))}function Pr(s,u,h,b){if(!Fe(s))return s;u=Yt(u,s);for(var k=-1,N=u.length,D=N-1,P=s;P!=null&&++k<N;){var q=Dt(u[k]),G=h;if(q==="__proto__"||q==="constructor"||q==="prototype")return s;if(k!=D){var J=P[q];G=b?b(J,q,P):t,G===t&&(G=Fe(J)?J:It(u[k+1])?[]:{})}Ar(P,q,G),P=P[q]}return s}var gs=nn?function(s,u){return nn.set(s,u),s}:lt,Cc=en?function(s,u){return en(s,"toString",{configurable:!0,enumerable:!1,value:Ga(u),writable:!0})}:lt;function wc(s){return bn(kr(s))}function Ct(s,u,h){var b=-1,k=s.length;u<0&&(u=-u>k?0:k+u),h=h>k?k:h,h<0&&(h+=k),k=u>h?0:h-u>>>0,u>>>=0;for(var N=W(k);++b<k;)N[b]=s[b+u];return N}function kc(s,u){var h;return Kt(s,function(b,k,N){return h=u(b,k,N),!h}),!!h}function dn(s,u,h){var b=0,k=s==null?b:s.length;if(typeof u=="number"&&u===u&&k<=O){for(;b<k;){var N=b+k>>>1,D=s[N];D!==null&&!ft(D)&&(h?D<=u:D<u)?b=N+1:k=N}return k}return Sa(s,u,lt,h)}function Sa(s,u,h,b){var k=0,N=s==null?0:s.length;if(N===0)return 0;u=h(u);for(var D=u!==u,P=u===null,q=ft(u),G=u===t;k<N;){var J=rn((k+N)/2),X=h(s[J]),ue=X!==t,he=X===null,ye=X===X,ke=ft(X);if(D)var be=b||ye;else G?be=ye&&(b||ue):P?be=ye&&ue&&(b||!he):q?be=ye&&ue&&!he&&(b||!ke):he||ke?be=!1:be=b?X<=u:X<u;be?k=J+1:N=J}return Ze(N,fe)}function _s(s,u){for(var h=-1,b=s.length,k=0,N=[];++h<b;){var D=s[h],P=u?u(D):D;if(!h||!Vt(P,q)){var q=P;N[k++]=D===0?0:D}}return N}function ys(s){return typeof s=="number"?s:ft(s)?j:+s}function dt(s){if(typeof s=="string")return s;if(Ce(s))return Me(s,dt)+"";if(ft(s))return Go?Go.call(s):"";var u=s+"";return u=="0"&&1/s==-de?"-0":u}function Jt(s,u,h){var b=-1,k=jr,N=s.length,D=!0,P=[],q=P;if(h)D=!1,k=Gn;else if(N>=a){var G=u?null:Pc(s);if(G)return Hr(G);D=!1,k=Er,q=new nr}else q=u?[]:P;e:for(;++b<N;){var J=s[b],X=u?u(J):J;if(J=h||J!==0?J:0,D&&X===X){for(var ue=q.length;ue--;)if(q[ue]===X)continue e;u&&q.push(X),P.push(J)}else k(q,X,h)||(q!==P&&q.push(X),P.push(J))}return P}function Ca(s,u){return u=Yt(u,s),s=Gs(s,u),s==null||delete s[Dt(wt(u))]}function bs(s,u,h,b){return Pr(s,u,h(or(s,u)),b)}function fn(s,u,h,b){for(var k=s.length,N=b?k:-1;(b?N--:++N<k)&&u(s[N],N,s););return h?Ct(s,b?0:N,b?N+1:k):Ct(s,b?N+1:0,b?k:N)}function Ss(s,u){var h=s;return h instanceof Ne&&(h=h.value()),Kn(u,function(b,k){return k.func.apply(k.thisArg,Ht([b],k.args))},h)}function wa(s,u,h){var b=s.length;if(b<2)return b?Jt(s[0]):[];for(var k=-1,N=W(b);++k<b;)for(var D=s[k],P=-1;++P<b;)P!=k&&(N[k]=Dr(N[k]||D,s[P],u,h));return Jt(Ye(N,1),u,h)}function Cs(s,u,h){for(var b=-1,k=s.length,N=u.length,D={};++b<k;){var P=b<N?u[b]:t;h(D,s[b],P)}return D}function ka(s){return je(s)?s:[]}function Ea(s){return typeof s=="function"?s:lt}function Yt(s,u){return Ce(s)?s:Oa(s,u)?[s]:Qs(Be(s))}var Ec=xe;function Qt(s,u,h){var b=s.length;return h=h===t?b:h,!u&&h>=b?s:Ct(s,u,h)}var ws=fu||function(s){return Je.clearTimeout(s)};function ks(s,u){if(u)return s.slice();var h=s.length,b=qo?qo(h):new s.constructor(h);return s.copy(b),b}function xa(s){var u=new s.constructor(s.byteLength);return new Qr(u).set(new Qr(s)),u}function xc(s,u){var h=u?xa(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.byteLength)}function Vc(s){var u=new s.constructor(s.source,ro.exec(s));return u.lastIndex=s.lastIndex,u}function $c(s){return Tr?Le(Tr.call(s)):{}}function Es(s,u){var h=u?xa(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.length)}function xs(s,u){if(s!==u){var h=s!==t,b=s===null,k=s===s,N=ft(s),D=u!==t,P=u===null,q=u===u,G=ft(u);if(!P&&!G&&!N&&s>u||N&&D&&q&&!P&&!G||b&&D&&q||!h&&q||!k)return 1;if(!b&&!N&&!G&&s<u||G&&h&&k&&!b&&!N||P&&h&&k||!D&&k||!q)return-1}return 0}function Nc(s,u,h){for(var b=-1,k=s.criteria,N=u.criteria,D=k.length,P=h.length;++b<D;){var q=xs(k[b],N[b]);if(q){if(b>=P)return q;var G=h[b];return q*(G=="desc"?-1:1)}}return s.index-u.index}function Vs(s,u,h,b){for(var k=-1,N=s.length,D=h.length,P=-1,q=u.length,G=Ge(N-D,0),J=W(q+G),X=!b;++P<q;)J[P]=u[P];for(;++k<D;)(X||k<N)&&(J[h[k]]=s[k]);for(;G--;)J[P++]=s[k++];return J}function $s(s,u,h,b){for(var k=-1,N=s.length,D=-1,P=h.length,q=-1,G=u.length,J=Ge(N-P,0),X=W(J+G),ue=!b;++k<J;)X[k]=s[k];for(var he=k;++q<G;)X[he+q]=u[q];for(;++D<P;)(ue||k<N)&&(X[he+h[D]]=s[k++]);return X}function ot(s,u){var h=-1,b=s.length;for(u||(u=W(b));++h<b;)u[h]=s[h];return u}function At(s,u,h,b){var k=!h;h||(h={});for(var N=-1,D=u.length;++N<D;){var P=u[N],q=b?b(h[P],s[P],P,h,s):t;q===t&&(q=s[P]),k?Pt(h,P,q):Ar(h,P,q)}return h}function Tc(s,u){return At(s,Ba(s),u)}function Ac(s,u){return At(s,qs(s),u)}function pn(s,u){return function(h,b){var k=Ce(h)?Ll:Xu,N=u?u():{};return k(h,s,_e(b,2),N)}}function br(s){return xe(function(u,h){var b=-1,k=h.length,N=k>1?h[k-1]:t,D=k>2?h[2]:t;for(N=s.length>3&&typeof N=="function"?(k--,N):t,D&&rt(h[0],h[1],D)&&(N=k<3?t:N,k=1),u=Le(u);++b<k;){var P=h[b];P&&s(u,P,b,N)}return u})}function Ns(s,u){return function(h,b){if(h==null)return h;if(!st(h))return s(h,b);for(var k=h.length,N=u?k:-1,D=Le(h);(u?N--:++N<k)&&b(D[N],N,D)!==!1;);return h}}function Ts(s){return function(u,h,b){for(var k=-1,N=Le(u),D=b(u),P=D.length;P--;){var q=D[s?P:++k];if(h(N[q],q,N)===!1)break}return u}}function Dc(s,u,h){var b=u&S,k=Lr(s);function N(){var D=this&&this!==Je&&this instanceof N?k:s;return D.apply(b?h:this,arguments)}return N}function As(s){return function(u){u=Be(u);var h=pr(u)?Et(u):t,b=h?h[0]:u.charAt(0),k=h?Qt(h,1).join(""):u.slice(1);return b[s]()+k}}function Sr(s){return function(u){return Kn(Ti(Ni(u).replace(Cl,"")),s,"")}}function Lr(s){return function(){var u=arguments;switch(u.length){case 0:return new s;case 1:return new s(u[0]);case 2:return new s(u[0],u[1]);case 3:return new s(u[0],u[1],u[2]);case 4:return new s(u[0],u[1],u[2],u[3]);case 5:return new s(u[0],u[1],u[2],u[3],u[4]);case 6:return new s(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new s(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var h=yr(s.prototype),b=s.apply(h,u);return Fe(b)?b:h}}function Bc(s,u,h){var b=Lr(s);function k(){for(var N=arguments.length,D=W(N),P=N,q=Cr(k);P--;)D[P]=arguments[P];var G=N<3&&D[0]!==q&&D[N-1]!==q?[]:zt(D,q);if(N-=G.length,N<h)return Ls(s,u,vn,k.placeholder,t,D,G,t,t,h-N);var J=this&&this!==Je&&this instanceof k?b:s;return ut(J,this,D)}return k}function Ds(s){return function(u,h,b){var k=Le(u);if(!st(u)){var N=_e(h,3);u=Ke(u),h=function(P){return N(k[P],P,k)}}var D=s(u,h,b);return D>-1?k[N?u[D]:D]:t}}function Bs(s){return Rt(function(u){var h=u.length,b=h,k=bt.prototype.thru;for(s&&u.reverse();b--;){var N=u[b];if(typeof N!="function")throw new yt(i);if(k&&!D&&_n(N)=="wrapper")var D=new bt([],!0)}for(b=D?b:h;++b<h;){N=u[b];var P=_n(N),q=P=="wrapper"?Aa(N):t;q&&Pa(q[0])&&q[1]==(R|E|T|L)&&!q[4].length&&q[9]==1?D=D[_n(q[0])].apply(D,q[3]):D=N.length==1&&Pa(N)?D[P]():D.thru(N)}return function(){var G=arguments,J=G[0];if(D&&G.length==1&&Ce(J))return D.plant(J).value();for(var X=0,ue=h?u[X].apply(this,G):J;++X<h;)ue=u[X].call(this,ue);return ue}})}function vn(s,u,h,b,k,N,D,P,q,G){var J=u&R,X=u&S,ue=u&C,he=u&(E|$),ye=u&te,ke=ue?t:Lr(s);function be(){for(var $e=arguments.length,Te=W($e),pt=$e;pt--;)Te[pt]=arguments[pt];if(he)var nt=Cr(be),vt=Hl(Te,nt);if(b&&(Te=Vs(Te,b,k,he)),N&&(Te=$s(Te,N,D,he)),$e-=vt,he&&$e<G){var We=zt(Te,nt);return Ls(s,u,vn,be.placeholder,h,Te,We,P,q,G-$e)}var $t=X?h:this,qt=ue?$t[s]:s;return $e=Te.length,P?Te=Xc(Te,P):ye&&$e>1&&Te.reverse(),J&&q<$e&&(Te.length=q),this&&this!==Je&&this instanceof be&&(qt=ke||Lr(qt)),qt.apply($t,Te)}return be}function Os(s,u){return function(h,b){return ic(h,s,u(b),{})}}function hn(s,u){return function(h,b){var k;if(h===t&&b===t)return u;if(h!==t&&(k=h),b!==t){if(k===t)return b;typeof h=="string"||typeof b=="string"?(h=dt(h),b=dt(b)):(h=ys(h),b=ys(b)),k=s(h,b)}return k}}function Va(s){return Rt(function(u){return u=Me(u,ct(_e())),xe(function(h){var b=this;return s(u,function(k){return ut(k,b,h)})})})}function mn(s,u){u=u===t?" ":dt(u);var h=u.length;if(h<2)return h?ba(u,s):u;var b=ba(u,tn(s/vr(u)));return pr(u)?Qt(Et(b),0,s).join(""):b.slice(0,s)}function Oc(s,u,h,b){var k=u&S,N=Lr(s);function D(){for(var P=-1,q=arguments.length,G=-1,J=b.length,X=W(J+q),ue=this&&this!==Je&&this instanceof D?N:s;++G<J;)X[G]=b[G];for(;q--;)X[G++]=arguments[++P];return ut(ue,k?h:this,X)}return D}function Ps(s){return function(u,h,b){return b&&typeof b!="number"&&rt(u,h,b)&&(h=b=t),u=Ft(u),h===t?(h=u,u=0):h=Ft(h),b=b===t?u<h?1:-1:Ft(b),yc(u,h,b,s)}}function gn(s){return function(u,h){return typeof u=="string"&&typeof h=="string"||(u=kt(u),h=kt(h)),s(u,h)}}function Ls(s,u,h,b,k,N,D,P,q,G){var J=u&E,X=J?D:t,ue=J?t:D,he=J?N:t,ye=J?t:N;u|=J?T:B,u&=~(J?B:T),u&w||(u&=~(S|C));var ke=[s,u,k,he,X,ye,ue,P,q,G],be=h.apply(t,ke);return Pa(s)&&Ks(be,ke),be.placeholder=b,Js(be,s,u)}function $a(s){var u=ze[s];return function(h,b){if(h=kt(h),b=b==null?0:Ze(we(b),292),b&&Ho(h)){var k=(Be(h)+"e").split("e"),N=u(k[0]+"e"+(+k[1]+b));return k=(Be(N)+"e").split("e"),+(k[0]+"e"+(+k[1]-b))}return u(h)}}var Pc=gr&&1/Hr(new gr([,-0]))[1]==de?function(s){return new gr(s)}:Ya;function Rs(s){return function(u){var h=Xe(u);return h==Ee?aa(u):h==Ue?Zl(u):Wl(u,s(u))}}function Lt(s,u,h,b,k,N,D,P){var q=u&C;if(!q&&typeof s!="function")throw new yt(i);var G=b?b.length:0;if(G||(u&=~(T|B),b=k=t),D=D===t?D:Ge(we(D),0),P=P===t?P:we(P),G-=k?k.length:0,u&B){var J=b,X=k;b=k=t}var ue=q?t:Aa(s),he=[s,u,h,b,k,J,X,N,D,P];if(ue&&Yc(he,ue),s=he[0],u=he[1],h=he[2],b=he[3],k=he[4],P=he[9]=he[9]===t?q?0:s.length:Ge(he[9]-G,0),!P&&u&(E|$)&&(u&=~(E|$)),!u||u==S)var ye=Dc(s,u,h);else u==E||u==$?ye=Bc(s,u,P):(u==T||u==(S|T))&&!k.length?ye=Oc(s,u,h,b):ye=vn.apply(t,he);var ke=ue?gs:Ks;return Js(ke(ye,he),s,u)}function Is(s,u,h,b){return s===t||Vt(s,mr[h])&&!Oe.call(b,h)?u:s}function Ms(s,u,h,b,k,N){return Fe(s)&&Fe(u)&&(N.set(u,s),cn(s,u,t,Ms,N),N.delete(u)),s}function Lc(s){return Mr(s)?t:s}function Fs(s,u,h,b,k,N){var D=h&g,P=s.length,q=u.length;if(P!=q&&!(D&&q>P))return!1;var G=N.get(s),J=N.get(u);if(G&&J)return G==u&&J==s;var X=-1,ue=!0,he=h&_?new nr:t;for(N.set(s,u),N.set(u,s);++X<P;){var ye=s[X],ke=u[X];if(b)var be=D?b(ke,ye,X,u,s,N):b(ye,ke,X,s,u,N);if(be!==t){if(be)continue;ue=!1;break}if(he){if(!Jn(u,function($e,Te){if(!Er(he,Te)&&(ye===$e||k(ye,$e,h,b,N)))return he.push(Te)})){ue=!1;break}}else if(!(ye===ke||k(ye,ke,h,b,N))){ue=!1;break}}return N.delete(s),N.delete(u),ue}function Rc(s,u,h,b,k,N,D){switch(h){case cr:if(s.byteLength!=u.byteLength||s.byteOffset!=u.byteOffset)return!1;s=s.buffer,u=u.buffer;case jt:return!(s.byteLength!=u.byteLength||!N(new Qr(s),new Qr(u)));case se:case le:case Pe:return Vt(+s,+u);case ve:return s.name==u.name&&s.message==u.message;case ht:case mt:return s==u+"";case Ee:var P=aa;case Ue:var q=b&g;if(P||(P=Hr),s.size!=u.size&&!q)return!1;var G=D.get(s);if(G)return G==u;b|=_,D.set(s,u);var J=Fs(P(s),P(u),b,k,N,D);return D.delete(s),J;case at:if(Tr)return Tr.call(s)==Tr.call(u)}return!1}function Ic(s,u,h,b,k,N){var D=h&g,P=Na(s),q=P.length,G=Na(u),J=G.length;if(q!=J&&!D)return!1;for(var X=q;X--;){var ue=P[X];if(!(D?ue in u:Oe.call(u,ue)))return!1}var he=N.get(s),ye=N.get(u);if(he&&ye)return he==u&&ye==s;var ke=!0;N.set(s,u),N.set(u,s);for(var be=D;++X<q;){ue=P[X];var $e=s[ue],Te=u[ue];if(b)var pt=D?b(Te,$e,ue,u,s,N):b($e,Te,ue,s,u,N);if(!(pt===t?$e===Te||k($e,Te,h,b,N):pt)){ke=!1;break}be||(be=ue=="constructor")}if(ke&&!be){var nt=s.constructor,vt=u.constructor;nt!=vt&&"constructor"in s&&"constructor"in u&&!(typeof nt=="function"&&nt instanceof nt&&typeof vt=="function"&&vt instanceof vt)&&(ke=!1)}return N.delete(s),N.delete(u),ke}function Rt(s){return Ra(zs(s,t,ti),s+"")}function Na(s){return rs(s,Ke,Ba)}function Ta(s){return rs(s,it,qs)}var Aa=nn?function(s){return nn.get(s)}:Ya;function _n(s){for(var u=s.name+"",h=_r[u],b=Oe.call(_r,u)?h.length:0;b--;){var k=h[b],N=k.func;if(N==null||N==s)return k.name}return u}function Cr(s){var u=Oe.call(V,"placeholder")?V:s;return u.placeholder}function _e(){var s=V.iteratee||Ka;return s=s===Ka?ss:s,arguments.length?s(arguments[0],arguments[1]):s}function yn(s,u){var h=s.__data__;return zc(u)?h[typeof u=="string"?"string":"hash"]:h.map}function Da(s){for(var u=Ke(s),h=u.length;h--;){var b=u[h],k=s[b];u[h]=[b,k,Ws(k)]}return u}function sr(s,u){var h=Jl(s,u);return as(h)?h:t}function Mc(s){var u=Oe.call(s,tr),h=s[tr];try{s[tr]=t;var b=!0}catch{}var k=Jr.call(s);return b&&(u?s[tr]=h:delete s[tr]),k}var Ba=sa?function(s){return s==null?[]:(s=Le(s),Wt(sa(s),function(u){return jo.call(s,u)}))}:Qa,qs=sa?function(s){for(var u=[];s;)Ht(u,Ba(s)),s=Zr(s);return u}:Qa,Xe=tt;(ia&&Xe(new ia(new ArrayBuffer(1)))!=cr||Vr&&Xe(new Vr)!=Ee||la&&Xe(la.resolve())!=et||gr&&Xe(new gr)!=Ue||$r&&Xe(new $r)!=Nt)&&(Xe=function(s){var u=tt(s),h=u==He?s.constructor:t,b=h?ir(h):"";if(b)switch(b){case Su:return cr;case Cu:return Ee;case wu:return et;case ku:return Ue;case Eu:return Nt}return u});function Fc(s,u,h){for(var b=-1,k=h.length;++b<k;){var N=h[b],D=N.size;switch(N.type){case"drop":s+=D;break;case"dropRight":u-=D;break;case"take":u=Ze(u,s+D);break;case"takeRight":s=Ge(s,u-D);break}}return{start:s,end:u}}function qc(s){var u=s.match(Gi);return u?u[1].split(Ki):[]}function Us(s,u,h){u=Yt(u,s);for(var b=-1,k=u.length,N=!1;++b<k;){var D=Dt(u[b]);if(!(N=s!=null&&h(s,D)))break;s=s[D]}return N||++b!=k?N:(k=s==null?0:s.length,!!k&&xn(k)&&It(D,k)&&(Ce(s)||lr(s)))}function Uc(s){var u=s.length,h=new s.constructor(u);return u&&typeof s[0]=="string"&&Oe.call(s,"index")&&(h.index=s.index,h.input=s.input),h}function js(s){return typeof s.constructor=="function"&&!Rr(s)?yr(Zr(s)):{}}function jc(s,u,h){var b=s.constructor;switch(u){case jt:return xa(s);case se:case le:return new b(+s);case cr:return xc(s,h);case Nn:case Tn:case An:case Dn:case Bn:case On:case Pn:case Ln:case Rn:return Es(s,h);case Ee:return new b;case Pe:case mt:return new b(s);case ht:return Vc(s);case Ue:return new b;case at:return $c(s)}}function Wc(s,u){var h=u.length;if(!h)return s;var b=h-1;return u[b]=(h>1?"& ":"")+u[b],u=u.join(h>2?", ":" "),s.replace(zi,`{
8
+ */lodash.exports;(function(e,r){(function(){var t,n="4.17.21",a=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",p=1,v=2,m=4,g=1,_=2,S=1,C=2,w=4,E=8,$=16,T=32,B=64,R=128,L=256,te=512,oe=30,Q="...",ce=800,J=16,ne=1,ge=2,me=3,de=1/0,A=9007199254740991,F=17976931348623157e292,W=NaN,X=4294967295,fe=X-1,O=X>>>1,I=[["ary",R],["bind",S],["bindKey",C],["curry",E],["curryRight",$],["flip",te],["partial",T],["partialRight",B],["rearg",L]],U="[object Arguments]",ae="[object Array]",ee="[object AsyncFunction]",se="[object Boolean]",le="[object Date]",ie="[object DOMException]",ve="[object Error]",Ve="[object Function]",Ae="[object GeneratorFunction]",xe="[object Map]",Pe="[object Number]",Qe="[object Null]",He="[object Object]",et="[object Promise]",z="[object Proxy]",ht="[object RegExp]",Ue="[object Set]",mt="[object String]",at="[object Symbol]",ur="[object Undefined]",Nt="[object WeakMap]",Zt="[object WeakSet]",Wt="[object ArrayBuffer]",cr="[object DataView]",Nn="[object Float32Array]",Tn="[object Float64Array]",An="[object Int8Array]",Dn="[object Int16Array]",Bn="[object Int32Array]",On="[object Uint8Array]",Pn="[object Uint8ClampedArray]",Ln="[object Uint16Array]",Rn="[object Uint32Array]",Oi=/\b__p \+= '';/g,Pi=/\b(__p \+=) '' \+/g,Li=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Za=/&(?:amp|lt|gt|quot|#39);/g,eo=/[&<>"']/g,Ri=RegExp(Za.source),Ii=RegExp(eo.source),Mi=/<%-([\s\S]+?)%>/g,Fi=/<%([\s\S]+?)%>/g,to=/<%=([\s\S]+?)%>/g,qi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ui=/^\w*$/,Wi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,In=/[\\^$.*+?()[\]{}|]/g,ji=RegExp(In.source),Mn=/^\s+/,Hi=/\s/,zi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Gi=/\{\n\/\* \[wrapped with (.+)\] \*/,Ki=/,? & /,Yi=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ji=/[()=,{}\[\]\/\s]/,Qi=/\\(\\)?/g,Xi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ro=/\w*$/,Zi=/^[-+]0x[0-9a-f]+$/i,el=/^0b[01]+$/i,tl=/^\[object .+?Constructor\]$/,rl=/^0o[0-7]+$/i,nl=/^(?:0|[1-9]\d*)$/,al=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Fr=/($^)/,ol=/['\n\r\u2028\u2029\\]/g,qr="\\ud800-\\udfff",sl="\\u0300-\\u036f",il="\\ufe20-\\ufe2f",ll="\\u20d0-\\u20ff",no=sl+il+ll,ao="\\u2700-\\u27bf",oo="a-z\\xdf-\\xf6\\xf8-\\xff",ul="\\xac\\xb1\\xd7\\xf7",cl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dl="\\u2000-\\u206f",fl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",so="A-Z\\xc0-\\xd6\\xd8-\\xde",io="\\ufe0e\\ufe0f",lo=ul+cl+dl+fl,Fn="['’]",pl="["+qr+"]",uo="["+lo+"]",Ur="["+no+"]",co="\\d+",vl="["+ao+"]",fo="["+oo+"]",po="[^"+qr+lo+co+ao+oo+so+"]",qn="\\ud83c[\\udffb-\\udfff]",hl="(?:"+Ur+"|"+qn+")",vo="[^"+qr+"]",Un="(?:\\ud83c[\\udde6-\\uddff]){2}",Wn="[\\ud800-\\udbff][\\udc00-\\udfff]",dr="["+so+"]",ho="\\u200d",mo="(?:"+fo+"|"+po+")",ml="(?:"+dr+"|"+po+")",go="(?:"+Fn+"(?:d|ll|m|re|s|t|ve))?",_o="(?:"+Fn+"(?:D|LL|M|RE|S|T|VE))?",yo=hl+"?",bo="["+io+"]?",gl="(?:"+ho+"(?:"+[vo,Un,Wn].join("|")+")"+bo+yo+")*",_l="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",So=bo+yo+gl,bl="(?:"+[vl,Un,Wn].join("|")+")"+So,Sl="(?:"+[vo+Ur+"?",Ur,Un,Wn,pl].join("|")+")",Cl=RegExp(Fn,"g"),wl=RegExp(Ur,"g"),jn=RegExp(qn+"(?="+qn+")|"+Sl+So,"g"),kl=RegExp([dr+"?"+fo+"+"+go+"(?="+[uo,dr,"$"].join("|")+")",ml+"+"+_o+"(?="+[uo,dr+mo,"$"].join("|")+")",dr+"?"+mo+"+"+go,dr+"+"+_o,yl,_l,co,bl].join("|"),"g"),xl=RegExp("["+ho+qr+no+io+"]"),El=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$l=-1,Ie={};Ie[Nn]=Ie[Tn]=Ie[An]=Ie[Dn]=Ie[Bn]=Ie[On]=Ie[Pn]=Ie[Ln]=Ie[Rn]=!0,Ie[U]=Ie[ae]=Ie[Wt]=Ie[se]=Ie[cr]=Ie[le]=Ie[ve]=Ie[Ve]=Ie[xe]=Ie[Pe]=Ie[He]=Ie[ht]=Ie[Ue]=Ie[mt]=Ie[Nt]=!1;var Re={};Re[U]=Re[ae]=Re[Wt]=Re[cr]=Re[se]=Re[le]=Re[Nn]=Re[Tn]=Re[An]=Re[Dn]=Re[Bn]=Re[xe]=Re[Pe]=Re[He]=Re[ht]=Re[Ue]=Re[mt]=Re[at]=Re[On]=Re[Pn]=Re[Ln]=Re[Rn]=!0,Re[ve]=Re[Ve]=Re[Nt]=!1;var Nl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Tl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Al={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Dl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Bl=parseFloat,Ol=parseInt,Co=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Pl=typeof self=="object"&&self&&self.Object===Object&&self,Ye=Co||Pl||Function("return this")(),Hn=r&&!r.nodeType&&r,er=Hn&&!0&&e&&!e.nodeType&&e,wo=er&&er.exports===Hn,zn=wo&&Co.process,gt=function(){try{var M=er&&er.require&&er.require("util").types;return M||zn&&zn.binding&&zn.binding("util")}catch{}}(),ko=gt&&gt.isArrayBuffer,xo=gt&&gt.isDate,Eo=gt&&gt.isMap,Vo=gt&&gt.isRegExp,$o=gt&&gt.isSet,No=gt&&gt.isTypedArray;function ut(M,H,j){switch(j.length){case 0:return M.call(H);case 1:return M.call(H,j[0]);case 2:return M.call(H,j[0],j[1]);case 3:return M.call(H,j[0],j[1],j[2])}return M.apply(H,j)}function Ll(M,H,j,pe){for(var Se=-1,De=M==null?0:M.length;++Se<De;){var ze=M[Se];H(pe,ze,j(ze),M)}return pe}function _t(M,H){for(var j=-1,pe=M==null?0:M.length;++j<pe&&H(M[j],j,M)!==!1;);return M}function Rl(M,H){for(var j=M==null?0:M.length;j--&&H(M[j],j,M)!==!1;);return M}function To(M,H){for(var j=-1,pe=M==null?0:M.length;++j<pe;)if(!H(M[j],j,M))return!1;return!0}function jt(M,H){for(var j=-1,pe=M==null?0:M.length,Se=0,De=[];++j<pe;){var ze=M[j];H(ze,j,M)&&(De[Se++]=ze)}return De}function Wr(M,H){var j=M==null?0:M.length;return!!j&&fr(M,H,0)>-1}function Gn(M,H,j){for(var pe=-1,Se=M==null?0:M.length;++pe<Se;)if(j(H,M[pe]))return!0;return!1}function Me(M,H){for(var j=-1,pe=M==null?0:M.length,Se=Array(pe);++j<pe;)Se[j]=H(M[j],j,M);return Se}function Ht(M,H){for(var j=-1,pe=H.length,Se=M.length;++j<pe;)M[Se+j]=H[j];return M}function Kn(M,H,j,pe){var Se=-1,De=M==null?0:M.length;for(pe&&De&&(j=M[++Se]);++Se<De;)j=H(j,M[Se],Se,M);return j}function Il(M,H,j,pe){var Se=M==null?0:M.length;for(pe&&Se&&(j=M[--Se]);Se--;)j=H(j,M[Se],Se,M);return j}function Jn(M,H){for(var j=-1,pe=M==null?0:M.length;++j<pe;)if(H(M[j],j,M))return!0;return!1}var Ml=Qn("length");function Fl(M){return M.split("")}function ql(M){return M.match(Yi)||[]}function Ao(M,H,j){var pe;return j(M,function(Se,De,ze){if(H(Se,De,ze))return pe=De,!1}),pe}function jr(M,H,j,pe){for(var Se=M.length,De=j+(pe?1:-1);pe?De--:++De<Se;)if(H(M[De],De,M))return De;return-1}function fr(M,H,j){return H===H?Zl(M,H,j):jr(M,Do,j)}function Ul(M,H,j,pe){for(var Se=j-1,De=M.length;++Se<De;)if(pe(M[Se],H))return Se;return-1}function Do(M){return M!==M}function Bo(M,H){var j=M==null?0:M.length;return j?ta(M,H)/j:W}function Qn(M){return function(H){return H==null?t:H[M]}}function ea(M){return function(H){return M==null?t:M[H]}}function Oo(M,H,j,pe,Se){return Se(M,function(De,ze,Le){j=pe?(pe=!1,De):H(j,De,ze,Le)}),j}function Wl(M,H){var j=M.length;for(M.sort(H);j--;)M[j]=M[j].value;return M}function ta(M,H){for(var j,pe=-1,Se=M.length;++pe<Se;){var De=H(M[pe]);De!==t&&(j=j===t?De:j+De)}return j}function ra(M,H){for(var j=-1,pe=Array(M);++j<M;)pe[j]=H(j);return pe}function jl(M,H){return Me(H,function(j){return[j,M[j]]})}function Po(M){return M&&M.slice(0,Mo(M)+1).replace(Mn,"")}function ct(M){return function(H){return M(H)}}function na(M,H){return Me(H,function(j){return M[j]})}function xr(M,H){return M.has(H)}function Lo(M,H){for(var j=-1,pe=M.length;++j<pe&&fr(H,M[j],0)>-1;);return j}function Ro(M,H){for(var j=M.length;j--&&fr(H,M[j],0)>-1;);return j}function Hl(M,H){for(var j=M.length,pe=0;j--;)M[j]===H&&++pe;return pe}var zl=ea(Nl),Gl=ea(Tl);function Kl(M){return"\\"+Dl[M]}function Yl(M,H){return M==null?t:M[H]}function pr(M){return xl.test(M)}function Jl(M){return El.test(M)}function Ql(M){for(var H,j=[];!(H=M.next()).done;)j.push(H.value);return j}function aa(M){var H=-1,j=Array(M.size);return M.forEach(function(pe,Se){j[++H]=[Se,pe]}),j}function Io(M,H){return function(j){return M(H(j))}}function zt(M,H){for(var j=-1,pe=M.length,Se=0,De=[];++j<pe;){var ze=M[j];(ze===H||ze===f)&&(M[j]=f,De[Se++]=j)}return De}function Hr(M){var H=-1,j=Array(M.size);return M.forEach(function(pe){j[++H]=pe}),j}function Xl(M){var H=-1,j=Array(M.size);return M.forEach(function(pe){j[++H]=[pe,pe]}),j}function Zl(M,H,j){for(var pe=j-1,Se=M.length;++pe<Se;)if(M[pe]===H)return pe;return-1}function eu(M,H,j){for(var pe=j+1;pe--;)if(M[pe]===H)return pe;return pe}function vr(M){return pr(M)?ru(M):Ml(M)}function xt(M){return pr(M)?nu(M):Fl(M)}function Mo(M){for(var H=M.length;H--&&Hi.test(M.charAt(H)););return H}var tu=ea(Al);function ru(M){for(var H=jn.lastIndex=0;jn.test(M);)++H;return H}function nu(M){return M.match(jn)||[]}function au(M){return M.match(kl)||[]}var ou=function M(H){H=H==null?Ye:hr.defaults(Ye.Object(),H,hr.pick(Ye,Vl));var j=H.Array,pe=H.Date,Se=H.Error,De=H.Function,ze=H.Math,Le=H.Object,oa=H.RegExp,su=H.String,yt=H.TypeError,zr=j.prototype,iu=De.prototype,mr=Le.prototype,Gr=H["__core-js_shared__"],Kr=iu.toString,Oe=mr.hasOwnProperty,lu=0,Fo=function(){var s=/[^.]+$/.exec(Gr&&Gr.keys&&Gr.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Yr=mr.toString,uu=Kr.call(Le),cu=Ye._,du=oa("^"+Kr.call(Oe).replace(In,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Jr=wo?H.Buffer:t,Gt=H.Symbol,Qr=H.Uint8Array,qo=Jr?Jr.allocUnsafe:t,Xr=Io(Le.getPrototypeOf,Le),Uo=Le.create,Wo=mr.propertyIsEnumerable,Zr=zr.splice,jo=Gt?Gt.isConcatSpreadable:t,Er=Gt?Gt.iterator:t,tr=Gt?Gt.toStringTag:t,en=function(){try{var s=sr(Le,"defineProperty");return s({},"",{}),s}catch{}}(),fu=H.clearTimeout!==Ye.clearTimeout&&H.clearTimeout,pu=pe&&pe.now!==Ye.Date.now&&pe.now,vu=H.setTimeout!==Ye.setTimeout&&H.setTimeout,tn=ze.ceil,rn=ze.floor,sa=Le.getOwnPropertySymbols,hu=Jr?Jr.isBuffer:t,Ho=H.isFinite,mu=zr.join,gu=Io(Le.keys,Le),Ge=ze.max,Xe=ze.min,_u=pe.now,yu=H.parseInt,zo=ze.random,bu=zr.reverse,ia=sr(H,"DataView"),Vr=sr(H,"Map"),la=sr(H,"Promise"),gr=sr(H,"Set"),$r=sr(H,"WeakMap"),Nr=sr(Le,"create"),nn=$r&&new $r,_r={},Su=ir(ia),Cu=ir(Vr),wu=ir(la),ku=ir(gr),xu=ir($r),an=Gt?Gt.prototype:t,Tr=an?an.valueOf:t,Go=an?an.toString:t;function V(s){if(qe(s)&&!Ce(s)&&!(s instanceof Ne)){if(s instanceof bt)return s;if(Oe.call(s,"__wrapped__"))return Xs(s)}return new bt(s)}var yr=function(){function s(){}return function(u){if(!Fe(u))return{};if(Uo)return Uo(u);s.prototype=u;var h=new s;return s.prototype=t,h}}();function on(){}function bt(s,u){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=t}V.templateSettings={escape:Mi,evaluate:Fi,interpolate:to,variable:"",imports:{_:V}},V.prototype=on.prototype,V.prototype.constructor=V,bt.prototype=yr(on.prototype),bt.prototype.constructor=bt;function Ne(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=X,this.__views__=[]}function Eu(){var s=new Ne(this.__wrapped__);return s.__actions__=ot(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=ot(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=ot(this.__views__),s}function Vu(){if(this.__filtered__){var s=new Ne(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function $u(){var s=this.__wrapped__.value(),u=this.__dir__,h=Ce(s),b=u<0,k=h?s.length:0,N=Fc(0,k,this.__views__),D=N.start,P=N.end,q=P-D,G=b?P:D-1,Y=this.__iteratees__,Z=Y.length,ue=0,he=Xe(q,this.__takeCount__);if(!h||!b&&k==q&&he==q)return Ss(s,this.__actions__);var ye=[];e:for(;q--&&ue<he;){G+=u;for(var ke=-1,be=s[G];++ke<Z;){var $e=Y[ke],Te=$e.iteratee,pt=$e.type,nt=Te(be);if(pt==ge)be=nt;else if(!nt){if(pt==ne)continue e;break e}}ye[ue++]=be}return ye}Ne.prototype=yr(on.prototype),Ne.prototype.constructor=Ne;function rr(s){var u=-1,h=s==null?0:s.length;for(this.clear();++u<h;){var b=s[u];this.set(b[0],b[1])}}function Nu(){this.__data__=Nr?Nr(null):{},this.size=0}function Tu(s){var u=this.has(s)&&delete this.__data__[s];return this.size-=u?1:0,u}function Au(s){var u=this.__data__;if(Nr){var h=u[s];return h===c?t:h}return Oe.call(u,s)?u[s]:t}function Du(s){var u=this.__data__;return Nr?u[s]!==t:Oe.call(u,s)}function Bu(s,u){var h=this.__data__;return this.size+=this.has(s)?0:1,h[s]=Nr&&u===t?c:u,this}rr.prototype.clear=Nu,rr.prototype.delete=Tu,rr.prototype.get=Au,rr.prototype.has=Du,rr.prototype.set=Bu;function Bt(s){var u=-1,h=s==null?0:s.length;for(this.clear();++u<h;){var b=s[u];this.set(b[0],b[1])}}function Ou(){this.__data__=[],this.size=0}function Pu(s){var u=this.__data__,h=sn(u,s);if(h<0)return!1;var b=u.length-1;return h==b?u.pop():Zr.call(u,h,1),--this.size,!0}function Lu(s){var u=this.__data__,h=sn(u,s);return h<0?t:u[h][1]}function Ru(s){return sn(this.__data__,s)>-1}function Iu(s,u){var h=this.__data__,b=sn(h,s);return b<0?(++this.size,h.push([s,u])):h[b][1]=u,this}Bt.prototype.clear=Ou,Bt.prototype.delete=Pu,Bt.prototype.get=Lu,Bt.prototype.has=Ru,Bt.prototype.set=Iu;function Ot(s){var u=-1,h=s==null?0:s.length;for(this.clear();++u<h;){var b=s[u];this.set(b[0],b[1])}}function Mu(){this.size=0,this.__data__={hash:new rr,map:new(Vr||Bt),string:new rr}}function Fu(s){var u=yn(this,s).delete(s);return this.size-=u?1:0,u}function qu(s){return yn(this,s).get(s)}function Uu(s){return yn(this,s).has(s)}function Wu(s,u){var h=yn(this,s),b=h.size;return h.set(s,u),this.size+=h.size==b?0:1,this}Ot.prototype.clear=Mu,Ot.prototype.delete=Fu,Ot.prototype.get=qu,Ot.prototype.has=Uu,Ot.prototype.set=Wu;function nr(s){var u=-1,h=s==null?0:s.length;for(this.__data__=new Ot;++u<h;)this.add(s[u])}function ju(s){return this.__data__.set(s,c),this}function Hu(s){return this.__data__.has(s)}nr.prototype.add=nr.prototype.push=ju,nr.prototype.has=Hu;function Et(s){var u=this.__data__=new Bt(s);this.size=u.size}function zu(){this.__data__=new Bt,this.size=0}function Gu(s){var u=this.__data__,h=u.delete(s);return this.size=u.size,h}function Ku(s){return this.__data__.get(s)}function Yu(s){return this.__data__.has(s)}function Ju(s,u){var h=this.__data__;if(h instanceof Bt){var b=h.__data__;if(!Vr||b.length<a-1)return b.push([s,u]),this.size=++h.size,this;h=this.__data__=new Ot(b)}return h.set(s,u),this.size=h.size,this}Et.prototype.clear=zu,Et.prototype.delete=Gu,Et.prototype.get=Ku,Et.prototype.has=Yu,Et.prototype.set=Ju;function Ko(s,u){var h=Ce(s),b=!h&&lr(s),k=!h&&!b&&Xt(s),N=!h&&!b&&!k&&wr(s),D=h||b||k||N,P=D?ra(s.length,su):[],q=P.length;for(var G in s)(u||Oe.call(s,G))&&!(D&&(G=="length"||k&&(G=="offset"||G=="parent")||N&&(G=="buffer"||G=="byteLength"||G=="byteOffset")||It(G,q)))&&P.push(G);return P}function Yo(s){var u=s.length;return u?s[ya(0,u-1)]:t}function Qu(s,u){return bn(ot(s),ar(u,0,s.length))}function Xu(s){return bn(ot(s))}function ua(s,u,h){(h!==t&&!Vt(s[u],h)||h===t&&!(u in s))&&Pt(s,u,h)}function Ar(s,u,h){var b=s[u];(!(Oe.call(s,u)&&Vt(b,h))||h===t&&!(u in s))&&Pt(s,u,h)}function sn(s,u){for(var h=s.length;h--;)if(Vt(s[h][0],u))return h;return-1}function Zu(s,u,h,b){return Kt(s,function(k,N,D){u(b,k,h(k),D)}),b}function Jo(s,u){return s&&At(u,Ke(u),s)}function ec(s,u){return s&&At(u,it(u),s)}function Pt(s,u,h){u=="__proto__"&&en?en(s,u,{configurable:!0,enumerable:!0,value:h,writable:!0}):s[u]=h}function ca(s,u){for(var h=-1,b=u.length,k=j(b),N=s==null;++h<b;)k[h]=N?t:ja(s,u[h]);return k}function ar(s,u,h){return s===s&&(h!==t&&(s=s<=h?s:h),u!==t&&(s=s>=u?s:u)),s}function St(s,u,h,b,k,N){var D,P=u&p,q=u&v,G=u&m;if(h&&(D=k?h(s,b,k,N):h(s)),D!==t)return D;if(!Fe(s))return s;var Y=Ce(s);if(Y){if(D=Uc(s),!P)return ot(s,D)}else{var Z=Ze(s),ue=Z==Ve||Z==Ae;if(Xt(s))return ks(s,P);if(Z==He||Z==U||ue&&!k){if(D=q||ue?{}:Ws(s),!P)return q?Ac(s,ec(D,s)):Tc(s,Jo(D,s))}else{if(!Re[Z])return k?s:{};D=Wc(s,Z,P)}}N||(N=new Et);var he=N.get(s);if(he)return he;N.set(s,D),yi(s)?s.forEach(function(be){D.add(St(be,u,h,be,s,N))}):gi(s)&&s.forEach(function(be,$e){D.set($e,St(be,u,h,$e,s,N))});var ye=G?q?Ta:Na:q?it:Ke,ke=Y?t:ye(s);return _t(ke||s,function(be,$e){ke&&($e=be,be=s[$e]),Ar(D,$e,St(be,u,h,$e,s,N))}),D}function tc(s){var u=Ke(s);return function(h){return Qo(h,s,u)}}function Qo(s,u,h){var b=h.length;if(s==null)return!b;for(s=Le(s);b--;){var k=h[b],N=u[k],D=s[k];if(D===t&&!(k in s)||!N(D))return!1}return!0}function Xo(s,u,h){if(typeof s!="function")throw new yt(i);return Ir(function(){s.apply(t,h)},u)}function Dr(s,u,h,b){var k=-1,N=Wr,D=!0,P=s.length,q=[],G=u.length;if(!P)return q;h&&(u=Me(u,ct(h))),b?(N=Gn,D=!1):u.length>=a&&(N=xr,D=!1,u=new nr(u));e:for(;++k<P;){var Y=s[k],Z=h==null?Y:h(Y);if(Y=b||Y!==0?Y:0,D&&Z===Z){for(var ue=G;ue--;)if(u[ue]===Z)continue e;q.push(Y)}else N(u,Z,b)||q.push(Y)}return q}var Kt=Ns(Tt),Zo=Ns(fa,!0);function rc(s,u){var h=!0;return Kt(s,function(b,k,N){return h=!!u(b,k,N),h}),h}function ln(s,u,h){for(var b=-1,k=s.length;++b<k;){var N=s[b],D=u(N);if(D!=null&&(P===t?D===D&&!ft(D):h(D,P)))var P=D,q=N}return q}function nc(s,u,h,b){var k=s.length;for(h=we(h),h<0&&(h=-h>k?0:k+h),b=b===t||b>k?k:we(b),b<0&&(b+=k),b=h>b?0:Si(b);h<b;)s[h++]=u;return s}function es(s,u){var h=[];return Kt(s,function(b,k,N){u(b,k,N)&&h.push(b)}),h}function Je(s,u,h,b,k){var N=-1,D=s.length;for(h||(h=Hc),k||(k=[]);++N<D;){var P=s[N];u>0&&h(P)?u>1?Je(P,u-1,h,b,k):Ht(k,P):b||(k[k.length]=P)}return k}var da=Ts(),ts=Ts(!0);function Tt(s,u){return s&&da(s,u,Ke)}function fa(s,u){return s&&ts(s,u,Ke)}function un(s,u){return jt(u,function(h){return Mt(s[h])})}function or(s,u){u=Jt(u,s);for(var h=0,b=u.length;s!=null&&h<b;)s=s[Dt(u[h++])];return h&&h==b?s:t}function rs(s,u,h){var b=u(s);return Ce(s)?b:Ht(b,h(s))}function tt(s){return s==null?s===t?ur:Qe:tr&&tr in Le(s)?Mc(s):Xc(s)}function pa(s,u){return s>u}function ac(s,u){return s!=null&&Oe.call(s,u)}function oc(s,u){return s!=null&&u in Le(s)}function sc(s,u,h){return s>=Xe(u,h)&&s<Ge(u,h)}function va(s,u,h){for(var b=h?Gn:Wr,k=s[0].length,N=s.length,D=N,P=j(N),q=1/0,G=[];D--;){var Y=s[D];D&&u&&(Y=Me(Y,ct(u))),q=Xe(Y.length,q),P[D]=!h&&(u||k>=120&&Y.length>=120)?new nr(D&&Y):t}Y=s[0];var Z=-1,ue=P[0];e:for(;++Z<k&&G.length<q;){var he=Y[Z],ye=u?u(he):he;if(he=h||he!==0?he:0,!(ue?xr(ue,ye):b(G,ye,h))){for(D=N;--D;){var ke=P[D];if(!(ke?xr(ke,ye):b(s[D],ye,h)))continue e}ue&&ue.push(ye),G.push(he)}}return G}function ic(s,u,h,b){return Tt(s,function(k,N,D){u(b,h(k),N,D)}),b}function Br(s,u,h){u=Jt(u,s),s=Gs(s,u);var b=s==null?s:s[Dt(wt(u))];return b==null?t:ut(b,s,h)}function ns(s){return qe(s)&&tt(s)==U}function lc(s){return qe(s)&&tt(s)==Wt}function uc(s){return qe(s)&&tt(s)==le}function Or(s,u,h,b,k){return s===u?!0:s==null||u==null||!qe(s)&&!qe(u)?s!==s&&u!==u:cc(s,u,h,b,Or,k)}function cc(s,u,h,b,k,N){var D=Ce(s),P=Ce(u),q=D?ae:Ze(s),G=P?ae:Ze(u);q=q==U?He:q,G=G==U?He:G;var Y=q==He,Z=G==He,ue=q==G;if(ue&&Xt(s)){if(!Xt(u))return!1;D=!0,Y=!1}if(ue&&!Y)return N||(N=new Et),D||wr(s)?Fs(s,u,h,b,k,N):Rc(s,u,q,h,b,k,N);if(!(h&g)){var he=Y&&Oe.call(s,"__wrapped__"),ye=Z&&Oe.call(u,"__wrapped__");if(he||ye){var ke=he?s.value():s,be=ye?u.value():u;return N||(N=new Et),k(ke,be,h,b,N)}}return ue?(N||(N=new Et),Ic(s,u,h,b,k,N)):!1}function dc(s){return qe(s)&&Ze(s)==xe}function ha(s,u,h,b){var k=h.length,N=k,D=!b;if(s==null)return!N;for(s=Le(s);k--;){var P=h[k];if(D&&P[2]?P[1]!==s[P[0]]:!(P[0]in s))return!1}for(;++k<N;){P=h[k];var q=P[0],G=s[q],Y=P[1];if(D&&P[2]){if(G===t&&!(q in s))return!1}else{var Z=new Et;if(b)var ue=b(G,Y,q,s,u,Z);if(!(ue===t?Or(Y,G,g|_,b,Z):ue))return!1}}return!0}function as(s){if(!Fe(s)||Gc(s))return!1;var u=Mt(s)?du:tl;return u.test(ir(s))}function fc(s){return qe(s)&&tt(s)==ht}function pc(s){return qe(s)&&Ze(s)==Ue}function vc(s){return qe(s)&&En(s.length)&&!!Ie[tt(s)]}function ss(s){return typeof s=="function"?s:s==null?lt:typeof s=="object"?Ce(s)?cs(s[0],s[1]):us(s):Di(s)}function ma(s){if(!Rr(s))return gu(s);var u=[];for(var h in Le(s))Oe.call(s,h)&&h!="constructor"&&u.push(h);return u}function hc(s){if(!Fe(s))return Qc(s);var u=Rr(s),h=[];for(var b in s)b=="constructor"&&(u||!Oe.call(s,b))||h.push(b);return h}function ga(s,u){return s<u}function ls(s,u){var h=-1,b=st(s)?j(s.length):[];return Kt(s,function(k,N,D){b[++h]=u(k,N,D)}),b}function us(s){var u=Da(s);return u.length==1&&u[0][2]?Hs(u[0][0],u[0][1]):function(h){return h===s||ha(h,s,u)}}function cs(s,u){return Oa(s)&&js(u)?Hs(Dt(s),u):function(h){var b=ja(h,s);return b===t&&b===u?Ha(h,s):Or(u,b,g|_)}}function cn(s,u,h,b,k){s!==u&&da(u,function(N,D){if(k||(k=new Et),Fe(N))mc(s,u,D,h,cn,b,k);else{var P=b?b(La(s,D),N,D+"",s,u,k):t;P===t&&(P=N),ua(s,D,P)}},it)}function mc(s,u,h,b,k,N,D){var P=La(s,h),q=La(u,h),G=D.get(q);if(G){ua(s,h,G);return}var Y=N?N(P,q,h+"",s,u,D):t,Z=Y===t;if(Z){var ue=Ce(q),he=!ue&&Xt(q),ye=!ue&&!he&&wr(q);Y=q,ue||he||ye?Ce(P)?Y=P:We(P)?Y=ot(P):he?(Z=!1,Y=ks(q,!0)):ye?(Z=!1,Y=xs(q,!0)):Y=[]:Mr(q)||lr(q)?(Y=P,lr(P)?Y=Ci(P):(!Fe(P)||Mt(P))&&(Y=Ws(q))):Z=!1}Z&&(D.set(q,Y),k(Y,q,b,N,D),D.delete(q)),ua(s,h,Y)}function ds(s,u){var h=s.length;if(h)return u+=u<0?h:0,It(u,h)?s[u]:t}function ps(s,u,h){u.length?u=Me(u,function(N){return Ce(N)?function(D){return or(D,N.length===1?N[0]:N)}:N}):u=[lt];var b=-1;u=Me(u,ct(_e()));var k=ls(s,function(N,D,P){var q=Me(u,function(G){return G(N)});return{criteria:q,index:++b,value:N}});return Wl(k,function(N,D){return Nc(N,D,h)})}function gc(s,u){return vs(s,u,function(h,b){return Ha(s,b)})}function vs(s,u,h){for(var b=-1,k=u.length,N={};++b<k;){var D=u[b],P=or(s,D);h(P,D)&&Pr(N,Jt(D,s),P)}return N}function _c(s){return function(u){return or(u,s)}}function _a(s,u,h,b){var k=b?Ul:fr,N=-1,D=u.length,P=s;for(s===u&&(u=ot(u)),h&&(P=Me(s,ct(h)));++N<D;)for(var q=0,G=u[N],Y=h?h(G):G;(q=k(P,Y,q,b))>-1;)P!==s&&Zr.call(P,q,1),Zr.call(s,q,1);return s}function hs(s,u){for(var h=s?u.length:0,b=h-1;h--;){var k=u[h];if(h==b||k!==N){var N=k;It(k)?Zr.call(s,k,1):Ca(s,k)}}return s}function ya(s,u){return s+rn(zo()*(u-s+1))}function yc(s,u,h,b){for(var k=-1,N=Ge(tn((u-s)/(h||1)),0),D=j(N);N--;)D[b?N:++k]=s,s+=h;return D}function ba(s,u){var h="";if(!s||u<1||u>A)return h;do u%2&&(h+=s),u=rn(u/2),u&&(s+=s);while(u);return h}function Ee(s,u){return Ra(zs(s,u,lt),s+"")}function bc(s){return Yo(kr(s))}function Sc(s,u){var h=kr(s);return bn(h,ar(u,0,h.length))}function Pr(s,u,h,b){if(!Fe(s))return s;u=Jt(u,s);for(var k=-1,N=u.length,D=N-1,P=s;P!=null&&++k<N;){var q=Dt(u[k]),G=h;if(q==="__proto__"||q==="constructor"||q==="prototype")return s;if(k!=D){var Y=P[q];G=b?b(Y,q,P):t,G===t&&(G=Fe(Y)?Y:It(u[k+1])?[]:{})}Ar(P,q,G),P=P[q]}return s}var gs=nn?function(s,u){return nn.set(s,u),s}:lt,Cc=en?function(s,u){return en(s,"toString",{configurable:!0,enumerable:!1,value:Ga(u),writable:!0})}:lt;function wc(s){return bn(kr(s))}function Ct(s,u,h){var b=-1,k=s.length;u<0&&(u=-u>k?0:k+u),h=h>k?k:h,h<0&&(h+=k),k=u>h?0:h-u>>>0,u>>>=0;for(var N=j(k);++b<k;)N[b]=s[b+u];return N}function kc(s,u){var h;return Kt(s,function(b,k,N){return h=u(b,k,N),!h}),!!h}function dn(s,u,h){var b=0,k=s==null?b:s.length;if(typeof u=="number"&&u===u&&k<=O){for(;b<k;){var N=b+k>>>1,D=s[N];D!==null&&!ft(D)&&(h?D<=u:D<u)?b=N+1:k=N}return k}return Sa(s,u,lt,h)}function Sa(s,u,h,b){var k=0,N=s==null?0:s.length;if(N===0)return 0;u=h(u);for(var D=u!==u,P=u===null,q=ft(u),G=u===t;k<N;){var Y=rn((k+N)/2),Z=h(s[Y]),ue=Z!==t,he=Z===null,ye=Z===Z,ke=ft(Z);if(D)var be=b||ye;else G?be=ye&&(b||ue):P?be=ye&&ue&&(b||!he):q?be=ye&&ue&&!he&&(b||!ke):he||ke?be=!1:be=b?Z<=u:Z<u;be?k=Y+1:N=Y}return Xe(N,fe)}function _s(s,u){for(var h=-1,b=s.length,k=0,N=[];++h<b;){var D=s[h],P=u?u(D):D;if(!h||!Vt(P,q)){var q=P;N[k++]=D===0?0:D}}return N}function ys(s){return typeof s=="number"?s:ft(s)?W:+s}function dt(s){if(typeof s=="string")return s;if(Ce(s))return Me(s,dt)+"";if(ft(s))return Go?Go.call(s):"";var u=s+"";return u=="0"&&1/s==-de?"-0":u}function Yt(s,u,h){var b=-1,k=Wr,N=s.length,D=!0,P=[],q=P;if(h)D=!1,k=Gn;else if(N>=a){var G=u?null:Pc(s);if(G)return Hr(G);D=!1,k=xr,q=new nr}else q=u?[]:P;e:for(;++b<N;){var Y=s[b],Z=u?u(Y):Y;if(Y=h||Y!==0?Y:0,D&&Z===Z){for(var ue=q.length;ue--;)if(q[ue]===Z)continue e;u&&q.push(Z),P.push(Y)}else k(q,Z,h)||(q!==P&&q.push(Z),P.push(Y))}return P}function Ca(s,u){return u=Jt(u,s),s=Gs(s,u),s==null||delete s[Dt(wt(u))]}function bs(s,u,h,b){return Pr(s,u,h(or(s,u)),b)}function fn(s,u,h,b){for(var k=s.length,N=b?k:-1;(b?N--:++N<k)&&u(s[N],N,s););return h?Ct(s,b?0:N,b?N+1:k):Ct(s,b?N+1:0,b?k:N)}function Ss(s,u){var h=s;return h instanceof Ne&&(h=h.value()),Kn(u,function(b,k){return k.func.apply(k.thisArg,Ht([b],k.args))},h)}function wa(s,u,h){var b=s.length;if(b<2)return b?Yt(s[0]):[];for(var k=-1,N=j(b);++k<b;)for(var D=s[k],P=-1;++P<b;)P!=k&&(N[k]=Dr(N[k]||D,s[P],u,h));return Yt(Je(N,1),u,h)}function Cs(s,u,h){for(var b=-1,k=s.length,N=u.length,D={};++b<k;){var P=b<N?u[b]:t;h(D,s[b],P)}return D}function ka(s){return We(s)?s:[]}function xa(s){return typeof s=="function"?s:lt}function Jt(s,u){return Ce(s)?s:Oa(s,u)?[s]:Qs(Be(s))}var xc=Ee;function Qt(s,u,h){var b=s.length;return h=h===t?b:h,!u&&h>=b?s:Ct(s,u,h)}var ws=fu||function(s){return Ye.clearTimeout(s)};function ks(s,u){if(u)return s.slice();var h=s.length,b=qo?qo(h):new s.constructor(h);return s.copy(b),b}function Ea(s){var u=new s.constructor(s.byteLength);return new Qr(u).set(new Qr(s)),u}function Ec(s,u){var h=u?Ea(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.byteLength)}function Vc(s){var u=new s.constructor(s.source,ro.exec(s));return u.lastIndex=s.lastIndex,u}function $c(s){return Tr?Le(Tr.call(s)):{}}function xs(s,u){var h=u?Ea(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.length)}function Es(s,u){if(s!==u){var h=s!==t,b=s===null,k=s===s,N=ft(s),D=u!==t,P=u===null,q=u===u,G=ft(u);if(!P&&!G&&!N&&s>u||N&&D&&q&&!P&&!G||b&&D&&q||!h&&q||!k)return 1;if(!b&&!N&&!G&&s<u||G&&h&&k&&!b&&!N||P&&h&&k||!D&&k||!q)return-1}return 0}function Nc(s,u,h){for(var b=-1,k=s.criteria,N=u.criteria,D=k.length,P=h.length;++b<D;){var q=Es(k[b],N[b]);if(q){if(b>=P)return q;var G=h[b];return q*(G=="desc"?-1:1)}}return s.index-u.index}function Vs(s,u,h,b){for(var k=-1,N=s.length,D=h.length,P=-1,q=u.length,G=Ge(N-D,0),Y=j(q+G),Z=!b;++P<q;)Y[P]=u[P];for(;++k<D;)(Z||k<N)&&(Y[h[k]]=s[k]);for(;G--;)Y[P++]=s[k++];return Y}function $s(s,u,h,b){for(var k=-1,N=s.length,D=-1,P=h.length,q=-1,G=u.length,Y=Ge(N-P,0),Z=j(Y+G),ue=!b;++k<Y;)Z[k]=s[k];for(var he=k;++q<G;)Z[he+q]=u[q];for(;++D<P;)(ue||k<N)&&(Z[he+h[D]]=s[k++]);return Z}function ot(s,u){var h=-1,b=s.length;for(u||(u=j(b));++h<b;)u[h]=s[h];return u}function At(s,u,h,b){var k=!h;h||(h={});for(var N=-1,D=u.length;++N<D;){var P=u[N],q=b?b(h[P],s[P],P,h,s):t;q===t&&(q=s[P]),k?Pt(h,P,q):Ar(h,P,q)}return h}function Tc(s,u){return At(s,Ba(s),u)}function Ac(s,u){return At(s,qs(s),u)}function pn(s,u){return function(h,b){var k=Ce(h)?Ll:Zu,N=u?u():{};return k(h,s,_e(b,2),N)}}function br(s){return Ee(function(u,h){var b=-1,k=h.length,N=k>1?h[k-1]:t,D=k>2?h[2]:t;for(N=s.length>3&&typeof N=="function"?(k--,N):t,D&&rt(h[0],h[1],D)&&(N=k<3?t:N,k=1),u=Le(u);++b<k;){var P=h[b];P&&s(u,P,b,N)}return u})}function Ns(s,u){return function(h,b){if(h==null)return h;if(!st(h))return s(h,b);for(var k=h.length,N=u?k:-1,D=Le(h);(u?N--:++N<k)&&b(D[N],N,D)!==!1;);return h}}function Ts(s){return function(u,h,b){for(var k=-1,N=Le(u),D=b(u),P=D.length;P--;){var q=D[s?P:++k];if(h(N[q],q,N)===!1)break}return u}}function Dc(s,u,h){var b=u&S,k=Lr(s);function N(){var D=this&&this!==Ye&&this instanceof N?k:s;return D.apply(b?h:this,arguments)}return N}function As(s){return function(u){u=Be(u);var h=pr(u)?xt(u):t,b=h?h[0]:u.charAt(0),k=h?Qt(h,1).join(""):u.slice(1);return b[s]()+k}}function Sr(s){return function(u){return Kn(Ti(Ni(u).replace(Cl,"")),s,"")}}function Lr(s){return function(){var u=arguments;switch(u.length){case 0:return new s;case 1:return new s(u[0]);case 2:return new s(u[0],u[1]);case 3:return new s(u[0],u[1],u[2]);case 4:return new s(u[0],u[1],u[2],u[3]);case 5:return new s(u[0],u[1],u[2],u[3],u[4]);case 6:return new s(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new s(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var h=yr(s.prototype),b=s.apply(h,u);return Fe(b)?b:h}}function Bc(s,u,h){var b=Lr(s);function k(){for(var N=arguments.length,D=j(N),P=N,q=Cr(k);P--;)D[P]=arguments[P];var G=N<3&&D[0]!==q&&D[N-1]!==q?[]:zt(D,q);if(N-=G.length,N<h)return Ls(s,u,vn,k.placeholder,t,D,G,t,t,h-N);var Y=this&&this!==Ye&&this instanceof k?b:s;return ut(Y,this,D)}return k}function Ds(s){return function(u,h,b){var k=Le(u);if(!st(u)){var N=_e(h,3);u=Ke(u),h=function(P){return N(k[P],P,k)}}var D=s(u,h,b);return D>-1?k[N?u[D]:D]:t}}function Bs(s){return Rt(function(u){var h=u.length,b=h,k=bt.prototype.thru;for(s&&u.reverse();b--;){var N=u[b];if(typeof N!="function")throw new yt(i);if(k&&!D&&_n(N)=="wrapper")var D=new bt([],!0)}for(b=D?b:h;++b<h;){N=u[b];var P=_n(N),q=P=="wrapper"?Aa(N):t;q&&Pa(q[0])&&q[1]==(R|E|T|L)&&!q[4].length&&q[9]==1?D=D[_n(q[0])].apply(D,q[3]):D=N.length==1&&Pa(N)?D[P]():D.thru(N)}return function(){var G=arguments,Y=G[0];if(D&&G.length==1&&Ce(Y))return D.plant(Y).value();for(var Z=0,ue=h?u[Z].apply(this,G):Y;++Z<h;)ue=u[Z].call(this,ue);return ue}})}function vn(s,u,h,b,k,N,D,P,q,G){var Y=u&R,Z=u&S,ue=u&C,he=u&(E|$),ye=u&te,ke=ue?t:Lr(s);function be(){for(var $e=arguments.length,Te=j($e),pt=$e;pt--;)Te[pt]=arguments[pt];if(he)var nt=Cr(be),vt=Hl(Te,nt);if(b&&(Te=Vs(Te,b,k,he)),N&&(Te=$s(Te,N,D,he)),$e-=vt,he&&$e<G){var je=zt(Te,nt);return Ls(s,u,vn,be.placeholder,h,Te,je,P,q,G-$e)}var $t=Z?h:this,qt=ue?$t[s]:s;return $e=Te.length,P?Te=Zc(Te,P):ye&&$e>1&&Te.reverse(),Y&&q<$e&&(Te.length=q),this&&this!==Ye&&this instanceof be&&(qt=ke||Lr(qt)),qt.apply($t,Te)}return be}function Os(s,u){return function(h,b){return ic(h,s,u(b),{})}}function hn(s,u){return function(h,b){var k;if(h===t&&b===t)return u;if(h!==t&&(k=h),b!==t){if(k===t)return b;typeof h=="string"||typeof b=="string"?(h=dt(h),b=dt(b)):(h=ys(h),b=ys(b)),k=s(h,b)}return k}}function Va(s){return Rt(function(u){return u=Me(u,ct(_e())),Ee(function(h){var b=this;return s(u,function(k){return ut(k,b,h)})})})}function mn(s,u){u=u===t?" ":dt(u);var h=u.length;if(h<2)return h?ba(u,s):u;var b=ba(u,tn(s/vr(u)));return pr(u)?Qt(xt(b),0,s).join(""):b.slice(0,s)}function Oc(s,u,h,b){var k=u&S,N=Lr(s);function D(){for(var P=-1,q=arguments.length,G=-1,Y=b.length,Z=j(Y+q),ue=this&&this!==Ye&&this instanceof D?N:s;++G<Y;)Z[G]=b[G];for(;q--;)Z[G++]=arguments[++P];return ut(ue,k?h:this,Z)}return D}function Ps(s){return function(u,h,b){return b&&typeof b!="number"&&rt(u,h,b)&&(h=b=t),u=Ft(u),h===t?(h=u,u=0):h=Ft(h),b=b===t?u<h?1:-1:Ft(b),yc(u,h,b,s)}}function gn(s){return function(u,h){return typeof u=="string"&&typeof h=="string"||(u=kt(u),h=kt(h)),s(u,h)}}function Ls(s,u,h,b,k,N,D,P,q,G){var Y=u&E,Z=Y?D:t,ue=Y?t:D,he=Y?N:t,ye=Y?t:N;u|=Y?T:B,u&=~(Y?B:T),u&w||(u&=~(S|C));var ke=[s,u,k,he,Z,ye,ue,P,q,G],be=h.apply(t,ke);return Pa(s)&&Ks(be,ke),be.placeholder=b,Ys(be,s,u)}function $a(s){var u=ze[s];return function(h,b){if(h=kt(h),b=b==null?0:Xe(we(b),292),b&&Ho(h)){var k=(Be(h)+"e").split("e"),N=u(k[0]+"e"+(+k[1]+b));return k=(Be(N)+"e").split("e"),+(k[0]+"e"+(+k[1]-b))}return u(h)}}var Pc=gr&&1/Hr(new gr([,-0]))[1]==de?function(s){return new gr(s)}:Ja;function Rs(s){return function(u){var h=Ze(u);return h==xe?aa(u):h==Ue?Xl(u):jl(u,s(u))}}function Lt(s,u,h,b,k,N,D,P){var q=u&C;if(!q&&typeof s!="function")throw new yt(i);var G=b?b.length:0;if(G||(u&=~(T|B),b=k=t),D=D===t?D:Ge(we(D),0),P=P===t?P:we(P),G-=k?k.length:0,u&B){var Y=b,Z=k;b=k=t}var ue=q?t:Aa(s),he=[s,u,h,b,k,Y,Z,N,D,P];if(ue&&Jc(he,ue),s=he[0],u=he[1],h=he[2],b=he[3],k=he[4],P=he[9]=he[9]===t?q?0:s.length:Ge(he[9]-G,0),!P&&u&(E|$)&&(u&=~(E|$)),!u||u==S)var ye=Dc(s,u,h);else u==E||u==$?ye=Bc(s,u,P):(u==T||u==(S|T))&&!k.length?ye=Oc(s,u,h,b):ye=vn.apply(t,he);var ke=ue?gs:Ks;return Ys(ke(ye,he),s,u)}function Is(s,u,h,b){return s===t||Vt(s,mr[h])&&!Oe.call(b,h)?u:s}function Ms(s,u,h,b,k,N){return Fe(s)&&Fe(u)&&(N.set(u,s),cn(s,u,t,Ms,N),N.delete(u)),s}function Lc(s){return Mr(s)?t:s}function Fs(s,u,h,b,k,N){var D=h&g,P=s.length,q=u.length;if(P!=q&&!(D&&q>P))return!1;var G=N.get(s),Y=N.get(u);if(G&&Y)return G==u&&Y==s;var Z=-1,ue=!0,he=h&_?new nr:t;for(N.set(s,u),N.set(u,s);++Z<P;){var ye=s[Z],ke=u[Z];if(b)var be=D?b(ke,ye,Z,u,s,N):b(ye,ke,Z,s,u,N);if(be!==t){if(be)continue;ue=!1;break}if(he){if(!Jn(u,function($e,Te){if(!xr(he,Te)&&(ye===$e||k(ye,$e,h,b,N)))return he.push(Te)})){ue=!1;break}}else if(!(ye===ke||k(ye,ke,h,b,N))){ue=!1;break}}return N.delete(s),N.delete(u),ue}function Rc(s,u,h,b,k,N,D){switch(h){case cr:if(s.byteLength!=u.byteLength||s.byteOffset!=u.byteOffset)return!1;s=s.buffer,u=u.buffer;case Wt:return!(s.byteLength!=u.byteLength||!N(new Qr(s),new Qr(u)));case se:case le:case Pe:return Vt(+s,+u);case ve:return s.name==u.name&&s.message==u.message;case ht:case mt:return s==u+"";case xe:var P=aa;case Ue:var q=b&g;if(P||(P=Hr),s.size!=u.size&&!q)return!1;var G=D.get(s);if(G)return G==u;b|=_,D.set(s,u);var Y=Fs(P(s),P(u),b,k,N,D);return D.delete(s),Y;case at:if(Tr)return Tr.call(s)==Tr.call(u)}return!1}function Ic(s,u,h,b,k,N){var D=h&g,P=Na(s),q=P.length,G=Na(u),Y=G.length;if(q!=Y&&!D)return!1;for(var Z=q;Z--;){var ue=P[Z];if(!(D?ue in u:Oe.call(u,ue)))return!1}var he=N.get(s),ye=N.get(u);if(he&&ye)return he==u&&ye==s;var ke=!0;N.set(s,u),N.set(u,s);for(var be=D;++Z<q;){ue=P[Z];var $e=s[ue],Te=u[ue];if(b)var pt=D?b(Te,$e,ue,u,s,N):b($e,Te,ue,s,u,N);if(!(pt===t?$e===Te||k($e,Te,h,b,N):pt)){ke=!1;break}be||(be=ue=="constructor")}if(ke&&!be){var nt=s.constructor,vt=u.constructor;nt!=vt&&"constructor"in s&&"constructor"in u&&!(typeof nt=="function"&&nt instanceof nt&&typeof vt=="function"&&vt instanceof vt)&&(ke=!1)}return N.delete(s),N.delete(u),ke}function Rt(s){return Ra(zs(s,t,ti),s+"")}function Na(s){return rs(s,Ke,Ba)}function Ta(s){return rs(s,it,qs)}var Aa=nn?function(s){return nn.get(s)}:Ja;function _n(s){for(var u=s.name+"",h=_r[u],b=Oe.call(_r,u)?h.length:0;b--;){var k=h[b],N=k.func;if(N==null||N==s)return k.name}return u}function Cr(s){var u=Oe.call(V,"placeholder")?V:s;return u.placeholder}function _e(){var s=V.iteratee||Ka;return s=s===Ka?ss:s,arguments.length?s(arguments[0],arguments[1]):s}function yn(s,u){var h=s.__data__;return zc(u)?h[typeof u=="string"?"string":"hash"]:h.map}function Da(s){for(var u=Ke(s),h=u.length;h--;){var b=u[h],k=s[b];u[h]=[b,k,js(k)]}return u}function sr(s,u){var h=Yl(s,u);return as(h)?h:t}function Mc(s){var u=Oe.call(s,tr),h=s[tr];try{s[tr]=t;var b=!0}catch{}var k=Yr.call(s);return b&&(u?s[tr]=h:delete s[tr]),k}var Ba=sa?function(s){return s==null?[]:(s=Le(s),jt(sa(s),function(u){return Wo.call(s,u)}))}:Qa,qs=sa?function(s){for(var u=[];s;)Ht(u,Ba(s)),s=Xr(s);return u}:Qa,Ze=tt;(ia&&Ze(new ia(new ArrayBuffer(1)))!=cr||Vr&&Ze(new Vr)!=xe||la&&Ze(la.resolve())!=et||gr&&Ze(new gr)!=Ue||$r&&Ze(new $r)!=Nt)&&(Ze=function(s){var u=tt(s),h=u==He?s.constructor:t,b=h?ir(h):"";if(b)switch(b){case Su:return cr;case Cu:return xe;case wu:return et;case ku:return Ue;case xu:return Nt}return u});function Fc(s,u,h){for(var b=-1,k=h.length;++b<k;){var N=h[b],D=N.size;switch(N.type){case"drop":s+=D;break;case"dropRight":u-=D;break;case"take":u=Xe(u,s+D);break;case"takeRight":s=Ge(s,u-D);break}}return{start:s,end:u}}function qc(s){var u=s.match(Gi);return u?u[1].split(Ki):[]}function Us(s,u,h){u=Jt(u,s);for(var b=-1,k=u.length,N=!1;++b<k;){var D=Dt(u[b]);if(!(N=s!=null&&h(s,D)))break;s=s[D]}return N||++b!=k?N:(k=s==null?0:s.length,!!k&&En(k)&&It(D,k)&&(Ce(s)||lr(s)))}function Uc(s){var u=s.length,h=new s.constructor(u);return u&&typeof s[0]=="string"&&Oe.call(s,"index")&&(h.index=s.index,h.input=s.input),h}function Ws(s){return typeof s.constructor=="function"&&!Rr(s)?yr(Xr(s)):{}}function Wc(s,u,h){var b=s.constructor;switch(u){case Wt:return Ea(s);case se:case le:return new b(+s);case cr:return Ec(s,h);case Nn:case Tn:case An:case Dn:case Bn:case On:case Pn:case Ln:case Rn:return xs(s,h);case xe:return new b;case Pe:case mt:return new b(s);case ht:return Vc(s);case Ue:return new b;case at:return $c(s)}}function jc(s,u){var h=u.length;if(!h)return s;var b=h-1;return u[b]=(h>1?"& ":"")+u[b],u=u.join(h>2?", ":" "),s.replace(zi,`{
9
9
  /* [wrapped with `+u+`] */
10
- `)}function Hc(s){return Ce(s)||lr(s)||!!(Wo&&s&&s[Wo])}function It(s,u){var h=typeof s;return u=u??A,!!u&&(h=="number"||h!="symbol"&&nl.test(s))&&s>-1&&s%1==0&&s<u}function rt(s,u,h){if(!Fe(h))return!1;var b=typeof u;return(b=="number"?st(h)&&It(u,h.length):b=="string"&&u in h)?Vt(h[u],s):!1}function Oa(s,u){if(Ce(s))return!1;var h=typeof s;return h=="number"||h=="symbol"||h=="boolean"||s==null||ft(s)?!0:Ui.test(s)||!qi.test(s)||u!=null&&s in Le(u)}function zc(s){var u=typeof s;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?s!=="__proto__":s===null}function Pa(s){var u=_n(s),h=V[u];if(typeof h!="function"||!(u in Ne.prototype))return!1;if(s===h)return!0;var b=Aa(h);return!!b&&s===b[0]}function Gc(s){return!!Fo&&Fo in s}var Kc=Gr?Mt:Za;function Rr(s){var u=s&&s.constructor,h=typeof u=="function"&&u.prototype||mr;return s===h}function Ws(s){return s===s&&!Fe(s)}function Hs(s,u){return function(h){return h==null?!1:h[s]===u&&(u!==t||s in Le(h))}}function Jc(s){var u=kn(s,function(b){return h.size===d&&h.clear(),b}),h=u.cache;return u}function Yc(s,u){var h=s[1],b=u[1],k=h|b,N=k<(S|C|R),D=b==R&&h==E||b==R&&h==L&&s[7].length<=u[8]||b==(R|L)&&u[7].length<=u[8]&&h==E;if(!(N||D))return s;b&S&&(s[2]=u[2],k|=h&S?0:w);var P=u[3];if(P){var q=s[3];s[3]=q?Vs(q,P,u[4]):P,s[4]=q?zt(s[3],f):u[4]}return P=u[5],P&&(q=s[5],s[5]=q?$s(q,P,u[6]):P,s[6]=q?zt(s[5],f):u[6]),P=u[7],P&&(s[7]=P),b&R&&(s[8]=s[8]==null?u[8]:Ze(s[8],u[8])),s[9]==null&&(s[9]=u[9]),s[0]=u[0],s[1]=k,s}function Qc(s){var u=[];if(s!=null)for(var h in Le(s))u.push(h);return u}function Zc(s){return Jr.call(s)}function zs(s,u,h){return u=Ge(u===t?s.length-1:u,0),function(){for(var b=arguments,k=-1,N=Ge(b.length-u,0),D=W(N);++k<N;)D[k]=b[u+k];k=-1;for(var P=W(u+1);++k<u;)P[k]=b[k];return P[u]=h(D),ut(s,this,P)}}function Gs(s,u){return u.length<2?s:or(s,Ct(u,0,-1))}function Xc(s,u){for(var h=s.length,b=Ze(u.length,h),k=ot(s);b--;){var N=u[b];s[b]=It(N,h)?k[N]:t}return s}function La(s,u){if(!(u==="constructor"&&typeof s[u]=="function")&&u!="__proto__")return s[u]}var Ks=Ys(gs),Ir=vu||function(s,u){return Je.setTimeout(s,u)},Ra=Ys(Cc);function Js(s,u,h){var b=u+"";return Ra(s,Wc(b,ed(qc(b),h)))}function Ys(s){var u=0,h=0;return function(){var b=_u(),k=Y-(b-h);if(h=b,k>0){if(++u>=ce)return arguments[0]}else u=0;return s.apply(t,arguments)}}function bn(s,u){var h=-1,b=s.length,k=b-1;for(u=u===t?b:u;++h<u;){var N=ya(h,k),D=s[N];s[N]=s[h],s[h]=D}return s.length=u,s}var Qs=Jc(function(s){var u=[];return s.charCodeAt(0)===46&&u.push(""),s.replace(ji,function(h,b,k,N){u.push(k?N.replace(Qi,"$1"):b||h)}),u});function Dt(s){if(typeof s=="string"||ft(s))return s;var u=s+"";return u=="0"&&1/s==-de?"-0":u}function ir(s){if(s!=null){try{return Kr.call(s)}catch{}try{return s+""}catch{}}return""}function ed(s,u){return _t(I,function(h){var b="_."+h[0];u&h[1]&&!jr(s,b)&&s.push(b)}),s.sort()}function Zs(s){if(s instanceof Ne)return s.clone();var u=new bt(s.__wrapped__,s.__chain__);return u.__actions__=ot(s.__actions__),u.__index__=s.__index__,u.__values__=s.__values__,u}function td(s,u,h){(h?rt(s,u,h):u===t)?u=1:u=Ge(we(u),0);var b=s==null?0:s.length;if(!b||u<1)return[];for(var k=0,N=0,D=W(tn(b/u));k<b;)D[N++]=Ct(s,k,k+=u);return D}function rd(s){for(var u=-1,h=s==null?0:s.length,b=0,k=[];++u<h;){var N=s[u];N&&(k[b++]=N)}return k}function nd(){var s=arguments.length;if(!s)return[];for(var u=W(s-1),h=arguments[0],b=s;b--;)u[b-1]=arguments[b];return Ht(Ce(h)?ot(h):[h],Ye(u,1))}var ad=xe(function(s,u){return je(s)?Dr(s,Ye(u,1,je,!0)):[]}),od=xe(function(s,u){var h=wt(u);return je(h)&&(h=t),je(s)?Dr(s,Ye(u,1,je,!0),_e(h,2)):[]}),sd=xe(function(s,u){var h=wt(u);return je(h)&&(h=t),je(s)?Dr(s,Ye(u,1,je,!0),t,h):[]});function id(s,u,h){var b=s==null?0:s.length;return b?(u=h||u===t?1:we(u),Ct(s,u<0?0:u,b)):[]}function ld(s,u,h){var b=s==null?0:s.length;return b?(u=h||u===t?1:we(u),u=b-u,Ct(s,0,u<0?0:u)):[]}function ud(s,u){return s&&s.length?fn(s,_e(u,3),!0,!0):[]}function cd(s,u){return s&&s.length?fn(s,_e(u,3),!0):[]}function dd(s,u,h,b){var k=s==null?0:s.length;return k?(h&&typeof h!="number"&&rt(s,u,h)&&(h=0,b=k),nc(s,u,h,b)):[]}function Xs(s,u,h){var b=s==null?0:s.length;if(!b)return-1;var k=h==null?0:we(h);return k<0&&(k=Ge(b+k,0)),Wr(s,_e(u,3),k)}function ei(s,u,h){var b=s==null?0:s.length;if(!b)return-1;var k=b-1;return h!==t&&(k=we(h),k=h<0?Ge(b+k,0):Ze(k,b-1)),Wr(s,_e(u,3),k,!0)}function ti(s){var u=s==null?0:s.length;return u?Ye(s,1):[]}function fd(s){var u=s==null?0:s.length;return u?Ye(s,de):[]}function pd(s,u){var h=s==null?0:s.length;return h?(u=u===t?1:we(u),Ye(s,u)):[]}function vd(s){for(var u=-1,h=s==null?0:s.length,b={};++u<h;){var k=s[u];b[k[0]]=k[1]}return b}function ri(s){return s&&s.length?s[0]:t}function hd(s,u,h){var b=s==null?0:s.length;if(!b)return-1;var k=h==null?0:we(h);return k<0&&(k=Ge(b+k,0)),fr(s,u,k)}function md(s){var u=s==null?0:s.length;return u?Ct(s,0,-1):[]}var gd=xe(function(s){var u=Me(s,ka);return u.length&&u[0]===s[0]?va(u):[]}),_d=xe(function(s){var u=wt(s),h=Me(s,ka);return u===wt(h)?u=t:h.pop(),h.length&&h[0]===s[0]?va(h,_e(u,2)):[]}),yd=xe(function(s){var u=wt(s),h=Me(s,ka);return u=typeof u=="function"?u:t,u&&h.pop(),h.length&&h[0]===s[0]?va(h,t,u):[]});function bd(s,u){return s==null?"":mu.call(s,u)}function wt(s){var u=s==null?0:s.length;return u?s[u-1]:t}function Sd(s,u,h){var b=s==null?0:s.length;if(!b)return-1;var k=b;return h!==t&&(k=we(h),k=k<0?Ge(b+k,0):Ze(k,b-1)),u===u?eu(s,u,k):Wr(s,Do,k,!0)}function Cd(s,u){return s&&s.length?ds(s,we(u)):t}var wd=xe(ni);function ni(s,u){return s&&s.length&&u&&u.length?_a(s,u):s}function kd(s,u,h){return s&&s.length&&u&&u.length?_a(s,u,_e(h,2)):s}function Ed(s,u,h){return s&&s.length&&u&&u.length?_a(s,u,t,h):s}var xd=Rt(function(s,u){var h=s==null?0:s.length,b=ca(s,u);return hs(s,Me(u,function(k){return It(k,h)?+k:k}).sort(xs)),b});function Vd(s,u){var h=[];if(!(s&&s.length))return h;var b=-1,k=[],N=s.length;for(u=_e(u,3);++b<N;){var D=s[b];u(D,b,s)&&(h.push(D),k.push(b))}return hs(s,k),h}function Ia(s){return s==null?s:bu.call(s)}function $d(s,u,h){var b=s==null?0:s.length;return b?(h&&typeof h!="number"&&rt(s,u,h)?(u=0,h=b):(u=u==null?0:we(u),h=h===t?b:we(h)),Ct(s,u,h)):[]}function Nd(s,u){return dn(s,u)}function Td(s,u,h){return Sa(s,u,_e(h,2))}function Ad(s,u){var h=s==null?0:s.length;if(h){var b=dn(s,u);if(b<h&&Vt(s[b],u))return b}return-1}function Dd(s,u){return dn(s,u,!0)}function Bd(s,u,h){return Sa(s,u,_e(h,2),!0)}function Od(s,u){var h=s==null?0:s.length;if(h){var b=dn(s,u,!0)-1;if(Vt(s[b],u))return b}return-1}function Pd(s){return s&&s.length?_s(s):[]}function Ld(s,u){return s&&s.length?_s(s,_e(u,2)):[]}function Rd(s){var u=s==null?0:s.length;return u?Ct(s,1,u):[]}function Id(s,u,h){return s&&s.length?(u=h||u===t?1:we(u),Ct(s,0,u<0?0:u)):[]}function Md(s,u,h){var b=s==null?0:s.length;return b?(u=h||u===t?1:we(u),u=b-u,Ct(s,u<0?0:u,b)):[]}function Fd(s,u){return s&&s.length?fn(s,_e(u,3),!1,!0):[]}function qd(s,u){return s&&s.length?fn(s,_e(u,3)):[]}var Ud=xe(function(s){return Jt(Ye(s,1,je,!0))}),jd=xe(function(s){var u=wt(s);return je(u)&&(u=t),Jt(Ye(s,1,je,!0),_e(u,2))}),Wd=xe(function(s){var u=wt(s);return u=typeof u=="function"?u:t,Jt(Ye(s,1,je,!0),t,u)});function Hd(s){return s&&s.length?Jt(s):[]}function zd(s,u){return s&&s.length?Jt(s,_e(u,2)):[]}function Gd(s,u){return u=typeof u=="function"?u:t,s&&s.length?Jt(s,t,u):[]}function Ma(s){if(!(s&&s.length))return[];var u=0;return s=Wt(s,function(h){if(je(h))return u=Ge(h.length,u),!0}),ra(u,function(h){return Me(s,Qn(h))})}function ai(s,u){if(!(s&&s.length))return[];var h=Ma(s);return u==null?h:Me(h,function(b){return ut(u,t,b)})}var Kd=xe(function(s,u){return je(s)?Dr(s,u):[]}),Jd=xe(function(s){return wa(Wt(s,je))}),Yd=xe(function(s){var u=wt(s);return je(u)&&(u=t),wa(Wt(s,je),_e(u,2))}),Qd=xe(function(s){var u=wt(s);return u=typeof u=="function"?u:t,wa(Wt(s,je),t,u)}),Zd=xe(Ma);function Xd(s,u){return Cs(s||[],u||[],Ar)}function ef(s,u){return Cs(s||[],u||[],Pr)}var tf=xe(function(s){var u=s.length,h=u>1?s[u-1]:t;return h=typeof h=="function"?(s.pop(),h):t,ai(s,h)});function oi(s){var u=V(s);return u.__chain__=!0,u}function rf(s,u){return u(s),s}function Sn(s,u){return u(s)}var nf=Rt(function(s){var u=s.length,h=u?s[0]:0,b=this.__wrapped__,k=function(N){return ca(N,s)};return u>1||this.__actions__.length||!(b instanceof Ne)||!It(h)?this.thru(k):(b=b.slice(h,+h+(u?1:0)),b.__actions__.push({func:Sn,args:[k],thisArg:t}),new bt(b,this.__chain__).thru(function(N){return u&&!N.length&&N.push(t),N}))});function af(){return oi(this)}function of(){return new bt(this.value(),this.__chain__)}function sf(){this.__values__===t&&(this.__values__=bi(this.value()));var s=this.__index__>=this.__values__.length,u=s?t:this.__values__[this.__index__++];return{done:s,value:u}}function lf(){return this}function uf(s){for(var u,h=this;h instanceof on;){var b=Zs(h);b.__index__=0,b.__values__=t,u?k.__wrapped__=b:u=b;var k=b;h=h.__wrapped__}return k.__wrapped__=s,u}function cf(){var s=this.__wrapped__;if(s instanceof Ne){var u=s;return this.__actions__.length&&(u=new Ne(this)),u=u.reverse(),u.__actions__.push({func:Sn,args:[Ia],thisArg:t}),new bt(u,this.__chain__)}return this.thru(Ia)}function df(){return Ss(this.__wrapped__,this.__actions__)}var ff=pn(function(s,u,h){Oe.call(s,h)?++s[h]:Pt(s,h,1)});function pf(s,u,h){var b=Ce(s)?To:rc;return h&&rt(s,u,h)&&(u=t),b(s,_e(u,3))}function vf(s,u){var h=Ce(s)?Wt:es;return h(s,_e(u,3))}var hf=Ds(Xs),mf=Ds(ei);function gf(s,u){return Ye(Cn(s,u),1)}function _f(s,u){return Ye(Cn(s,u),de)}function yf(s,u,h){return h=h===t?1:we(h),Ye(Cn(s,u),h)}function si(s,u){var h=Ce(s)?_t:Kt;return h(s,_e(u,3))}function ii(s,u){var h=Ce(s)?Rl:Xo;return h(s,_e(u,3))}var bf=pn(function(s,u,h){Oe.call(s,h)?s[h].push(u):Pt(s,h,[u])});function Sf(s,u,h,b){s=st(s)?s:kr(s),h=h&&!b?we(h):0;var k=s.length;return h<0&&(h=Ge(k+h,0)),Vn(s)?h<=k&&s.indexOf(u,h)>-1:!!k&&fr(s,u,h)>-1}var Cf=xe(function(s,u,h){var b=-1,k=typeof u=="function",N=st(s)?W(s.length):[];return Kt(s,function(D){N[++b]=k?ut(u,D,h):Br(D,u,h)}),N}),wf=pn(function(s,u,h){Pt(s,h,u)});function Cn(s,u){var h=Ce(s)?Me:ls;return h(s,_e(u,3))}function kf(s,u,h,b){return s==null?[]:(Ce(u)||(u=u==null?[]:[u]),h=b?t:h,Ce(h)||(h=h==null?[]:[h]),ps(s,u,h))}var Ef=pn(function(s,u,h){s[h?0:1].push(u)},function(){return[[],[]]});function xf(s,u,h){var b=Ce(s)?Kn:Oo,k=arguments.length<3;return b(s,_e(u,4),h,k,Kt)}function Vf(s,u,h){var b=Ce(s)?Il:Oo,k=arguments.length<3;return b(s,_e(u,4),h,k,Xo)}function $f(s,u){var h=Ce(s)?Wt:es;return h(s,En(_e(u,3)))}function Nf(s){var u=Ce(s)?Jo:bc;return u(s)}function Tf(s,u,h){(h?rt(s,u,h):u===t)?u=1:u=we(u);var b=Ce(s)?Qu:Sc;return b(s,u)}function Af(s){var u=Ce(s)?Zu:wc;return u(s)}function Df(s){if(s==null)return 0;if(st(s))return Vn(s)?vr(s):s.length;var u=Xe(s);return u==Ee||u==Ue?s.size:ma(s).length}function Bf(s,u,h){var b=Ce(s)?Jn:kc;return h&&rt(s,u,h)&&(u=t),b(s,_e(u,3))}var Of=xe(function(s,u){if(s==null)return[];var h=u.length;return h>1&&rt(s,u[0],u[1])?u=[]:h>2&&rt(u[0],u[1],u[2])&&(u=[u[0]]),ps(s,Ye(u,1),[])}),wn=pu||function(){return Je.Date.now()};function Pf(s,u){if(typeof u!="function")throw new yt(i);return s=we(s),function(){if(--s<1)return u.apply(this,arguments)}}function li(s,u,h){return u=h?t:u,u=s&&u==null?s.length:u,Lt(s,R,t,t,t,t,u)}function ui(s,u){var h;if(typeof u!="function")throw new yt(i);return s=we(s),function(){return--s>0&&(h=u.apply(this,arguments)),s<=1&&(u=t),h}}var Fa=xe(function(s,u,h){var b=S;if(h.length){var k=zt(h,Cr(Fa));b|=T}return Lt(s,b,u,h,k)}),ci=xe(function(s,u,h){var b=S|C;if(h.length){var k=zt(h,Cr(ci));b|=T}return Lt(u,b,s,h,k)});function di(s,u,h){u=h?t:u;var b=Lt(s,E,t,t,t,t,t,u);return b.placeholder=di.placeholder,b}function fi(s,u,h){u=h?t:u;var b=Lt(s,$,t,t,t,t,t,u);return b.placeholder=fi.placeholder,b}function vi(s,u,h){var b,k,N,D,P,q,G=0,J=!1,X=!1,ue=!0;if(typeof s!="function")throw new yt(i);u=kt(u)||0,Fe(h)&&(J=!!h.leading,X="maxWait"in h,N=X?Ge(kt(h.maxWait)||0,u):N,ue="trailing"in h?!!h.trailing:ue);function he(We){var $t=b,qt=k;return b=k=t,G=We,D=s.apply(qt,$t),D}function ye(We){return G=We,P=Ir($e,u),J?he(We):D}function ke(We){var $t=We-q,qt=We-G,Bi=u-$t;return X?Ze(Bi,N-qt):Bi}function be(We){var $t=We-q,qt=We-G;return q===t||$t>=u||$t<0||X&&qt>=N}function $e(){var We=wn();if(be(We))return Te(We);P=Ir($e,ke(We))}function Te(We){return P=t,ue&&b?he(We):(b=k=t,D)}function pt(){P!==t&&ws(P),G=0,b=q=k=P=t}function nt(){return P===t?D:Te(wn())}function vt(){var We=wn(),$t=be(We);if(b=arguments,k=this,q=We,$t){if(P===t)return ye(q);if(X)return ws(P),P=Ir($e,u),he(q)}return P===t&&(P=Ir($e,u)),D}return vt.cancel=pt,vt.flush=nt,vt}var Lf=xe(function(s,u){return Zo(s,1,u)}),Rf=xe(function(s,u,h){return Zo(s,kt(u)||0,h)});function If(s){return Lt(s,te)}function kn(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new yt(i);var h=function(){var b=arguments,k=u?u.apply(this,b):b[0],N=h.cache;if(N.has(k))return N.get(k);var D=s.apply(this,b);return h.cache=N.set(k,D)||N,D};return h.cache=new(kn.Cache||Ot),h}kn.Cache=Ot;function En(s){if(typeof s!="function")throw new yt(i);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function Mf(s){return ui(2,s)}var Ff=Ec(function(s,u){u=u.length==1&&Ce(u[0])?Me(u[0],ct(_e())):Me(Ye(u,1),ct(_e()));var h=u.length;return xe(function(b){for(var k=-1,N=Ze(b.length,h);++k<N;)b[k]=u[k].call(this,b[k]);return ut(s,this,b)})}),qa=xe(function(s,u){var h=zt(u,Cr(qa));return Lt(s,T,t,u,h)}),hi=xe(function(s,u){var h=zt(u,Cr(hi));return Lt(s,B,t,u,h)}),qf=Rt(function(s,u){return Lt(s,L,t,t,t,u)});function Uf(s,u){if(typeof s!="function")throw new yt(i);return u=u===t?u:we(u),xe(s,u)}function jf(s,u){if(typeof s!="function")throw new yt(i);return u=u==null?0:Ge(we(u),0),xe(function(h){var b=h[u],k=Qt(h,0,u);return b&&Ht(k,b),ut(s,this,k)})}function Wf(s,u,h){var b=!0,k=!0;if(typeof s!="function")throw new yt(i);return Fe(h)&&(b="leading"in h?!!h.leading:b,k="trailing"in h?!!h.trailing:k),vi(s,u,{leading:b,maxWait:u,trailing:k})}function Hf(s){return li(s,1)}function zf(s,u){return qa(Ea(u),s)}function Gf(){if(!arguments.length)return[];var s=arguments[0];return Ce(s)?s:[s]}function Kf(s){return St(s,m)}function Jf(s,u){return u=typeof u=="function"?u:t,St(s,m,u)}function Yf(s){return St(s,p|m)}function Qf(s,u){return u=typeof u=="function"?u:t,St(s,p|m,u)}function Zf(s,u){return u==null||Qo(s,u,Ke(u))}function Vt(s,u){return s===u||s!==s&&u!==u}var Xf=gn(pa),ep=gn(function(s,u){return s>=u}),lr=ns(function(){return arguments}())?ns:function(s){return qe(s)&&Oe.call(s,"callee")&&!jo.call(s,"callee")},Ce=W.isArray,tp=ko?ct(ko):lc;function st(s){return s!=null&&xn(s.length)&&!Mt(s)}function je(s){return qe(s)&&st(s)}function rp(s){return s===!0||s===!1||qe(s)&&tt(s)==se}var Zt=hu||Za,np=Eo?ct(Eo):uc;function ap(s){return qe(s)&&s.nodeType===1&&!Mr(s)}function op(s){if(s==null)return!0;if(st(s)&&(Ce(s)||typeof s=="string"||typeof s.splice=="function"||Zt(s)||wr(s)||lr(s)))return!s.length;var u=Xe(s);if(u==Ee||u==Ue)return!s.size;if(Rr(s))return!ma(s).length;for(var h in s)if(Oe.call(s,h))return!1;return!0}function sp(s,u){return Or(s,u)}function ip(s,u,h){h=typeof h=="function"?h:t;var b=h?h(s,u):t;return b===t?Or(s,u,t,h):!!b}function Ua(s){if(!qe(s))return!1;var u=tt(s);return u==ve||u==ie||typeof s.message=="string"&&typeof s.name=="string"&&!Mr(s)}function lp(s){return typeof s=="number"&&Ho(s)}function Mt(s){if(!Fe(s))return!1;var u=tt(s);return u==Ve||u==Ae||u==ee||u==z}function mi(s){return typeof s=="number"&&s==we(s)}function xn(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=A}function Fe(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function qe(s){return s!=null&&typeof s=="object"}var gi=xo?ct(xo):dc;function up(s,u){return s===u||ha(s,u,Da(u))}function cp(s,u,h){return h=typeof h=="function"?h:t,ha(s,u,Da(u),h)}function dp(s){return _i(s)&&s!=+s}function fp(s){if(Kc(s))throw new Se(o);return as(s)}function pp(s){return s===null}function vp(s){return s==null}function _i(s){return typeof s=="number"||qe(s)&&tt(s)==Pe}function Mr(s){if(!qe(s)||tt(s)!=He)return!1;var u=Zr(s);if(u===null)return!0;var h=Oe.call(u,"constructor")&&u.constructor;return typeof h=="function"&&h instanceof h&&Kr.call(h)==uu}var ja=Vo?ct(Vo):fc;function hp(s){return mi(s)&&s>=-A&&s<=A}var yi=$o?ct($o):pc;function Vn(s){return typeof s=="string"||!Ce(s)&&qe(s)&&tt(s)==mt}function ft(s){return typeof s=="symbol"||qe(s)&&tt(s)==at}var wr=No?ct(No):vc;function mp(s){return s===t}function gp(s){return qe(s)&&Xe(s)==Nt}function _p(s){return qe(s)&&tt(s)==Xt}var yp=gn(ga),bp=gn(function(s,u){return s<=u});function bi(s){if(!s)return[];if(st(s))return Vn(s)?Et(s):ot(s);if(xr&&s[xr])return Ql(s[xr]());var u=Xe(s),h=u==Ee?aa:u==Ue?Hr:kr;return h(s)}function Ft(s){if(!s)return s===0?s:0;if(s=kt(s),s===de||s===-de){var u=s<0?-1:1;return u*F}return s===s?s:0}function we(s){var u=Ft(s),h=u%1;return u===u?h?u-h:u:0}function Si(s){return s?ar(we(s),0,Z):0}function kt(s){if(typeof s=="number")return s;if(ft(s))return j;if(Fe(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=Fe(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=Po(s);var h=el.test(s);return h||rl.test(s)?Ol(s.slice(2),h?2:8):Xi.test(s)?j:+s}function Ci(s){return At(s,it(s))}function Sp(s){return s?ar(we(s),-A,A):s===0?s:0}function Be(s){return s==null?"":dt(s)}var Cp=br(function(s,u){if(Rr(u)||st(u)){At(u,Ke(u),s);return}for(var h in u)Oe.call(u,h)&&Ar(s,h,u[h])}),wi=br(function(s,u){At(u,it(u),s)}),$n=br(function(s,u,h,b){At(u,it(u),s,b)}),wp=br(function(s,u,h,b){At(u,Ke(u),s,b)}),kp=Rt(ca);function Ep(s,u){var h=yr(s);return u==null?h:Yo(h,u)}var xp=xe(function(s,u){s=Le(s);var h=-1,b=u.length,k=b>2?u[2]:t;for(k&&rt(u[0],u[1],k)&&(b=1);++h<b;)for(var N=u[h],D=it(N),P=-1,q=D.length;++P<q;){var G=D[P],J=s[G];(J===t||Vt(J,mr[G])&&!Oe.call(s,G))&&(s[G]=N[G])}return s}),Vp=xe(function(s){return s.push(t,Ms),ut(ki,t,s)});function $p(s,u){return Ao(s,_e(u,3),Tt)}function Np(s,u){return Ao(s,_e(u,3),fa)}function Tp(s,u){return s==null?s:da(s,_e(u,3),it)}function Ap(s,u){return s==null?s:ts(s,_e(u,3),it)}function Dp(s,u){return s&&Tt(s,_e(u,3))}function Bp(s,u){return s&&fa(s,_e(u,3))}function Op(s){return s==null?[]:un(s,Ke(s))}function Pp(s){return s==null?[]:un(s,it(s))}function Wa(s,u,h){var b=s==null?t:or(s,u);return b===t?h:b}function Lp(s,u){return s!=null&&Us(s,u,ac)}function Ha(s,u){return s!=null&&Us(s,u,oc)}var Rp=Os(function(s,u,h){u!=null&&typeof u.toString!="function"&&(u=Jr.call(u)),s[u]=h},Ga(lt)),Ip=Os(function(s,u,h){u!=null&&typeof u.toString!="function"&&(u=Jr.call(u)),Oe.call(s,u)?s[u].push(h):s[u]=[h]},_e),Mp=xe(Br);function Ke(s){return st(s)?Ko(s):ma(s)}function it(s){return st(s)?Ko(s,!0):hc(s)}function Fp(s,u){var h={};return u=_e(u,3),Tt(s,function(b,k,N){Pt(h,u(b,k,N),b)}),h}function qp(s,u){var h={};return u=_e(u,3),Tt(s,function(b,k,N){Pt(h,k,u(b,k,N))}),h}var Up=br(function(s,u,h){cn(s,u,h)}),ki=br(function(s,u,h,b){cn(s,u,h,b)}),jp=Rt(function(s,u){var h={};if(s==null)return h;var b=!1;u=Me(u,function(N){return N=Yt(N,s),b||(b=N.length>1),N}),At(s,Ta(s),h),b&&(h=St(h,p|v|m,Lc));for(var k=u.length;k--;)Ca(h,u[k]);return h});function Wp(s,u){return Ei(s,En(_e(u)))}var Hp=Rt(function(s,u){return s==null?{}:gc(s,u)});function Ei(s,u){if(s==null)return{};var h=Me(Ta(s),function(b){return[b]});return u=_e(u),vs(s,h,function(b,k){return u(b,k[0])})}function zp(s,u,h){u=Yt(u,s);var b=-1,k=u.length;for(k||(k=1,s=t);++b<k;){var N=s==null?t:s[Dt(u[b])];N===t&&(b=k,N=h),s=Mt(N)?N.call(s):N}return s}function Gp(s,u,h){return s==null?s:Pr(s,u,h)}function Kp(s,u,h,b){return b=typeof b=="function"?b:t,s==null?s:Pr(s,u,h,b)}var xi=Rs(Ke),Vi=Rs(it);function Jp(s,u,h){var b=Ce(s),k=b||Zt(s)||wr(s);if(u=_e(u,4),h==null){var N=s&&s.constructor;k?h=b?new N:[]:Fe(s)?h=Mt(N)?yr(Zr(s)):{}:h={}}return(k?_t:Tt)(s,function(D,P,q){return u(h,D,P,q)}),h}function Yp(s,u){return s==null?!0:Ca(s,u)}function Qp(s,u,h){return s==null?s:bs(s,u,Ea(h))}function Zp(s,u,h,b){return b=typeof b=="function"?b:t,s==null?s:bs(s,u,Ea(h),b)}function kr(s){return s==null?[]:na(s,Ke(s))}function Xp(s){return s==null?[]:na(s,it(s))}function ev(s,u,h){return h===t&&(h=u,u=t),h!==t&&(h=kt(h),h=h===h?h:0),u!==t&&(u=kt(u),u=u===u?u:0),ar(kt(s),u,h)}function tv(s,u,h){return u=Ft(u),h===t?(h=u,u=0):h=Ft(h),s=kt(s),sc(s,u,h)}function rv(s,u,h){if(h&&typeof h!="boolean"&&rt(s,u,h)&&(u=h=t),h===t&&(typeof u=="boolean"?(h=u,u=t):typeof s=="boolean"&&(h=s,s=t)),s===t&&u===t?(s=0,u=1):(s=Ft(s),u===t?(u=s,s=0):u=Ft(u)),s>u){var b=s;s=u,u=b}if(h||s%1||u%1){var k=zo();return Ze(s+k*(u-s+Bl("1e-"+((k+"").length-1))),u)}return ya(s,u)}var nv=Sr(function(s,u,h){return u=u.toLowerCase(),s+(h?$i(u):u)});function $i(s){return za(Be(s).toLowerCase())}function Ni(s){return s=Be(s),s&&s.replace(al,zl).replace(wl,"")}function av(s,u,h){s=Be(s),u=dt(u);var b=s.length;h=h===t?b:ar(we(h),0,b);var k=h;return h-=u.length,h>=0&&s.slice(h,k)==u}function ov(s){return s=Be(s),s&&Ii.test(s)?s.replace(eo,Gl):s}function sv(s){return s=Be(s),s&&Wi.test(s)?s.replace(In,"\\$&"):s}var iv=Sr(function(s,u,h){return s+(h?"-":"")+u.toLowerCase()}),lv=Sr(function(s,u,h){return s+(h?" ":"")+u.toLowerCase()}),uv=As("toLowerCase");function cv(s,u,h){s=Be(s),u=we(u);var b=u?vr(s):0;if(!u||b>=u)return s;var k=(u-b)/2;return mn(rn(k),h)+s+mn(tn(k),h)}function dv(s,u,h){s=Be(s),u=we(u);var b=u?vr(s):0;return u&&b<u?s+mn(u-b,h):s}function fv(s,u,h){s=Be(s),u=we(u);var b=u?vr(s):0;return u&&b<u?mn(u-b,h)+s:s}function pv(s,u,h){return h||u==null?u=0:u&&(u=+u),yu(Be(s).replace(Mn,""),u||0)}function vv(s,u,h){return(h?rt(s,u,h):u===t)?u=1:u=we(u),ba(Be(s),u)}function hv(){var s=arguments,u=Be(s[0]);return s.length<3?u:u.replace(s[1],s[2])}var mv=Sr(function(s,u,h){return s+(h?"_":"")+u.toLowerCase()});function gv(s,u,h){return h&&typeof h!="number"&&rt(s,u,h)&&(u=h=t),h=h===t?Z:h>>>0,h?(s=Be(s),s&&(typeof u=="string"||u!=null&&!ja(u))&&(u=dt(u),!u&&pr(s))?Qt(Et(s),0,h):s.split(u,h)):[]}var _v=Sr(function(s,u,h){return s+(h?" ":"")+za(u)});function yv(s,u,h){return s=Be(s),h=h==null?0:ar(we(h),0,s.length),u=dt(u),s.slice(h,h+u.length)==u}function bv(s,u,h){var b=V.templateSettings;h&&rt(s,u,h)&&(u=t),s=Be(s),u=$n({},u,b,Is);var k=$n({},u.imports,b.imports,Is),N=Ke(k),D=na(k,N),P,q,G=0,J=u.interpolate||Fr,X="__p += '",ue=oa((u.escape||Fr).source+"|"+J.source+"|"+(J===to?Zi:Fr).source+"|"+(u.evaluate||Fr).source+"|$","g"),he="//# sourceURL="+(Oe.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$l+"]")+`
11
- `;s.replace(ue,function(be,$e,Te,pt,nt,vt){return Te||(Te=pt),X+=s.slice(G,vt).replace(ol,Kl),$e&&(P=!0,X+=`' +
10
+ `)}function Hc(s){return Ce(s)||lr(s)||!!(jo&&s&&s[jo])}function It(s,u){var h=typeof s;return u=u??A,!!u&&(h=="number"||h!="symbol"&&nl.test(s))&&s>-1&&s%1==0&&s<u}function rt(s,u,h){if(!Fe(h))return!1;var b=typeof u;return(b=="number"?st(h)&&It(u,h.length):b=="string"&&u in h)?Vt(h[u],s):!1}function Oa(s,u){if(Ce(s))return!1;var h=typeof s;return h=="number"||h=="symbol"||h=="boolean"||s==null||ft(s)?!0:Ui.test(s)||!qi.test(s)||u!=null&&s in Le(u)}function zc(s){var u=typeof s;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?s!=="__proto__":s===null}function Pa(s){var u=_n(s),h=V[u];if(typeof h!="function"||!(u in Ne.prototype))return!1;if(s===h)return!0;var b=Aa(h);return!!b&&s===b[0]}function Gc(s){return!!Fo&&Fo in s}var Kc=Gr?Mt:Xa;function Rr(s){var u=s&&s.constructor,h=typeof u=="function"&&u.prototype||mr;return s===h}function js(s){return s===s&&!Fe(s)}function Hs(s,u){return function(h){return h==null?!1:h[s]===u&&(u!==t||s in Le(h))}}function Yc(s){var u=kn(s,function(b){return h.size===d&&h.clear(),b}),h=u.cache;return u}function Jc(s,u){var h=s[1],b=u[1],k=h|b,N=k<(S|C|R),D=b==R&&h==E||b==R&&h==L&&s[7].length<=u[8]||b==(R|L)&&u[7].length<=u[8]&&h==E;if(!(N||D))return s;b&S&&(s[2]=u[2],k|=h&S?0:w);var P=u[3];if(P){var q=s[3];s[3]=q?Vs(q,P,u[4]):P,s[4]=q?zt(s[3],f):u[4]}return P=u[5],P&&(q=s[5],s[5]=q?$s(q,P,u[6]):P,s[6]=q?zt(s[5],f):u[6]),P=u[7],P&&(s[7]=P),b&R&&(s[8]=s[8]==null?u[8]:Xe(s[8],u[8])),s[9]==null&&(s[9]=u[9]),s[0]=u[0],s[1]=k,s}function Qc(s){var u=[];if(s!=null)for(var h in Le(s))u.push(h);return u}function Xc(s){return Yr.call(s)}function zs(s,u,h){return u=Ge(u===t?s.length-1:u,0),function(){for(var b=arguments,k=-1,N=Ge(b.length-u,0),D=j(N);++k<N;)D[k]=b[u+k];k=-1;for(var P=j(u+1);++k<u;)P[k]=b[k];return P[u]=h(D),ut(s,this,P)}}function Gs(s,u){return u.length<2?s:or(s,Ct(u,0,-1))}function Zc(s,u){for(var h=s.length,b=Xe(u.length,h),k=ot(s);b--;){var N=u[b];s[b]=It(N,h)?k[N]:t}return s}function La(s,u){if(!(u==="constructor"&&typeof s[u]=="function")&&u!="__proto__")return s[u]}var Ks=Js(gs),Ir=vu||function(s,u){return Ye.setTimeout(s,u)},Ra=Js(Cc);function Ys(s,u,h){var b=u+"";return Ra(s,jc(b,ed(qc(b),h)))}function Js(s){var u=0,h=0;return function(){var b=_u(),k=J-(b-h);if(h=b,k>0){if(++u>=ce)return arguments[0]}else u=0;return s.apply(t,arguments)}}function bn(s,u){var h=-1,b=s.length,k=b-1;for(u=u===t?b:u;++h<u;){var N=ya(h,k),D=s[N];s[N]=s[h],s[h]=D}return s.length=u,s}var Qs=Yc(function(s){var u=[];return s.charCodeAt(0)===46&&u.push(""),s.replace(Wi,function(h,b,k,N){u.push(k?N.replace(Qi,"$1"):b||h)}),u});function Dt(s){if(typeof s=="string"||ft(s))return s;var u=s+"";return u=="0"&&1/s==-de?"-0":u}function ir(s){if(s!=null){try{return Kr.call(s)}catch{}try{return s+""}catch{}}return""}function ed(s,u){return _t(I,function(h){var b="_."+h[0];u&h[1]&&!Wr(s,b)&&s.push(b)}),s.sort()}function Xs(s){if(s instanceof Ne)return s.clone();var u=new bt(s.__wrapped__,s.__chain__);return u.__actions__=ot(s.__actions__),u.__index__=s.__index__,u.__values__=s.__values__,u}function td(s,u,h){(h?rt(s,u,h):u===t)?u=1:u=Ge(we(u),0);var b=s==null?0:s.length;if(!b||u<1)return[];for(var k=0,N=0,D=j(tn(b/u));k<b;)D[N++]=Ct(s,k,k+=u);return D}function rd(s){for(var u=-1,h=s==null?0:s.length,b=0,k=[];++u<h;){var N=s[u];N&&(k[b++]=N)}return k}function nd(){var s=arguments.length;if(!s)return[];for(var u=j(s-1),h=arguments[0],b=s;b--;)u[b-1]=arguments[b];return Ht(Ce(h)?ot(h):[h],Je(u,1))}var ad=Ee(function(s,u){return We(s)?Dr(s,Je(u,1,We,!0)):[]}),od=Ee(function(s,u){var h=wt(u);return We(h)&&(h=t),We(s)?Dr(s,Je(u,1,We,!0),_e(h,2)):[]}),sd=Ee(function(s,u){var h=wt(u);return We(h)&&(h=t),We(s)?Dr(s,Je(u,1,We,!0),t,h):[]});function id(s,u,h){var b=s==null?0:s.length;return b?(u=h||u===t?1:we(u),Ct(s,u<0?0:u,b)):[]}function ld(s,u,h){var b=s==null?0:s.length;return b?(u=h||u===t?1:we(u),u=b-u,Ct(s,0,u<0?0:u)):[]}function ud(s,u){return s&&s.length?fn(s,_e(u,3),!0,!0):[]}function cd(s,u){return s&&s.length?fn(s,_e(u,3),!0):[]}function dd(s,u,h,b){var k=s==null?0:s.length;return k?(h&&typeof h!="number"&&rt(s,u,h)&&(h=0,b=k),nc(s,u,h,b)):[]}function Zs(s,u,h){var b=s==null?0:s.length;if(!b)return-1;var k=h==null?0:we(h);return k<0&&(k=Ge(b+k,0)),jr(s,_e(u,3),k)}function ei(s,u,h){var b=s==null?0:s.length;if(!b)return-1;var k=b-1;return h!==t&&(k=we(h),k=h<0?Ge(b+k,0):Xe(k,b-1)),jr(s,_e(u,3),k,!0)}function ti(s){var u=s==null?0:s.length;return u?Je(s,1):[]}function fd(s){var u=s==null?0:s.length;return u?Je(s,de):[]}function pd(s,u){var h=s==null?0:s.length;return h?(u=u===t?1:we(u),Je(s,u)):[]}function vd(s){for(var u=-1,h=s==null?0:s.length,b={};++u<h;){var k=s[u];b[k[0]]=k[1]}return b}function ri(s){return s&&s.length?s[0]:t}function hd(s,u,h){var b=s==null?0:s.length;if(!b)return-1;var k=h==null?0:we(h);return k<0&&(k=Ge(b+k,0)),fr(s,u,k)}function md(s){var u=s==null?0:s.length;return u?Ct(s,0,-1):[]}var gd=Ee(function(s){var u=Me(s,ka);return u.length&&u[0]===s[0]?va(u):[]}),_d=Ee(function(s){var u=wt(s),h=Me(s,ka);return u===wt(h)?u=t:h.pop(),h.length&&h[0]===s[0]?va(h,_e(u,2)):[]}),yd=Ee(function(s){var u=wt(s),h=Me(s,ka);return u=typeof u=="function"?u:t,u&&h.pop(),h.length&&h[0]===s[0]?va(h,t,u):[]});function bd(s,u){return s==null?"":mu.call(s,u)}function wt(s){var u=s==null?0:s.length;return u?s[u-1]:t}function Sd(s,u,h){var b=s==null?0:s.length;if(!b)return-1;var k=b;return h!==t&&(k=we(h),k=k<0?Ge(b+k,0):Xe(k,b-1)),u===u?eu(s,u,k):jr(s,Do,k,!0)}function Cd(s,u){return s&&s.length?ds(s,we(u)):t}var wd=Ee(ni);function ni(s,u){return s&&s.length&&u&&u.length?_a(s,u):s}function kd(s,u,h){return s&&s.length&&u&&u.length?_a(s,u,_e(h,2)):s}function xd(s,u,h){return s&&s.length&&u&&u.length?_a(s,u,t,h):s}var Ed=Rt(function(s,u){var h=s==null?0:s.length,b=ca(s,u);return hs(s,Me(u,function(k){return It(k,h)?+k:k}).sort(Es)),b});function Vd(s,u){var h=[];if(!(s&&s.length))return h;var b=-1,k=[],N=s.length;for(u=_e(u,3);++b<N;){var D=s[b];u(D,b,s)&&(h.push(D),k.push(b))}return hs(s,k),h}function Ia(s){return s==null?s:bu.call(s)}function $d(s,u,h){var b=s==null?0:s.length;return b?(h&&typeof h!="number"&&rt(s,u,h)?(u=0,h=b):(u=u==null?0:we(u),h=h===t?b:we(h)),Ct(s,u,h)):[]}function Nd(s,u){return dn(s,u)}function Td(s,u,h){return Sa(s,u,_e(h,2))}function Ad(s,u){var h=s==null?0:s.length;if(h){var b=dn(s,u);if(b<h&&Vt(s[b],u))return b}return-1}function Dd(s,u){return dn(s,u,!0)}function Bd(s,u,h){return Sa(s,u,_e(h,2),!0)}function Od(s,u){var h=s==null?0:s.length;if(h){var b=dn(s,u,!0)-1;if(Vt(s[b],u))return b}return-1}function Pd(s){return s&&s.length?_s(s):[]}function Ld(s,u){return s&&s.length?_s(s,_e(u,2)):[]}function Rd(s){var u=s==null?0:s.length;return u?Ct(s,1,u):[]}function Id(s,u,h){return s&&s.length?(u=h||u===t?1:we(u),Ct(s,0,u<0?0:u)):[]}function Md(s,u,h){var b=s==null?0:s.length;return b?(u=h||u===t?1:we(u),u=b-u,Ct(s,u<0?0:u,b)):[]}function Fd(s,u){return s&&s.length?fn(s,_e(u,3),!1,!0):[]}function qd(s,u){return s&&s.length?fn(s,_e(u,3)):[]}var Ud=Ee(function(s){return Yt(Je(s,1,We,!0))}),Wd=Ee(function(s){var u=wt(s);return We(u)&&(u=t),Yt(Je(s,1,We,!0),_e(u,2))}),jd=Ee(function(s){var u=wt(s);return u=typeof u=="function"?u:t,Yt(Je(s,1,We,!0),t,u)});function Hd(s){return s&&s.length?Yt(s):[]}function zd(s,u){return s&&s.length?Yt(s,_e(u,2)):[]}function Gd(s,u){return u=typeof u=="function"?u:t,s&&s.length?Yt(s,t,u):[]}function Ma(s){if(!(s&&s.length))return[];var u=0;return s=jt(s,function(h){if(We(h))return u=Ge(h.length,u),!0}),ra(u,function(h){return Me(s,Qn(h))})}function ai(s,u){if(!(s&&s.length))return[];var h=Ma(s);return u==null?h:Me(h,function(b){return ut(u,t,b)})}var Kd=Ee(function(s,u){return We(s)?Dr(s,u):[]}),Yd=Ee(function(s){return wa(jt(s,We))}),Jd=Ee(function(s){var u=wt(s);return We(u)&&(u=t),wa(jt(s,We),_e(u,2))}),Qd=Ee(function(s){var u=wt(s);return u=typeof u=="function"?u:t,wa(jt(s,We),t,u)}),Xd=Ee(Ma);function Zd(s,u){return Cs(s||[],u||[],Ar)}function ef(s,u){return Cs(s||[],u||[],Pr)}var tf=Ee(function(s){var u=s.length,h=u>1?s[u-1]:t;return h=typeof h=="function"?(s.pop(),h):t,ai(s,h)});function oi(s){var u=V(s);return u.__chain__=!0,u}function rf(s,u){return u(s),s}function Sn(s,u){return u(s)}var nf=Rt(function(s){var u=s.length,h=u?s[0]:0,b=this.__wrapped__,k=function(N){return ca(N,s)};return u>1||this.__actions__.length||!(b instanceof Ne)||!It(h)?this.thru(k):(b=b.slice(h,+h+(u?1:0)),b.__actions__.push({func:Sn,args:[k],thisArg:t}),new bt(b,this.__chain__).thru(function(N){return u&&!N.length&&N.push(t),N}))});function af(){return oi(this)}function of(){return new bt(this.value(),this.__chain__)}function sf(){this.__values__===t&&(this.__values__=bi(this.value()));var s=this.__index__>=this.__values__.length,u=s?t:this.__values__[this.__index__++];return{done:s,value:u}}function lf(){return this}function uf(s){for(var u,h=this;h instanceof on;){var b=Xs(h);b.__index__=0,b.__values__=t,u?k.__wrapped__=b:u=b;var k=b;h=h.__wrapped__}return k.__wrapped__=s,u}function cf(){var s=this.__wrapped__;if(s instanceof Ne){var u=s;return this.__actions__.length&&(u=new Ne(this)),u=u.reverse(),u.__actions__.push({func:Sn,args:[Ia],thisArg:t}),new bt(u,this.__chain__)}return this.thru(Ia)}function df(){return Ss(this.__wrapped__,this.__actions__)}var ff=pn(function(s,u,h){Oe.call(s,h)?++s[h]:Pt(s,h,1)});function pf(s,u,h){var b=Ce(s)?To:rc;return h&&rt(s,u,h)&&(u=t),b(s,_e(u,3))}function vf(s,u){var h=Ce(s)?jt:es;return h(s,_e(u,3))}var hf=Ds(Zs),mf=Ds(ei);function gf(s,u){return Je(Cn(s,u),1)}function _f(s,u){return Je(Cn(s,u),de)}function yf(s,u,h){return h=h===t?1:we(h),Je(Cn(s,u),h)}function si(s,u){var h=Ce(s)?_t:Kt;return h(s,_e(u,3))}function ii(s,u){var h=Ce(s)?Rl:Zo;return h(s,_e(u,3))}var bf=pn(function(s,u,h){Oe.call(s,h)?s[h].push(u):Pt(s,h,[u])});function Sf(s,u,h,b){s=st(s)?s:kr(s),h=h&&!b?we(h):0;var k=s.length;return h<0&&(h=Ge(k+h,0)),Vn(s)?h<=k&&s.indexOf(u,h)>-1:!!k&&fr(s,u,h)>-1}var Cf=Ee(function(s,u,h){var b=-1,k=typeof u=="function",N=st(s)?j(s.length):[];return Kt(s,function(D){N[++b]=k?ut(u,D,h):Br(D,u,h)}),N}),wf=pn(function(s,u,h){Pt(s,h,u)});function Cn(s,u){var h=Ce(s)?Me:ls;return h(s,_e(u,3))}function kf(s,u,h,b){return s==null?[]:(Ce(u)||(u=u==null?[]:[u]),h=b?t:h,Ce(h)||(h=h==null?[]:[h]),ps(s,u,h))}var xf=pn(function(s,u,h){s[h?0:1].push(u)},function(){return[[],[]]});function Ef(s,u,h){var b=Ce(s)?Kn:Oo,k=arguments.length<3;return b(s,_e(u,4),h,k,Kt)}function Vf(s,u,h){var b=Ce(s)?Il:Oo,k=arguments.length<3;return b(s,_e(u,4),h,k,Zo)}function $f(s,u){var h=Ce(s)?jt:es;return h(s,xn(_e(u,3)))}function Nf(s){var u=Ce(s)?Yo:bc;return u(s)}function Tf(s,u,h){(h?rt(s,u,h):u===t)?u=1:u=we(u);var b=Ce(s)?Qu:Sc;return b(s,u)}function Af(s){var u=Ce(s)?Xu:wc;return u(s)}function Df(s){if(s==null)return 0;if(st(s))return Vn(s)?vr(s):s.length;var u=Ze(s);return u==xe||u==Ue?s.size:ma(s).length}function Bf(s,u,h){var b=Ce(s)?Jn:kc;return h&&rt(s,u,h)&&(u=t),b(s,_e(u,3))}var Of=Ee(function(s,u){if(s==null)return[];var h=u.length;return h>1&&rt(s,u[0],u[1])?u=[]:h>2&&rt(u[0],u[1],u[2])&&(u=[u[0]]),ps(s,Je(u,1),[])}),wn=pu||function(){return Ye.Date.now()};function Pf(s,u){if(typeof u!="function")throw new yt(i);return s=we(s),function(){if(--s<1)return u.apply(this,arguments)}}function li(s,u,h){return u=h?t:u,u=s&&u==null?s.length:u,Lt(s,R,t,t,t,t,u)}function ui(s,u){var h;if(typeof u!="function")throw new yt(i);return s=we(s),function(){return--s>0&&(h=u.apply(this,arguments)),s<=1&&(u=t),h}}var Fa=Ee(function(s,u,h){var b=S;if(h.length){var k=zt(h,Cr(Fa));b|=T}return Lt(s,b,u,h,k)}),ci=Ee(function(s,u,h){var b=S|C;if(h.length){var k=zt(h,Cr(ci));b|=T}return Lt(u,b,s,h,k)});function di(s,u,h){u=h?t:u;var b=Lt(s,E,t,t,t,t,t,u);return b.placeholder=di.placeholder,b}function fi(s,u,h){u=h?t:u;var b=Lt(s,$,t,t,t,t,t,u);return b.placeholder=fi.placeholder,b}function vi(s,u,h){var b,k,N,D,P,q,G=0,Y=!1,Z=!1,ue=!0;if(typeof s!="function")throw new yt(i);u=kt(u)||0,Fe(h)&&(Y=!!h.leading,Z="maxWait"in h,N=Z?Ge(kt(h.maxWait)||0,u):N,ue="trailing"in h?!!h.trailing:ue);function he(je){var $t=b,qt=k;return b=k=t,G=je,D=s.apply(qt,$t),D}function ye(je){return G=je,P=Ir($e,u),Y?he(je):D}function ke(je){var $t=je-q,qt=je-G,Bi=u-$t;return Z?Xe(Bi,N-qt):Bi}function be(je){var $t=je-q,qt=je-G;return q===t||$t>=u||$t<0||Z&&qt>=N}function $e(){var je=wn();if(be(je))return Te(je);P=Ir($e,ke(je))}function Te(je){return P=t,ue&&b?he(je):(b=k=t,D)}function pt(){P!==t&&ws(P),G=0,b=q=k=P=t}function nt(){return P===t?D:Te(wn())}function vt(){var je=wn(),$t=be(je);if(b=arguments,k=this,q=je,$t){if(P===t)return ye(q);if(Z)return ws(P),P=Ir($e,u),he(q)}return P===t&&(P=Ir($e,u)),D}return vt.cancel=pt,vt.flush=nt,vt}var Lf=Ee(function(s,u){return Xo(s,1,u)}),Rf=Ee(function(s,u,h){return Xo(s,kt(u)||0,h)});function If(s){return Lt(s,te)}function kn(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new yt(i);var h=function(){var b=arguments,k=u?u.apply(this,b):b[0],N=h.cache;if(N.has(k))return N.get(k);var D=s.apply(this,b);return h.cache=N.set(k,D)||N,D};return h.cache=new(kn.Cache||Ot),h}kn.Cache=Ot;function xn(s){if(typeof s!="function")throw new yt(i);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function Mf(s){return ui(2,s)}var Ff=xc(function(s,u){u=u.length==1&&Ce(u[0])?Me(u[0],ct(_e())):Me(Je(u,1),ct(_e()));var h=u.length;return Ee(function(b){for(var k=-1,N=Xe(b.length,h);++k<N;)b[k]=u[k].call(this,b[k]);return ut(s,this,b)})}),qa=Ee(function(s,u){var h=zt(u,Cr(qa));return Lt(s,T,t,u,h)}),hi=Ee(function(s,u){var h=zt(u,Cr(hi));return Lt(s,B,t,u,h)}),qf=Rt(function(s,u){return Lt(s,L,t,t,t,u)});function Uf(s,u){if(typeof s!="function")throw new yt(i);return u=u===t?u:we(u),Ee(s,u)}function Wf(s,u){if(typeof s!="function")throw new yt(i);return u=u==null?0:Ge(we(u),0),Ee(function(h){var b=h[u],k=Qt(h,0,u);return b&&Ht(k,b),ut(s,this,k)})}function jf(s,u,h){var b=!0,k=!0;if(typeof s!="function")throw new yt(i);return Fe(h)&&(b="leading"in h?!!h.leading:b,k="trailing"in h?!!h.trailing:k),vi(s,u,{leading:b,maxWait:u,trailing:k})}function Hf(s){return li(s,1)}function zf(s,u){return qa(xa(u),s)}function Gf(){if(!arguments.length)return[];var s=arguments[0];return Ce(s)?s:[s]}function Kf(s){return St(s,m)}function Yf(s,u){return u=typeof u=="function"?u:t,St(s,m,u)}function Jf(s){return St(s,p|m)}function Qf(s,u){return u=typeof u=="function"?u:t,St(s,p|m,u)}function Xf(s,u){return u==null||Qo(s,u,Ke(u))}function Vt(s,u){return s===u||s!==s&&u!==u}var Zf=gn(pa),ep=gn(function(s,u){return s>=u}),lr=ns(function(){return arguments}())?ns:function(s){return qe(s)&&Oe.call(s,"callee")&&!Wo.call(s,"callee")},Ce=j.isArray,tp=ko?ct(ko):lc;function st(s){return s!=null&&En(s.length)&&!Mt(s)}function We(s){return qe(s)&&st(s)}function rp(s){return s===!0||s===!1||qe(s)&&tt(s)==se}var Xt=hu||Xa,np=xo?ct(xo):uc;function ap(s){return qe(s)&&s.nodeType===1&&!Mr(s)}function op(s){if(s==null)return!0;if(st(s)&&(Ce(s)||typeof s=="string"||typeof s.splice=="function"||Xt(s)||wr(s)||lr(s)))return!s.length;var u=Ze(s);if(u==xe||u==Ue)return!s.size;if(Rr(s))return!ma(s).length;for(var h in s)if(Oe.call(s,h))return!1;return!0}function sp(s,u){return Or(s,u)}function ip(s,u,h){h=typeof h=="function"?h:t;var b=h?h(s,u):t;return b===t?Or(s,u,t,h):!!b}function Ua(s){if(!qe(s))return!1;var u=tt(s);return u==ve||u==ie||typeof s.message=="string"&&typeof s.name=="string"&&!Mr(s)}function lp(s){return typeof s=="number"&&Ho(s)}function Mt(s){if(!Fe(s))return!1;var u=tt(s);return u==Ve||u==Ae||u==ee||u==z}function mi(s){return typeof s=="number"&&s==we(s)}function En(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=A}function Fe(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function qe(s){return s!=null&&typeof s=="object"}var gi=Eo?ct(Eo):dc;function up(s,u){return s===u||ha(s,u,Da(u))}function cp(s,u,h){return h=typeof h=="function"?h:t,ha(s,u,Da(u),h)}function dp(s){return _i(s)&&s!=+s}function fp(s){if(Kc(s))throw new Se(o);return as(s)}function pp(s){return s===null}function vp(s){return s==null}function _i(s){return typeof s=="number"||qe(s)&&tt(s)==Pe}function Mr(s){if(!qe(s)||tt(s)!=He)return!1;var u=Xr(s);if(u===null)return!0;var h=Oe.call(u,"constructor")&&u.constructor;return typeof h=="function"&&h instanceof h&&Kr.call(h)==uu}var Wa=Vo?ct(Vo):fc;function hp(s){return mi(s)&&s>=-A&&s<=A}var yi=$o?ct($o):pc;function Vn(s){return typeof s=="string"||!Ce(s)&&qe(s)&&tt(s)==mt}function ft(s){return typeof s=="symbol"||qe(s)&&tt(s)==at}var wr=No?ct(No):vc;function mp(s){return s===t}function gp(s){return qe(s)&&Ze(s)==Nt}function _p(s){return qe(s)&&tt(s)==Zt}var yp=gn(ga),bp=gn(function(s,u){return s<=u});function bi(s){if(!s)return[];if(st(s))return Vn(s)?xt(s):ot(s);if(Er&&s[Er])return Ql(s[Er]());var u=Ze(s),h=u==xe?aa:u==Ue?Hr:kr;return h(s)}function Ft(s){if(!s)return s===0?s:0;if(s=kt(s),s===de||s===-de){var u=s<0?-1:1;return u*F}return s===s?s:0}function we(s){var u=Ft(s),h=u%1;return u===u?h?u-h:u:0}function Si(s){return s?ar(we(s),0,X):0}function kt(s){if(typeof s=="number")return s;if(ft(s))return W;if(Fe(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=Fe(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=Po(s);var h=el.test(s);return h||rl.test(s)?Ol(s.slice(2),h?2:8):Zi.test(s)?W:+s}function Ci(s){return At(s,it(s))}function Sp(s){return s?ar(we(s),-A,A):s===0?s:0}function Be(s){return s==null?"":dt(s)}var Cp=br(function(s,u){if(Rr(u)||st(u)){At(u,Ke(u),s);return}for(var h in u)Oe.call(u,h)&&Ar(s,h,u[h])}),wi=br(function(s,u){At(u,it(u),s)}),$n=br(function(s,u,h,b){At(u,it(u),s,b)}),wp=br(function(s,u,h,b){At(u,Ke(u),s,b)}),kp=Rt(ca);function xp(s,u){var h=yr(s);return u==null?h:Jo(h,u)}var Ep=Ee(function(s,u){s=Le(s);var h=-1,b=u.length,k=b>2?u[2]:t;for(k&&rt(u[0],u[1],k)&&(b=1);++h<b;)for(var N=u[h],D=it(N),P=-1,q=D.length;++P<q;){var G=D[P],Y=s[G];(Y===t||Vt(Y,mr[G])&&!Oe.call(s,G))&&(s[G]=N[G])}return s}),Vp=Ee(function(s){return s.push(t,Ms),ut(ki,t,s)});function $p(s,u){return Ao(s,_e(u,3),Tt)}function Np(s,u){return Ao(s,_e(u,3),fa)}function Tp(s,u){return s==null?s:da(s,_e(u,3),it)}function Ap(s,u){return s==null?s:ts(s,_e(u,3),it)}function Dp(s,u){return s&&Tt(s,_e(u,3))}function Bp(s,u){return s&&fa(s,_e(u,3))}function Op(s){return s==null?[]:un(s,Ke(s))}function Pp(s){return s==null?[]:un(s,it(s))}function ja(s,u,h){var b=s==null?t:or(s,u);return b===t?h:b}function Lp(s,u){return s!=null&&Us(s,u,ac)}function Ha(s,u){return s!=null&&Us(s,u,oc)}var Rp=Os(function(s,u,h){u!=null&&typeof u.toString!="function"&&(u=Yr.call(u)),s[u]=h},Ga(lt)),Ip=Os(function(s,u,h){u!=null&&typeof u.toString!="function"&&(u=Yr.call(u)),Oe.call(s,u)?s[u].push(h):s[u]=[h]},_e),Mp=Ee(Br);function Ke(s){return st(s)?Ko(s):ma(s)}function it(s){return st(s)?Ko(s,!0):hc(s)}function Fp(s,u){var h={};return u=_e(u,3),Tt(s,function(b,k,N){Pt(h,u(b,k,N),b)}),h}function qp(s,u){var h={};return u=_e(u,3),Tt(s,function(b,k,N){Pt(h,k,u(b,k,N))}),h}var Up=br(function(s,u,h){cn(s,u,h)}),ki=br(function(s,u,h,b){cn(s,u,h,b)}),Wp=Rt(function(s,u){var h={};if(s==null)return h;var b=!1;u=Me(u,function(N){return N=Jt(N,s),b||(b=N.length>1),N}),At(s,Ta(s),h),b&&(h=St(h,p|v|m,Lc));for(var k=u.length;k--;)Ca(h,u[k]);return h});function jp(s,u){return xi(s,xn(_e(u)))}var Hp=Rt(function(s,u){return s==null?{}:gc(s,u)});function xi(s,u){if(s==null)return{};var h=Me(Ta(s),function(b){return[b]});return u=_e(u),vs(s,h,function(b,k){return u(b,k[0])})}function zp(s,u,h){u=Jt(u,s);var b=-1,k=u.length;for(k||(k=1,s=t);++b<k;){var N=s==null?t:s[Dt(u[b])];N===t&&(b=k,N=h),s=Mt(N)?N.call(s):N}return s}function Gp(s,u,h){return s==null?s:Pr(s,u,h)}function Kp(s,u,h,b){return b=typeof b=="function"?b:t,s==null?s:Pr(s,u,h,b)}var Ei=Rs(Ke),Vi=Rs(it);function Yp(s,u,h){var b=Ce(s),k=b||Xt(s)||wr(s);if(u=_e(u,4),h==null){var N=s&&s.constructor;k?h=b?new N:[]:Fe(s)?h=Mt(N)?yr(Xr(s)):{}:h={}}return(k?_t:Tt)(s,function(D,P,q){return u(h,D,P,q)}),h}function Jp(s,u){return s==null?!0:Ca(s,u)}function Qp(s,u,h){return s==null?s:bs(s,u,xa(h))}function Xp(s,u,h,b){return b=typeof b=="function"?b:t,s==null?s:bs(s,u,xa(h),b)}function kr(s){return s==null?[]:na(s,Ke(s))}function Zp(s){return s==null?[]:na(s,it(s))}function ev(s,u,h){return h===t&&(h=u,u=t),h!==t&&(h=kt(h),h=h===h?h:0),u!==t&&(u=kt(u),u=u===u?u:0),ar(kt(s),u,h)}function tv(s,u,h){return u=Ft(u),h===t?(h=u,u=0):h=Ft(h),s=kt(s),sc(s,u,h)}function rv(s,u,h){if(h&&typeof h!="boolean"&&rt(s,u,h)&&(u=h=t),h===t&&(typeof u=="boolean"?(h=u,u=t):typeof s=="boolean"&&(h=s,s=t)),s===t&&u===t?(s=0,u=1):(s=Ft(s),u===t?(u=s,s=0):u=Ft(u)),s>u){var b=s;s=u,u=b}if(h||s%1||u%1){var k=zo();return Xe(s+k*(u-s+Bl("1e-"+((k+"").length-1))),u)}return ya(s,u)}var nv=Sr(function(s,u,h){return u=u.toLowerCase(),s+(h?$i(u):u)});function $i(s){return za(Be(s).toLowerCase())}function Ni(s){return s=Be(s),s&&s.replace(al,zl).replace(wl,"")}function av(s,u,h){s=Be(s),u=dt(u);var b=s.length;h=h===t?b:ar(we(h),0,b);var k=h;return h-=u.length,h>=0&&s.slice(h,k)==u}function ov(s){return s=Be(s),s&&Ii.test(s)?s.replace(eo,Gl):s}function sv(s){return s=Be(s),s&&ji.test(s)?s.replace(In,"\\$&"):s}var iv=Sr(function(s,u,h){return s+(h?"-":"")+u.toLowerCase()}),lv=Sr(function(s,u,h){return s+(h?" ":"")+u.toLowerCase()}),uv=As("toLowerCase");function cv(s,u,h){s=Be(s),u=we(u);var b=u?vr(s):0;if(!u||b>=u)return s;var k=(u-b)/2;return mn(rn(k),h)+s+mn(tn(k),h)}function dv(s,u,h){s=Be(s),u=we(u);var b=u?vr(s):0;return u&&b<u?s+mn(u-b,h):s}function fv(s,u,h){s=Be(s),u=we(u);var b=u?vr(s):0;return u&&b<u?mn(u-b,h)+s:s}function pv(s,u,h){return h||u==null?u=0:u&&(u=+u),yu(Be(s).replace(Mn,""),u||0)}function vv(s,u,h){return(h?rt(s,u,h):u===t)?u=1:u=we(u),ba(Be(s),u)}function hv(){var s=arguments,u=Be(s[0]);return s.length<3?u:u.replace(s[1],s[2])}var mv=Sr(function(s,u,h){return s+(h?"_":"")+u.toLowerCase()});function gv(s,u,h){return h&&typeof h!="number"&&rt(s,u,h)&&(u=h=t),h=h===t?X:h>>>0,h?(s=Be(s),s&&(typeof u=="string"||u!=null&&!Wa(u))&&(u=dt(u),!u&&pr(s))?Qt(xt(s),0,h):s.split(u,h)):[]}var _v=Sr(function(s,u,h){return s+(h?" ":"")+za(u)});function yv(s,u,h){return s=Be(s),h=h==null?0:ar(we(h),0,s.length),u=dt(u),s.slice(h,h+u.length)==u}function bv(s,u,h){var b=V.templateSettings;h&&rt(s,u,h)&&(u=t),s=Be(s),u=$n({},u,b,Is);var k=$n({},u.imports,b.imports,Is),N=Ke(k),D=na(k,N),P,q,G=0,Y=u.interpolate||Fr,Z="__p += '",ue=oa((u.escape||Fr).source+"|"+Y.source+"|"+(Y===to?Xi:Fr).source+"|"+(u.evaluate||Fr).source+"|$","g"),he="//# sourceURL="+(Oe.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$l+"]")+`
11
+ `;s.replace(ue,function(be,$e,Te,pt,nt,vt){return Te||(Te=pt),Z+=s.slice(G,vt).replace(ol,Kl),$e&&(P=!0,Z+=`' +
12
12
  __e(`+$e+`) +
13
- '`),nt&&(q=!0,X+=`';
13
+ '`),nt&&(q=!0,Z+=`';
14
14
  `+nt+`;
15
- __p += '`),Te&&(X+=`' +
15
+ __p += '`),Te&&(Z+=`' +
16
16
  ((__t = (`+Te+`)) == null ? '' : __t) +
17
- '`),G=vt+be.length,be}),X+=`';
18
- `;var ye=Oe.call(u,"variable")&&u.variable;if(!ye)X=`with (obj) {
19
- `+X+`
17
+ '`),G=vt+be.length,be}),Z+=`';
18
+ `;var ye=Oe.call(u,"variable")&&u.variable;if(!ye)Z=`with (obj) {
19
+ `+Z+`
20
20
  }
21
- `;else if(Yi.test(ye))throw new Se(l);X=(q?X.replace(Oi,""):X).replace(Pi,"$1").replace(Li,"$1;"),X="function("+(ye||"obj")+`) {
21
+ `;else if(Ji.test(ye))throw new Se(l);Z=(q?Z.replace(Oi,""):Z).replace(Pi,"$1").replace(Li,"$1;"),Z="function("+(ye||"obj")+`) {
22
22
  `+(ye?"":`obj || (obj = {});
23
23
  `)+"var __t, __p = ''"+(P?", __e = _.escape":"")+(q?`, __j = Array.prototype.join;
24
24
  function print() { __p += __j.call(arguments, '') }
25
25
  `:`;
26
- `)+X+`return __p
27
- }`;var ke=Ai(function(){return De(N,he+"return "+X).apply(t,D)});if(ke.source=X,Ua(ke))throw ke;return ke}function Sv(s){return Be(s).toLowerCase()}function Cv(s){return Be(s).toUpperCase()}function wv(s,u,h){if(s=Be(s),s&&(h||u===t))return Po(s);if(!s||!(u=dt(u)))return s;var b=Et(s),k=Et(u),N=Lo(b,k),D=Ro(b,k)+1;return Qt(b,N,D).join("")}function kv(s,u,h){if(s=Be(s),s&&(h||u===t))return s.slice(0,Mo(s)+1);if(!s||!(u=dt(u)))return s;var b=Et(s),k=Ro(b,Et(u))+1;return Qt(b,0,k).join("")}function Ev(s,u,h){if(s=Be(s),s&&(h||u===t))return s.replace(Mn,"");if(!s||!(u=dt(u)))return s;var b=Et(s),k=Lo(b,Et(u));return Qt(b,k).join("")}function xv(s,u){var h=oe,b=Q;if(Fe(u)){var k="separator"in u?u.separator:k;h="length"in u?we(u.length):h,b="omission"in u?dt(u.omission):b}s=Be(s);var N=s.length;if(pr(s)){var D=Et(s);N=D.length}if(h>=N)return s;var P=h-vr(b);if(P<1)return b;var q=D?Qt(D,0,P).join(""):s.slice(0,P);if(k===t)return q+b;if(D&&(P+=q.length-P),ja(k)){if(s.slice(P).search(k)){var G,J=q;for(k.global||(k=oa(k.source,Be(ro.exec(k))+"g")),k.lastIndex=0;G=k.exec(J);)var X=G.index;q=q.slice(0,X===t?P:X)}}else if(s.indexOf(dt(k),P)!=P){var ue=q.lastIndexOf(k);ue>-1&&(q=q.slice(0,ue))}return q+b}function Vv(s){return s=Be(s),s&&Ri.test(s)?s.replace(Xa,tu):s}var $v=Sr(function(s,u,h){return s+(h?" ":"")+u.toUpperCase()}),za=As("toUpperCase");function Ti(s,u,h){return s=Be(s),u=h?t:u,u===t?Yl(s)?au(s):ql(s):s.match(u)||[]}var Ai=xe(function(s,u){try{return ut(s,t,u)}catch(h){return Ua(h)?h:new Se(h)}}),Nv=Rt(function(s,u){return _t(u,function(h){h=Dt(h),Pt(s,h,Fa(s[h],s))}),s});function Tv(s){var u=s==null?0:s.length,h=_e();return s=u?Me(s,function(b){if(typeof b[1]!="function")throw new yt(i);return[h(b[0]),b[1]]}):[],xe(function(b){for(var k=-1;++k<u;){var N=s[k];if(ut(N[0],this,b))return ut(N[1],this,b)}})}function Av(s){return tc(St(s,p))}function Ga(s){return function(){return s}}function Dv(s,u){return s==null||s!==s?u:s}var Bv=Bs(),Ov=Bs(!0);function lt(s){return s}function Ka(s){return ss(typeof s=="function"?s:St(s,p))}function Pv(s){return us(St(s,p))}function Lv(s,u){return cs(s,St(u,p))}var Rv=xe(function(s,u){return function(h){return Br(h,s,u)}}),Iv=xe(function(s,u){return function(h){return Br(s,h,u)}});function Ja(s,u,h){var b=Ke(u),k=un(u,b);h==null&&!(Fe(u)&&(k.length||!b.length))&&(h=u,u=s,s=this,k=un(u,Ke(u)));var N=!(Fe(h)&&"chain"in h)||!!h.chain,D=Mt(s);return _t(k,function(P){var q=u[P];s[P]=q,D&&(s.prototype[P]=function(){var G=this.__chain__;if(N||G){var J=s(this.__wrapped__),X=J.__actions__=ot(this.__actions__);return X.push({func:q,args:arguments,thisArg:s}),J.__chain__=G,J}return q.apply(s,Ht([this.value()],arguments))})}),s}function Mv(){return Je._===this&&(Je._=cu),this}function Ya(){}function Fv(s){return s=we(s),xe(function(u){return ds(u,s)})}var qv=Va(Me),Uv=Va(To),jv=Va(Jn);function Di(s){return Oa(s)?Qn(Dt(s)):_c(s)}function Wv(s){return function(u){return s==null?t:or(s,u)}}var Hv=Ps(),zv=Ps(!0);function Qa(){return[]}function Za(){return!1}function Gv(){return{}}function Kv(){return""}function Jv(){return!0}function Yv(s,u){if(s=we(s),s<1||s>A)return[];var h=Z,b=Ze(s,Z);u=_e(u),s-=Z;for(var k=ra(b,u);++h<s;)u(h);return k}function Qv(s){return Ce(s)?Me(s,Dt):ft(s)?[s]:ot(Qs(Be(s)))}function Zv(s){var u=++lu;return Be(s)+u}var Xv=hn(function(s,u){return s+u},0),eh=$a("ceil"),th=hn(function(s,u){return s/u},1),rh=$a("floor");function nh(s){return s&&s.length?ln(s,lt,pa):t}function ah(s,u){return s&&s.length?ln(s,_e(u,2),pa):t}function oh(s){return Bo(s,lt)}function sh(s,u){return Bo(s,_e(u,2))}function ih(s){return s&&s.length?ln(s,lt,ga):t}function lh(s,u){return s&&s.length?ln(s,_e(u,2),ga):t}var uh=hn(function(s,u){return s*u},1),ch=$a("round"),dh=hn(function(s,u){return s-u},0);function fh(s){return s&&s.length?ta(s,lt):0}function ph(s,u){return s&&s.length?ta(s,_e(u,2)):0}return V.after=Pf,V.ary=li,V.assign=Cp,V.assignIn=wi,V.assignInWith=$n,V.assignWith=wp,V.at=kp,V.before=ui,V.bind=Fa,V.bindAll=Nv,V.bindKey=ci,V.castArray=Gf,V.chain=oi,V.chunk=td,V.compact=rd,V.concat=nd,V.cond=Tv,V.conforms=Av,V.constant=Ga,V.countBy=ff,V.create=Ep,V.curry=di,V.curryRight=fi,V.debounce=vi,V.defaults=xp,V.defaultsDeep=Vp,V.defer=Lf,V.delay=Rf,V.difference=ad,V.differenceBy=od,V.differenceWith=sd,V.drop=id,V.dropRight=ld,V.dropRightWhile=ud,V.dropWhile=cd,V.fill=dd,V.filter=vf,V.flatMap=gf,V.flatMapDeep=_f,V.flatMapDepth=yf,V.flatten=ti,V.flattenDeep=fd,V.flattenDepth=pd,V.flip=If,V.flow=Bv,V.flowRight=Ov,V.fromPairs=vd,V.functions=Op,V.functionsIn=Pp,V.groupBy=bf,V.initial=md,V.intersection=gd,V.intersectionBy=_d,V.intersectionWith=yd,V.invert=Rp,V.invertBy=Ip,V.invokeMap=Cf,V.iteratee=Ka,V.keyBy=wf,V.keys=Ke,V.keysIn=it,V.map=Cn,V.mapKeys=Fp,V.mapValues=qp,V.matches=Pv,V.matchesProperty=Lv,V.memoize=kn,V.merge=Up,V.mergeWith=ki,V.method=Rv,V.methodOf=Iv,V.mixin=Ja,V.negate=En,V.nthArg=Fv,V.omit=jp,V.omitBy=Wp,V.once=Mf,V.orderBy=kf,V.over=qv,V.overArgs=Ff,V.overEvery=Uv,V.overSome=jv,V.partial=qa,V.partialRight=hi,V.partition=Ef,V.pick=Hp,V.pickBy=Ei,V.property=Di,V.propertyOf=Wv,V.pull=wd,V.pullAll=ni,V.pullAllBy=kd,V.pullAllWith=Ed,V.pullAt=xd,V.range=Hv,V.rangeRight=zv,V.rearg=qf,V.reject=$f,V.remove=Vd,V.rest=Uf,V.reverse=Ia,V.sampleSize=Tf,V.set=Gp,V.setWith=Kp,V.shuffle=Af,V.slice=$d,V.sortBy=Of,V.sortedUniq=Pd,V.sortedUniqBy=Ld,V.split=gv,V.spread=jf,V.tail=Rd,V.take=Id,V.takeRight=Md,V.takeRightWhile=Fd,V.takeWhile=qd,V.tap=rf,V.throttle=Wf,V.thru=Sn,V.toArray=bi,V.toPairs=xi,V.toPairsIn=Vi,V.toPath=Qv,V.toPlainObject=Ci,V.transform=Jp,V.unary=Hf,V.union=Ud,V.unionBy=jd,V.unionWith=Wd,V.uniq=Hd,V.uniqBy=zd,V.uniqWith=Gd,V.unset=Yp,V.unzip=Ma,V.unzipWith=ai,V.update=Qp,V.updateWith=Zp,V.values=kr,V.valuesIn=Xp,V.without=Kd,V.words=Ti,V.wrap=zf,V.xor=Jd,V.xorBy=Yd,V.xorWith=Qd,V.zip=Zd,V.zipObject=Xd,V.zipObjectDeep=ef,V.zipWith=tf,V.entries=xi,V.entriesIn=Vi,V.extend=wi,V.extendWith=$n,Ja(V,V),V.add=Xv,V.attempt=Ai,V.camelCase=nv,V.capitalize=$i,V.ceil=eh,V.clamp=ev,V.clone=Kf,V.cloneDeep=Yf,V.cloneDeepWith=Qf,V.cloneWith=Jf,V.conformsTo=Zf,V.deburr=Ni,V.defaultTo=Dv,V.divide=th,V.endsWith=av,V.eq=Vt,V.escape=ov,V.escapeRegExp=sv,V.every=pf,V.find=hf,V.findIndex=Xs,V.findKey=$p,V.findLast=mf,V.findLastIndex=ei,V.findLastKey=Np,V.floor=rh,V.forEach=si,V.forEachRight=ii,V.forIn=Tp,V.forInRight=Ap,V.forOwn=Dp,V.forOwnRight=Bp,V.get=Wa,V.gt=Xf,V.gte=ep,V.has=Lp,V.hasIn=Ha,V.head=ri,V.identity=lt,V.includes=Sf,V.indexOf=hd,V.inRange=tv,V.invoke=Mp,V.isArguments=lr,V.isArray=Ce,V.isArrayBuffer=tp,V.isArrayLike=st,V.isArrayLikeObject=je,V.isBoolean=rp,V.isBuffer=Zt,V.isDate=np,V.isElement=ap,V.isEmpty=op,V.isEqual=sp,V.isEqualWith=ip,V.isError=Ua,V.isFinite=lp,V.isFunction=Mt,V.isInteger=mi,V.isLength=xn,V.isMap=gi,V.isMatch=up,V.isMatchWith=cp,V.isNaN=dp,V.isNative=fp,V.isNil=vp,V.isNull=pp,V.isNumber=_i,V.isObject=Fe,V.isObjectLike=qe,V.isPlainObject=Mr,V.isRegExp=ja,V.isSafeInteger=hp,V.isSet=yi,V.isString=Vn,V.isSymbol=ft,V.isTypedArray=wr,V.isUndefined=mp,V.isWeakMap=gp,V.isWeakSet=_p,V.join=bd,V.kebabCase=iv,V.last=wt,V.lastIndexOf=Sd,V.lowerCase=lv,V.lowerFirst=uv,V.lt=yp,V.lte=bp,V.max=nh,V.maxBy=ah,V.mean=oh,V.meanBy=sh,V.min=ih,V.minBy=lh,V.stubArray=Qa,V.stubFalse=Za,V.stubObject=Gv,V.stubString=Kv,V.stubTrue=Jv,V.multiply=uh,V.nth=Cd,V.noConflict=Mv,V.noop=Ya,V.now=wn,V.pad=cv,V.padEnd=dv,V.padStart=fv,V.parseInt=pv,V.random=rv,V.reduce=xf,V.reduceRight=Vf,V.repeat=vv,V.replace=hv,V.result=zp,V.round=ch,V.runInContext=M,V.sample=Nf,V.size=Df,V.snakeCase=mv,V.some=Bf,V.sortedIndex=Nd,V.sortedIndexBy=Td,V.sortedIndexOf=Ad,V.sortedLastIndex=Dd,V.sortedLastIndexBy=Bd,V.sortedLastIndexOf=Od,V.startCase=_v,V.startsWith=yv,V.subtract=dh,V.sum=fh,V.sumBy=ph,V.template=bv,V.times=Yv,V.toFinite=Ft,V.toInteger=we,V.toLength=Si,V.toLower=Sv,V.toNumber=kt,V.toSafeInteger=Sp,V.toString=Be,V.toUpper=Cv,V.trim=wv,V.trimEnd=kv,V.trimStart=Ev,V.truncate=xv,V.unescape=Vv,V.uniqueId=Zv,V.upperCase=$v,V.upperFirst=za,V.each=si,V.eachRight=ii,V.first=ri,Ja(V,function(){var s={};return Tt(V,function(u,h){Oe.call(V.prototype,h)||(s[h]=u)}),s}(),{chain:!1}),V.VERSION=n,_t(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){V[s].placeholder=V}),_t(["drop","take"],function(s,u){Ne.prototype[s]=function(h){h=h===t?1:Ge(we(h),0);var b=this.__filtered__&&!u?new Ne(this):this.clone();return b.__filtered__?b.__takeCount__=Ze(h,b.__takeCount__):b.__views__.push({size:Ze(h,Z),type:s+(b.__dir__<0?"Right":"")}),b},Ne.prototype[s+"Right"]=function(h){return this.reverse()[s](h).reverse()}}),_t(["filter","map","takeWhile"],function(s,u){var h=u+1,b=h==ne||h==me;Ne.prototype[s]=function(k){var N=this.clone();return N.__iteratees__.push({iteratee:_e(k,3),type:h}),N.__filtered__=N.__filtered__||b,N}}),_t(["head","last"],function(s,u){var h="take"+(u?"Right":"");Ne.prototype[s]=function(){return this[h](1).value()[0]}}),_t(["initial","tail"],function(s,u){var h="drop"+(u?"":"Right");Ne.prototype[s]=function(){return this.__filtered__?new Ne(this):this[h](1)}}),Ne.prototype.compact=function(){return this.filter(lt)},Ne.prototype.find=function(s){return this.filter(s).head()},Ne.prototype.findLast=function(s){return this.reverse().find(s)},Ne.prototype.invokeMap=xe(function(s,u){return typeof s=="function"?new Ne(this):this.map(function(h){return Br(h,s,u)})}),Ne.prototype.reject=function(s){return this.filter(En(_e(s)))},Ne.prototype.slice=function(s,u){s=we(s);var h=this;return h.__filtered__&&(s>0||u<0)?new Ne(h):(s<0?h=h.takeRight(-s):s&&(h=h.drop(s)),u!==t&&(u=we(u),h=u<0?h.dropRight(-u):h.take(u-s)),h)},Ne.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Ne.prototype.toArray=function(){return this.take(Z)},Tt(Ne.prototype,function(s,u){var h=/^(?:filter|find|map|reject)|While$/.test(u),b=/^(?:head|last)$/.test(u),k=V[b?"take"+(u=="last"?"Right":""):u],N=b||/^find/.test(u);k&&(V.prototype[u]=function(){var D=this.__wrapped__,P=b?[1]:arguments,q=D instanceof Ne,G=P[0],J=q||Ce(D),X=function($e){var Te=k.apply(V,Ht([$e],P));return b&&ue?Te[0]:Te};J&&h&&typeof G=="function"&&G.length!=1&&(q=J=!1);var ue=this.__chain__,he=!!this.__actions__.length,ye=N&&!ue,ke=q&&!he;if(!N&&J){D=ke?D:new Ne(this);var be=s.apply(D,P);return be.__actions__.push({func:Sn,args:[X],thisArg:t}),new bt(be,ue)}return ye&&ke?s.apply(this,P):(be=this.thru(X),ye?b?be.value()[0]:be.value():be)})}),_t(["pop","push","shift","sort","splice","unshift"],function(s){var u=zr[s],h=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",b=/^(?:pop|shift)$/.test(s);V.prototype[s]=function(){var k=arguments;if(b&&!this.__chain__){var N=this.value();return u.apply(Ce(N)?N:[],k)}return this[h](function(D){return u.apply(Ce(D)?D:[],k)})}}),Tt(Ne.prototype,function(s,u){var h=V[u];if(h){var b=h.name+"";Oe.call(_r,b)||(_r[b]=[]),_r[b].push({name:u,func:h})}}),_r[vn(t,C).name]=[{name:"wrapper",func:t}],Ne.prototype.clone=xu,Ne.prototype.reverse=Vu,Ne.prototype.value=$u,V.prototype.at=nf,V.prototype.chain=af,V.prototype.commit=of,V.prototype.next=sf,V.prototype.plant=uf,V.prototype.reverse=cf,V.prototype.toJSON=V.prototype.valueOf=V.prototype.value=df,V.prototype.first=V.prototype.head,xr&&(V.prototype[xr]=lf),V},hr=ou();er?((er.exports=hr)._=hr,Hn._=hr):Je._=hr}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;const _sfc_main$2j={name:"VsHeading",status:"prototype",release:"0.1.0",props:{level:{type:[String,Number],default:"1",validator:e=>lodashExports.isNumber(e)?e>0&&e<7:e.match(/(1|2|3|4|5|6)/)},headingStyle:{type:[String,Number],required:!0,validator:e=>e.match(/(display-l|display-m|display-s|display-xs|heading-xxl|heading-xl|heading-l|heading-m|heading-s|heading-xs|heading-xxs)/)}},computed:{hasSubtitle(){return!!this.$slots["sub-heading"]},headingClasses(){return[this.headingStyle?`vs-heading--${this.headingStyle}`:""]},subHeadingClass(){let e="";switch(this.headingStyle){case"display-l":case"display-m":case"display-s":case"heading-xxl":case"heading-xl":e="l";break;case"display-xs":case"heading-l":case"heading-m":e="m";break;case"heading-s":case"heading-xs":case"heading-xxs":e="s";break;default:e=""}return`vs-heading__sub-heading--${e}`},type(){return`h${this.level}`}}};function _sfc_render$29(e,r,t,n,a,o){return vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(o.type),{class:vue.normalizeClass(["vs-heading",o.headingClasses])},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default"),e.$slots["sub-heading"]?(vue.openBlock(),vue.createElementBlock("span",{key:0,class:vue.normalizeClass(["vs-heading__sub-heading",o.subHeadingClass])},[vue.renderSlot(e.$slots,"sub-heading")],2)):vue.createCommentVNode("",!0)]),_:3},8,["class"])}const VsHeading=_export_sfc(_sfc_main$2j,[["render",_sfc_render$29]]),_sfc_main$2i={name:"VsAccordionItem",status:"prototype",release:"0.0.1",components:{VsAccordionToggle,BCard:bootstrapVueNext.BCard,VsIcon,BCardHeader:bootstrapVueNext.BCardHeader,BCardBody:bootstrapVueNext.BCardBody,VsHeading},inject:{breakPoint:{default:"lg"}},props:{colourBadge:{type:String,required:!1,default:""},controlId:{type:String,required:!0},headingLevel:{type:Number,default:2,validator:e=>lodashExports.isNumber(e)?e>0&&e<7:e.match(/(1|2|3|4|5|6)/)},itemBreakPoint:{type:String,default(){return vue.inject("breakPoint","lg")},validator:e=>e.match(/(xs|sm|md|lg|xl|xxl)/)},openByDefault:{type:Boolean,default:!1},variant:{type:String,default:"transparent"}},data(){return{show:this.openByDefault}},computed:{toggleAccordionBtn(){return this.itemBreakPoint?this.itemBreakPoint==="xs"?"d-none":`d-${this.itemBreakPoint}-none`:"d-flex"},toggleResponsiveItem(){return this.itemBreakPoint?this.itemBreakPoint==="xs"?"d-block":`d-${this.itemBreakPoint}-block`:""}},methods:{onButtonClick(){this.show=!this.show}}};function _sfc_render$28(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsAccordionToggle"),c=vue.resolveComponent("VsHeading"),d=vue.resolveComponent("BCardHeader"),f=vue.resolveComponent("BCardBody"),p=vue.resolveComponent("BCard");return vue.openBlock(),vue.createBlock(p,{"no-body":"",class:vue.normalizeClass(["vs-accordion-item",o.breakPoint?"vs-accordion-item__responsive":""]),"data-test":"vs-accordion__item"},{default:vue.withCtx(()=>[vue.createVNode(d,{class:"vs-accordion-item__card-header","data-test":"vs-accordion__item-header"},{default:vue.withCtx(()=>[vue.createVNode(l,{"aria-controls":t.controlId,visible:a.show,variant:t.variant,class:vue.normalizeClass(o.toggleAccordionBtn),onTogglePanel:o.onButtonClick},{"icon-open":vue.withCtx(()=>[vue.renderSlot(e.$slots,"icon-open",{},()=>[vue.createVNode(i,{name:"chevron",size:"sm"})])]),"icon-closed":vue.withCtx(()=>[vue.renderSlot(e.$slots,"icon-closed",{},()=>[vue.createVNode(i,{name:"chevron",orientation:"down",size:"sm"})])]),default:vue.withCtx(()=>[t.colourBadge?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"vs-accordion-item__card-colour-badge","data-test":"vs-accordion-item__card-colour-badge",style:vue.normalizeStyle("background-color: "+t.colourBadge)},null,4)):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"title")]),_:3},8,["aria-controls","visible","variant","class","onTogglePanel"]),vue.createVNode(c,{level:t.headingLevel,"heading-style":"heading-xxs",class:vue.normalizeClass(["d-none vs-accordion-item__title",o.toggleResponsiveItem]),"data-test":"vs-accordion__item-title"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"title")]),_:3},8,["level","class"])]),_:3}),vue.withDirectives(vue.createVNode(f,{id:t.controlId,class:vue.normalizeClass(["vs-accordion-item__panel",o.toggleResponsiveItem]),"data-test":"vs-accordion__item-body"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["id","class"]),[[vue.vShow,a.show]])]),_:3},8,["class"])}const VsAccordionItem=_export_sfc(_sfc_main$2i,[["render",_sfc_render$28]]),_sfc_main$2h={name:"VsAddress",status:"prototype",release:"0.1.0",components:{VsIcon}},_hoisted_1$1L={class:"vs-address","data-test":"vs-address"},_hoisted_2$1b={class:"vs-address__address-box"};function _sfc_render$27(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1L,[vue.createVNode(i,{name:"map-marker",class:"vs-address__map-marker me-050"}),vue.createElementVNode("address",_hoisted_2$1b,[vue.renderSlot(e.$slots,"default")])])}const Address=_export_sfc(_sfc_main$2h,[["render",_sfc_render$27]]),_sfc_main$2g={name:"VsAlert",status:"prototype",release:"0.1.0",components:{VsIcon}},_hoisted_1$1K={class:"vs-alert","data-test":"vs-alert"},_hoisted_2$1a={class:"vs-alert__icon-holder"},_hoisted_3$V={class:"vs-alert__content-wrapper"},_hoisted_4$J={class:"vs-alert__content"};function _sfc_render$26(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1K,[vue.createElementVNode("div",_hoisted_2$1a,[vue.createVNode(i,{class:"vs-alert__icon",name:"information",variant:"inverse"})]),vue.createElementVNode("div",_hoisted_3$V,[vue.createElementVNode("div",_hoisted_4$J,[vue.renderSlot(e.$slots,"default")])])])}const Alert=_export_sfc(_sfc_main$2g,[["render",_sfc_render$26]]),_sfc_main$2f={name:"VsCol",status:"prototype",release:"0.1.0",components:{BCol:bootstrapVueNext.BCol}};function _sfc_render$25(e,r,t,n,a,o){const i=vue.resolveComponent("BCol");return vue.openBlock(),vue.createBlock(i,vue.normalizeProps(vue.guardReactiveProps(e.$attrs)),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsCol=_export_sfc(_sfc_main$2f,[["render",_sfc_render$25]]),_sfc_main$2e={name:"VsRow",status:"prototype",release:"0.0.1"};function _sfc_render$24(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",vue.mergeProps({class:"row"},e.$attrs),[vue.renderSlot(e.$slots,"default")],16)}const VsRow=_export_sfc(_sfc_main$2e,[["render",_sfc_render$24]]),_sfc_main$2d={name:"VsContainer",status:"prototype",release:"0.1.0",components:{BContainer:bootstrapVueNext.BContainer}};function _sfc_render$23(e,r,t,n,a,o){const i=vue.resolveComponent("BContainer");return vue.openBlock(),vue.createBlock(i,vue.mergeProps({tag:"div"},e.$attrs),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsContainer=_export_sfc(_sfc_main$2d,[["render",_sfc_render$23]]),_sfc_main$2c={name:"VsRichTextWrapper",status:"prototype",release:"0.0.1",props:{variant:{type:String,default:"normal",validator:e=>e.match(/(normal|lead)/)}}};function _sfc_render$22(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-rich-text-wrapper",[`vs-rich-text-wrapper--${t.variant}`]])},[vue.renderSlot(e.$slots,"default")],2)}const VsRichTextWrapper=_export_sfc(_sfc_main$2c,[["render",_sfc_render$22]]),_sfc_main$2b={name:"VsArticle",status:"prototype",release:"0.0.1",components:{VsCol,VsRow,VsContainer,VsHeading,VsRichTextWrapper},props:{title:{type:String,required:!0},anchorLink:{type:String,default:""},businessSupport:{type:Boolean,default:!1},headingLevel:{type:Number,default:2,validator:e=>lodashExports.isNumber(e)?e>0&&e<7:e.match(/(1|2|3|4|5|6)/)}}},_hoisted_1$1J=["id"],_hoisted_2$19={class:"vs-article__content"};function _sfc_render$21(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsRichTextWrapper"),c=vue.resolveComponent("VsCol"),d=vue.resolveComponent("VsRow"),f=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("article",vue.mergeProps({class:"vs-article","data-test":"vs-article"},e.$attrs),[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,{cols:"12",class:vue.normalizeClass(t.businessSupport?null:"col-xxl-10 offset-xxl-1")},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-article__wrapper mb-300 mb-md-500",t.businessSupport?"vs-article__wrapper--no-border":null])},[t.businessSupport?vue.createCommentVNode("",!0):vue.renderSlot(e.$slots,"vs-article-img",{key:0}),vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,{cols:"12",md:"10","offset-md":t.businessSupport?null:"1"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-article__header mx-md-0 mt-300 mt-lg-500",t.businessSupport?null:"mx-150"])},[vue.createVNode(i,{level:t.headingLevel,"heading-style":"heading-xl",class:vue.normalizeClass(["mb-200 mb-lg-300",t.businessSupport?null:"text-center"])},{default:vue.withCtx(()=>[vue.createElementVNode("span",{id:t.anchorLink?t.anchorLink:""},vue.toDisplayString(t.title),9,_hoisted_1$1J)]),_:1},8,["level","class"]),vue.createVNode(l,{variant:"lead",class:vue.normalizeClass(["mb-300 mb-lg-400",t.businessSupport?null:"text-center"])},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-article-intro")]),_:3},8,["class"])],2),t.businessSupport?(vue.openBlock(),vue.createBlock(c,{key:0,class:"mb-300",cols:"7"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-article-img")]),_:3})):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2$19,[vue.renderSlot(e.$slots,"default")])]),_:3},8,["offset-md"])]),_:3})],2)]),_:3},8,["class"])]),_:3})]),_:3})],16)}const Article=_export_sfc(_sfc_main$2b,[["render",_sfc_render$21]]),_sfc_main$2a={name:"VsArticleSection",status:"prototype",release:"0.0.1",components:{VsCol,VsRow,VsRichTextWrapper},props:{sidebarAlign:{type:String,default:"left",validator:e=>e.match(/(left|right)/)},businessSupport:{type:Boolean,default:!1}},computed:{sidebarAlignClass(){return this.sidebarAlign==="right"?"vs-article-section--sidebar-right":"vs-article-section--sidebar-left"},hasSidebarSlot(){return!!this.$slots["article-sidebar"]}}};function _sfc_render$20(e,r,t,n,a,o){const i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRichTextWrapper"),c=vue.resolveComponent("VsRow");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-article-section mb-200 mb-md-400",o.sidebarAlignClass]),"data-test":"vs-article-section"},[vue.createVNode(c,null,{default:vue.withCtx(()=>[o.hasSidebarSlot?(vue.openBlock(),vue.createBlock(i,{key:0,cols:"12",md:"5",xl:"4","data-test":"vs-article-section__sidebar",class:vue.normalizeClass(["col-xxl-4",t.sidebarAlign==="right"?"pe-md-0":"ps-md-0"]),"offset-xl":t.sidebarAlign==="right"?"1":null,"order-md":t.sidebarAlign==="right"?"2":null,order:t.businessSupport?"2":null},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"article-sidebar")]),_:3},8,["class","offset-xl","order-md","order"])):vue.createCommentVNode("",!0),vue.createVNode(i,{cols:"12",md:o.hasSidebarSlot?"7":"9","data-test":"vs-article-section__content","offset-xl":t.sidebarAlign==="left"?"1":""},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["mx-md-0",!t.businessSupport&&"mx-150"])},[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})],2)]),_:3},8,["md","offset-xl"])]),_:3})],2)}const ArticleSection=_export_sfc(_sfc_main$2a,[["render",_sfc_render$20]]),_sfc_main$29={name:"VsArticleSidebar",status:"prototype",release:"0.0.1",props:{sidebarAlign:{type:String,default:"left",validator:e=>e.match(/(left|right)/)}},computed:{sidebarAlignClass(){return this.sidebarAlign==="right"?"vs-article-sidebar--right":"vs-article-sidebar--left"}}};function _sfc_render$1$(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-article-sidebar",o.sidebarAlignClass]),"data-test":"vs-article-sidebar"},[e.$slots["vs-article-sidebar-img"]&&e.$slots["vs-article-sidebar-img"]()?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass([e.$slots["vs-article-sidebar-quote"]&&e.$slots["vs-article-sidebar-quote"]()?"pb-200":"","vs-article-sidebar__img-wrapper"])},[vue.renderSlot(e.$slots,"vs-article-sidebar-img")],2)):vue.createCommentVNode("",!0),e.$slots["vs-article-sidebar-quote"]&&e.$slots["vs-article-sidebar-quote"]()?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass([e.$slots["vs-article-sidebar-img"]&&e.$slots["vs-article-sidebar-img"]()?"pt-0":"","vs-article-sidebar__quote-wrapper"])},[vue.renderSlot(e.$slots,"vs-article-sidebar-quote")],2)):vue.createCommentVNode("",!0)],2)}const ArticleSidebar=_export_sfc(_sfc_main$29,[["render",_sfc_render$1$]]),_hoisted_1$1I={class:"vs-badge","data-test":"vs-badge"},_sfc_main$28={__name:"VsBadge",setup(e){return(r,t)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1I,[vue.createVNode(vue.unref(bootstrapVueNext.BBadge),null,{default:vue.withCtx(()=>[vue.renderSlot(r.$slots,"default")]),_:3})]))}},cookieMixin={computed:{selectedLanguage(){return this.language.substr(0,2).toUpperCase()},localeCookie(){return this.language.replace("_","-").toLowerCase()},translationCookie(){return`/en/${this.language.substr(0,2).toLowerCase()}`}},methods:{cookieExists(e){return document.cookie.indexOf(`${e}=`)>=0},setCookie(e,r,t,n=!1){let a="";if(a=`${e}=${r};`,a+="path=/;",t&&!n){const o=new Date;o.setFullYear(o.getFullYear()+1),a+=`expires=${o};`}document.cookie=a}}},_sfc_main$27={name:"VsBanner",status:"prototype",release:"0.0.1",components:{VsButton,VsContainer,VsRow,VsCol,VsRichTextWrapper,VsIcon},mixins:[cookieMixin],props:{closeBtnText:{type:String,required:!0},dontShowAgain:{type:Boolean,default:!0}},data(){return{showBanner:!0}},mounted(){const e=this.cookieExists("vs_showbanner");this.showBanner=!e},methods:{hideBanner(){this.showBanner=!this.showBanner,this.dontShowAgain&&this.setHiddenCookie()},setHiddenCookie(){const e=this.cookieExists("vs_showbanner");this.setCookie("vs_showbanner",this.showBanner,!e,!0)}}},_hoisted_1$1H={key:0,class:"vs-banner","data-test":"vs-banner",role:"banner"},_hoisted_2$18={key:0,class:"vs-banner__cta-link"};function _sfc_render$1_(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRichTextWrapper"),d=vue.resolveComponent("VsRow"),f=vue.resolveComponent("VsButton"),p=vue.resolveComponent("VsContainer");return a.showBanner?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1H,[vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"11",class:"vs-banner__content-wrapper"},{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"1",class:"vs-banner__icon-wrapper"},{default:vue.withCtx(()=>[vue.createVNode(i,{size:"sm",name:"review",class:"vs-banner__icon"})]),_:1}),vue.createVNode(l,{cols:"11"},{default:vue.withCtx(()=>[e.$slots["banner-text"]||e.$slots["banner-cta"]?(vue.openBlock(),vue.createBlock(c,{key:0,class:"vs-banner__text"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"banner-text"),e.$slots["banner-cta"]?(vue.openBlock(),vue.createElementBlock("span",_hoisted_2$18,[vue.renderSlot(e.$slots,"banner-cta")])):vue.createCommentVNode("",!0)]),_:3})):vue.createCommentVNode("",!0)]),_:3})]),_:3})]),_:3}),vue.createVNode(l,{cols:"1"},{default:vue.withCtx(()=>[vue.createVNode(f,{class:"vs-banner__close-btn","data-test":"vs-banner__close-btn",variant:"transparent",icon:"close",size:"md","icon-only":"",onClick:o.hideBanner},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.closeBtnText),1)]),_:1},8,["onClick"])]),_:1})]),_:3})]),_:3})])):vue.createCommentVNode("",!0)}const Banner=_export_sfc(_sfc_main$27,[["render",_sfc_render$1_]]),_sfc_main$26={name:"VsBlogDetails",status:"prototype",release:"0.0.1",props:{blogAuthor:{type:String,required:!0},blogPublishDate:{type:String,required:!0},blogReadTime:{type:String,required:!0}}},_hoisted_1$1G={class:"vs-blog-details","data-test":"vs-blog-details"},_hoisted_2$17={class:"vs-blog-details__author"},_hoisted_3$U=vue.createElementVNode("span",{class:"vs-blog-details__divider"},"·",-1),_hoisted_4$I={class:"vs-blog-details__date"},_hoisted_5$u={class:"vs-blog-details__read-time"};function _sfc_render$1Z(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1G,[vue.createElementVNode("span",_hoisted_2$17,[vue.createTextVNode(vue.toDisplayString(t.blogAuthor)+" ",1),_hoisted_3$U,vue.createElementVNode("span",_hoisted_4$I,vue.toDisplayString(t.blogPublishDate),1)]),vue.createElementVNode("span",_hoisted_5$u,vue.toDisplayString(t.blogReadTime),1)])}const BlogDetails=_export_sfc(_sfc_main$26,[["render",_sfc_render$1Z]]),_sfc_main$25={name:"VsBreadcrumb",status:"prototype",release:"0.0.1",components:{BBreadcrumb:bootstrapVueNext.BBreadcrumb}},_hoisted_1$1F={"aria-label":"breadcrumbs",class:"vs-breadcrumb py-050"};function _sfc_render$1Y(e,r,t,n,a,o){const i=vue.resolveComponent("BBreadcrumb");return vue.openBlock(),vue.createElementBlock("nav",_hoisted_1$1F,[vue.createVNode(i,vue.mergeProps({class:"flex-nowrap p-0 mb-0"},e.$attrs),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)])}const Breadcrumb=_export_sfc(_sfc_main$25,[["render",_sfc_render$1Y]]),_sfc_main$24={name:"VsBreadcrumbItem",status:"prototype",release:"0.0.1",components:{BBreadcrumbItem:bootstrapVueNext.BBreadcrumbItem},props:{href:{type:String,default:""},active:{type:Boolean,default:!1},ariaCurrent:{type:String,default:"page"},text:{type:String,default:"",required:!0}}};function _sfc_render$1X(e,r,t,n,a,o){const i=vue.resolveComponent("BBreadcrumbItem");return vue.openBlock(),vue.createBlock(i,vue.mergeProps({class:"vs-breadcrumb-item",active:t.active,"aria-current":t.ariaCurrent,href:t.href,text:t.text},e.$attrs),null,16,["active","aria-current","href","text"])}const BreadcrumbItem=_export_sfc(_sfc_main$24,[["render",_sfc_render$1X]]),_sfc_main$23={name:"VsButtonToggleGroup",status:"prototype",release:"0.0.1",components:{BFormGroup:bootstrapVueNext.BFormGroup,BFormRadioGroup:bootstrapVueNext.BFormRadioGroup,BFormRadio:bootstrapVueNext.BFormRadio,VsIcon},props:{options:{type:Array,required:!0},initialSelected:{type:String,default:""},buttonsLabel:{type:String,required:!0}},emits:["toggleChanged"],data(){return{selected:this.initialSelected,groupTabbedInto:!1}},watch:{initialSelected(e){this.selected=e}},mounted(){this.initialSelected===""&&(this.selected=this.options[0].value)},methods:{toggleChange(e){const r=e.target.value;this.$emit("toggleChanged",r)},addTabClass(){this.groupTabbedInto=!0},removeTabClass(e){e.target.tagName!=="INPUT"&&(this.groupTabbedInto=!1)}}};function _sfc_render$1W(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("BFormRadio"),c=vue.resolveComponent("BFormRadioGroup"),d=vue.resolveComponent("BFormGroup");return vue.openBlock(),vue.createBlock(d,{label:t.buttonsLabel,class:"vs-button-toggle-group","data-test":"vs-button-toggle-group"},{default:vue.withCtx(({ariaDescribedby:f})=>[vue.createVNode(c,{class:vue.normalizeClass(["vs-button-toggle-group--radios",a.groupTabbedInto?"vs-button-toggle-group--tabbed-focus":""]),id:"btn-radios-1",modelValue:a.selected,"onUpdate:modelValue":r[2]||(r[2]=p=>a.selected=p),"aria-describedby":f,name:"radios-btn-default",buttons:"",onChange:o.toggleChange,onFocusout:o.removeTabClass},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.options,p=>(vue.openBlock(),vue.createElementBlock("div",{key:p.text,class:vue.normalizeClass(["vs-button-toggle-group--button",a.selected===p.value?"active":""]),onKeyup:r[0]||(r[0]=vue.withKeys((...v)=>o.addTabClass&&o.addTabClass(...v),["tab"])),"onFocus`out":r[1]||(r[1]=(...v)=>o.removeTabClass&&o.removeTabClass(...v))},[(vue.openBlock(),vue.createBlock(l,{value:p.value,key:p.text},{default:vue.withCtx(()=>[vue.createElementVNode("span",null,[p.icon?(vue.openBlock(),vue.createBlock(i,{key:0,name:p.icon,class:"me-025"},null,8,["name"])):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(p.text),1)])]),_:2},1032,["value"]))],34))),128))]),_:2},1032,["modelValue","aria-describedby","onChange","class","onFocusout"])]),_:1},8,["label"])}const ButtonToggleGroup=_export_sfc(_sfc_main$23,[["render",_sfc_render$1W]]),srcSetMixin={computed:{fullSrcSet(){return`
26
+ `)+Z+`return __p
27
+ }`;var ke=Ai(function(){return De(N,he+"return "+Z).apply(t,D)});if(ke.source=Z,Ua(ke))throw ke;return ke}function Sv(s){return Be(s).toLowerCase()}function Cv(s){return Be(s).toUpperCase()}function wv(s,u,h){if(s=Be(s),s&&(h||u===t))return Po(s);if(!s||!(u=dt(u)))return s;var b=xt(s),k=xt(u),N=Lo(b,k),D=Ro(b,k)+1;return Qt(b,N,D).join("")}function kv(s,u,h){if(s=Be(s),s&&(h||u===t))return s.slice(0,Mo(s)+1);if(!s||!(u=dt(u)))return s;var b=xt(s),k=Ro(b,xt(u))+1;return Qt(b,0,k).join("")}function xv(s,u,h){if(s=Be(s),s&&(h||u===t))return s.replace(Mn,"");if(!s||!(u=dt(u)))return s;var b=xt(s),k=Lo(b,xt(u));return Qt(b,k).join("")}function Ev(s,u){var h=oe,b=Q;if(Fe(u)){var k="separator"in u?u.separator:k;h="length"in u?we(u.length):h,b="omission"in u?dt(u.omission):b}s=Be(s);var N=s.length;if(pr(s)){var D=xt(s);N=D.length}if(h>=N)return s;var P=h-vr(b);if(P<1)return b;var q=D?Qt(D,0,P).join(""):s.slice(0,P);if(k===t)return q+b;if(D&&(P+=q.length-P),Wa(k)){if(s.slice(P).search(k)){var G,Y=q;for(k.global||(k=oa(k.source,Be(ro.exec(k))+"g")),k.lastIndex=0;G=k.exec(Y);)var Z=G.index;q=q.slice(0,Z===t?P:Z)}}else if(s.indexOf(dt(k),P)!=P){var ue=q.lastIndexOf(k);ue>-1&&(q=q.slice(0,ue))}return q+b}function Vv(s){return s=Be(s),s&&Ri.test(s)?s.replace(Za,tu):s}var $v=Sr(function(s,u,h){return s+(h?" ":"")+u.toUpperCase()}),za=As("toUpperCase");function Ti(s,u,h){return s=Be(s),u=h?t:u,u===t?Jl(s)?au(s):ql(s):s.match(u)||[]}var Ai=Ee(function(s,u){try{return ut(s,t,u)}catch(h){return Ua(h)?h:new Se(h)}}),Nv=Rt(function(s,u){return _t(u,function(h){h=Dt(h),Pt(s,h,Fa(s[h],s))}),s});function Tv(s){var u=s==null?0:s.length,h=_e();return s=u?Me(s,function(b){if(typeof b[1]!="function")throw new yt(i);return[h(b[0]),b[1]]}):[],Ee(function(b){for(var k=-1;++k<u;){var N=s[k];if(ut(N[0],this,b))return ut(N[1],this,b)}})}function Av(s){return tc(St(s,p))}function Ga(s){return function(){return s}}function Dv(s,u){return s==null||s!==s?u:s}var Bv=Bs(),Ov=Bs(!0);function lt(s){return s}function Ka(s){return ss(typeof s=="function"?s:St(s,p))}function Pv(s){return us(St(s,p))}function Lv(s,u){return cs(s,St(u,p))}var Rv=Ee(function(s,u){return function(h){return Br(h,s,u)}}),Iv=Ee(function(s,u){return function(h){return Br(s,h,u)}});function Ya(s,u,h){var b=Ke(u),k=un(u,b);h==null&&!(Fe(u)&&(k.length||!b.length))&&(h=u,u=s,s=this,k=un(u,Ke(u)));var N=!(Fe(h)&&"chain"in h)||!!h.chain,D=Mt(s);return _t(k,function(P){var q=u[P];s[P]=q,D&&(s.prototype[P]=function(){var G=this.__chain__;if(N||G){var Y=s(this.__wrapped__),Z=Y.__actions__=ot(this.__actions__);return Z.push({func:q,args:arguments,thisArg:s}),Y.__chain__=G,Y}return q.apply(s,Ht([this.value()],arguments))})}),s}function Mv(){return Ye._===this&&(Ye._=cu),this}function Ja(){}function Fv(s){return s=we(s),Ee(function(u){return ds(u,s)})}var qv=Va(Me),Uv=Va(To),Wv=Va(Jn);function Di(s){return Oa(s)?Qn(Dt(s)):_c(s)}function jv(s){return function(u){return s==null?t:or(s,u)}}var Hv=Ps(),zv=Ps(!0);function Qa(){return[]}function Xa(){return!1}function Gv(){return{}}function Kv(){return""}function Yv(){return!0}function Jv(s,u){if(s=we(s),s<1||s>A)return[];var h=X,b=Xe(s,X);u=_e(u),s-=X;for(var k=ra(b,u);++h<s;)u(h);return k}function Qv(s){return Ce(s)?Me(s,Dt):ft(s)?[s]:ot(Qs(Be(s)))}function Xv(s){var u=++lu;return Be(s)+u}var Zv=hn(function(s,u){return s+u},0),eh=$a("ceil"),th=hn(function(s,u){return s/u},1),rh=$a("floor");function nh(s){return s&&s.length?ln(s,lt,pa):t}function ah(s,u){return s&&s.length?ln(s,_e(u,2),pa):t}function oh(s){return Bo(s,lt)}function sh(s,u){return Bo(s,_e(u,2))}function ih(s){return s&&s.length?ln(s,lt,ga):t}function lh(s,u){return s&&s.length?ln(s,_e(u,2),ga):t}var uh=hn(function(s,u){return s*u},1),ch=$a("round"),dh=hn(function(s,u){return s-u},0);function fh(s){return s&&s.length?ta(s,lt):0}function ph(s,u){return s&&s.length?ta(s,_e(u,2)):0}return V.after=Pf,V.ary=li,V.assign=Cp,V.assignIn=wi,V.assignInWith=$n,V.assignWith=wp,V.at=kp,V.before=ui,V.bind=Fa,V.bindAll=Nv,V.bindKey=ci,V.castArray=Gf,V.chain=oi,V.chunk=td,V.compact=rd,V.concat=nd,V.cond=Tv,V.conforms=Av,V.constant=Ga,V.countBy=ff,V.create=xp,V.curry=di,V.curryRight=fi,V.debounce=vi,V.defaults=Ep,V.defaultsDeep=Vp,V.defer=Lf,V.delay=Rf,V.difference=ad,V.differenceBy=od,V.differenceWith=sd,V.drop=id,V.dropRight=ld,V.dropRightWhile=ud,V.dropWhile=cd,V.fill=dd,V.filter=vf,V.flatMap=gf,V.flatMapDeep=_f,V.flatMapDepth=yf,V.flatten=ti,V.flattenDeep=fd,V.flattenDepth=pd,V.flip=If,V.flow=Bv,V.flowRight=Ov,V.fromPairs=vd,V.functions=Op,V.functionsIn=Pp,V.groupBy=bf,V.initial=md,V.intersection=gd,V.intersectionBy=_d,V.intersectionWith=yd,V.invert=Rp,V.invertBy=Ip,V.invokeMap=Cf,V.iteratee=Ka,V.keyBy=wf,V.keys=Ke,V.keysIn=it,V.map=Cn,V.mapKeys=Fp,V.mapValues=qp,V.matches=Pv,V.matchesProperty=Lv,V.memoize=kn,V.merge=Up,V.mergeWith=ki,V.method=Rv,V.methodOf=Iv,V.mixin=Ya,V.negate=xn,V.nthArg=Fv,V.omit=Wp,V.omitBy=jp,V.once=Mf,V.orderBy=kf,V.over=qv,V.overArgs=Ff,V.overEvery=Uv,V.overSome=Wv,V.partial=qa,V.partialRight=hi,V.partition=xf,V.pick=Hp,V.pickBy=xi,V.property=Di,V.propertyOf=jv,V.pull=wd,V.pullAll=ni,V.pullAllBy=kd,V.pullAllWith=xd,V.pullAt=Ed,V.range=Hv,V.rangeRight=zv,V.rearg=qf,V.reject=$f,V.remove=Vd,V.rest=Uf,V.reverse=Ia,V.sampleSize=Tf,V.set=Gp,V.setWith=Kp,V.shuffle=Af,V.slice=$d,V.sortBy=Of,V.sortedUniq=Pd,V.sortedUniqBy=Ld,V.split=gv,V.spread=Wf,V.tail=Rd,V.take=Id,V.takeRight=Md,V.takeRightWhile=Fd,V.takeWhile=qd,V.tap=rf,V.throttle=jf,V.thru=Sn,V.toArray=bi,V.toPairs=Ei,V.toPairsIn=Vi,V.toPath=Qv,V.toPlainObject=Ci,V.transform=Yp,V.unary=Hf,V.union=Ud,V.unionBy=Wd,V.unionWith=jd,V.uniq=Hd,V.uniqBy=zd,V.uniqWith=Gd,V.unset=Jp,V.unzip=Ma,V.unzipWith=ai,V.update=Qp,V.updateWith=Xp,V.values=kr,V.valuesIn=Zp,V.without=Kd,V.words=Ti,V.wrap=zf,V.xor=Yd,V.xorBy=Jd,V.xorWith=Qd,V.zip=Xd,V.zipObject=Zd,V.zipObjectDeep=ef,V.zipWith=tf,V.entries=Ei,V.entriesIn=Vi,V.extend=wi,V.extendWith=$n,Ya(V,V),V.add=Zv,V.attempt=Ai,V.camelCase=nv,V.capitalize=$i,V.ceil=eh,V.clamp=ev,V.clone=Kf,V.cloneDeep=Jf,V.cloneDeepWith=Qf,V.cloneWith=Yf,V.conformsTo=Xf,V.deburr=Ni,V.defaultTo=Dv,V.divide=th,V.endsWith=av,V.eq=Vt,V.escape=ov,V.escapeRegExp=sv,V.every=pf,V.find=hf,V.findIndex=Zs,V.findKey=$p,V.findLast=mf,V.findLastIndex=ei,V.findLastKey=Np,V.floor=rh,V.forEach=si,V.forEachRight=ii,V.forIn=Tp,V.forInRight=Ap,V.forOwn=Dp,V.forOwnRight=Bp,V.get=ja,V.gt=Zf,V.gte=ep,V.has=Lp,V.hasIn=Ha,V.head=ri,V.identity=lt,V.includes=Sf,V.indexOf=hd,V.inRange=tv,V.invoke=Mp,V.isArguments=lr,V.isArray=Ce,V.isArrayBuffer=tp,V.isArrayLike=st,V.isArrayLikeObject=We,V.isBoolean=rp,V.isBuffer=Xt,V.isDate=np,V.isElement=ap,V.isEmpty=op,V.isEqual=sp,V.isEqualWith=ip,V.isError=Ua,V.isFinite=lp,V.isFunction=Mt,V.isInteger=mi,V.isLength=En,V.isMap=gi,V.isMatch=up,V.isMatchWith=cp,V.isNaN=dp,V.isNative=fp,V.isNil=vp,V.isNull=pp,V.isNumber=_i,V.isObject=Fe,V.isObjectLike=qe,V.isPlainObject=Mr,V.isRegExp=Wa,V.isSafeInteger=hp,V.isSet=yi,V.isString=Vn,V.isSymbol=ft,V.isTypedArray=wr,V.isUndefined=mp,V.isWeakMap=gp,V.isWeakSet=_p,V.join=bd,V.kebabCase=iv,V.last=wt,V.lastIndexOf=Sd,V.lowerCase=lv,V.lowerFirst=uv,V.lt=yp,V.lte=bp,V.max=nh,V.maxBy=ah,V.mean=oh,V.meanBy=sh,V.min=ih,V.minBy=lh,V.stubArray=Qa,V.stubFalse=Xa,V.stubObject=Gv,V.stubString=Kv,V.stubTrue=Yv,V.multiply=uh,V.nth=Cd,V.noConflict=Mv,V.noop=Ja,V.now=wn,V.pad=cv,V.padEnd=dv,V.padStart=fv,V.parseInt=pv,V.random=rv,V.reduce=Ef,V.reduceRight=Vf,V.repeat=vv,V.replace=hv,V.result=zp,V.round=ch,V.runInContext=M,V.sample=Nf,V.size=Df,V.snakeCase=mv,V.some=Bf,V.sortedIndex=Nd,V.sortedIndexBy=Td,V.sortedIndexOf=Ad,V.sortedLastIndex=Dd,V.sortedLastIndexBy=Bd,V.sortedLastIndexOf=Od,V.startCase=_v,V.startsWith=yv,V.subtract=dh,V.sum=fh,V.sumBy=ph,V.template=bv,V.times=Jv,V.toFinite=Ft,V.toInteger=we,V.toLength=Si,V.toLower=Sv,V.toNumber=kt,V.toSafeInteger=Sp,V.toString=Be,V.toUpper=Cv,V.trim=wv,V.trimEnd=kv,V.trimStart=xv,V.truncate=Ev,V.unescape=Vv,V.uniqueId=Xv,V.upperCase=$v,V.upperFirst=za,V.each=si,V.eachRight=ii,V.first=ri,Ya(V,function(){var s={};return Tt(V,function(u,h){Oe.call(V.prototype,h)||(s[h]=u)}),s}(),{chain:!1}),V.VERSION=n,_t(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){V[s].placeholder=V}),_t(["drop","take"],function(s,u){Ne.prototype[s]=function(h){h=h===t?1:Ge(we(h),0);var b=this.__filtered__&&!u?new Ne(this):this.clone();return b.__filtered__?b.__takeCount__=Xe(h,b.__takeCount__):b.__views__.push({size:Xe(h,X),type:s+(b.__dir__<0?"Right":"")}),b},Ne.prototype[s+"Right"]=function(h){return this.reverse()[s](h).reverse()}}),_t(["filter","map","takeWhile"],function(s,u){var h=u+1,b=h==ne||h==me;Ne.prototype[s]=function(k){var N=this.clone();return N.__iteratees__.push({iteratee:_e(k,3),type:h}),N.__filtered__=N.__filtered__||b,N}}),_t(["head","last"],function(s,u){var h="take"+(u?"Right":"");Ne.prototype[s]=function(){return this[h](1).value()[0]}}),_t(["initial","tail"],function(s,u){var h="drop"+(u?"":"Right");Ne.prototype[s]=function(){return this.__filtered__?new Ne(this):this[h](1)}}),Ne.prototype.compact=function(){return this.filter(lt)},Ne.prototype.find=function(s){return this.filter(s).head()},Ne.prototype.findLast=function(s){return this.reverse().find(s)},Ne.prototype.invokeMap=Ee(function(s,u){return typeof s=="function"?new Ne(this):this.map(function(h){return Br(h,s,u)})}),Ne.prototype.reject=function(s){return this.filter(xn(_e(s)))},Ne.prototype.slice=function(s,u){s=we(s);var h=this;return h.__filtered__&&(s>0||u<0)?new Ne(h):(s<0?h=h.takeRight(-s):s&&(h=h.drop(s)),u!==t&&(u=we(u),h=u<0?h.dropRight(-u):h.take(u-s)),h)},Ne.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Ne.prototype.toArray=function(){return this.take(X)},Tt(Ne.prototype,function(s,u){var h=/^(?:filter|find|map|reject)|While$/.test(u),b=/^(?:head|last)$/.test(u),k=V[b?"take"+(u=="last"?"Right":""):u],N=b||/^find/.test(u);k&&(V.prototype[u]=function(){var D=this.__wrapped__,P=b?[1]:arguments,q=D instanceof Ne,G=P[0],Y=q||Ce(D),Z=function($e){var Te=k.apply(V,Ht([$e],P));return b&&ue?Te[0]:Te};Y&&h&&typeof G=="function"&&G.length!=1&&(q=Y=!1);var ue=this.__chain__,he=!!this.__actions__.length,ye=N&&!ue,ke=q&&!he;if(!N&&Y){D=ke?D:new Ne(this);var be=s.apply(D,P);return be.__actions__.push({func:Sn,args:[Z],thisArg:t}),new bt(be,ue)}return ye&&ke?s.apply(this,P):(be=this.thru(Z),ye?b?be.value()[0]:be.value():be)})}),_t(["pop","push","shift","sort","splice","unshift"],function(s){var u=zr[s],h=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",b=/^(?:pop|shift)$/.test(s);V.prototype[s]=function(){var k=arguments;if(b&&!this.__chain__){var N=this.value();return u.apply(Ce(N)?N:[],k)}return this[h](function(D){return u.apply(Ce(D)?D:[],k)})}}),Tt(Ne.prototype,function(s,u){var h=V[u];if(h){var b=h.name+"";Oe.call(_r,b)||(_r[b]=[]),_r[b].push({name:u,func:h})}}),_r[vn(t,C).name]=[{name:"wrapper",func:t}],Ne.prototype.clone=Eu,Ne.prototype.reverse=Vu,Ne.prototype.value=$u,V.prototype.at=nf,V.prototype.chain=af,V.prototype.commit=of,V.prototype.next=sf,V.prototype.plant=uf,V.prototype.reverse=cf,V.prototype.toJSON=V.prototype.valueOf=V.prototype.value=df,V.prototype.first=V.prototype.head,Er&&(V.prototype[Er]=lf),V},hr=ou();er?((er.exports=hr)._=hr,Hn._=hr):Ye._=hr}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;const _sfc_main$2j={name:"VsHeading",status:"prototype",release:"0.1.0",props:{level:{type:[String,Number],default:"1",validator:e=>lodashExports.isNumber(e)?e>0&&e<7:e.match(/(1|2|3|4|5|6)/)},headingStyle:{type:[String,Number],required:!0,validator:e=>e.match(/(display-l|display-m|display-s|display-xs|heading-xxl|heading-xl|heading-l|heading-m|heading-s|heading-xs|heading-xxs)/)}},computed:{hasSubtitle(){return!!this.$slots["sub-heading"]},headingClasses(){return[this.headingStyle?`vs-heading--${this.headingStyle}`:""]},subHeadingClass(){let e="";switch(this.headingStyle){case"display-l":case"display-m":case"display-s":case"heading-xxl":case"heading-xl":e="l";break;case"display-xs":case"heading-l":case"heading-m":e="m";break;case"heading-s":case"heading-xs":case"heading-xxs":e="s";break;default:e=""}return`vs-heading__sub-heading--${e}`},type(){return`h${this.level}`}}};function _sfc_render$29(e,r,t,n,a,o){return vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(o.type),{class:vue.normalizeClass(["vs-heading",o.headingClasses])},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default"),e.$slots["sub-heading"]?(vue.openBlock(),vue.createElementBlock("span",{key:0,class:vue.normalizeClass(["vs-heading__sub-heading",o.subHeadingClass])},[vue.renderSlot(e.$slots,"sub-heading")],2)):vue.createCommentVNode("",!0)]),_:3},8,["class"])}const VsHeading=_export_sfc(_sfc_main$2j,[["render",_sfc_render$29]]),_sfc_main$2i={name:"VsAccordionItem",status:"prototype",release:"0.0.1",components:{VsAccordionToggle,BCard:bootstrapVueNext.BCard,VsIcon,BCardHeader:bootstrapVueNext.BCardHeader,BCardBody:bootstrapVueNext.BCardBody,VsHeading},inject:{breakPoint:{default:"lg"}},props:{colourBadge:{type:String,required:!1,default:""},controlId:{type:String,required:!0},headingLevel:{type:Number,default:2,validator:e=>lodashExports.isNumber(e)?e>0&&e<7:e.match(/(1|2|3|4|5|6)/)},itemBreakPoint:{type:String,default(){return vue.inject("breakPoint","lg")},validator:e=>e.match(/(xs|sm|md|lg|xl|xxl)/)},openByDefault:{type:Boolean,default:!1},variant:{type:String,default:"transparent"}},data(){return{show:this.openByDefault}},computed:{toggleAccordionBtn(){return this.itemBreakPoint?this.itemBreakPoint==="xs"?"d-none":`d-${this.itemBreakPoint}-none`:"d-flex"},toggleResponsiveItem(){return this.itemBreakPoint?this.itemBreakPoint==="xs"?"d-block":`d-${this.itemBreakPoint}-block`:""}},methods:{onButtonClick(){this.show=!this.show}}};function _sfc_render$28(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsAccordionToggle"),c=vue.resolveComponent("VsHeading"),d=vue.resolveComponent("BCardHeader"),f=vue.resolveComponent("BCardBody"),p=vue.resolveComponent("BCard");return vue.openBlock(),vue.createBlock(p,{"no-body":"",class:vue.normalizeClass(["vs-accordion-item",o.breakPoint?"vs-accordion-item__responsive":""]),"data-test":"vs-accordion__item"},{default:vue.withCtx(()=>[vue.createVNode(d,{class:"vs-accordion-item__card-header","data-test":"vs-accordion__item-header"},{default:vue.withCtx(()=>[vue.createVNode(l,{"aria-controls":t.controlId,visible:a.show,variant:t.variant,class:vue.normalizeClass(o.toggleAccordionBtn),onTogglePanel:o.onButtonClick},{"icon-open":vue.withCtx(()=>[vue.renderSlot(e.$slots,"icon-open",{},()=>[vue.createVNode(i,{name:"chevron",size:"sm"})])]),"icon-closed":vue.withCtx(()=>[vue.renderSlot(e.$slots,"icon-closed",{},()=>[vue.createVNode(i,{name:"chevron",orientation:"down",size:"sm"})])]),default:vue.withCtx(()=>[t.colourBadge?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"vs-accordion-item__card-colour-badge","data-test":"vs-accordion-item__card-colour-badge",style:vue.normalizeStyle("background-color: "+t.colourBadge)},null,4)):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"title")]),_:3},8,["aria-controls","visible","variant","class","onTogglePanel"]),vue.createVNode(c,{level:t.headingLevel,"heading-style":"heading-xxs",class:vue.normalizeClass(["d-none vs-accordion-item__title",o.toggleResponsiveItem]),"data-test":"vs-accordion__item-title"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"title")]),_:3},8,["level","class"])]),_:3}),vue.withDirectives(vue.createVNode(f,{id:t.controlId,class:vue.normalizeClass(["vs-accordion-item__panel",o.toggleResponsiveItem]),"data-test":"vs-accordion__item-body"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["id","class"]),[[vue.vShow,a.show]])]),_:3},8,["class"])}const VsAccordionItem=_export_sfc(_sfc_main$2i,[["render",_sfc_render$28]]),_sfc_main$2h={name:"VsAddress",status:"prototype",release:"0.1.0",components:{VsIcon}},_hoisted_1$1L={class:"vs-address","data-test":"vs-address"},_hoisted_2$1b={class:"vs-address__address-box"};function _sfc_render$27(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1L,[vue.createVNode(i,{name:"map-marker",class:"vs-address__map-marker me-050"}),vue.createElementVNode("address",_hoisted_2$1b,[vue.renderSlot(e.$slots,"default")])])}const Address=_export_sfc(_sfc_main$2h,[["render",_sfc_render$27]]),_sfc_main$2g={name:"VsAlert",status:"prototype",release:"0.1.0",components:{VsIcon}},_hoisted_1$1K={class:"vs-alert","data-test":"vs-alert"},_hoisted_2$1a={class:"vs-alert__icon-holder"},_hoisted_3$V={class:"vs-alert__content-wrapper"},_hoisted_4$J={class:"vs-alert__content"};function _sfc_render$26(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1K,[vue.createElementVNode("div",_hoisted_2$1a,[vue.createVNode(i,{class:"vs-alert__icon",name:"information",variant:"inverse"})]),vue.createElementVNode("div",_hoisted_3$V,[vue.createElementVNode("div",_hoisted_4$J,[vue.renderSlot(e.$slots,"default")])])])}const Alert=_export_sfc(_sfc_main$2g,[["render",_sfc_render$26]]),_sfc_main$2f={name:"VsCol",status:"prototype",release:"0.1.0",components:{BCol:bootstrapVueNext.BCol}};function _sfc_render$25(e,r,t,n,a,o){const i=vue.resolveComponent("BCol");return vue.openBlock(),vue.createBlock(i,vue.normalizeProps(vue.guardReactiveProps(e.$attrs)),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsCol=_export_sfc(_sfc_main$2f,[["render",_sfc_render$25]]),_sfc_main$2e={name:"VsRow",status:"prototype",release:"0.0.1"};function _sfc_render$24(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",vue.mergeProps({class:"row"},e.$attrs),[vue.renderSlot(e.$slots,"default")],16)}const VsRow=_export_sfc(_sfc_main$2e,[["render",_sfc_render$24]]),_sfc_main$2d={name:"VsContainer",status:"prototype",release:"0.1.0",components:{BContainer:bootstrapVueNext.BContainer}};function _sfc_render$23(e,r,t,n,a,o){const i=vue.resolveComponent("BContainer");return vue.openBlock(),vue.createBlock(i,vue.mergeProps({tag:"div"},e.$attrs),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsContainer=_export_sfc(_sfc_main$2d,[["render",_sfc_render$23]]),_sfc_main$2c={name:"VsRichTextWrapper",status:"prototype",release:"0.0.1",props:{variant:{type:String,default:"normal",validator:e=>e.match(/(normal|lead)/)}}};function _sfc_render$22(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-rich-text-wrapper",[`vs-rich-text-wrapper--${t.variant}`]])},[vue.renderSlot(e.$slots,"default")],2)}const VsRichTextWrapper=_export_sfc(_sfc_main$2c,[["render",_sfc_render$22]]),_sfc_main$2b={name:"VsArticle",status:"prototype",release:"0.0.1",components:{VsCol,VsRow,VsContainer,VsHeading,VsRichTextWrapper},props:{title:{type:String,required:!0},anchorLink:{type:String,default:""},businessSupport:{type:Boolean,default:!1},headingLevel:{type:Number,default:2,validator:e=>lodashExports.isNumber(e)?e>0&&e<7:e.match(/(1|2|3|4|5|6)/)}}},_hoisted_1$1J=["id"],_hoisted_2$19={class:"vs-article__content"};function _sfc_render$21(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsRichTextWrapper"),c=vue.resolveComponent("VsCol"),d=vue.resolveComponent("VsRow"),f=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("article",vue.mergeProps({class:"vs-article","data-test":"vs-article"},e.$attrs),[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,{cols:"12",class:vue.normalizeClass(t.businessSupport?null:"col-xxl-10 offset-xxl-1")},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-article__wrapper mb-300 mb-md-500",t.businessSupport?"vs-article__wrapper--no-border":null])},[t.businessSupport?vue.createCommentVNode("",!0):vue.renderSlot(e.$slots,"vs-article-img",{key:0}),vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,{cols:"12",md:"10","offset-md":t.businessSupport?null:"1"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-article__header mx-md-0 mt-300 mt-lg-500",t.businessSupport?null:"mx-150"])},[vue.createVNode(i,{level:t.headingLevel,"heading-style":"heading-xl",class:vue.normalizeClass(["mb-200 mb-lg-300",t.businessSupport?null:"text-center"])},{default:vue.withCtx(()=>[vue.createElementVNode("span",{id:t.anchorLink?t.anchorLink:""},vue.toDisplayString(t.title),9,_hoisted_1$1J)]),_:1},8,["level","class"]),vue.createVNode(l,{variant:"lead",class:vue.normalizeClass(["mb-300 mb-lg-400",t.businessSupport?null:"text-center"])},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-article-intro")]),_:3},8,["class"])],2),t.businessSupport?(vue.openBlock(),vue.createBlock(c,{key:0,class:"mb-300",cols:"7"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-article-img")]),_:3})):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2$19,[vue.renderSlot(e.$slots,"default")])]),_:3},8,["offset-md"])]),_:3})],2)]),_:3},8,["class"])]),_:3})]),_:3})],16)}const Article=_export_sfc(_sfc_main$2b,[["render",_sfc_render$21]]),_sfc_main$2a={name:"VsArticleSection",status:"prototype",release:"0.0.1",components:{VsCol,VsRow,VsRichTextWrapper},props:{sidebarAlign:{type:String,default:"left",validator:e=>e.match(/(left|right)/)},businessSupport:{type:Boolean,default:!1}},computed:{sidebarAlignClass(){return this.sidebarAlign==="right"?"vs-article-section--sidebar-right":"vs-article-section--sidebar-left"},hasSidebarSlot(){return!!this.$slots["article-sidebar"]}}};function _sfc_render$20(e,r,t,n,a,o){const i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRichTextWrapper"),c=vue.resolveComponent("VsRow");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-article-section mb-200 mb-md-400",o.sidebarAlignClass]),"data-test":"vs-article-section"},[vue.createVNode(c,null,{default:vue.withCtx(()=>[o.hasSidebarSlot?(vue.openBlock(),vue.createBlock(i,{key:0,cols:"12",md:"5",xl:"4","data-test":"vs-article-section__sidebar",class:vue.normalizeClass(["col-xxl-4",t.sidebarAlign==="right"?"pe-md-0":"ps-md-0"]),"offset-xl":t.sidebarAlign==="right"?"1":null,"order-md":t.sidebarAlign==="right"?"2":null,order:t.businessSupport?"2":null},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"article-sidebar")]),_:3},8,["class","offset-xl","order-md","order"])):vue.createCommentVNode("",!0),vue.createVNode(i,{cols:"12",md:o.hasSidebarSlot?"7":"9","data-test":"vs-article-section__content","offset-xl":t.sidebarAlign==="left"?"1":""},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["mx-md-0",!t.businessSupport&&"mx-150"])},[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})],2)]),_:3},8,["md","offset-xl"])]),_:3})],2)}const ArticleSection=_export_sfc(_sfc_main$2a,[["render",_sfc_render$20]]),_sfc_main$29={name:"VsArticleSidebar",status:"prototype",release:"0.0.1",props:{sidebarAlign:{type:String,default:"left",validator:e=>e.match(/(left|right)/)}},computed:{sidebarAlignClass(){return this.sidebarAlign==="right"?"vs-article-sidebar--right":"vs-article-sidebar--left"}}};function _sfc_render$1$(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-article-sidebar",o.sidebarAlignClass]),"data-test":"vs-article-sidebar"},[e.$slots["vs-article-sidebar-img"]&&e.$slots["vs-article-sidebar-img"]()?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass([e.$slots["vs-article-sidebar-quote"]&&e.$slots["vs-article-sidebar-quote"]()?"pb-200":"","vs-article-sidebar__img-wrapper"])},[vue.renderSlot(e.$slots,"vs-article-sidebar-img")],2)):vue.createCommentVNode("",!0),e.$slots["vs-article-sidebar-quote"]&&e.$slots["vs-article-sidebar-quote"]()?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass([e.$slots["vs-article-sidebar-img"]&&e.$slots["vs-article-sidebar-img"]()?"pt-0":"","vs-article-sidebar__quote-wrapper"])},[vue.renderSlot(e.$slots,"vs-article-sidebar-quote")],2)):vue.createCommentVNode("",!0)],2)}const ArticleSidebar=_export_sfc(_sfc_main$29,[["render",_sfc_render$1$]]),_hoisted_1$1I={class:"vs-badge","data-test":"vs-badge"},_sfc_main$28={__name:"VsBadge",setup(e){return(r,t)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1I,[vue.createVNode(vue.unref(bootstrapVueNext.BBadge),null,{default:vue.withCtx(()=>[vue.renderSlot(r.$slots,"default")]),_:3})]))}},cookieMixin={computed:{selectedLanguage(){return this.language.substr(0,2).toUpperCase()},localeCookie(){return this.language.replace("_","-").toLowerCase()},translationCookie(){return`/en/${this.language.substr(0,2).toLowerCase()}`}},methods:{cookieExists(e){return document.cookie.indexOf(`${e}=`)>=0},setCookie(e,r,t,n=!1){let a="";if(a=`${e}=${r};`,a+="path=/;",t&&!n){const o=new Date;o.setFullYear(o.getFullYear()+1),a+=`expires=${o};`}document.cookie=a}}},_sfc_main$27={name:"VsBanner",status:"prototype",release:"0.0.1",components:{VsButton,VsContainer,VsRow,VsCol,VsRichTextWrapper,VsIcon},mixins:[cookieMixin],props:{closeBtnText:{type:String,required:!0},dontShowAgain:{type:Boolean,default:!0}},data(){return{showBanner:!0}},mounted(){const e=this.cookieExists("vs_showbanner");this.showBanner=!e},methods:{hideBanner(){this.showBanner=!this.showBanner,this.dontShowAgain&&this.setHiddenCookie()},setHiddenCookie(){const e=this.cookieExists("vs_showbanner");this.setCookie("vs_showbanner",this.showBanner,!e,!0)}}},_hoisted_1$1H={key:0,class:"vs-banner","data-test":"vs-banner",role:"banner"},_hoisted_2$18={key:0,class:"vs-banner__cta-link"};function _sfc_render$1_(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRichTextWrapper"),d=vue.resolveComponent("VsRow"),f=vue.resolveComponent("VsButton"),p=vue.resolveComponent("VsContainer");return a.showBanner?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1H,[vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"11",class:"vs-banner__content-wrapper"},{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"1",class:"vs-banner__icon-wrapper"},{default:vue.withCtx(()=>[vue.createVNode(i,{size:"sm",name:"review",class:"vs-banner__icon"})]),_:1}),vue.createVNode(l,{cols:"11"},{default:vue.withCtx(()=>[e.$slots["banner-text"]||e.$slots["banner-cta"]?(vue.openBlock(),vue.createBlock(c,{key:0,class:"vs-banner__text"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"banner-text"),e.$slots["banner-cta"]?(vue.openBlock(),vue.createElementBlock("span",_hoisted_2$18,[vue.renderSlot(e.$slots,"banner-cta")])):vue.createCommentVNode("",!0)]),_:3})):vue.createCommentVNode("",!0)]),_:3})]),_:3})]),_:3}),vue.createVNode(l,{cols:"1"},{default:vue.withCtx(()=>[vue.createVNode(f,{class:"vs-banner__close-btn","data-test":"vs-banner__close-btn",variant:"transparent",icon:"close",size:"md","icon-only":"",onClick:o.hideBanner},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.closeBtnText),1)]),_:1},8,["onClick"])]),_:1})]),_:3})]),_:3})])):vue.createCommentVNode("",!0)}const Banner=_export_sfc(_sfc_main$27,[["render",_sfc_render$1_]]),_sfc_main$26={name:"VsBlogDetails",status:"prototype",release:"0.0.1",props:{blogAuthor:{type:String,required:!0},blogPublishDate:{type:String,required:!0},blogReadTime:{type:String,required:!0}}},_hoisted_1$1G={class:"vs-blog-details","data-test":"vs-blog-details"},_hoisted_2$17={class:"vs-blog-details__author"},_hoisted_3$U=vue.createElementVNode("span",{class:"vs-blog-details__divider"},"·",-1),_hoisted_4$I={class:"vs-blog-details__date"},_hoisted_5$u={class:"vs-blog-details__read-time"};function _sfc_render$1Z(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1G,[vue.createElementVNode("span",_hoisted_2$17,[vue.createTextVNode(vue.toDisplayString(t.blogAuthor)+" ",1),_hoisted_3$U,vue.createElementVNode("span",_hoisted_4$I,vue.toDisplayString(t.blogPublishDate),1)]),vue.createElementVNode("span",_hoisted_5$u,vue.toDisplayString(t.blogReadTime),1)])}const BlogDetails=_export_sfc(_sfc_main$26,[["render",_sfc_render$1Z]]),_sfc_main$25={name:"VsBreadcrumb",status:"prototype",release:"0.0.1",components:{BBreadcrumb:bootstrapVueNext.BBreadcrumb}},_hoisted_1$1F={"aria-label":"breadcrumbs",class:"vs-breadcrumb py-050"};function _sfc_render$1Y(e,r,t,n,a,o){const i=vue.resolveComponent("BBreadcrumb");return vue.openBlock(),vue.createElementBlock("nav",_hoisted_1$1F,[vue.createVNode(i,vue.mergeProps({class:"flex-nowrap p-0 mb-0"},e.$attrs),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)])}const Breadcrumb=_export_sfc(_sfc_main$25,[["render",_sfc_render$1Y]]),_sfc_main$24={name:"VsBreadcrumbItem",status:"prototype",release:"0.0.1",components:{BBreadcrumbItem:bootstrapVueNext.BBreadcrumbItem},props:{href:{type:String,default:""},active:{type:Boolean,default:!1},ariaCurrent:{type:String,default:"page"},text:{type:String,default:"",required:!0}}};function _sfc_render$1X(e,r,t,n,a,o){const i=vue.resolveComponent("BBreadcrumbItem");return vue.openBlock(),vue.createBlock(i,vue.mergeProps({class:"vs-breadcrumb-item",active:t.active,"aria-current":t.ariaCurrent,href:t.href,text:t.text},e.$attrs),null,16,["active","aria-current","href","text"])}const BreadcrumbItem=_export_sfc(_sfc_main$24,[["render",_sfc_render$1X]]),_sfc_main$23={name:"VsButtonToggleGroup",status:"prototype",release:"0.0.1",components:{BFormGroup:bootstrapVueNext.BFormGroup,BFormRadioGroup:bootstrapVueNext.BFormRadioGroup,BFormRadio:bootstrapVueNext.BFormRadio,VsIcon},props:{options:{type:Array,required:!0},initialSelected:{type:String,default:""},buttonsLabel:{type:String,required:!0}},emits:["toggleChanged"],data(){return{selected:this.initialSelected,groupTabbedInto:!1}},watch:{initialSelected(e){this.selected=e}},mounted(){this.initialSelected===""&&(this.selected=this.options[0].value)},methods:{toggleChange(e){const r=e.target.value;this.$emit("toggleChanged",r)},addTabClass(){this.groupTabbedInto=!0},removeTabClass(e){e.target.tagName!=="INPUT"&&(this.groupTabbedInto=!1)}}};function _sfc_render$1W(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("BFormRadio"),c=vue.resolveComponent("BFormRadioGroup"),d=vue.resolveComponent("BFormGroup");return vue.openBlock(),vue.createBlock(d,{label:t.buttonsLabel,class:"vs-button-toggle-group","data-test":"vs-button-toggle-group"},{default:vue.withCtx(({ariaDescribedby:f})=>[vue.createVNode(c,{class:vue.normalizeClass(["vs-button-toggle-group--radios",a.groupTabbedInto?"vs-button-toggle-group--tabbed-focus":""]),id:"btn-radios-1",modelValue:a.selected,"onUpdate:modelValue":r[2]||(r[2]=p=>a.selected=p),"aria-describedby":f,name:"radios-btn-default",buttons:"",onChange:o.toggleChange,onFocusout:o.removeTabClass},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.options,p=>(vue.openBlock(),vue.createElementBlock("div",{key:p.text,class:vue.normalizeClass(["vs-button-toggle-group--button",a.selected===p.value?"active":""]),onKeyup:r[0]||(r[0]=vue.withKeys((...v)=>o.addTabClass&&o.addTabClass(...v),["tab"])),"onFocus`out":r[1]||(r[1]=(...v)=>o.removeTabClass&&o.removeTabClass(...v))},[(vue.openBlock(),vue.createBlock(l,{value:p.value,key:p.text},{default:vue.withCtx(()=>[vue.createElementVNode("span",null,[p.icon?(vue.openBlock(),vue.createBlock(i,{key:0,name:p.icon,class:"me-025"},null,8,["name"])):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(p.text),1)])]),_:2},1032,["value"]))],34))),128))]),_:2},1032,["modelValue","aria-describedby","onChange","class","onFocusout"])]),_:1},8,["label"])}const ButtonToggleGroup=_export_sfc(_sfc_main$23,[["render",_sfc_render$1W]]),srcSetMixin={computed:{fullSrcSet(){return`
28
28
  ${this.specificImgSize("xs")} 300w,
29
29
  ${this.specificImgSize("sm")} 600w,
30
30
  ${this.specificImgSize("md")} 1200w,
@@ -129,13 +129,13 @@ function print() { __p += __j.call(arguments, '') }
129
129
  2.023A6.64,6.64,0,0,0,18.7255,83.4023Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_28),vue.createElementVNode("path",{d:`M18.8885,79.3553l-1.336,1.1.167.736-.835.92.167.184C18.2245,\r
130
130
  81.93,19.7285,81.01,18.8885,79.3553Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_29),vue.createElementVNode("path",{d:`M28.2465,82.1143c-.668.92-.5,1.287-.5,2.391,0,.552,0,\r
131
131
  1.288.668,1.288C29.75,85.6083,29.2485,82.85,28.2465,82.1143Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_30),vue.createElementVNode("path",{d:`M23.2355,88.1793c1.5-.92.5-.736,2.506-.92C24.5725,\r
132
- 85.0573,23.0685,85.9793,23.2355,88.1793Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_31),vue.createElementVNode("rect",{width:a.mapWidth,height:a.mapHeight,fill:"none"},null,8,_hoisted_32),vue.createElementVNode("circle",{r:"4","data-test":"vs-caption-image-map__marker",fill:t.mapMarkerColor,cx:o.positionX,cy:o.positionY},null,8,_hoisted_33)],8,_hoisted_1$1p)}const VsCaptionImageMap=_export_sfc(_sfc_main$1L,[["render",_sfc_render$1C]]),_sfc_main$1K={name:"VsCaption",status:"prototype",release:"0.0.1",components:{VsRow,VsCol,VsContainer,VsCaptionImageMap},props:{variant:{type:String,default:"fullwidth",validator:e=>e.match(/(fullwidth|large)/)},theme:{type:String,default:"bold",validator:e=>e.match(/(bold|subtle)/)},latitude:{type:String,default:""},longitude:{type:String,default:""},textAlign:{type:String,default:"left",validator:e=>e.match(/(left|right)/)}},data(){return{tokens:designTokens}},computed:{showMap(){return!!(this.longitude&&this.latitude)},isLargeCaption(){return this.variant==="large"},captionClasses(){return[{"vs-caption--large":this.isLargeCaption,"vs-caption--fullwidth":!this.isLargeCaption},`vs-caption--${this.textAlign}`,`vs-caption--${this.theme}`]}}},_hoisted_1$1o={class:"vs-caption__caption-info"},_hoisted_2$Y={key:0,class:"vs-caption__image-caption"},_hoisted_3$L={key:1,class:"vs-caption__image-credit"},_hoisted_4$B={class:"vs-caption__map-wrapper pt-075 pt-sm-050 pb-sm-050 mx-auto"};function _sfc_render$1B(e,r,t,n,a,o){const i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsCaptionImageMap"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",{"data-test":"vs-caption",class:vue.normalizeClass(["vs-caption",o.captionClasses])},[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,{class:"justify-content-center justify-content-sm-start"},{default:vue.withCtx(()=>[vue.createVNode(i,{class:vue.normalizeClass(["order-2 order-sm-1",[o.showMap?"":"align-self-center"]])},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1o,[e.$slots.caption?(vue.openBlock(),vue.createElementBlock("p",_hoisted_2$Y,[vue.renderSlot(e.$slots,"caption")])):vue.createCommentVNode("",!0),e.$slots.credit?(vue.openBlock(),vue.createElementBlock("p",_hoisted_3$L,[vue.renderSlot(e.$slots,"credit")])):vue.createCommentVNode("",!0)])]),_:3},8,["class"]),o.showMap&&o.isLargeCaption?(vue.openBlock(),vue.createBlock(i,{key:0,class:"col-12 col-sm-auto order-1 order-sm-2 ps-sm-0 align-self-end align-self-sm-start"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_4$B,[vue.createVNode(l,{latitude:t.latitude,longitude:t.longitude,"map-outline-color":a.tokens["vs-color-icon-inverse"],"map-marker-color":a.tokens["vs-color-background-accent-tolsta-40"]},null,8,["latitude","longitude","map-outline-color","map-marker-color"])])]),_:1})):vue.createCommentVNode("",!0)]),_:3})]),_:3})],2)}const VsCaption=_export_sfc(_sfc_main$1K,[["render",_sfc_render$1B]]),_sfc_main$1J={name:"VsWarning",status:"prototype",release:"0.1.0",components:{VsIcon,VsButton},props:{icon:{type:String,default:"review"},type:{type:String,default:"normal",validator:e=>e.match(/(normal|cookie)/)},size:{type:String,default:"normal",validator:e=>e.match(/(small|normal)/)}},computed:{warningClasses(){return[`vs-warning--${this.size}`]},btnAttrs(){const e={};return this.type==="cookie"&&(e.class="ot-sdk-show-settings vs-warning__cookie-trigger"),this.size==="small"&&(e.size="sm"),e}}},_hoisted_1$1n={class:"vs-warning__content"},_hoisted_2$X={key:0};function _sfc_render$1A(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-warning",o.warningClasses]),"data-test":"vs-warning"},[vue.createElementVNode("div",_hoisted_1$1n,[vue.createVNode(i,{class:"vs-warning__icon",name:t.icon,variant:"tertiary"},null,8,["name"]),vue.createElementVNode("div",null,[vue.createElementVNode("p",null,[vue.renderSlot(e.$slots,"default")]),e.$slots["extra-content"]&&e.$slots["extra-content"]()?(vue.openBlock(),vue.createElementBlock("p",_hoisted_2$X,[vue.renderSlot(e.$slots,"extra-content")])):vue.createCommentVNode("",!0)])]),vue.withDirectives(vue.createVNode(l,vue.mergeProps(o.btnAttrs,{variant:"primary",class:"vs-warning__button"}),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"button-text")]),_:3},16),[[vue.vShow,e.$slots["button-text"]&&e.$slots["button-text"]()]])],2)}const VsWarning=_export_sfc(_sfc_main$1J,[["render",_sfc_render$1A]]),_sfc_main$1I={name:"VsProgressBar",status:"prototype",release:"0.1.0",components:{BProgress:bootstrapVueNext.BProgress,BProgressBar:bootstrapVueNext.BProgressBar},props:{max:{type:Number,required:!0},currentStep:{type:Number,required:!0},isStepped:{type:Boolean,required:!1},isFull:{type:Boolean,required:!1},progressLabel:{type:String,default:""}},data(){return{compId:null}},computed:{computedClasses(){let e="";return this.isFull&&(e+="vs-progress-bar--full "),this.isStepped&&(e+="vs-progress-bar--stepped "),e},interpolProgressLabel(){if(this.progressLabel){let e=this.progressLabel.replace("xxx",this.currentStep);return e=e.replace("yyy",this.max),e}return""}},mounted(){const e=vue.getCurrentInstance();this.compId=vue.ref(e.uid)}},_hoisted_1$1m={key:1,class:"vs-progress-bar__stepper"},_hoisted_2$W=["id"],_hoisted_3$K=["id"];function _sfc_render$1z(e,r,t,n,a,o){const i=vue.resolveComponent("BProgressBar"),l=vue.resolveComponent("BProgress");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-progress-bar",o.computedClasses]),"data-test":"vs-progress-bar"},[!t.isStepped||t.max>5?(vue.openBlock(),vue.createBlock(l,{key:0,max:t.max},{default:vue.withCtx(()=>[vue.createVNode(i,{value:t.currentStep,"aria-labelledBy":"progress-bar-"+a.compId},null,8,["value","aria-labelledBy"])]),_:1},8,["max"])):vue.createCommentVNode("",!0),t.isStepped&&t.max<=5?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1m,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.max,c=>(vue.openBlock(),vue.createBlock(l,{key:c,max:1},{default:vue.withCtx(()=>[vue.createVNode(i,{value:c<=t.currentStep?1:0,"aria-labelledBy":"progress-bar-"+a.compId},null,8,["value","aria-labelledBy"])]),_:2},1024))),128))])):vue.createCommentVNode("",!0),o.interpolProgressLabel?(vue.openBlock(),vue.createElementBlock("p",{key:2,class:"vs-progress-bar__label",id:"progress-bar-"+a.compId},vue.toDisplayString(o.interpolProgressLabel),9,_hoisted_2$W)):(vue.openBlock(),vue.createElementBlock("p",{key:3,class:"vs-progress-bar__label",id:"progress-bar-"+a.compId},vue.toDisplayString(t.currentStep)+" / "+vue.toDisplayString(t.max),9,_hoisted_3$K))],2)}const VsProgressBar=_export_sfc(_sfc_main$1I,[["render",_sfc_render$1z]]),_sfc_main$1H={name:"VsCarbonCalculatorTip",status:"prototype",release:"0.0.1",components:{VsIcon,VsHeading},inject:["labelsMap"],props:{tip:{type:String,default:""},showingAllTips:{type:Boolean,default:!1}}},_hoisted_1$1l={class:"vs-carbon-calculator-tip","data-test":"vs-carbon-calculator-tip"},_hoisted_2$V={class:"vs-carbon-calculator-tip__icon-container"},_hoisted_3$J={class:"vs-carbon-calculator-tip__content"},_hoisted_4$A=["innerHTML"],_hoisted_5$p=["innerHTML"];function _sfc_render$1y(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1l,[vue.createElementVNode("div",_hoisted_2$V,[vue.createVNode(i,{name:"coo",size:"lg",variant:"tertiary",class:"vs-carbon-calculator-tip__icon"})]),vue.createElementVNode("div",_hoisted_3$J,[vue.createVNode(l,{level:"3","heading-style":"heading-xs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.labelsMap.topTip),1)]),_:1}),t.showingAllTips?(vue.openBlock(),vue.createElementBlock("p",{key:0,class:"vs-carbon-calculator-tip__content","data-test":"vs-carbon-calculator-tip__summary",innerHTML:o.labelsMap.allTips},null,8,_hoisted_4$A)):vue.createCommentVNode("",!0),t.showingAllTips?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("p",{key:1,class:"vs-carbon-calculator-tip__content","data-test":"vs-carbon-calculator-tip__content",innerHTML:t.tip},null,8,_hoisted_5$p))])])}const VsCarbonCalculatorTip=_export_sfc(_sfc_main$1H,[["render",_sfc_render$1y]]);function _isPlaceholder(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function _curry1(e){return function r(t){return arguments.length===0||_isPlaceholder(t)?r:e.apply(this,arguments)}}function _curry2(e){return function r(t,n){switch(arguments.length){case 0:return r;case 1:return _isPlaceholder(t)?r:_curry1(function(a){return e(t,a)});default:return _isPlaceholder(t)&&_isPlaceholder(n)?r:_isPlaceholder(t)?_curry1(function(a){return e(a,n)}):_isPlaceholder(n)?_curry1(function(a){return e(t,a)}):e(t,n)}}}function _arity(e,r){switch(e){case 0:return function(){return r.apply(this,arguments)};case 1:return function(t){return r.apply(this,arguments)};case 2:return function(t,n){return r.apply(this,arguments)};case 3:return function(t,n,a){return r.apply(this,arguments)};case 4:return function(t,n,a,o){return r.apply(this,arguments)};case 5:return function(t,n,a,o,i){return r.apply(this,arguments)};case 6:return function(t,n,a,o,i,l){return r.apply(this,arguments)};case 7:return function(t,n,a,o,i,l,c){return r.apply(this,arguments)};case 8:return function(t,n,a,o,i,l,c,d){return r.apply(this,arguments)};case 9:return function(t,n,a,o,i,l,c,d,f){return r.apply(this,arguments)};case 10:return function(t,n,a,o,i,l,c,d,f,p){return r.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function _curryN(e,r,t){return function(){for(var n=[],a=0,o=e,i=0;i<r.length||a<arguments.length;){var l;i<r.length&&(!_isPlaceholder(r[i])||a>=arguments.length)?l=r[i]:(l=arguments[a],a+=1),n[i]=l,_isPlaceholder(l)||(o-=1),i+=1}return o<=0?t.apply(this,n):_arity(o,_curryN(e,n,t))}}var curryN=_curry2(function(r,t){return r===1?_curry1(t):_arity(r,_curryN(r,[],t))});function _curry3(e){return function r(t,n,a){switch(arguments.length){case 0:return r;case 1:return _isPlaceholder(t)?r:_curry2(function(o,i){return e(t,o,i)});case 2:return _isPlaceholder(t)&&_isPlaceholder(n)?r:_isPlaceholder(t)?_curry2(function(o,i){return e(o,n,i)}):_isPlaceholder(n)?_curry2(function(o,i){return e(t,o,i)}):_curry1(function(o){return e(t,n,o)});default:return _isPlaceholder(t)&&_isPlaceholder(n)&&_isPlaceholder(a)?r:_isPlaceholder(t)&&_isPlaceholder(n)?_curry2(function(o,i){return e(o,i,a)}):_isPlaceholder(t)&&_isPlaceholder(a)?_curry2(function(o,i){return e(o,n,i)}):_isPlaceholder(n)&&_isPlaceholder(a)?_curry2(function(o,i){return e(t,o,i)}):_isPlaceholder(t)?_curry1(function(o){return e(o,n,a)}):_isPlaceholder(n)?_curry1(function(o){return e(t,o,a)}):_isPlaceholder(a)?_curry1(function(o){return e(t,n,o)}):e(t,n,a)}}}var _isArray=Array.isArray||function(r){return r!=null&&r.length>=0&&Object.prototype.toString.call(r)==="[object Array]"};function _isTransformer(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function _dispatchable(e,r,t){return function(){if(arguments.length===0)return t();var n=arguments[arguments.length-1];if(!_isArray(n)){for(var a=0;a<e.length;){if(typeof n[e[a]]=="function")return n[e[a]].apply(n,Array.prototype.slice.call(arguments,0,-1));a+=1}if(_isTransformer(n)){var o=r.apply(null,Array.prototype.slice.call(arguments,0,-1));return o(n)}}return t.apply(this,arguments)}}var _xfBase={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};function _map(e,r){for(var t=0,n=r.length,a=Array(n);t<n;)a[t]=e(r[t]),t+=1;return a}function _isString(e){return Object.prototype.toString.call(e)==="[object String]"}var _isArrayLike=_curry1(function(r){return _isArray(r)?!0:!r||typeof r!="object"||_isString(r)?!1:r.length===0?!0:r.length>0?r.hasOwnProperty(0)&&r.hasOwnProperty(r.length-1):!1}),XWrap=function(){function e(r){this.f=r}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(r){return r},e.prototype["@@transducer/step"]=function(r,t){return this.f(r,t)},e}();function _xwrap(e){return new XWrap(e)}var bind=_curry2(function(r,t){return _arity(r.length,function(){return r.apply(t,arguments)})});function _arrayReduce(e,r,t){for(var n=0,a=t.length;n<a;){if(r=e["@@transducer/step"](r,t[n]),r&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}n+=1}return e["@@transducer/result"](r)}function _iterableReduce(e,r,t){for(var n=t.next();!n.done;){if(r=e["@@transducer/step"](r,n.value),r&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}n=t.next()}return e["@@transducer/result"](r)}function _methodReduce(e,r,t,n){return e["@@transducer/result"](t[n](bind(e["@@transducer/step"],e),r))}var symIterator=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _reduce(e,r,t){if(typeof e=="function"&&(e=_xwrap(e)),_isArrayLike(t))return _arrayReduce(e,r,t);if(typeof t["fantasy-land/reduce"]=="function")return _methodReduce(e,r,t,"fantasy-land/reduce");if(t[symIterator]!=null)return _iterableReduce(e,r,t[symIterator]());if(typeof t.next=="function")return _iterableReduce(e,r,t);if(typeof t.reduce=="function")return _methodReduce(e,r,t,"reduce");throw new TypeError("reduce: list must be array or iterable")}var XMap=function(){function e(r,t){this.xf=t,this.f=r}return e.prototype["@@transducer/init"]=_xfBase.init,e.prototype["@@transducer/result"]=_xfBase.result,e.prototype["@@transducer/step"]=function(r,t){return this.xf["@@transducer/step"](r,this.f(t))},e}(),_xmap=_curry2(function(r,t){return new XMap(r,t)});function _has(e,r){return Object.prototype.hasOwnProperty.call(r,e)}var toString$1=Object.prototype.toString,_isArguments=function(){return toString$1.call(arguments)==="[object Arguments]"?function(r){return toString$1.call(r)==="[object Arguments]"}:function(r){return _has("callee",r)}}(),hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug=function(){return arguments.propertyIsEnumerable("length")}(),contains=function(r,t){for(var n=0;n<r.length;){if(r[n]===t)return!0;n+=1}return!1},keys=_curry1(typeof Object.keys=="function"&&!hasArgsEnumBug?function(r){return Object(r)!==r?[]:Object.keys(r)}:function(r){if(Object(r)!==r)return[];var t,n,a=[],o=hasArgsEnumBug&&_isArguments(r);for(t in r)_has(t,r)&&(!o||t!=="length")&&(a[a.length]=t);if(hasEnumBug)for(n=nonEnumerableProps.length-1;n>=0;)t=nonEnumerableProps[n],_has(t,r)&&!contains(a,t)&&(a[a.length]=t),n-=1;return a}),map$1=_curry2(_dispatchable(["fantasy-land/map","map"],_xmap,function(r,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return curryN(t.length,function(){return r.call(this,t.apply(this,arguments))});case"[object Object]":return _reduce(function(n,a){return n[a]=r(t[a]),n},{},keys(t));default:return _map(r,t)}})),map$2=map$1,_isInteger=Number.isInteger||function(r){return r<<0===r},nth=_curry2(function(r,t){var n=r<0?t.length+r:r;return _isString(t)?t.charAt(n):t[n]}),nth$1=nth,prop=_curry2(function(r,t){if(t!=null)return _isInteger(r)?nth$1(r,t):t[r]}),prop$1=prop,reduce=_curry3(_reduce),reduce$1=reduce,values=_curry1(function(r){for(var t=keys(r),n=t.length,a=[],o=0;o<n;)a[o]=r[t[o]],o+=1;return a}),values$1=values;function _isFunction(e){var r=Object.prototype.toString.call(e);return r==="[object Function]"||r==="[object AsyncFunction]"||r==="[object GeneratorFunction]"||r==="[object AsyncGeneratorFunction]"}var type$1=_curry1(function(r){return r===null?"Null":r===void 0?"Undefined":Object.prototype.toString.call(r).slice(8,-1)});function _pipe(e,r){return function(){return r.call(this,e.apply(this,arguments))}}function _checkForMethod(e,r){return function(){var t=arguments.length;if(t===0)return r();var n=arguments[t-1];return _isArray(n)||typeof n[e]!="function"?r.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,t-1))}}var slice=_curry3(_checkForMethod("slice",function(r,t,n){return Array.prototype.slice.call(n,r,t)})),tail=_curry1(_checkForMethod("tail",slice(1,1/0))),tail$1=tail;function pipe(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return _arity(arguments[0].length,reduce$1(_pipe,arguments[0],tail$1(arguments)))}function _arrayFromIterator(e){for(var r=[],t;!(t=e.next()).done;)r.push(t.value);return r}function _includesWith(e,r,t){for(var n=0,a=t.length;n<a;){if(e(r,t[n]))return!0;n+=1}return!1}function _functionName(e){var r=String(e).match(/^function (\w*)/);return r==null?"":r[1]}function _objectIs(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}var _objectIs$1=typeof Object.is=="function"?Object.is:_objectIs;function _uniqContentEquals(e,r,t,n){var a=_arrayFromIterator(e),o=_arrayFromIterator(r);function i(l,c){return _equals(l,c,t.slice(),n.slice())}return!_includesWith(function(l,c){return!_includesWith(i,c,l)},o,a)}function _equals(e,r,t,n){if(_objectIs$1(e,r))return!0;var a=type$1(e);if(a!==type$1(r))return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof r["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](r)&&typeof r["fantasy-land/equals"]=="function"&&r["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof r.equals=="function")return typeof e.equals=="function"&&e.equals(r)&&typeof r.equals=="function"&&r.equals(e);switch(a){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&_functionName(e.constructor)==="Promise")return e===r;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof r&&_objectIs$1(e.valueOf(),r.valueOf())))return!1;break;case"Date":if(!_objectIs$1(e.valueOf(),r.valueOf()))return!1;break;case"Error":return e.name===r.name&&e.message===r.message;case"RegExp":if(!(e.source===r.source&&e.global===r.global&&e.ignoreCase===r.ignoreCase&&e.multiline===r.multiline&&e.sticky===r.sticky&&e.unicode===r.unicode))return!1;break}for(var o=t.length-1;o>=0;){if(t[o]===e)return n[o]===r;o-=1}switch(a){case"Map":return e.size!==r.size?!1:_uniqContentEquals(e.entries(),r.entries(),t.concat([e]),n.concat([r]));case"Set":return e.size!==r.size?!1:_uniqContentEquals(e.values(),r.values(),t.concat([e]),n.concat([r]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=keys(e);if(i.length!==keys(r).length)return!1;var l=t.concat([e]),c=n.concat([r]);for(o=i.length-1;o>=0;){var d=i[o];if(!(_has(d,r)&&_equals(r[d],e[d],l,c)))return!1;o-=1}return!0}var equals=_curry2(function(r,t){return _equals(r,t,[],[])});function _indexOf(e,r,t){var n,a;if(typeof e.indexOf=="function")switch(typeof r){case"number":if(r===0){for(n=1/r;t<e.length;){if(a=e[t],a===0&&1/a===n)return t;t+=1}return-1}else if(r!==r){for(;t<e.length;){if(a=e[t],typeof a=="number"&&a!==a)return t;t+=1}return-1}return e.indexOf(r,t);case"string":case"boolean":case"function":case"undefined":return e.indexOf(r,t);case"object":if(r===null)return e.indexOf(r,t)}for(;t<e.length;){if(equals(e[t],r))return t;t+=1}return-1}function _includes(e,r){return _indexOf(r,e,0)>=0}function _quote(e){var r=e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+r.replace(/"/g,'\\"')+'"'}var pad=function(r){return(r<10?"0":"")+r},_toISOString=typeof Date.prototype.toISOString=="function"?function(r){return r.toISOString()}:function(r){return r.getUTCFullYear()+"-"+pad(r.getUTCMonth()+1)+"-"+pad(r.getUTCDate())+"T"+pad(r.getUTCHours())+":"+pad(r.getUTCMinutes())+":"+pad(r.getUTCSeconds())+"."+(r.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function _complement(e){return function(){return!e.apply(this,arguments)}}function _filter(e,r){for(var t=0,n=r.length,a=[];t<n;)e(r[t])&&(a[a.length]=r[t]),t+=1;return a}function _isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}var XFilter=function(){function e(r,t){this.xf=t,this.f=r}return e.prototype["@@transducer/init"]=_xfBase.init,e.prototype["@@transducer/result"]=_xfBase.result,e.prototype["@@transducer/step"]=function(r,t){return this.f(t)?this.xf["@@transducer/step"](r,t):r},e}(),_xfilter=_curry2(function(r,t){return new XFilter(r,t)}),filter$1=_curry2(_dispatchable(["fantasy-land/filter","filter"],_xfilter,function(e,r){return _isObject(r)?_reduce(function(t,n){return e(r[n])&&(t[n]=r[n]),t},{},keys(r)):_filter(e,r)})),reject=_curry2(function(r,t){return filter$1(_complement(r),t)});function _toString(e,r){var t=function(i){var l=r.concat([e]);return _includes(i,l)?"<Circular>":_toString(i,l)},n=function(o,i){return _map(function(l){return _quote(l)+": "+t(o[l])},i.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+_map(t,e).join(", ")+"))";case"[object Array]":return"["+_map(t,e).concat(n(e,reject(function(o){return/^\d+$/.test(o)},keys(e)))).join(", ")+"]";case"[object Boolean]":return typeof e=="object"?"new Boolean("+t(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?t(NaN):_quote(_toISOString(e)))+")";case"[object Null]":return"null";case"[object Number]":return typeof e=="object"?"new Number("+t(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object String]":return typeof e=="object"?"new String("+t(e.valueOf())+")":_quote(e);case"[object Undefined]":return"undefined";default:if(typeof e.toString=="function"){var a=e.toString();if(a!=="[object Object]")return a}return"{"+n(e,keys(e)).join(", ")+"}"}}var toString=_curry1(function(r){return _toString(r,[])}),curry=_curry1(function(r){return curryN(r.length,r)}),curry$1=curry,invoker=_curry2(function(r,t){return curryN(r+1,function(){var n=arguments[r];if(n!=null&&_isFunction(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,r));throw new TypeError(toString(n)+' does not have a method named "'+t+'"')})}),invoker$1=invoker,is=_curry2(function(r,t){return t instanceof r||t!=null&&(t.constructor===r||r.name==="Object"&&typeof t=="object")}),is$1=is,join=invoker$1(1,"join"),join$1=join,mergeWithKey=_curry3(function(r,t,n){var a={},o;for(o in t)_has(o,t)&&(a[o]=_has(o,n)?r(o,t[o],n[o]):t[o]);for(o in n)_has(o,n)&&!_has(o,a)&&(a[o]=n[o]);return a}),mergeDeepWithKey=_curry3(function e(r,t,n){return mergeWithKey(function(a,o,i){return _isObject(o)&&_isObject(i)?e(r,o,i):r(a,o,i)},t,n)}),mergeDeepLeft=_curry2(function(r,t){return mergeDeepWithKey(function(n,a,o){return a},r,t)}),mergeDeepLeft$1=mergeDeepLeft,omit=_curry2(function(r,t){for(var n={},a={},o=0,i=r.length;o<i;)a[r[o]]=1,o+=1;for(var l in t)a.hasOwnProperty(l)||(n[l]=t[l]);return n}),omit$1=omit,pickBy=_curry2(function(r,t){var n={};for(var a in t)r(t[a],a,t)&&(n[a]=t[a]);return n}),pickBy$1=pickBy,split=invoker$1(1,"split"),split$1=split,toLower=invoker$1(0,"toLowerCase"),toLower$1=toLower,zipObj=_curry2(function(r,t){for(var n=0,a=Math.min(r.length,t.length),o={};n<a;)o[r[n]]=t[n],n+=1;return o}),zipObj$1=zipObj;pipe(toLower$1,split$1(" "),join$1("-"));const getCol=curry$1((e,r)=>is$1(Number)?map$2(t=>nth$1(e,t)||"",r).filter(t=>t!==""):map$2(prop$1(e),r)),mapKeys=(e,r)=>zipObj$1(map$2(e,keys(r)),values$1(r)),kebabize=e=>e.split("").map((r,t)=>r.toUpperCase()===r?`${t!==0?"-":""}${r.toLowerCase()}`:r).join("");function ascending$1(e,r){return e==null||r==null?NaN:e<r?-1:e>r?1:e>=r?0:NaN}function descending$1(e,r){return e==null||r==null?NaN:r<e?-1:r>e?1:r>=e?0:NaN}function bisector(e){let r,t,n;e.length!==2?(r=ascending$1,t=(l,c)=>ascending$1(e(l),c),n=(l,c)=>e(l)-c):(r=e===ascending$1||e===descending$1?e:zero$1,t=e,n=e);function a(l,c,d=0,f=l.length){if(d<f){if(r(c,c)!==0)return f;do{const p=d+f>>>1;t(l[p],c)<0?d=p+1:f=p}while(d<f)}return d}function o(l,c,d=0,f=l.length){if(d<f){if(r(c,c)!==0)return f;do{const p=d+f>>>1;t(l[p],c)<=0?d=p+1:f=p}while(d<f)}return d}function i(l,c,d=0,f=l.length){const p=a(l,c,d,f-1);return p>d&&n(l[p-1],c)>-n(l[p],c)?p-1:p}return{left:a,center:i,right:o}}function zero$1(){return 0}function number$2(e){return e===null?NaN:+e}const ascendingBisect=bisector(ascending$1),bisectRight=ascendingBisect.right,bisectCenter=bisector(number$2).center;function extent(e,r){let t,n;for(const a of e)a!=null&&(t===void 0?a>=a&&(t=n=a):(t>a&&(t=a),n<a&&(n=a)));return[t,n]}class InternMap extends Map{constructor(r,t=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),r!=null)for(const[n,a]of r)this.set(n,a)}get(r){return super.get(intern_get(this,r))}has(r){return super.has(intern_get(this,r))}set(r,t){return super.set(intern_set(this,r),t)}delete(r){return super.delete(intern_delete(this,r))}}function intern_get({_intern:e,_key:r},t){const n=r(t);return e.has(n)?e.get(n):t}function intern_set({_intern:e,_key:r},t){const n=r(t);return e.has(n)?e.get(n):(e.set(n,t),t)}function intern_delete({_intern:e,_key:r},t){const n=r(t);return e.has(n)&&(t=e.get(n),e.delete(n)),t}function keyof(e){return e!==null&&typeof e=="object"?e.valueOf():e}const e10=Math.sqrt(50),e5=Math.sqrt(10),e2=Math.sqrt(2);function tickSpec(e,r,t){const n=(r-e)/Math.max(0,t),a=Math.floor(Math.log10(n)),o=n/Math.pow(10,a),i=o>=e10?10:o>=e5?5:o>=e2?2:1;let l,c,d;return a<0?(d=Math.pow(10,-a)/i,l=Math.round(e*d),c=Math.round(r*d),l/d<e&&++l,c/d>r&&--c,d=-d):(d=Math.pow(10,a)*i,l=Math.round(e/d),c=Math.round(r/d),l*d<e&&++l,c*d>r&&--c),c<l&&.5<=t&&t<2?tickSpec(e,r,t*2):[l,c,d]}function ticks(e,r,t){if(r=+r,e=+e,t=+t,!(t>0))return[];if(e===r)return[e];const n=r<e,[a,o,i]=n?tickSpec(r,e,t):tickSpec(e,r,t);if(!(o>=a))return[];const l=o-a+1,c=new Array(l);if(n)if(i<0)for(let d=0;d<l;++d)c[d]=(o-d)/-i;else for(let d=0;d<l;++d)c[d]=(o-d)*i;else if(i<0)for(let d=0;d<l;++d)c[d]=(a+d)/-i;else for(let d=0;d<l;++d)c[d]=(a+d)*i;return c}function tickIncrement(e,r,t){return r=+r,e=+e,t=+t,tickSpec(e,r,t)[2]}function tickStep(e,r,t){r=+r,e=+e,t=+t;const n=r<e,a=n?tickIncrement(r,e,t):tickIncrement(e,r,t);return(n?-1:1)*(a<0?1/-a:a)}function max$1(e,r){let t;if(r===void 0)for(const n of e)n!=null&&(t<n||t===void 0&&n>=n)&&(t=n);else{let n=-1;for(let a of e)(a=r(a,++n,e))!=null&&(t<a||t===void 0&&a>=a)&&(t=a)}return t}function min$1(e,r){let t;if(r===void 0)for(const n of e)n!=null&&(t>n||t===void 0&&n>=n)&&(t=n);else{let n=-1;for(let a of e)(a=r(a,++n,e))!=null&&(t>a||t===void 0&&a>=a)&&(t=a)}return t}function range$1(e,r,t){e=+e,r=+r,t=(a=arguments.length)<2?(r=e,e=0,1):a<3?1:+t;for(var n=-1,a=Math.max(0,Math.ceil((r-e)/t))|0,o=new Array(a);++n<a;)o[n]=e+n*t;return o}function initRange(e,r){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(r).domain(e);break}return this}function initInterpolator(e,r){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof r=="function"?this.interpolator(r):this.range(r);break}}return this}const implicit=Symbol("implicit");function ordinal(){var e=new InternMap,r=[],t=[],n=implicit;function a(o){let i=e.get(o);if(i===void 0){if(n!==implicit)return n;e.set(o,i=r.push(o)-1)}return t[i%t.length]}return a.domain=function(o){if(!arguments.length)return r.slice();r=[],e=new InternMap;for(const i of o)e.has(i)||e.set(i,r.push(i)-1);return a},a.range=function(o){return arguments.length?(t=Array.from(o),a):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.copy=function(){return ordinal(r,t).unknown(n)},initRange.apply(a,arguments),a}function band(){var e=ordinal().unknown(void 0),r=e.domain,t=e.range,n=0,a=1,o,i,l=!1,c=0,d=0,f=.5;delete e.unknown;function p(){var v=r().length,m=a<n,g=m?a:n,_=m?n:a;o=(_-g)/Math.max(1,v-c+d*2),l&&(o=Math.floor(o)),g+=(_-g-o*(v-c))*f,i=o*(1-c),l&&(g=Math.round(g),i=Math.round(i));var S=range$1(v).map(function(C){return g+o*C});return t(m?S.reverse():S)}return e.domain=function(v){return arguments.length?(r(v),p()):r()},e.range=function(v){return arguments.length?([n,a]=v,n=+n,a=+a,p()):[n,a]},e.rangeRound=function(v){return[n,a]=v,n=+n,a=+a,l=!0,p()},e.bandwidth=function(){return i},e.step=function(){return o},e.round=function(v){return arguments.length?(l=!!v,p()):l},e.padding=function(v){return arguments.length?(c=Math.min(1,d=+v),p()):c},e.paddingInner=function(v){return arguments.length?(c=Math.min(1,v),p()):c},e.paddingOuter=function(v){return arguments.length?(d=+v,p()):d},e.align=function(v){return arguments.length?(f=Math.max(0,Math.min(1,v)),p()):f},e.copy=function(){return band(r(),[n,a]).round(l).paddingInner(c).paddingOuter(d).align(f)},initRange.apply(p(),arguments)}function define(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function extend(e,r){var t=Object.create(e.prototype);for(var n in r)t[n]=r[n];return t}function Color(){}var darker=.7,brighter=1/darker,reI="\\s*([+-]?\\d+)\\s*",reN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",reP="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",reHex=/^#([0-9a-f]{3,8})$/,reRgbInteger=new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`),reRgbPercent=new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`),reRgbaInteger=new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`),reRgbaPercent=new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`),reHslPercent=new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`),reHslaPercent=new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`),named={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};define(Color,color,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHex8:color_formatHex8,formatHsl:color_formatHsl,formatRgb:color_formatRgb,toString:color_formatRgb});function color_formatHex(){return this.rgb().formatHex()}function color_formatHex8(){return this.rgb().formatHex8()}function color_formatHsl(){return hslConvert(this).formatHsl()}function color_formatRgb(){return this.rgb().formatRgb()}function color(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=reHex.exec(e))?(t=r[1].length,r=parseInt(r[1],16),t===6?rgbn(r):t===3?new Rgb(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):t===8?rgba(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):t===4?rgba(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=reRgbInteger.exec(e))?new Rgb(r[1],r[2],r[3],1):(r=reRgbPercent.exec(e))?new Rgb(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=reRgbaInteger.exec(e))?rgba(r[1],r[2],r[3],r[4]):(r=reRgbaPercent.exec(e))?rgba(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=reHslPercent.exec(e))?hsla(r[1],r[2]/100,r[3]/100,1):(r=reHslaPercent.exec(e))?hsla(r[1],r[2]/100,r[3]/100,r[4]):named.hasOwnProperty(e)?rgbn(named[e]):e==="transparent"?new Rgb(NaN,NaN,NaN,0):null}function rgbn(e){return new Rgb(e>>16&255,e>>8&255,e&255,1)}function rgba(e,r,t,n){return n<=0&&(e=r=t=NaN),new Rgb(e,r,t,n)}function rgbConvert(e){return e instanceof Color||(e=color(e)),e?(e=e.rgb(),new Rgb(e.r,e.g,e.b,e.opacity)):new Rgb}function rgb$1(e,r,t,n){return arguments.length===1?rgbConvert(e):new Rgb(e,r,t,n??1)}function Rgb(e,r,t,n){this.r=+e,this.g=+r,this.b=+t,this.opacity=+n}define(Rgb,rgb$1,extend(Color,{brighter(e){return e=e==null?brighter:Math.pow(brighter,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?darker:Math.pow(darker,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:rgb_formatHex8,formatRgb:rgb_formatRgb,toString:rgb_formatRgb}));function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity)?1:this.opacity)*255)}`}function rgb_formatRgb(){const e=clampa(this.opacity);return`${e===1?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${e===1?")":`, ${e})`}`}function clampa(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function clampi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function hex(e){return e=clampi(e),(e<16?"0":"")+e.toString(16)}function hsla(e,r,t,n){return n<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new Hsl(e,r,t,n)}function hslConvert(e){if(e instanceof Hsl)return new Hsl(e.h,e.s,e.l,e.opacity);if(e instanceof Color||(e=color(e)),!e)return new Hsl;if(e instanceof Hsl)return e;e=e.rgb();var r=e.r/255,t=e.g/255,n=e.b/255,a=Math.min(r,t,n),o=Math.max(r,t,n),i=NaN,l=o-a,c=(o+a)/2;return l?(r===o?i=(t-n)/l+(t<n)*6:t===o?i=(n-r)/l+2:i=(r-t)/l+4,l/=c<.5?o+a:2-o-a,i*=60):l=c>0&&c<1?0:i,new Hsl(i,l,c,e.opacity)}function hsl(e,r,t,n){return arguments.length===1?hslConvert(e):new Hsl(e,r,t,n??1)}function Hsl(e,r,t,n){this.h=+e,this.s=+r,this.l=+t,this.opacity=+n}define(Hsl,hsl,extend(Color,{brighter(e){return e=e==null?brighter:Math.pow(brighter,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?darker:Math.pow(darker,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*r,a=2*t-n;return new Rgb(hsl2rgb(e>=240?e-240:e+120,a,n),hsl2rgb(e,a,n),hsl2rgb(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=clampa(this.opacity);return`${e===1?"hsl(":"hsla("}${clamph(this.h)}, ${clampt(this.s)*100}%, ${clampt(this.l)*100}%${e===1?")":`, ${e})`}`}}));function clamph(e){return e=(e||0)%360,e<0?e+360:e}function clampt(e){return Math.max(0,Math.min(1,e||0))}function hsl2rgb(e,r,t){return(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)*255}const radians=Math.PI/180,degrees=180/Math.PI,K=18,Xn=.96422,Yn=1,Zn=.82521,t0=4/29,t1=6/29,t2=3*t1*t1,t3=t1*t1*t1;function labConvert(e){if(e instanceof Lab)return new Lab(e.l,e.a,e.b,e.opacity);if(e instanceof Hcl)return hcl2lab(e);e instanceof Rgb||(e=rgbConvert(e));var r=rgb2lrgb(e.r),t=rgb2lrgb(e.g),n=rgb2lrgb(e.b),a=xyz2lab((.2225045*r+.7168786*t+.0606169*n)/Yn),o,i;return r===t&&t===n?o=i=a:(o=xyz2lab((.4360747*r+.3850649*t+.1430804*n)/Xn),i=xyz2lab((.0139322*r+.0971045*t+.7141733*n)/Zn)),new Lab(116*a-16,500*(o-a),200*(a-i),e.opacity)}function lab(e,r,t,n){return arguments.length===1?labConvert(e):new Lab(e,r,t,n??1)}function Lab(e,r,t,n){this.l=+e,this.a=+r,this.b=+t,this.opacity=+n}define(Lab,lab,extend(Color,{brighter(e){return new Lab(this.l+K*(e??1),this.a,this.b,this.opacity)},darker(e){return new Lab(this.l-K*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,t=isNaN(this.b)?e:e-this.b/200;return r=Xn*lab2xyz(r),e=Yn*lab2xyz(e),t=Zn*lab2xyz(t),new Rgb(lrgb2rgb(3.1338561*r-1.6168667*e-.4906146*t),lrgb2rgb(-.9787684*r+1.9161415*e+.033454*t),lrgb2rgb(.0719453*r-.2289914*e+1.4052427*t),this.opacity)}}));function xyz2lab(e){return e>t3?Math.pow(e,1/3):e/t2+t0}function lab2xyz(e){return e>t1?e*e*e:t2*(e-t0)}function lrgb2rgb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function rgb2lrgb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function hclConvert(e){if(e instanceof Hcl)return new Hcl(e.h,e.c,e.l,e.opacity);if(e instanceof Lab||(e=labConvert(e)),e.a===0&&e.b===0)return new Hcl(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*degrees;return new Hcl(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function hcl$1(e,r,t,n){return arguments.length===1?hclConvert(e):new Hcl(e,r,t,n??1)}function Hcl(e,r,t,n){this.h=+e,this.c=+r,this.l=+t,this.opacity=+n}function hcl2lab(e){if(isNaN(e.h))return new Lab(e.l,0,0,e.opacity);var r=e.h*radians;return new Lab(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}define(Hcl,hcl$1,extend(Color,{brighter(e){return new Hcl(this.h,this.c,this.l+K*(e??1),this.opacity)},darker(e){return new Hcl(this.h,this.c,this.l-K*(e??1),this.opacity)},rgb(){return hcl2lab(this).rgb()}}));var constant$3=e=>()=>e;function linear$1(e,r){return function(t){return e+t*r}}function exponential(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(n){return Math.pow(e+n*r,t)}}function hue(e,r){var t=r-e;return t?linear$1(e,t>180||t<-180?t-360*Math.round(t/360):t):constant$3(isNaN(e)?r:e)}function gamma(e){return(e=+e)==1?nogamma:function(r,t){return t-r?exponential(r,t,e):constant$3(isNaN(r)?t:r)}}function nogamma(e,r){var t=r-e;return t?linear$1(e,t):constant$3(isNaN(e)?r:e)}var rgb=function e(r){var t=gamma(r);function n(a,o){var i=t((a=rgb$1(a)).r,(o=rgb$1(o)).r),l=t(a.g,o.g),c=t(a.b,o.b),d=nogamma(a.opacity,o.opacity);return function(f){return a.r=i(f),a.g=l(f),a.b=c(f),a.opacity=d(f),a+""}}return n.gamma=e,n}(1);function numberArray(e,r){r||(r=[]);var t=e?Math.min(r.length,e.length):0,n=r.slice(),a;return function(o){for(a=0;a<t;++a)n[a]=e[a]*(1-o)+r[a]*o;return n}}function isNumberArray(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function genericArray(e,r){var t=r?r.length:0,n=e?Math.min(t,e.length):0,a=new Array(n),o=new Array(t),i;for(i=0;i<n;++i)a[i]=interpolate(e[i],r[i]);for(;i<t;++i)o[i]=r[i];return function(l){for(i=0;i<n;++i)o[i]=a[i](l);return o}}function date(e,r){var t=new Date;return e=+e,r=+r,function(n){return t.setTime(e*(1-n)+r*n),t}}function interpolateNumber(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}function object(e,r){var t={},n={},a;(e===null||typeof e!="object")&&(e={}),(r===null||typeof r!="object")&&(r={});for(a in r)a in e?t[a]=interpolate(e[a],r[a]):n[a]=r[a];return function(o){for(a in t)n[a]=t[a](o);return n}}var reA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,reB=new RegExp(reA.source,"g");function zero(e){return function(){return e}}function one(e){return function(r){return e(r)+""}}function string$1(e,r){var t=reA.lastIndex=reB.lastIndex=0,n,a,o,i=-1,l=[],c=[];for(e=e+"",r=r+"";(n=reA.exec(e))&&(a=reB.exec(r));)(o=a.index)>t&&(o=r.slice(t,o),l[i]?l[i]+=o:l[++i]=o),(n=n[0])===(a=a[0])?l[i]?l[i]+=a:l[++i]=a:(l[++i]=null,c.push({i,x:interpolateNumber(n,a)})),t=reB.lastIndex;return t<r.length&&(o=r.slice(t),l[i]?l[i]+=o:l[++i]=o),l.length<2?c[0]?one(c[0].x):zero(r):(r=c.length,function(d){for(var f=0,p;f<r;++f)l[(p=c[f]).i]=p.x(d);return l.join("")})}function interpolate(e,r){var t=typeof r,n;return r==null||t==="boolean"?constant$3(r):(t==="number"?interpolateNumber:t==="string"?(n=color(r))?(r=n,rgb):string$1:r instanceof color?rgb:r instanceof Date?date:isNumberArray(r)?numberArray:Array.isArray(r)?genericArray:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?object:interpolateNumber)(e,r)}function interpolateRound(e,r){return e=+e,r=+r,function(t){return Math.round(e*(1-t)+r*t)}}function hcl(e){return function(r,t){var n=e((r=hcl$1(r)).h,(t=hcl$1(t)).h),a=nogamma(r.c,t.c),o=nogamma(r.l,t.l),i=nogamma(r.opacity,t.opacity);return function(l){return r.h=n(l),r.c=a(l),r.l=o(l),r.opacity=i(l),r+""}}}var interpolateHcl=hcl(hue);function constants$2(e){return function(){return e}}function number$1(e){return+e}var unit=[0,1];function identity$3(e){return e}function normalize$1(e,r){return(r-=e=+e)?function(t){return(t-e)/r}:constants$2(isNaN(r)?NaN:.5)}function clamper(e,r){var t;return e>r&&(t=e,e=r,r=t),function(n){return Math.max(e,Math.min(r,n))}}function bimap(e,r,t){var n=e[0],a=e[1],o=r[0],i=r[1];return a<n?(n=normalize$1(a,n),o=t(i,o)):(n=normalize$1(n,a),o=t(o,i)),function(l){return o(n(l))}}function polymap(e,r,t){var n=Math.min(e.length,r.length)-1,a=new Array(n),o=new Array(n),i=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),r=r.slice().reverse());++i<n;)a[i]=normalize$1(e[i],e[i+1]),o[i]=t(r[i],r[i+1]);return function(l){var c=bisectRight(e,l,1,n)-1;return o[c](a[c](l))}}function copy$1(e,r){return r.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function transformer$1(){var e=unit,r=unit,t=interpolate,n,a,o,i=identity$3,l,c,d;function f(){var v=Math.min(e.length,r.length);return i!==identity$3&&(i=clamper(e[0],e[v-1])),l=v>2?polymap:bimap,c=d=null,p}function p(v){return v==null||isNaN(v=+v)?o:(c||(c=l(e.map(n),r,t)))(n(i(v)))}return p.invert=function(v){return i(a((d||(d=l(r,e.map(n),interpolateNumber)))(v)))},p.domain=function(v){return arguments.length?(e=Array.from(v,number$1),f()):e.slice()},p.range=function(v){return arguments.length?(r=Array.from(v),f()):r.slice()},p.rangeRound=function(v){return r=Array.from(v),t=interpolateRound,f()},p.clamp=function(v){return arguments.length?(i=v?!0:identity$3,f()):i!==identity$3},p.interpolate=function(v){return arguments.length?(t=v,f()):t},p.unknown=function(v){return arguments.length?(o=v,p):o},function(v,m){return n=v,a=m,f()}}function continuous(){return transformer$1()(identity$3,identity$3)}function formatDecimal(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function formatDecimalParts(e,r){if((t=(e=r?e.toExponential(r-1):e.toExponential()).indexOf("e"))<0)return null;var t,n=e.slice(0,t);return[n.length>1?n[0]+n.slice(2):n,+e.slice(t+1)]}function exponent(e){return e=formatDecimalParts(Math.abs(e)),e?e[1]:NaN}function formatGroup(e,r){return function(t,n){for(var a=t.length,o=[],i=0,l=e[0],c=0;a>0&&l>0&&(c+l+1>n&&(l=Math.max(1,n-c)),o.push(t.substring(a-=l,a+l)),!((c+=l+1)>n));)l=e[i=(i+1)%e.length];return o.reverse().join(r)}}function formatNumerals(e){return function(r){return r.replace(/[0-9]/g,function(t){return e[+t]})}}var re=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(e){if(!(r=re.exec(e)))throw new Error("invalid format: "+e);var r;return new FormatSpecifier({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&&r[8].slice(1),trim:r[9],type:r[10]})}formatSpecifier.prototype=FormatSpecifier.prototype;function FormatSpecifier(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function formatTrim(e){e:for(var r=e.length,t=1,n=-1,a;t<r;++t)switch(e[t]){case".":n=a=t;break;case"0":n===0&&(n=t),a=t;break;default:if(!+e[t])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var prefixExponent;function formatPrefixAuto(e,r){var t=formatDecimalParts(e,r);if(!t)return e+"";var n=t[0],a=t[1],o=a-(prefixExponent=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,i=n.length;return o===i?n:o>i?n+new Array(o-i+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+formatDecimalParts(e,Math.max(0,r+o-1))[0]}function formatRounded(e,r){var t=formatDecimalParts(e,r);if(!t)return e+"";var n=t[0],a=t[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}var formatTypes={"%":(e,r)=>(e*100).toFixed(r),b:e=>Math.round(e).toString(2),c:e=>e+"",d:formatDecimal,e:(e,r)=>e.toExponential(r),f:(e,r)=>e.toFixed(r),g:(e,r)=>e.toPrecision(r),o:e=>Math.round(e).toString(8),p:(e,r)=>formatRounded(e*100,r),r:formatRounded,s:formatPrefixAuto,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function identity$2(e){return e}var map$3=Array.prototype.map,prefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function formatLocale(e){var r=e.grouping===void 0||e.thousands===void 0?identity$2:formatGroup(map$3.call(e.grouping,Number),e.thousands+""),t=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?identity$2:formatNumerals(map$3.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function d(p){p=formatSpecifier(p);var v=p.fill,m=p.align,g=p.sign,_=p.symbol,S=p.zero,C=p.width,w=p.comma,E=p.precision,$=p.trim,T=p.type;T==="n"?(w=!0,T="g"):formatTypes[T]||(E===void 0&&(E=12),$=!0,T="g"),(S||v==="0"&&m==="=")&&(S=!0,v="0",m="=");var B=_==="$"?t:_==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",R=_==="$"?n:/[%p]/.test(T)?i:"",L=formatTypes[T],te=/[defgprs%]/.test(T);E=E===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function oe(Q){var ce=B,Y=R,ne,ge,me;if(T==="c")Y=L(Q)+Y,Q="";else{Q=+Q;var de=Q<0||1/Q<0;if(Q=isNaN(Q)?c:L(Math.abs(Q),E),$&&(Q=formatTrim(Q)),de&&+Q==0&&g!=="+"&&(de=!1),ce=(de?g==="("?g:l:g==="-"||g==="("?"":g)+ce,Y=(T==="s"?prefixes[8+prefixExponent/3]:"")+Y+(de&&g==="("?")":""),te){for(ne=-1,ge=Q.length;++ne<ge;)if(me=Q.charCodeAt(ne),48>me||me>57){Y=(me===46?a+Q.slice(ne+1):Q.slice(ne))+Y,Q=Q.slice(0,ne);break}}}w&&!S&&(Q=r(Q,1/0));var A=ce.length+Q.length+Y.length,F=A<C?new Array(C-A+1).join(v):"";switch(w&&S&&(Q=r(F+Q,F.length?C-Y.length:1/0),F=""),m){case"<":Q=ce+Q+Y+F;break;case"=":Q=ce+F+Q+Y;break;case"^":Q=F.slice(0,A=F.length>>1)+ce+Q+Y+F.slice(A);break;default:Q=F+ce+Q+Y;break}return o(Q)}return oe.toString=function(){return p+""},oe}function f(p,v){var m=d((p=formatSpecifier(p),p.type="f",p)),g=Math.max(-8,Math.min(8,Math.floor(exponent(v)/3)))*3,_=Math.pow(10,-g),S=prefixes[8+g/3];return function(C){return m(_*C)+S}}return{format:d,formatPrefix:f}}var locale,format,formatPrefix;defaultLocale({thousands:",",grouping:[3],currency:["$",""]});function defaultLocale(e){return locale=formatLocale(e),format=locale.format,formatPrefix=locale.formatPrefix,locale}function precisionFixed(e){return Math.max(0,-exponent(Math.abs(e)))}function precisionPrefix(e,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(exponent(r)/3)))*3-exponent(Math.abs(e)))}function precisionRound(e,r){return e=Math.abs(e),r=Math.abs(r)-e,Math.max(0,exponent(r)-exponent(e))+1}function tickFormat(e,r,t,n){var a=tickStep(e,r,t),o;switch(n=formatSpecifier(n??",f"),n.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(r));return n.precision==null&&!isNaN(o=precisionPrefix(a,i))&&(n.precision=o),formatPrefix(n,i)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=precisionRound(a,Math.max(Math.abs(e),Math.abs(r))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=precisionFixed(a))&&(n.precision=o-(n.type==="%")*2);break}}return format(n)}function linearish(e){var r=e.domain;return e.ticks=function(t){var n=r();return ticks(n[0],n[n.length-1],t??10)},e.tickFormat=function(t,n){var a=r();return tickFormat(a[0],a[a.length-1],t??10,n)},e.nice=function(t){t==null&&(t=10);var n=r(),a=0,o=n.length-1,i=n[a],l=n[o],c,d,f=10;for(l<i&&(d=i,i=l,l=d,d=a,a=o,o=d);f-- >0;){if(d=tickIncrement(i,l,t),d===c)return n[a]=i,n[o]=l,r(n);if(d>0)i=Math.floor(i/d)*d,l=Math.ceil(l/d)*d;else if(d<0)i=Math.ceil(i*d)/d,l=Math.floor(l*d)/d;else break;c=d}return e},e}function linear(){var e=continuous();return e.copy=function(){return copy$1(e,linear())},initRange.apply(e,arguments),linearish(e)}function transformer(){var e=0,r=1,t,n,a,o,i=identity$3,l=!1,c;function d(p){return p==null||isNaN(p=+p)?c:i(a===0?.5:(p=(o(p)-t)*a,l?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([e,r]=p,t=o(e=+e),n=o(r=+r),a=t===n?0:1/(n-t),d):[e,r]},d.clamp=function(p){return arguments.length?(l=!!p,d):l},d.interpolator=function(p){return arguments.length?(i=p,d):i};function f(p){return function(v){var m,g;return arguments.length?([m,g]=v,i=p(m,g),d):[i(0),i(1)]}}return d.range=f(interpolate),d.rangeRound=f(interpolateRound),d.unknown=function(p){return arguments.length?(c=p,d):c},function(p){return o=p,t=p(e),n=p(r),a=t===n?0:1/(n-t),d}}function copy(e,r){return r.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function sequential(){var e=linearish(transformer()(identity$3));return e.copy=function(){return copy(e,sequential())},initInterpolator.apply(e,arguments)}class Scale{constructor(e){this.config=e,this.createScale(e.type)}createScale(e){switch(e){case"band":this.scale=band();break;case"linear":this.scale=linear();break}}changeConfig(e){this.createScale(e.type),this.config=e}get type(){return this.config.type}bandwidth(){return this.type==="band"?this.scale.bandwidth():0}updateRange(e){this.scale=this.scale.copy().range(e)}updateDomain(e,r,t){const n=this.config.type==="band"?this.categoryDomain(e,t):this.numericDomain(e,r,t);this.scale=this.scale.copy().domain(n)}map(e){return e.map(r=>this.mapOne(r))}mapOne(e){const{type:r}=this.config;return r==="band"?this.scale(e)+this.scale.bandwidth()/2:this.scale(e)}ticks(){const{type:e}=this.config;return this.config.tickValues!==void 0?this.config.tickValues:e==="band"?this.scale.domain():this.scale.ticks(this.config.ticks||5)}categoryDomain(e,r){const t=r.reduce((n,a)=>n.concat(getCol(a,e)),[]);return Array.from(new Set(t))}numericDomain(data,stackedData,keys){const{domain}=this.config,values=keys.reduce((e,r)=>e.concat(getCol(r,data)),[]),valueMax=max$1(stackedData,e=>max$1(e,r=>max$1(r)))||0,valueMin=min$1(stackedData,e=>min$1(e,r=>min$1(r)))||0,[dataMin,dataMax]=extent(Array.from(new Set(values.concat([valueMin,valueMax])))),yMin=eval(`
132
+ 85.0573,23.0685,85.9793,23.2355,88.1793Z`,transform:"translate(-0.2662 -0.2662)",fill:"none",stroke:t.mapOutlineColor,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0.5","fill-rule":"evenodd"},null,8,_hoisted_31),vue.createElementVNode("rect",{width:a.mapWidth,height:a.mapHeight,fill:"none"},null,8,_hoisted_32),vue.createElementVNode("circle",{r:"4","data-test":"vs-caption-image-map__marker",fill:t.mapMarkerColor,cx:o.positionX,cy:o.positionY},null,8,_hoisted_33)],8,_hoisted_1$1p)}const VsCaptionImageMap=_export_sfc(_sfc_main$1L,[["render",_sfc_render$1C]]),_sfc_main$1K={name:"VsCaption",status:"prototype",release:"0.0.1",components:{VsRow,VsCol,VsContainer,VsCaptionImageMap},props:{variant:{type:String,default:"fullwidth",validator:e=>e.match(/(fullwidth|large)/)},theme:{type:String,default:"bold",validator:e=>e.match(/(bold|subtle)/)},latitude:{type:String,default:""},longitude:{type:String,default:""},textAlign:{type:String,default:"left",validator:e=>e.match(/(left|right)/)}},data(){return{tokens:designTokens}},computed:{showMap(){return!!(this.longitude&&this.latitude)},isLargeCaption(){return this.variant==="large"},captionClasses(){return[{"vs-caption--large":this.isLargeCaption,"vs-caption--fullwidth":!this.isLargeCaption},`vs-caption--${this.textAlign}`,`vs-caption--${this.theme}`]}}},_hoisted_1$1o={class:"vs-caption__caption-info"},_hoisted_2$Y={key:0,class:"vs-caption__image-caption"},_hoisted_3$L={key:1,class:"vs-caption__image-credit"},_hoisted_4$B={class:"vs-caption__map-wrapper pt-075 pt-sm-050 pb-sm-050 mx-auto"};function _sfc_render$1B(e,r,t,n,a,o){const i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsCaptionImageMap"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",{"data-test":"vs-caption",class:vue.normalizeClass(["vs-caption",o.captionClasses])},[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,{class:"justify-content-center justify-content-sm-start"},{default:vue.withCtx(()=>[vue.createVNode(i,{class:vue.normalizeClass(["order-2 order-sm-1",[o.showMap?"":"align-self-center"]])},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1o,[e.$slots.caption?(vue.openBlock(),vue.createElementBlock("p",_hoisted_2$Y,[vue.renderSlot(e.$slots,"caption")])):vue.createCommentVNode("",!0),e.$slots.credit?(vue.openBlock(),vue.createElementBlock("p",_hoisted_3$L,[vue.renderSlot(e.$slots,"credit")])):vue.createCommentVNode("",!0)])]),_:3},8,["class"]),o.showMap&&o.isLargeCaption?(vue.openBlock(),vue.createBlock(i,{key:0,class:"col-12 col-sm-auto order-1 order-sm-2 ps-sm-0 align-self-end align-self-sm-start"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_4$B,[vue.createVNode(l,{latitude:t.latitude,longitude:t.longitude,"map-outline-color":a.tokens["vs-color-icon-inverse"],"map-marker-color":a.tokens["vs-color-background-accent-tolsta-40"]},null,8,["latitude","longitude","map-outline-color","map-marker-color"])])]),_:1})):vue.createCommentVNode("",!0)]),_:3})]),_:3})],2)}const VsCaption=_export_sfc(_sfc_main$1K,[["render",_sfc_render$1B]]),_sfc_main$1J={name:"VsWarning",status:"prototype",release:"0.1.0",components:{VsIcon,VsButton},props:{icon:{type:String,default:"review"},type:{type:String,default:"normal",validator:e=>e.match(/(normal|cookie)/)},size:{type:String,default:"normal",validator:e=>e.match(/(small|normal)/)}},computed:{warningClasses(){return[`vs-warning--${this.size}`]},btnAttrs(){const e={};return this.type==="cookie"&&(e.class="ot-sdk-show-settings vs-warning__cookie-trigger"),this.size==="small"&&(e.size="sm"),e}}},_hoisted_1$1n={class:"vs-warning__content"},_hoisted_2$X={key:0};function _sfc_render$1A(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-warning",o.warningClasses]),"data-test":"vs-warning"},[vue.createElementVNode("div",_hoisted_1$1n,[vue.createVNode(i,{class:"vs-warning__icon",name:t.icon,variant:"tertiary"},null,8,["name"]),vue.createElementVNode("div",null,[vue.createElementVNode("p",null,[vue.renderSlot(e.$slots,"default")]),e.$slots["extra-content"]&&e.$slots["extra-content"]()?(vue.openBlock(),vue.createElementBlock("p",_hoisted_2$X,[vue.renderSlot(e.$slots,"extra-content")])):vue.createCommentVNode("",!0)])]),vue.withDirectives(vue.createVNode(l,vue.mergeProps(o.btnAttrs,{variant:"primary",class:"vs-warning__button"}),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"button-text")]),_:3},16),[[vue.vShow,e.$slots["button-text"]&&e.$slots["button-text"]()]])],2)}const VsWarning=_export_sfc(_sfc_main$1J,[["render",_sfc_render$1A]]),_sfc_main$1I={name:"VsProgressBar",status:"prototype",release:"0.1.0",components:{BProgress:bootstrapVueNext.BProgress,BProgressBar:bootstrapVueNext.BProgressBar},props:{max:{type:Number,required:!0},currentStep:{type:Number,required:!0},isStepped:{type:Boolean,required:!1},isFull:{type:Boolean,required:!1},progressLabel:{type:String,default:""}},data(){return{compId:null}},computed:{computedClasses(){let e="";return this.isFull&&(e+="vs-progress-bar--full "),this.isStepped&&(e+="vs-progress-bar--stepped "),e},interpolProgressLabel(){if(this.progressLabel){let e=this.progressLabel.replace("xxx",this.currentStep);return e=e.replace("yyy",this.max),e}return""}},mounted(){const e=vue.getCurrentInstance();this.compId=vue.ref(e.uid)}},_hoisted_1$1m={key:1,class:"vs-progress-bar__stepper"},_hoisted_2$W=["id"],_hoisted_3$K=["id"];function _sfc_render$1z(e,r,t,n,a,o){const i=vue.resolveComponent("BProgressBar"),l=vue.resolveComponent("BProgress");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-progress-bar",o.computedClasses]),"data-test":"vs-progress-bar"},[!t.isStepped||t.max>5?(vue.openBlock(),vue.createBlock(l,{key:0,max:t.max},{default:vue.withCtx(()=>[vue.createVNode(i,{value:t.currentStep,"aria-labelledBy":"progress-bar-"+a.compId},null,8,["value","aria-labelledBy"])]),_:1},8,["max"])):vue.createCommentVNode("",!0),t.isStepped&&t.max<=5?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1m,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.max,c=>(vue.openBlock(),vue.createBlock(l,{key:c,max:1},{default:vue.withCtx(()=>[vue.createVNode(i,{value:c<=t.currentStep?1:0,"aria-labelledBy":"progress-bar-"+a.compId},null,8,["value","aria-labelledBy"])]),_:2},1024))),128))])):vue.createCommentVNode("",!0),o.interpolProgressLabel?(vue.openBlock(),vue.createElementBlock("p",{key:2,class:"vs-progress-bar__label",id:"progress-bar-"+a.compId},vue.toDisplayString(o.interpolProgressLabel),9,_hoisted_2$W)):(vue.openBlock(),vue.createElementBlock("p",{key:3,class:"vs-progress-bar__label",id:"progress-bar-"+a.compId},vue.toDisplayString(t.currentStep)+" / "+vue.toDisplayString(t.max),9,_hoisted_3$K))],2)}const VsProgressBar=_export_sfc(_sfc_main$1I,[["render",_sfc_render$1z]]),_sfc_main$1H={name:"VsCarbonCalculatorTip",status:"prototype",release:"0.0.1",components:{VsIcon,VsHeading},inject:["labelsMap"],props:{tip:{type:String,default:""},showingAllTips:{type:Boolean,default:!1}}},_hoisted_1$1l={class:"vs-carbon-calculator-tip","data-test":"vs-carbon-calculator-tip"},_hoisted_2$V={class:"vs-carbon-calculator-tip__icon-container"},_hoisted_3$J={class:"vs-carbon-calculator-tip__content"},_hoisted_4$A=["innerHTML"],_hoisted_5$p=["innerHTML"];function _sfc_render$1y(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1l,[vue.createElementVNode("div",_hoisted_2$V,[vue.createVNode(i,{name:"coo",size:"lg",variant:"tertiary",class:"vs-carbon-calculator-tip__icon"})]),vue.createElementVNode("div",_hoisted_3$J,[vue.createVNode(l,{level:"3","heading-style":"heading-xs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.labelsMap.topTip),1)]),_:1}),t.showingAllTips?(vue.openBlock(),vue.createElementBlock("p",{key:0,class:"vs-carbon-calculator-tip__content","data-test":"vs-carbon-calculator-tip__summary",innerHTML:o.labelsMap.allTips},null,8,_hoisted_4$A)):vue.createCommentVNode("",!0),t.showingAllTips?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("p",{key:1,class:"vs-carbon-calculator-tip__content","data-test":"vs-carbon-calculator-tip__content",innerHTML:t.tip},null,8,_hoisted_5$p))])])}const VsCarbonCalculatorTip=_export_sfc(_sfc_main$1H,[["render",_sfc_render$1y]]);function _isPlaceholder(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function _curry1(e){return function r(t){return arguments.length===0||_isPlaceholder(t)?r:e.apply(this,arguments)}}function _curry2(e){return function r(t,n){switch(arguments.length){case 0:return r;case 1:return _isPlaceholder(t)?r:_curry1(function(a){return e(t,a)});default:return _isPlaceholder(t)&&_isPlaceholder(n)?r:_isPlaceholder(t)?_curry1(function(a){return e(a,n)}):_isPlaceholder(n)?_curry1(function(a){return e(t,a)}):e(t,n)}}}function _arity(e,r){switch(e){case 0:return function(){return r.apply(this,arguments)};case 1:return function(t){return r.apply(this,arguments)};case 2:return function(t,n){return r.apply(this,arguments)};case 3:return function(t,n,a){return r.apply(this,arguments)};case 4:return function(t,n,a,o){return r.apply(this,arguments)};case 5:return function(t,n,a,o,i){return r.apply(this,arguments)};case 6:return function(t,n,a,o,i,l){return r.apply(this,arguments)};case 7:return function(t,n,a,o,i,l,c){return r.apply(this,arguments)};case 8:return function(t,n,a,o,i,l,c,d){return r.apply(this,arguments)};case 9:return function(t,n,a,o,i,l,c,d,f){return r.apply(this,arguments)};case 10:return function(t,n,a,o,i,l,c,d,f,p){return r.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function _curryN(e,r,t){return function(){for(var n=[],a=0,o=e,i=0;i<r.length||a<arguments.length;){var l;i<r.length&&(!_isPlaceholder(r[i])||a>=arguments.length)?l=r[i]:(l=arguments[a],a+=1),n[i]=l,_isPlaceholder(l)||(o-=1),i+=1}return o<=0?t.apply(this,n):_arity(o,_curryN(e,n,t))}}var curryN=_curry2(function(r,t){return r===1?_curry1(t):_arity(r,_curryN(r,[],t))});function _curry3(e){return function r(t,n,a){switch(arguments.length){case 0:return r;case 1:return _isPlaceholder(t)?r:_curry2(function(o,i){return e(t,o,i)});case 2:return _isPlaceholder(t)&&_isPlaceholder(n)?r:_isPlaceholder(t)?_curry2(function(o,i){return e(o,n,i)}):_isPlaceholder(n)?_curry2(function(o,i){return e(t,o,i)}):_curry1(function(o){return e(t,n,o)});default:return _isPlaceholder(t)&&_isPlaceholder(n)&&_isPlaceholder(a)?r:_isPlaceholder(t)&&_isPlaceholder(n)?_curry2(function(o,i){return e(o,i,a)}):_isPlaceholder(t)&&_isPlaceholder(a)?_curry2(function(o,i){return e(o,n,i)}):_isPlaceholder(n)&&_isPlaceholder(a)?_curry2(function(o,i){return e(t,o,i)}):_isPlaceholder(t)?_curry1(function(o){return e(o,n,a)}):_isPlaceholder(n)?_curry1(function(o){return e(t,o,a)}):_isPlaceholder(a)?_curry1(function(o){return e(t,n,o)}):e(t,n,a)}}}var _isArray=Array.isArray||function(r){return r!=null&&r.length>=0&&Object.prototype.toString.call(r)==="[object Array]"};function _isTransformer(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function _dispatchable(e,r,t){return function(){if(arguments.length===0)return t();var n=arguments[arguments.length-1];if(!_isArray(n)){for(var a=0;a<e.length;){if(typeof n[e[a]]=="function")return n[e[a]].apply(n,Array.prototype.slice.call(arguments,0,-1));a+=1}if(_isTransformer(n)){var o=r.apply(null,Array.prototype.slice.call(arguments,0,-1));return o(n)}}return t.apply(this,arguments)}}var _xfBase={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};function _map(e,r){for(var t=0,n=r.length,a=Array(n);t<n;)a[t]=e(r[t]),t+=1;return a}function _isString(e){return Object.prototype.toString.call(e)==="[object String]"}var _isArrayLike=_curry1(function(r){return _isArray(r)?!0:!r||typeof r!="object"||_isString(r)?!1:r.length===0?!0:r.length>0?r.hasOwnProperty(0)&&r.hasOwnProperty(r.length-1):!1}),XWrap=function(){function e(r){this.f=r}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(r){return r},e.prototype["@@transducer/step"]=function(r,t){return this.f(r,t)},e}();function _xwrap(e){return new XWrap(e)}var bind=_curry2(function(r,t){return _arity(r.length,function(){return r.apply(t,arguments)})});function _arrayReduce(e,r,t){for(var n=0,a=t.length;n<a;){if(r=e["@@transducer/step"](r,t[n]),r&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}n+=1}return e["@@transducer/result"](r)}function _iterableReduce(e,r,t){for(var n=t.next();!n.done;){if(r=e["@@transducer/step"](r,n.value),r&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}n=t.next()}return e["@@transducer/result"](r)}function _methodReduce(e,r,t,n){return e["@@transducer/result"](t[n](bind(e["@@transducer/step"],e),r))}var symIterator=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _reduce(e,r,t){if(typeof e=="function"&&(e=_xwrap(e)),_isArrayLike(t))return _arrayReduce(e,r,t);if(typeof t["fantasy-land/reduce"]=="function")return _methodReduce(e,r,t,"fantasy-land/reduce");if(t[symIterator]!=null)return _iterableReduce(e,r,t[symIterator]());if(typeof t.next=="function")return _iterableReduce(e,r,t);if(typeof t.reduce=="function")return _methodReduce(e,r,t,"reduce");throw new TypeError("reduce: list must be array or iterable")}var XMap=function(){function e(r,t){this.xf=t,this.f=r}return e.prototype["@@transducer/init"]=_xfBase.init,e.prototype["@@transducer/result"]=_xfBase.result,e.prototype["@@transducer/step"]=function(r,t){return this.xf["@@transducer/step"](r,this.f(t))},e}(),_xmap=_curry2(function(r,t){return new XMap(r,t)});function _has(e,r){return Object.prototype.hasOwnProperty.call(r,e)}var toString$1=Object.prototype.toString,_isArguments=function(){return toString$1.call(arguments)==="[object Arguments]"?function(r){return toString$1.call(r)==="[object Arguments]"}:function(r){return _has("callee",r)}}(),hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug=function(){return arguments.propertyIsEnumerable("length")}(),contains=function(r,t){for(var n=0;n<r.length;){if(r[n]===t)return!0;n+=1}return!1},keys=_curry1(typeof Object.keys=="function"&&!hasArgsEnumBug?function(r){return Object(r)!==r?[]:Object.keys(r)}:function(r){if(Object(r)!==r)return[];var t,n,a=[],o=hasArgsEnumBug&&_isArguments(r);for(t in r)_has(t,r)&&(!o||t!=="length")&&(a[a.length]=t);if(hasEnumBug)for(n=nonEnumerableProps.length-1;n>=0;)t=nonEnumerableProps[n],_has(t,r)&&!contains(a,t)&&(a[a.length]=t),n-=1;return a}),map$1=_curry2(_dispatchable(["fantasy-land/map","map"],_xmap,function(r,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return curryN(t.length,function(){return r.call(this,t.apply(this,arguments))});case"[object Object]":return _reduce(function(n,a){return n[a]=r(t[a]),n},{},keys(t));default:return _map(r,t)}})),map$2=map$1,_isInteger=Number.isInteger||function(r){return r<<0===r},nth=_curry2(function(r,t){var n=r<0?t.length+r:r;return _isString(t)?t.charAt(n):t[n]}),nth$1=nth,prop=_curry2(function(r,t){if(t!=null)return _isInteger(r)?nth$1(r,t):t[r]}),prop$1=prop,reduce=_curry3(_reduce),reduce$1=reduce,values=_curry1(function(r){for(var t=keys(r),n=t.length,a=[],o=0;o<n;)a[o]=r[t[o]],o+=1;return a}),values$1=values;function _isFunction(e){var r=Object.prototype.toString.call(e);return r==="[object Function]"||r==="[object AsyncFunction]"||r==="[object GeneratorFunction]"||r==="[object AsyncGeneratorFunction]"}var type$1=_curry1(function(r){return r===null?"Null":r===void 0?"Undefined":Object.prototype.toString.call(r).slice(8,-1)});function _pipe(e,r){return function(){return r.call(this,e.apply(this,arguments))}}function _checkForMethod(e,r){return function(){var t=arguments.length;if(t===0)return r();var n=arguments[t-1];return _isArray(n)||typeof n[e]!="function"?r.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,t-1))}}var slice=_curry3(_checkForMethod("slice",function(r,t,n){return Array.prototype.slice.call(n,r,t)})),tail=_curry1(_checkForMethod("tail",slice(1,1/0))),tail$1=tail;function pipe(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return _arity(arguments[0].length,reduce$1(_pipe,arguments[0],tail$1(arguments)))}function _arrayFromIterator(e){for(var r=[],t;!(t=e.next()).done;)r.push(t.value);return r}function _includesWith(e,r,t){for(var n=0,a=t.length;n<a;){if(e(r,t[n]))return!0;n+=1}return!1}function _functionName(e){var r=String(e).match(/^function (\w*)/);return r==null?"":r[1]}function _objectIs(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}var _objectIs$1=typeof Object.is=="function"?Object.is:_objectIs;function _uniqContentEquals(e,r,t,n){var a=_arrayFromIterator(e),o=_arrayFromIterator(r);function i(l,c){return _equals(l,c,t.slice(),n.slice())}return!_includesWith(function(l,c){return!_includesWith(i,c,l)},o,a)}function _equals(e,r,t,n){if(_objectIs$1(e,r))return!0;var a=type$1(e);if(a!==type$1(r))return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof r["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](r)&&typeof r["fantasy-land/equals"]=="function"&&r["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof r.equals=="function")return typeof e.equals=="function"&&e.equals(r)&&typeof r.equals=="function"&&r.equals(e);switch(a){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&_functionName(e.constructor)==="Promise")return e===r;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof r&&_objectIs$1(e.valueOf(),r.valueOf())))return!1;break;case"Date":if(!_objectIs$1(e.valueOf(),r.valueOf()))return!1;break;case"Error":return e.name===r.name&&e.message===r.message;case"RegExp":if(!(e.source===r.source&&e.global===r.global&&e.ignoreCase===r.ignoreCase&&e.multiline===r.multiline&&e.sticky===r.sticky&&e.unicode===r.unicode))return!1;break}for(var o=t.length-1;o>=0;){if(t[o]===e)return n[o]===r;o-=1}switch(a){case"Map":return e.size!==r.size?!1:_uniqContentEquals(e.entries(),r.entries(),t.concat([e]),n.concat([r]));case"Set":return e.size!==r.size?!1:_uniqContentEquals(e.values(),r.values(),t.concat([e]),n.concat([r]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=keys(e);if(i.length!==keys(r).length)return!1;var l=t.concat([e]),c=n.concat([r]);for(o=i.length-1;o>=0;){var d=i[o];if(!(_has(d,r)&&_equals(r[d],e[d],l,c)))return!1;o-=1}return!0}var equals=_curry2(function(r,t){return _equals(r,t,[],[])});function _indexOf(e,r,t){var n,a;if(typeof e.indexOf=="function")switch(typeof r){case"number":if(r===0){for(n=1/r;t<e.length;){if(a=e[t],a===0&&1/a===n)return t;t+=1}return-1}else if(r!==r){for(;t<e.length;){if(a=e[t],typeof a=="number"&&a!==a)return t;t+=1}return-1}return e.indexOf(r,t);case"string":case"boolean":case"function":case"undefined":return e.indexOf(r,t);case"object":if(r===null)return e.indexOf(r,t)}for(;t<e.length;){if(equals(e[t],r))return t;t+=1}return-1}function _includes(e,r){return _indexOf(r,e,0)>=0}function _quote(e){var r=e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+r.replace(/"/g,'\\"')+'"'}var pad=function(r){return(r<10?"0":"")+r},_toISOString=typeof Date.prototype.toISOString=="function"?function(r){return r.toISOString()}:function(r){return r.getUTCFullYear()+"-"+pad(r.getUTCMonth()+1)+"-"+pad(r.getUTCDate())+"T"+pad(r.getUTCHours())+":"+pad(r.getUTCMinutes())+":"+pad(r.getUTCSeconds())+"."+(r.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function _complement(e){return function(){return!e.apply(this,arguments)}}function _filter(e,r){for(var t=0,n=r.length,a=[];t<n;)e(r[t])&&(a[a.length]=r[t]),t+=1;return a}function _isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}var XFilter=function(){function e(r,t){this.xf=t,this.f=r}return e.prototype["@@transducer/init"]=_xfBase.init,e.prototype["@@transducer/result"]=_xfBase.result,e.prototype["@@transducer/step"]=function(r,t){return this.f(t)?this.xf["@@transducer/step"](r,t):r},e}(),_xfilter=_curry2(function(r,t){return new XFilter(r,t)}),filter$1=_curry2(_dispatchable(["fantasy-land/filter","filter"],_xfilter,function(e,r){return _isObject(r)?_reduce(function(t,n){return e(r[n])&&(t[n]=r[n]),t},{},keys(r)):_filter(e,r)})),reject=_curry2(function(r,t){return filter$1(_complement(r),t)});function _toString(e,r){var t=function(i){var l=r.concat([e]);return _includes(i,l)?"<Circular>":_toString(i,l)},n=function(o,i){return _map(function(l){return _quote(l)+": "+t(o[l])},i.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+_map(t,e).join(", ")+"))";case"[object Array]":return"["+_map(t,e).concat(n(e,reject(function(o){return/^\d+$/.test(o)},keys(e)))).join(", ")+"]";case"[object Boolean]":return typeof e=="object"?"new Boolean("+t(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?t(NaN):_quote(_toISOString(e)))+")";case"[object Null]":return"null";case"[object Number]":return typeof e=="object"?"new Number("+t(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object String]":return typeof e=="object"?"new String("+t(e.valueOf())+")":_quote(e);case"[object Undefined]":return"undefined";default:if(typeof e.toString=="function"){var a=e.toString();if(a!=="[object Object]")return a}return"{"+n(e,keys(e)).join(", ")+"}"}}var toString=_curry1(function(r){return _toString(r,[])}),curry=_curry1(function(r){return curryN(r.length,r)}),curry$1=curry,invoker=_curry2(function(r,t){return curryN(r+1,function(){var n=arguments[r];if(n!=null&&_isFunction(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,r));throw new TypeError(toString(n)+' does not have a method named "'+t+'"')})}),invoker$1=invoker,is=_curry2(function(r,t){return t instanceof r||t!=null&&(t.constructor===r||r.name==="Object"&&typeof t=="object")}),is$1=is,join=invoker$1(1,"join"),join$1=join,mergeWithKey=_curry3(function(r,t,n){var a={},o;for(o in t)_has(o,t)&&(a[o]=_has(o,n)?r(o,t[o],n[o]):t[o]);for(o in n)_has(o,n)&&!_has(o,a)&&(a[o]=n[o]);return a}),mergeDeepWithKey=_curry3(function e(r,t,n){return mergeWithKey(function(a,o,i){return _isObject(o)&&_isObject(i)?e(r,o,i):r(a,o,i)},t,n)}),mergeDeepLeft=_curry2(function(r,t){return mergeDeepWithKey(function(n,a,o){return a},r,t)}),mergeDeepLeft$1=mergeDeepLeft,omit=_curry2(function(r,t){for(var n={},a={},o=0,i=r.length;o<i;)a[r[o]]=1,o+=1;for(var l in t)a.hasOwnProperty(l)||(n[l]=t[l]);return n}),omit$1=omit,pickBy=_curry2(function(r,t){var n={};for(var a in t)r(t[a],a,t)&&(n[a]=t[a]);return n}),pickBy$1=pickBy,split=invoker$1(1,"split"),split$1=split,toLower=invoker$1(0,"toLowerCase"),toLower$1=toLower,zipObj=_curry2(function(r,t){for(var n=0,a=Math.min(r.length,t.length),o={};n<a;)o[r[n]]=t[n],n+=1;return o}),zipObj$1=zipObj;pipe(toLower$1,split$1(" "),join$1("-"));const getCol=curry$1((e,r)=>is$1(Number)?map$2(t=>nth$1(e,t)||"",r).filter(t=>t!==""):map$2(prop$1(e),r)),mapKeys=(e,r)=>zipObj$1(map$2(e,keys(r)),values$1(r)),kebabize=e=>e.split("").map((r,t)=>r.toUpperCase()===r?`${t!==0?"-":""}${r.toLowerCase()}`:r).join("");function ascending$1(e,r){return e==null||r==null?NaN:e<r?-1:e>r?1:e>=r?0:NaN}function descending$1(e,r){return e==null||r==null?NaN:r<e?-1:r>e?1:r>=e?0:NaN}function bisector(e){let r,t,n;e.length!==2?(r=ascending$1,t=(l,c)=>ascending$1(e(l),c),n=(l,c)=>e(l)-c):(r=e===ascending$1||e===descending$1?e:zero$1,t=e,n=e);function a(l,c,d=0,f=l.length){if(d<f){if(r(c,c)!==0)return f;do{const p=d+f>>>1;t(l[p],c)<0?d=p+1:f=p}while(d<f)}return d}function o(l,c,d=0,f=l.length){if(d<f){if(r(c,c)!==0)return f;do{const p=d+f>>>1;t(l[p],c)<=0?d=p+1:f=p}while(d<f)}return d}function i(l,c,d=0,f=l.length){const p=a(l,c,d,f-1);return p>d&&n(l[p-1],c)>-n(l[p],c)?p-1:p}return{left:a,center:i,right:o}}function zero$1(){return 0}function number$2(e){return e===null?NaN:+e}const ascendingBisect=bisector(ascending$1),bisectRight=ascendingBisect.right,bisectCenter=bisector(number$2).center;function extent(e,r){let t,n;for(const a of e)a!=null&&(t===void 0?a>=a&&(t=n=a):(t>a&&(t=a),n<a&&(n=a)));return[t,n]}class InternMap extends Map{constructor(r,t=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),r!=null)for(const[n,a]of r)this.set(n,a)}get(r){return super.get(intern_get(this,r))}has(r){return super.has(intern_get(this,r))}set(r,t){return super.set(intern_set(this,r),t)}delete(r){return super.delete(intern_delete(this,r))}}function intern_get({_intern:e,_key:r},t){const n=r(t);return e.has(n)?e.get(n):t}function intern_set({_intern:e,_key:r},t){const n=r(t);return e.has(n)?e.get(n):(e.set(n,t),t)}function intern_delete({_intern:e,_key:r},t){const n=r(t);return e.has(n)&&(t=e.get(n),e.delete(n)),t}function keyof(e){return e!==null&&typeof e=="object"?e.valueOf():e}const e10=Math.sqrt(50),e5=Math.sqrt(10),e2=Math.sqrt(2);function tickSpec(e,r,t){const n=(r-e)/Math.max(0,t),a=Math.floor(Math.log10(n)),o=n/Math.pow(10,a),i=o>=e10?10:o>=e5?5:o>=e2?2:1;let l,c,d;return a<0?(d=Math.pow(10,-a)/i,l=Math.round(e*d),c=Math.round(r*d),l/d<e&&++l,c/d>r&&--c,d=-d):(d=Math.pow(10,a)*i,l=Math.round(e/d),c=Math.round(r/d),l*d<e&&++l,c*d>r&&--c),c<l&&.5<=t&&t<2?tickSpec(e,r,t*2):[l,c,d]}function ticks(e,r,t){if(r=+r,e=+e,t=+t,!(t>0))return[];if(e===r)return[e];const n=r<e,[a,o,i]=n?tickSpec(r,e,t):tickSpec(e,r,t);if(!(o>=a))return[];const l=o-a+1,c=new Array(l);if(n)if(i<0)for(let d=0;d<l;++d)c[d]=(o-d)/-i;else for(let d=0;d<l;++d)c[d]=(o-d)*i;else if(i<0)for(let d=0;d<l;++d)c[d]=(a+d)/-i;else for(let d=0;d<l;++d)c[d]=(a+d)*i;return c}function tickIncrement(e,r,t){return r=+r,e=+e,t=+t,tickSpec(e,r,t)[2]}function tickStep(e,r,t){r=+r,e=+e,t=+t;const n=r<e,a=n?tickIncrement(r,e,t):tickIncrement(e,r,t);return(n?-1:1)*(a<0?1/-a:a)}function max$1(e,r){let t;if(r===void 0)for(const n of e)n!=null&&(t<n||t===void 0&&n>=n)&&(t=n);else{let n=-1;for(let a of e)(a=r(a,++n,e))!=null&&(t<a||t===void 0&&a>=a)&&(t=a)}return t}function min$1(e,r){let t;if(r===void 0)for(const n of e)n!=null&&(t>n||t===void 0&&n>=n)&&(t=n);else{let n=-1;for(let a of e)(a=r(a,++n,e))!=null&&(t>a||t===void 0&&a>=a)&&(t=a)}return t}function range$1(e,r,t){e=+e,r=+r,t=(a=arguments.length)<2?(r=e,e=0,1):a<3?1:+t;for(var n=-1,a=Math.max(0,Math.ceil((r-e)/t))|0,o=new Array(a);++n<a;)o[n]=e+n*t;return o}function initRange(e,r){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(r).domain(e);break}return this}function initInterpolator(e,r){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof r=="function"?this.interpolator(r):this.range(r);break}}return this}const implicit=Symbol("implicit");function ordinal(){var e=new InternMap,r=[],t=[],n=implicit;function a(o){let i=e.get(o);if(i===void 0){if(n!==implicit)return n;e.set(o,i=r.push(o)-1)}return t[i%t.length]}return a.domain=function(o){if(!arguments.length)return r.slice();r=[],e=new InternMap;for(const i of o)e.has(i)||e.set(i,r.push(i)-1);return a},a.range=function(o){return arguments.length?(t=Array.from(o),a):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.copy=function(){return ordinal(r,t).unknown(n)},initRange.apply(a,arguments),a}function band(){var e=ordinal().unknown(void 0),r=e.domain,t=e.range,n=0,a=1,o,i,l=!1,c=0,d=0,f=.5;delete e.unknown;function p(){var v=r().length,m=a<n,g=m?a:n,_=m?n:a;o=(_-g)/Math.max(1,v-c+d*2),l&&(o=Math.floor(o)),g+=(_-g-o*(v-c))*f,i=o*(1-c),l&&(g=Math.round(g),i=Math.round(i));var S=range$1(v).map(function(C){return g+o*C});return t(m?S.reverse():S)}return e.domain=function(v){return arguments.length?(r(v),p()):r()},e.range=function(v){return arguments.length?([n,a]=v,n=+n,a=+a,p()):[n,a]},e.rangeRound=function(v){return[n,a]=v,n=+n,a=+a,l=!0,p()},e.bandwidth=function(){return i},e.step=function(){return o},e.round=function(v){return arguments.length?(l=!!v,p()):l},e.padding=function(v){return arguments.length?(c=Math.min(1,d=+v),p()):c},e.paddingInner=function(v){return arguments.length?(c=Math.min(1,v),p()):c},e.paddingOuter=function(v){return arguments.length?(d=+v,p()):d},e.align=function(v){return arguments.length?(f=Math.max(0,Math.min(1,v)),p()):f},e.copy=function(){return band(r(),[n,a]).round(l).paddingInner(c).paddingOuter(d).align(f)},initRange.apply(p(),arguments)}function define(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function extend(e,r){var t=Object.create(e.prototype);for(var n in r)t[n]=r[n];return t}function Color(){}var darker=.7,brighter=1/darker,reI="\\s*([+-]?\\d+)\\s*",reN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",reP="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",reHex=/^#([0-9a-f]{3,8})$/,reRgbInteger=new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`),reRgbPercent=new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`),reRgbaInteger=new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`),reRgbaPercent=new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`),reHslPercent=new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`),reHslaPercent=new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`),named={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};define(Color,color,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHex8:color_formatHex8,formatHsl:color_formatHsl,formatRgb:color_formatRgb,toString:color_formatRgb});function color_formatHex(){return this.rgb().formatHex()}function color_formatHex8(){return this.rgb().formatHex8()}function color_formatHsl(){return hslConvert(this).formatHsl()}function color_formatRgb(){return this.rgb().formatRgb()}function color(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=reHex.exec(e))?(t=r[1].length,r=parseInt(r[1],16),t===6?rgbn(r):t===3?new Rgb(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):t===8?rgba(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):t===4?rgba(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=reRgbInteger.exec(e))?new Rgb(r[1],r[2],r[3],1):(r=reRgbPercent.exec(e))?new Rgb(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=reRgbaInteger.exec(e))?rgba(r[1],r[2],r[3],r[4]):(r=reRgbaPercent.exec(e))?rgba(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=reHslPercent.exec(e))?hsla(r[1],r[2]/100,r[3]/100,1):(r=reHslaPercent.exec(e))?hsla(r[1],r[2]/100,r[3]/100,r[4]):named.hasOwnProperty(e)?rgbn(named[e]):e==="transparent"?new Rgb(NaN,NaN,NaN,0):null}function rgbn(e){return new Rgb(e>>16&255,e>>8&255,e&255,1)}function rgba(e,r,t,n){return n<=0&&(e=r=t=NaN),new Rgb(e,r,t,n)}function rgbConvert(e){return e instanceof Color||(e=color(e)),e?(e=e.rgb(),new Rgb(e.r,e.g,e.b,e.opacity)):new Rgb}function rgb$1(e,r,t,n){return arguments.length===1?rgbConvert(e):new Rgb(e,r,t,n??1)}function Rgb(e,r,t,n){this.r=+e,this.g=+r,this.b=+t,this.opacity=+n}define(Rgb,rgb$1,extend(Color,{brighter(e){return e=e==null?brighter:Math.pow(brighter,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?darker:Math.pow(darker,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:rgb_formatHex8,formatRgb:rgb_formatRgb,toString:rgb_formatRgb}));function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity)?1:this.opacity)*255)}`}function rgb_formatRgb(){const e=clampa(this.opacity);return`${e===1?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${e===1?")":`, ${e})`}`}function clampa(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function clampi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function hex(e){return e=clampi(e),(e<16?"0":"")+e.toString(16)}function hsla(e,r,t,n){return n<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new Hsl(e,r,t,n)}function hslConvert(e){if(e instanceof Hsl)return new Hsl(e.h,e.s,e.l,e.opacity);if(e instanceof Color||(e=color(e)),!e)return new Hsl;if(e instanceof Hsl)return e;e=e.rgb();var r=e.r/255,t=e.g/255,n=e.b/255,a=Math.min(r,t,n),o=Math.max(r,t,n),i=NaN,l=o-a,c=(o+a)/2;return l?(r===o?i=(t-n)/l+(t<n)*6:t===o?i=(n-r)/l+2:i=(r-t)/l+4,l/=c<.5?o+a:2-o-a,i*=60):l=c>0&&c<1?0:i,new Hsl(i,l,c,e.opacity)}function hsl(e,r,t,n){return arguments.length===1?hslConvert(e):new Hsl(e,r,t,n??1)}function Hsl(e,r,t,n){this.h=+e,this.s=+r,this.l=+t,this.opacity=+n}define(Hsl,hsl,extend(Color,{brighter(e){return e=e==null?brighter:Math.pow(brighter,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?darker:Math.pow(darker,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*r,a=2*t-n;return new Rgb(hsl2rgb(e>=240?e-240:e+120,a,n),hsl2rgb(e,a,n),hsl2rgb(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=clampa(this.opacity);return`${e===1?"hsl(":"hsla("}${clamph(this.h)}, ${clampt(this.s)*100}%, ${clampt(this.l)*100}%${e===1?")":`, ${e})`}`}}));function clamph(e){return e=(e||0)%360,e<0?e+360:e}function clampt(e){return Math.max(0,Math.min(1,e||0))}function hsl2rgb(e,r,t){return(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)*255}const radians=Math.PI/180,degrees=180/Math.PI,K=18,Xn=.96422,Yn=1,Zn=.82521,t0=4/29,t1=6/29,t2=3*t1*t1,t3=t1*t1*t1;function labConvert(e){if(e instanceof Lab)return new Lab(e.l,e.a,e.b,e.opacity);if(e instanceof Hcl)return hcl2lab(e);e instanceof Rgb||(e=rgbConvert(e));var r=rgb2lrgb(e.r),t=rgb2lrgb(e.g),n=rgb2lrgb(e.b),a=xyz2lab((.2225045*r+.7168786*t+.0606169*n)/Yn),o,i;return r===t&&t===n?o=i=a:(o=xyz2lab((.4360747*r+.3850649*t+.1430804*n)/Xn),i=xyz2lab((.0139322*r+.0971045*t+.7141733*n)/Zn)),new Lab(116*a-16,500*(o-a),200*(a-i),e.opacity)}function lab(e,r,t,n){return arguments.length===1?labConvert(e):new Lab(e,r,t,n??1)}function Lab(e,r,t,n){this.l=+e,this.a=+r,this.b=+t,this.opacity=+n}define(Lab,lab,extend(Color,{brighter(e){return new Lab(this.l+K*(e??1),this.a,this.b,this.opacity)},darker(e){return new Lab(this.l-K*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,t=isNaN(this.b)?e:e-this.b/200;return r=Xn*lab2xyz(r),e=Yn*lab2xyz(e),t=Zn*lab2xyz(t),new Rgb(lrgb2rgb(3.1338561*r-1.6168667*e-.4906146*t),lrgb2rgb(-.9787684*r+1.9161415*e+.033454*t),lrgb2rgb(.0719453*r-.2289914*e+1.4052427*t),this.opacity)}}));function xyz2lab(e){return e>t3?Math.pow(e,1/3):e/t2+t0}function lab2xyz(e){return e>t1?e*e*e:t2*(e-t0)}function lrgb2rgb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function rgb2lrgb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function hclConvert(e){if(e instanceof Hcl)return new Hcl(e.h,e.c,e.l,e.opacity);if(e instanceof Lab||(e=labConvert(e)),e.a===0&&e.b===0)return new Hcl(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*degrees;return new Hcl(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function hcl$1(e,r,t,n){return arguments.length===1?hclConvert(e):new Hcl(e,r,t,n??1)}function Hcl(e,r,t,n){this.h=+e,this.c=+r,this.l=+t,this.opacity=+n}function hcl2lab(e){if(isNaN(e.h))return new Lab(e.l,0,0,e.opacity);var r=e.h*radians;return new Lab(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}define(Hcl,hcl$1,extend(Color,{brighter(e){return new Hcl(this.h,this.c,this.l+K*(e??1),this.opacity)},darker(e){return new Hcl(this.h,this.c,this.l-K*(e??1),this.opacity)},rgb(){return hcl2lab(this).rgb()}}));var constant$3=e=>()=>e;function linear$1(e,r){return function(t){return e+t*r}}function exponential(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(n){return Math.pow(e+n*r,t)}}function hue(e,r){var t=r-e;return t?linear$1(e,t>180||t<-180?t-360*Math.round(t/360):t):constant$3(isNaN(e)?r:e)}function gamma(e){return(e=+e)==1?nogamma:function(r,t){return t-r?exponential(r,t,e):constant$3(isNaN(r)?t:r)}}function nogamma(e,r){var t=r-e;return t?linear$1(e,t):constant$3(isNaN(e)?r:e)}var rgb=function e(r){var t=gamma(r);function n(a,o){var i=t((a=rgb$1(a)).r,(o=rgb$1(o)).r),l=t(a.g,o.g),c=t(a.b,o.b),d=nogamma(a.opacity,o.opacity);return function(f){return a.r=i(f),a.g=l(f),a.b=c(f),a.opacity=d(f),a+""}}return n.gamma=e,n}(1);function numberArray(e,r){r||(r=[]);var t=e?Math.min(r.length,e.length):0,n=r.slice(),a;return function(o){for(a=0;a<t;++a)n[a]=e[a]*(1-o)+r[a]*o;return n}}function isNumberArray(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function genericArray(e,r){var t=r?r.length:0,n=e?Math.min(t,e.length):0,a=new Array(n),o=new Array(t),i;for(i=0;i<n;++i)a[i]=interpolate(e[i],r[i]);for(;i<t;++i)o[i]=r[i];return function(l){for(i=0;i<n;++i)o[i]=a[i](l);return o}}function date(e,r){var t=new Date;return e=+e,r=+r,function(n){return t.setTime(e*(1-n)+r*n),t}}function interpolateNumber(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}function object(e,r){var t={},n={},a;(e===null||typeof e!="object")&&(e={}),(r===null||typeof r!="object")&&(r={});for(a in r)a in e?t[a]=interpolate(e[a],r[a]):n[a]=r[a];return function(o){for(a in t)n[a]=t[a](o);return n}}var reA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,reB=new RegExp(reA.source,"g");function zero(e){return function(){return e}}function one(e){return function(r){return e(r)+""}}function string$1(e,r){var t=reA.lastIndex=reB.lastIndex=0,n,a,o,i=-1,l=[],c=[];for(e=e+"",r=r+"";(n=reA.exec(e))&&(a=reB.exec(r));)(o=a.index)>t&&(o=r.slice(t,o),l[i]?l[i]+=o:l[++i]=o),(n=n[0])===(a=a[0])?l[i]?l[i]+=a:l[++i]=a:(l[++i]=null,c.push({i,x:interpolateNumber(n,a)})),t=reB.lastIndex;return t<r.length&&(o=r.slice(t),l[i]?l[i]+=o:l[++i]=o),l.length<2?c[0]?one(c[0].x):zero(r):(r=c.length,function(d){for(var f=0,p;f<r;++f)l[(p=c[f]).i]=p.x(d);return l.join("")})}function interpolate(e,r){var t=typeof r,n;return r==null||t==="boolean"?constant$3(r):(t==="number"?interpolateNumber:t==="string"?(n=color(r))?(r=n,rgb):string$1:r instanceof color?rgb:r instanceof Date?date:isNumberArray(r)?numberArray:Array.isArray(r)?genericArray:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?object:interpolateNumber)(e,r)}function interpolateRound(e,r){return e=+e,r=+r,function(t){return Math.round(e*(1-t)+r*t)}}function hcl(e){return function(r,t){var n=e((r=hcl$1(r)).h,(t=hcl$1(t)).h),a=nogamma(r.c,t.c),o=nogamma(r.l,t.l),i=nogamma(r.opacity,t.opacity);return function(l){return r.h=n(l),r.c=a(l),r.l=o(l),r.opacity=i(l),r+""}}}var interpolateHcl=hcl(hue);function constants$2(e){return function(){return e}}function number$1(e){return+e}var unit=[0,1];function identity$3(e){return e}function normalize$1(e,r){return(r-=e=+e)?function(t){return(t-e)/r}:constants$2(isNaN(r)?NaN:.5)}function clamper(e,r){var t;return e>r&&(t=e,e=r,r=t),function(n){return Math.max(e,Math.min(r,n))}}function bimap(e,r,t){var n=e[0],a=e[1],o=r[0],i=r[1];return a<n?(n=normalize$1(a,n),o=t(i,o)):(n=normalize$1(n,a),o=t(o,i)),function(l){return o(n(l))}}function polymap(e,r,t){var n=Math.min(e.length,r.length)-1,a=new Array(n),o=new Array(n),i=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),r=r.slice().reverse());++i<n;)a[i]=normalize$1(e[i],e[i+1]),o[i]=t(r[i],r[i+1]);return function(l){var c=bisectRight(e,l,1,n)-1;return o[c](a[c](l))}}function copy$1(e,r){return r.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function transformer$1(){var e=unit,r=unit,t=interpolate,n,a,o,i=identity$3,l,c,d;function f(){var v=Math.min(e.length,r.length);return i!==identity$3&&(i=clamper(e[0],e[v-1])),l=v>2?polymap:bimap,c=d=null,p}function p(v){return v==null||isNaN(v=+v)?o:(c||(c=l(e.map(n),r,t)))(n(i(v)))}return p.invert=function(v){return i(a((d||(d=l(r,e.map(n),interpolateNumber)))(v)))},p.domain=function(v){return arguments.length?(e=Array.from(v,number$1),f()):e.slice()},p.range=function(v){return arguments.length?(r=Array.from(v),f()):r.slice()},p.rangeRound=function(v){return r=Array.from(v),t=interpolateRound,f()},p.clamp=function(v){return arguments.length?(i=v?!0:identity$3,f()):i!==identity$3},p.interpolate=function(v){return arguments.length?(t=v,f()):t},p.unknown=function(v){return arguments.length?(o=v,p):o},function(v,m){return n=v,a=m,f()}}function continuous(){return transformer$1()(identity$3,identity$3)}function formatDecimal(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function formatDecimalParts(e,r){if((t=(e=r?e.toExponential(r-1):e.toExponential()).indexOf("e"))<0)return null;var t,n=e.slice(0,t);return[n.length>1?n[0]+n.slice(2):n,+e.slice(t+1)]}function exponent(e){return e=formatDecimalParts(Math.abs(e)),e?e[1]:NaN}function formatGroup(e,r){return function(t,n){for(var a=t.length,o=[],i=0,l=e[0],c=0;a>0&&l>0&&(c+l+1>n&&(l=Math.max(1,n-c)),o.push(t.substring(a-=l,a+l)),!((c+=l+1)>n));)l=e[i=(i+1)%e.length];return o.reverse().join(r)}}function formatNumerals(e){return function(r){return r.replace(/[0-9]/g,function(t){return e[+t]})}}var re=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(e){if(!(r=re.exec(e)))throw new Error("invalid format: "+e);var r;return new FormatSpecifier({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&&r[8].slice(1),trim:r[9],type:r[10]})}formatSpecifier.prototype=FormatSpecifier.prototype;function FormatSpecifier(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function formatTrim(e){e:for(var r=e.length,t=1,n=-1,a;t<r;++t)switch(e[t]){case".":n=a=t;break;case"0":n===0&&(n=t),a=t;break;default:if(!+e[t])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var prefixExponent;function formatPrefixAuto(e,r){var t=formatDecimalParts(e,r);if(!t)return e+"";var n=t[0],a=t[1],o=a-(prefixExponent=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,i=n.length;return o===i?n:o>i?n+new Array(o-i+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+formatDecimalParts(e,Math.max(0,r+o-1))[0]}function formatRounded(e,r){var t=formatDecimalParts(e,r);if(!t)return e+"";var n=t[0],a=t[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}var formatTypes={"%":(e,r)=>(e*100).toFixed(r),b:e=>Math.round(e).toString(2),c:e=>e+"",d:formatDecimal,e:(e,r)=>e.toExponential(r),f:(e,r)=>e.toFixed(r),g:(e,r)=>e.toPrecision(r),o:e=>Math.round(e).toString(8),p:(e,r)=>formatRounded(e*100,r),r:formatRounded,s:formatPrefixAuto,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function identity$2(e){return e}var map$3=Array.prototype.map,prefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function formatLocale(e){var r=e.grouping===void 0||e.thousands===void 0?identity$2:formatGroup(map$3.call(e.grouping,Number),e.thousands+""),t=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?identity$2:formatNumerals(map$3.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function d(p){p=formatSpecifier(p);var v=p.fill,m=p.align,g=p.sign,_=p.symbol,S=p.zero,C=p.width,w=p.comma,E=p.precision,$=p.trim,T=p.type;T==="n"?(w=!0,T="g"):formatTypes[T]||(E===void 0&&(E=12),$=!0,T="g"),(S||v==="0"&&m==="=")&&(S=!0,v="0",m="=");var B=_==="$"?t:_==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",R=_==="$"?n:/[%p]/.test(T)?i:"",L=formatTypes[T],te=/[defgprs%]/.test(T);E=E===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function oe(Q){var ce=B,J=R,ne,ge,me;if(T==="c")J=L(Q)+J,Q="";else{Q=+Q;var de=Q<0||1/Q<0;if(Q=isNaN(Q)?c:L(Math.abs(Q),E),$&&(Q=formatTrim(Q)),de&&+Q==0&&g!=="+"&&(de=!1),ce=(de?g==="("?g:l:g==="-"||g==="("?"":g)+ce,J=(T==="s"?prefixes[8+prefixExponent/3]:"")+J+(de&&g==="("?")":""),te){for(ne=-1,ge=Q.length;++ne<ge;)if(me=Q.charCodeAt(ne),48>me||me>57){J=(me===46?a+Q.slice(ne+1):Q.slice(ne))+J,Q=Q.slice(0,ne);break}}}w&&!S&&(Q=r(Q,1/0));var A=ce.length+Q.length+J.length,F=A<C?new Array(C-A+1).join(v):"";switch(w&&S&&(Q=r(F+Q,F.length?C-J.length:1/0),F=""),m){case"<":Q=ce+Q+J+F;break;case"=":Q=ce+F+Q+J;break;case"^":Q=F.slice(0,A=F.length>>1)+ce+Q+J+F.slice(A);break;default:Q=F+ce+Q+J;break}return o(Q)}return oe.toString=function(){return p+""},oe}function f(p,v){var m=d((p=formatSpecifier(p),p.type="f",p)),g=Math.max(-8,Math.min(8,Math.floor(exponent(v)/3)))*3,_=Math.pow(10,-g),S=prefixes[8+g/3];return function(C){return m(_*C)+S}}return{format:d,formatPrefix:f}}var locale,format,formatPrefix;defaultLocale({thousands:",",grouping:[3],currency:["$",""]});function defaultLocale(e){return locale=formatLocale(e),format=locale.format,formatPrefix=locale.formatPrefix,locale}function precisionFixed(e){return Math.max(0,-exponent(Math.abs(e)))}function precisionPrefix(e,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(exponent(r)/3)))*3-exponent(Math.abs(e)))}function precisionRound(e,r){return e=Math.abs(e),r=Math.abs(r)-e,Math.max(0,exponent(r)-exponent(e))+1}function tickFormat(e,r,t,n){var a=tickStep(e,r,t),o;switch(n=formatSpecifier(n??",f"),n.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(r));return n.precision==null&&!isNaN(o=precisionPrefix(a,i))&&(n.precision=o),formatPrefix(n,i)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=precisionRound(a,Math.max(Math.abs(e),Math.abs(r))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=precisionFixed(a))&&(n.precision=o-(n.type==="%")*2);break}}return format(n)}function linearish(e){var r=e.domain;return e.ticks=function(t){var n=r();return ticks(n[0],n[n.length-1],t??10)},e.tickFormat=function(t,n){var a=r();return tickFormat(a[0],a[a.length-1],t??10,n)},e.nice=function(t){t==null&&(t=10);var n=r(),a=0,o=n.length-1,i=n[a],l=n[o],c,d,f=10;for(l<i&&(d=i,i=l,l=d,d=a,a=o,o=d);f-- >0;){if(d=tickIncrement(i,l,t),d===c)return n[a]=i,n[o]=l,r(n);if(d>0)i=Math.floor(i/d)*d,l=Math.ceil(l/d)*d;else if(d<0)i=Math.ceil(i*d)/d,l=Math.floor(l*d)/d;else break;c=d}return e},e}function linear(){var e=continuous();return e.copy=function(){return copy$1(e,linear())},initRange.apply(e,arguments),linearish(e)}function transformer(){var e=0,r=1,t,n,a,o,i=identity$3,l=!1,c;function d(p){return p==null||isNaN(p=+p)?c:i(a===0?.5:(p=(o(p)-t)*a,l?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([e,r]=p,t=o(e=+e),n=o(r=+r),a=t===n?0:1/(n-t),d):[e,r]},d.clamp=function(p){return arguments.length?(l=!!p,d):l},d.interpolator=function(p){return arguments.length?(i=p,d):i};function f(p){return function(v){var m,g;return arguments.length?([m,g]=v,i=p(m,g),d):[i(0),i(1)]}}return d.range=f(interpolate),d.rangeRound=f(interpolateRound),d.unknown=function(p){return arguments.length?(c=p,d):c},function(p){return o=p,t=p(e),n=p(r),a=t===n?0:1/(n-t),d}}function copy(e,r){return r.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function sequential(){var e=linearish(transformer()(identity$3));return e.copy=function(){return copy(e,sequential())},initInterpolator.apply(e,arguments)}class Scale{constructor(e){this.config=e,this.createScale(e.type)}createScale(e){switch(e){case"band":this.scale=band();break;case"linear":this.scale=linear();break}}changeConfig(e){this.createScale(e.type),this.config=e}get type(){return this.config.type}bandwidth(){return this.type==="band"?this.scale.bandwidth():0}updateRange(e){this.scale=this.scale.copy().range(e)}updateDomain(e,r,t){const n=this.config.type==="band"?this.categoryDomain(e,t):this.numericDomain(e,r,t);this.scale=this.scale.copy().domain(n)}map(e){return e.map(r=>this.mapOne(r))}mapOne(e){const{type:r}=this.config;return r==="band"?this.scale(e)+this.scale.bandwidth()/2:this.scale(e)}ticks(){const{type:e}=this.config;return this.config.tickValues!==void 0?this.config.tickValues:e==="band"?this.scale.domain():this.scale.ticks(this.config.ticks||5)}categoryDomain(e,r){const t=r.reduce((n,a)=>n.concat(getCol(a,e)),[]);return Array.from(new Set(t))}numericDomain(data,stackedData,keys){const{domain}=this.config,values=keys.reduce((e,r)=>e.concat(getCol(r,data)),[]),valueMax=max$1(stackedData,e=>max$1(e,r=>max$1(r)))||0,valueMin=min$1(stackedData,e=>min$1(e,r=>min$1(r)))||0,[dataMin,dataMax]=extent(Array.from(new Set(values.concat([valueMin,valueMax])))),yMin=eval(`
133
133
  let dataMin = ${dataMin||0}
134
134
  ${domain[0]}
135
135
  `),yMax=eval(`
136
136
  let dataMax = ${dataMax||0}
137
137
  ${domain[1]}
138
- `);return[yMin,yMax]}}class Scales{constructor(r){this.config=r,this.primary=new Scale(r.primary),this.secondary=new Scale(r.secondary)}changeConfig(r){this.config=r,this.primary.changeConfig(r.primary),this.secondary.changeConfig(r.secondary)}updateRange(r,t){t==="horizontal"?(this.primary.updateRange([r.x,r.width]),this.secondary.updateRange([r.height,r.y])):t==="vertical"&&(this.primary.updateRange([r.y,r.height]),this.secondary.updateRange([r.x,r.width]))}updateDomain(r,t,n){this.primary.updateDomain(r,t,getCol(0,n)),this.secondary.updateDomain(r,t,getCol(1,n))}}function constant$2(e){return function(){return e}}const abs=Math.abs,atan2=Math.atan2,cos=Math.cos,max=Math.max,min=Math.min,sin=Math.sin,sqrt=Math.sqrt,epsilon$2=1e-12,pi$1=Math.PI,halfPi=pi$1/2,tau$1=2*pi$1;function acos(e){return e>1?0:e<-1?pi$1:Math.acos(e)}function asin(e){return e>=1?halfPi:e<=-1?-halfPi:Math.asin(e)}const pi=Math.PI,tau=2*pi,epsilon$1=1e-6,tauEpsilon=tau-epsilon$1;function append(e){this._+=e[0];for(let r=1,t=e.length;r<t;++r)this._+=arguments[r]+e[r]}function appendRound(e){let r=Math.floor(e);if(!(r>=0))throw new Error(`invalid digits: ${e}`);if(r>15)return append;const t=10**r;return function(n){this._+=n[0];for(let a=1,o=n.length;a<o;++a)this._+=Math.round(arguments[a]*t)/t+n[a]}}class Path{constructor(r){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=r==null?append:appendRound(r)}moveTo(r,t){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(r,t){this._append`L${this._x1=+r},${this._y1=+t}`}quadraticCurveTo(r,t,n,a){this._append`Q${+r},${+t},${this._x1=+n},${this._y1=+a}`}bezierCurveTo(r,t,n,a,o,i){this._append`C${+r},${+t},${+n},${+a},${this._x1=+o},${this._y1=+i}`}arcTo(r,t,n,a,o){if(r=+r,t=+t,n=+n,a=+a,o=+o,o<0)throw new Error(`negative radius: ${o}`);let i=this._x1,l=this._y1,c=n-r,d=a-t,f=i-r,p=l-t,v=f*f+p*p;if(this._x1===null)this._append`M${this._x1=r},${this._y1=t}`;else if(v>epsilon$1)if(!(Math.abs(p*c-d*f)>epsilon$1)||!o)this._append`L${this._x1=r},${this._y1=t}`;else{let m=n-i,g=a-l,_=c*c+d*d,S=m*m+g*g,C=Math.sqrt(_),w=Math.sqrt(v),E=o*Math.tan((pi-Math.acos((_+v-S)/(2*C*w)))/2),$=E/w,T=E/C;Math.abs($-1)>epsilon$1&&this._append`L${r+$*f},${t+$*p}`,this._append`A${o},${o},0,0,${+(p*m>f*g)},${this._x1=r+T*c},${this._y1=t+T*d}`}}arc(r,t,n,a,o,i){if(r=+r,t=+t,n=+n,i=!!i,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(a),c=n*Math.sin(a),d=r+l,f=t+c,p=1^i,v=i?a-o:o-a;this._x1===null?this._append`M${d},${f}`:(Math.abs(this._x1-d)>epsilon$1||Math.abs(this._y1-f)>epsilon$1)&&this._append`L${d},${f}`,n&&(v<0&&(v=v%tau+tau),v>tauEpsilon?this._append`A${n},${n},0,1,${p},${r-l},${t-c}A${n},${n},0,1,${p},${this._x1=d},${this._y1=f}`:v>epsilon$1&&this._append`A${n},${n},0,${+(v>=pi)},${p},${this._x1=r+n*Math.cos(o)},${this._y1=t+n*Math.sin(o)}`)}rect(r,t,n,a){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+t}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}}function withPath(e){let r=3;return e.digits=function(t){if(!arguments.length)return r;if(t==null)r=null;else{const n=Math.floor(t);if(!(n>=0))throw new RangeError(`invalid digits: ${t}`);r=n}return e},()=>new Path(r)}function arcInnerRadius(e){return e.innerRadius}function arcOuterRadius(e){return e.outerRadius}function arcStartAngle(e){return e.startAngle}function arcEndAngle(e){return e.endAngle}function arcPadAngle(e){return e&&e.padAngle}function intersect(e,r,t,n,a,o,i,l){var c=t-e,d=n-r,f=i-a,p=l-o,v=p*c-f*d;if(!(v*v<epsilon$2))return v=(f*(r-o)-p*(e-a))/v,[e+v*c,r+v*d]}function cornerTangents(e,r,t,n,a,o,i){var l=e-t,c=r-n,d=(i?o:-o)/sqrt(l*l+c*c),f=d*c,p=-d*l,v=e+f,m=r+p,g=t+f,_=n+p,S=(v+g)/2,C=(m+_)/2,w=g-v,E=_-m,$=w*w+E*E,T=a-o,B=v*_-g*m,R=(E<0?-1:1)*sqrt(max(0,T*T*$-B*B)),L=(B*E-w*R)/$,te=(-B*w-E*R)/$,oe=(B*E+w*R)/$,Q=(-B*w+E*R)/$,ce=L-S,Y=te-C,ne=oe-S,ge=Q-C;return ce*ce+Y*Y>ne*ne+ge*ge&&(L=oe,te=Q),{cx:L,cy:te,x01:-f,y01:-p,x11:L*(a/T-1),y11:te*(a/T-1)}}function arc(){var e=arcInnerRadius,r=arcOuterRadius,t=constant$2(0),n=null,a=arcStartAngle,o=arcEndAngle,i=arcPadAngle,l=null,c=withPath(d);function d(){var f,p,v=+e.apply(this,arguments),m=+r.apply(this,arguments),g=a.apply(this,arguments)-halfPi,_=o.apply(this,arguments)-halfPi,S=abs(_-g),C=_>g;if(l||(l=f=c()),m<v&&(p=m,m=v,v=p),!(m>epsilon$2))l.moveTo(0,0);else if(S>tau$1-epsilon$2)l.moveTo(m*cos(g),m*sin(g)),l.arc(0,0,m,g,_,!C),v>epsilon$2&&(l.moveTo(v*cos(_),v*sin(_)),l.arc(0,0,v,_,g,C));else{var w=g,E=_,$=g,T=_,B=S,R=S,L=i.apply(this,arguments)/2,te=L>epsilon$2&&(n?+n.apply(this,arguments):sqrt(v*v+m*m)),oe=min(abs(m-v)/2,+t.apply(this,arguments)),Q=oe,ce=oe,Y,ne;if(te>epsilon$2){var ge=asin(te/v*sin(L)),me=asin(te/m*sin(L));(B-=ge*2)>epsilon$2?(ge*=C?1:-1,$+=ge,T-=ge):(B=0,$=T=(g+_)/2),(R-=me*2)>epsilon$2?(me*=C?1:-1,w+=me,E-=me):(R=0,w=E=(g+_)/2)}var de=m*cos(w),A=m*sin(w),F=v*cos(T),j=v*sin(T);if(oe>epsilon$2){var Z=m*cos(E),fe=m*sin(E),O=v*cos($),I=v*sin($),U;if(S<pi$1)if(U=intersect(de,A,O,I,Z,fe,F,j)){var ae=de-U[0],ee=A-U[1],se=Z-U[0],le=fe-U[1],ie=1/sin(acos((ae*se+ee*le)/(sqrt(ae*ae+ee*ee)*sqrt(se*se+le*le)))/2),ve=sqrt(U[0]*U[0]+U[1]*U[1]);Q=min(oe,(v-ve)/(ie-1)),ce=min(oe,(m-ve)/(ie+1))}else Q=ce=0}R>epsilon$2?ce>epsilon$2?(Y=cornerTangents(O,I,de,A,m,ce,C),ne=cornerTangents(Z,fe,F,j,m,ce,C),l.moveTo(Y.cx+Y.x01,Y.cy+Y.y01),ce<oe?l.arc(Y.cx,Y.cy,ce,atan2(Y.y01,Y.x01),atan2(ne.y01,ne.x01),!C):(l.arc(Y.cx,Y.cy,ce,atan2(Y.y01,Y.x01),atan2(Y.y11,Y.x11),!C),l.arc(0,0,m,atan2(Y.cy+Y.y11,Y.cx+Y.x11),atan2(ne.cy+ne.y11,ne.cx+ne.x11),!C),l.arc(ne.cx,ne.cy,ce,atan2(ne.y11,ne.x11),atan2(ne.y01,ne.x01),!C))):(l.moveTo(de,A),l.arc(0,0,m,w,E,!C)):l.moveTo(de,A),!(v>epsilon$2)||!(B>epsilon$2)?l.lineTo(F,j):Q>epsilon$2?(Y=cornerTangents(F,j,Z,fe,v,-Q,C),ne=cornerTangents(de,A,O,I,v,-Q,C),l.lineTo(Y.cx+Y.x01,Y.cy+Y.y01),Q<oe?l.arc(Y.cx,Y.cy,Q,atan2(Y.y01,Y.x01),atan2(ne.y01,ne.x01),!C):(l.arc(Y.cx,Y.cy,Q,atan2(Y.y01,Y.x01),atan2(Y.y11,Y.x11),!C),l.arc(0,0,v,atan2(Y.cy+Y.y11,Y.cx+Y.x11),atan2(ne.cy+ne.y11,ne.cx+ne.x11),C),l.arc(ne.cx,ne.cy,Q,atan2(ne.y11,ne.x11),atan2(ne.y01,ne.x01),!C))):l.arc(0,0,v,T,$,C)}if(l.closePath(),f)return l=null,f+""||null}return d.centroid=function(){var f=(+e.apply(this,arguments)+ +r.apply(this,arguments))/2,p=(+a.apply(this,arguments)+ +o.apply(this,arguments))/2-pi$1/2;return[cos(p)*f,sin(p)*f]},d.innerRadius=function(f){return arguments.length?(e=typeof f=="function"?f:constant$2(+f),d):e},d.outerRadius=function(f){return arguments.length?(r=typeof f=="function"?f:constant$2(+f),d):r},d.cornerRadius=function(f){return arguments.length?(t=typeof f=="function"?f:constant$2(+f),d):t},d.padRadius=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:constant$2(+f),d):n},d.startAngle=function(f){return arguments.length?(a=typeof f=="function"?f:constant$2(+f),d):a},d.endAngle=function(f){return arguments.length?(o=typeof f=="function"?f:constant$2(+f),d):o},d.padAngle=function(f){return arguments.length?(i=typeof f=="function"?f:constant$2(+f),d):i},d.context=function(f){return arguments.length?(l=f??null,d):l},d}function array$1(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Linear(e){this._context=e}Linear.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:this._context.lineTo(e,r);break}}};function curveLinear(e){return new Linear(e)}function x(e){return e[0]}function y(e){return e[1]}function line(e,r){var t=constant$2(!0),n=null,a=curveLinear,o=null,i=withPath(l);e=typeof e=="function"?e:e===void 0?x:constant$2(e),r=typeof r=="function"?r:r===void 0?y:constant$2(r);function l(c){var d,f=(c=array$1(c)).length,p,v=!1,m;for(n==null&&(o=a(m=i())),d=0;d<=f;++d)!(d<f&&t(p=c[d],d,c))===v&&((v=!v)?o.lineStart():o.lineEnd()),v&&o.point(+e(p,d,c),+r(p,d,c));if(m)return o=null,m+""||null}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:constant$2(+c),l):e},l.y=function(c){return arguments.length?(r=typeof c=="function"?c:constant$2(+c),l):r},l.defined=function(c){return arguments.length?(t=typeof c=="function"?c:constant$2(!!c),l):t},l.curve=function(c){return arguments.length?(a=c,n!=null&&(o=a(n)),l):a},l.context=function(c){return arguments.length?(c==null?n=o=null:o=a(n=c),l):n},l}function area(e,r,t){var n=null,a=constant$2(!0),o=null,i=curveLinear,l=null,c=withPath(d);e=typeof e=="function"?e:e===void 0?x:constant$2(+e),r=typeof r=="function"?r:constant$2(r===void 0?0:+r),t=typeof t=="function"?t:t===void 0?y:constant$2(+t);function d(p){var v,m,g,_=(p=array$1(p)).length,S,C=!1,w,E=new Array(_),$=new Array(_);for(o==null&&(l=i(w=c())),v=0;v<=_;++v){if(!(v<_&&a(S=p[v],v,p))===C)if(C=!C)m=v,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),g=v-1;g>=m;--g)l.point(E[g],$[g]);l.lineEnd(),l.areaEnd()}C&&(E[v]=+e(S,v,p),$[v]=+r(S,v,p),l.point(n?+n(S,v,p):E[v],t?+t(S,v,p):$[v]))}if(w)return l=null,w+""||null}function f(){return line().defined(a).curve(i).context(o)}return d.x=function(p){return arguments.length?(e=typeof p=="function"?p:constant$2(+p),n=null,d):e},d.x0=function(p){return arguments.length?(e=typeof p=="function"?p:constant$2(+p),d):e},d.x1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:constant$2(+p),d):n},d.y=function(p){return arguments.length?(r=typeof p=="function"?p:constant$2(+p),t=null,d):r},d.y0=function(p){return arguments.length?(r=typeof p=="function"?p:constant$2(+p),d):r},d.y1=function(p){return arguments.length?(t=p==null?null:typeof p=="function"?p:constant$2(+p),d):t},d.lineX0=d.lineY0=function(){return f().x(e).y(r)},d.lineY1=function(){return f().x(e).y(t)},d.lineX1=function(){return f().x(n).y(r)},d.defined=function(p){return arguments.length?(a=typeof p=="function"?p:constant$2(!!p),d):a},d.curve=function(p){return arguments.length?(i=p,o!=null&&(l=i(o)),d):i},d.context=function(p){return arguments.length?(p==null?o=l=null:l=i(o=p),d):o},d}function descending(e,r){return r<e?-1:r>e?1:r>=e?0:NaN}function identity$1(e){return e}function pie(){var e=identity$1,r=descending,t=null,n=constant$2(0),a=constant$2(tau$1),o=constant$2(0);function i(l){var c,d=(l=array$1(l)).length,f,p,v=0,m=new Array(d),g=new Array(d),_=+n.apply(this,arguments),S=Math.min(tau$1,Math.max(-tau$1,a.apply(this,arguments)-_)),C,w=Math.min(Math.abs(S)/d,o.apply(this,arguments)),E=w*(S<0?-1:1),$;for(c=0;c<d;++c)($=g[m[c]=c]=+e(l[c],c,l))>0&&(v+=$);for(r!=null?m.sort(function(T,B){return r(g[T],g[B])}):t!=null&&m.sort(function(T,B){return t(l[T],l[B])}),c=0,p=v?(S-d*E)/v:0;c<d;++c,_=C)f=m[c],$=g[f],C=_+($>0?$*p:0)+E,g[f]={data:l[f],index:c,value:$,startAngle:_,endAngle:C,padAngle:w};return g}return i.value=function(l){return arguments.length?(e=typeof l=="function"?l:constant$2(+l),i):e},i.sortValues=function(l){return arguments.length?(r=l,t=null,i):r},i.sort=function(l){return arguments.length?(t=l,r=null,i):t},i.startAngle=function(l){return arguments.length?(n=typeof l=="function"?l:constant$2(+l),i):n},i.endAngle=function(l){return arguments.length?(a=typeof l=="function"?l:constant$2(+l),i):a},i.padAngle=function(l){return arguments.length?(o=typeof l=="function"?l:constant$2(+l),i):o},i}function sign(e){return e<0?-1:1}function slope3(e,r,t){var n=e._x1-e._x0,a=r-e._x1,o=(e._y1-e._y0)/(n||a<0&&-0),i=(t-e._y1)/(a||n<0&&-0),l=(o*a+i*n)/(n+a);return(sign(o)+sign(i))*Math.min(Math.abs(o),Math.abs(i),.5*Math.abs(l))||0}function slope2(e,r){var t=e._x1-e._x0;return t?(3*(e._y1-e._y0)/t-r)/2:r}function point(e,r,t){var n=e._x0,a=e._y0,o=e._x1,i=e._y1,l=(o-n)/3;e._context.bezierCurveTo(n+l,a+l*r,o-l,i-l*t,o,i)}function MonotoneX(e){this._context=e}MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point(this,this._t0,slope2(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){var t=NaN;if(e=+e,r=+r,!(e===this._x1&&r===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3,point(this,slope2(this,t=slope3(this,e,r)),t);break;default:point(this,this._t0,t=slope3(this,e,r));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r,this._t0=t}}};function MonotoneY(e){this._context=new ReflectContext(e)}(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(e,r){MonotoneX.prototype.point.call(this,r,e)};function ReflectContext(e){this._context=e}ReflectContext.prototype={moveTo:function(e,r){this._context.moveTo(r,e)},closePath:function(){this._context.closePath()},lineTo:function(e,r){this._context.lineTo(r,e)},bezierCurveTo:function(e,r,t,n,a,o){this._context.bezierCurveTo(r,e,n,t,o,a)}};function monotoneX(e){return new MonotoneX(e)}function monotoneY(e){return new MonotoneY(e)}function Natural(e){this._context=e}Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,r=this._y,t=e.length;if(t)if(this._line?this._context.lineTo(e[0],r[0]):this._context.moveTo(e[0],r[0]),t===2)this._context.lineTo(e[1],r[1]);else for(var n=controlPoints(e),a=controlPoints(r),o=0,i=1;i<t;++o,++i)this._context.bezierCurveTo(n[0][o],a[0][o],n[1][o],a[1][o],e[i],r[i]);(this._line||this._line!==0&&t===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,r){this._x.push(+e),this._y.push(+r)}};function controlPoints(e){var r,t=e.length-1,n,a=new Array(t),o=new Array(t),i=new Array(t);for(a[0]=0,o[0]=2,i[0]=e[0]+2*e[1],r=1;r<t-1;++r)a[r]=1,o[r]=4,i[r]=4*e[r]+2*e[r+1];for(a[t-1]=2,o[t-1]=7,i[t-1]=8*e[t-1]+e[t],r=1;r<t;++r)n=a[r]/o[r-1],o[r]-=n,i[r]-=n*i[r-1];for(a[t-1]=i[t-1]/o[t-1],r=t-2;r>=0;--r)a[r]=(i[r]-a[r+1])/o[r];for(o[t-1]=(e[t]+a[t-1])/2,r=0;r<t-1;++r)o[r]=2*e[r+1]-a[r+1];return[a,o]}function curveNatural(e){return new Natural(e)}function Step(e,r){this._context=e,this._t=r}Step.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,r),this._context.lineTo(e,r);else{var t=this._x*(1-this._t)+e*this._t;this._context.lineTo(t,this._y),this._context.lineTo(t,r)}break}}this._x=e,this._y=r}};function curveStep(e){return new Step(e,.5)}function stepAfter(e){return new Step(e,1)}function none$1(e,r){if((i=e.length)>1)for(var t=1,n,a,o=e[r[0]],i,l=o.length;t<i;++t)for(a=o,o=e[r[t]],n=0;n<l;++n)o[n][1]+=o[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function stackOrderNone(e){for(var r=e.length,t=new Array(r);--r>=0;)t[r]=r;return t}function stackValue(e,r){return e[r]}function stackSeries(e){const r=[];return r.key=e,r}function stack(){var e=constant$2([]),r=stackOrderNone,t=none$1,n=stackValue;function a(o){var i=Array.from(e.apply(this,arguments),stackSeries),l,c=i.length,d=-1,f;for(const p of o)for(l=0,++d;l<c;++l)(i[l][d]=[0,+n(p,i[l].key,d,o)]).data=p;for(l=0,f=array$1(r(i));l<c;++l)i[f[l]].index=l;return t(i,f),i}return a.keys=function(o){return arguments.length?(e=typeof o=="function"?o:constant$2(Array.from(o)),a):e},a.value=function(o){return arguments.length?(n=typeof o=="function"?o:constant$2(+o),a):n},a.order=function(o){return arguments.length?(r=o==null?stackOrderNone:typeof o=="function"?o:constant$2(Array.from(o)),a):r},a.offset=function(o){return arguments.length?(t=o??none$1,a):t},a}const defaultConfig={size:{width:500,height:400},margin:{top:0,right:0,bottom:0,left:0},direction:"horizontal",axis:{primary:{domain:["dataMin","dataMax"],type:"band"},secondary:{domain:["dataMin","dataMax"],type:"linear"}},axisSpace:{x:40,y:20}};class Chart{constructor(r,t){this.data=r,this.layers=[],this.config=mergeDeepLeft$1(pickBy$1(n=>n!==void 0,t),defaultConfig),this.scales=new Scales(this.config.axis),this.updates=vue.ref(0)}get bandScale(){return this.scales.primary.type==="band"?this.scales.primary:this.scales.secondary.type==="band"?this.scales.secondary:null}get canvas(){const{margin:r,size:t}=this.config,n=this.config.axisSpace;return this.config.axis.primary.hide&&(n.y=0),this.config.axis.secondary.hide&&(n.x=0),{x:r.left+n.x,y:r.top,width:t.width-r.right,height:t.height-r.bottom-n.y}}getStackedData(r){return stack().keys(r).order(stackOrderNone)(this.data)}changeData(r){this.data=r,this.update("data")}changeConfig(r){this.config=mergeDeepLeft$1(pickBy$1(t=>t!==void 0,r),this.config),this.scales.changeConfig(this.config.axis),this.update("config")}addLayer(r){this.layers.push(r),this.update("layers")}removeLayer(r){this.layers=this.layers.filter(t=>t.id!==r),this.update("layers")}getLayers(r){return r?this.layers.filter(t=>t.type===r):this.layers}getData(r){return r.reduce((t,n)=>t.concat(getCol(n,this.data)),[])}getKeys(r=-1,t=null){const n=this.layers.filter(a=>t?a.type===t:!0).map(a=>a.dataKeys);return r===-1?n:getCol(r,n)}getStackedKeys(r=-1,t=null){const n=this.layers.filter(a=>t?a.type===t&&a.props.stacked:a.props.stacked).map(a=>a.dataKeys);return r===-1?n:getCol(r,n)}update(r){const t=this.getStackedData(this.getStackedKeys(1));this.scales.updateRange(this.canvas,this.config.direction),this.scales.updateDomain(this.data,t,this.getKeys()),this.updates.value+=1}}var xhtml="http://www.w3.org/1999/xhtml",namespaces={svg:"http://www.w3.org/2000/svg",xhtml,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function namespace(e){var r=e+="",t=r.indexOf(":");return t>=0&&(r=e.slice(0,t))!=="xmlns"&&(e=e.slice(t+1)),namespaces.hasOwnProperty(r)?{space:namespaces[r],local:e}:e}function creatorInherit(e){return function(){var r=this.ownerDocument,t=this.namespaceURI;return t===xhtml&&r.documentElement.namespaceURI===xhtml?r.createElement(e):r.createElementNS(t,e)}}function creatorFixed(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function creator(e){var r=namespace(e);return(r.local?creatorFixed:creatorInherit)(r)}function none(){}function selector(e){return e==null?none:function(){return this.querySelector(e)}}function selection_select(e){typeof e!="function"&&(e=selector(e));for(var r=this._groups,t=r.length,n=new Array(t),a=0;a<t;++a)for(var o=r[a],i=o.length,l=n[a]=new Array(i),c,d,f=0;f<i;++f)(c=o[f])&&(d=e.call(c,c.__data__,f,o))&&("__data__"in c&&(d.__data__=c.__data__),l[f]=d);return new Selection(n,this._parents)}function array(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function empty(){return[]}function selectorAll(e){return e==null?empty:function(){return this.querySelectorAll(e)}}function arrayAll(e){return function(){return array(e.apply(this,arguments))}}function selection_selectAll(e){typeof e=="function"?e=arrayAll(e):e=selectorAll(e);for(var r=this._groups,t=r.length,n=[],a=[],o=0;o<t;++o)for(var i=r[o],l=i.length,c,d=0;d<l;++d)(c=i[d])&&(n.push(e.call(c,c.__data__,d,i)),a.push(c));return new Selection(n,a)}function matcher(e){return function(){return this.matches(e)}}function childMatcher(e){return function(r){return r.matches(e)}}var find=Array.prototype.find;function childFind(e){return function(){return find.call(this.children,e)}}function childFirst(){return this.firstElementChild}function selection_selectChild(e){return this.select(e==null?childFirst:childFind(typeof e=="function"?e:childMatcher(e)))}var filter=Array.prototype.filter;function children(){return Array.from(this.children)}function childrenFilter(e){return function(){return filter.call(this.children,e)}}function selection_selectChildren(e){return this.selectAll(e==null?children:childrenFilter(typeof e=="function"?e:childMatcher(e)))}function selection_filter(e){typeof e!="function"&&(e=matcher(e));for(var r=this._groups,t=r.length,n=new Array(t),a=0;a<t;++a)for(var o=r[a],i=o.length,l=n[a]=[],c,d=0;d<i;++d)(c=o[d])&&e.call(c,c.__data__,d,o)&&l.push(c);return new Selection(n,this._parents)}function sparse(e){return new Array(e.length)}function selection_enter(){return new Selection(this._enter||this._groups.map(sparse),this._parents)}function EnterNode(e,r){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=r}EnterNode.prototype={constructor:EnterNode,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,r){return this._parent.insertBefore(e,r)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function constant$1(e){return function(){return e}}function bindIndex(e,r,t,n,a,o){for(var i=0,l,c=r.length,d=o.length;i<d;++i)(l=r[i])?(l.__data__=o[i],n[i]=l):t[i]=new EnterNode(e,o[i]);for(;i<c;++i)(l=r[i])&&(a[i]=l)}function bindKey(e,r,t,n,a,o,i){var l,c,d=new Map,f=r.length,p=o.length,v=new Array(f),m;for(l=0;l<f;++l)(c=r[l])&&(v[l]=m=i.call(c,c.__data__,l,r)+"",d.has(m)?a[l]=c:d.set(m,c));for(l=0;l<p;++l)m=i.call(e,o[l],l,o)+"",(c=d.get(m))?(n[l]=c,c.__data__=o[l],d.delete(m)):t[l]=new EnterNode(e,o[l]);for(l=0;l<f;++l)(c=r[l])&&d.get(v[l])===c&&(a[l]=c)}function datum(e){return e.__data__}function selection_data(e,r){if(!arguments.length)return Array.from(this,datum);var t=r?bindKey:bindIndex,n=this._parents,a=this._groups;typeof e!="function"&&(e=constant$1(e));for(var o=a.length,i=new Array(o),l=new Array(o),c=new Array(o),d=0;d<o;++d){var f=n[d],p=a[d],v=p.length,m=arraylike(e.call(f,f&&f.__data__,d,n)),g=m.length,_=l[d]=new Array(g),S=i[d]=new Array(g),C=c[d]=new Array(v);t(f,p,_,S,C,m,r);for(var w=0,E=0,$,T;w<g;++w)if($=_[w]){for(w>=E&&(E=w+1);!(T=S[E])&&++E<g;);$._next=T||null}}return i=new Selection(i,n),i._enter=l,i._exit=c,i}function arraylike(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function selection_exit(){return new Selection(this._exit||this._groups.map(sparse),this._parents)}function selection_join(e,r,t){var n=this.enter(),a=this,o=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),r!=null&&(a=r(a),a&&(a=a.selection())),t==null?o.remove():t(o),n&&a?n.merge(a).order():a}function selection_merge(e){for(var r=e.selection?e.selection():e,t=this._groups,n=r._groups,a=t.length,o=n.length,i=Math.min(a,o),l=new Array(a),c=0;c<i;++c)for(var d=t[c],f=n[c],p=d.length,v=l[c]=new Array(p),m,g=0;g<p;++g)(m=d[g]||f[g])&&(v[g]=m);for(;c<a;++c)l[c]=t[c];return new Selection(l,this._parents)}function selection_order(){for(var e=this._groups,r=-1,t=e.length;++r<t;)for(var n=e[r],a=n.length-1,o=n[a],i;--a>=0;)(i=n[a])&&(o&&i.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(i,o),o=i);return this}function selection_sort(e){e||(e=ascending);function r(p,v){return p&&v?e(p.__data__,v.__data__):!p-!v}for(var t=this._groups,n=t.length,a=new Array(n),o=0;o<n;++o){for(var i=t[o],l=i.length,c=a[o]=new Array(l),d,f=0;f<l;++f)(d=i[f])&&(c[f]=d);c.sort(r)}return new Selection(a,this._parents).order()}function ascending(e,r){return e<r?-1:e>r?1:e>=r?0:NaN}function selection_call(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function selection_nodes(){return Array.from(this)}function selection_node(){for(var e=this._groups,r=0,t=e.length;r<t;++r)for(var n=e[r],a=0,o=n.length;a<o;++a){var i=n[a];if(i)return i}return null}function selection_size(){let e=0;for(const r of this)++e;return e}function selection_empty(){return!this.node()}function selection_each(e){for(var r=this._groups,t=0,n=r.length;t<n;++t)for(var a=r[t],o=0,i=a.length,l;o<i;++o)(l=a[o])&&e.call(l,l.__data__,o,a);return this}function attrRemove(e){return function(){this.removeAttribute(e)}}function attrRemoveNS(e){return function(){this.removeAttributeNS(e.space,e.local)}}function attrConstant(e,r){return function(){this.setAttribute(e,r)}}function attrConstantNS(e,r){return function(){this.setAttributeNS(e.space,e.local,r)}}function attrFunction(e,r){return function(){var t=r.apply(this,arguments);t==null?this.removeAttribute(e):this.setAttribute(e,t)}}function attrFunctionNS(e,r){return function(){var t=r.apply(this,arguments);t==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}}function selection_attr(e,r){var t=namespace(e);if(arguments.length<2){var n=this.node();return t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}return this.each((r==null?t.local?attrRemoveNS:attrRemove:typeof r=="function"?t.local?attrFunctionNS:attrFunction:t.local?attrConstantNS:attrConstant)(t,r))}function defaultView(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function styleRemove(e){return function(){this.style.removeProperty(e)}}function styleConstant(e,r,t){return function(){this.style.setProperty(e,r,t)}}function styleFunction(e,r,t){return function(){var n=r.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,t)}}function selection_style(e,r,t){return arguments.length>1?this.each((r==null?styleRemove:typeof r=="function"?styleFunction:styleConstant)(e,r,t??"")):styleValue(this.node(),e)}function styleValue(e,r){return e.style.getPropertyValue(r)||defaultView(e).getComputedStyle(e,null).getPropertyValue(r)}function propertyRemove(e){return function(){delete this[e]}}function propertyConstant(e,r){return function(){this[e]=r}}function propertyFunction(e,r){return function(){var t=r.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function selection_property(e,r){return arguments.length>1?this.each((r==null?propertyRemove:typeof r=="function"?propertyFunction:propertyConstant)(e,r)):this.node()[e]}function classArray(e){return e.trim().split(/^|\s+/)}function classList(e){return e.classList||new ClassList(e)}function ClassList(e){this._node=e,this._names=classArray(e.getAttribute("class")||"")}ClassList.prototype={add:function(e){var r=this._names.indexOf(e);r<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var r=this._names.indexOf(e);r>=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function classedAdd(e,r){for(var t=classList(e),n=-1,a=r.length;++n<a;)t.add(r[n])}function classedRemove(e,r){for(var t=classList(e),n=-1,a=r.length;++n<a;)t.remove(r[n])}function classedTrue(e){return function(){classedAdd(this,e)}}function classedFalse(e){return function(){classedRemove(this,e)}}function classedFunction(e,r){return function(){(r.apply(this,arguments)?classedAdd:classedRemove)(this,e)}}function selection_classed(e,r){var t=classArray(e+"");if(arguments.length<2){for(var n=classList(this.node()),a=-1,o=t.length;++a<o;)if(!n.contains(t[a]))return!1;return!0}return this.each((typeof r=="function"?classedFunction:r?classedTrue:classedFalse)(t,r))}function textRemove(){this.textContent=""}function textConstant(e){return function(){this.textContent=e}}function textFunction(e){return function(){var r=e.apply(this,arguments);this.textContent=r??""}}function selection_text(e){return arguments.length?this.each(e==null?textRemove:(typeof e=="function"?textFunction:textConstant)(e)):this.node().textContent}function htmlRemove(){this.innerHTML=""}function htmlConstant(e){return function(){this.innerHTML=e}}function htmlFunction(e){return function(){var r=e.apply(this,arguments);this.innerHTML=r??""}}function selection_html(e){return arguments.length?this.each(e==null?htmlRemove:(typeof e=="function"?htmlFunction:htmlConstant)(e)):this.node().innerHTML}function raise(){this.nextSibling&&this.parentNode.appendChild(this)}function selection_raise(){return this.each(raise)}function lower(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function selection_lower(){return this.each(lower)}function selection_append(e){var r=typeof e=="function"?e:creator(e);return this.select(function(){return this.appendChild(r.apply(this,arguments))})}function constantNull(){return null}function selection_insert(e,r){var t=typeof e=="function"?e:creator(e),n=r==null?constantNull:typeof r=="function"?r:selector(r);return this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})}function remove(){var e=this.parentNode;e&&e.removeChild(this)}function selection_remove(){return this.each(remove)}function selection_cloneShallow(){var e=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function selection_cloneDeep(){var e=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function selection_clone(e){return this.select(e?selection_cloneDeep:selection_cloneShallow)}function selection_datum(e){return arguments.length?this.property("__data__",e):this.node().__data__}function contextListener(e){return function(r){e.call(this,r,this.__data__)}}function parseTypenames(e){return e.trim().split(/^|\s+/).map(function(r){var t="",n=r.indexOf(".");return n>=0&&(t=r.slice(n+1),r=r.slice(0,n)),{type:r,name:t}})}function onRemove(e){return function(){var r=this.__on;if(r){for(var t=0,n=-1,a=r.length,o;t<a;++t)o=r[t],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):r[++n]=o;++n?r.length=n:delete this.__on}}}function onAdd(e,r,t){return function(){var n=this.__on,a,o=contextListener(r);if(n){for(var i=0,l=n.length;i<l;++i)if((a=n[i]).type===e.type&&a.name===e.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=o,a.options=t),a.value=r;return}}this.addEventListener(e.type,o,t),a={type:e.type,name:e.name,value:r,listener:o,options:t},n?n.push(a):this.__on=[a]}}function selection_on(e,r,t){var n=parseTypenames(e+""),a,o=n.length,i;if(arguments.length<2){var l=this.node().__on;if(l){for(var c=0,d=l.length,f;c<d;++c)for(a=0,f=l[c];a<o;++a)if((i=n[a]).type===f.type&&i.name===f.name)return f.value}return}for(l=r?onAdd:onRemove,a=0;a<o;++a)this.each(l(n[a],r,t));return this}function dispatchEvent(e,r,t){var n=defaultView(e),a=n.CustomEvent;typeof a=="function"?a=new a(r,t):(a=n.document.createEvent("Event"),t?(a.initEvent(r,t.bubbles,t.cancelable),a.detail=t.detail):a.initEvent(r,!1,!1)),e.dispatchEvent(a)}function dispatchConstant(e,r){return function(){return dispatchEvent(this,e,r)}}function dispatchFunction(e,r){return function(){return dispatchEvent(this,e,r.apply(this,arguments))}}function selection_dispatch(e,r){return this.each((typeof r=="function"?dispatchFunction:dispatchConstant)(e,r))}function*selection_iterator(){for(var e=this._groups,r=0,t=e.length;r<t;++r)for(var n=e[r],a=0,o=n.length,i;a<o;++a)(i=n[a])&&(yield i)}var root=[null];function Selection(e,r){this._groups=e,this._parents=r}function selection_selection(){return this}Selection.prototype={constructor:Selection,select:selection_select,selectAll:selection_selectAll,selectChild:selection_selectChild,selectChildren:selection_selectChildren,filter:selection_filter,data:selection_data,enter:selection_enter,exit:selection_exit,join:selection_join,merge:selection_merge,selection:selection_selection,order:selection_order,sort:selection_sort,call:selection_call,nodes:selection_nodes,node:selection_node,size:selection_size,empty:selection_empty,each:selection_each,attr:selection_attr,style:selection_style,property:selection_property,classed:selection_classed,text:selection_text,html:selection_html,raise:selection_raise,lower:selection_lower,append:selection_append,insert:selection_insert,remove:selection_remove,clone:selection_clone,datum:selection_datum,on:selection_on,dispatch:selection_dispatch,[Symbol.iterator]:selection_iterator};function select(e){return typeof e=="string"?new Selection([[document.querySelector(e)]],[document.documentElement]):new Selection([[e]],root)}function sourceEvent(e){let r;for(;r=e.sourceEvent;)e=r;return e}function pointer(e,r){if(e=sourceEvent(e),r===void 0&&(r=e.currentTarget),r){var t=r.ownerSVGElement||r;if(t.createSVGPoint){var n=t.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n=n.matrixTransform(r.getScreenCTM().inverse()),[n.x,n.y]}if(r.getBoundingClientRect){var a=r.getBoundingClientRect();return[e.clientX-a.left-r.clientLeft,e.clientY-a.top-r.clientTop]}}return[e.pageX,e.pageY]}function identity(e){return e}var top=1,right=2,bottom=3,left=4,epsilon=1e-6;function translateX(e){return"translate("+e+",0)"}function translateY(e){return"translate(0,"+e+")"}function number(e){return r=>+e(r)}function center(e,r){return r=Math.max(0,e.bandwidth()-r*2)/2,e.round()&&(r=Math.round(r)),t=>+e(t)+r}function entering(){return!this.__axis}function axis(e,r){var t=[],n=null,a=null,o=6,i=6,l=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,d=e===top||e===left?-1:1,f=e===left||e===right?"x":"y",p=e===top||e===bottom?translateX:translateY;function v(m){var g=n??(r.ticks?r.ticks.apply(r,t):r.domain()),_=a??(r.tickFormat?r.tickFormat.apply(r,t):identity),S=Math.max(o,0)+l,C=r.range(),w=+C[0]+c,E=+C[C.length-1]+c,$=(r.bandwidth?center:number)(r.copy(),c),T=m.selection?m.selection():m,B=T.selectAll(".domain").data([null]),R=T.selectAll(".tick").data(g,r).order(),L=R.exit(),te=R.enter().append("g").attr("class","tick"),oe=R.select("line"),Q=R.select("text");B=B.merge(B.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),R=R.merge(te),oe=oe.merge(te.append("line").attr("stroke","currentColor").attr(f+"2",d*o)),Q=Q.merge(te.append("text").attr("fill","currentColor").attr(f,d*S).attr("dy",e===top?"0em":e===bottom?"0.71em":"0.32em")),m!==T&&(B=B.transition(m),R=R.transition(m),oe=oe.transition(m),Q=Q.transition(m),L=L.transition(m).attr("opacity",epsilon).attr("transform",function(ce){return isFinite(ce=$(ce))?p(ce+c):this.getAttribute("transform")}),te.attr("opacity",epsilon).attr("transform",function(ce){var Y=this.parentNode.__axis;return p((Y&&isFinite(Y=Y(ce))?Y:$(ce))+c)})),L.remove(),B.attr("d",e===left||e===right?i?"M"+d*i+","+w+"H"+c+"V"+E+"H"+d*i:"M"+c+","+w+"V"+E:i?"M"+w+","+d*i+"V"+c+"H"+E+"V"+d*i:"M"+w+","+c+"H"+E),R.attr("opacity",1).attr("transform",function(ce){return p($(ce)+c)}),oe.attr(f+"2",d*o),Q.attr(f,d*S).text(_),T.filter(entering).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===right?"start":e===left?"end":"middle"),T.each(function(){this.__axis=$})}return v.scale=function(m){return arguments.length?(r=m,v):r},v.ticks=function(){return t=Array.from(arguments),v},v.tickArguments=function(m){return arguments.length?(t=m==null?[]:Array.from(m),v):t.slice()},v.tickValues=function(m){return arguments.length?(n=m==null?null:Array.from(m),v):n&&n.slice()},v.tickFormat=function(m){return arguments.length?(a=m,v):a},v.tickSize=function(m){return arguments.length?(o=i=+m,v):o},v.tickSizeInner=function(m){return arguments.length?(o=+m,v):o},v.tickSizeOuter=function(m){return arguments.length?(i=+m,v):i},v.tickPadding=function(m){return arguments.length?(l=+m,v):l},v.offset=function(m){return arguments.length?(c=+m,v):c},v}function axisBottom(e){return axis(bottom,e)}function axisLeft(e){return axis(left,e)}var useChart=()=>vue.inject("chart"),usePoints=(e,r={stacked:!1,type:"line"})=>{const t=vue.ref([]),n=useChart(),{stacked:a,type:o}=r;function i(c,d){const{primary:f,secondary:p}=n.scales;return n.config.direction==="horizontal"?d.map(m=>({x:f.mapOne(m.data[c]),y:p.mapOne(m[1]),props:{values:[...m],data:m.data}})).filter(m=>!isNaN(m.x)&&!isNaN(m.y)):n.config.direction==="vertical"?d.map(v=>({x:p.mapOne(v[1]),y:f.mapOne(v.data[c]),props:{values:[...v],data:v.data}})).filter(v=>!isNaN(v.x)&&!isNaN(v.y)):[]}function l(){const c=n.getStackedKeys(1,o),[d,f]=e,v=n.getStackedData(a?c:[e[1]]).find(m=>m.key===f);v&&(t.value=i(d,v))}return vue.watch(n.updates,()=>{l()},{immediate:!0}),{points:t}},useMouse=()=>vue.inject("chartMouse",{index:-1,position:{x:0,y:0},hover:!1}),useBars=(e,r={maxWidth:-1,gap:5,stacked:!1,type:"bar"})=>{const t=vue.ref([]),n=useChart(),{stacked:a,type:o,gap:i}=r;function l(){const{primary:m,secondary:g}=n.scales,_=m.type==="band"?m:g,S=m.type==="band"?g:m;return{bandScale:_,linearScale:S}}function c(){if(a)return 0;const g=n.getLayers(o).findIndex(_=>_.dataKeys.join(",")===e.join(","));return g>-1?g:0}function d(){const{bandScale:m}=l(),g=r.maxWidth>-1?Math.min(m.bandwidth()-i,r.maxWidth):m.bandwidth()-i,_=n.getLayers(o);return _.length>0&&!a?g/_.length:g}function f(){if(a)return 0;const{bandScale:m}=l(),g=m.bandwidth()-i,_=n.getLayers(o).length*d();return(g-_)/2}function p(m,g){const{bandScale:_,linearScale:S}=l(),C=c(),w=d(),E=f();return g.map($=>{const T={x:0,y:0,width:0,height:0,props:{values:[...$],data:$.data}},B=_.scale($.data[m]),[R,L]=S.map($);return n.config.direction==="horizontal"?(T.y=Math.min(R,L),T.height=Math.abs(R-L),T.x=E+B+C*w+i/2,T.width=w):n.config.direction==="vertical"&&(T.x=Math.min(R,L),T.width=Math.abs(R-L),T.y=E+B+C*w+i/2,T.height=w),T})}function v(){const m=a?n.getStackedKeys(1,o):[e[1]],[g,_]=e,C=n.getStackedData(m).find(w=>w.key===_);C&&(t.value=p(g,C))}return vue.watch(n.updates,()=>{v()}),{bars:t}},useTooltip=()=>{const e=useMouse(),r=useChart(),t=vue.computed(()=>e.hover),n=vue.ref({x:0,y:0}),a=vue.ref({});return vue.watch(e,()=>{const{primary:o}=r.scales,i=r.getKeys(0),l=r.getData(i),[c]=o.map([l[e.index]]);c&&(r.config.direction==="horizontal"?n.value={x:c,y:e.position.y}:r.config.direction==="vertical"?n.value={x:e.position.x,y:c}:n.value={x:e.position.x,y:e.position.y});const d=r.data[e.index];d&&(a.value=Object.assign(Object.assign({},d),{idx:e.index}))}),{position:n,payload:a,show:t}},useResize=e=>{const r=vue.ref(0),t=vue.ref(0);let n=null,a=null;function o(l,c){r.value=l,t.value=c,a&&a()}function i(l){a=l}return vue.onMounted(()=>{n=new window.ResizeObserver(l=>{const c=l[0].contentRect.width,d=l[0].contentRect.height;o(c,d)}),n.observe(e.value)}),vue.onUnmounted(()=>{n.disconnect()}),{width:r,height:t,onResize:i}},script$d=vue.defineComponent({name:"Axis",props:{position:{type:String,default:"bottom"},rotate:{type:Boolean,default:!1},isPrimary:{type:Boolean,default:!1}},setup(e){const r=vue.ref(),t=useChart(),n=vue.computed(()=>e.position==="bottom"?axisBottom:axisLeft),a=vue.ref(t.canvas),o={ticks:5};function i(){if(t.data.length>0){const{primary:l,secondary:c}=t.scales,d=e.isPrimary?l:c,f=Object.assign({},e.isPrimary?l.config:c.config,o),p=n.value(d.scale);f.format&&p.tickFormat(f.format),f.ticks!==void 0&&p.ticks(f.ticks),f.tickValues!==void 0&&p.tickValues(f.tickValues),f.useConfig&&f.useConfig(p);const v=select(r.value).call(p);return e.position==="bottom"&&e.rotate&&v.selectAll("text").attr("y",0).attr("x",9).attr("dy",".35em").attr("transform","rotate(90)").style("text-anchor","start"),p}return null}return vue.watch(()=>e.isPrimary,()=>{i()}),vue.watch(t.updates,()=>{a.value=t.canvas,i()}),{el:r,canvas:a}}});const _hoisted_1$b$1=["transform"],_hoisted_2$8$1=["transform"];function render$d(e,r,t,n,a,o){return e.position==="bottom"?(vue.openBlock(),vue.createElementBlock("g",{key:0,class:vue.normalizeClass("layer-axis-x"),ref:"el",transform:`translate(0, ${e.canvas.height})`},null,8,_hoisted_1$b$1)):(vue.openBlock(),vue.createElementBlock("g",{key:1,class:vue.normalizeClass("layer-axis-y"),ref:"el",transform:`translate(${e.canvas.x}, 0)`},null,8,_hoisted_2$8$1))}script$d.render=render$d;script$d.__file="src/components/Axis/index.vue";var script$c=vue.defineComponent({name:"Chart",components:{Axis:script$d},props:{data:{type:Array,default:()=>[]},margin:{type:Object,default:()=>({top:0,right:0,bottom:0,left:0}),required:!1},size:{type:Object,default:()=>({width:500,height:400}),required:!1},direction:{type:String,default:"horizontal",required:!1},axis:{type:Object,required:!1},config:{type:Object,default:()=>({})}},setup(e){const r=vue.ref(null),t=vue.ref(),n=vue.ref(),a=vue.reactive({x:40,y:20}),o=new Chart(e.data,e.config),i=vue.computed(()=>e.axis&&e.axis.primary&&e.axis.primary.rotate),l=vue.computed(()=>e.axis&&e.axis.primary&&e.axis.primary.hide),c=vue.computed(()=>e.axis&&e.axis.secondary&&e.axis.secondary.hide),d=vue.reactive({index:-1,position:{x:0,y:0},hover:!1});vue.provide("chart",o),vue.provide("chartMouse",d),vue.watch(()=>e.data,()=>{o&&o.changeData(e.data)},{immediate:!0}),vue.watch(()=>e.config,()=>{o&&o.changeConfig(e.config)}),vue.watch(()=>[Object.assign({},a),e.direction,e.size,e.margin,e.axis],()=>{o&&o.changeConfig({axisSpace:Object.assign({},a),direction:e.direction,size:e.size,margin:e.margin,axis:e.axis})},{immediate:!0});const f=new ResizeObserver(m=>{for(const g of m)n.value&&g.target===n.value.$el?a.y=g.contentRect.height:t.value&&g.target===t.value.$el&&(a.x=g.contentRect.width)});vue.onMounted(()=>{n.value&&f.observe(n.value.$el),t.value&&f.observe(t.value.$el)}),vue.onUnmounted(()=>{f.disconnect()});function p(){e.config.controlHover!==!1&&(d.index=-1,d.hover=!1)}function v(m){if(e.config.controlHover===!1)return;d.hover=!0,d.position={x:pointer(m)[0],y:pointer(m)[1]};const{primary:g}=o.scales,_=o.getKeys(0),S=o.getData(_);if(o.config.direction==="horizontal")if(g.type==="band"){const C=g.bandwidth(),w=d.position.x-o.canvas.x;d.index=Math.round((w+C/2)/C)-1}else d.index=bisectCenter(S,g.scale.invert(d.position.x));else if(o.config.direction==="vertical")if(g.type==="band"){const C=g.bandwidth(),w=d.position.y-o.canvas.y;d.index=Math.round((w+C/2)/C)-1}else d.index=bisectCenter(S,g.scale.invert(d.position.y))}return{axBottomEl:n,axLeftEl:t,chartEl:r,hideX:l,hideY:c,rotateX:i,onMouseMove:v,onMouseOut:p}}});const _hoisted_1$a$1={class:"chart",ref:"chartEl"},_hoisted_2$7$1=["width","height","viewBox"],_hoisted_3$6$1={class:"layers"},_hoisted_4$3$1={class:"axis"},_hoisted_5$3$1={class:"widgets"};function render$c(e,r,t,n,a,o){const i=vue.resolveComponent("axis");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$a$1,[(vue.openBlock(),vue.createElementBlock("svg",{width:e.size.width,height:e.size.height,viewBox:`0 0 ${e.size.width} ${e.size.height}`,onPointermove:r[0]||(r[0]=(...l)=>e.onMouseMove&&e.onMouseMove(...l)),onPointerleave:r[1]||(r[1]=(...l)=>e.onMouseOut&&e.onMouseOut(...l))},[vue.createElementVNode("g",_hoisted_3$6$1,[vue.renderSlot(e.$slots,"layers")]),vue.createElementVNode("g",_hoisted_4$3$1,[e.hideX?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createBlock(i,{key:0,position:"bottom",ref:"axBottomEl",rotate:e.rotateX,isPrimary:e.direction==="horizontal"},null,8,["rotate","isPrimary"])),e.hideY?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createBlock(i,{key:1,position:"left",ref:"axLeftEl",isPrimary:e.direction==="vertical"},null,8,["isPrimary"]))])],40,_hoisted_2$7$1)),vue.createElementVNode("div",_hoisted_5$3$1,[vue.renderSlot(e.$slots,"widgets")])],512)}function styleInject(e,r){r===void 0&&(r={});var t=r.insertAt;if(!(!e||typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t==="top"&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var css_248z$1=`
138
+ `);return[yMin,yMax]}}class Scales{constructor(r){this.config=r,this.primary=new Scale(r.primary),this.secondary=new Scale(r.secondary)}changeConfig(r){this.config=r,this.primary.changeConfig(r.primary),this.secondary.changeConfig(r.secondary)}updateRange(r,t){t==="horizontal"?(this.primary.updateRange([r.x,r.width]),this.secondary.updateRange([r.height,r.y])):t==="vertical"&&(this.primary.updateRange([r.y,r.height]),this.secondary.updateRange([r.x,r.width]))}updateDomain(r,t,n){this.primary.updateDomain(r,t,getCol(0,n)),this.secondary.updateDomain(r,t,getCol(1,n))}}function constant$2(e){return function(){return e}}const abs=Math.abs,atan2=Math.atan2,cos=Math.cos,max=Math.max,min=Math.min,sin=Math.sin,sqrt=Math.sqrt,epsilon$2=1e-12,pi$1=Math.PI,halfPi=pi$1/2,tau$1=2*pi$1;function acos(e){return e>1?0:e<-1?pi$1:Math.acos(e)}function asin(e){return e>=1?halfPi:e<=-1?-halfPi:Math.asin(e)}const pi=Math.PI,tau=2*pi,epsilon$1=1e-6,tauEpsilon=tau-epsilon$1;function append(e){this._+=e[0];for(let r=1,t=e.length;r<t;++r)this._+=arguments[r]+e[r]}function appendRound(e){let r=Math.floor(e);if(!(r>=0))throw new Error(`invalid digits: ${e}`);if(r>15)return append;const t=10**r;return function(n){this._+=n[0];for(let a=1,o=n.length;a<o;++a)this._+=Math.round(arguments[a]*t)/t+n[a]}}class Path{constructor(r){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=r==null?append:appendRound(r)}moveTo(r,t){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(r,t){this._append`L${this._x1=+r},${this._y1=+t}`}quadraticCurveTo(r,t,n,a){this._append`Q${+r},${+t},${this._x1=+n},${this._y1=+a}`}bezierCurveTo(r,t,n,a,o,i){this._append`C${+r},${+t},${+n},${+a},${this._x1=+o},${this._y1=+i}`}arcTo(r,t,n,a,o){if(r=+r,t=+t,n=+n,a=+a,o=+o,o<0)throw new Error(`negative radius: ${o}`);let i=this._x1,l=this._y1,c=n-r,d=a-t,f=i-r,p=l-t,v=f*f+p*p;if(this._x1===null)this._append`M${this._x1=r},${this._y1=t}`;else if(v>epsilon$1)if(!(Math.abs(p*c-d*f)>epsilon$1)||!o)this._append`L${this._x1=r},${this._y1=t}`;else{let m=n-i,g=a-l,_=c*c+d*d,S=m*m+g*g,C=Math.sqrt(_),w=Math.sqrt(v),E=o*Math.tan((pi-Math.acos((_+v-S)/(2*C*w)))/2),$=E/w,T=E/C;Math.abs($-1)>epsilon$1&&this._append`L${r+$*f},${t+$*p}`,this._append`A${o},${o},0,0,${+(p*m>f*g)},${this._x1=r+T*c},${this._y1=t+T*d}`}}arc(r,t,n,a,o,i){if(r=+r,t=+t,n=+n,i=!!i,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(a),c=n*Math.sin(a),d=r+l,f=t+c,p=1^i,v=i?a-o:o-a;this._x1===null?this._append`M${d},${f}`:(Math.abs(this._x1-d)>epsilon$1||Math.abs(this._y1-f)>epsilon$1)&&this._append`L${d},${f}`,n&&(v<0&&(v=v%tau+tau),v>tauEpsilon?this._append`A${n},${n},0,1,${p},${r-l},${t-c}A${n},${n},0,1,${p},${this._x1=d},${this._y1=f}`:v>epsilon$1&&this._append`A${n},${n},0,${+(v>=pi)},${p},${this._x1=r+n*Math.cos(o)},${this._y1=t+n*Math.sin(o)}`)}rect(r,t,n,a){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+t}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}}function withPath(e){let r=3;return e.digits=function(t){if(!arguments.length)return r;if(t==null)r=null;else{const n=Math.floor(t);if(!(n>=0))throw new RangeError(`invalid digits: ${t}`);r=n}return e},()=>new Path(r)}function arcInnerRadius(e){return e.innerRadius}function arcOuterRadius(e){return e.outerRadius}function arcStartAngle(e){return e.startAngle}function arcEndAngle(e){return e.endAngle}function arcPadAngle(e){return e&&e.padAngle}function intersect(e,r,t,n,a,o,i,l){var c=t-e,d=n-r,f=i-a,p=l-o,v=p*c-f*d;if(!(v*v<epsilon$2))return v=(f*(r-o)-p*(e-a))/v,[e+v*c,r+v*d]}function cornerTangents(e,r,t,n,a,o,i){var l=e-t,c=r-n,d=(i?o:-o)/sqrt(l*l+c*c),f=d*c,p=-d*l,v=e+f,m=r+p,g=t+f,_=n+p,S=(v+g)/2,C=(m+_)/2,w=g-v,E=_-m,$=w*w+E*E,T=a-o,B=v*_-g*m,R=(E<0?-1:1)*sqrt(max(0,T*T*$-B*B)),L=(B*E-w*R)/$,te=(-B*w-E*R)/$,oe=(B*E+w*R)/$,Q=(-B*w+E*R)/$,ce=L-S,J=te-C,ne=oe-S,ge=Q-C;return ce*ce+J*J>ne*ne+ge*ge&&(L=oe,te=Q),{cx:L,cy:te,x01:-f,y01:-p,x11:L*(a/T-1),y11:te*(a/T-1)}}function arc(){var e=arcInnerRadius,r=arcOuterRadius,t=constant$2(0),n=null,a=arcStartAngle,o=arcEndAngle,i=arcPadAngle,l=null,c=withPath(d);function d(){var f,p,v=+e.apply(this,arguments),m=+r.apply(this,arguments),g=a.apply(this,arguments)-halfPi,_=o.apply(this,arguments)-halfPi,S=abs(_-g),C=_>g;if(l||(l=f=c()),m<v&&(p=m,m=v,v=p),!(m>epsilon$2))l.moveTo(0,0);else if(S>tau$1-epsilon$2)l.moveTo(m*cos(g),m*sin(g)),l.arc(0,0,m,g,_,!C),v>epsilon$2&&(l.moveTo(v*cos(_),v*sin(_)),l.arc(0,0,v,_,g,C));else{var w=g,E=_,$=g,T=_,B=S,R=S,L=i.apply(this,arguments)/2,te=L>epsilon$2&&(n?+n.apply(this,arguments):sqrt(v*v+m*m)),oe=min(abs(m-v)/2,+t.apply(this,arguments)),Q=oe,ce=oe,J,ne;if(te>epsilon$2){var ge=asin(te/v*sin(L)),me=asin(te/m*sin(L));(B-=ge*2)>epsilon$2?(ge*=C?1:-1,$+=ge,T-=ge):(B=0,$=T=(g+_)/2),(R-=me*2)>epsilon$2?(me*=C?1:-1,w+=me,E-=me):(R=0,w=E=(g+_)/2)}var de=m*cos(w),A=m*sin(w),F=v*cos(T),W=v*sin(T);if(oe>epsilon$2){var X=m*cos(E),fe=m*sin(E),O=v*cos($),I=v*sin($),U;if(S<pi$1)if(U=intersect(de,A,O,I,X,fe,F,W)){var ae=de-U[0],ee=A-U[1],se=X-U[0],le=fe-U[1],ie=1/sin(acos((ae*se+ee*le)/(sqrt(ae*ae+ee*ee)*sqrt(se*se+le*le)))/2),ve=sqrt(U[0]*U[0]+U[1]*U[1]);Q=min(oe,(v-ve)/(ie-1)),ce=min(oe,(m-ve)/(ie+1))}else Q=ce=0}R>epsilon$2?ce>epsilon$2?(J=cornerTangents(O,I,de,A,m,ce,C),ne=cornerTangents(X,fe,F,W,m,ce,C),l.moveTo(J.cx+J.x01,J.cy+J.y01),ce<oe?l.arc(J.cx,J.cy,ce,atan2(J.y01,J.x01),atan2(ne.y01,ne.x01),!C):(l.arc(J.cx,J.cy,ce,atan2(J.y01,J.x01),atan2(J.y11,J.x11),!C),l.arc(0,0,m,atan2(J.cy+J.y11,J.cx+J.x11),atan2(ne.cy+ne.y11,ne.cx+ne.x11),!C),l.arc(ne.cx,ne.cy,ce,atan2(ne.y11,ne.x11),atan2(ne.y01,ne.x01),!C))):(l.moveTo(de,A),l.arc(0,0,m,w,E,!C)):l.moveTo(de,A),!(v>epsilon$2)||!(B>epsilon$2)?l.lineTo(F,W):Q>epsilon$2?(J=cornerTangents(F,W,X,fe,v,-Q,C),ne=cornerTangents(de,A,O,I,v,-Q,C),l.lineTo(J.cx+J.x01,J.cy+J.y01),Q<oe?l.arc(J.cx,J.cy,Q,atan2(J.y01,J.x01),atan2(ne.y01,ne.x01),!C):(l.arc(J.cx,J.cy,Q,atan2(J.y01,J.x01),atan2(J.y11,J.x11),!C),l.arc(0,0,v,atan2(J.cy+J.y11,J.cx+J.x11),atan2(ne.cy+ne.y11,ne.cx+ne.x11),C),l.arc(ne.cx,ne.cy,Q,atan2(ne.y11,ne.x11),atan2(ne.y01,ne.x01),!C))):l.arc(0,0,v,T,$,C)}if(l.closePath(),f)return l=null,f+""||null}return d.centroid=function(){var f=(+e.apply(this,arguments)+ +r.apply(this,arguments))/2,p=(+a.apply(this,arguments)+ +o.apply(this,arguments))/2-pi$1/2;return[cos(p)*f,sin(p)*f]},d.innerRadius=function(f){return arguments.length?(e=typeof f=="function"?f:constant$2(+f),d):e},d.outerRadius=function(f){return arguments.length?(r=typeof f=="function"?f:constant$2(+f),d):r},d.cornerRadius=function(f){return arguments.length?(t=typeof f=="function"?f:constant$2(+f),d):t},d.padRadius=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:constant$2(+f),d):n},d.startAngle=function(f){return arguments.length?(a=typeof f=="function"?f:constant$2(+f),d):a},d.endAngle=function(f){return arguments.length?(o=typeof f=="function"?f:constant$2(+f),d):o},d.padAngle=function(f){return arguments.length?(i=typeof f=="function"?f:constant$2(+f),d):i},d.context=function(f){return arguments.length?(l=f??null,d):l},d}function array$1(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Linear(e){this._context=e}Linear.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:this._context.lineTo(e,r);break}}};function curveLinear(e){return new Linear(e)}function x(e){return e[0]}function y(e){return e[1]}function line(e,r){var t=constant$2(!0),n=null,a=curveLinear,o=null,i=withPath(l);e=typeof e=="function"?e:e===void 0?x:constant$2(e),r=typeof r=="function"?r:r===void 0?y:constant$2(r);function l(c){var d,f=(c=array$1(c)).length,p,v=!1,m;for(n==null&&(o=a(m=i())),d=0;d<=f;++d)!(d<f&&t(p=c[d],d,c))===v&&((v=!v)?o.lineStart():o.lineEnd()),v&&o.point(+e(p,d,c),+r(p,d,c));if(m)return o=null,m+""||null}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:constant$2(+c),l):e},l.y=function(c){return arguments.length?(r=typeof c=="function"?c:constant$2(+c),l):r},l.defined=function(c){return arguments.length?(t=typeof c=="function"?c:constant$2(!!c),l):t},l.curve=function(c){return arguments.length?(a=c,n!=null&&(o=a(n)),l):a},l.context=function(c){return arguments.length?(c==null?n=o=null:o=a(n=c),l):n},l}function area(e,r,t){var n=null,a=constant$2(!0),o=null,i=curveLinear,l=null,c=withPath(d);e=typeof e=="function"?e:e===void 0?x:constant$2(+e),r=typeof r=="function"?r:constant$2(r===void 0?0:+r),t=typeof t=="function"?t:t===void 0?y:constant$2(+t);function d(p){var v,m,g,_=(p=array$1(p)).length,S,C=!1,w,E=new Array(_),$=new Array(_);for(o==null&&(l=i(w=c())),v=0;v<=_;++v){if(!(v<_&&a(S=p[v],v,p))===C)if(C=!C)m=v,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),g=v-1;g>=m;--g)l.point(E[g],$[g]);l.lineEnd(),l.areaEnd()}C&&(E[v]=+e(S,v,p),$[v]=+r(S,v,p),l.point(n?+n(S,v,p):E[v],t?+t(S,v,p):$[v]))}if(w)return l=null,w+""||null}function f(){return line().defined(a).curve(i).context(o)}return d.x=function(p){return arguments.length?(e=typeof p=="function"?p:constant$2(+p),n=null,d):e},d.x0=function(p){return arguments.length?(e=typeof p=="function"?p:constant$2(+p),d):e},d.x1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:constant$2(+p),d):n},d.y=function(p){return arguments.length?(r=typeof p=="function"?p:constant$2(+p),t=null,d):r},d.y0=function(p){return arguments.length?(r=typeof p=="function"?p:constant$2(+p),d):r},d.y1=function(p){return arguments.length?(t=p==null?null:typeof p=="function"?p:constant$2(+p),d):t},d.lineX0=d.lineY0=function(){return f().x(e).y(r)},d.lineY1=function(){return f().x(e).y(t)},d.lineX1=function(){return f().x(n).y(r)},d.defined=function(p){return arguments.length?(a=typeof p=="function"?p:constant$2(!!p),d):a},d.curve=function(p){return arguments.length?(i=p,o!=null&&(l=i(o)),d):i},d.context=function(p){return arguments.length?(p==null?o=l=null:l=i(o=p),d):o},d}function descending(e,r){return r<e?-1:r>e?1:r>=e?0:NaN}function identity$1(e){return e}function pie(){var e=identity$1,r=descending,t=null,n=constant$2(0),a=constant$2(tau$1),o=constant$2(0);function i(l){var c,d=(l=array$1(l)).length,f,p,v=0,m=new Array(d),g=new Array(d),_=+n.apply(this,arguments),S=Math.min(tau$1,Math.max(-tau$1,a.apply(this,arguments)-_)),C,w=Math.min(Math.abs(S)/d,o.apply(this,arguments)),E=w*(S<0?-1:1),$;for(c=0;c<d;++c)($=g[m[c]=c]=+e(l[c],c,l))>0&&(v+=$);for(r!=null?m.sort(function(T,B){return r(g[T],g[B])}):t!=null&&m.sort(function(T,B){return t(l[T],l[B])}),c=0,p=v?(S-d*E)/v:0;c<d;++c,_=C)f=m[c],$=g[f],C=_+($>0?$*p:0)+E,g[f]={data:l[f],index:c,value:$,startAngle:_,endAngle:C,padAngle:w};return g}return i.value=function(l){return arguments.length?(e=typeof l=="function"?l:constant$2(+l),i):e},i.sortValues=function(l){return arguments.length?(r=l,t=null,i):r},i.sort=function(l){return arguments.length?(t=l,r=null,i):t},i.startAngle=function(l){return arguments.length?(n=typeof l=="function"?l:constant$2(+l),i):n},i.endAngle=function(l){return arguments.length?(a=typeof l=="function"?l:constant$2(+l),i):a},i.padAngle=function(l){return arguments.length?(o=typeof l=="function"?l:constant$2(+l),i):o},i}function sign(e){return e<0?-1:1}function slope3(e,r,t){var n=e._x1-e._x0,a=r-e._x1,o=(e._y1-e._y0)/(n||a<0&&-0),i=(t-e._y1)/(a||n<0&&-0),l=(o*a+i*n)/(n+a);return(sign(o)+sign(i))*Math.min(Math.abs(o),Math.abs(i),.5*Math.abs(l))||0}function slope2(e,r){var t=e._x1-e._x0;return t?(3*(e._y1-e._y0)/t-r)/2:r}function point(e,r,t){var n=e._x0,a=e._y0,o=e._x1,i=e._y1,l=(o-n)/3;e._context.bezierCurveTo(n+l,a+l*r,o-l,i-l*t,o,i)}function MonotoneX(e){this._context=e}MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point(this,this._t0,slope2(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){var t=NaN;if(e=+e,r=+r,!(e===this._x1&&r===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3,point(this,slope2(this,t=slope3(this,e,r)),t);break;default:point(this,this._t0,t=slope3(this,e,r));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r,this._t0=t}}};function MonotoneY(e){this._context=new ReflectContext(e)}(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(e,r){MonotoneX.prototype.point.call(this,r,e)};function ReflectContext(e){this._context=e}ReflectContext.prototype={moveTo:function(e,r){this._context.moveTo(r,e)},closePath:function(){this._context.closePath()},lineTo:function(e,r){this._context.lineTo(r,e)},bezierCurveTo:function(e,r,t,n,a,o){this._context.bezierCurveTo(r,e,n,t,o,a)}};function monotoneX(e){return new MonotoneX(e)}function monotoneY(e){return new MonotoneY(e)}function Natural(e){this._context=e}Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,r=this._y,t=e.length;if(t)if(this._line?this._context.lineTo(e[0],r[0]):this._context.moveTo(e[0],r[0]),t===2)this._context.lineTo(e[1],r[1]);else for(var n=controlPoints(e),a=controlPoints(r),o=0,i=1;i<t;++o,++i)this._context.bezierCurveTo(n[0][o],a[0][o],n[1][o],a[1][o],e[i],r[i]);(this._line||this._line!==0&&t===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,r){this._x.push(+e),this._y.push(+r)}};function controlPoints(e){var r,t=e.length-1,n,a=new Array(t),o=new Array(t),i=new Array(t);for(a[0]=0,o[0]=2,i[0]=e[0]+2*e[1],r=1;r<t-1;++r)a[r]=1,o[r]=4,i[r]=4*e[r]+2*e[r+1];for(a[t-1]=2,o[t-1]=7,i[t-1]=8*e[t-1]+e[t],r=1;r<t;++r)n=a[r]/o[r-1],o[r]-=n,i[r]-=n*i[r-1];for(a[t-1]=i[t-1]/o[t-1],r=t-2;r>=0;--r)a[r]=(i[r]-a[r+1])/o[r];for(o[t-1]=(e[t]+a[t-1])/2,r=0;r<t-1;++r)o[r]=2*e[r+1]-a[r+1];return[a,o]}function curveNatural(e){return new Natural(e)}function Step(e,r){this._context=e,this._t=r}Step.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,r),this._context.lineTo(e,r);else{var t=this._x*(1-this._t)+e*this._t;this._context.lineTo(t,this._y),this._context.lineTo(t,r)}break}}this._x=e,this._y=r}};function curveStep(e){return new Step(e,.5)}function stepAfter(e){return new Step(e,1)}function none$1(e,r){if((i=e.length)>1)for(var t=1,n,a,o=e[r[0]],i,l=o.length;t<i;++t)for(a=o,o=e[r[t]],n=0;n<l;++n)o[n][1]+=o[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function stackOrderNone(e){for(var r=e.length,t=new Array(r);--r>=0;)t[r]=r;return t}function stackValue(e,r){return e[r]}function stackSeries(e){const r=[];return r.key=e,r}function stack(){var e=constant$2([]),r=stackOrderNone,t=none$1,n=stackValue;function a(o){var i=Array.from(e.apply(this,arguments),stackSeries),l,c=i.length,d=-1,f;for(const p of o)for(l=0,++d;l<c;++l)(i[l][d]=[0,+n(p,i[l].key,d,o)]).data=p;for(l=0,f=array$1(r(i));l<c;++l)i[f[l]].index=l;return t(i,f),i}return a.keys=function(o){return arguments.length?(e=typeof o=="function"?o:constant$2(Array.from(o)),a):e},a.value=function(o){return arguments.length?(n=typeof o=="function"?o:constant$2(+o),a):n},a.order=function(o){return arguments.length?(r=o==null?stackOrderNone:typeof o=="function"?o:constant$2(Array.from(o)),a):r},a.offset=function(o){return arguments.length?(t=o??none$1,a):t},a}const defaultConfig={size:{width:500,height:400},margin:{top:0,right:0,bottom:0,left:0},direction:"horizontal",axis:{primary:{domain:["dataMin","dataMax"],type:"band"},secondary:{domain:["dataMin","dataMax"],type:"linear"}},axisSpace:{x:40,y:20}};class Chart{constructor(r,t){this.data=r,this.layers=[],this.config=mergeDeepLeft$1(pickBy$1(n=>n!==void 0,t),defaultConfig),this.scales=new Scales(this.config.axis),this.updates=vue.ref(0)}get bandScale(){return this.scales.primary.type==="band"?this.scales.primary:this.scales.secondary.type==="band"?this.scales.secondary:null}get canvas(){const{margin:r,size:t}=this.config,n=this.config.axisSpace;return this.config.axis.primary.hide&&(n.y=0),this.config.axis.secondary.hide&&(n.x=0),{x:r.left+n.x,y:r.top,width:t.width-r.right,height:t.height-r.bottom-n.y}}getStackedData(r){return stack().keys(r).order(stackOrderNone)(this.data)}changeData(r){this.data=r,this.update("data")}changeConfig(r){this.config=mergeDeepLeft$1(pickBy$1(t=>t!==void 0,r),this.config),this.scales.changeConfig(this.config.axis),this.update("config")}addLayer(r){this.layers.push(r),this.update("layers")}removeLayer(r){this.layers=this.layers.filter(t=>t.id!==r),this.update("layers")}getLayers(r){return r?this.layers.filter(t=>t.type===r):this.layers}getData(r){return r.reduce((t,n)=>t.concat(getCol(n,this.data)),[])}getKeys(r=-1,t=null){const n=this.layers.filter(a=>t?a.type===t:!0).map(a=>a.dataKeys);return r===-1?n:getCol(r,n)}getStackedKeys(r=-1,t=null){const n=this.layers.filter(a=>t?a.type===t&&a.props.stacked:a.props.stacked).map(a=>a.dataKeys);return r===-1?n:getCol(r,n)}update(r){const t=this.getStackedData(this.getStackedKeys(1));this.scales.updateRange(this.canvas,this.config.direction),this.scales.updateDomain(this.data,t,this.getKeys()),this.updates.value+=1}}var xhtml="http://www.w3.org/1999/xhtml",namespaces={svg:"http://www.w3.org/2000/svg",xhtml,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function namespace(e){var r=e+="",t=r.indexOf(":");return t>=0&&(r=e.slice(0,t))!=="xmlns"&&(e=e.slice(t+1)),namespaces.hasOwnProperty(r)?{space:namespaces[r],local:e}:e}function creatorInherit(e){return function(){var r=this.ownerDocument,t=this.namespaceURI;return t===xhtml&&r.documentElement.namespaceURI===xhtml?r.createElement(e):r.createElementNS(t,e)}}function creatorFixed(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function creator(e){var r=namespace(e);return(r.local?creatorFixed:creatorInherit)(r)}function none(){}function selector(e){return e==null?none:function(){return this.querySelector(e)}}function selection_select(e){typeof e!="function"&&(e=selector(e));for(var r=this._groups,t=r.length,n=new Array(t),a=0;a<t;++a)for(var o=r[a],i=o.length,l=n[a]=new Array(i),c,d,f=0;f<i;++f)(c=o[f])&&(d=e.call(c,c.__data__,f,o))&&("__data__"in c&&(d.__data__=c.__data__),l[f]=d);return new Selection(n,this._parents)}function array(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function empty(){return[]}function selectorAll(e){return e==null?empty:function(){return this.querySelectorAll(e)}}function arrayAll(e){return function(){return array(e.apply(this,arguments))}}function selection_selectAll(e){typeof e=="function"?e=arrayAll(e):e=selectorAll(e);for(var r=this._groups,t=r.length,n=[],a=[],o=0;o<t;++o)for(var i=r[o],l=i.length,c,d=0;d<l;++d)(c=i[d])&&(n.push(e.call(c,c.__data__,d,i)),a.push(c));return new Selection(n,a)}function matcher(e){return function(){return this.matches(e)}}function childMatcher(e){return function(r){return r.matches(e)}}var find=Array.prototype.find;function childFind(e){return function(){return find.call(this.children,e)}}function childFirst(){return this.firstElementChild}function selection_selectChild(e){return this.select(e==null?childFirst:childFind(typeof e=="function"?e:childMatcher(e)))}var filter=Array.prototype.filter;function children(){return Array.from(this.children)}function childrenFilter(e){return function(){return filter.call(this.children,e)}}function selection_selectChildren(e){return this.selectAll(e==null?children:childrenFilter(typeof e=="function"?e:childMatcher(e)))}function selection_filter(e){typeof e!="function"&&(e=matcher(e));for(var r=this._groups,t=r.length,n=new Array(t),a=0;a<t;++a)for(var o=r[a],i=o.length,l=n[a]=[],c,d=0;d<i;++d)(c=o[d])&&e.call(c,c.__data__,d,o)&&l.push(c);return new Selection(n,this._parents)}function sparse(e){return new Array(e.length)}function selection_enter(){return new Selection(this._enter||this._groups.map(sparse),this._parents)}function EnterNode(e,r){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=r}EnterNode.prototype={constructor:EnterNode,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,r){return this._parent.insertBefore(e,r)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function constant$1(e){return function(){return e}}function bindIndex(e,r,t,n,a,o){for(var i=0,l,c=r.length,d=o.length;i<d;++i)(l=r[i])?(l.__data__=o[i],n[i]=l):t[i]=new EnterNode(e,o[i]);for(;i<c;++i)(l=r[i])&&(a[i]=l)}function bindKey(e,r,t,n,a,o,i){var l,c,d=new Map,f=r.length,p=o.length,v=new Array(f),m;for(l=0;l<f;++l)(c=r[l])&&(v[l]=m=i.call(c,c.__data__,l,r)+"",d.has(m)?a[l]=c:d.set(m,c));for(l=0;l<p;++l)m=i.call(e,o[l],l,o)+"",(c=d.get(m))?(n[l]=c,c.__data__=o[l],d.delete(m)):t[l]=new EnterNode(e,o[l]);for(l=0;l<f;++l)(c=r[l])&&d.get(v[l])===c&&(a[l]=c)}function datum(e){return e.__data__}function selection_data(e,r){if(!arguments.length)return Array.from(this,datum);var t=r?bindKey:bindIndex,n=this._parents,a=this._groups;typeof e!="function"&&(e=constant$1(e));for(var o=a.length,i=new Array(o),l=new Array(o),c=new Array(o),d=0;d<o;++d){var f=n[d],p=a[d],v=p.length,m=arraylike(e.call(f,f&&f.__data__,d,n)),g=m.length,_=l[d]=new Array(g),S=i[d]=new Array(g),C=c[d]=new Array(v);t(f,p,_,S,C,m,r);for(var w=0,E=0,$,T;w<g;++w)if($=_[w]){for(w>=E&&(E=w+1);!(T=S[E])&&++E<g;);$._next=T||null}}return i=new Selection(i,n),i._enter=l,i._exit=c,i}function arraylike(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function selection_exit(){return new Selection(this._exit||this._groups.map(sparse),this._parents)}function selection_join(e,r,t){var n=this.enter(),a=this,o=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),r!=null&&(a=r(a),a&&(a=a.selection())),t==null?o.remove():t(o),n&&a?n.merge(a).order():a}function selection_merge(e){for(var r=e.selection?e.selection():e,t=this._groups,n=r._groups,a=t.length,o=n.length,i=Math.min(a,o),l=new Array(a),c=0;c<i;++c)for(var d=t[c],f=n[c],p=d.length,v=l[c]=new Array(p),m,g=0;g<p;++g)(m=d[g]||f[g])&&(v[g]=m);for(;c<a;++c)l[c]=t[c];return new Selection(l,this._parents)}function selection_order(){for(var e=this._groups,r=-1,t=e.length;++r<t;)for(var n=e[r],a=n.length-1,o=n[a],i;--a>=0;)(i=n[a])&&(o&&i.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(i,o),o=i);return this}function selection_sort(e){e||(e=ascending);function r(p,v){return p&&v?e(p.__data__,v.__data__):!p-!v}for(var t=this._groups,n=t.length,a=new Array(n),o=0;o<n;++o){for(var i=t[o],l=i.length,c=a[o]=new Array(l),d,f=0;f<l;++f)(d=i[f])&&(c[f]=d);c.sort(r)}return new Selection(a,this._parents).order()}function ascending(e,r){return e<r?-1:e>r?1:e>=r?0:NaN}function selection_call(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function selection_nodes(){return Array.from(this)}function selection_node(){for(var e=this._groups,r=0,t=e.length;r<t;++r)for(var n=e[r],a=0,o=n.length;a<o;++a){var i=n[a];if(i)return i}return null}function selection_size(){let e=0;for(const r of this)++e;return e}function selection_empty(){return!this.node()}function selection_each(e){for(var r=this._groups,t=0,n=r.length;t<n;++t)for(var a=r[t],o=0,i=a.length,l;o<i;++o)(l=a[o])&&e.call(l,l.__data__,o,a);return this}function attrRemove(e){return function(){this.removeAttribute(e)}}function attrRemoveNS(e){return function(){this.removeAttributeNS(e.space,e.local)}}function attrConstant(e,r){return function(){this.setAttribute(e,r)}}function attrConstantNS(e,r){return function(){this.setAttributeNS(e.space,e.local,r)}}function attrFunction(e,r){return function(){var t=r.apply(this,arguments);t==null?this.removeAttribute(e):this.setAttribute(e,t)}}function attrFunctionNS(e,r){return function(){var t=r.apply(this,arguments);t==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}}function selection_attr(e,r){var t=namespace(e);if(arguments.length<2){var n=this.node();return t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}return this.each((r==null?t.local?attrRemoveNS:attrRemove:typeof r=="function"?t.local?attrFunctionNS:attrFunction:t.local?attrConstantNS:attrConstant)(t,r))}function defaultView(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function styleRemove(e){return function(){this.style.removeProperty(e)}}function styleConstant(e,r,t){return function(){this.style.setProperty(e,r,t)}}function styleFunction(e,r,t){return function(){var n=r.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,t)}}function selection_style(e,r,t){return arguments.length>1?this.each((r==null?styleRemove:typeof r=="function"?styleFunction:styleConstant)(e,r,t??"")):styleValue(this.node(),e)}function styleValue(e,r){return e.style.getPropertyValue(r)||defaultView(e).getComputedStyle(e,null).getPropertyValue(r)}function propertyRemove(e){return function(){delete this[e]}}function propertyConstant(e,r){return function(){this[e]=r}}function propertyFunction(e,r){return function(){var t=r.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function selection_property(e,r){return arguments.length>1?this.each((r==null?propertyRemove:typeof r=="function"?propertyFunction:propertyConstant)(e,r)):this.node()[e]}function classArray(e){return e.trim().split(/^|\s+/)}function classList(e){return e.classList||new ClassList(e)}function ClassList(e){this._node=e,this._names=classArray(e.getAttribute("class")||"")}ClassList.prototype={add:function(e){var r=this._names.indexOf(e);r<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var r=this._names.indexOf(e);r>=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function classedAdd(e,r){for(var t=classList(e),n=-1,a=r.length;++n<a;)t.add(r[n])}function classedRemove(e,r){for(var t=classList(e),n=-1,a=r.length;++n<a;)t.remove(r[n])}function classedTrue(e){return function(){classedAdd(this,e)}}function classedFalse(e){return function(){classedRemove(this,e)}}function classedFunction(e,r){return function(){(r.apply(this,arguments)?classedAdd:classedRemove)(this,e)}}function selection_classed(e,r){var t=classArray(e+"");if(arguments.length<2){for(var n=classList(this.node()),a=-1,o=t.length;++a<o;)if(!n.contains(t[a]))return!1;return!0}return this.each((typeof r=="function"?classedFunction:r?classedTrue:classedFalse)(t,r))}function textRemove(){this.textContent=""}function textConstant(e){return function(){this.textContent=e}}function textFunction(e){return function(){var r=e.apply(this,arguments);this.textContent=r??""}}function selection_text(e){return arguments.length?this.each(e==null?textRemove:(typeof e=="function"?textFunction:textConstant)(e)):this.node().textContent}function htmlRemove(){this.innerHTML=""}function htmlConstant(e){return function(){this.innerHTML=e}}function htmlFunction(e){return function(){var r=e.apply(this,arguments);this.innerHTML=r??""}}function selection_html(e){return arguments.length?this.each(e==null?htmlRemove:(typeof e=="function"?htmlFunction:htmlConstant)(e)):this.node().innerHTML}function raise(){this.nextSibling&&this.parentNode.appendChild(this)}function selection_raise(){return this.each(raise)}function lower(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function selection_lower(){return this.each(lower)}function selection_append(e){var r=typeof e=="function"?e:creator(e);return this.select(function(){return this.appendChild(r.apply(this,arguments))})}function constantNull(){return null}function selection_insert(e,r){var t=typeof e=="function"?e:creator(e),n=r==null?constantNull:typeof r=="function"?r:selector(r);return this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})}function remove(){var e=this.parentNode;e&&e.removeChild(this)}function selection_remove(){return this.each(remove)}function selection_cloneShallow(){var e=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function selection_cloneDeep(){var e=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function selection_clone(e){return this.select(e?selection_cloneDeep:selection_cloneShallow)}function selection_datum(e){return arguments.length?this.property("__data__",e):this.node().__data__}function contextListener(e){return function(r){e.call(this,r,this.__data__)}}function parseTypenames(e){return e.trim().split(/^|\s+/).map(function(r){var t="",n=r.indexOf(".");return n>=0&&(t=r.slice(n+1),r=r.slice(0,n)),{type:r,name:t}})}function onRemove(e){return function(){var r=this.__on;if(r){for(var t=0,n=-1,a=r.length,o;t<a;++t)o=r[t],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):r[++n]=o;++n?r.length=n:delete this.__on}}}function onAdd(e,r,t){return function(){var n=this.__on,a,o=contextListener(r);if(n){for(var i=0,l=n.length;i<l;++i)if((a=n[i]).type===e.type&&a.name===e.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=o,a.options=t),a.value=r;return}}this.addEventListener(e.type,o,t),a={type:e.type,name:e.name,value:r,listener:o,options:t},n?n.push(a):this.__on=[a]}}function selection_on(e,r,t){var n=parseTypenames(e+""),a,o=n.length,i;if(arguments.length<2){var l=this.node().__on;if(l){for(var c=0,d=l.length,f;c<d;++c)for(a=0,f=l[c];a<o;++a)if((i=n[a]).type===f.type&&i.name===f.name)return f.value}return}for(l=r?onAdd:onRemove,a=0;a<o;++a)this.each(l(n[a],r,t));return this}function dispatchEvent(e,r,t){var n=defaultView(e),a=n.CustomEvent;typeof a=="function"?a=new a(r,t):(a=n.document.createEvent("Event"),t?(a.initEvent(r,t.bubbles,t.cancelable),a.detail=t.detail):a.initEvent(r,!1,!1)),e.dispatchEvent(a)}function dispatchConstant(e,r){return function(){return dispatchEvent(this,e,r)}}function dispatchFunction(e,r){return function(){return dispatchEvent(this,e,r.apply(this,arguments))}}function selection_dispatch(e,r){return this.each((typeof r=="function"?dispatchFunction:dispatchConstant)(e,r))}function*selection_iterator(){for(var e=this._groups,r=0,t=e.length;r<t;++r)for(var n=e[r],a=0,o=n.length,i;a<o;++a)(i=n[a])&&(yield i)}var root=[null];function Selection(e,r){this._groups=e,this._parents=r}function selection_selection(){return this}Selection.prototype={constructor:Selection,select:selection_select,selectAll:selection_selectAll,selectChild:selection_selectChild,selectChildren:selection_selectChildren,filter:selection_filter,data:selection_data,enter:selection_enter,exit:selection_exit,join:selection_join,merge:selection_merge,selection:selection_selection,order:selection_order,sort:selection_sort,call:selection_call,nodes:selection_nodes,node:selection_node,size:selection_size,empty:selection_empty,each:selection_each,attr:selection_attr,style:selection_style,property:selection_property,classed:selection_classed,text:selection_text,html:selection_html,raise:selection_raise,lower:selection_lower,append:selection_append,insert:selection_insert,remove:selection_remove,clone:selection_clone,datum:selection_datum,on:selection_on,dispatch:selection_dispatch,[Symbol.iterator]:selection_iterator};function select(e){return typeof e=="string"?new Selection([[document.querySelector(e)]],[document.documentElement]):new Selection([[e]],root)}function sourceEvent(e){let r;for(;r=e.sourceEvent;)e=r;return e}function pointer(e,r){if(e=sourceEvent(e),r===void 0&&(r=e.currentTarget),r){var t=r.ownerSVGElement||r;if(t.createSVGPoint){var n=t.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n=n.matrixTransform(r.getScreenCTM().inverse()),[n.x,n.y]}if(r.getBoundingClientRect){var a=r.getBoundingClientRect();return[e.clientX-a.left-r.clientLeft,e.clientY-a.top-r.clientTop]}}return[e.pageX,e.pageY]}function identity(e){return e}var top=1,right=2,bottom=3,left=4,epsilon=1e-6;function translateX(e){return"translate("+e+",0)"}function translateY(e){return"translate(0,"+e+")"}function number(e){return r=>+e(r)}function center(e,r){return r=Math.max(0,e.bandwidth()-r*2)/2,e.round()&&(r=Math.round(r)),t=>+e(t)+r}function entering(){return!this.__axis}function axis(e,r){var t=[],n=null,a=null,o=6,i=6,l=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,d=e===top||e===left?-1:1,f=e===left||e===right?"x":"y",p=e===top||e===bottom?translateX:translateY;function v(m){var g=n??(r.ticks?r.ticks.apply(r,t):r.domain()),_=a??(r.tickFormat?r.tickFormat.apply(r,t):identity),S=Math.max(o,0)+l,C=r.range(),w=+C[0]+c,E=+C[C.length-1]+c,$=(r.bandwidth?center:number)(r.copy(),c),T=m.selection?m.selection():m,B=T.selectAll(".domain").data([null]),R=T.selectAll(".tick").data(g,r).order(),L=R.exit(),te=R.enter().append("g").attr("class","tick"),oe=R.select("line"),Q=R.select("text");B=B.merge(B.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),R=R.merge(te),oe=oe.merge(te.append("line").attr("stroke","currentColor").attr(f+"2",d*o)),Q=Q.merge(te.append("text").attr("fill","currentColor").attr(f,d*S).attr("dy",e===top?"0em":e===bottom?"0.71em":"0.32em")),m!==T&&(B=B.transition(m),R=R.transition(m),oe=oe.transition(m),Q=Q.transition(m),L=L.transition(m).attr("opacity",epsilon).attr("transform",function(ce){return isFinite(ce=$(ce))?p(ce+c):this.getAttribute("transform")}),te.attr("opacity",epsilon).attr("transform",function(ce){var J=this.parentNode.__axis;return p((J&&isFinite(J=J(ce))?J:$(ce))+c)})),L.remove(),B.attr("d",e===left||e===right?i?"M"+d*i+","+w+"H"+c+"V"+E+"H"+d*i:"M"+c+","+w+"V"+E:i?"M"+w+","+d*i+"V"+c+"H"+E+"V"+d*i:"M"+w+","+c+"H"+E),R.attr("opacity",1).attr("transform",function(ce){return p($(ce)+c)}),oe.attr(f+"2",d*o),Q.attr(f,d*S).text(_),T.filter(entering).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===right?"start":e===left?"end":"middle"),T.each(function(){this.__axis=$})}return v.scale=function(m){return arguments.length?(r=m,v):r},v.ticks=function(){return t=Array.from(arguments),v},v.tickArguments=function(m){return arguments.length?(t=m==null?[]:Array.from(m),v):t.slice()},v.tickValues=function(m){return arguments.length?(n=m==null?null:Array.from(m),v):n&&n.slice()},v.tickFormat=function(m){return arguments.length?(a=m,v):a},v.tickSize=function(m){return arguments.length?(o=i=+m,v):o},v.tickSizeInner=function(m){return arguments.length?(o=+m,v):o},v.tickSizeOuter=function(m){return arguments.length?(i=+m,v):i},v.tickPadding=function(m){return arguments.length?(l=+m,v):l},v.offset=function(m){return arguments.length?(c=+m,v):c},v}function axisBottom(e){return axis(bottom,e)}function axisLeft(e){return axis(left,e)}var useChart=()=>vue.inject("chart"),usePoints=(e,r={stacked:!1,type:"line"})=>{const t=vue.ref([]),n=useChart(),{stacked:a,type:o}=r;function i(c,d){const{primary:f,secondary:p}=n.scales;return n.config.direction==="horizontal"?d.map(m=>({x:f.mapOne(m.data[c]),y:p.mapOne(m[1]),props:{values:[...m],data:m.data}})).filter(m=>!isNaN(m.x)&&!isNaN(m.y)):n.config.direction==="vertical"?d.map(v=>({x:p.mapOne(v[1]),y:f.mapOne(v.data[c]),props:{values:[...v],data:v.data}})).filter(v=>!isNaN(v.x)&&!isNaN(v.y)):[]}function l(){const c=n.getStackedKeys(1,o),[d,f]=e,v=n.getStackedData(a?c:[e[1]]).find(m=>m.key===f);v&&(t.value=i(d,v))}return vue.watch(n.updates,()=>{l()},{immediate:!0}),{points:t}},useMouse=()=>vue.inject("chartMouse",{index:-1,position:{x:0,y:0},hover:!1}),useBars=(e,r={maxWidth:-1,gap:5,stacked:!1,type:"bar"})=>{const t=vue.ref([]),n=useChart(),{stacked:a,type:o,gap:i}=r;function l(){const{primary:m,secondary:g}=n.scales,_=m.type==="band"?m:g,S=m.type==="band"?g:m;return{bandScale:_,linearScale:S}}function c(){if(a)return 0;const g=n.getLayers(o).findIndex(_=>_.dataKeys.join(",")===e.join(","));return g>-1?g:0}function d(){const{bandScale:m}=l(),g=r.maxWidth>-1?Math.min(m.bandwidth()-i,r.maxWidth):m.bandwidth()-i,_=n.getLayers(o);return _.length>0&&!a?g/_.length:g}function f(){if(a)return 0;const{bandScale:m}=l(),g=m.bandwidth()-i,_=n.getLayers(o).length*d();return(g-_)/2}function p(m,g){const{bandScale:_,linearScale:S}=l(),C=c(),w=d(),E=f();return g.map($=>{const T={x:0,y:0,width:0,height:0,props:{values:[...$],data:$.data}},B=_.scale($.data[m]),[R,L]=S.map($);return n.config.direction==="horizontal"?(T.y=Math.min(R,L),T.height=Math.abs(R-L),T.x=E+B+C*w+i/2,T.width=w):n.config.direction==="vertical"&&(T.x=Math.min(R,L),T.width=Math.abs(R-L),T.y=E+B+C*w+i/2,T.height=w),T})}function v(){const m=a?n.getStackedKeys(1,o):[e[1]],[g,_]=e,C=n.getStackedData(m).find(w=>w.key===_);C&&(t.value=p(g,C))}return vue.watch(n.updates,()=>{v()}),{bars:t}},useTooltip=()=>{const e=useMouse(),r=useChart(),t=vue.computed(()=>e.hover),n=vue.ref({x:0,y:0}),a=vue.ref({});return vue.watch(e,()=>{const{primary:o}=r.scales,i=r.getKeys(0),l=r.getData(i),[c]=o.map([l[e.index]]);c&&(r.config.direction==="horizontal"?n.value={x:c,y:e.position.y}:r.config.direction==="vertical"?n.value={x:e.position.x,y:c}:n.value={x:e.position.x,y:e.position.y});const d=r.data[e.index];d&&(a.value=Object.assign(Object.assign({},d),{idx:e.index}))}),{position:n,payload:a,show:t}},useResize=e=>{const r=vue.ref(0),t=vue.ref(0);let n=null,a=null;function o(l,c){r.value=l,t.value=c,a&&a()}function i(l){a=l}return vue.onMounted(()=>{n=new window.ResizeObserver(l=>{const c=l[0].contentRect.width,d=l[0].contentRect.height;o(c,d)}),n.observe(e.value)}),vue.onUnmounted(()=>{n.disconnect()}),{width:r,height:t,onResize:i}},script$d=vue.defineComponent({name:"Axis",props:{position:{type:String,default:"bottom"},rotate:{type:Boolean,default:!1},isPrimary:{type:Boolean,default:!1}},setup(e){const r=vue.ref(),t=useChart(),n=vue.computed(()=>e.position==="bottom"?axisBottom:axisLeft),a=vue.ref(t.canvas),o={ticks:5};function i(){if(t.data.length>0){const{primary:l,secondary:c}=t.scales,d=e.isPrimary?l:c,f=Object.assign({},e.isPrimary?l.config:c.config,o),p=n.value(d.scale);f.format&&p.tickFormat(f.format),f.ticks!==void 0&&p.ticks(f.ticks),f.tickValues!==void 0&&p.tickValues(f.tickValues),f.useConfig&&f.useConfig(p);const v=select(r.value).call(p);return e.position==="bottom"&&e.rotate&&v.selectAll("text").attr("y",0).attr("x",9).attr("dy",".35em").attr("transform","rotate(90)").style("text-anchor","start"),p}return null}return vue.watch(()=>e.isPrimary,()=>{i()}),vue.watch(t.updates,()=>{a.value=t.canvas,i()}),{el:r,canvas:a}}});const _hoisted_1$b$1=["transform"],_hoisted_2$8$1=["transform"];function render$d(e,r,t,n,a,o){return e.position==="bottom"?(vue.openBlock(),vue.createElementBlock("g",{key:0,class:vue.normalizeClass("layer-axis-x"),ref:"el",transform:`translate(0, ${e.canvas.height})`},null,8,_hoisted_1$b$1)):(vue.openBlock(),vue.createElementBlock("g",{key:1,class:vue.normalizeClass("layer-axis-y"),ref:"el",transform:`translate(${e.canvas.x}, 0)`},null,8,_hoisted_2$8$1))}script$d.render=render$d;script$d.__file="src/components/Axis/index.vue";var script$c=vue.defineComponent({name:"Chart",components:{Axis:script$d},props:{data:{type:Array,default:()=>[]},margin:{type:Object,default:()=>({top:0,right:0,bottom:0,left:0}),required:!1},size:{type:Object,default:()=>({width:500,height:400}),required:!1},direction:{type:String,default:"horizontal",required:!1},axis:{type:Object,required:!1},config:{type:Object,default:()=>({})}},setup(e){const r=vue.ref(null),t=vue.ref(),n=vue.ref(),a=vue.reactive({x:40,y:20}),o=new Chart(e.data,e.config),i=vue.computed(()=>e.axis&&e.axis.primary&&e.axis.primary.rotate),l=vue.computed(()=>e.axis&&e.axis.primary&&e.axis.primary.hide),c=vue.computed(()=>e.axis&&e.axis.secondary&&e.axis.secondary.hide),d=vue.reactive({index:-1,position:{x:0,y:0},hover:!1});vue.provide("chart",o),vue.provide("chartMouse",d),vue.watch(()=>e.data,()=>{o&&o.changeData(e.data)},{immediate:!0}),vue.watch(()=>e.config,()=>{o&&o.changeConfig(e.config)}),vue.watch(()=>[Object.assign({},a),e.direction,e.size,e.margin,e.axis],()=>{o&&o.changeConfig({axisSpace:Object.assign({},a),direction:e.direction,size:e.size,margin:e.margin,axis:e.axis})},{immediate:!0});const f=new ResizeObserver(m=>{for(const g of m)n.value&&g.target===n.value.$el?a.y=g.contentRect.height:t.value&&g.target===t.value.$el&&(a.x=g.contentRect.width)});vue.onMounted(()=>{n.value&&f.observe(n.value.$el),t.value&&f.observe(t.value.$el)}),vue.onUnmounted(()=>{f.disconnect()});function p(){e.config.controlHover!==!1&&(d.index=-1,d.hover=!1)}function v(m){if(e.config.controlHover===!1)return;d.hover=!0,d.position={x:pointer(m)[0],y:pointer(m)[1]};const{primary:g}=o.scales,_=o.getKeys(0),S=o.getData(_);if(o.config.direction==="horizontal")if(g.type==="band"){const C=g.bandwidth(),w=d.position.x-o.canvas.x;d.index=Math.round((w+C/2)/C)-1}else d.index=bisectCenter(S,g.scale.invert(d.position.x));else if(o.config.direction==="vertical")if(g.type==="band"){const C=g.bandwidth(),w=d.position.y-o.canvas.y;d.index=Math.round((w+C/2)/C)-1}else d.index=bisectCenter(S,g.scale.invert(d.position.y))}return{axBottomEl:n,axLeftEl:t,chartEl:r,hideX:l,hideY:c,rotateX:i,onMouseMove:v,onMouseOut:p}}});const _hoisted_1$a$1={class:"chart",ref:"chartEl"},_hoisted_2$7$1=["width","height","viewBox"],_hoisted_3$6$1={class:"layers"},_hoisted_4$3$1={class:"axis"},_hoisted_5$3$1={class:"widgets"};function render$c(e,r,t,n,a,o){const i=vue.resolveComponent("axis");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$a$1,[(vue.openBlock(),vue.createElementBlock("svg",{width:e.size.width,height:e.size.height,viewBox:`0 0 ${e.size.width} ${e.size.height}`,onPointermove:r[0]||(r[0]=(...l)=>e.onMouseMove&&e.onMouseMove(...l)),onPointerleave:r[1]||(r[1]=(...l)=>e.onMouseOut&&e.onMouseOut(...l))},[vue.createElementVNode("g",_hoisted_3$6$1,[vue.renderSlot(e.$slots,"layers")]),vue.createElementVNode("g",_hoisted_4$3$1,[e.hideX?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createBlock(i,{key:0,position:"bottom",ref:"axBottomEl",rotate:e.rotateX,isPrimary:e.direction==="horizontal"},null,8,["rotate","isPrimary"])),e.hideY?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createBlock(i,{key:1,position:"left",ref:"axLeftEl",isPrimary:e.direction==="vertical"},null,8,["isPrimary"]))])],40,_hoisted_2$7$1)),vue.createElementVNode("div",_hoisted_5$3$1,[vue.renderSlot(e.$slots,"widgets")])],512)}function styleInject(e,r){r===void 0&&(r={});var t=r.insertAt;if(!(!e||typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t==="top"&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var css_248z$1=`
139
139
  .chart {
140
140
  position: relative;
141
141
  }
@@ -182,16 +182,16 @@ function print() { __p += __j.call(arguments, '') }
182
182
  pointer-events: none;
183
183
  opacity: 0.3;
184
184
  }
185
- `;styleInject(css_248z);script$4.render=render$4;script$4.__scopeId="data-v-43da20c6";script$4.__file="src/components/Tooltip/index.vue";var script$3=vue.defineComponent({props:{stacked:{type:Boolean,default:!1},maxWidth:{type:Number,default:-1}},setup(e){vue.provide("layerProps",e)}});function render$3(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",null,[vue.renderSlot(e.$slots,"default")])}script$3.render=render$3;script$3.__file="src/components/Group/index.vue";var script$2=vue.defineComponent({name:"Grid",props:{value:{type:Number},label:{type:String,default:""},color:{type:String,default:"red"},strokeDasharray:{type:String,default:()=>"3"},strokeWidth:{type:Number,default:1},strokeOpacity:{type:Number,default:.5}},setup(e){const r=useChart(),t=vue.ref(0),n=vue.ref("horizontal"),a=vue.ref({});return vue.watch(r.updates,()=>{e.value!==void 0&&(t.value=r.scales.secondary.scale(e.value)),a.value=r.canvas,n.value=r.config.direction},{immediate:!0}),vue.watch(()=>e.value,()=>{t.value=r.scales.secondary.scale(e.value)},{immediate:!0}),{y:t,canvas:a,direction:n}}});const _hoisted_1$2$1={key:0,class:"layer-marker"},_hoisted_2$2$1=["x","y","fill"],_hoisted_3$1$1=["x1","y1","x2","y2","stroke","stroke-opacity","stroke-width","stroke-dasharray"],_hoisted_4$1$1={key:1,class:"layer-marker"},_hoisted_5$1$1=["x","y","fill"],_hoisted_6$1$1=["x1","y1","x2","y2","stroke","stroke-opacity","stroke-width","stroke-dasharray"];function render$2(e,r,t,n,a,o){return e.direction==="horizontal"?(vue.openBlock(),vue.createElementBlock("g",_hoisted_1$2$1,[vue.createElementVNode("text",{x:e.canvas.x+5,y:e.y-5,"text-anchor":"start",fill:e.color},vue.toDisplayString(e.label),9,_hoisted_2$2$1),vue.createElementVNode("line",{x1:e.canvas.x,y1:e.y,x2:e.canvas.width,y2:e.y,stroke:e.color,"stroke-opacity":e.strokeOpacity,"stroke-width":e.strokeWidth,"stroke-dasharray":e.strokeDasharray},null,8,_hoisted_3$1$1)])):(vue.openBlock(),vue.createElementBlock("g",_hoisted_4$1$1,[vue.createElementVNode("text",{x:e.y+10,y:e.canvas.y+5,"text-anchor":"start",fill:e.color,style:{"writing-mode":"tb"}},vue.toDisplayString(e.label),9,_hoisted_5$1$1),vue.createElementVNode("line",{x1:e.y,y1:e.canvas.y,x2:e.y,y2:e.canvas.height,stroke:e.color,"stroke-opacity":e.strokeOpacity,"stroke-width":e.strokeWidth,"stroke-dasharray":e.strokeDasharray},null,8,_hoisted_6$1$1)]))}script$2.render=render$2;script$2.__file="src/components/Marker/index.vue";function count(e){var r=0,t=e.children,n=t&&t.length;if(!n)r=1;else for(;--n>=0;)r+=t[n].value;e.value=r}function node_count(){return this.eachAfter(count)}function node_each(e,r){let t=-1;for(const n of this)e.call(r,n,++t,this);return this}function node_eachBefore(e,r){for(var t=this,n=[t],a,o,i=-1;t=n.pop();)if(e.call(r,t,++i,this),a=t.children)for(o=a.length-1;o>=0;--o)n.push(a[o]);return this}function node_eachAfter(e,r){for(var t=this,n=[t],a=[],o,i,l,c=-1;t=n.pop();)if(a.push(t),o=t.children)for(i=0,l=o.length;i<l;++i)n.push(o[i]);for(;t=a.pop();)e.call(r,t,++c,this);return this}function node_find(e,r){let t=-1;for(const n of this)if(e.call(r,n,++t,this))return n}function node_sum(e){return this.eachAfter(function(r){for(var t=+e(r.data)||0,n=r.children,a=n&&n.length;--a>=0;)t+=n[a].value;r.value=t})}function node_sort(e){return this.eachBefore(function(r){r.children&&r.children.sort(e)})}function node_path(e){for(var r=this,t=leastCommonAncestor(r,e),n=[r];r!==t;)r=r.parent,n.push(r);for(var a=n.length;e!==t;)n.splice(a,0,e),e=e.parent;return n}function leastCommonAncestor(e,r){if(e===r)return e;var t=e.ancestors(),n=r.ancestors(),a=null;for(e=t.pop(),r=n.pop();e===r;)a=e,e=t.pop(),r=n.pop();return a}function node_ancestors(){for(var e=this,r=[e];e=e.parent;)r.push(e);return r}function node_descendants(){return Array.from(this)}function node_leaves(){var e=[];return this.eachBefore(function(r){r.children||e.push(r)}),e}function node_links(){var e=this,r=[];return e.each(function(t){t!==e&&r.push({source:t.parent,target:t})}),r}function*node_iterator(){var e=this,r,t=[e],n,a,o;do for(r=t.reverse(),t=[];e=r.pop();)if(yield e,n=e.children)for(a=0,o=n.length;a<o;++a)t.push(n[a]);while(t.length)}function hierarchy(e,r){e instanceof Map?(e=[void 0,e],r===void 0&&(r=mapChildren)):r===void 0&&(r=objectChildren);for(var t=new Node$2(e),n,a=[t],o,i,l,c;n=a.pop();)if((i=r(n.data))&&(c=(i=Array.from(i)).length))for(n.children=i,l=c-1;l>=0;--l)a.push(o=i[l]=new Node$2(i[l])),o.parent=n,o.depth=n.depth+1;return t.eachBefore(computeHeight)}function node_copy(){return hierarchy(this).eachBefore(copyData)}function objectChildren(e){return e.children}function mapChildren(e){return Array.isArray(e)?e[1]:null}function copyData(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function computeHeight(e){var r=0;do e.height=r;while((e=e.parent)&&e.height<++r)}function Node$2(e){this.data=e,this.depth=this.height=0,this.parent=null}Node$2.prototype=hierarchy.prototype={constructor:Node$2,count:node_count,each:node_each,eachAfter:node_eachAfter,eachBefore:node_eachBefore,find:node_find,sum:node_sum,sort:node_sort,path:node_path,ancestors:node_ancestors,descendants:node_descendants,leaves:node_leaves,links:node_links,copy:node_copy,[Symbol.iterator]:node_iterator};function optional(e){return e==null?null:required$2(e)}function required$2(e){if(typeof e!="function")throw new Error;return e}function constantZero(){return 0}function constant(e){return function(){return e}}function roundNode(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function treemapDice(e,r,t,n,a){for(var o=e.children,i,l=-1,c=o.length,d=e.value&&(n-r)/e.value;++l<c;)i=o[l],i.y0=t,i.y1=a,i.x0=r,i.x1=r+=i.value*d}var preroot={depth:-1},ambiguous={},imputed={};function defaultId(e){return e.id}function defaultParentId(e){return e.parentId}function stratify(){var e=defaultId,r=defaultParentId,t;function n(a){var o=Array.from(a),i=e,l=r,c,d,f,p,v,m,g,_,S=new Map;if(t!=null){const C=o.map(($,T)=>normalize(t($,T,a))),w=C.map(parentof),E=new Set(C).add("");for(const $ of w)E.has($)||(E.add($),C.push($),w.push(parentof($)),o.push(imputed));i=($,T)=>C[T],l=($,T)=>w[T]}for(f=0,c=o.length;f<c;++f)d=o[f],m=o[f]=new Node$2(d),(g=i(d,f,a))!=null&&(g+="")&&(_=m.id=g,S.set(_,S.has(_)?ambiguous:m)),(g=l(d,f,a))!=null&&(g+="")&&(m.parent=g);for(f=0;f<c;++f)if(m=o[f],g=m.parent){if(v=S.get(g),!v)throw new Error("missing: "+g);if(v===ambiguous)throw new Error("ambiguous: "+g);v.children?v.children.push(m):v.children=[m],m.parent=v}else{if(p)throw new Error("multiple roots");p=m}if(!p)throw new Error("no root");if(t!=null){for(;p.data===imputed&&p.children.length===1;)p=p.children[0],--c;for(let C=o.length-1;C>=0&&(m=o[C],m.data===imputed);--C)m.data=null}if(p.parent=preroot,p.eachBefore(function(C){C.depth=C.parent.depth+1,--c}).eachBefore(computeHeight),p.parent=null,c>0)throw new Error("cycle");return p}return n.id=function(a){return arguments.length?(e=optional(a),n):e},n.parentId=function(a){return arguments.length?(r=optional(a),n):r},n.path=function(a){return arguments.length?(t=optional(a),n):t},n}function normalize(e){e=`${e}`;let r=e.length;return slash(e,r-1)&&!slash(e,r-2)&&(e=e.slice(0,-1)),e[0]==="/"?e:`/${e}`}function parentof(e){let r=e.length;if(r<2)return"";for(;--r>1&&!slash(e,r););return e.slice(0,r)}function slash(e,r){if(e[r]==="/"){let t=0;for(;r>0&&e[--r]==="\\";)++t;if(!(t&1))return!0}return!1}function treemapSlice(e,r,t,n,a){for(var o=e.children,i,l=-1,c=o.length,d=e.value&&(a-t)/e.value;++l<c;)i=o[l],i.x0=r,i.x1=n,i.y0=t,i.y1=t+=i.value*d}var phi=(1+Math.sqrt(5))/2;function squarifyRatio(e,r,t,n,a,o){for(var i=[],l=r.children,c,d,f=0,p=0,v=l.length,m,g,_=r.value,S,C,w,E,$,T,B;f<v;){m=a-t,g=o-n;do S=l[p++].value;while(!S&&p<v);for(C=w=S,T=Math.max(g/m,m/g)/(_*e),B=S*S*T,$=Math.max(w/B,B/C);p<v;++p){if(S+=d=l[p].value,d<C&&(C=d),d>w&&(w=d),B=S*S*T,E=Math.max(w/B,B/C),E>$){S-=d;break}$=E}i.push(c={value:S,dice:m<g,children:l.slice(f,p)}),c.dice?treemapDice(c,t,n,a,_?n+=g*S/_:o):treemapSlice(c,t,n,_?t+=m*S/_:a,o),_-=S,f=p}return i}var squarify=function e(r){function t(n,a,o,i,l){squarifyRatio(r,n,a,o,i,l)}return t.ratio=function(n){return e((n=+n)>1?n:1)},t}(phi);function treemap(){var e=squarify,r=!1,t=1,n=1,a=[0],o=constantZero,i=constantZero,l=constantZero,c=constantZero,d=constantZero;function f(v){return v.x0=v.y0=0,v.x1=t,v.y1=n,v.eachBefore(p),a=[0],r&&v.eachBefore(roundNode),v}function p(v){var m=a[v.depth],g=v.x0+m,_=v.y0+m,S=v.x1-m,C=v.y1-m;S<g&&(g=S=(g+S)/2),C<_&&(_=C=(_+C)/2),v.x0=g,v.y0=_,v.x1=S,v.y1=C,v.children&&(m=a[v.depth+1]=o(v)/2,g+=d(v)-m,_+=i(v)-m,S-=l(v)-m,C-=c(v)-m,S<g&&(g=S=(g+S)/2),C<_&&(_=C=(_+C)/2),e(v,g,_,S,C))}return f.round=function(v){return arguments.length?(r=!!v,f):r},f.size=function(v){return arguments.length?(t=+v[0],n=+v[1],f):[t,n]},f.tile=function(v){return arguments.length?(e=required$2(v),f):e},f.padding=function(v){return arguments.length?f.paddingInner(v).paddingOuter(v):f.paddingInner()},f.paddingInner=function(v){return arguments.length?(o=typeof v=="function"?v:constant(+v),f):o},f.paddingOuter=function(v){return arguments.length?f.paddingTop(v).paddingRight(v).paddingBottom(v).paddingLeft(v):f.paddingTop()},f.paddingTop=function(v){return arguments.length?(i=typeof v=="function"?v:constant(+v),f):i},f.paddingRight=function(v){return arguments.length?(l=typeof v=="function"?v:constant(+v),f):l},f.paddingBottom=function(v){return arguments.length?(c=typeof v=="function"?v:constant(+v),f):c},f.paddingLeft=function(v){return arguments.length?(d=typeof v=="function"?v:constant(+v),f):d},f}var script$1=vue.defineComponent({name:"Treemap",props:{size:{type:Object,default:()=>({width:500,height:400}),required:!1},margin:{type:Object,default:()=>({top:0,right:0,bottom:0,left:0})},padding:{type:Number,default:8},data:{type:Array,default:()=>[]},dataKeys:{type:Object,required:!0},colorFn:{type:Function,default:()=>interpolateHcl("#60c96e","#6b46c1")},rcStyle:{type:Function,required:!1}},setup(e){const r=vue.ref(null),t=vue.ref(e.data),n=vue.ref(null),a=vue.ref({x:e.margin.left,y:e.margin.top,width:e.size.width-e.margin.right,height:e.size.height-e.margin.bottom}),o=vue.ref([]);function i(){const m=extent(t.value.map(S=>S[e.dataKeys[1]])),g=linear().domain(m).range([0,100]).nice(),_=sequential().domain(m).interpolator(e.colorFn());return{x:g,y:_}}function l(){const{y:m}=i();return c(t.value).leaves().map((_,S)=>({idx:S,x0:a.value.x+_.x0,x1:a.value.x+_.x1,y0:a.value.y+_.y0,y1:a.value.y+_.y1,width:_.x1-_.x0,height:_.y1-_.y0,data:_.data,color:m(_.value)}))}function c(m){const{x:g}=i(),_=treemap().size([a.value.width-a.value.x,a.value.height-a.value.y]).padding(e.padding),C=stratify().id(w=>w.name).parentId(w=>w.parent)([{name:"root"}].concat(m.map(w=>({name:w[e.dataKeys[0]],value:w[e.dataKeys[1]],parent:"root"}))));return C.sum(w=>g(w.value)),_(C),C}const d=m=>mapKeys(kebabize,m),f=m=>{const g={stroke:m.color,strokeWidth:5,fill:m.color,fillOpacity:.9};return e.rcStyle&&typeof e.rcStyle=="function"?Object.assign(Object.assign({},g),e.rcStyle(m)):g};function p(m){n.value=m}function v(){n.value=null}return vue.watch(e,()=>{t.value=e.data,a.value={x:e.margin.left,y:e.margin.top,width:e.size.width-e.margin.right,height:e.size.height-e.margin.bottom},o.value=l()},{immediate:!0}),{el:r,rectangles:o,selected:n,getStyle:f,toKebabCase:d,onMouseOver:p,onMouseOut:v}}});const _hoisted_1$1$1={class:"treemap",style:{display:"flex",position:"relative"}},_hoisted_2$1$1=["width","height","viewBox"],_hoisted_3$I={class:"layer-rectangles"},_hoisted_4$z=["transform","onMouseover"],_hoisted_5$o=["width","height"],_hoisted_6$h={x:10,y:20,"font-size":"15px",fill:"white","font-weight":"bold"};function render$1(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1$1,[(vue.openBlock(),vue.createElementBlock("svg",{width:e.size.width,height:e.size.height,viewBox:`0 0 ${e.size.width} ${e.size.height}`,ref:"el"},[vue.createElementVNode("g",_hoisted_3$I,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.rectangles,(i,l)=>(vue.openBlock(),vue.createElementBlock("g",{class:vue.normalizeClass(["rectangle",{selected:e.selected===l}]),key:l,transform:`translate(${i.x0}, ${i.y0})`,onMouseover:()=>e.onMouseOver(l),onMouseleave:r[0]||(r[0]=(...c)=>e.onMouseOut&&e.onMouseOut(...c))},[vue.renderSlot(e.$slots,"default",{r:i,selected:e.selected===l},()=>[vue.createElementVNode("rect",vue.mergeProps(e.toKebabCase(e.getStyle(i)),{x:0,y:0,width:i.width,height:i.height}),null,16,_hoisted_5$o),vue.renderSlot(e.$slots,"text",{r:i,selected:e.selected===l},()=>[vue.createElementVNode("text",_hoisted_6$h,vue.toDisplayString(i.data.name),1)])])],42,_hoisted_4$z))),128))])],8,_hoisted_2$1$1)),vue.renderSlot(e.$slots,"widgets")])}script$1.render=render$1;script$1.__file="src/components/Treemap/index.vue";var script=vue.defineComponent({name:"HoverBar",props:{barStyle:{type:Object,default:()=>({"fill-opacity":.05})}},setup(){const e=useChart(),r=useMouse(),t=vue.ref({x:0,y:0,width:0,height:0}),n=vue.ref("horizontal"),a=vue.ref({x:0,y:0,width:0,height:0});return vue.watch(e.updates,()=>{a.value=e.canvas,n.value=e.config.direction},{immediate:!0}),vue.watch(r,()=>{if(e.bandScale){const o=e.getData(e.getKeys(0)),[i]=e.bandScale.map([o[r.index]]),l=e.bandScale.bandwidth();i&&(e.config.direction==="horizontal"?t.value={x:i-l/2,y:0,width:l,height:a.value.height}:t.value={x:40,y:i-l/2,width:a.value.width-40,height:l})}}),{bar:t,canvas:a,direction:n,mouse:r}}});const _hoisted_1$1k={key:0,class:"layer-hover-bar"},_hoisted_2$U=["x","y","width","height"];function render(e,r,t,n,a,o){return e.mouse.hover?(vue.openBlock(),vue.createElementBlock("g",_hoisted_1$1k,[vue.createElementVNode("rect",vue.mergeProps({class:"hover-bar"},e.barStyle,{x:e.bar.x,y:e.bar.y,width:e.bar.width>0?e.bar.width:0,height:e.bar.height>0?e.bar.height:0}),null,16,_hoisted_2$U)])):vue.createCommentVNode("v-if",!0)}script.render=render;script.__file="src/components/HoverBar/index.vue";const _sfc_main$1G={name:"VsCarbonCalculatorResults",status:"prototype",release:"0.0.1",components:{VsCol,VsRow,VsHeading,VsIcon,Chart:script$c,Grid:script$5,Bar:script$8,Responsive:script$6},mixins:[dataLayerMixin],inject:["labelsMap"],props:{totalKilos:{type:Number,default:0},foodKilos:{type:Number,default:0},transportKilos:{type:Number,default:0},accommodationKilos:{type:Number,default:0},stayDuration:{type:Number,default:1},comparisonReplacements:{type:Array,default:()=>[]},language:{type:String,default:"en-gb"}},data(){return{chartDirection:vue.ref("horizontal"),chartAxis:vue.ref({primary:{type:"band"}}),cssProps:`--chart-label: '${this.labelsMap.kgsOf}'`,tokens:designTokens}},computed:{chartData(){return[{name:this.labelsMap.transport,emissions:this.transportKilos},{name:this.labelsMap.accommodation,emissions:this.accommodationKilos},{name:this.labelsMap.food,emissions:this.foodKilos}]},interpolComparison(){let e=this.labelsMap.comparison;for(let r=0;r<this.comparisonReplacements.length;r++)e=e.replace(this.comparisonReplacements[r].repl,(this.totalKilos/this.comparisonReplacements[r].divisor).toLocaleString(this.language,{minimumFractionDigits:3}));return e},interpolKGsPerDay(){return this.labelsMap.kgsPerDay.replace("xxx",this.totalPerDay)},interpolPerDaySuccess(){return this.labelsMap.perDaySuccess.replace("xxx",this.labelsMap.perDayTarget)},transportPercent(){return this.transportKilos/this.totalKilos*100},accommodationPercent(){return this.accommodationKilos/this.totalKilos*100},foodPercent(){return this.foodKilos/this.totalKilos*100},totalPerDay(){return this.totalKilos/Math.max(this.stayDuration,1)}},mounted(){this.createDataLayerObject("carbonCompleteEvent",{totalEmissions:this.totalKilos,totalPerDay:this.totalPerDay,travelPercent:this.transportPercent.toFixed(3)||0,accommodationPercent:this.accommodationPercent.toFixed(3)||0,foodPercent:this.foodPercent.toFixed(3)||0})},methods:{responsiveMargin(e){return e>300?{left:20,top:20,right:20,bottom:20}:{left:5,top:5,right:5,bottom:5}}}},_hoisted_1$1j={class:"vs-carbon-calculator-results__headline"},_hoisted_2$T={class:"mb-050"},_hoisted_3$H={class:"vs-carbon-calculator-results__total"},_hoisted_4$y=["innerHTML"],_hoisted_5$n={class:"vs-carbon-calculator-results__unicorn-icon-container"},_hoisted_6$g={class:"vs-carbon-calculator-results__unicorn-content"};function _sfc_render$1x(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsIcon"),f=vue.resolveComponent("Grid"),p=vue.resolveComponent("Bar"),v=vue.resolveComponent("Chart"),m=vue.resolveComponent("Responsive");return vue.openBlock(),vue.createBlock(c,{"data-test":"vs-carbon-calculator-results",style:vue.normalizeStyle(a.cssProps)},{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(i,{level:"2","heading-style":"heading-m"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.labelsMap.results),1)]),_:1})]),_:1}),vue.createVNode(l,{cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(c,{class:"vs-carbon-calculator-results__summary"},{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",md:"6"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1j,[vue.createElementVNode("p",_hoisted_2$T,vue.toDisplayString(o.labelsMap.resultsIntro),1),vue.createElementVNode("p",null,[vue.createElementVNode("span",_hoisted_3$H,vue.toDisplayString(t.totalKilos.toLocaleString(t.language,{minimumFractionDigits:3})),1),vue.createTextVNode(" "+vue.toDisplayString(o.labelsMap.kgsOf),1)])])]),_:1}),vue.createVNode(l,{cols:"12",md:"6",class:"vs-carbon-calculator-results__comparison"},{default:vue.withCtx(()=>[vue.createElementVNode("p",{innerHTML:o.interpolComparison},null,8,_hoisted_4$y)]),_:1})]),_:1})]),_:1}),o.totalPerDay<=o.labelsMap.perDayTarget?(vue.openBlock(),vue.createBlock(l,{key:0,cols:"12",class:"vs-carbon-calculator-results__unicorn"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_5$n,[vue.createVNode(d,{name:"unicorn",size:"lg",variant:"tertiary",class:"vs-carbon-calculator-results__unicorn-icon"})]),vue.createElementVNode("div",_hoisted_6$g,[vue.createVNode(i,{level:"3","heading-style":"heading-xs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.labelsMap.perDayCongratulations),1)]),_:1}),vue.createElementVNode("p",null,vue.toDisplayString(o.interpolPerDaySuccess),1)])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{level:"3","heading-style":"heading-xs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.labelsMap.chartTitle),1)]),_:1})]),_:1}),vue.createVNode(l,{class:"vs-carbon-calculator-results__chart-wrapper",cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(m,null,{main:vue.withCtx(({width:g})=>[vue.createVNode(v,{class:"vs-carbon-calculator-results__chart",size:{width:g,height:420},data:o.chartData,margin:o.responsiveMargin(g),direction:a.chartDirection,axis:a.chartAxis},{layers:vue.withCtx(()=>[vue.createVNode(f,{"stroke-dasharray":"2,2"}),vue.createVNode(p,{"data-keys":["name","emissions"],"bar-style":{fill:a.tokens["vs-color-background-highlight"]},gap:20},null,8,["bar-style"])]),_:2},1032,["size","data","margin","direction","axis"])]),_:1})]),_:1})]),_:1},8,["style"])}const VsCarbonCalculatorResults=_export_sfc(_sfc_main$1G,[["render",_sfc_render$1x]]),_sfc_main$1F={name:"VsCarbonCalculatorRunningTotal",status:"prototype",release:"0.0.1",components:{VsIcon},inject:["labelsMap"],props:{totalKilos:{type:Number,default:0},language:{type:String,default:"en-gb"}}},_hoisted_1$1i={class:"vs-carbon-calculator-running-total","data-test":"vs-carbon-calculator-running-total"},_hoisted_2$S={class:"vs-carbon-calculator-running-total__icon"},_hoisted_3$G={class:"vs-carbon-calculator-running-total__content"},_hoisted_4$x={class:"font-weight-bold"};function _sfc_render$1w(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1i,[vue.createElementVNode("div",_hoisted_2$S,[vue.createVNode(i,{name:"notes",size:"lg"})]),vue.createElementVNode("div",_hoisted_3$G,[vue.createElementVNode("p",null,vue.toDisplayString(o.labelsMap.soFar),1),vue.createElementVNode("p",null,[vue.createElementVNode("span",_hoisted_4$x,vue.toDisplayString(t.totalKilos.toLocaleString(t.language,{minimumFractionDigits:3})),1),vue.createTextVNode(" "+vue.toDisplayString(o.labelsMap.kgsOf),1)])])])}const VsCarbonCalculatorRunningTotal=_export_sfc(_sfc_main$1F,[["render",_sfc_render$1w]]),_sfc_main$1E={name:"VsCarbonCalculatorIntro",status:"prototype",release:"0.0.1",components:{VsHeading},inject:["labelsMap"]},_hoisted_1$1h={class:"vs-carbon-calculator-intro","data-test":"vs-carbon-calculator-intro"};function _sfc_render$1v(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1h,[vue.createVNode(i,{level:"2","heading-style":"heading-l"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.labelsMap.introHeading),1)]),_:1}),vue.createElementVNode("p",null,vue.toDisplayString(o.labelsMap.introContent),1)])}const VsCarbonCalculatorIntro=_export_sfc(_sfc_main$1E,[["render",_sfc_render$1v]]);function ownKeys$1(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,n)}return t}function _objectSpread2$1(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?ownKeys$1(Object(t),!0).forEach(function(n){_defineProperty$2(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys$1(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function _defineProperty$2(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function unwrapObj(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((t,n)=>(r.includes(n)||(t[n]=vue.unref(e[n])),t),{})}function isFunction$2(e){return typeof e=="function"}function isProxy(e){return vue.isReactive(e)||vue.isReadonly(e)}function get(e,r,t){let n=e;const a=r.split(".");for(let o=0;o<a.length;o++){if(!n[a[o]])return t;n=n[a[o]]}return n}function gatherBooleanGroupProperties(e,r,t){return vue.computed(()=>e.some(n=>get(r,n,{[t]:!1})[t]))}function gatherArrayGroupProperties(e,r,t){return vue.computed(()=>e.reduce((n,a)=>{const o=get(r,a,{[t]:!1})[t]||[];return n.concat(o)},[]))}function callRule(e,r,t,n){return e.call(n,vue.unref(r),vue.unref(t),n)}function normalizeValidatorResponse(e){return e.$valid!==void 0?!e.$valid:!e}function createAsyncResult(e,r,t,n,a,o,i){let{$lazy:l,$rewardEarly:c}=a,d=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],f=arguments.length>8?arguments[8]:void 0,p=arguments.length>9?arguments[9]:void 0,v=arguments.length>10?arguments[10]:void 0;const m=vue.ref(!!n.value),g=vue.ref(0);t.value=!1;const _=vue.watch([r,n].concat(d,v),()=>{if(l&&!n.value||c&&!p.value&&!t.value)return;let S;try{S=callRule(e,r,f,i)}catch(C){S=Promise.reject(C)}g.value++,t.value=!!g.value,m.value=!1,Promise.resolve(S).then(C=>{g.value--,t.value=!!g.value,o.value=C,m.value=normalizeValidatorResponse(C)}).catch(C=>{g.value--,t.value=!!g.value,o.value=C,m.value=!0})},{immediate:!0,deep:typeof r=="object"});return{$invalid:m,$unwatch:_}}function createSyncResult(e,r,t,n,a,o,i,l){let{$lazy:c,$rewardEarly:d}=n;const f=()=>({}),p=vue.computed(()=>{if(c&&!t.value||d&&!l.value)return!1;let v=!0;try{const m=callRule(e,r,i,o);a.value=m,v=normalizeValidatorResponse(m)}catch(m){a.value=m}return v});return{$unwatch:f,$invalid:p}}function createValidatorResult(e,r,t,n,a,o,i,l,c,d,f){const p=vue.ref(!1),v=e.$params||{},m=vue.ref(null);let g,_;e.$async?{$invalid:g,$unwatch:_}=createAsyncResult(e.$validator,r,p,t,n,m,a,e.$watchTargets,c,d,f):{$invalid:g,$unwatch:_}=createSyncResult(e.$validator,r,t,n,m,a,c,d);const S=e.$message;return{$message:isFunction$2(S)?vue.computed(()=>S(unwrapObj({$pending:p,$invalid:g,$params:unwrapObj(v),$model:r,$response:m,$validator:o,$propertyPath:l,$property:i}))):S||"",$params:v,$pending:p,$invalid:g,$response:m,$unwatch:_}}function sortValidations(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=vue.unref(e),t=Object.keys(r),n={},a={},o={};let i=null;return t.forEach(l=>{const c=r[l];switch(!0){case isFunction$2(c.$validator):n[l]=c;break;case isFunction$2(c):n[l]={$validator:c};break;case l==="$validationGroups":i=c;break;case l.startsWith("$"):o[l]=c;break;default:a[l]=c}}),{rules:n,nestedValidators:a,config:o,validationGroups:i}}const ROOT_PATH="__root";function createValidationResults(e,r,t,n,a,o,i,l,c){const d=Object.keys(e),f=n.get(a,e),p=vue.ref(!1),v=vue.ref(!1),m=vue.ref(0);if(f){if(!f.$partial)return f;f.$unwatch(),p.value=f.$dirty.value}const g={$dirty:p,$path:a,$touch:()=>{p.value||(p.value=!0)},$reset:()=>{p.value&&(p.value=!1)},$commit:()=>{}};return d.length?(d.forEach(_=>{g[_]=createValidatorResult(e[_],r,g.$dirty,o,i,_,t,a,c,v,m)}),g.$externalResults=vue.computed(()=>l.value?[].concat(l.value).map((_,S)=>({$propertyPath:a,$property:t,$validator:"$externalResults",$uid:`${a}-externalResult-${S}`,$message:_,$params:{},$response:null,$pending:!1})):[]),g.$invalid=vue.computed(()=>{const _=d.some(S=>vue.unref(g[S].$invalid));return v.value=_,!!g.$externalResults.value.length||_}),g.$pending=vue.computed(()=>d.some(_=>vue.unref(g[_].$pending))),g.$error=vue.computed(()=>g.$dirty.value?g.$pending.value||g.$invalid.value:!1),g.$silentErrors=vue.computed(()=>d.filter(_=>vue.unref(g[_].$invalid)).map(_=>{const S=g[_];return vue.reactive({$propertyPath:a,$property:t,$validator:_,$uid:`${a}-${_}`,$message:S.$message,$params:S.$params,$response:S.$response,$pending:S.$pending})}).concat(g.$externalResults.value)),g.$errors=vue.computed(()=>g.$dirty.value?g.$silentErrors.value:[]),g.$unwatch=()=>d.forEach(_=>{g[_].$unwatch()}),g.$commit=()=>{v.value=!0,m.value=Date.now()},n.set(a,e,g),g):(f&&n.set(a,e,g),g)}function collectNestedValidationResults(e,r,t,n,a,o,i){const l=Object.keys(e);return l.length?l.reduce((c,d)=>(c[d]=setValidations({validations:e[d],state:r,key:d,parentKey:t,resultsCache:n,globalConfig:a,instance:o,externalResults:i}),c),{}):{}}function createMetaFields(e,r,t){const n=vue.computed(()=>[r,t].filter(g=>g).reduce((g,_)=>g.concat(Object.values(vue.unref(_))),[])),a=vue.computed({get(){return e.$dirty.value||(n.value.length?n.value.every(g=>g.$dirty):!1)},set(g){e.$dirty.value=g}}),o=vue.computed(()=>{const g=vue.unref(e.$silentErrors)||[],_=n.value.filter(S=>(vue.unref(S).$silentErrors||[]).length).reduce((S,C)=>S.concat(...C.$silentErrors),[]);return g.concat(_)}),i=vue.computed(()=>{const g=vue.unref(e.$errors)||[],_=n.value.filter(S=>(vue.unref(S).$errors||[]).length).reduce((S,C)=>S.concat(...C.$errors),[]);return g.concat(_)}),l=vue.computed(()=>n.value.some(g=>g.$invalid)||vue.unref(e.$invalid)||!1),c=vue.computed(()=>n.value.some(g=>vue.unref(g.$pending))||vue.unref(e.$pending)||!1),d=vue.computed(()=>n.value.some(g=>g.$dirty)||n.value.some(g=>g.$anyDirty)||a.value),f=vue.computed(()=>a.value?c.value||l.value:!1),p=()=>{e.$touch(),n.value.forEach(g=>{g.$touch()})},v=()=>{e.$commit(),n.value.forEach(g=>{g.$commit()})},m=()=>{e.$reset(),n.value.forEach(g=>{g.$reset()})};return n.value.length&&n.value.every(g=>g.$dirty)&&p(),{$dirty:a,$errors:i,$invalid:l,$anyDirty:d,$error:f,$pending:c,$touch:p,$reset:m,$silentErrors:o,$commit:v}}function setValidations(e){let{validations:r,state:t,key:n,parentKey:a,childResults:o,resultsCache:i,globalConfig:l={},instance:c,externalResults:d}=e;const f=a?`${a}.${n}`:n,{rules:p,nestedValidators:v,config:m,validationGroups:g}=sortValidations(r),_=_objectSpread2$1(_objectSpread2$1({},l),m),S=n?vue.computed(()=>{const j=vue.unref(t);return j?vue.unref(j[n]):void 0}):t,C=_objectSpread2$1({},vue.unref(d)||{}),w=vue.computed(()=>{const j=vue.unref(d);return n?j?vue.unref(j[n]):void 0:j}),E=createValidationResults(p,S,n,i,f,_,c,w,t),$=collectNestedValidationResults(v,S,f,i,_,c,w),T={};g&&Object.entries(g).forEach(j=>{let[Z,fe]=j;T[Z]={$invalid:gatherBooleanGroupProperties(fe,$,"$invalid"),$error:gatherBooleanGroupProperties(fe,$,"$error"),$pending:gatherBooleanGroupProperties(fe,$,"$pending"),$errors:gatherArrayGroupProperties(fe,$,"$errors"),$silentErrors:gatherArrayGroupProperties(fe,$,"$silentErrors")}});const{$dirty:B,$errors:R,$invalid:L,$anyDirty:te,$error:oe,$pending:Q,$touch:ce,$reset:Y,$silentErrors:ne,$commit:ge}=createMetaFields(E,$,o),me=n?vue.computed({get:()=>vue.unref(S),set:j=>{B.value=!0;const Z=vue.unref(t),fe=vue.unref(d);fe&&(fe[n]=C[n]),vue.isRef(Z[n])?Z[n].value=j:Z[n]=j}}):null;n&&_.$autoDirty&&vue.watch(S,()=>{B.value||ce();const j=vue.unref(d);j&&(j[n]=C[n])},{flush:"sync"});async function de(){return ce(),_.$rewardEarly&&(ge(),await vue.nextTick()),await vue.nextTick(),new Promise(j=>{if(!Q.value)return j(!L.value);const Z=vue.watch(Q,()=>{j(!L.value),Z()})})}function A(j){return(o.value||{})[j]}function F(){vue.isRef(d)?d.value=C:Object.keys(C).length===0?Object.keys(d).forEach(j=>{delete d[j]}):Object.assign(d,C)}return vue.reactive(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},E),{},{$model:me,$dirty:B,$error:oe,$errors:R,$invalid:L,$anyDirty:te,$pending:Q,$touch:ce,$reset:Y,$path:f||ROOT_PATH,$silentErrors:ne,$validate:de,$commit:ge},o&&{$getResultsForChild:A,$clearExternalResults:F,$validationGroups:T}),$))}class ResultsStorage{constructor(){this.storage=new Map}set(r,t,n){this.storage.set(r,{rules:t,result:n})}checkRulesValidity(r,t,n){const a=Object.keys(n),o=Object.keys(t);return o.length!==a.length||!o.every(l=>a.includes(l))?!1:o.every(l=>t[l].$params?Object.keys(t[l].$params).every(c=>vue.unref(n[l].$params[c])===vue.unref(t[l].$params[c])):!0)}get(r,t){const n=this.storage.get(r);if(!n)return;const{rules:a,result:o}=n,i=this.checkRulesValidity(r,t,a),l=o.$unwatch?o.$unwatch:()=>({});return i?o:{$dirty:o.$dirty,$partial:!0,$unwatch:l}}}const CollectFlag={COLLECT_ALL:!0,COLLECT_NONE:!1},VuelidateInjectChildResults=Symbol("vuelidate#injectChildResults"),VuelidateRemoveChildResults=Symbol("vuelidate#removeChildResults");function nestedValidations(e){let{$scope:r,instance:t}=e;const n={},a=vue.ref([]),o=vue.computed(()=>a.value.reduce((f,p)=>(f[p]=vue.unref(n[p]),f),{}));function i(f,p){let{$registerAs:v,$scope:m,$stopPropagation:g}=p;g||r===CollectFlag.COLLECT_NONE||m===CollectFlag.COLLECT_NONE||r!==CollectFlag.COLLECT_ALL&&r!==m||(n[v]=f,a.value.push(v))}t.__vuelidateInjectInstances=[].concat(t.__vuelidateInjectInstances||[],i);function l(f){a.value=a.value.filter(p=>p!==f),delete n[f]}t.__vuelidateRemoveInstances=[].concat(t.__vuelidateRemoveInstances||[],l);const c=vue.inject(VuelidateInjectChildResults,[]);vue.provide(VuelidateInjectChildResults,t.__vuelidateInjectInstances);const d=vue.inject(VuelidateRemoveChildResults,[]);return vue.provide(VuelidateRemoveChildResults,t.__vuelidateRemoveInstances),{childResults:o,sendValidationResultsToParent:c,removeValidationResultsFromParent:d}}function ComputedProxyFactory(e){return new Proxy(e,{get(r,t){return typeof r[t]=="object"?ComputedProxyFactory(r[t]):vue.computed(()=>r[t])}})}let uid=0;function useVuelidate(e,r){var t;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(n=e,e=void 0,r=void 0);let{$registerAs:a,$scope:o=CollectFlag.COLLECT_ALL,$stopPropagation:i,$externalResults:l,currentVueInstance:c}=n;const d=c||((t=vue.getCurrentInstance())===null||t===void 0?void 0:t.proxy),f=d?d.$options:{};a||(uid+=1,a=`_vuelidate_${uid}`);const p=vue.ref({}),v=new ResultsStorage,{childResults:m,sendValidationResultsToParent:g,removeValidationResultsFromParent:_}=d?nestedValidations({$scope:o,instance:d}):{childResults:vue.ref({})};if(!e&&f.validations){const S=f.validations;r=vue.ref({}),vue.onBeforeMount(()=>{r.value=d,vue.watch(()=>isFunction$2(S)?S.call(r.value,new ComputedProxyFactory(r.value)):S,C=>{p.value=setValidations({validations:C,state:r,childResults:m,resultsCache:v,globalConfig:n,instance:d,externalResults:l||d.vuelidateExternalResults})},{immediate:!0})}),n=f.validationsConfig||n}else{const S=vue.isRef(e)||isProxy(e)?e:vue.reactive(e||{});vue.watch(S,C=>{p.value=setValidations({validations:C,state:r,childResults:m,resultsCache:v,globalConfig:n,instance:d??{},externalResults:l})},{immediate:!0})}return d&&(g.forEach(S=>S(p,{$registerAs:a,$scope:o,$stopPropagation:i})),vue.onBeforeUnmount(()=>_.forEach(S=>S(a)))),vue.computed(()=>_objectSpread2$1(_objectSpread2$1({},vue.unref(p.value)),m.value))}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,n)}return t}function _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(n){_defineProperty$1(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function _defineProperty$1(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function isFunction$1(e){return typeof e=="function"}function isObject$1(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function normalizeValidatorObject(e){return isFunction$1(e.$validator)?_objectSpread2({},e):{$validator:e}}function unwrapValidatorResponse(e){return typeof e=="object"?e.$valid:e}function unwrapNormalizedValidator(e){return e.$validator||e}function withParams(e,r){if(!isObject$1(e))throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);if(!isObject$1(r)&&!isFunction$1(r))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const t=normalizeValidatorObject(r);return t.$params=_objectSpread2(_objectSpread2({},t.$params||{}),e),t}function withMessage(e,r){if(!isFunction$1(e)&&typeof vue.unref(e)!="string")throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`);if(!isObject$1(r)&&!isFunction$1(r))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const t=normalizeValidatorObject(r);return t.$message=e,t}function withAsync(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const t=normalizeValidatorObject(e);return _objectSpread2(_objectSpread2({},t),{},{$async:!0,$watchTargets:r})}function forEach(e){return{$validator(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return vue.unref(r).reduce((o,i,l)=>{const c=Object.entries(i).reduce((d,f)=>{let[p,v]=f;const m=e[p]||{},g=Object.entries(m).reduce((_,S)=>{let[C,w]=S;const $=unwrapNormalizedValidator(w).call(this,v,i,l,...n),T=unwrapValidatorResponse($);if(_.$data[C]=$,_.$data.$invalid=!T||!!_.$data.$invalid,_.$data.$error=_.$data.$invalid,!T){let B=w.$message||"";const R=w.$params||{};typeof B=="function"&&(B=B({$pending:!1,$invalid:!T,$params:R,$model:v,$response:$})),_.$errors.push({$property:p,$message:B,$params:R,$response:$,$model:v,$pending:!1,$validator:C})}return{$valid:_.$valid&&T,$data:_.$data,$errors:_.$errors}},{$valid:!0,$data:{},$errors:[]});return d.$data[p]=g.$data,d.$errors[p]=g.$errors,{$valid:d.$valid&&g.$valid,$data:d.$data,$errors:d.$errors}},{$valid:!0,$data:{},$errors:{}});return{$valid:o.$valid&&c.$valid,$data:o.$data.concat(c.$data),$errors:o.$errors.concat(c.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:r=>{let{$response:t}=r;return t?t.$errors.map(n=>Object.values(n).map(a=>a.map(o=>o.$message)).reduce((a,o)=>a.concat(o),[])):[]}}}const req=e=>{if(e=vue.unref(e),Array.isArray(e))return!!e.length;if(e==null)return!1;if(e===!1)return!0;if(e instanceof Date)return!isNaN(e.getTime());if(typeof e=="object"){for(let r in e)return!0;return!1}return!!String(e).length},len=e=>(e=vue.unref(e),Array.isArray(e)?e.length:typeof e=="object"?Object.keys(e).length:String(e).length);function regex(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return n=>(n=vue.unref(n),!req(n)||r.every(a=>(a.lastIndex=0,a.test(n))))}var common$1=Object.freeze({__proto__:null,forEach,len,normalizeValidatorObject,regex,req,unwrap:vue.unref,unwrapNormalizedValidator,unwrapValidatorResponse,withAsync,withMessage,withParams});regex(/^[a-zA-Z]*$/);regex(/^[a-zA-Z0-9]*$/);regex(/^\d*(\.\d+)?$/);const emailRegex=/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;var email$1=regex(emailRegex),email={$validator:email$1,$message:"Value is not a valid email address",$params:{type:"email"}};function maxLength$1(e){return r=>!req(r)||len(r)<=vue.unref(e)}function maxLength(e){return{$validator:maxLength$1(e),$message:r=>{let{$params:t}=r;return`The maximum length allowed is ${t.max}`},$params:{max:e,type:"maxLength"}}}function minLength$1(e){return r=>!req(r)||len(r)>=vue.unref(e)}function minLength(e){return{$validator:minLength$1(e),$message:r=>{let{$params:t}=r;return`This field should be at least ${t.min} characters long`},$params:{min:e,type:"minLength"}}}function required$1(e){return typeof e=="string"&&(e=e.trim()),req(e)}var required={$validator:required$1,$message:"Value is required",$params:{type:"required"}};const urlRegex=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;regex(urlRegex);regex(/(^[0-9]*$)|(^-[0-9]+$)/);regex(/^[-]?\d*(\.\d+)?$/);const postcode=common$1.regex(/^([A-Za-z][A-HJ-Ya-hj-y]?\d[A-Za-z\d]? ?\d[A-Za-z]{2}|GIR ?0A{2})$/),validateFormElementMixin={data(){return{inputVal:this.value,isInvalid:this.invalid}},computed:{isRequired(){return typeof required<"u"&&"required"in this.validationRules},rules(){let e={};for(const[r,t]of Object.entries(this.validationRules))r==="required"?e={...e,required}:r==="email"?e={...e,email}:r==="minLength"?e={...e,minLength:minLength(t)}:r==="maxLength"?e={...e,maxLength:maxLength(t)}:r==="invalidVal"?e={...e,noInvalid:()=>this.inputVal.indexOf(this.validationRules.invalidVal)===-1}:r==="postcode"&&(e={...e,postcode});return typeof e<"u"?(e={...e},{inputVal:e}):{}},errorsList(){const e=[];return Object.keys(this.rules.inputVal).forEach(t=>{this.v$.$errors&&this.v$.$errors.forEach(n=>{n.$validator===t&&e.push(t)})}),e}},watch:{errorsList(e){e.length?this.isInvalid=!0:this.isInvalid=!1}},methods:{manualValidate(){if(this.isInvalid=!1,"required"in this.rules.inputVal){let e=!1;typeof this.inputVal=="string"?/\S/.test(this.inputVal)||(e=!0):this.inputVal||(e=!0),e&&this.errorsList.indexOf("required")===-1&&this.errorsList.push("required")}else this.errorsList.forEach((e,r)=>{e==="required"&&this.errorsList.splice(r,1)});this.errorsList.length&&(this.isInvalid=!0),this.touched=!0,this.$emit("status-update",{field:this.fieldName,value:this.inputVal,errors:this.errorsList})},emitStatus(){setTimeout(()=>{this.manualValidate(),this.touched=!0,this.v$.$touch()},50)}}},ariaDescriptionMixin={computed:{ariaDescription(){return this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?`error-${this.fieldName}`:this.hintText?`hint-${this.fieldName}`:null}}},_sfc_main$1D={name:"VsRadioButton",status:"prototype",release:"0.0.1",components:{BFormRadioGroup:bootstrapVueNext.BFormRadioGroup,BFormRadio:bootstrapVueNext.BFormRadio},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{value:{type:String,default:""},fieldName:{type:String,required:!0},validationRules:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},genericValidation:{type:Object,default(){return{}}},reAlertErrors:{type:Boolean,default:!1},options:{type:Array,required:!0},hintText:{type:String,default:""}},emits:["updated","updateFieldData"],setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,clearErrorsOnFocus:!1,checkedValue:this.value}},computed:{elementClass(){const e=this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":"",r=`vs-input--${this.fieldName}`;return`${e} ${r}`},showClearButton(){return!!(this.inputVal.length&&this.clearButtonText!=="")},errorClass(){return this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":""}},watch:{triggerValidate(){this.manualValidate()},inputVal(e){this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e}},methods:{clearInput(){this.inputVal=""},focusOnInput(){this.$nextTick(()=>{this.$refs.input.$el.focus()})},validateErrors(){this.clearErrorsOnFocus=!1,this.emitStatus()},resetErrors(){this.clearErrorsOnFocus=!0},valueChanged(e){this.checkedValue=e.value,this.$emit("updateFieldData",e)}},validations(){return this.rules}},_hoisted_1$1g={class:"vs-radio-button","data-test":"vs-radio-button"},_hoisted_2$R=["id"],_hoisted_3$F={class:"visually-hidden"},_hoisted_4$w=["id"];function _sfc_render$1u(e,r,t,n,a,o){const i=vue.resolveComponent("BFormRadio"),l=vue.resolveComponent("BFormRadioGroup");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1g,[e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:0,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,c=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:c,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_3$F,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[c]||t.genericValidation[c]),1)])),[[vue.vShow,!t.reAlertErrors&&!a.clearErrorsOnFocus]])),128))],8,_hoisted_2$R)):vue.createCommentVNode("",!0),vue.createVNode(l,{id:t.fieldName,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,onBlur:o.validateErrors,onChange:o.validateErrors,onFocus:o.resetErrors},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.options,(c,d)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-radio-button__option",[a.checkedValue===c.value?"vs-radio-button__option--checked":"",{"vs-radio-button__option--disabled":c.disabled}]]),key:d},[vue.createVNode(i,{value:c.value,name:t.fieldName,id:t.fieldName+c.value,onChange:f=>o.valueChanged({field:t.fieldName,value:c.value}),disabled:c.disabled},{default:vue.withCtx(()=>[vue.createElementVNode("span",null,vue.toDisplayString(c.text),1)]),_:2},1032,["value","name","id","onChange","disabled"])],2))),128))]),_:1},8,["id","aria-invalid","aria-describedby","onBlur","onChange","onFocus"]),t.hintText?(vue.openBlock(),vue.createElementBlock("p",{key:1,class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_4$w)):vue.createCommentVNode("",!0)])}const VsRadioButton=_export_sfc(_sfc_main$1D,[["render",_sfc_render$1u]]),_sfc_main$1C={name:"VsInput",status:"prototype",release:"0.0.1",components:{BFormInput:bootstrapVueNext.BFormInput,VsButton},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{value:{type:Number,default:0},fieldName:{type:String,required:!0},minimumNumber:{type:Number,default:0},maximumNumber:{type:Number,default:10},autoComplete:{type:Boolean,default:!0},validationRules:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},genericValidation:{type:Object,default(){return{}}},hintText:{type:String,default:""},clearButtonText:{type:String,default:""},reAlertErrors:{type:Boolean,default:!1}},emits:["updated"],setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,clearErrorsOnFocus:!1}},computed:{elementClass(){const e=this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":"",r=`vs-input--${this.fieldName}`;return`${e} ${r}`},showClearButton(){return!!(this.inputVal.length&&this.clearButtonText!=="")},errorClass(){return this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":""}},watch:{triggerValidate(){this.manualValidate()},inputVal(e){this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e}},methods:{clearInput(){this.inputVal=0},focusOnInput(){this.$nextTick(()=>{this.$refs.input.$el.focus()})},clearInputAndFocus(){this.clearInput(),this.focusOnInput()},controlBlurred(){this.inputVal<this.minimumNumber&&(this.inputVal=this.minimumNumber),this.inputVal>this.maximumNumber&&(this.inputVal=this.maximumNumber),this.validateErrors()},validateErrors(){this.clearErrorsOnFocus=!1,this.emitStatus()},resetErrors(){this.clearErrorsOnFocus=!0},decrementValue(e){e&&e.preventDefault(),this.inputVal=Math.max(this.inputVal-1,this.minimumNumber)},incrementValue(e){e&&e.preventDefault(),this.inputVal=Math.min(this.inputVal+1,this.maximumNumber)}},validations(){return this.rules}},_hoisted_1$1f={"data-test":"vs-number-input"},_hoisted_2$Q=["id"],_hoisted_3$E=["id"],_hoisted_4$v={class:"visually-hidden"},_hoisted_5$m={class:"visually-hidden"};function _sfc_render$1t(e,r,t,n,a,o){const i=vue.resolveComponent("VsButton"),l=vue.resolveComponent("BFormInput");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1f,[t.hintText?(vue.openBlock(),vue.createElementBlock("p",{key:0,class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_2$Q)):vue.createCommentVNode("",!0),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:1,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,c=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:c,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$v,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[c]||t.genericValidation[c]),1)])),[[vue.vShow,!t.reAlertErrors&&!a.clearErrorsOnFocus]])),128))],8,_hoisted_3$E)):vue.createCommentVNode("",!0),vue.createVNode(i,{class:"vs-number-input__increment","icon-only":!0,size:"sm",icon:"minus",disabled:a.inputVal<=t.minimumNumber?!0:null,onClick:o.decrementValue},{default:vue.withCtx(()=>[vue.createTextVNode(" Remove 1 ")]),_:1},8,["disabled","onClick"]),vue.createVNode(l,{ref:"input",type:"Number",class:vue.normalizeClass(["vs-number-input",o.elementClass]),modelValue:a.inputVal,"onUpdate:modelValue":r[0]||(r[0]=c=>a.inputVal=c),id:t.fieldName,name:t.fieldName,required:e.isRequired,v:a.inputVal,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,maxlength:t.validationRules.maxLength?t.validationRules.maxLength:null,minlength:t.validationRules.minLength?t.validationRules.minLength:null,min:t.minimumNumber||null,max:t.maximumNumber||null,onBlur:o.controlBlurred,onChange:o.validateErrors,onFocus:o.resetErrors},null,8,["modelValue","class","id","name","required","v","aria-invalid","aria-describedby","maxlength","minlength","min","max","onBlur","onChange","onFocus"]),vue.createVNode(i,{class:"vs-number-input__increment","icon-only":!0,size:"sm",icon:"plus",disabled:a.inputVal>=t.maximumNumber?!0:null,onClick:o.incrementValue},{default:vue.withCtx(()=>[vue.createTextVNode(" Add 1 ")]),_:1},8,["disabled","onClick"]),o.showClearButton?(vue.openBlock(),vue.createBlock(i,{key:2,class:"vs-number-input__clear-button d-none d-lg-block","data-test":"input-clear-button",variant:"transparent",icon:"close",size:"md","icon-only":"",onClick:r[1]||(r[1]=vue.withModifiers(c=>o.clearInputAndFocus(),["prevent"]))},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_5$m,vue.toDisplayString(t.clearButtonText),1)]),_:1})):vue.createCommentVNode("",!0)])}const VsNumberInput=_export_sfc(_sfc_main$1C,[["render",_sfc_render$1t]]),_sfc_main$1B={name:"VsCarbonCalculatorQuestion",status:"prototype",release:"0.0.1",components:{BFormGroup:bootstrapVueNext.BFormGroup,VsRadioButton,VsNumberInput},props:{label:{type:String,required:!0},labelFor:{type:String,required:!0},hint:{type:String,default:""},fieldClass:{type:String,required:!0},fieldType:{type:String,default:"radio",validator:e=>e.match(/(radio|number)/)},fieldName:{type:String,required:!0},options:{type:Array,required:!0},minimum:{type:Number,default:0},maximum:{type:Number,default:0}},emits:["updateFieldData"],methods:{valueChanged(e){this.$emit("updateFieldData",e)}}},_hoisted_1$1e=["for"];function _sfc_render$1s(e,r,t,n,a,o){const i=vue.resolveComponent("VsRadioButton"),l=vue.resolveComponent("VsNumberInput"),c=vue.resolveComponent("BFormGroup");return vue.openBlock(),vue.createBlock(c,{class:vue.normalizeClass([t.fieldClass,"vs-carbon-calculator-question"]),"data-test":"vs-carbon-calculator-question"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(t.fieldClass)},[vue.createElementVNode("label",{class:"vs-carbon-calculator-question__label mb-200",for:t.fieldName},vue.toDisplayString(t.label),9,_hoisted_1$1e),t.fieldType==="radio"?(vue.openBlock(),vue.createBlock(i,{key:0,"field-name":t.fieldName,options:t.options,required:!0,"hint-text":t.hint,onUpdateFieldData:o.valueChanged},null,8,["field-name","options","hint-text","onUpdateFieldData"])):vue.createCommentVNode("",!0),t.fieldType==="number"?(vue.openBlock(),vue.createBlock(l,{key:1,"field-name":t.fieldName,"increment-controls":!0,value:0,"minimum-number":t.minimum,"maximum-number":t.maximum,"hint-text":t.hint,onUpdated:o.valueChanged},null,8,["field-name","minimum-number","maximum-number","hint-text","onUpdated"])):vue.createCommentVNode("",!0)],2)]),_:1},8,["class"])}const VsCarbonCalculatorQuestion=_export_sfc(_sfc_main$1B,[["render",_sfc_render$1s]]),_sfc_main$1A={name:"VsCarbonCalculator",status:"prototype",release:"0.0.1",components:{VsButton,VsContainer,VsCol,VsRow,VsWarning,VsProgressBar,VsHeading,VsCarbonCalculatorResults,VsCarbonCalculatorTip,VsCarbonCalculatorRunningTotal,VsCarbonCalculatorIntro,VsCarbonCalculatorQuestion},mixins:[dataLayerMixin],provide(){return{labelsMap:this.labelsMap}},props:{labelsMap:{type:Object,required:!0},language:{type:String,default:"en-gb"}},data(){return this.initialState()},computed:{currentQuestion(){return!this.formData||!this.activeStage?null:this.formData.fields[this.activeStage-1]},currentTip(){return this.activeStage&&this.labelsMap[`stage-${this.activeStage}.tip`]?this.labelsMap[`stage-${this.activeStage}.tip`]:""},stayDuration(){return this.form.howLongStay?parseInt(this.form.howLongStay,10):0},currentCategory(){return this.labelsMap[`stage-${this.activeStage}.title`]?this.labelsMap[`stage-${this.activeStage}.title`]:""},activeStageRepeatable(){return this.labelsMap[`stage-${this.activeStage}.repeat`]?this.labelsMap[`stage-${this.activeStage}.repeat`]:""}},mounted(){this.getFormData()},methods:{initialState(){return{formData:{},messagingData:{},form:{},formIsInvalid:!1,showErrorMessage:!1,errorFields:[],triggerValidate:!1,conditionalFields:{},reAlertErrors:!1,totalKilos:0,transportKilos:0,accommodationKilos:0,foodKilos:0,transportTip:null,foodTip:null,accommodationTip:null,transportInternalTip:null,activeStage:0,answerSet:!1,repeatableStages:{}}},restart(){const{formData:e,repeatableStages:r}=this;Object.assign(this.$data,this.initialState()),this.$data.formData=e,this.$data.repeatableStages=r,this.cleanFields()},cleanFields(){for(let e=this.formData.fields.length-1;e>=0;e--)this.formData.fields[e].isClone&&this.formData.fields.splice(e,1);for(let e=0;e<Object.keys(this.repeatableStages).length;e++)this.repeatableStages[Object.keys(this.repeatableStages)[e]].generations=0},getFormData(){axios.get(this.labelsMap.formUrl).then(e=>{if(this.formData=e.data,e.data.fields.forEach(r=>{this.form[r.name]="",r.conditional&&(this.conditionalFields[r.name]=!1)}),this.repeatableStages={},e.data.repeatableStages)for(let r=0;r<e.data.repeatableStages.length;r++)this.repeatableStages[e.data.repeatableStages[r]]={generations:0}})},getMessagingData(e,r){return Object.keys(this.messagingData).length>0?this.messagingData[r][e]:e==="validation"?{}:""},getQuestionLabel(e,r){if(e.isClone){if(this.labelsMap[`question-${e.originalNumber+1}.clone-question`])return this.labelsMap[`question-${e.originalNumber+1}.clone-question`];if(this.labelsMap[`question-${e.originalNumber+1}.question`])return this.labelsMap[`question-${e.originalNumber+1}.question`]}return this.labelsMap[`question-${r+1}.question`]?this.labelsMap[`question-${r+1}.question`]:""},getQuestionHint(e,r){if(e.isClone){if(this.labelsMap[`question-${e.originalNumber+1}.clone-hint`])return this.labelsMap[`question-${e.originalNumber+1}.clone-hint`];if(this.labelsMap[`question-${e.originalNumber+1}.hint`])return this.labelsMap[`question-${e.originalNumber+1}.hint`]}return this.labelsMap[`question-${r+1}.hint`]?this.labelsMap[`question-${r+1}.hint`]:""},getQuestionOptions(e,r){let t;if(e.isClone?t=e.originalNumber:t=r,e.element==="radio"){const{options:n}=e;for(let a=0;a<n.length;a++)n[a].text=this.labelsMap[`question-${t+1}.option-${a+1}`];return n}return[]},updateFieldData(e){this.form[e.field]=e.value||"",e.value?this.answerSet=!0:this.answerSet=!1,this.manageErrorStatus(e.field,e.errors),this.checkConditionalFields(),this.calculateEmissions()},manageErrorStatus(e,r){const t=this.errorFields.indexOf(e);t!==-1?(!r||r.length<1)&&this.errorFields.splice(t,1):r&&r.length>0&&this.errorFields.push(e)},getRadioValue(e,r){if(!r)return 0;let t;for(let a=0;a<this.formData.fields.length;a++)this.formData.fields[a].name===e&&(t=this.formData.fields[a]);const n=t.values[r];if(t.multiplyByNumber)return n*t.multiplyByNumber;if(t.multiplyByAnswer){let a=this.form[t.multiplyByAnswer.question]||0;return a=Math.max(a,t.multiplyByAnswer.minimum),n*a}if(t.multiplyByValue&&e!==t.multiplyByValue){let a=this.getNumberValue(t.multiplyByValue.question,this.form[t.multiplyByValue.question])||0;return a=Math.max(a,t.multiplyByValue.minimum),n*a}return n},getNumberValue(e,r){if(!r)return 0;let t;for(let n=0;n<this.formData.fields.length;n++)this.formData.fields[n].name===e&&(t=this.formData.fields[n]);if(t.multiplyByNumber)return parseInt(r,10)*t.multiplyByNumber;if(t.multiplyByAnswer){const n=this.form[t.multiplyByAnswer.question]||0;return parseInt(r,10)*n}if(t.multiplyByValue&&e!==t.multiplyByValue){const n=this.getNumberValue(t.multiplyByValue.question,this.form[t.multiplyByValue.question]);return parseInt(r,10)*n}return 0},getFieldValue(e){return e.element==="radio"?this.getRadioValue(e.name,this.form[e.name]):e.element==="number"?this.getNumberValue(e.name,this.form[e.name]):0},calculateEmissions(){this.transportKilos=0,this.accommodationKilos=0,this.foodKilos=0;for(let e=0;e<this.formData.fields.length;e++){const r=this.formData.fields[e];switch(r.stage){case 1:case 3:this.transportKilos+=this.getFieldValue(r);break;case 2:this.accommodationKilos+=this.getFieldValue(r);break;case 4:this.foodKilos+=this.getFieldValue(r);break}}this.totalKilos=this.transportKilos+this.accommodationKilos+this.foodKilos},checkConditionalFields(){Object.keys(this.conditionalFields).forEach(e=>{const r=this.formData.fields.find(n=>n.name===e);let t=!0;Object.keys(r.conditional).forEach(n=>{const a=r.conditional[n];Array.isArray(a)?a.indexOf(this.form[n])===-1&&(t=!1):this.form[n]!==a&&(t=!1),t?this.conditionalFields[e]=!0:(this.conditionalFields[e]=!1,this.manageErrorStatus(e,[]))})})},forwardPage(e){e&&e.preventDefault(),this.activeStage&&this.createDataLayerObject("carbonQuestionEvent",{questionNumber:this.activeStage,answer:this.form[this.currentQuestion.name]}),this.activeStage+=1,this.checkNewAnswerSet(),this.resetFocus()},backwardPage(e){e&&e.preventDefault(),this.activeStage-=1,this.checkNewAnswerSet(),this.resetFocus()},checkNewAnswerSet(){if(this.activeStage>this.formData.stages){this.answerSet=!0;return}this.answerSet=!0;for(let e=0;e<this.formData.fields.length;e++)if(this.formData.fields[e].stage===this.activeStage){const r=this.formData.fields[e];r.element==="radio"&&!this.form[r.name]?this.answerSet=!1:r.element==="number"&&!this.form[r.name]&&(this.form[r.name]=r.validation.min)}},isRepeatable(e){return!!(this.repeatableStages[e]&&this.repeatableStages[e].generations<3)},conditionalElementClass(e){return this.conditionalFields[e]===!0||typeof this.conditionalFields[e]>"u"?"":"d-none"},resetFocus(){this.$nextTick(()=>{this.$nextTick(()=>{try{this.$refs.questions[this.activeStage-1].$el.focus(),this.$refs.progress.$el.scrollIntoView()}catch{}})})},duplicateCurrentStage(e){e&&e.preventDefault();const r=this.repeatableStages[this.activeStage].generations+1;for(let t=0;t<this.formData.fields.length;t++){const n=this.formData.fields[t];if(n.stage===this.activeStage&&!n.isClone){const a=JSON.parse(JSON.stringify(n));a.isClone=!0;const o=`${n.name}${r}`;a.name=o,a.originalNumber=t,this.form[o]="",this.formData.fields.push(a)}}this.repeatableStages[this.activeStage].generations=r}}},_hoisted_1$1d={class:"vs-carbon-calculator__wrapper"},_hoisted_2$P={key:1};function _sfc_render$1r(e,r,t,n,a,o){const i=vue.resolveComponent("VsCarbonCalculatorIntro"),l=vue.resolveComponent("VsProgressBar"),c=vue.resolveComponent("VsHeading"),d=vue.resolveComponent("VsCarbonCalculatorQuestion"),f=vue.resolveComponent("VsButton"),p=vue.resolveComponent("VsCarbonCalculatorTip"),v=vue.resolveComponent("VsCol"),m=vue.resolveComponent("VsCarbonCalculatorRunningTotal"),g=vue.resolveComponent("VsCarbonCalculatorResults"),_=vue.resolveComponent("VsRow"),S=vue.resolveComponent("VsContainer"),C=vue.resolveComponent("VsWarning");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1d,[vue.createVNode(S,{class:"vs-carbon-calculator","data-test":"vs-carbon-calculator"},{default:vue.withCtx(()=>[e.formData&&e.formData.fields?(vue.openBlock(),vue.createBlock(_,{key:0,class:"vs-carbon-calculator__survey"},{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[e.activeStage?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(i,{key:0})),e.activeStage?(vue.openBlock(),vue.createElementBlock("form",_hoisted_2$P,[vue.createElementVNode("fieldset",null,[vue.createVNode(l,{max:e.formData.stages,"current-step":e.activeStage<=e.formData.stages?e.activeStage:e.formData.stages,"is-stepped":!0,"is-full":e.activeStage>e.formData.stages,"progress-label":t.labelsMap.progress,ref:"progress"},null,8,["max","current-step","is-full","progress-label"]),vue.withDirectives(vue.createElementVNode("div",null,[o.currentCategory?(vue.openBlock(),vue.createBlock(c,{key:0,level:"2","heading-style":"heading-m",class:"vs-carbon-calculator__category-heading"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.currentCategory),1)]),_:1})):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.formData.fields,(w,E)=>vue.withDirectives((vue.openBlock(),vue.createBlock(d,{ref_for:!0,ref:"questions",tabindex:"0",key:w.name,label:o.getQuestionLabel(w,E),"label-for":w.name,hint:o.getQuestionHint(w,E),"field-class":o.conditionalElementClass(w.name),"field-type":w.element,"field-name":w.name,options:o.getQuestionOptions(w,E),minimum:w.element==="number"?w.validation.min:0,maximum:w.element==="number"?w.validation.max:0,onUpdateFieldData:o.updateFieldData},null,8,["label","label-for","hint","field-class","field-type","field-name","options","minimum","maximum","onUpdateFieldData"])),[[vue.vShow,w.stage===e.activeStage]])),128))],512),[[vue.vShow,e.activeStage<=e.formData.fields.length]])])])):vue.createCommentVNode("",!0),o.isRepeatable(e.activeStage)?(vue.openBlock(),vue.createBlock(f,{key:2,class:"my-100",variant:"secondary",icon:"plus",onClick:r[0]||(r[0]=w=>o.duplicateCurrentStage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.activeStageRepeatable),1)]),_:1})):vue.createCommentVNode("",!0),o.currentTip?(vue.openBlock(),vue.createBlock(p,{key:3,tip:o.currentTip},null,8,["tip"])):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(v,{cols:"12"},{default:vue.withCtx(()=>[e.activeStage>0&&e.activeStage<=e.formData.stages?(vue.openBlock(),vue.createBlock(m,{key:0,"total-kilos":e.totalKilos,language:t.language},null,8,["total-kilos","language"])):vue.createCommentVNode("",!0),e.activeStage>e.formData.stages?(vue.openBlock(),vue.createBlock(g,{key:1,"total-kilos":e.totalKilos,"transport-kilos":e.transportKilos,"food-kilos":e.foodKilos,"accommodation-kilos":e.accommodationKilos,"stay-duration":o.stayDuration,"comparison-replacements":e.formData.comparisonReplacements,language:t.language},null,8,["total-kilos","transport-kilos","food-kilos","accommodation-kilos","stay-duration","comparison-replacements","language"])):vue.createCommentVNode("",!0)]),_:1}),e.activeStage===0?(vue.openBlock(),vue.createBlock(v,{key:0,class:"text-center",cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(f,{variant:"primary",type:"submit",class:"vs-form__submit mt-300",onClick:r[1]||(r[1]=w=>o.forwardPage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.begin),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),e.activeStage>0?(vue.openBlock(),vue.createBlock(v,{key:1,cols:"12"},{default:vue.withCtx(()=>[e.activeStage>1?(vue.openBlock(),vue.createBlock(f,{key:0,variant:"secondary",type:"submit",class:"vs-form__submit mt-300 float-start",ref:"backPage",onClick:r[2]||(r[2]=w=>o.backwardPage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.previous),1)]),_:1},512)):vue.createCommentVNode("",!0),e.activeStage<e.formData.stages?(vue.openBlock(),vue.createBlock(f,{key:1,variant:"primary",type:"submit",class:"vs-form__submit mt-300 float-end",ref:"forwardPage",disabled:e.activeStage>0&&!e.answerSet,onClick:r[3]||(r[3]=w=>o.forwardPage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.next),1)]),_:1},8,["disabled"])):vue.createCommentVNode("",!0),e.activeStage===e.formData.stages?(vue.openBlock(),vue.createBlock(f,{key:2,variant:"primary",type:"submit",class:"vs-form__submit mt-300 float-end",disabled:!e.answerSet,onClick:r[4]||(r[4]=w=>o.forwardPage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.results),1)]),_:1},8,["disabled"])):vue.createCommentVNode("",!0),e.activeStage>e.formData.stages?(vue.openBlock(),vue.createBlock(f,{key:3,variant:"primary",type:"submit",class:"vs-form__submit mt-300 float-end",onClick:r[5]||(r[5]=w=>o.restart())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.restart),1)]),_:1})):vue.createCommentVNode("",!0)]),_:1})):vue.createCommentVNode("",!0)]),_:1})):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(C,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.noJsMessage),1)]),_:1})])}const CarbonCalculator=_export_sfc(_sfc_main$1A,[["render",_sfc_render$1r]]),noJsClass="no-js",jsIsDisabled=()=>document.getElementsByClassName(noJsClass).length>0,useVideoStore=pinia.defineStore("video",{state:()=>({videos:{}}),actions:{addVideo(e){this.videos[e.videoId]={...e}}}}),_sfc_main$1z={name:"VsStretchedLinkCard",status:"prototype",release:"0.0.1",components:{VsHeading,VsLink,VsImg,VsButton,VsWarning},inject:{noJsMessage:{default:null},theme:{default:null}},props:{link:{type:String,required:!0,default:"#"},headingLevel:{type:[String,Number],default:"3",validator:e=>e.match(/(1|2|3|4|5|6)/)},headingStyle:{type:[String,Number],default:"heading-xs",validator:e=>e.match(/(display-l|display-m|display-s|display-xs|heading-xxl|heading-xl|heading-l|heading-m|heading-s|heading-xs|heading-xxs)/)},type:{type:String,required:!0,validator:e=>e.match(/(default|external|internal|download|video)/)},imgSrc:{type:String,default:void 0},imgAlt:{type:String,default:""},disabled:{type:Boolean,default:!1},videoId:{type:String,default:""},videoBtnText:{type:String,default:""},errorMessage:{type:String,default:""},errorType:{type:String,default:"image",validator:e=>e.match(/(image|full)/)},warningSize:{type:String,default:"small",validator:e=>e.match(/(normal|small)/)}},setup(){return{videoStore:useVideoStore()}},data(){return{jsDisabled:!0}},computed:{formattedVideoBtnText(){return`${this.videoBtnText} | `},formattedVideoDuration(){let e=`${this.videoDetails.videoFullDuration.seconds}`;return e.length===1&&(e=`0${e}`),`${this.videoDetails.videoFullDuration.minutes}:${e}`},stretchedLinkCardClasses(){let e="";return this.disabled&&(e+="vs-stretched-link-card--disabled"),this.type==="video"&&(e+=" vs-stretched-link-card--video"),this.showWarning&&this.type==="video"&&(e+=" vs-stretched-link-card--warning"),e},videoDetails(){return this.videoStore.videos[this.videoId]},videoLoaded(){return typeof this.videoDetails<"u"&&this.videoDetails.videoDuration>0},warningClass(){let e="";return this.videoId&&this.jsDisabled&&(e="vs-stretched-link-card__img-container--warning ",this.errorType==="full"&&(e+="vs-stretched-link-card__img-container--warning-full")),e},showWarning(){return!!this.jsDisabled},warningMessage(){return this.errorMessage},warningAttrs(){const e={};return this.size==="small"&&(e.size="sm"),e}},mounted(){this.jsDisabled=jsIsDisabled()},methods:{emitShowModal(){this.videoId&&this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}},_hoisted_1$1c={key:0,class:"vs-stretched-link-card__video-btn-text"},_hoisted_2$O={key:1,class:"vs-stretched-link-card__category","data-test":"vs-stretched-link-card__category"},_hoisted_3$D={class:"vs-stretched-link-card__content","data-test":"vs-stretched-link-card__content"},_hoisted_4$u={key:3,class:"vs-stretched-link-card__badges","data-test":"vs-stretched-link-card__badges"};function _sfc_render$1q(e,r,t,n,a,o){const i=vue.resolveComponent("VsWarning"),l=vue.resolveComponent("VsImg"),c=vue.resolveComponent("VsButton"),d=vue.resolveComponent("VsLink"),f=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["card vs-stretched-link-card",o.stretchedLinkCardClasses]),"data-test":"vs-stretched-link-card",onClick:r[0]||(r[0]=(...p)=>o.emitShowModal&&o.emitShowModal(...p)),onKeypress:r[1]||(r[1]=(...p)=>o.emitShowModal&&o.emitShowModal(...p))},[o.showWarning==="full"?(vue.openBlock(),vue.createBlock(i,{key:0,size:t.warningSize,type:"normal","data-test":"vs-stretched-link-card__full-warning",class:"vs-stretched-link-card__full-warning"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.warningMessage),1)]),_:1},8,["size"])):vue.createCommentVNode("",!0),t.errorType==="full"&&t.videoId!==""?(vue.openBlock(),vue.createBlock(i,{key:1,size:t.warningSize,"data-test":"vs-stretched-link-card__full-warning",class:"vs-stretched-link-card__full-warning vs-stretched-link-card__full-warning--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.noJsMessage),1)]),_:1},8,["size"])):vue.createCommentVNode("",!0),t.imgSrc?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["vs-stretched-link-card__img-container",o.warningClass])},[t.imgSrc?(vue.openBlock(),vue.createBlock(l,{key:0,src:t.imgSrc,alt:t.imgAlt,class:"vs-stretched-link-card__img","data-test":"vs-stretched-link-card__img","data-chromatic":"ignore"},null,8,["src","alt"])):vue.createCommentVNode("",!0),o.showWarning==="image"?(vue.openBlock(),vue.createBlock(i,{key:1,size:t.warningSize,type:"normal","data-test":"vs-stretched-link-card__image-warning",class:"vs-stretched-link-card__image-warning"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.warningMessage),1)]),_:1},8,["size"])):vue.createCommentVNode("",!0),t.videoId!==""&&t.errorType==="image"?(vue.openBlock(),vue.createBlock(i,{key:2,size:t.warningSize,"data-test":"vs-stretched-link-card__warning",class:"vs-stretched-link-card__image-warning vs-stretched-link-card__image-warning--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.noJsMessage),1)]),_:1},8,["size"])):vue.createCommentVNode("",!0)],2)):vue.createCommentVNode("",!0),e.$slots["stretched-card-panels"]&&e.$slots["stretched-card-panels"]()?vue.renderSlot(e.$slots,"stretched-card-panels",{key:3}):vue.createCommentVNode("",!0),o.showWarning!=="full"?(vue.openBlock(),vue.createElementBlock("div",{key:4,class:vue.normalizeClass(["card-body",t.videoId?"position-relative":""])},[t.videoId&&o.videoLoaded?(vue.openBlock(),vue.createBlock(c,{key:0,class:"vs-stretched-link-card__video-button","data-test":"vs-stretched-link-card__video-button",icon:"play","icon-position":"left",size:"md",ref:"videoShow",rounded:!1,onClick:o.emitShowModal},{default:vue.withCtx(()=>[t.videoBtnText?(vue.openBlock(),vue.createElementBlock("span",_hoisted_1$1c,vue.toDisplayString(o.formattedVideoBtnText),1)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(o.formattedVideoDuration),1)]),_:1},8,["onClick"])):vue.createCommentVNode("",!0),e.$slots["stretched-card-category"]&&e.$slots["stretched-card-category"]()?(vue.openBlock(),vue.createElementBlock("span",_hoisted_2$O,[vue.renderSlot(e.$slots,"stretched-card-category")])):vue.createCommentVNode("",!0),e.$slots["stretched-card-header"]&&e.$slots["stretched-card-header"]()?(vue.openBlock(),vue.createBlock(f,{key:2,level:t.headingLevel,"heading-style":t.headingStyle,class:"card-title vs-stretched-link-card__title","data-test":"vs-stretched-link-card__title"},{default:vue.withCtx(()=>[e.$slots["stretched-card-link"]&&e.$slots["stretched-card-link"]()?vue.renderSlot(e.$slots,"stretched-card-header",{key:0}):t.type==="video"?vue.renderSlot(e.$slots,"stretched-card-header",{key:1}):(vue.openBlock(),vue.createBlock(d,{key:2,href:t.link,type:t.type,class:vue.normalizeClass(["stretched-link",t.disabled?"stretched-link--disabled":""]),variant:o.theme==="dark"?"on-dark":"primary","data-test":"vs-stretched-link",disabled:t.disabled,tabindex:t.videoId||t.disabled?"-1":"0"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"stretched-card-header")]),_:3},8,["href","type","class","variant","disabled","tabindex"]))]),_:3},8,["level","heading-style"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_3$D,[vue.renderSlot(e.$slots,"stretched-card-content")]),e.$slots["stretched-card-badges"]&&e.$slots["stretched-card-badges"]()?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$u,[vue.renderSlot(e.$slots,"stretched-card-badges")])):vue.createCommentVNode("",!0),e.$slots["stretched-card-link"]&&e.$slots["stretched-card-link"]()?(vue.openBlock(),vue.createBlock(d,{key:4,href:t.link,class:"vs-stretched-link-card__link stretched-link","data-test":"vs-stretched-link-card__link"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"stretched-card-link")]),_:3},8,["href"])):vue.createCommentVNode("",!0)],2)):vue.createCommentVNode("",!0)],34)}const VsStretchedLinkCard=_export_sfc(_sfc_main$1z,[["render",_sfc_render$1q]]),_sfc_main$1y={name:"VsStretchedLinkPanels",status:"prototype",release:"0.0.1",components:{VsIcon},props:{days:{type:String,default:""},transport:{type:String,default:""},daysLabel:{type:String,default:"days"},transportName:{type:String,default:""}}},_hoisted_1$1b={class:"vs-stretched-link-panels"},_hoisted_2$N={class:"vs-stretched-link-panels__panel vs-stretched-link-panels__panel--days","data-test":"vs-stretched-link-panel--days"},_hoisted_3$C={"data-test":""},_hoisted_4$t={class:"vs-stretched-link-panels__days"},_hoisted_5$l={class:"vs-stretched-link-panels__panel","data-test":"vs-stretched-link-panel"},_hoisted_6$f={"data-test":"vs-stretched-link-panel__icon"};function _sfc_render$1p(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1b,[vue.createElementVNode("div",_hoisted_2$N,[vue.createElementVNode("p",_hoisted_3$C,[vue.createElementVNode("span",_hoisted_4$t,vue.toDisplayString(t.days),1),vue.createTextVNode(vue.toDisplayString(t.daysLabel),1)])]),vue.createElementVNode("div",_hoisted_5$l,[vue.createVNode(i,{name:t.transport,variant:"inverse",size:"sm",class:"vs-stretched-link-panels__icon"},null,8,["name"]),vue.createElementVNode("p",_hoisted_6$f,vue.toDisplayString(t.transportName),1)])])}const VsStretchedLinkPanels=_export_sfc(_sfc_main$1y,[["render",_sfc_render$1p]]),_sfc_main$1x={name:"VsCarouselSlide",status:"prototype",release:"0.0.1",components:{VsStretchedLinkCard,VsStretchedLinkPanels,VsCol},inject:["slideCols","visibleSlides"],props:{imgSrc:{required:!0,type:String},imgAlt:{type:String,default:""},linkType:{type:String,required:!0,validator:e=>e.match(/(default|external|internal|download)/)},linkUrl:{type:String,required:!0},categoryLabel:{type:String,default:null},category:{type:String,default:null},days:{type:String,default:""},daysLabel:{type:String,default:"days"},transport:{type:String,default:""},transportName:{type:String,default:""},slideIndex:{type:String,required:!0}},methods:{isVisible(e){const r=parseInt(e,10);return this.visibleSlides.indexOf(r)>=0}}},_hoisted_1$1a={class:"vs-carousel-slide"},_hoisted_2$M={class:"visually-hidden"},_hoisted_3$B={class:"vs-carousel-slide__title","data-test":"vs-carousel-slide__title"};function _sfc_render$1o(e,r,t,n,a,o){const i=vue.resolveComponent("VsStretchedLinkPanels"),l=vue.resolveComponent("VsStretchedLinkCard"),c=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(c,{cols:o.slideCols.xs,sm:o.slideCols.sm,lg:o.slideCols.md,xl:o.slideCols.lg,"data-test":"vs-carousel-slide","aria-disabled":!o.isVisible(t.slideIndex)},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1a,[vue.createVNode(l,{link:t.linkUrl,type:t.linkType,"img-src":t.imgSrc,"img-alt":t.imgAlt,class:vue.normalizeClass([o.isVisible(t.slideIndex)?"vs-carousel-slide__card--active":"vs-carousel-slide__card--disabled","vs-carousel-slide__card"]),disabled:!o.isVisible(t.slideIndex),"data-test":"vs-carousel-card"},vue.createSlots({"stretched-card-category":vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$M,vue.toDisplayString(t.categoryLabel)+": ",1),vue.createTextVNode(vue.toDisplayString(t.category),1)]),"stretched-card-header":vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$B,[vue.renderSlot(e.$slots,"vs-carousel-slide-heading")])]),_:2},[t.days&&t.transport?{name:"stretched-card-panels",fn:vue.withCtx(()=>[vue.createVNode(i,{days:t.days,transport:t.transport,"transport-name":t.transportName,"days-label":t.daysLabel},null,8,["days","transport","transport-name","days-label"])]),key:"0"}:void 0]),1032,["link","type","img-src","img-alt","class","disabled"])])]),_:3},8,["cols","sm","lg","xl","aria-disabled"])}const CarouselSlide=_export_sfc(_sfc_main$1x,[["render",_sfc_render$1o]]),_sfc_main$1w={name:"VsCheckbox",status:"prototype",release:"0.0.1",components:{BFormCheckbox:bootstrapVueNext.BFormCheckbox},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{fieldName:{type:String,required:!0},value:{type:String,default:""},label:{type:String,required:!0},validationRules:{type:Object,default(){return{}}},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},genericValidation:{type:Object,default(){return{}}},hintText:{type:String,default:""},infoText:{type:String,default:""},reAlertErrors:{type:Boolean,default:!1}},setup:()=>({v$:useVuelidate()}),data(){return{inputVal:"",errors:[]}},computed:{errorClass(){return this.isInvalid?"vs-checkbox--error":""}},watch:{value(e){this.inputVal=e},triggerValidate(){this.manualValidate()}},validations(){return this.rules}},_hoisted_1$19=["id"],_hoisted_2$L=["innerHTML"],_hoisted_3$A=["id"],_hoisted_4$s={class:"visually-hidden"},_hoisted_5$k={class:"vs-checkbox__label"};function _sfc_render$1n(e,r,t,n,a,o){const i=vue.resolveComponent("BFormCheckbox");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-checkbox",o.errorClass])},[vue.createElementVNode("p",{class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_1$19),t.infoText!==""?(vue.openBlock(),vue.createElementBlock("div",{key:0,innerHTML:t.infoText},null,8,_hoisted_2$L)):vue.createCommentVNode("",!0),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:1,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,l=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:l,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$s,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[l]||t.genericValidation[l]),1)])),[[vue.vShow,!t.reAlertErrors]])),128))],8,_hoisted_3$A)):vue.createCommentVNode("",!0),t.fieldName?(vue.openBlock(),vue.createBlock(i,vue.mergeProps({key:2,modelValue:a.inputVal,"onUpdate:modelValue":r[0]||(r[0]=l=>a.inputVal=l),class:"me-100",name:t.fieldName,id:t.fieldName,value:t.value,unchecked_value:`not_${t.value}`},e.$attrs,{"data-test":"vs-checkbox",onBlur:e.emitStatus,onChange:e.emitStatus,required:e.isRequired,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription}),{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_5$k,vue.toDisplayString(t.label),1)]),_:1},16,["modelValue","name","id","value","unchecked_value","onBlur","onChange","required","aria-invalid","aria-describedby"])):vue.createCommentVNode("",!0)],2)}const VsCheckbox=_export_sfc(_sfc_main$1w,[["render",_sfc_render$1n]]),useCookiesStore=pinia.defineStore("cookies",()=>{const e=vue.ref([]),r=vue.ref(!1);function t(a){e.value=[],a.forEach(o=>{e.value.push(o)})}function n(a){r.value=a}return{allowedCookies:e,cookiesTestRun:r,setCookieArray:t,setTestRun:n}});function hashCode(){return Math.random().toString(36).substring(7)}class OneTrustVS{constructor(){Ut(this,"init",()=>{window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach)});Ut(this,"instaOT",(r,t,n,a,o=null)=>{console.log("insta");let i=this;this.checkThirdPartyLibrary("OneTrust",()=>{this.onetrustCookieCheck(r,l=>{if(l)i.setIframeSrc();else if(a){console.log("fallback",n),console.log("container",a);let c=Array.from(n.classList)[0],d;a.length>1?a.forEach((f,p)=>{d=a[p].querySelector(`.${c}`),d||i.showOneTrustFallback(r,t,n,a[p],o)}):(d=a.querySelector(`.${c}`),d||i.showOneTrustFallback(r,t,n,a,o))}}),window.OneTrust.OnConsentChanged(function(){i.onetrustCookieCheck(r,l=>{l&&(window.OneTrustEventBus.dispatchEvent("otCategory-approved"),i.hideOneTrustFallback(r),i.setIframeSrc())})})})});Ut(this,"showOneTrustFallback",(r,t,n,a,o=null)=>{console.log("showfallback");let i={visible:!1,fallback:n};if(i.visible)return!1;if(a.length>1&&i.fallback)console.log("aqui"),a.forEach(l=>{let c=i.fallback.cloneNode(!0);c.id=hashCode(),l.insertAdjacentHTML("afterend",c.outerHTML);let d=document.getElementById(c.id);d.style.display="block",i.visible=!0,c.classList.add(`vscookies-${r}`),this.fallbacks.push({id:d.id,cat:r,visible:!0}),this.setFBButtonListener(c)});else{console.log("aca");let l=i.fallback.cloneNode(!0);l.id=hashCode(),l.style.display="block",l.classList.add(`vscookies-${r}`),o?a.insertBefore(l,a.childNodes[o]):a.appendChild(l),this.fallbacks.push({id:l.id,cat:r}),i.visible=!0,this.setFBButtonListener(l)}});Ut(this,"onetrustCookieCheck",(r,t)=>{if(typeof window<"u")return t(window.OnetrustActiveGroups.includes(r))});Ut(this,"hideOneTrustFallback",r=>{this.fallbacks.map(n=>{if(n.cat===r&&document.getElementById(n.id)){document.getElementById(n.id).style.display="none";return}});const t=document.querySelectorAll(`.vscookies-${r}`);t.size>0&&t.map(n=>{n.style.display="none"})});Ut(this,"checkThirdPartyLibrary",(r,t)=>{let n=500,a=this;window.setTimeout(function(){window[r]?t(window[r]):a.checkThirdPartyLibrary(r,t)},n)});Ut(this,"setFBButtonListener",r=>{r.querySelector("#ot-sdk-btn").addEventListener("click",function(){window.OneTrust.ToggleInfoDisplay()})});Ut(this,"setIframeSrc",()=>{let r=document.querySelectorAll('iframe[data-src]:not([data-src=""])');r&&r.forEach(t=>{t.src=t.dataset.src,t.removeAttribute("data-src")})});this.fallbacks=[]}}let cookieStore=null;const _sfc_main$1v={data(){return{oneTrust:new OneTrustVS,activeGroups:""}},watch:{activeGroups(){const r=this.activeGroups.split(",").filter(t=>t!=="");cookieStore&&(cookieStore.setCookieArray(r),cookieStore.setTestRun(!0))}},mounted(){cookieStore=useCookiesStore()},created(){this.checkOneTrust(),this.checkActiveGroups()},methods:{checkOneTrust(){typeof window<"u"&&this.oneTrust.checkThirdPartyLibrary("OneTrust",()=>{window.OneTrust.OnConsentChanged(()=>{this.oneTrust.checkThirdPartyLibrary("OnetrustActiveGroups",()=>{this.activeGroups=window.OnetrustActiveGroups})})})},checkActiveGroups(){typeof window<"u"&&this.oneTrust.checkThirdPartyLibrary("OnetrustActiveGroups",()=>{this.activeGroups=window.OnetrustActiveGroups})}}},_hoisted_1$18={class:"d-none"};function _sfc_render$1m(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("span",_hoisted_1$18)}const CookieChecker=_export_sfc(_sfc_main$1v,[["render",_sfc_render$1m]]),_sfc_main$1u={name:"VsDescriptionList",status:"prototype",release:"0.0.1",provide(){return{inline:vue.computed(()=>this.inline)}},props:{inline:{type:Boolean,default:!1}}};function _sfc_render$1l(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("dl",{class:vue.normalizeClass(["vs-description-list",{"list-inline":t.inline}])},[vue.renderSlot(e.$slots,"default")],2)}const DescriptionList=_export_sfc(_sfc_main$1u,[["render",_sfc_render$1l]]),_sfc_main$1t={name:"VsDescriptionListItem",status:"prototype",release:"0.0.1",components:{VsCol},inject:["inline"],props:{title:{type:Boolean,default:!1}}};function _sfc_render$1k(e,r,t,n,a,o){const i=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(i,{tag:t.title?"dt":"dd",class:vue.normalizeClass({"list-inline-item":o.inline,"vs-description-list__detail":!t.title,"vs-description-list__detail--styled":!o.inline&&!t.title,"vs-description-list__term":t.title,"vs-description-list__term--styled":!o.inline&&t.title})},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["tag","class"])}const DescriptionListItem=_export_sfc(_sfc_main$1t,[["render",_sfc_render$1k],["__scopeId","data-v-66ca0ac6"]]),_sfc_main$1s={name:"VsDropdown",status:"prototype",release:"0.0.1",components:{BDropdown:bootstrapVueNext.BDropdown},props:{text:{type:String,default:""}},computed:{nonButtonContentSlots(){return lodashExports.reject(this.$slots,{name:"button-content"})}}},_hoisted_1$17={class:"dropdown-menu overflow-auto",role:"menu"};function _sfc_render$1j(e,r,t,n,a,o){const i=vue.resolveComponent("BDropdown");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(i,vue.mergeProps(e.$attrs,{variant:"primary",class:"vs-dropdown"}),vue.createSlots({"button-content":vue.withCtx(()=>[vue.renderSlot(e.$slots,"button-content",{},()=>[vue.createTextVNode(vue.toDisplayString(t.text),1)])]),default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:2},[vue.renderList(o.nonButtonContentSlots,(l,c)=>({name:c,fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,c)])}))]),1040),vue.createElementVNode("div",{class:vue.normalizeClass([e.$attrs.class,"dropdown vs-dropdown vs-dropdown--fallback"])},[vue.createElementVNode("ul",_hoisted_1$17,[vue.renderSlot(e.$slots,"default")])],2)],64)}const VsDropdown=_export_sfc(_sfc_main$1s,[["render",_sfc_render$1j]]),_sfc_main$1r={name:"VsDropdownItem",status:"prototype",release:"0.0.1",components:{BDropdownItem:bootstrapVueNext.BDropdownItem}};function _sfc_render$1i(e,r,t,n,a,o){const i=vue.resolveComponent("BDropdownItem");return vue.openBlock(),vue.createBlock(i,vue.mergeProps(e.$attrs,{role:"menuitem"}),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsDropdownItem=_export_sfc(_sfc_main$1r,[["render",_sfc_render$1i]]),cookieCheckerMixin={data(){return{bypassCookiesExist:!1}},computed:{...pinia.mapState(useCookiesStore,{cookiesSet(e){return e.allowedCookies}}),onetrustActiveGroups(){return typeof window<"u"?window.OnetrustActiveGroups:null},requiredCookiesExist(){if(typeof window<"u"&&window.bypassCookieChecks)return this.bypassCookiesExist;let e=!0;return this.requiredCookies?this.requiredCookies.forEach(r=>{this.cookiesSet.indexOf(r)===-1&&(e=!1)}):e=!1,e},cookiesInitStatus(){return typeof window<"u"&&window.bypassCookieChecks?this.bypassCookiesExist:(typeof this.onetrustActiveGroups>"u"||this.cookiesSet.length===0,!0)}},mounted(){setTimeout(()=>{this.bypassCookiesExist=!0},50)}},cookieValues$1={youtube:["C0001","C0004"],languageSelector:["C0001"],embed:["C0001","C0003","C0004"],recaptcha:["C0001"],map:["C0001"]},cookieValues=cookieValues$1.embed,_sfc_main$1q={name:"VsEmbedWrapper",status:"prototype",release:"0.0.1",components:{VsContainer,VsRow,VsCol,VsRichTextWrapper,VsWarning},mixins:[cookieCheckerMixin],props:{noCookiesRequired:{type:Boolean,default:!1},noCookieText:{type:String,required:!0},errorText:{type:String,required:!0},noJsText:{type:String,required:!0},extraContent:{type:String,default:""}},data(){return{requiredCookies:this.noCookiesRequired?null:cookieValues}},computed:{showError(){return this.noCookiesRequired?!1:!this.requiredCookiesExist&&this.cookiesInitStatus===!0||this.cookiesInitStatus==="error"},warningText(){let e="";return this.cookiesInitStatus==="error"&&(e=this.errorText),!this.requiredCookiesExist&&this.cookiesInitStatus===!0&&(e=this.noCookieText),e}}},_hoisted_1$16={"data-test":"vs-embed-wrapper",class:"vs-embed-wrapper"},_hoisted_2$K={key:"fallback"},_hoisted_3$z=["innerHTML"];function _sfc_render$1h(e,r,t,n,a,o){const i=vue.resolveComponent("VsRichTextWrapper"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsWarning"),d=vue.resolveComponent("VsRow"),f=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$16,[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",sm:"10","offset-sm":"1",md:"6","offset-md":"3"},{default:vue.withCtx(()=>[e.$slots["embed-intro-copy"]&&e.$slots["embed-intro-copy"]()&&!o.showError?(vue.openBlock(),vue.createBlock(i,{key:0,class:"vs-module-wrapper__intro vs-embed-wrapper__intro","data-test":"vs-module-wrapper__intro"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"embed-intro-copy")]),_:3})):vue.createCommentVNode("",!0)]),_:3}),vue.createVNode(l,{cols:"12"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-embed-wrapper__container",e.requiredCookiesExist||t.noCookiesRequired?"":"d-none"]),key:"embeddedContent"},[vue.renderSlot(e.$slots,"embed-widget")],2),o.showError?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$K,[vue.createVNode(c,{type:e.cookiesInitStatus===!0?"cookie":"normal",class:"vs-embed-wrapper__error","data-test":"vs-embed-wrapper__error"},vue.createSlots({default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.warningText)+" ",1)]),_:2},[t.extraContent?{name:"extra-content",fn:vue.withCtx(()=>[vue.createElementVNode("div",{innerHTML:t.extraContent},null,8,_hoisted_3$z)]),key:"0"}:void 0,!e.requiredCookiesExist&&e.cookiesInitStatus===!0?{name:"button-text",fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,"embed-button-text")]),key:"1"}:void 0]),1032,["type"])])):vue.createCommentVNode("",!0),vue.createVNode(c,{type:"normal","data-test":"vs-embed-wrapper__error--no-js",class:"vs-embed-wrapper__error vs-embed-wrapper__error--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.noJsText),1)]),_:1})]),_:3})]),_:3})]),_:3})])}const EmbedWrapper=_export_sfc(_sfc_main$1q,[["render",_sfc_render$1h]]);function createHydrationCleanup(){let e=[];return{cleanup:()=>{e=e.filter(n=>(n(),!1))},onCleanup:n=>{e.push(n)}}}function createHydrationPromise(e){let r=()=>{};const t=new Promise(a=>{r=()=>{e(),a()}});return{promise:t,resolvePromise:r,onResolvedPromise:a=>{t.then(a)}}}function trackDepsOnRender(e){const r=e.effect.fn,t=e.render;e.render=(...n)=>{e.effect.fn=()=>t(...n);const a=e.effect.run();return e.effect.fn=r,e.render=t,a}}const isFunction=e=>typeof e=="function",isObject=e=>e!==null&&typeof e=="object";function traverseChildren(e,r){if(vue.isVNode(e)&&(r(e),e.children!==null)){if(Array.isArray(e.children)){e.children.forEach(t=>traverseChildren(t,r));return}isObject(e.children)&&Object.keys(e.children).forEach(t=>{if(!isFunction(e.children[t]))return;const n=e.children[t]();if(Array.isArray(n)){n.forEach(a=>traverseChildren(a,r));return}traverseChildren(n,r)})}}function isAsyncWrapper(e){var r,t;return((r=e.type)==null?void 0:r.__asyncLoader)&&((t=e.type)==null?void 0:t.name)==="AsyncComponentWrapper"}function waitForAsyncComponents({subTree:e},r){const t=[];if(traverseChildren(e,n=>{isAsyncWrapper(n)&&t.push(n.type.__asyncLoader())}),t.length>0){Promise.all(t).then(r);return}r()}function ensureParentHasSubTreeEl(e){if(!e||!e.subTree)return;const r=e.subTree.el,t=e.u;e.u===null&&(e.u=[]),e.u.push(()=>{e.subTree.el===null&&(e.subTree.el=r),e.u=t})}function useLazyHydration(){const e=vue.getCurrentInstance();if(!e||e.isMounted)throw new Error("useLazyHydration must be called from the setup method.");const r=e.vnode.el!==null;if(e.vnode.type.__isLazilyHydrated=!0,!r)return{willPerformHydration:r,onHydrated:()=>{}};const{cleanup:t,onCleanup:n}=createHydrationCleanup(),{promise:a,resolvePromise:o,onResolvedPromise:i}=createHydrationPromise(t),l=c=>i(()=>vue.nextTick(()=>waitForAsyncComponents(e,c)));return e.type.__asyncLoader=()=>a,ensureParentHasSubTreeEl(e.parent),vue.onBeforeMount(()=>{e.asyncDep=new Promise(c=>{c(!0)})}),i(()=>{trackDepsOnRender(e),e.asyncDep=null}),vue.onUnmounted(t),{willPerformHydration:r,hydrate:o,onHydrated:l,onCleanup:n}}function useHydrateWhenIdle({willPerformHydration:e,hydrate:r,onCleanup:t},n=2e3){if(!e)return;if(!vue.getCurrentInstance())throw new Error("useHydrateWhenIdle must be called from the setup or lifecycle hook methods.");if(!("requestIdleCallback"in window)){r();return}const a=requestIdleCallback(()=>{r()},{timeout:n});t(()=>{cancelIdleCallback(a)})}const DOMNodeTypes={ELEMENT:1,TEXT:3,COMMENT:8},isElement=e=>e&&e.nodeType===DOMNodeTypes.ELEMENT,isComment=e=>e&&e.nodeType===DOMNodeTypes.COMMENT,isFragmentStart=e=>isComment(e)&&(e==null?void 0:e.data)==="[",isFragmentEnd=e=>isComment(e)&&(e==null?void 0:e.data)==="]";function getRootElements({vnode:e,subTree:r}){if(!e||e.el===null)return[];if(isElement(e.el))return[e.el];const t=[];if(r&&isFragmentStart(r.el)&&isFragmentEnd(r.anchor)){let n=e.el.nextSibling;for(;n;){if(n&&isElement(n)&&t.push(n),n===r.anchor)return t;n=n.nextSibling}}return t}function useHydrateOnInteraction({willPerformHydration:e,hydrate:r,onCleanup:t},n=["focus"]){if(!e)return;const a=vue.getCurrentInstance();if(!a||a.isMounted)throw new Error("useHydrateOnInteraction must be called from the setup method.");const o=vue.unref(n);vue.onMounted(()=>{const i=getRootElements(a),l=i.length>1?i[0].parentElement||document:i[0],c={capture:!0,once:!1,passive:!0},d=f=>{f.stopPropagation();const p=f.composedPath&&f.composedPath()||f.path;if(!p){let v=f.target;for(;v;){if(i.includes(v)){r();return}if(v===l)return;v=v.parentElement}return}i.forEach(v=>{p.includes(v)&&r()})};o.forEach(f=>{l.addEventListener(f,d,c)}),t(()=>{o.forEach(f=>{l.removeEventListener(f,d,c)})})})}function useHydrateWhenTriggered({willPerformHydration:e,hydrate:r,onCleanup:t},n){if(!e)return;if(!vue.getCurrentInstance())throw new Error("useHydrateWhenTriggered must be called from the setup or lifecycle hook methods.");const a=vue.watch(vue.isRef(n)?n:()=>n,o=>{o&&r()},{immediate:!0});t(a)}const observers=new Map;function createHydrationObserver(e){const r=typeof IntersectionObserver<"u";if(!r)return{supported:r};const t=JSON.stringify(e);if(observers.has(t))return{supported:r,observer:observers.get(t)};const n=new IntersectionObserver(a=>{a.forEach(o=>{!(o.isIntersecting||o.intersectionRatio>0)||!o.target.hydrate||o.target.hydrate()})},e);return observers.set(t,n),{supported:r,observer:n}}function useHydrateWhenVisible({willPerformHydration:e,hydrate:r,onCleanup:t},n){if(!e)return;const a=vue.getCurrentInstance();if(!a||a.isMounted)throw new Error("useHydrateWhenVisible must be called from the setup method.");const{supported:o,observer:i}=createHydrationObserver(n);if(!o){r();return}vue.onMounted(()=>{const l=getRootElements(a);l.forEach(c=>{c.hydrate=r,i.observe(c)}),t(()=>{l.forEach(c=>{delete c.hydrate,i.unobserve(c)})})})}const normalizeSlot=e=>e.length===1?e[0]:e,LazyHydrationWrapper=vue.defineComponent({name:"LazyHydrationWrapper",inheritAttrs:!1,suspensible:!1,props:{whenIdle:{default:!1,type:[Boolean,Number]},whenVisible:{default:!1,type:[Boolean,Object]},onInteraction:{default:!1,type:[Array,Boolean,String]},whenTriggered:{default:void 0,type:[Boolean,Object]}},emits:["hydrated"],setup(e,{slots:r,emit:t}){const n=useLazyHydration();if(!n.willPerformHydration)return()=>normalizeSlot(r.default());if(n.onHydrated(()=>t("hydrated")),e.whenIdle&&useHydrateWhenIdle(n,e.whenIdle!==!0?e.whenIdle:void 0),e.whenVisible&&useHydrateWhenVisible(n,e.whenVisible!==!0?e.whenVisible:void 0),e.onInteraction){let a;e.onInteraction!==!0&&(a=vue.computed(()=>Array.isArray(e.onInteraction)?e.onInteraction:[e.onInteraction]).value),useHydrateOnInteraction(n,a)}return e.whenTriggered!==void 0&&useHydrateWhenTriggered(n,vue.toRef(e,"whenTriggered")),()=>normalizeSlot(r.default())}}),LazyHydrationWrapper$1=vue.markRaw(LazyHydrationWrapper),_sfc_main$1p={name:"VsFooterNavList",status:"prototype",release:"0.0.1",components:{VsAccordion,VsRow,VsContainer,LazyHydrationWrapper:LazyHydrationWrapper$1},props:{breakPoint:{type:String,default:null,validator:e=>e.match(/(xs|sm|md|lg|xl|xxl)/)}}},_hoisted_1$15={class:"vs-footer-nav-list"};function _sfc_render$1g(e,r,t,n,a,o){const i=vue.resolveComponent("VsRow"),l=vue.resolveComponent("VsAccordion"),c=vue.resolveComponent("LazyHydrationWrapper"),d=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createBlock(d,{class:"vs-footer-nav-list","data-test":"vs-footer-nav-list"},{default:vue.withCtx(()=>[vue.createVNode(c,{"on-interaction":["focus","click"]},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$15,[vue.createVNode(l,{"break-point":t.breakPoint},{default:vue.withCtx(()=>[vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})]),_:3},8,["break-point"])])]),_:3})]),_:3})}const VsFooterNavList=_export_sfc(_sfc_main$1p,[["render",_sfc_render$1g]]),_sfc_main$1o={name:"VsFooter",status:"prototype",release:"0.1.0",components:{VsFooterNavList,VsCol,VsContainer,VsRow}},_hoisted_1$14={class:"vs-footer pt-150 pt-md-300","data-unique-id":"vs-footer",id:"site-footer"},_hoisted_2$J={class:"vs-footer__social-menu-wrapper"};function _sfc_render$1f(e,r,t,n,a,o){const i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsFooterNavList"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("footer",_hoisted_1$14,[vue.createVNode(l,{"break-point":"md"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"accordion-items"),vue.createVNode(i,{cols:"12",lg:"3",xl:"2",class:"d-none d-lg-block","data-unique-id":"vs-footer-social_links"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"social-menu")]),_:3})]),_:3}),vue.createElementVNode("div",_hoisted_2$J,[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",class:"d-block d-lg-none","data-unique-id":"vs-footer-mobile_social_links"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"social-menu")]),_:3})]),_:3})]),_:3})]),vue.renderSlot(e.$slots,"default")])}const Footer=_export_sfc(_sfc_main$1o,[["render",_sfc_render$1f]]),_sfc_main$1n={name:"VsFooterAccordionItem",status:"prototype",release:"0.0.1",components:{VsAccordionItem},props:{controlId:{type:String,required:!0},itemBreakPoint:{type:String,default:e=>e.breakPoint,validator:e=>e.match(/(xs|sm|md|lg|xl|xxl)/)},openByDefault:{type:Boolean,default:!1},title:{type:String,required:!0},variant:{type:String,default:"primary"}},computed:{getUniqueId(){let e=this.title.toLowerCase();return e=e.replace(/\s+/g,"-"),`vs-footer-${e}`}}};function _sfc_render$1e(e,r,t,n,a,o){const i=vue.resolveComponent("VsAccordionItem");return vue.openBlock(),vue.createBlock(i,{class:"vs-footer-accordion-item mb-md-150","data-test":"vs-footer-accordion-item","data-unique-id":o.getUniqueId,"control-id":t.controlId,"item-break-point":t.itemBreakPoint,"open-by-default":t.openByDefault,variant:t.variant},{title:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),"icon-open":vue.withCtx(()=>[vue.renderSlot(e.$slots,"icon-open")]),"icon-closed":vue.withCtx(()=>[vue.renderSlot(e.$slots,"icon-closed")]),default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["data-unique-id","control-id","item-break-point","open-by-default","variant"])}const FooterAccordionItem=_export_sfc(_sfc_main$1n,[["render",_sfc_render$1e]]),_sfc_main$1m={name:"VsFooterNavListItem",status:"prototype",release:"0.0.1",components:{VsLink},props:{href:{type:String,default:null},type:{type:String,default:"default",validator:e=>e.match(/(default|external|internal|download)/)},linkText:{type:String,default:""}}},_hoisted_1$13={class:"vs-footer-nav-list-item","data-test":"vs-footer-nav-list-item",role:"menuitem"};function _sfc_render$1d(e,r,t,n,a,o){const i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$13,[vue.createVNode(i,{href:t.href,type:t.type,variant:"on-dark","data-test":"vs-footer-nav-list-item__link"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.linkText),1)]),_:1},8,["href","type"])])}const FooterNavListItem=_export_sfc(_sfc_main$1m,[["render",_sfc_render$1d]]),_sfc_main$1l={name:"VsList",status:"prototype",release:"0.0.1",props:{ordered:{type:Boolean,default:!1},unstyled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}}};function _sfc_render$1c(e,r,t,n,a,o){return vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(t.ordered?"ol":"ul"),vue.mergeProps({class:["vs-list",{"vs-list--unstyled":t.unstyled,"vs-list--inline":t.inline,"vs-list--ordered":t.ordered}]},e.$attrs),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16,["class"])}const VsList=_export_sfc(_sfc_main$1l,[["render",_sfc_render$1c]]),_sfc_main$1k={name:"VsFooterSocialMenu",status:"prototype",release:"0.0.1",components:{VsList,VsHeading}},_hoisted_1$12={class:"vs-footer-social-menu px-0 py-150 py-md-200 py-lg-0 px-lg-075","data-test":"vs-footer-social-menu"};function _sfc_render$1b(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsList");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$12,[vue.createVNode(i,{level:"2","heading-style":"heading-xxs",class:"vs-footer-social-menu__title"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"title")]),_:3}),vue.createVNode(l,{unstyled:"",class:"mt-125 mt-md-0 mt-lg-125 pe-lg-400 pe-xl-300"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})])}const FooterSocialMenu=_export_sfc(_sfc_main$1k,[["render",_sfc_render$1b]]),_sfc_main$1j={name:"VsFooterSocialItem",status:"prototype",release:"0.0.1",components:{VsLink,VsIcon},mixins:[dataLayerMixin],props:{href:{type:String,required:!0},icon:{type:String,required:!0,validator:e=>e.match(/(facebook|instagram|x-twitter|youtube|linkedin)/)}}},_hoisted_1$11={class:"vs-footer-social-item","data-test":"vs-footer-social-item"};function _sfc_render$1a(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$11,[vue.createVNode(l,{"data-test":"vs-footer-social-item__link",href:t.href,type:"external",class:vue.normalizeClass(t.icon),"aria-label":t.icon,"data-layer-value":"socialMediaExternalLinkDataEvent"},{default:vue.withCtx(()=>[vue.createVNode(i,{name:t.icon,variant:"inverse",size:"sm"},null,8,["name"])]),_:1},8,["href","class","aria-label"])])}const FooterSocialItem=_export_sfc(_sfc_main$1j,[["render",_sfc_render$1a]]),_sfc_main$1i={name:"VsFooterUtilityList",status:"prototype",release:"0.0.1",components:{VsList,VsRow,VsContainer,VsCol}},_hoisted_1$10={class:"vs-footer-utility-list","data-test":"vs-footer-utility-list","data-unique-id":"vs-footer-utility_links"};function _sfc_render$19(e,r,t,n,a,o){const i=vue.resolveComponent("VsList"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$10,[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",sm:"7",md:"12"},{default:vue.withCtx(()=>[vue.createVNode(i,{unstyled:"",role:"menu"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3})]),_:3})])}const FooterUtilityList=_export_sfc(_sfc_main$1i,[["render",_sfc_render$19]]);function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var dist$3={exports:{}},interopRequireDefault={exports:{}};(function(e){function r(t){return t&&t.__esModule?t:{default:t}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(interopRequireDefault);var interopRequireDefaultExports=interopRequireDefault.exports,_extends$1={exports:{}},hasRequired_extends;function require_extends(){return hasRequired_extends||(hasRequired_extends=1,function(e){function r(){return e.exports=r=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(t[o]=a[o])}return t},e.exports.__esModule=!0,e.exports.default=e.exports,r.apply(this,arguments)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(_extends$1)),_extends$1.exports}var objectWithoutPropertiesLoose={exports:{}},hasRequiredObjectWithoutPropertiesLoose;function requireObjectWithoutPropertiesLoose(){return hasRequiredObjectWithoutPropertiesLoose||(hasRequiredObjectWithoutPropertiesLoose=1,function(e){function r(t,n){if(t==null)return{};var a={};for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){if(n.indexOf(o)>=0)continue;a[o]=t[o]}return a}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(objectWithoutPropertiesLoose)),objectWithoutPropertiesLoose.exports}var path$2={exports:{}},util$3={},isBufferBrowser$1,hasRequiredIsBufferBrowser$1;function requireIsBufferBrowser$1(){return hasRequiredIsBufferBrowser$1||(hasRequiredIsBufferBrowser$1=1,isBufferBrowser$1=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}),isBufferBrowser$1}var inherits_browser$1={exports:{}},hasRequiredInherits_browser$1;function requireInherits_browser$1(){return hasRequiredInherits_browser$1||(hasRequiredInherits_browser$1=1,typeof Object.create=="function"?inherits_browser$1.exports=function(r,t){r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}})}:inherits_browser$1.exports=function(r,t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r}),inherits_browser$1.exports}var hasRequiredUtil$1;function requireUtil$1(){return hasRequiredUtil$1||(hasRequiredUtil$1=1,function(e){var r={ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",JETBRAINS_INTELLIJ_COMMAND_END_MARKER:"ZU98Tjo1s9mdtrKJDjkDGSGGEp5tw63GnQvv7ElLZlCMGXy1aOp9jFhC5BjusZy0",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.7",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-9cb82016;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-49607556;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;;D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\node_modules\\.bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSExecutionPolicyPreference:"Bypass",PSModulePath:"D:\\Users\\martin.taylor\\Documents\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TERMINAL_EMULATOR:"JetBrains-JediTerm",TERM_SESSION_ID:"1ff63cfe-b994-4472-afa5-0ddc6b11b75f",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"},t=/%[sdj%]/g;e.format=function(A){if(!$(A)){for(var F=[],j=0;j<arguments.length;j++)F.push(o(arguments[j]));return F.join(" ")}for(var j=1,Z=arguments,fe=Z.length,O=String(A).replace(t,function(U){if(U==="%%")return"%";if(j>=fe)return U;switch(U){case"%s":return String(Z[j++]);case"%d":return Number(Z[j++]);case"%j":try{return JSON.stringify(Z[j++])}catch{return"[Circular]"}default:return U}}),I=Z[j];j<fe;I=Z[++j])C(I)||!L(I)?O+=" "+I:O+=" "+o(I);return O},e.deprecate=function(A,F){if(B(commonjsGlobal.process))return function(){return e.deprecate(A,F).apply(this,arguments)};if(process.noDeprecation===!0)return A;var j=!1;function Z(){if(!j){if(process.throwDeprecation)throw new Error(F);process.traceDeprecation?console.trace(F):console.error(F),j=!0}return A.apply(this,arguments)}return Z};var n={},a;e.debuglog=function(A){if(B(a)&&(a=r.NODE_DEBUG||""),A=A.toUpperCase(),!n[A])if(new RegExp("\\b"+A+"\\b","i").test(a)){var F=process.pid;n[A]=function(){var j=e.format.apply(e,arguments);console.error("%s %d: %s",A,F,j)}}else n[A]=function(){};return n[A]};function o(A,F){var j={seen:[],stylize:l};return arguments.length>=3&&(j.depth=arguments[2]),arguments.length>=4&&(j.colors=arguments[3]),S(F)?j.showHidden=F:F&&e._extend(j,F),B(j.showHidden)&&(j.showHidden=!1),B(j.depth)&&(j.depth=2),B(j.colors)&&(j.colors=!1),B(j.customInspect)&&(j.customInspect=!0),j.colors&&(j.stylize=i),d(j,A,j.depth)}e.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function i(A,F){var j=o.styles[F];return j?"\x1B["+o.colors[j][0]+"m"+A+"\x1B["+o.colors[j][1]+"m":A}function l(A,F){return A}function c(A){var F={};return A.forEach(function(j,Z){F[j]=!0}),F}function d(A,F,j){if(A.customInspect&&F&&Q(F.inspect)&&F.inspect!==e.inspect&&!(F.constructor&&F.constructor.prototype===F)){var Z=F.inspect(j,A);return $(Z)||(Z=d(A,Z,j)),Z}var fe=f(A,F);if(fe)return fe;var O=Object.keys(F),I=c(O);if(A.showHidden&&(O=Object.getOwnPropertyNames(F)),oe(F)&&(O.indexOf("message")>=0||O.indexOf("description")>=0))return p(F);if(O.length===0){if(Q(F)){var U=F.name?": "+F.name:"";return A.stylize("[Function"+U+"]","special")}if(R(F))return A.stylize(RegExp.prototype.toString.call(F),"regexp");if(te(F))return A.stylize(Date.prototype.toString.call(F),"date");if(oe(F))return p(F)}var ae="",ee=!1,se=["{","}"];if(_(F)&&(ee=!0,se=["[","]"]),Q(F)){var le=F.name?": "+F.name:"";ae=" [Function"+le+"]"}if(R(F)&&(ae=" "+RegExp.prototype.toString.call(F)),te(F)&&(ae=" "+Date.prototype.toUTCString.call(F)),oe(F)&&(ae=" "+p(F)),O.length===0&&(!ee||F.length==0))return se[0]+ae+se[1];if(j<0)return R(F)?A.stylize(RegExp.prototype.toString.call(F),"regexp"):A.stylize("[Object]","special");A.seen.push(F);var ie;return ee?ie=v(A,F,j,I,O):ie=O.map(function(ve){return m(A,F,j,I,ve,ee)}),A.seen.pop(),g(ie,ae,se)}function f(A,F){if(B(F))return A.stylize("undefined","undefined");if($(F)){var j="'"+JSON.stringify(F).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(j,"string")}if(E(F))return A.stylize(""+F,"number");if(S(F))return A.stylize(""+F,"boolean");if(C(F))return A.stylize("null","null")}function p(A){return"["+Error.prototype.toString.call(A)+"]"}function v(A,F,j,Z,fe){for(var O=[],I=0,U=F.length;I<U;++I)de(F,String(I))?O.push(m(A,F,j,Z,String(I),!0)):O.push("");return fe.forEach(function(ae){ae.match(/^\d+$/)||O.push(m(A,F,j,Z,ae,!0))}),O}function m(A,F,j,Z,fe,O){var I,U,ae;if(ae=Object.getOwnPropertyDescriptor(F,fe)||{value:F[fe]},ae.get?ae.set?U=A.stylize("[Getter/Setter]","special"):U=A.stylize("[Getter]","special"):ae.set&&(U=A.stylize("[Setter]","special")),de(Z,fe)||(I="["+fe+"]"),U||(A.seen.indexOf(ae.value)<0?(C(j)?U=d(A,ae.value,null):U=d(A,ae.value,j-1),U.indexOf(`
185
+ `;styleInject(css_248z);script$4.render=render$4;script$4.__scopeId="data-v-43da20c6";script$4.__file="src/components/Tooltip/index.vue";var script$3=vue.defineComponent({props:{stacked:{type:Boolean,default:!1},maxWidth:{type:Number,default:-1}},setup(e){vue.provide("layerProps",e)}});function render$3(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",null,[vue.renderSlot(e.$slots,"default")])}script$3.render=render$3;script$3.__file="src/components/Group/index.vue";var script$2=vue.defineComponent({name:"Grid",props:{value:{type:Number},label:{type:String,default:""},color:{type:String,default:"red"},strokeDasharray:{type:String,default:()=>"3"},strokeWidth:{type:Number,default:1},strokeOpacity:{type:Number,default:.5}},setup(e){const r=useChart(),t=vue.ref(0),n=vue.ref("horizontal"),a=vue.ref({});return vue.watch(r.updates,()=>{e.value!==void 0&&(t.value=r.scales.secondary.scale(e.value)),a.value=r.canvas,n.value=r.config.direction},{immediate:!0}),vue.watch(()=>e.value,()=>{t.value=r.scales.secondary.scale(e.value)},{immediate:!0}),{y:t,canvas:a,direction:n}}});const _hoisted_1$2$1={key:0,class:"layer-marker"},_hoisted_2$2$1=["x","y","fill"],_hoisted_3$1$1=["x1","y1","x2","y2","stroke","stroke-opacity","stroke-width","stroke-dasharray"],_hoisted_4$1$1={key:1,class:"layer-marker"},_hoisted_5$1$1=["x","y","fill"],_hoisted_6$1$1=["x1","y1","x2","y2","stroke","stroke-opacity","stroke-width","stroke-dasharray"];function render$2(e,r,t,n,a,o){return e.direction==="horizontal"?(vue.openBlock(),vue.createElementBlock("g",_hoisted_1$2$1,[vue.createElementVNode("text",{x:e.canvas.x+5,y:e.y-5,"text-anchor":"start",fill:e.color},vue.toDisplayString(e.label),9,_hoisted_2$2$1),vue.createElementVNode("line",{x1:e.canvas.x,y1:e.y,x2:e.canvas.width,y2:e.y,stroke:e.color,"stroke-opacity":e.strokeOpacity,"stroke-width":e.strokeWidth,"stroke-dasharray":e.strokeDasharray},null,8,_hoisted_3$1$1)])):(vue.openBlock(),vue.createElementBlock("g",_hoisted_4$1$1,[vue.createElementVNode("text",{x:e.y+10,y:e.canvas.y+5,"text-anchor":"start",fill:e.color,style:{"writing-mode":"tb"}},vue.toDisplayString(e.label),9,_hoisted_5$1$1),vue.createElementVNode("line",{x1:e.y,y1:e.canvas.y,x2:e.y,y2:e.canvas.height,stroke:e.color,"stroke-opacity":e.strokeOpacity,"stroke-width":e.strokeWidth,"stroke-dasharray":e.strokeDasharray},null,8,_hoisted_6$1$1)]))}script$2.render=render$2;script$2.__file="src/components/Marker/index.vue";function count(e){var r=0,t=e.children,n=t&&t.length;if(!n)r=1;else for(;--n>=0;)r+=t[n].value;e.value=r}function node_count(){return this.eachAfter(count)}function node_each(e,r){let t=-1;for(const n of this)e.call(r,n,++t,this);return this}function node_eachBefore(e,r){for(var t=this,n=[t],a,o,i=-1;t=n.pop();)if(e.call(r,t,++i,this),a=t.children)for(o=a.length-1;o>=0;--o)n.push(a[o]);return this}function node_eachAfter(e,r){for(var t=this,n=[t],a=[],o,i,l,c=-1;t=n.pop();)if(a.push(t),o=t.children)for(i=0,l=o.length;i<l;++i)n.push(o[i]);for(;t=a.pop();)e.call(r,t,++c,this);return this}function node_find(e,r){let t=-1;for(const n of this)if(e.call(r,n,++t,this))return n}function node_sum(e){return this.eachAfter(function(r){for(var t=+e(r.data)||0,n=r.children,a=n&&n.length;--a>=0;)t+=n[a].value;r.value=t})}function node_sort(e){return this.eachBefore(function(r){r.children&&r.children.sort(e)})}function node_path(e){for(var r=this,t=leastCommonAncestor(r,e),n=[r];r!==t;)r=r.parent,n.push(r);for(var a=n.length;e!==t;)n.splice(a,0,e),e=e.parent;return n}function leastCommonAncestor(e,r){if(e===r)return e;var t=e.ancestors(),n=r.ancestors(),a=null;for(e=t.pop(),r=n.pop();e===r;)a=e,e=t.pop(),r=n.pop();return a}function node_ancestors(){for(var e=this,r=[e];e=e.parent;)r.push(e);return r}function node_descendants(){return Array.from(this)}function node_leaves(){var e=[];return this.eachBefore(function(r){r.children||e.push(r)}),e}function node_links(){var e=this,r=[];return e.each(function(t){t!==e&&r.push({source:t.parent,target:t})}),r}function*node_iterator(){var e=this,r,t=[e],n,a,o;do for(r=t.reverse(),t=[];e=r.pop();)if(yield e,n=e.children)for(a=0,o=n.length;a<o;++a)t.push(n[a]);while(t.length)}function hierarchy(e,r){e instanceof Map?(e=[void 0,e],r===void 0&&(r=mapChildren)):r===void 0&&(r=objectChildren);for(var t=new Node$2(e),n,a=[t],o,i,l,c;n=a.pop();)if((i=r(n.data))&&(c=(i=Array.from(i)).length))for(n.children=i,l=c-1;l>=0;--l)a.push(o=i[l]=new Node$2(i[l])),o.parent=n,o.depth=n.depth+1;return t.eachBefore(computeHeight)}function node_copy(){return hierarchy(this).eachBefore(copyData)}function objectChildren(e){return e.children}function mapChildren(e){return Array.isArray(e)?e[1]:null}function copyData(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function computeHeight(e){var r=0;do e.height=r;while((e=e.parent)&&e.height<++r)}function Node$2(e){this.data=e,this.depth=this.height=0,this.parent=null}Node$2.prototype=hierarchy.prototype={constructor:Node$2,count:node_count,each:node_each,eachAfter:node_eachAfter,eachBefore:node_eachBefore,find:node_find,sum:node_sum,sort:node_sort,path:node_path,ancestors:node_ancestors,descendants:node_descendants,leaves:node_leaves,links:node_links,copy:node_copy,[Symbol.iterator]:node_iterator};function optional(e){return e==null?null:required$2(e)}function required$2(e){if(typeof e!="function")throw new Error;return e}function constantZero(){return 0}function constant(e){return function(){return e}}function roundNode(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function treemapDice(e,r,t,n,a){for(var o=e.children,i,l=-1,c=o.length,d=e.value&&(n-r)/e.value;++l<c;)i=o[l],i.y0=t,i.y1=a,i.x0=r,i.x1=r+=i.value*d}var preroot={depth:-1},ambiguous={},imputed={};function defaultId(e){return e.id}function defaultParentId(e){return e.parentId}function stratify(){var e=defaultId,r=defaultParentId,t;function n(a){var o=Array.from(a),i=e,l=r,c,d,f,p,v,m,g,_,S=new Map;if(t!=null){const C=o.map(($,T)=>normalize(t($,T,a))),w=C.map(parentof),E=new Set(C).add("");for(const $ of w)E.has($)||(E.add($),C.push($),w.push(parentof($)),o.push(imputed));i=($,T)=>C[T],l=($,T)=>w[T]}for(f=0,c=o.length;f<c;++f)d=o[f],m=o[f]=new Node$2(d),(g=i(d,f,a))!=null&&(g+="")&&(_=m.id=g,S.set(_,S.has(_)?ambiguous:m)),(g=l(d,f,a))!=null&&(g+="")&&(m.parent=g);for(f=0;f<c;++f)if(m=o[f],g=m.parent){if(v=S.get(g),!v)throw new Error("missing: "+g);if(v===ambiguous)throw new Error("ambiguous: "+g);v.children?v.children.push(m):v.children=[m],m.parent=v}else{if(p)throw new Error("multiple roots");p=m}if(!p)throw new Error("no root");if(t!=null){for(;p.data===imputed&&p.children.length===1;)p=p.children[0],--c;for(let C=o.length-1;C>=0&&(m=o[C],m.data===imputed);--C)m.data=null}if(p.parent=preroot,p.eachBefore(function(C){C.depth=C.parent.depth+1,--c}).eachBefore(computeHeight),p.parent=null,c>0)throw new Error("cycle");return p}return n.id=function(a){return arguments.length?(e=optional(a),n):e},n.parentId=function(a){return arguments.length?(r=optional(a),n):r},n.path=function(a){return arguments.length?(t=optional(a),n):t},n}function normalize(e){e=`${e}`;let r=e.length;return slash(e,r-1)&&!slash(e,r-2)&&(e=e.slice(0,-1)),e[0]==="/"?e:`/${e}`}function parentof(e){let r=e.length;if(r<2)return"";for(;--r>1&&!slash(e,r););return e.slice(0,r)}function slash(e,r){if(e[r]==="/"){let t=0;for(;r>0&&e[--r]==="\\";)++t;if(!(t&1))return!0}return!1}function treemapSlice(e,r,t,n,a){for(var o=e.children,i,l=-1,c=o.length,d=e.value&&(a-t)/e.value;++l<c;)i=o[l],i.x0=r,i.x1=n,i.y0=t,i.y1=t+=i.value*d}var phi=(1+Math.sqrt(5))/2;function squarifyRatio(e,r,t,n,a,o){for(var i=[],l=r.children,c,d,f=0,p=0,v=l.length,m,g,_=r.value,S,C,w,E,$,T,B;f<v;){m=a-t,g=o-n;do S=l[p++].value;while(!S&&p<v);for(C=w=S,T=Math.max(g/m,m/g)/(_*e),B=S*S*T,$=Math.max(w/B,B/C);p<v;++p){if(S+=d=l[p].value,d<C&&(C=d),d>w&&(w=d),B=S*S*T,E=Math.max(w/B,B/C),E>$){S-=d;break}$=E}i.push(c={value:S,dice:m<g,children:l.slice(f,p)}),c.dice?treemapDice(c,t,n,a,_?n+=g*S/_:o):treemapSlice(c,t,n,_?t+=m*S/_:a,o),_-=S,f=p}return i}var squarify=function e(r){function t(n,a,o,i,l){squarifyRatio(r,n,a,o,i,l)}return t.ratio=function(n){return e((n=+n)>1?n:1)},t}(phi);function treemap(){var e=squarify,r=!1,t=1,n=1,a=[0],o=constantZero,i=constantZero,l=constantZero,c=constantZero,d=constantZero;function f(v){return v.x0=v.y0=0,v.x1=t,v.y1=n,v.eachBefore(p),a=[0],r&&v.eachBefore(roundNode),v}function p(v){var m=a[v.depth],g=v.x0+m,_=v.y0+m,S=v.x1-m,C=v.y1-m;S<g&&(g=S=(g+S)/2),C<_&&(_=C=(_+C)/2),v.x0=g,v.y0=_,v.x1=S,v.y1=C,v.children&&(m=a[v.depth+1]=o(v)/2,g+=d(v)-m,_+=i(v)-m,S-=l(v)-m,C-=c(v)-m,S<g&&(g=S=(g+S)/2),C<_&&(_=C=(_+C)/2),e(v,g,_,S,C))}return f.round=function(v){return arguments.length?(r=!!v,f):r},f.size=function(v){return arguments.length?(t=+v[0],n=+v[1],f):[t,n]},f.tile=function(v){return arguments.length?(e=required$2(v),f):e},f.padding=function(v){return arguments.length?f.paddingInner(v).paddingOuter(v):f.paddingInner()},f.paddingInner=function(v){return arguments.length?(o=typeof v=="function"?v:constant(+v),f):o},f.paddingOuter=function(v){return arguments.length?f.paddingTop(v).paddingRight(v).paddingBottom(v).paddingLeft(v):f.paddingTop()},f.paddingTop=function(v){return arguments.length?(i=typeof v=="function"?v:constant(+v),f):i},f.paddingRight=function(v){return arguments.length?(l=typeof v=="function"?v:constant(+v),f):l},f.paddingBottom=function(v){return arguments.length?(c=typeof v=="function"?v:constant(+v),f):c},f.paddingLeft=function(v){return arguments.length?(d=typeof v=="function"?v:constant(+v),f):d},f}var script$1=vue.defineComponent({name:"Treemap",props:{size:{type:Object,default:()=>({width:500,height:400}),required:!1},margin:{type:Object,default:()=>({top:0,right:0,bottom:0,left:0})},padding:{type:Number,default:8},data:{type:Array,default:()=>[]},dataKeys:{type:Object,required:!0},colorFn:{type:Function,default:()=>interpolateHcl("#60c96e","#6b46c1")},rcStyle:{type:Function,required:!1}},setup(e){const r=vue.ref(null),t=vue.ref(e.data),n=vue.ref(null),a=vue.ref({x:e.margin.left,y:e.margin.top,width:e.size.width-e.margin.right,height:e.size.height-e.margin.bottom}),o=vue.ref([]);function i(){const m=extent(t.value.map(S=>S[e.dataKeys[1]])),g=linear().domain(m).range([0,100]).nice(),_=sequential().domain(m).interpolator(e.colorFn());return{x:g,y:_}}function l(){const{y:m}=i();return c(t.value).leaves().map((_,S)=>({idx:S,x0:a.value.x+_.x0,x1:a.value.x+_.x1,y0:a.value.y+_.y0,y1:a.value.y+_.y1,width:_.x1-_.x0,height:_.y1-_.y0,data:_.data,color:m(_.value)}))}function c(m){const{x:g}=i(),_=treemap().size([a.value.width-a.value.x,a.value.height-a.value.y]).padding(e.padding),C=stratify().id(w=>w.name).parentId(w=>w.parent)([{name:"root"}].concat(m.map(w=>({name:w[e.dataKeys[0]],value:w[e.dataKeys[1]],parent:"root"}))));return C.sum(w=>g(w.value)),_(C),C}const d=m=>mapKeys(kebabize,m),f=m=>{const g={stroke:m.color,strokeWidth:5,fill:m.color,fillOpacity:.9};return e.rcStyle&&typeof e.rcStyle=="function"?Object.assign(Object.assign({},g),e.rcStyle(m)):g};function p(m){n.value=m}function v(){n.value=null}return vue.watch(e,()=>{t.value=e.data,a.value={x:e.margin.left,y:e.margin.top,width:e.size.width-e.margin.right,height:e.size.height-e.margin.bottom},o.value=l()},{immediate:!0}),{el:r,rectangles:o,selected:n,getStyle:f,toKebabCase:d,onMouseOver:p,onMouseOut:v}}});const _hoisted_1$1$1={class:"treemap",style:{display:"flex",position:"relative"}},_hoisted_2$1$1=["width","height","viewBox"],_hoisted_3$I={class:"layer-rectangles"},_hoisted_4$z=["transform","onMouseover"],_hoisted_5$o=["width","height"],_hoisted_6$h={x:10,y:20,"font-size":"15px",fill:"white","font-weight":"bold"};function render$1(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1$1,[(vue.openBlock(),vue.createElementBlock("svg",{width:e.size.width,height:e.size.height,viewBox:`0 0 ${e.size.width} ${e.size.height}`,ref:"el"},[vue.createElementVNode("g",_hoisted_3$I,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.rectangles,(i,l)=>(vue.openBlock(),vue.createElementBlock("g",{class:vue.normalizeClass(["rectangle",{selected:e.selected===l}]),key:l,transform:`translate(${i.x0}, ${i.y0})`,onMouseover:()=>e.onMouseOver(l),onMouseleave:r[0]||(r[0]=(...c)=>e.onMouseOut&&e.onMouseOut(...c))},[vue.renderSlot(e.$slots,"default",{r:i,selected:e.selected===l},()=>[vue.createElementVNode("rect",vue.mergeProps(e.toKebabCase(e.getStyle(i)),{x:0,y:0,width:i.width,height:i.height}),null,16,_hoisted_5$o),vue.renderSlot(e.$slots,"text",{r:i,selected:e.selected===l},()=>[vue.createElementVNode("text",_hoisted_6$h,vue.toDisplayString(i.data.name),1)])])],42,_hoisted_4$z))),128))])],8,_hoisted_2$1$1)),vue.renderSlot(e.$slots,"widgets")])}script$1.render=render$1;script$1.__file="src/components/Treemap/index.vue";var script=vue.defineComponent({name:"HoverBar",props:{barStyle:{type:Object,default:()=>({"fill-opacity":.05})}},setup(){const e=useChart(),r=useMouse(),t=vue.ref({x:0,y:0,width:0,height:0}),n=vue.ref("horizontal"),a=vue.ref({x:0,y:0,width:0,height:0});return vue.watch(e.updates,()=>{a.value=e.canvas,n.value=e.config.direction},{immediate:!0}),vue.watch(r,()=>{if(e.bandScale){const o=e.getData(e.getKeys(0)),[i]=e.bandScale.map([o[r.index]]),l=e.bandScale.bandwidth();i&&(e.config.direction==="horizontal"?t.value={x:i-l/2,y:0,width:l,height:a.value.height}:t.value={x:40,y:i-l/2,width:a.value.width-40,height:l})}}),{bar:t,canvas:a,direction:n,mouse:r}}});const _hoisted_1$1k={key:0,class:"layer-hover-bar"},_hoisted_2$U=["x","y","width","height"];function render(e,r,t,n,a,o){return e.mouse.hover?(vue.openBlock(),vue.createElementBlock("g",_hoisted_1$1k,[vue.createElementVNode("rect",vue.mergeProps({class:"hover-bar"},e.barStyle,{x:e.bar.x,y:e.bar.y,width:e.bar.width>0?e.bar.width:0,height:e.bar.height>0?e.bar.height:0}),null,16,_hoisted_2$U)])):vue.createCommentVNode("v-if",!0)}script.render=render;script.__file="src/components/HoverBar/index.vue";const _sfc_main$1G={name:"VsCarbonCalculatorResults",status:"prototype",release:"0.0.1",components:{VsCol,VsRow,VsHeading,VsIcon,Chart:script$c,Grid:script$5,Bar:script$8,Responsive:script$6},mixins:[dataLayerMixin],inject:["labelsMap"],props:{totalKilos:{type:Number,default:0},foodKilos:{type:Number,default:0},transportKilos:{type:Number,default:0},accommodationKilos:{type:Number,default:0},stayDuration:{type:Number,default:1},comparisonReplacements:{type:Array,default:()=>[]},language:{type:String,default:"en-gb"}},data(){return{chartDirection:vue.ref("horizontal"),chartAxis:vue.ref({primary:{type:"band"}}),cssProps:`--chart-label: '${this.labelsMap.kgsOf}'`,tokens:designTokens}},computed:{chartData(){return[{name:this.labelsMap.transport,emissions:this.transportKilos},{name:this.labelsMap.accommodation,emissions:this.accommodationKilos},{name:this.labelsMap.food,emissions:this.foodKilos}]},interpolComparison(){let e=this.labelsMap.comparison;for(let r=0;r<this.comparisonReplacements.length;r++)e=e.replace(this.comparisonReplacements[r].repl,(this.totalKilos/this.comparisonReplacements[r].divisor).toLocaleString(this.language,{minimumFractionDigits:3}));return e},interpolKGsPerDay(){return this.labelsMap.kgsPerDay.replace("xxx",this.totalPerDay)},interpolPerDaySuccess(){return this.labelsMap.perDaySuccess.replace("xxx",this.labelsMap.perDayTarget)},transportPercent(){return this.transportKilos/this.totalKilos*100},accommodationPercent(){return this.accommodationKilos/this.totalKilos*100},foodPercent(){return this.foodKilos/this.totalKilos*100},totalPerDay(){return this.totalKilos/Math.max(this.stayDuration,1)}},mounted(){this.createDataLayerObject("carbonCompleteEvent",{totalEmissions:this.totalKilos,totalPerDay:this.totalPerDay,travelPercent:this.transportPercent.toFixed(3)||0,accommodationPercent:this.accommodationPercent.toFixed(3)||0,foodPercent:this.foodPercent.toFixed(3)||0})},methods:{responsiveMargin(e){return e>300?{left:20,top:20,right:20,bottom:20}:{left:5,top:5,right:5,bottom:5}}}},_hoisted_1$1j={class:"vs-carbon-calculator-results__headline"},_hoisted_2$T={class:"mb-050"},_hoisted_3$H={class:"vs-carbon-calculator-results__total"},_hoisted_4$y=["innerHTML"],_hoisted_5$n={class:"vs-carbon-calculator-results__unicorn-icon-container"},_hoisted_6$g={class:"vs-carbon-calculator-results__unicorn-content"};function _sfc_render$1x(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsIcon"),f=vue.resolveComponent("Grid"),p=vue.resolveComponent("Bar"),v=vue.resolveComponent("Chart"),m=vue.resolveComponent("Responsive");return vue.openBlock(),vue.createBlock(c,{"data-test":"vs-carbon-calculator-results",style:vue.normalizeStyle(a.cssProps)},{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(i,{level:"2","heading-style":"heading-m"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.labelsMap.results),1)]),_:1})]),_:1}),vue.createVNode(l,{cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(c,{class:"vs-carbon-calculator-results__summary"},{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",md:"6"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1j,[vue.createElementVNode("p",_hoisted_2$T,vue.toDisplayString(o.labelsMap.resultsIntro),1),vue.createElementVNode("p",null,[vue.createElementVNode("span",_hoisted_3$H,vue.toDisplayString(t.totalKilos.toLocaleString(t.language,{minimumFractionDigits:3})),1),vue.createTextVNode(" "+vue.toDisplayString(o.labelsMap.kgsOf),1)])])]),_:1}),vue.createVNode(l,{cols:"12",md:"6",class:"vs-carbon-calculator-results__comparison"},{default:vue.withCtx(()=>[vue.createElementVNode("p",{innerHTML:o.interpolComparison},null,8,_hoisted_4$y)]),_:1})]),_:1})]),_:1}),o.totalPerDay<=o.labelsMap.perDayTarget?(vue.openBlock(),vue.createBlock(l,{key:0,cols:"12",class:"vs-carbon-calculator-results__unicorn"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_5$n,[vue.createVNode(d,{name:"unicorn",size:"lg",variant:"tertiary",class:"vs-carbon-calculator-results__unicorn-icon"})]),vue.createElementVNode("div",_hoisted_6$g,[vue.createVNode(i,{level:"3","heading-style":"heading-xs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.labelsMap.perDayCongratulations),1)]),_:1}),vue.createElementVNode("p",null,vue.toDisplayString(o.interpolPerDaySuccess),1)])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{level:"3","heading-style":"heading-xs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.labelsMap.chartTitle),1)]),_:1})]),_:1}),vue.createVNode(l,{class:"vs-carbon-calculator-results__chart-wrapper",cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(m,null,{main:vue.withCtx(({width:g})=>[vue.createVNode(v,{class:"vs-carbon-calculator-results__chart",size:{width:g,height:420},data:o.chartData,margin:o.responsiveMargin(g),direction:a.chartDirection,axis:a.chartAxis},{layers:vue.withCtx(()=>[vue.createVNode(f,{"stroke-dasharray":"2,2"}),vue.createVNode(p,{"data-keys":["name","emissions"],"bar-style":{fill:a.tokens["vs-color-background-highlight"]},gap:20},null,8,["bar-style"])]),_:2},1032,["size","data","margin","direction","axis"])]),_:1})]),_:1})]),_:1},8,["style"])}const VsCarbonCalculatorResults=_export_sfc(_sfc_main$1G,[["render",_sfc_render$1x]]),_sfc_main$1F={name:"VsCarbonCalculatorRunningTotal",status:"prototype",release:"0.0.1",components:{VsIcon},inject:["labelsMap"],props:{totalKilos:{type:Number,default:0},language:{type:String,default:"en-gb"}}},_hoisted_1$1i={class:"vs-carbon-calculator-running-total","data-test":"vs-carbon-calculator-running-total"},_hoisted_2$S={class:"vs-carbon-calculator-running-total__icon"},_hoisted_3$G={class:"vs-carbon-calculator-running-total__content"},_hoisted_4$x={class:"font-weight-bold"};function _sfc_render$1w(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1i,[vue.createElementVNode("div",_hoisted_2$S,[vue.createVNode(i,{name:"notes",size:"lg"})]),vue.createElementVNode("div",_hoisted_3$G,[vue.createElementVNode("p",null,vue.toDisplayString(o.labelsMap.soFar),1),vue.createElementVNode("p",null,[vue.createElementVNode("span",_hoisted_4$x,vue.toDisplayString(t.totalKilos.toLocaleString(t.language,{minimumFractionDigits:3})),1),vue.createTextVNode(" "+vue.toDisplayString(o.labelsMap.kgsOf),1)])])])}const VsCarbonCalculatorRunningTotal=_export_sfc(_sfc_main$1F,[["render",_sfc_render$1w]]),_sfc_main$1E={name:"VsCarbonCalculatorIntro",status:"prototype",release:"0.0.1",components:{VsHeading},inject:["labelsMap"]},_hoisted_1$1h={class:"vs-carbon-calculator-intro","data-test":"vs-carbon-calculator-intro"};function _sfc_render$1v(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1h,[vue.createVNode(i,{level:"2","heading-style":"heading-l"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.labelsMap.introHeading),1)]),_:1}),vue.createElementVNode("p",null,vue.toDisplayString(o.labelsMap.introContent),1)])}const VsCarbonCalculatorIntro=_export_sfc(_sfc_main$1E,[["render",_sfc_render$1v]]);function ownKeys$1(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,n)}return t}function _objectSpread2$1(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?ownKeys$1(Object(t),!0).forEach(function(n){_defineProperty$2(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys$1(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function _defineProperty$2(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function unwrapObj(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((t,n)=>(r.includes(n)||(t[n]=vue.unref(e[n])),t),{})}function isFunction$2(e){return typeof e=="function"}function isProxy(e){return vue.isReactive(e)||vue.isReadonly(e)}function get(e,r,t){let n=e;const a=r.split(".");for(let o=0;o<a.length;o++){if(!n[a[o]])return t;n=n[a[o]]}return n}function gatherBooleanGroupProperties(e,r,t){return vue.computed(()=>e.some(n=>get(r,n,{[t]:!1})[t]))}function gatherArrayGroupProperties(e,r,t){return vue.computed(()=>e.reduce((n,a)=>{const o=get(r,a,{[t]:!1})[t]||[];return n.concat(o)},[]))}function callRule(e,r,t,n){return e.call(n,vue.unref(r),vue.unref(t),n)}function normalizeValidatorResponse(e){return e.$valid!==void 0?!e.$valid:!e}function createAsyncResult(e,r,t,n,a,o,i){let{$lazy:l,$rewardEarly:c}=a,d=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],f=arguments.length>8?arguments[8]:void 0,p=arguments.length>9?arguments[9]:void 0,v=arguments.length>10?arguments[10]:void 0;const m=vue.ref(!!n.value),g=vue.ref(0);t.value=!1;const _=vue.watch([r,n].concat(d,v),()=>{if(l&&!n.value||c&&!p.value&&!t.value)return;let S;try{S=callRule(e,r,f,i)}catch(C){S=Promise.reject(C)}g.value++,t.value=!!g.value,m.value=!1,Promise.resolve(S).then(C=>{g.value--,t.value=!!g.value,o.value=C,m.value=normalizeValidatorResponse(C)}).catch(C=>{g.value--,t.value=!!g.value,o.value=C,m.value=!0})},{immediate:!0,deep:typeof r=="object"});return{$invalid:m,$unwatch:_}}function createSyncResult(e,r,t,n,a,o,i,l){let{$lazy:c,$rewardEarly:d}=n;const f=()=>({}),p=vue.computed(()=>{if(c&&!t.value||d&&!l.value)return!1;let v=!0;try{const m=callRule(e,r,i,o);a.value=m,v=normalizeValidatorResponse(m)}catch(m){a.value=m}return v});return{$unwatch:f,$invalid:p}}function createValidatorResult(e,r,t,n,a,o,i,l,c,d,f){const p=vue.ref(!1),v=e.$params||{},m=vue.ref(null);let g,_;e.$async?{$invalid:g,$unwatch:_}=createAsyncResult(e.$validator,r,p,t,n,m,a,e.$watchTargets,c,d,f):{$invalid:g,$unwatch:_}=createSyncResult(e.$validator,r,t,n,m,a,c,d);const S=e.$message;return{$message:isFunction$2(S)?vue.computed(()=>S(unwrapObj({$pending:p,$invalid:g,$params:unwrapObj(v),$model:r,$response:m,$validator:o,$propertyPath:l,$property:i}))):S||"",$params:v,$pending:p,$invalid:g,$response:m,$unwatch:_}}function sortValidations(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=vue.unref(e),t=Object.keys(r),n={},a={},o={};let i=null;return t.forEach(l=>{const c=r[l];switch(!0){case isFunction$2(c.$validator):n[l]=c;break;case isFunction$2(c):n[l]={$validator:c};break;case l==="$validationGroups":i=c;break;case l.startsWith("$"):o[l]=c;break;default:a[l]=c}}),{rules:n,nestedValidators:a,config:o,validationGroups:i}}const ROOT_PATH="__root";function createValidationResults(e,r,t,n,a,o,i,l,c){const d=Object.keys(e),f=n.get(a,e),p=vue.ref(!1),v=vue.ref(!1),m=vue.ref(0);if(f){if(!f.$partial)return f;f.$unwatch(),p.value=f.$dirty.value}const g={$dirty:p,$path:a,$touch:()=>{p.value||(p.value=!0)},$reset:()=>{p.value&&(p.value=!1)},$commit:()=>{}};return d.length?(d.forEach(_=>{g[_]=createValidatorResult(e[_],r,g.$dirty,o,i,_,t,a,c,v,m)}),g.$externalResults=vue.computed(()=>l.value?[].concat(l.value).map((_,S)=>({$propertyPath:a,$property:t,$validator:"$externalResults",$uid:`${a}-externalResult-${S}`,$message:_,$params:{},$response:null,$pending:!1})):[]),g.$invalid=vue.computed(()=>{const _=d.some(S=>vue.unref(g[S].$invalid));return v.value=_,!!g.$externalResults.value.length||_}),g.$pending=vue.computed(()=>d.some(_=>vue.unref(g[_].$pending))),g.$error=vue.computed(()=>g.$dirty.value?g.$pending.value||g.$invalid.value:!1),g.$silentErrors=vue.computed(()=>d.filter(_=>vue.unref(g[_].$invalid)).map(_=>{const S=g[_];return vue.reactive({$propertyPath:a,$property:t,$validator:_,$uid:`${a}-${_}`,$message:S.$message,$params:S.$params,$response:S.$response,$pending:S.$pending})}).concat(g.$externalResults.value)),g.$errors=vue.computed(()=>g.$dirty.value?g.$silentErrors.value:[]),g.$unwatch=()=>d.forEach(_=>{g[_].$unwatch()}),g.$commit=()=>{v.value=!0,m.value=Date.now()},n.set(a,e,g),g):(f&&n.set(a,e,g),g)}function collectNestedValidationResults(e,r,t,n,a,o,i){const l=Object.keys(e);return l.length?l.reduce((c,d)=>(c[d]=setValidations({validations:e[d],state:r,key:d,parentKey:t,resultsCache:n,globalConfig:a,instance:o,externalResults:i}),c),{}):{}}function createMetaFields(e,r,t){const n=vue.computed(()=>[r,t].filter(g=>g).reduce((g,_)=>g.concat(Object.values(vue.unref(_))),[])),a=vue.computed({get(){return e.$dirty.value||(n.value.length?n.value.every(g=>g.$dirty):!1)},set(g){e.$dirty.value=g}}),o=vue.computed(()=>{const g=vue.unref(e.$silentErrors)||[],_=n.value.filter(S=>(vue.unref(S).$silentErrors||[]).length).reduce((S,C)=>S.concat(...C.$silentErrors),[]);return g.concat(_)}),i=vue.computed(()=>{const g=vue.unref(e.$errors)||[],_=n.value.filter(S=>(vue.unref(S).$errors||[]).length).reduce((S,C)=>S.concat(...C.$errors),[]);return g.concat(_)}),l=vue.computed(()=>n.value.some(g=>g.$invalid)||vue.unref(e.$invalid)||!1),c=vue.computed(()=>n.value.some(g=>vue.unref(g.$pending))||vue.unref(e.$pending)||!1),d=vue.computed(()=>n.value.some(g=>g.$dirty)||n.value.some(g=>g.$anyDirty)||a.value),f=vue.computed(()=>a.value?c.value||l.value:!1),p=()=>{e.$touch(),n.value.forEach(g=>{g.$touch()})},v=()=>{e.$commit(),n.value.forEach(g=>{g.$commit()})},m=()=>{e.$reset(),n.value.forEach(g=>{g.$reset()})};return n.value.length&&n.value.every(g=>g.$dirty)&&p(),{$dirty:a,$errors:i,$invalid:l,$anyDirty:d,$error:f,$pending:c,$touch:p,$reset:m,$silentErrors:o,$commit:v}}function setValidations(e){let{validations:r,state:t,key:n,parentKey:a,childResults:o,resultsCache:i,globalConfig:l={},instance:c,externalResults:d}=e;const f=a?`${a}.${n}`:n,{rules:p,nestedValidators:v,config:m,validationGroups:g}=sortValidations(r),_=_objectSpread2$1(_objectSpread2$1({},l),m),S=n?vue.computed(()=>{const W=vue.unref(t);return W?vue.unref(W[n]):void 0}):t,C=_objectSpread2$1({},vue.unref(d)||{}),w=vue.computed(()=>{const W=vue.unref(d);return n?W?vue.unref(W[n]):void 0:W}),E=createValidationResults(p,S,n,i,f,_,c,w,t),$=collectNestedValidationResults(v,S,f,i,_,c,w),T={};g&&Object.entries(g).forEach(W=>{let[X,fe]=W;T[X]={$invalid:gatherBooleanGroupProperties(fe,$,"$invalid"),$error:gatherBooleanGroupProperties(fe,$,"$error"),$pending:gatherBooleanGroupProperties(fe,$,"$pending"),$errors:gatherArrayGroupProperties(fe,$,"$errors"),$silentErrors:gatherArrayGroupProperties(fe,$,"$silentErrors")}});const{$dirty:B,$errors:R,$invalid:L,$anyDirty:te,$error:oe,$pending:Q,$touch:ce,$reset:J,$silentErrors:ne,$commit:ge}=createMetaFields(E,$,o),me=n?vue.computed({get:()=>vue.unref(S),set:W=>{B.value=!0;const X=vue.unref(t),fe=vue.unref(d);fe&&(fe[n]=C[n]),vue.isRef(X[n])?X[n].value=W:X[n]=W}}):null;n&&_.$autoDirty&&vue.watch(S,()=>{B.value||ce();const W=vue.unref(d);W&&(W[n]=C[n])},{flush:"sync"});async function de(){return ce(),_.$rewardEarly&&(ge(),await vue.nextTick()),await vue.nextTick(),new Promise(W=>{if(!Q.value)return W(!L.value);const X=vue.watch(Q,()=>{W(!L.value),X()})})}function A(W){return(o.value||{})[W]}function F(){vue.isRef(d)?d.value=C:Object.keys(C).length===0?Object.keys(d).forEach(W=>{delete d[W]}):Object.assign(d,C)}return vue.reactive(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},E),{},{$model:me,$dirty:B,$error:oe,$errors:R,$invalid:L,$anyDirty:te,$pending:Q,$touch:ce,$reset:J,$path:f||ROOT_PATH,$silentErrors:ne,$validate:de,$commit:ge},o&&{$getResultsForChild:A,$clearExternalResults:F,$validationGroups:T}),$))}class ResultsStorage{constructor(){this.storage=new Map}set(r,t,n){this.storage.set(r,{rules:t,result:n})}checkRulesValidity(r,t,n){const a=Object.keys(n),o=Object.keys(t);return o.length!==a.length||!o.every(l=>a.includes(l))?!1:o.every(l=>t[l].$params?Object.keys(t[l].$params).every(c=>vue.unref(n[l].$params[c])===vue.unref(t[l].$params[c])):!0)}get(r,t){const n=this.storage.get(r);if(!n)return;const{rules:a,result:o}=n,i=this.checkRulesValidity(r,t,a),l=o.$unwatch?o.$unwatch:()=>({});return i?o:{$dirty:o.$dirty,$partial:!0,$unwatch:l}}}const CollectFlag={COLLECT_ALL:!0,COLLECT_NONE:!1},VuelidateInjectChildResults=Symbol("vuelidate#injectChildResults"),VuelidateRemoveChildResults=Symbol("vuelidate#removeChildResults");function nestedValidations(e){let{$scope:r,instance:t}=e;const n={},a=vue.ref([]),o=vue.computed(()=>a.value.reduce((f,p)=>(f[p]=vue.unref(n[p]),f),{}));function i(f,p){let{$registerAs:v,$scope:m,$stopPropagation:g}=p;g||r===CollectFlag.COLLECT_NONE||m===CollectFlag.COLLECT_NONE||r!==CollectFlag.COLLECT_ALL&&r!==m||(n[v]=f,a.value.push(v))}t.__vuelidateInjectInstances=[].concat(t.__vuelidateInjectInstances||[],i);function l(f){a.value=a.value.filter(p=>p!==f),delete n[f]}t.__vuelidateRemoveInstances=[].concat(t.__vuelidateRemoveInstances||[],l);const c=vue.inject(VuelidateInjectChildResults,[]);vue.provide(VuelidateInjectChildResults,t.__vuelidateInjectInstances);const d=vue.inject(VuelidateRemoveChildResults,[]);return vue.provide(VuelidateRemoveChildResults,t.__vuelidateRemoveInstances),{childResults:o,sendValidationResultsToParent:c,removeValidationResultsFromParent:d}}function ComputedProxyFactory(e){return new Proxy(e,{get(r,t){return typeof r[t]=="object"?ComputedProxyFactory(r[t]):vue.computed(()=>r[t])}})}let uid=0;function useVuelidate(e,r){var t;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(n=e,e=void 0,r=void 0);let{$registerAs:a,$scope:o=CollectFlag.COLLECT_ALL,$stopPropagation:i,$externalResults:l,currentVueInstance:c}=n;const d=c||((t=vue.getCurrentInstance())===null||t===void 0?void 0:t.proxy),f=d?d.$options:{};a||(uid+=1,a=`_vuelidate_${uid}`);const p=vue.ref({}),v=new ResultsStorage,{childResults:m,sendValidationResultsToParent:g,removeValidationResultsFromParent:_}=d?nestedValidations({$scope:o,instance:d}):{childResults:vue.ref({})};if(!e&&f.validations){const S=f.validations;r=vue.ref({}),vue.onBeforeMount(()=>{r.value=d,vue.watch(()=>isFunction$2(S)?S.call(r.value,new ComputedProxyFactory(r.value)):S,C=>{p.value=setValidations({validations:C,state:r,childResults:m,resultsCache:v,globalConfig:n,instance:d,externalResults:l||d.vuelidateExternalResults})},{immediate:!0})}),n=f.validationsConfig||n}else{const S=vue.isRef(e)||isProxy(e)?e:vue.reactive(e||{});vue.watch(S,C=>{p.value=setValidations({validations:C,state:r,childResults:m,resultsCache:v,globalConfig:n,instance:d??{},externalResults:l})},{immediate:!0})}return d&&(g.forEach(S=>S(p,{$registerAs:a,$scope:o,$stopPropagation:i})),vue.onBeforeUnmount(()=>_.forEach(S=>S(a)))),vue.computed(()=>_objectSpread2$1(_objectSpread2$1({},vue.unref(p.value)),m.value))}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,n)}return t}function _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(n){_defineProperty$1(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function _defineProperty$1(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function isFunction$1(e){return typeof e=="function"}function isObject$1(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function normalizeValidatorObject(e){return isFunction$1(e.$validator)?_objectSpread2({},e):{$validator:e}}function unwrapValidatorResponse(e){return typeof e=="object"?e.$valid:e}function unwrapNormalizedValidator(e){return e.$validator||e}function withParams(e,r){if(!isObject$1(e))throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);if(!isObject$1(r)&&!isFunction$1(r))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const t=normalizeValidatorObject(r);return t.$params=_objectSpread2(_objectSpread2({},t.$params||{}),e),t}function withMessage(e,r){if(!isFunction$1(e)&&typeof vue.unref(e)!="string")throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`);if(!isObject$1(r)&&!isFunction$1(r))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const t=normalizeValidatorObject(r);return t.$message=e,t}function withAsync(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const t=normalizeValidatorObject(e);return _objectSpread2(_objectSpread2({},t),{},{$async:!0,$watchTargets:r})}function forEach(e){return{$validator(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return vue.unref(r).reduce((o,i,l)=>{const c=Object.entries(i).reduce((d,f)=>{let[p,v]=f;const m=e[p]||{},g=Object.entries(m).reduce((_,S)=>{let[C,w]=S;const $=unwrapNormalizedValidator(w).call(this,v,i,l,...n),T=unwrapValidatorResponse($);if(_.$data[C]=$,_.$data.$invalid=!T||!!_.$data.$invalid,_.$data.$error=_.$data.$invalid,!T){let B=w.$message||"";const R=w.$params||{};typeof B=="function"&&(B=B({$pending:!1,$invalid:!T,$params:R,$model:v,$response:$})),_.$errors.push({$property:p,$message:B,$params:R,$response:$,$model:v,$pending:!1,$validator:C})}return{$valid:_.$valid&&T,$data:_.$data,$errors:_.$errors}},{$valid:!0,$data:{},$errors:[]});return d.$data[p]=g.$data,d.$errors[p]=g.$errors,{$valid:d.$valid&&g.$valid,$data:d.$data,$errors:d.$errors}},{$valid:!0,$data:{},$errors:{}});return{$valid:o.$valid&&c.$valid,$data:o.$data.concat(c.$data),$errors:o.$errors.concat(c.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:r=>{let{$response:t}=r;return t?t.$errors.map(n=>Object.values(n).map(a=>a.map(o=>o.$message)).reduce((a,o)=>a.concat(o),[])):[]}}}const req=e=>{if(e=vue.unref(e),Array.isArray(e))return!!e.length;if(e==null)return!1;if(e===!1)return!0;if(e instanceof Date)return!isNaN(e.getTime());if(typeof e=="object"){for(let r in e)return!0;return!1}return!!String(e).length},len=e=>(e=vue.unref(e),Array.isArray(e)?e.length:typeof e=="object"?Object.keys(e).length:String(e).length);function regex(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return n=>(n=vue.unref(n),!req(n)||r.every(a=>(a.lastIndex=0,a.test(n))))}var common$1=Object.freeze({__proto__:null,forEach,len,normalizeValidatorObject,regex,req,unwrap:vue.unref,unwrapNormalizedValidator,unwrapValidatorResponse,withAsync,withMessage,withParams});regex(/^[a-zA-Z]*$/);regex(/^[a-zA-Z0-9]*$/);regex(/^\d*(\.\d+)?$/);const emailRegex=/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;var email$1=regex(emailRegex),email={$validator:email$1,$message:"Value is not a valid email address",$params:{type:"email"}};function maxLength$1(e){return r=>!req(r)||len(r)<=vue.unref(e)}function maxLength(e){return{$validator:maxLength$1(e),$message:r=>{let{$params:t}=r;return`The maximum length allowed is ${t.max}`},$params:{max:e,type:"maxLength"}}}function minLength$1(e){return r=>!req(r)||len(r)>=vue.unref(e)}function minLength(e){return{$validator:minLength$1(e),$message:r=>{let{$params:t}=r;return`This field should be at least ${t.min} characters long`},$params:{min:e,type:"minLength"}}}function required$1(e){return typeof e=="string"&&(e=e.trim()),req(e)}var required={$validator:required$1,$message:"Value is required",$params:{type:"required"}};const urlRegex=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;regex(urlRegex);regex(/(^[0-9]*$)|(^-[0-9]+$)/);regex(/^[-]?\d*(\.\d+)?$/);const postcode=common$1.regex(/^([A-Za-z][A-HJ-Ya-hj-y]?\d[A-Za-z\d]? ?\d[A-Za-z]{2}|GIR ?0A{2})$/),validateFormElementMixin={data(){return{inputVal:this.value,isInvalid:this.invalid}},computed:{isRequired(){return typeof required<"u"&&"required"in this.validationRules},rules(){let e={};for(const[r,t]of Object.entries(this.validationRules))r==="required"?e={...e,required}:r==="email"?e={...e,email}:r==="minLength"?e={...e,minLength:minLength(t)}:r==="maxLength"?e={...e,maxLength:maxLength(t)}:r==="invalidVal"?e={...e,noInvalid:()=>this.inputVal.indexOf(this.validationRules.invalidVal)===-1}:r==="postcode"&&(e={...e,postcode});return typeof e<"u"?(e={...e},{inputVal:e}):{}},errorsList(){const e=[];return Object.keys(this.rules.inputVal).forEach(t=>{this.v$.$errors&&this.v$.$errors.forEach(n=>{n.$validator===t&&e.push(t)})}),e}},watch:{errorsList(e){e.length?this.isInvalid=!0:this.isInvalid=!1}},methods:{manualValidate(){if(this.isInvalid=!1,"required"in this.rules.inputVal){let e=!1;typeof this.inputVal=="string"?/\S/.test(this.inputVal)||(e=!0):this.inputVal||(e=!0),e&&this.errorsList.indexOf("required")===-1&&this.errorsList.push("required")}else this.errorsList.forEach((e,r)=>{e==="required"&&this.errorsList.splice(r,1)});this.errorsList.length&&(this.isInvalid=!0),this.touched=!0,this.$emit("status-update",{field:this.fieldName,value:this.inputVal,errors:this.errorsList})},emitStatus(){setTimeout(()=>{this.manualValidate(),this.touched=!0,this.v$.$touch()},50)}}},ariaDescriptionMixin={computed:{ariaDescription(){return this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?`error-${this.fieldName}`:this.hintText?`hint-${this.fieldName}`:null}}},_sfc_main$1D={name:"VsRadioButton",status:"prototype",release:"0.0.1",components:{BFormRadioGroup:bootstrapVueNext.BFormRadioGroup,BFormRadio:bootstrapVueNext.BFormRadio},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{value:{type:String,default:""},fieldName:{type:String,required:!0},validationRules:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},genericValidation:{type:Object,default(){return{}}},reAlertErrors:{type:Boolean,default:!1},options:{type:Array,required:!0},hintText:{type:String,default:""}},emits:["updated","updateFieldData"],setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,clearErrorsOnFocus:!1,checkedValue:this.value}},computed:{elementClass(){const e=this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":"",r=`vs-input--${this.fieldName}`;return`${e} ${r}`},showClearButton(){return!!(this.inputVal.length&&this.clearButtonText!=="")},errorClass(){return this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":""}},watch:{triggerValidate(){this.manualValidate()},inputVal(e){this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e}},methods:{clearInput(){this.inputVal=""},focusOnInput(){this.$nextTick(()=>{this.$refs.input.$el.focus()})},validateErrors(){this.clearErrorsOnFocus=!1,this.emitStatus()},resetErrors(){this.clearErrorsOnFocus=!0},valueChanged(e){this.checkedValue=e.value,this.$emit("updateFieldData",e)}},validations(){return this.rules}},_hoisted_1$1g={class:"vs-radio-button","data-test":"vs-radio-button"},_hoisted_2$R=["id"],_hoisted_3$F={class:"visually-hidden"},_hoisted_4$w=["id"];function _sfc_render$1u(e,r,t,n,a,o){const i=vue.resolveComponent("BFormRadio"),l=vue.resolveComponent("BFormRadioGroup");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1g,[e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:0,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,c=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:c,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_3$F,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[c]||t.genericValidation[c]),1)])),[[vue.vShow,!t.reAlertErrors&&!a.clearErrorsOnFocus]])),128))],8,_hoisted_2$R)):vue.createCommentVNode("",!0),vue.createVNode(l,{id:t.fieldName,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,onBlur:o.validateErrors,onChange:o.validateErrors,onFocus:o.resetErrors},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.options,(c,d)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-radio-button__option",[a.checkedValue===c.value?"vs-radio-button__option--checked":"",{"vs-radio-button__option--disabled":c.disabled}]]),key:d},[vue.createVNode(i,{value:c.value,name:t.fieldName,id:t.fieldName+c.value,onChange:f=>o.valueChanged({field:t.fieldName,value:c.value}),disabled:c.disabled},{default:vue.withCtx(()=>[vue.createElementVNode("span",null,vue.toDisplayString(c.text),1)]),_:2},1032,["value","name","id","onChange","disabled"])],2))),128))]),_:1},8,["id","aria-invalid","aria-describedby","onBlur","onChange","onFocus"]),t.hintText?(vue.openBlock(),vue.createElementBlock("p",{key:1,class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_4$w)):vue.createCommentVNode("",!0)])}const VsRadioButton=_export_sfc(_sfc_main$1D,[["render",_sfc_render$1u]]),_sfc_main$1C={name:"VsInput",status:"prototype",release:"0.0.1",components:{BFormInput:bootstrapVueNext.BFormInput,VsButton},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{value:{type:Number,default:0},fieldName:{type:String,required:!0},minimumNumber:{type:Number,default:0},maximumNumber:{type:Number,default:10},autoComplete:{type:Boolean,default:!0},validationRules:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},genericValidation:{type:Object,default(){return{}}},hintText:{type:String,default:""},clearButtonText:{type:String,default:""},reAlertErrors:{type:Boolean,default:!1}},emits:["updated"],setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,clearErrorsOnFocus:!1}},computed:{elementClass(){const e=this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":"",r=`vs-input--${this.fieldName}`;return`${e} ${r}`},showClearButton(){return!!(this.inputVal.length&&this.clearButtonText!=="")},errorClass(){return this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":""}},watch:{triggerValidate(){this.manualValidate()},inputVal(e){this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e}},methods:{clearInput(){this.inputVal=0},focusOnInput(){this.$nextTick(()=>{this.$refs.input.$el.focus()})},clearInputAndFocus(){this.clearInput(),this.focusOnInput()},controlBlurred(){this.inputVal<this.minimumNumber&&(this.inputVal=this.minimumNumber),this.inputVal>this.maximumNumber&&(this.inputVal=this.maximumNumber),this.validateErrors()},validateErrors(){this.clearErrorsOnFocus=!1,this.emitStatus()},resetErrors(){this.clearErrorsOnFocus=!0},decrementValue(e){e&&e.preventDefault(),this.inputVal=Math.max(this.inputVal-1,this.minimumNumber)},incrementValue(e){e&&e.preventDefault(),this.inputVal=Math.min(this.inputVal+1,this.maximumNumber)}},validations(){return this.rules}},_hoisted_1$1f={"data-test":"vs-number-input"},_hoisted_2$Q=["id"],_hoisted_3$E=["id"],_hoisted_4$v={class:"visually-hidden"},_hoisted_5$m={class:"visually-hidden"};function _sfc_render$1t(e,r,t,n,a,o){const i=vue.resolveComponent("VsButton"),l=vue.resolveComponent("BFormInput");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1f,[t.hintText?(vue.openBlock(),vue.createElementBlock("p",{key:0,class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_2$Q)):vue.createCommentVNode("",!0),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:1,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,c=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:c,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$v,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[c]||t.genericValidation[c]),1)])),[[vue.vShow,!t.reAlertErrors&&!a.clearErrorsOnFocus]])),128))],8,_hoisted_3$E)):vue.createCommentVNode("",!0),vue.createVNode(i,{class:"vs-number-input__increment","icon-only":!0,size:"sm",icon:"minus",disabled:a.inputVal<=t.minimumNumber?!0:null,onClick:o.decrementValue},{default:vue.withCtx(()=>[vue.createTextVNode(" Remove 1 ")]),_:1},8,["disabled","onClick"]),vue.createVNode(l,{ref:"input",type:"Number",class:vue.normalizeClass(["vs-number-input",o.elementClass]),modelValue:a.inputVal,"onUpdate:modelValue":r[0]||(r[0]=c=>a.inputVal=c),id:t.fieldName,name:t.fieldName,required:e.isRequired,v:a.inputVal,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,maxlength:t.validationRules.maxLength?t.validationRules.maxLength:null,minlength:t.validationRules.minLength?t.validationRules.minLength:null,min:t.minimumNumber||null,max:t.maximumNumber||null,onBlur:o.controlBlurred,onChange:o.validateErrors,onFocus:o.resetErrors},null,8,["modelValue","class","id","name","required","v","aria-invalid","aria-describedby","maxlength","minlength","min","max","onBlur","onChange","onFocus"]),vue.createVNode(i,{class:"vs-number-input__increment","icon-only":!0,size:"sm",icon:"plus",disabled:a.inputVal>=t.maximumNumber?!0:null,onClick:o.incrementValue},{default:vue.withCtx(()=>[vue.createTextVNode(" Add 1 ")]),_:1},8,["disabled","onClick"]),o.showClearButton?(vue.openBlock(),vue.createBlock(i,{key:2,class:"vs-number-input__clear-button d-none d-lg-block","data-test":"input-clear-button",variant:"transparent",icon:"close",size:"md","icon-only":"",onClick:r[1]||(r[1]=vue.withModifiers(c=>o.clearInputAndFocus(),["prevent"]))},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_5$m,vue.toDisplayString(t.clearButtonText),1)]),_:1})):vue.createCommentVNode("",!0)])}const VsNumberInput=_export_sfc(_sfc_main$1C,[["render",_sfc_render$1t]]),_sfc_main$1B={name:"VsCarbonCalculatorQuestion",status:"prototype",release:"0.0.1",components:{BFormGroup:bootstrapVueNext.BFormGroup,VsRadioButton,VsNumberInput},props:{label:{type:String,required:!0},labelFor:{type:String,required:!0},hint:{type:String,default:""},fieldClass:{type:String,required:!0},fieldType:{type:String,default:"radio",validator:e=>e.match(/(radio|number)/)},fieldName:{type:String,required:!0},options:{type:Array,required:!0},minimum:{type:Number,default:0},maximum:{type:Number,default:0}},emits:["updateFieldData"],methods:{valueChanged(e){this.$emit("updateFieldData",e)}}},_hoisted_1$1e=["for"];function _sfc_render$1s(e,r,t,n,a,o){const i=vue.resolveComponent("VsRadioButton"),l=vue.resolveComponent("VsNumberInput"),c=vue.resolveComponent("BFormGroup");return vue.openBlock(),vue.createBlock(c,{class:vue.normalizeClass([t.fieldClass,"vs-carbon-calculator-question"]),"data-test":"vs-carbon-calculator-question"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(t.fieldClass)},[vue.createElementVNode("label",{class:"vs-carbon-calculator-question__label mb-200",for:t.fieldName},vue.toDisplayString(t.label),9,_hoisted_1$1e),t.fieldType==="radio"?(vue.openBlock(),vue.createBlock(i,{key:0,"field-name":t.fieldName,options:t.options,required:!0,"hint-text":t.hint,onUpdateFieldData:o.valueChanged},null,8,["field-name","options","hint-text","onUpdateFieldData"])):vue.createCommentVNode("",!0),t.fieldType==="number"?(vue.openBlock(),vue.createBlock(l,{key:1,"field-name":t.fieldName,"increment-controls":!0,value:0,"minimum-number":t.minimum,"maximum-number":t.maximum,"hint-text":t.hint,onUpdated:o.valueChanged},null,8,["field-name","minimum-number","maximum-number","hint-text","onUpdated"])):vue.createCommentVNode("",!0)],2)]),_:1},8,["class"])}const VsCarbonCalculatorQuestion=_export_sfc(_sfc_main$1B,[["render",_sfc_render$1s]]),_sfc_main$1A={name:"VsCarbonCalculator",status:"prototype",release:"0.0.1",components:{VsButton,VsContainer,VsCol,VsRow,VsWarning,VsProgressBar,VsHeading,VsCarbonCalculatorResults,VsCarbonCalculatorTip,VsCarbonCalculatorRunningTotal,VsCarbonCalculatorIntro,VsCarbonCalculatorQuestion},mixins:[dataLayerMixin],provide(){return{labelsMap:this.labelsMap}},props:{labelsMap:{type:Object,required:!0},language:{type:String,default:"en-gb"}},data(){return this.initialState()},computed:{currentQuestion(){return!this.formData||!this.activeStage?null:this.formData.fields[this.activeStage-1]},currentTip(){return this.activeStage&&this.labelsMap[`stage-${this.activeStage}.tip`]?this.labelsMap[`stage-${this.activeStage}.tip`]:""},stayDuration(){return this.form.howLongStay?parseInt(this.form.howLongStay,10):0},currentCategory(){return this.labelsMap[`stage-${this.activeStage}.title`]?this.labelsMap[`stage-${this.activeStage}.title`]:""},activeStageRepeatable(){return this.labelsMap[`stage-${this.activeStage}.repeat`]?this.labelsMap[`stage-${this.activeStage}.repeat`]:""}},mounted(){this.getFormData()},methods:{initialState(){return{formData:{},messagingData:{},form:{},formIsInvalid:!1,showErrorMessage:!1,errorFields:[],triggerValidate:!1,conditionalFields:{},reAlertErrors:!1,totalKilos:0,transportKilos:0,accommodationKilos:0,foodKilos:0,transportTip:null,foodTip:null,accommodationTip:null,transportInternalTip:null,activeStage:0,answerSet:!1,repeatableStages:{}}},restart(){const{formData:e,repeatableStages:r}=this;Object.assign(this.$data,this.initialState()),this.$data.formData=e,this.$data.repeatableStages=r,this.cleanFields()},cleanFields(){for(let e=this.formData.fields.length-1;e>=0;e--)this.formData.fields[e].isClone&&this.formData.fields.splice(e,1);for(let e=0;e<Object.keys(this.repeatableStages).length;e++)this.repeatableStages[Object.keys(this.repeatableStages)[e]].generations=0},getFormData(){axios.get(this.labelsMap.formUrl).then(e=>{if(this.formData=e.data,e.data.fields.forEach(r=>{this.form[r.name]="",r.conditional&&(this.conditionalFields[r.name]=!1)}),this.repeatableStages={},e.data.repeatableStages)for(let r=0;r<e.data.repeatableStages.length;r++)this.repeatableStages[e.data.repeatableStages[r]]={generations:0}})},getMessagingData(e,r){return Object.keys(this.messagingData).length>0?this.messagingData[r][e]:e==="validation"?{}:""},getQuestionLabel(e,r){if(e.isClone){if(this.labelsMap[`question-${e.originalNumber+1}.clone-question`])return this.labelsMap[`question-${e.originalNumber+1}.clone-question`];if(this.labelsMap[`question-${e.originalNumber+1}.question`])return this.labelsMap[`question-${e.originalNumber+1}.question`]}return this.labelsMap[`question-${r+1}.question`]?this.labelsMap[`question-${r+1}.question`]:""},getQuestionHint(e,r){if(e.isClone){if(this.labelsMap[`question-${e.originalNumber+1}.clone-hint`])return this.labelsMap[`question-${e.originalNumber+1}.clone-hint`];if(this.labelsMap[`question-${e.originalNumber+1}.hint`])return this.labelsMap[`question-${e.originalNumber+1}.hint`]}return this.labelsMap[`question-${r+1}.hint`]?this.labelsMap[`question-${r+1}.hint`]:""},getQuestionOptions(e,r){let t;if(e.isClone?t=e.originalNumber:t=r,e.element==="radio"){const{options:n}=e;for(let a=0;a<n.length;a++)n[a].text=this.labelsMap[`question-${t+1}.option-${a+1}`];return n}return[]},updateFieldData(e){this.form[e.field]=e.value||"",e.value?this.answerSet=!0:this.answerSet=!1,this.manageErrorStatus(e.field,e.errors),this.checkConditionalFields(),this.calculateEmissions()},manageErrorStatus(e,r){const t=this.errorFields.indexOf(e);t!==-1?(!r||r.length<1)&&this.errorFields.splice(t,1):r&&r.length>0&&this.errorFields.push(e)},getRadioValue(e,r){if(!r)return 0;let t;for(let a=0;a<this.formData.fields.length;a++)this.formData.fields[a].name===e&&(t=this.formData.fields[a]);const n=t.values[r];if(t.multiplyByNumber)return n*t.multiplyByNumber;if(t.multiplyByAnswer){let a=this.form[t.multiplyByAnswer.question]||0;return a=Math.max(a,t.multiplyByAnswer.minimum),n*a}if(t.multiplyByValue&&e!==t.multiplyByValue){let a=this.getNumberValue(t.multiplyByValue.question,this.form[t.multiplyByValue.question])||0;return a=Math.max(a,t.multiplyByValue.minimum),n*a}return n},getNumberValue(e,r){if(!r)return 0;let t;for(let n=0;n<this.formData.fields.length;n++)this.formData.fields[n].name===e&&(t=this.formData.fields[n]);if(t.multiplyByNumber)return parseInt(r,10)*t.multiplyByNumber;if(t.multiplyByAnswer){const n=this.form[t.multiplyByAnswer.question]||0;return parseInt(r,10)*n}if(t.multiplyByValue&&e!==t.multiplyByValue){const n=this.getNumberValue(t.multiplyByValue.question,this.form[t.multiplyByValue.question]);return parseInt(r,10)*n}return 0},getFieldValue(e){return e.element==="radio"?this.getRadioValue(e.name,this.form[e.name]):e.element==="number"?this.getNumberValue(e.name,this.form[e.name]):0},calculateEmissions(){this.transportKilos=0,this.accommodationKilos=0,this.foodKilos=0;for(let e=0;e<this.formData.fields.length;e++){const r=this.formData.fields[e];switch(r.stage){case 1:case 3:this.transportKilos+=this.getFieldValue(r);break;case 2:this.accommodationKilos+=this.getFieldValue(r);break;case 4:this.foodKilos+=this.getFieldValue(r);break}}this.totalKilos=this.transportKilos+this.accommodationKilos+this.foodKilos},checkConditionalFields(){Object.keys(this.conditionalFields).forEach(e=>{const r=this.formData.fields.find(n=>n.name===e);let t=!0;Object.keys(r.conditional).forEach(n=>{const a=r.conditional[n];Array.isArray(a)?a.indexOf(this.form[n])===-1&&(t=!1):this.form[n]!==a&&(t=!1),t?this.conditionalFields[e]=!0:(this.conditionalFields[e]=!1,this.manageErrorStatus(e,[]))})})},forwardPage(e){e&&e.preventDefault(),this.activeStage&&this.createDataLayerObject("carbonQuestionEvent",{questionNumber:this.activeStage,answer:this.form[this.currentQuestion.name]}),this.activeStage+=1,this.checkNewAnswerSet(),this.resetFocus()},backwardPage(e){e&&e.preventDefault(),this.activeStage-=1,this.checkNewAnswerSet(),this.resetFocus()},checkNewAnswerSet(){if(this.activeStage>this.formData.stages){this.answerSet=!0;return}this.answerSet=!0;for(let e=0;e<this.formData.fields.length;e++)if(this.formData.fields[e].stage===this.activeStage){const r=this.formData.fields[e];r.element==="radio"&&!this.form[r.name]?this.answerSet=!1:r.element==="number"&&!this.form[r.name]&&(this.form[r.name]=r.validation.min)}},isRepeatable(e){return!!(this.repeatableStages[e]&&this.repeatableStages[e].generations<3)},conditionalElementClass(e){return this.conditionalFields[e]===!0||typeof this.conditionalFields[e]>"u"?"":"d-none"},resetFocus(){this.$nextTick(()=>{this.$nextTick(()=>{try{this.$refs.questions[this.activeStage-1].$el.focus(),this.$refs.progress.$el.scrollIntoView()}catch{}})})},duplicateCurrentStage(e){e&&e.preventDefault();const r=this.repeatableStages[this.activeStage].generations+1;for(let t=0;t<this.formData.fields.length;t++){const n=this.formData.fields[t];if(n.stage===this.activeStage&&!n.isClone){const a=JSON.parse(JSON.stringify(n));a.isClone=!0;const o=`${n.name}${r}`;a.name=o,a.originalNumber=t,this.form[o]="",this.formData.fields.push(a)}}this.repeatableStages[this.activeStage].generations=r}}},_hoisted_1$1d={class:"vs-carbon-calculator__wrapper"},_hoisted_2$P={key:1};function _sfc_render$1r(e,r,t,n,a,o){const i=vue.resolveComponent("VsCarbonCalculatorIntro"),l=vue.resolveComponent("VsProgressBar"),c=vue.resolveComponent("VsHeading"),d=vue.resolveComponent("VsCarbonCalculatorQuestion"),f=vue.resolveComponent("VsButton"),p=vue.resolveComponent("VsCarbonCalculatorTip"),v=vue.resolveComponent("VsCol"),m=vue.resolveComponent("VsCarbonCalculatorRunningTotal"),g=vue.resolveComponent("VsCarbonCalculatorResults"),_=vue.resolveComponent("VsRow"),S=vue.resolveComponent("VsContainer"),C=vue.resolveComponent("VsWarning");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1d,[vue.createVNode(S,{class:"vs-carbon-calculator","data-test":"vs-carbon-calculator"},{default:vue.withCtx(()=>[e.formData&&e.formData.fields?(vue.openBlock(),vue.createBlock(_,{key:0,class:"vs-carbon-calculator__survey"},{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[e.activeStage?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(i,{key:0})),e.activeStage?(vue.openBlock(),vue.createElementBlock("form",_hoisted_2$P,[vue.createElementVNode("fieldset",null,[vue.createVNode(l,{max:e.formData.stages,"current-step":e.activeStage<=e.formData.stages?e.activeStage:e.formData.stages,"is-stepped":!0,"is-full":e.activeStage>e.formData.stages,"progress-label":t.labelsMap.progress,ref:"progress"},null,8,["max","current-step","is-full","progress-label"]),vue.withDirectives(vue.createElementVNode("div",null,[o.currentCategory?(vue.openBlock(),vue.createBlock(c,{key:0,level:"2","heading-style":"heading-m",class:"vs-carbon-calculator__category-heading"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.currentCategory),1)]),_:1})):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.formData.fields,(w,E)=>vue.withDirectives((vue.openBlock(),vue.createBlock(d,{ref_for:!0,ref:"questions",tabindex:"0",key:w.name,label:o.getQuestionLabel(w,E),"label-for":w.name,hint:o.getQuestionHint(w,E),"field-class":o.conditionalElementClass(w.name),"field-type":w.element,"field-name":w.name,options:o.getQuestionOptions(w,E),minimum:w.element==="number"?w.validation.min:0,maximum:w.element==="number"?w.validation.max:0,onUpdateFieldData:o.updateFieldData},null,8,["label","label-for","hint","field-class","field-type","field-name","options","minimum","maximum","onUpdateFieldData"])),[[vue.vShow,w.stage===e.activeStage]])),128))],512),[[vue.vShow,e.activeStage<=e.formData.fields.length]])])])):vue.createCommentVNode("",!0),o.isRepeatable(e.activeStage)?(vue.openBlock(),vue.createBlock(f,{key:2,class:"my-100",variant:"secondary",icon:"plus",onClick:r[0]||(r[0]=w=>o.duplicateCurrentStage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.activeStageRepeatable),1)]),_:1})):vue.createCommentVNode("",!0),o.currentTip?(vue.openBlock(),vue.createBlock(p,{key:3,tip:o.currentTip},null,8,["tip"])):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(v,{cols:"12"},{default:vue.withCtx(()=>[e.activeStage>0&&e.activeStage<=e.formData.stages?(vue.openBlock(),vue.createBlock(m,{key:0,"total-kilos":e.totalKilos,language:t.language},null,8,["total-kilos","language"])):vue.createCommentVNode("",!0),e.activeStage>e.formData.stages?(vue.openBlock(),vue.createBlock(g,{key:1,"total-kilos":e.totalKilos,"transport-kilos":e.transportKilos,"food-kilos":e.foodKilos,"accommodation-kilos":e.accommodationKilos,"stay-duration":o.stayDuration,"comparison-replacements":e.formData.comparisonReplacements,language:t.language},null,8,["total-kilos","transport-kilos","food-kilos","accommodation-kilos","stay-duration","comparison-replacements","language"])):vue.createCommentVNode("",!0)]),_:1}),e.activeStage===0?(vue.openBlock(),vue.createBlock(v,{key:0,class:"text-center",cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(f,{variant:"primary",type:"submit",class:"vs-form__submit mt-300",onClick:r[1]||(r[1]=w=>o.forwardPage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.begin),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),e.activeStage>0?(vue.openBlock(),vue.createBlock(v,{key:1,cols:"12"},{default:vue.withCtx(()=>[e.activeStage>1?(vue.openBlock(),vue.createBlock(f,{key:0,variant:"secondary",type:"submit",class:"vs-form__submit mt-300 float-start",ref:"backPage",onClick:r[2]||(r[2]=w=>o.backwardPage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.previous),1)]),_:1},512)):vue.createCommentVNode("",!0),e.activeStage<e.formData.stages?(vue.openBlock(),vue.createBlock(f,{key:1,variant:"primary",type:"submit",class:"vs-form__submit mt-300 float-end",ref:"forwardPage",disabled:e.activeStage>0&&!e.answerSet,onClick:r[3]||(r[3]=w=>o.forwardPage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.next),1)]),_:1},8,["disabled"])):vue.createCommentVNode("",!0),e.activeStage===e.formData.stages?(vue.openBlock(),vue.createBlock(f,{key:2,variant:"primary",type:"submit",class:"vs-form__submit mt-300 float-end",disabled:!e.answerSet,onClick:r[4]||(r[4]=w=>o.forwardPage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.results),1)]),_:1},8,["disabled"])):vue.createCommentVNode("",!0),e.activeStage>e.formData.stages?(vue.openBlock(),vue.createBlock(f,{key:3,variant:"primary",type:"submit",class:"vs-form__submit mt-300 float-end",onClick:r[5]||(r[5]=w=>o.restart())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.restart),1)]),_:1})):vue.createCommentVNode("",!0)]),_:1})):vue.createCommentVNode("",!0)]),_:1})):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(C,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.noJsMessage),1)]),_:1})])}const CarbonCalculator=_export_sfc(_sfc_main$1A,[["render",_sfc_render$1r]]),noJsClass="no-js",jsIsDisabled=()=>document.getElementsByClassName(noJsClass).length>0,useVideoStore=pinia.defineStore("video",{state:()=>({videos:{}}),actions:{addVideo(e){this.videos[e.videoId]={...e}}}}),_sfc_main$1z={name:"VsStretchedLinkCard",status:"prototype",release:"0.0.1",components:{VsHeading,VsLink,VsImg,VsButton,VsWarning},inject:{noJsMessage:{default:null},theme:{default:null}},props:{link:{type:String,required:!0,default:"#"},headingLevel:{type:[String,Number],default:"3",validator:e=>e.match(/(1|2|3|4|5|6)/)},headingStyle:{type:[String,Number],default:"heading-xs",validator:e=>e.match(/(display-l|display-m|display-s|display-xs|heading-xxl|heading-xl|heading-l|heading-m|heading-s|heading-xs|heading-xxs)/)},type:{type:String,required:!0,validator:e=>e.match(/(default|external|internal|download|video)/)},imgSrc:{type:String,default:void 0},imgAlt:{type:String,default:""},disabled:{type:Boolean,default:!1},videoId:{type:String,default:""},videoBtnText:{type:String,default:""},errorMessage:{type:String,default:""},errorType:{type:String,default:"image",validator:e=>e.match(/(image|full)/)},warningSize:{type:String,default:"small",validator:e=>e.match(/(normal|small)/)}},setup(){return{videoStore:useVideoStore()}},data(){return{jsDisabled:!0}},computed:{formattedVideoBtnText(){return`${this.videoBtnText} | `},formattedVideoDuration(){let e=`${this.videoDetails.videoFullDuration.seconds}`;return e.length===1&&(e=`0${e}`),`${this.videoDetails.videoFullDuration.minutes}:${e}`},stretchedLinkCardClasses(){let e="";return this.disabled&&(e+="vs-stretched-link-card--disabled"),this.type==="video"&&(e+=" vs-stretched-link-card--video"),this.showWarning&&this.type==="video"&&(e+=" vs-stretched-link-card--warning"),e},videoDetails(){return this.videoStore.videos[this.videoId]},videoLoaded(){return typeof this.videoDetails<"u"&&this.videoDetails.videoDuration>0},warningClass(){let e="";return this.videoId&&this.jsDisabled&&(e="vs-stretched-link-card__img-container--warning ",this.errorType==="full"&&(e+="vs-stretched-link-card__img-container--warning-full")),e},showWarning(){return!!this.jsDisabled},warningMessage(){return this.errorMessage},warningAttrs(){const e={};return this.size==="small"&&(e.size="sm"),e}},mounted(){this.jsDisabled=jsIsDisabled()},methods:{emitShowModal(){this.videoId&&this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}},_hoisted_1$1c={key:0,class:"vs-stretched-link-card__video-btn-text"},_hoisted_2$O={key:1,class:"vs-stretched-link-card__category","data-test":"vs-stretched-link-card__category"},_hoisted_3$D={class:"vs-stretched-link-card__content","data-test":"vs-stretched-link-card__content"},_hoisted_4$u={key:3,class:"vs-stretched-link-card__badges","data-test":"vs-stretched-link-card__badges"};function _sfc_render$1q(e,r,t,n,a,o){const i=vue.resolveComponent("VsWarning"),l=vue.resolveComponent("VsImg"),c=vue.resolveComponent("VsButton"),d=vue.resolveComponent("VsLink"),f=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["card vs-stretched-link-card",o.stretchedLinkCardClasses]),"data-test":"vs-stretched-link-card",onClick:r[0]||(r[0]=(...p)=>o.emitShowModal&&o.emitShowModal(...p)),onKeypress:r[1]||(r[1]=(...p)=>o.emitShowModal&&o.emitShowModal(...p))},[o.showWarning==="full"?(vue.openBlock(),vue.createBlock(i,{key:0,size:t.warningSize,type:"normal","data-test":"vs-stretched-link-card__full-warning",class:"vs-stretched-link-card__full-warning"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.warningMessage),1)]),_:1},8,["size"])):vue.createCommentVNode("",!0),t.errorType==="full"&&t.videoId!==""?(vue.openBlock(),vue.createBlock(i,{key:1,size:t.warningSize,"data-test":"vs-stretched-link-card__full-warning",class:"vs-stretched-link-card__full-warning vs-stretched-link-card__full-warning--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.noJsMessage),1)]),_:1},8,["size"])):vue.createCommentVNode("",!0),t.imgSrc?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["vs-stretched-link-card__img-container",o.warningClass])},[t.imgSrc?(vue.openBlock(),vue.createBlock(l,{key:0,src:t.imgSrc,alt:t.imgAlt,class:"vs-stretched-link-card__img","data-test":"vs-stretched-link-card__img","data-chromatic":"ignore"},null,8,["src","alt"])):vue.createCommentVNode("",!0),o.showWarning==="image"?(vue.openBlock(),vue.createBlock(i,{key:1,size:t.warningSize,type:"normal","data-test":"vs-stretched-link-card__image-warning",class:"vs-stretched-link-card__image-warning"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.warningMessage),1)]),_:1},8,["size"])):vue.createCommentVNode("",!0),t.videoId!==""&&t.errorType==="image"?(vue.openBlock(),vue.createBlock(i,{key:2,size:t.warningSize,"data-test":"vs-stretched-link-card__warning",class:"vs-stretched-link-card__image-warning vs-stretched-link-card__image-warning--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.noJsMessage),1)]),_:1},8,["size"])):vue.createCommentVNode("",!0)],2)):vue.createCommentVNode("",!0),e.$slots["stretched-card-panels"]&&e.$slots["stretched-card-panels"]()?vue.renderSlot(e.$slots,"stretched-card-panels",{key:3}):vue.createCommentVNode("",!0),o.showWarning!=="full"?(vue.openBlock(),vue.createElementBlock("div",{key:4,class:vue.normalizeClass(["card-body",t.videoId?"position-relative":""])},[t.videoId&&o.videoLoaded?(vue.openBlock(),vue.createBlock(c,{key:0,class:"vs-stretched-link-card__video-button","data-test":"vs-stretched-link-card__video-button",icon:"play","icon-position":"left",size:"md",ref:"videoShow",rounded:!1,onClick:o.emitShowModal},{default:vue.withCtx(()=>[t.videoBtnText?(vue.openBlock(),vue.createElementBlock("span",_hoisted_1$1c,vue.toDisplayString(o.formattedVideoBtnText),1)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(o.formattedVideoDuration),1)]),_:1},8,["onClick"])):vue.createCommentVNode("",!0),e.$slots["stretched-card-category"]&&e.$slots["stretched-card-category"]()?(vue.openBlock(),vue.createElementBlock("span",_hoisted_2$O,[vue.renderSlot(e.$slots,"stretched-card-category")])):vue.createCommentVNode("",!0),e.$slots["stretched-card-header"]&&e.$slots["stretched-card-header"]()?(vue.openBlock(),vue.createBlock(f,{key:2,level:t.headingLevel,"heading-style":t.headingStyle,class:"card-title vs-stretched-link-card__title","data-test":"vs-stretched-link-card__title"},{default:vue.withCtx(()=>[e.$slots["stretched-card-link"]&&e.$slots["stretched-card-link"]()?vue.renderSlot(e.$slots,"stretched-card-header",{key:0}):t.type==="video"?vue.renderSlot(e.$slots,"stretched-card-header",{key:1}):(vue.openBlock(),vue.createBlock(d,{key:2,href:t.link,type:t.type,class:vue.normalizeClass(["stretched-link",t.disabled?"stretched-link--disabled":""]),variant:o.theme==="dark"?"on-dark":"primary","data-test":"vs-stretched-link",disabled:t.disabled,tabindex:t.videoId||t.disabled?"-1":"0"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"stretched-card-header")]),_:3},8,["href","type","class","variant","disabled","tabindex"]))]),_:3},8,["level","heading-style"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_3$D,[vue.renderSlot(e.$slots,"stretched-card-content")]),e.$slots["stretched-card-badges"]&&e.$slots["stretched-card-badges"]()?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$u,[vue.renderSlot(e.$slots,"stretched-card-badges")])):vue.createCommentVNode("",!0),e.$slots["stretched-card-link"]&&e.$slots["stretched-card-link"]()?(vue.openBlock(),vue.createBlock(d,{key:4,href:t.link,class:"vs-stretched-link-card__link stretched-link","data-test":"vs-stretched-link-card__link"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"stretched-card-link")]),_:3},8,["href"])):vue.createCommentVNode("",!0)],2)):vue.createCommentVNode("",!0)],34)}const VsStretchedLinkCard=_export_sfc(_sfc_main$1z,[["render",_sfc_render$1q]]),_sfc_main$1y={name:"VsStretchedLinkPanels",status:"prototype",release:"0.0.1",components:{VsIcon},props:{days:{type:String,default:""},transport:{type:String,default:""},daysLabel:{type:String,default:"days"},transportName:{type:String,default:""}}},_hoisted_1$1b={class:"vs-stretched-link-panels"},_hoisted_2$N={class:"vs-stretched-link-panels__panel vs-stretched-link-panels__panel--days","data-test":"vs-stretched-link-panel--days"},_hoisted_3$C={"data-test":""},_hoisted_4$t={class:"vs-stretched-link-panels__days"},_hoisted_5$l={class:"vs-stretched-link-panels__panel","data-test":"vs-stretched-link-panel"},_hoisted_6$f={"data-test":"vs-stretched-link-panel__icon"};function _sfc_render$1p(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1b,[vue.createElementVNode("div",_hoisted_2$N,[vue.createElementVNode("p",_hoisted_3$C,[vue.createElementVNode("span",_hoisted_4$t,vue.toDisplayString(t.days),1),vue.createTextVNode(vue.toDisplayString(t.daysLabel),1)])]),vue.createElementVNode("div",_hoisted_5$l,[vue.createVNode(i,{name:t.transport,variant:"inverse",size:"sm",class:"vs-stretched-link-panels__icon"},null,8,["name"]),vue.createElementVNode("p",_hoisted_6$f,vue.toDisplayString(t.transportName),1)])])}const VsStretchedLinkPanels=_export_sfc(_sfc_main$1y,[["render",_sfc_render$1p]]),_sfc_main$1x={name:"VsCarouselSlide",status:"prototype",release:"0.0.1",components:{VsStretchedLinkCard,VsStretchedLinkPanels,VsCol},inject:["slideCols","visibleSlides"],props:{imgSrc:{required:!0,type:String},imgAlt:{type:String,default:""},linkType:{type:String,required:!0,validator:e=>e.match(/(default|external|internal|download)/)},linkUrl:{type:String,required:!0},categoryLabel:{type:String,default:null},category:{type:String,default:null},days:{type:String,default:""},daysLabel:{type:String,default:"days"},transport:{type:String,default:""},transportName:{type:String,default:""},slideIndex:{type:String,required:!0}},methods:{isVisible(e){const r=parseInt(e,10);return this.visibleSlides.indexOf(r)>=0}}},_hoisted_1$1a={class:"vs-carousel-slide"},_hoisted_2$M={class:"visually-hidden"},_hoisted_3$B={class:"vs-carousel-slide__title","data-test":"vs-carousel-slide__title"};function _sfc_render$1o(e,r,t,n,a,o){const i=vue.resolveComponent("VsStretchedLinkPanels"),l=vue.resolveComponent("VsStretchedLinkCard"),c=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(c,{cols:o.slideCols.xs,sm:o.slideCols.sm,lg:o.slideCols.md,xl:o.slideCols.lg,"data-test":"vs-carousel-slide","aria-disabled":!o.isVisible(t.slideIndex)},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1a,[vue.createVNode(l,{link:t.linkUrl,type:t.linkType,"img-src":t.imgSrc,"img-alt":t.imgAlt,class:vue.normalizeClass([o.isVisible(t.slideIndex)?"vs-carousel-slide__card--active":"vs-carousel-slide__card--disabled","vs-carousel-slide__card"]),disabled:!o.isVisible(t.slideIndex),"data-test":"vs-carousel-card"},vue.createSlots({"stretched-card-category":vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$M,vue.toDisplayString(t.categoryLabel)+": ",1),vue.createTextVNode(vue.toDisplayString(t.category),1)]),"stretched-card-header":vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$B,[vue.renderSlot(e.$slots,"vs-carousel-slide-heading")])]),_:2},[t.days&&t.transport?{name:"stretched-card-panels",fn:vue.withCtx(()=>[vue.createVNode(i,{days:t.days,transport:t.transport,"transport-name":t.transportName,"days-label":t.daysLabel},null,8,["days","transport","transport-name","days-label"])]),key:"0"}:void 0]),1032,["link","type","img-src","img-alt","class","disabled"])])]),_:3},8,["cols","sm","lg","xl","aria-disabled"])}const CarouselSlide=_export_sfc(_sfc_main$1x,[["render",_sfc_render$1o]]),_sfc_main$1w={name:"VsCheckbox",status:"prototype",release:"0.0.1",components:{BFormCheckbox:bootstrapVueNext.BFormCheckbox},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{fieldName:{type:String,required:!0},value:{type:String,default:""},label:{type:String,required:!0},validationRules:{type:Object,default(){return{}}},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},genericValidation:{type:Object,default(){return{}}},hintText:{type:String,default:""},infoText:{type:String,default:""},reAlertErrors:{type:Boolean,default:!1}},setup:()=>({v$:useVuelidate()}),data(){return{inputVal:"",errors:[]}},computed:{errorClass(){return this.isInvalid?"vs-checkbox--error":""}},watch:{value(e){this.inputVal=e},triggerValidate(){this.manualValidate()}},validations(){return this.rules}},_hoisted_1$19=["id"],_hoisted_2$L=["innerHTML"],_hoisted_3$A=["id"],_hoisted_4$s={class:"visually-hidden"},_hoisted_5$k={class:"vs-checkbox__label"};function _sfc_render$1n(e,r,t,n,a,o){const i=vue.resolveComponent("BFormCheckbox");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-checkbox",o.errorClass])},[vue.createElementVNode("p",{class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_1$19),t.infoText!==""?(vue.openBlock(),vue.createElementBlock("div",{key:0,innerHTML:t.infoText},null,8,_hoisted_2$L)):vue.createCommentVNode("",!0),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:1,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,l=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:l,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$s,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[l]||t.genericValidation[l]),1)])),[[vue.vShow,!t.reAlertErrors]])),128))],8,_hoisted_3$A)):vue.createCommentVNode("",!0),t.fieldName?(vue.openBlock(),vue.createBlock(i,vue.mergeProps({key:2,modelValue:a.inputVal,"onUpdate:modelValue":r[0]||(r[0]=l=>a.inputVal=l),class:"me-100",name:t.fieldName,id:t.fieldName,value:t.value,unchecked_value:`not_${t.value}`},e.$attrs,{"data-test":"vs-checkbox",onBlur:e.emitStatus,onChange:e.emitStatus,required:e.isRequired,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription}),{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_5$k,vue.toDisplayString(t.label),1)]),_:1},16,["modelValue","name","id","value","unchecked_value","onBlur","onChange","required","aria-invalid","aria-describedby"])):vue.createCommentVNode("",!0)],2)}const VsCheckbox=_export_sfc(_sfc_main$1w,[["render",_sfc_render$1n]]),useCookiesStore=pinia.defineStore("cookies",()=>{const e=vue.ref([]),r=vue.ref(!1);function t(a){e.value=[],a.forEach(o=>{e.value.push(o)})}function n(a){r.value=a}return{allowedCookies:e,cookiesTestRun:r,setCookieArray:t,setTestRun:n}});function hashCode(){return Math.random().toString(36).substring(7)}class OneTrustVS{constructor(){Ut(this,"init",()=>{window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach)});Ut(this,"instaOT",(r,t,n,a,o=null)=>{console.log("insta");let i=this;this.checkThirdPartyLibrary("OneTrust",()=>{this.onetrustCookieCheck(r,l=>{if(l)i.setIframeSrc();else if(a){console.log("fallback",n),console.log("container",a);let c=Array.from(n.classList)[0],d;a.length>1?a.forEach((f,p)=>{d=a[p].querySelector(`.${c}`),d||i.showOneTrustFallback(r,t,n,a[p],o)}):(d=a.querySelector(`.${c}`),d||i.showOneTrustFallback(r,t,n,a,o))}}),window.OneTrust.OnConsentChanged(function(){i.onetrustCookieCheck(r,l=>{l&&(window.OneTrustEventBus.dispatchEvent("otCategory-approved"),i.hideOneTrustFallback(r),i.setIframeSrc())})})})});Ut(this,"showOneTrustFallback",(r,t,n,a,o=null)=>{console.log("showfallback");let i={visible:!1,fallback:n};if(i.visible)return!1;if(a.length>1&&i.fallback)console.log("aqui"),a.forEach(l=>{let c=i.fallback.cloneNode(!0);c.id=hashCode(),l.insertAdjacentHTML("afterend",c.outerHTML);let d=document.getElementById(c.id);d.style.display="block",i.visible=!0,c.classList.add(`vscookies-${r}`),this.fallbacks.push({id:d.id,cat:r,visible:!0}),this.setFBButtonListener(c)});else{console.log("aca");let l=i.fallback.cloneNode(!0);l.id=hashCode(),l.style.display="block",l.classList.add(`vscookies-${r}`),o?a.insertBefore(l,a.childNodes[o]):a.appendChild(l),this.fallbacks.push({id:l.id,cat:r}),i.visible=!0,this.setFBButtonListener(l)}});Ut(this,"onetrustCookieCheck",(r,t)=>{if(typeof window<"u")return t(window.OnetrustActiveGroups.includes(r))});Ut(this,"hideOneTrustFallback",r=>{this.fallbacks.map(n=>{if(n.cat===r&&document.getElementById(n.id)){document.getElementById(n.id).style.display="none";return}});const t=document.querySelectorAll(`.vscookies-${r}`);t.size>0&&t.map(n=>{n.style.display="none"})});Ut(this,"checkThirdPartyLibrary",(r,t)=>{let n=500,a=this;window.setTimeout(function(){window[r]?t(window[r]):a.checkThirdPartyLibrary(r,t)},n)});Ut(this,"setFBButtonListener",r=>{r.querySelector("#ot-sdk-btn").addEventListener("click",function(){window.OneTrust.ToggleInfoDisplay()})});Ut(this,"setIframeSrc",()=>{let r=document.querySelectorAll('iframe[data-src]:not([data-src=""])');r&&r.forEach(t=>{t.src=t.dataset.src,t.removeAttribute("data-src")})});this.fallbacks=[]}}let cookieStore=null;const _sfc_main$1v={data(){return{oneTrust:new OneTrustVS,activeGroups:""}},watch:{activeGroups(){const r=this.activeGroups.split(",").filter(t=>t!=="");cookieStore&&(cookieStore.setCookieArray(r),cookieStore.setTestRun(!0))}},mounted(){cookieStore=useCookiesStore()},created(){this.checkOneTrust(),this.checkActiveGroups()},methods:{checkOneTrust(){typeof window<"u"&&this.oneTrust.checkThirdPartyLibrary("OneTrust",()=>{window.OneTrust.OnConsentChanged(()=>{this.oneTrust.checkThirdPartyLibrary("OnetrustActiveGroups",()=>{this.activeGroups=window.OnetrustActiveGroups})})})},checkActiveGroups(){typeof window<"u"&&this.oneTrust.checkThirdPartyLibrary("OnetrustActiveGroups",()=>{this.activeGroups=window.OnetrustActiveGroups})}}},_hoisted_1$18={class:"d-none"};function _sfc_render$1m(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("span",_hoisted_1$18)}const CookieChecker=_export_sfc(_sfc_main$1v,[["render",_sfc_render$1m]]),_sfc_main$1u={name:"VsDescriptionList",status:"prototype",release:"0.0.1",provide(){return{inline:vue.computed(()=>this.inline)}},props:{inline:{type:Boolean,default:!1}}};function _sfc_render$1l(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("dl",{class:vue.normalizeClass(["vs-description-list",{"list-inline":t.inline}])},[vue.renderSlot(e.$slots,"default")],2)}const DescriptionList=_export_sfc(_sfc_main$1u,[["render",_sfc_render$1l]]),_sfc_main$1t={name:"VsDescriptionListItem",status:"prototype",release:"0.0.1",components:{VsCol},inject:["inline"],props:{title:{type:Boolean,default:!1}}};function _sfc_render$1k(e,r,t,n,a,o){const i=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(i,{tag:t.title?"dt":"dd",class:vue.normalizeClass({"list-inline-item":o.inline,"vs-description-list__detail":!t.title,"vs-description-list__detail--styled":!o.inline&&!t.title,"vs-description-list__term":t.title,"vs-description-list__term--styled":!o.inline&&t.title})},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["tag","class"])}const DescriptionListItem=_export_sfc(_sfc_main$1t,[["render",_sfc_render$1k],["__scopeId","data-v-66ca0ac6"]]),_sfc_main$1s={name:"VsDropdown",status:"prototype",release:"0.0.1",components:{BDropdown:bootstrapVueNext.BDropdown},props:{text:{type:String,default:""}},computed:{nonButtonContentSlots(){return lodashExports.reject(this.$slots,{name:"button-content"})}}},_hoisted_1$17={class:"dropdown-menu overflow-auto",role:"menu"};function _sfc_render$1j(e,r,t,n,a,o){const i=vue.resolveComponent("BDropdown");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(i,vue.mergeProps(e.$attrs,{variant:"primary",class:"vs-dropdown"}),vue.createSlots({"button-content":vue.withCtx(()=>[vue.renderSlot(e.$slots,"button-content",{},()=>[vue.createTextVNode(vue.toDisplayString(t.text),1)])]),default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:2},[vue.renderList(o.nonButtonContentSlots,(l,c)=>({name:c,fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,c)])}))]),1040),vue.createElementVNode("div",{class:vue.normalizeClass([e.$attrs.class,"dropdown vs-dropdown vs-dropdown--fallback"])},[vue.createElementVNode("ul",_hoisted_1$17,[vue.renderSlot(e.$slots,"default")])],2)],64)}const VsDropdown=_export_sfc(_sfc_main$1s,[["render",_sfc_render$1j]]),_sfc_main$1r={name:"VsDropdownItem",status:"prototype",release:"0.0.1",components:{BDropdownItem:bootstrapVueNext.BDropdownItem}};function _sfc_render$1i(e,r,t,n,a,o){const i=vue.resolveComponent("BDropdownItem");return vue.openBlock(),vue.createBlock(i,vue.mergeProps(e.$attrs,{role:"menuitem"}),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsDropdownItem=_export_sfc(_sfc_main$1r,[["render",_sfc_render$1i]]),cookieCheckerMixin={data(){return{bypassCookiesExist:!1}},computed:{...pinia.mapState(useCookiesStore,{cookiesSet(e){return e.allowedCookies}}),onetrustActiveGroups(){return typeof window<"u"?window.OnetrustActiveGroups:null},requiredCookiesExist(){if(typeof window<"u"&&window.bypassCookieChecks)return this.bypassCookiesExist;let e=!0;return this.requiredCookies?this.requiredCookies.forEach(r=>{this.cookiesSet.indexOf(r)===-1&&(e=!1)}):e=!1,e},cookiesInitStatus(){return typeof window<"u"&&window.bypassCookieChecks?this.bypassCookiesExist:(typeof this.onetrustActiveGroups>"u"||this.cookiesSet.length===0,!0)}},mounted(){setTimeout(()=>{this.bypassCookiesExist=!0},50)}},cookieValues$1={youtube:["C0001","C0004"],languageSelector:["C0001"],embed:["C0001","C0003","C0004"],recaptcha:["C0001"],map:["C0001"]},cookieValues=cookieValues$1.embed,_sfc_main$1q={name:"VsEmbedWrapper",status:"prototype",release:"0.0.1",components:{VsContainer,VsRow,VsCol,VsRichTextWrapper,VsWarning},mixins:[cookieCheckerMixin],props:{noCookiesRequired:{type:Boolean,default:!1},noCookieText:{type:String,required:!0},errorText:{type:String,required:!0},noJsText:{type:String,required:!0},extraContent:{type:String,default:""}},data(){return{requiredCookies:this.noCookiesRequired?null:cookieValues}},computed:{showError(){return this.noCookiesRequired?!1:!this.requiredCookiesExist&&this.cookiesInitStatus===!0||this.cookiesInitStatus==="error"},warningText(){let e="";return this.cookiesInitStatus==="error"&&(e=this.errorText),!this.requiredCookiesExist&&this.cookiesInitStatus===!0&&(e=this.noCookieText),e}}},_hoisted_1$16={"data-test":"vs-embed-wrapper",class:"vs-embed-wrapper"},_hoisted_2$K={key:"fallback"},_hoisted_3$z=["innerHTML"];function _sfc_render$1h(e,r,t,n,a,o){const i=vue.resolveComponent("VsRichTextWrapper"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsWarning"),d=vue.resolveComponent("VsRow"),f=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$16,[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",sm:"10","offset-sm":"1",md:"6","offset-md":"3"},{default:vue.withCtx(()=>[e.$slots["embed-intro-copy"]&&e.$slots["embed-intro-copy"]()&&!o.showError?(vue.openBlock(),vue.createBlock(i,{key:0,class:"vs-module-wrapper__intro vs-embed-wrapper__intro","data-test":"vs-module-wrapper__intro"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"embed-intro-copy")]),_:3})):vue.createCommentVNode("",!0)]),_:3}),vue.createVNode(l,{cols:"12"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-embed-wrapper__container",e.requiredCookiesExist||t.noCookiesRequired?"":"d-none"]),key:"embeddedContent"},[vue.renderSlot(e.$slots,"embed-widget")],2),o.showError?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$K,[vue.createVNode(c,{type:e.cookiesInitStatus===!0?"cookie":"normal",class:"vs-embed-wrapper__error","data-test":"vs-embed-wrapper__error"},vue.createSlots({default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.warningText)+" ",1)]),_:2},[t.extraContent?{name:"extra-content",fn:vue.withCtx(()=>[vue.createElementVNode("div",{innerHTML:t.extraContent},null,8,_hoisted_3$z)]),key:"0"}:void 0,!e.requiredCookiesExist&&e.cookiesInitStatus===!0?{name:"button-text",fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,"embed-button-text")]),key:"1"}:void 0]),1032,["type"])])):vue.createCommentVNode("",!0),vue.createVNode(c,{type:"normal","data-test":"vs-embed-wrapper__error--no-js",class:"vs-embed-wrapper__error vs-embed-wrapper__error--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.noJsText),1)]),_:1})]),_:3})]),_:3})]),_:3})])}const EmbedWrapper=_export_sfc(_sfc_main$1q,[["render",_sfc_render$1h]]);function createHydrationCleanup(){let e=[];return{cleanup:()=>{e=e.filter(n=>(n(),!1))},onCleanup:n=>{e.push(n)}}}function createHydrationPromise(e){let r=()=>{};const t=new Promise(a=>{r=()=>{e(),a()}});return{promise:t,resolvePromise:r,onResolvedPromise:a=>{t.then(a)}}}function trackDepsOnRender(e){const r=e.effect.fn,t=e.render;e.render=(...n)=>{e.effect.fn=()=>t(...n);const a=e.effect.run();return e.effect.fn=r,e.render=t,a}}const isFunction=e=>typeof e=="function",isObject=e=>e!==null&&typeof e=="object";function traverseChildren(e,r){if(vue.isVNode(e)&&(r(e),e.children!==null)){if(Array.isArray(e.children)){e.children.forEach(t=>traverseChildren(t,r));return}isObject(e.children)&&Object.keys(e.children).forEach(t=>{if(!isFunction(e.children[t]))return;const n=e.children[t]();if(Array.isArray(n)){n.forEach(a=>traverseChildren(a,r));return}traverseChildren(n,r)})}}function isAsyncWrapper(e){var r,t;return((r=e.type)==null?void 0:r.__asyncLoader)&&((t=e.type)==null?void 0:t.name)==="AsyncComponentWrapper"}function waitForAsyncComponents({subTree:e},r){const t=[];if(traverseChildren(e,n=>{isAsyncWrapper(n)&&t.push(n.type.__asyncLoader())}),t.length>0){Promise.all(t).then(r);return}r()}function ensureParentHasSubTreeEl(e){if(!e||!e.subTree)return;const r=e.subTree.el,t=e.u;e.u===null&&(e.u=[]),e.u.push(()=>{e.subTree.el===null&&(e.subTree.el=r),e.u=t})}function useLazyHydration(){const e=vue.getCurrentInstance();if(!e||e.isMounted)throw new Error("useLazyHydration must be called from the setup method.");const r=e.vnode.el!==null;if(e.vnode.type.__isLazilyHydrated=!0,!r)return{willPerformHydration:r,onHydrated:()=>{}};const{cleanup:t,onCleanup:n}=createHydrationCleanup(),{promise:a,resolvePromise:o,onResolvedPromise:i}=createHydrationPromise(t),l=c=>i(()=>vue.nextTick(()=>waitForAsyncComponents(e,c)));return e.type.__asyncLoader=()=>a,ensureParentHasSubTreeEl(e.parent),vue.onBeforeMount(()=>{e.asyncDep=new Promise(c=>{c(!0)})}),i(()=>{trackDepsOnRender(e),e.asyncDep=null}),vue.onUnmounted(t),{willPerformHydration:r,hydrate:o,onHydrated:l,onCleanup:n}}function useHydrateWhenIdle({willPerformHydration:e,hydrate:r,onCleanup:t},n=2e3){if(!e)return;if(!vue.getCurrentInstance())throw new Error("useHydrateWhenIdle must be called from the setup or lifecycle hook methods.");if(!("requestIdleCallback"in window)){r();return}const a=requestIdleCallback(()=>{r()},{timeout:n});t(()=>{cancelIdleCallback(a)})}const DOMNodeTypes={ELEMENT:1,TEXT:3,COMMENT:8},isElement=e=>e&&e.nodeType===DOMNodeTypes.ELEMENT,isComment=e=>e&&e.nodeType===DOMNodeTypes.COMMENT,isFragmentStart=e=>isComment(e)&&(e==null?void 0:e.data)==="[",isFragmentEnd=e=>isComment(e)&&(e==null?void 0:e.data)==="]";function getRootElements({vnode:e,subTree:r}){if(!e||e.el===null)return[];if(isElement(e.el))return[e.el];const t=[];if(r&&isFragmentStart(r.el)&&isFragmentEnd(r.anchor)){let n=e.el.nextSibling;for(;n;){if(n&&isElement(n)&&t.push(n),n===r.anchor)return t;n=n.nextSibling}}return t}function useHydrateOnInteraction({willPerformHydration:e,hydrate:r,onCleanup:t},n=["focus"]){if(!e)return;const a=vue.getCurrentInstance();if(!a||a.isMounted)throw new Error("useHydrateOnInteraction must be called from the setup method.");const o=vue.unref(n);vue.onMounted(()=>{const i=getRootElements(a),l=i.length>1?i[0].parentElement||document:i[0],c={capture:!0,once:!1,passive:!0},d=f=>{f.stopPropagation();const p=f.composedPath&&f.composedPath()||f.path;if(!p){let v=f.target;for(;v;){if(i.includes(v)){r();return}if(v===l)return;v=v.parentElement}return}i.forEach(v=>{p.includes(v)&&r()})};o.forEach(f=>{l.addEventListener(f,d,c)}),t(()=>{o.forEach(f=>{l.removeEventListener(f,d,c)})})})}function useHydrateWhenTriggered({willPerformHydration:e,hydrate:r,onCleanup:t},n){if(!e)return;if(!vue.getCurrentInstance())throw new Error("useHydrateWhenTriggered must be called from the setup or lifecycle hook methods.");const a=vue.watch(vue.isRef(n)?n:()=>n,o=>{o&&r()},{immediate:!0});t(a)}const observers=new Map;function createHydrationObserver(e){const r=typeof IntersectionObserver<"u";if(!r)return{supported:r};const t=JSON.stringify(e);if(observers.has(t))return{supported:r,observer:observers.get(t)};const n=new IntersectionObserver(a=>{a.forEach(o=>{!(o.isIntersecting||o.intersectionRatio>0)||!o.target.hydrate||o.target.hydrate()})},e);return observers.set(t,n),{supported:r,observer:n}}function useHydrateWhenVisible({willPerformHydration:e,hydrate:r,onCleanup:t},n){if(!e)return;const a=vue.getCurrentInstance();if(!a||a.isMounted)throw new Error("useHydrateWhenVisible must be called from the setup method.");const{supported:o,observer:i}=createHydrationObserver(n);if(!o){r();return}vue.onMounted(()=>{const l=getRootElements(a);l.forEach(c=>{c.hydrate=r,i.observe(c)}),t(()=>{l.forEach(c=>{delete c.hydrate,i.unobserve(c)})})})}const normalizeSlot=e=>e.length===1?e[0]:e,LazyHydrationWrapper=vue.defineComponent({name:"LazyHydrationWrapper",inheritAttrs:!1,suspensible:!1,props:{whenIdle:{default:!1,type:[Boolean,Number]},whenVisible:{default:!1,type:[Boolean,Object]},onInteraction:{default:!1,type:[Array,Boolean,String]},whenTriggered:{default:void 0,type:[Boolean,Object]}},emits:["hydrated"],setup(e,{slots:r,emit:t}){const n=useLazyHydration();if(!n.willPerformHydration)return()=>normalizeSlot(r.default());if(n.onHydrated(()=>t("hydrated")),e.whenIdle&&useHydrateWhenIdle(n,e.whenIdle!==!0?e.whenIdle:void 0),e.whenVisible&&useHydrateWhenVisible(n,e.whenVisible!==!0?e.whenVisible:void 0),e.onInteraction){let a;e.onInteraction!==!0&&(a=vue.computed(()=>Array.isArray(e.onInteraction)?e.onInteraction:[e.onInteraction]).value),useHydrateOnInteraction(n,a)}return e.whenTriggered!==void 0&&useHydrateWhenTriggered(n,vue.toRef(e,"whenTriggered")),()=>normalizeSlot(r.default())}}),LazyHydrationWrapper$1=vue.markRaw(LazyHydrationWrapper),_sfc_main$1p={name:"VsFooterNavList",status:"prototype",release:"0.0.1",components:{VsAccordion,VsRow,VsContainer,LazyHydrationWrapper:LazyHydrationWrapper$1},props:{breakPoint:{type:String,default:null,validator:e=>e.match(/(xs|sm|md|lg|xl|xxl)/)}}},_hoisted_1$15={class:"vs-footer-nav-list"};function _sfc_render$1g(e,r,t,n,a,o){const i=vue.resolveComponent("VsRow"),l=vue.resolveComponent("VsAccordion"),c=vue.resolveComponent("LazyHydrationWrapper"),d=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createBlock(d,{class:"vs-footer-nav-list","data-test":"vs-footer-nav-list"},{default:vue.withCtx(()=>[vue.createVNode(c,{"on-interaction":["focus","click"]},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$15,[vue.createVNode(l,{"break-point":t.breakPoint},{default:vue.withCtx(()=>[vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})]),_:3},8,["break-point"])])]),_:3})]),_:3})}const VsFooterNavList=_export_sfc(_sfc_main$1p,[["render",_sfc_render$1g]]),_sfc_main$1o={name:"VsFooter",status:"prototype",release:"0.1.0",components:{VsFooterNavList,VsCol,VsContainer,VsRow}},_hoisted_1$14={class:"vs-footer pt-150 pt-md-300","data-unique-id":"vs-footer",id:"site-footer"},_hoisted_2$J={class:"vs-footer__social-menu-wrapper"};function _sfc_render$1f(e,r,t,n,a,o){const i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsFooterNavList"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("footer",_hoisted_1$14,[vue.createVNode(l,{"break-point":"md"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"accordion-items"),vue.createVNode(i,{cols:"12",lg:"3",xl:"2",class:"d-none d-lg-block","data-unique-id":"vs-footer-social_links"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"social-menu")]),_:3})]),_:3}),vue.createElementVNode("div",_hoisted_2$J,[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",class:"d-block d-lg-none","data-unique-id":"vs-footer-mobile_social_links"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"social-menu")]),_:3})]),_:3})]),_:3})]),vue.renderSlot(e.$slots,"default")])}const Footer=_export_sfc(_sfc_main$1o,[["render",_sfc_render$1f]]),_sfc_main$1n={name:"VsFooterAccordionItem",status:"prototype",release:"0.0.1",components:{VsAccordionItem},props:{controlId:{type:String,required:!0},itemBreakPoint:{type:String,default:e=>e.breakPoint,validator:e=>e.match(/(xs|sm|md|lg|xl|xxl)/)},openByDefault:{type:Boolean,default:!1},title:{type:String,required:!0},variant:{type:String,default:"primary"}},computed:{getUniqueId(){let e=this.title.toLowerCase();return e=e.replace(/\s+/g,"-"),`vs-footer-${e}`}}};function _sfc_render$1e(e,r,t,n,a,o){const i=vue.resolveComponent("VsAccordionItem");return vue.openBlock(),vue.createBlock(i,{class:"vs-footer-accordion-item mb-md-150","data-test":"vs-footer-accordion-item","data-unique-id":o.getUniqueId,"control-id":t.controlId,"item-break-point":t.itemBreakPoint,"open-by-default":t.openByDefault,variant:t.variant},{title:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),"icon-open":vue.withCtx(()=>[vue.renderSlot(e.$slots,"icon-open")]),"icon-closed":vue.withCtx(()=>[vue.renderSlot(e.$slots,"icon-closed")]),default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["data-unique-id","control-id","item-break-point","open-by-default","variant"])}const FooterAccordionItem=_export_sfc(_sfc_main$1n,[["render",_sfc_render$1e]]),_sfc_main$1m={name:"VsFooterNavListItem",status:"prototype",release:"0.0.1",components:{VsLink},props:{href:{type:String,default:null},type:{type:String,default:"default",validator:e=>e.match(/(default|external|internal|download)/)},linkText:{type:String,default:""}}},_hoisted_1$13={class:"vs-footer-nav-list-item","data-test":"vs-footer-nav-list-item",role:"menuitem"};function _sfc_render$1d(e,r,t,n,a,o){const i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$13,[vue.createVNode(i,{href:t.href,type:t.type,variant:"on-dark","data-test":"vs-footer-nav-list-item__link"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.linkText),1)]),_:1},8,["href","type"])])}const FooterNavListItem=_export_sfc(_sfc_main$1m,[["render",_sfc_render$1d]]),_sfc_main$1l={name:"VsList",status:"prototype",release:"0.0.1",props:{ordered:{type:Boolean,default:!1},unstyled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}}};function _sfc_render$1c(e,r,t,n,a,o){return vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(t.ordered?"ol":"ul"),vue.mergeProps({class:["vs-list",{"vs-list--unstyled":t.unstyled,"vs-list--inline":t.inline,"vs-list--ordered":t.ordered}]},e.$attrs),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16,["class"])}const VsList=_export_sfc(_sfc_main$1l,[["render",_sfc_render$1c]]),_sfc_main$1k={name:"VsFooterSocialMenu",status:"prototype",release:"0.0.1",components:{VsList,VsHeading}},_hoisted_1$12={class:"vs-footer-social-menu px-0 py-150 py-md-200 py-lg-0 px-lg-075","data-test":"vs-footer-social-menu"};function _sfc_render$1b(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsList");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$12,[vue.createVNode(i,{level:"2","heading-style":"heading-xxs",class:"vs-footer-social-menu__title"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"title")]),_:3}),vue.createVNode(l,{unstyled:"",class:"mt-125 mt-md-0 mt-lg-125 pe-lg-400 pe-xl-300"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})])}const FooterSocialMenu=_export_sfc(_sfc_main$1k,[["render",_sfc_render$1b]]),_sfc_main$1j={name:"VsFooterSocialItem",status:"prototype",release:"0.0.1",components:{VsLink,VsIcon},mixins:[dataLayerMixin],props:{href:{type:String,required:!0},icon:{type:String,required:!0,validator:e=>e.match(/(facebook|instagram|x-twitter|youtube|linkedin)/)}}},_hoisted_1$11={class:"vs-footer-social-item","data-test":"vs-footer-social-item"};function _sfc_render$1a(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$11,[vue.createVNode(l,{"data-test":"vs-footer-social-item__link",href:t.href,type:"external",class:vue.normalizeClass(t.icon),"aria-label":t.icon,"data-layer-value":"socialMediaExternalLinkDataEvent"},{default:vue.withCtx(()=>[vue.createVNode(i,{name:t.icon,variant:"inverse",size:"sm"},null,8,["name"])]),_:1},8,["href","class","aria-label"])])}const FooterSocialItem=_export_sfc(_sfc_main$1j,[["render",_sfc_render$1a]]),_sfc_main$1i={name:"VsFooterUtilityList",status:"prototype",release:"0.0.1",components:{VsList,VsRow,VsContainer,VsCol}},_hoisted_1$10={class:"vs-footer-utility-list","data-test":"vs-footer-utility-list","data-unique-id":"vs-footer-utility_links"};function _sfc_render$19(e,r,t,n,a,o){const i=vue.resolveComponent("VsList"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$10,[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",sm:"7",md:"12"},{default:vue.withCtx(()=>[vue.createVNode(i,{unstyled:"",role:"menu"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3})]),_:3})])}const FooterUtilityList=_export_sfc(_sfc_main$1i,[["render",_sfc_render$19]]);function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var dist$3={exports:{}},interopRequireDefault={exports:{}};(function(e){function r(t){return t&&t.__esModule?t:{default:t}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(interopRequireDefault);var interopRequireDefaultExports=interopRequireDefault.exports,_extends$1={exports:{}},hasRequired_extends;function require_extends(){return hasRequired_extends||(hasRequired_extends=1,function(e){function r(){return e.exports=r=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(t[o]=a[o])}return t},e.exports.__esModule=!0,e.exports.default=e.exports,r.apply(this,arguments)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(_extends$1)),_extends$1.exports}var objectWithoutPropertiesLoose={exports:{}},hasRequiredObjectWithoutPropertiesLoose;function requireObjectWithoutPropertiesLoose(){return hasRequiredObjectWithoutPropertiesLoose||(hasRequiredObjectWithoutPropertiesLoose=1,function(e){function r(t,n){if(t==null)return{};var a={};for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){if(n.indexOf(o)>=0)continue;a[o]=t[o]}return a}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(objectWithoutPropertiesLoose)),objectWithoutPropertiesLoose.exports}var path$2={exports:{}},util$3={},isBufferBrowser$1,hasRequiredIsBufferBrowser$1;function requireIsBufferBrowser$1(){return hasRequiredIsBufferBrowser$1||(hasRequiredIsBufferBrowser$1=1,isBufferBrowser$1=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}),isBufferBrowser$1}var inherits_browser$1={exports:{}},hasRequiredInherits_browser$1;function requireInherits_browser$1(){return hasRequiredInherits_browser$1||(hasRequiredInherits_browser$1=1,typeof Object.create=="function"?inherits_browser$1.exports=function(r,t){r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}})}:inherits_browser$1.exports=function(r,t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r}),inherits_browser$1.exports}var hasRequiredUtil$1;function requireUtil$1(){return hasRequiredUtil$1||(hasRequiredUtil$1=1,function(e){var r={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.8",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-59948a58;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-de2eadd7;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"},t=/%[sdj%]/g;e.format=function(A){if(!$(A)){for(var F=[],W=0;W<arguments.length;W++)F.push(o(arguments[W]));return F.join(" ")}for(var W=1,X=arguments,fe=X.length,O=String(A).replace(t,function(U){if(U==="%%")return"%";if(W>=fe)return U;switch(U){case"%s":return String(X[W++]);case"%d":return Number(X[W++]);case"%j":try{return JSON.stringify(X[W++])}catch{return"[Circular]"}default:return U}}),I=X[W];W<fe;I=X[++W])C(I)||!L(I)?O+=" "+I:O+=" "+o(I);return O},e.deprecate=function(A,F){if(B(commonjsGlobal.process))return function(){return e.deprecate(A,F).apply(this,arguments)};if(process.noDeprecation===!0)return A;var W=!1;function X(){if(!W){if(process.throwDeprecation)throw new Error(F);process.traceDeprecation?console.trace(F):console.error(F),W=!0}return A.apply(this,arguments)}return X};var n={},a;e.debuglog=function(A){if(B(a)&&(a=r.NODE_DEBUG||""),A=A.toUpperCase(),!n[A])if(new RegExp("\\b"+A+"\\b","i").test(a)){var F=process.pid;n[A]=function(){var W=e.format.apply(e,arguments);console.error("%s %d: %s",A,F,W)}}else n[A]=function(){};return n[A]};function o(A,F){var W={seen:[],stylize:l};return arguments.length>=3&&(W.depth=arguments[2]),arguments.length>=4&&(W.colors=arguments[3]),S(F)?W.showHidden=F:F&&e._extend(W,F),B(W.showHidden)&&(W.showHidden=!1),B(W.depth)&&(W.depth=2),B(W.colors)&&(W.colors=!1),B(W.customInspect)&&(W.customInspect=!0),W.colors&&(W.stylize=i),d(W,A,W.depth)}e.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function i(A,F){var W=o.styles[F];return W?"\x1B["+o.colors[W][0]+"m"+A+"\x1B["+o.colors[W][1]+"m":A}function l(A,F){return A}function c(A){var F={};return A.forEach(function(W,X){F[W]=!0}),F}function d(A,F,W){if(A.customInspect&&F&&Q(F.inspect)&&F.inspect!==e.inspect&&!(F.constructor&&F.constructor.prototype===F)){var X=F.inspect(W,A);return $(X)||(X=d(A,X,W)),X}var fe=f(A,F);if(fe)return fe;var O=Object.keys(F),I=c(O);if(A.showHidden&&(O=Object.getOwnPropertyNames(F)),oe(F)&&(O.indexOf("message")>=0||O.indexOf("description")>=0))return p(F);if(O.length===0){if(Q(F)){var U=F.name?": "+F.name:"";return A.stylize("[Function"+U+"]","special")}if(R(F))return A.stylize(RegExp.prototype.toString.call(F),"regexp");if(te(F))return A.stylize(Date.prototype.toString.call(F),"date");if(oe(F))return p(F)}var ae="",ee=!1,se=["{","}"];if(_(F)&&(ee=!0,se=["[","]"]),Q(F)){var le=F.name?": "+F.name:"";ae=" [Function"+le+"]"}if(R(F)&&(ae=" "+RegExp.prototype.toString.call(F)),te(F)&&(ae=" "+Date.prototype.toUTCString.call(F)),oe(F)&&(ae=" "+p(F)),O.length===0&&(!ee||F.length==0))return se[0]+ae+se[1];if(W<0)return R(F)?A.stylize(RegExp.prototype.toString.call(F),"regexp"):A.stylize("[Object]","special");A.seen.push(F);var ie;return ee?ie=v(A,F,W,I,O):ie=O.map(function(ve){return m(A,F,W,I,ve,ee)}),A.seen.pop(),g(ie,ae,se)}function f(A,F){if(B(F))return A.stylize("undefined","undefined");if($(F)){var W="'"+JSON.stringify(F).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(W,"string")}if(E(F))return A.stylize(""+F,"number");if(S(F))return A.stylize(""+F,"boolean");if(C(F))return A.stylize("null","null")}function p(A){return"["+Error.prototype.toString.call(A)+"]"}function v(A,F,W,X,fe){for(var O=[],I=0,U=F.length;I<U;++I)de(F,String(I))?O.push(m(A,F,W,X,String(I),!0)):O.push("");return fe.forEach(function(ae){ae.match(/^\d+$/)||O.push(m(A,F,W,X,ae,!0))}),O}function m(A,F,W,X,fe,O){var I,U,ae;if(ae=Object.getOwnPropertyDescriptor(F,fe)||{value:F[fe]},ae.get?ae.set?U=A.stylize("[Getter/Setter]","special"):U=A.stylize("[Getter]","special"):ae.set&&(U=A.stylize("[Setter]","special")),de(X,fe)||(I="["+fe+"]"),U||(A.seen.indexOf(ae.value)<0?(C(W)?U=d(A,ae.value,null):U=d(A,ae.value,W-1),U.indexOf(`
186
186
  `)>-1&&(O?U=U.split(`
187
187
  `).map(function(ee){return" "+ee}).join(`
188
188
  `).substr(2):U=`
189
189
  `+U.split(`
190
190
  `).map(function(ee){return" "+ee}).join(`
191
- `))):U=A.stylize("[Circular]","special")),B(I)){if(O&&fe.match(/^\d+$/))return U;I=JSON.stringify(""+fe),I.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(I=I.substr(1,I.length-2),I=A.stylize(I,"name")):(I=I.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),I=A.stylize(I,"string"))}return I+": "+U}function g(A,F,j){var Z=A.reduce(function(fe,O){return O.indexOf(`
192
- `)>=0,fe+O.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Z>60?j[0]+(F===""?"":F+`
191
+ `))):U=A.stylize("[Circular]","special")),B(I)){if(O&&fe.match(/^\d+$/))return U;I=JSON.stringify(""+fe),I.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(I=I.substr(1,I.length-2),I=A.stylize(I,"name")):(I=I.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),I=A.stylize(I,"string"))}return I+": "+U}function g(A,F,W){var X=A.reduce(function(fe,O){return O.indexOf(`
192
+ `)>=0,fe+O.replace(/\u001b\[\d\d?m/g,"").length+1},0);return X>60?W[0]+(F===""?"":F+`
193
193
  `)+" "+A.join(`,
194
- `)+" "+j[1]:j[0]+F+" "+A.join(", ")+" "+j[1]}function _(A){return Array.isArray(A)}e.isArray=_;function S(A){return typeof A=="boolean"}e.isBoolean=S;function C(A){return A===null}e.isNull=C;function w(A){return A==null}e.isNullOrUndefined=w;function E(A){return typeof A=="number"}e.isNumber=E;function $(A){return typeof A=="string"}e.isString=$;function T(A){return typeof A=="symbol"}e.isSymbol=T;function B(A){return A===void 0}e.isUndefined=B;function R(A){return L(A)&&Y(A)==="[object RegExp]"}e.isRegExp=R;function L(A){return typeof A=="object"&&A!==null}e.isObject=L;function te(A){return L(A)&&Y(A)==="[object Date]"}e.isDate=te;function oe(A){return L(A)&&(Y(A)==="[object Error]"||A instanceof Error)}e.isError=oe;function Q(A){return typeof A=="function"}e.isFunction=Q;function ce(A){return A===null||typeof A=="boolean"||typeof A=="number"||typeof A=="string"||typeof A=="symbol"||typeof A>"u"}e.isPrimitive=ce,e.isBuffer=requireIsBufferBrowser$1();function Y(A){return Object.prototype.toString.call(A)}function ne(A){return A<10?"0"+A.toString(10):A.toString(10)}var ge=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function me(){var A=new Date,F=[ne(A.getHours()),ne(A.getMinutes()),ne(A.getSeconds())].join(":");return[A.getDate(),ge[A.getMonth()],F].join(" ")}e.log=function(){console.log("%s - %s",me(),e.format.apply(e,arguments))},e.inherits=requireInherits_browser$1(),e._extend=function(A,F){if(!F||!L(F))return A;for(var j=Object.keys(F),Z=j.length;Z--;)A[j[Z]]=F[j[Z]];return A};function de(A,F){return Object.prototype.hasOwnProperty.call(A,F)}}(util$3)),util$3}var hasRequiredPath;function requirePath(){if(hasRequiredPath)return path$2.exports;hasRequiredPath=1;var e={ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",JETBRAINS_INTELLIJ_COMMAND_END_MARKER:"ZU98Tjo1s9mdtrKJDjkDGSGGEp5tw63GnQvv7ElLZlCMGXy1aOp9jFhC5BjusZy0",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.7",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-9cb82016;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-49607556;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;;D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\node_modules\\.bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSExecutionPolicyPreference:"Bypass",PSModulePath:"D:\\Users\\martin.taylor\\Documents\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TERMINAL_EMULATOR:"JetBrains-JediTerm",TERM_SESSION_ID:"1ff63cfe-b994-4472-afa5-0ddc6b11b75f",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"},r=requireUtil$1();function t(m,g){for(var _=[],S=0;S<m.length;S++){var C=m[S];!C||C==="."||(C===".."?_.length&&_[_.length-1]!==".."?_.pop():g&&_.push(".."):_.push(C))}return _}function n(m){for(var g=m.length-1,_=0;_<=g&&!m[_];_++);for(var S=g;S>=0&&!m[S];S--);return _===0&&S===g?m:_>S?[]:m.slice(_,S+1)}var a=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,o=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,i={};function l(m){var g=a.exec(m),_=(g[1]||"")+(g[2]||""),S=g[3]||"",C=o.exec(S),w=C[1],E=C[2],$=C[3];return[_,w,E,$]}function c(m){var g=a.exec(m),_=g[1]||"",S=!!_&&_[1]!==":";return{device:_,isUnc:S,isAbsolute:S||!!g[2],tail:g[3]}}function d(m){return"\\\\"+m.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}i.resolve=function(){for(var m="",g="",_=!1,S=arguments.length-1;S>=-1;S--){var C;if(S>=0?C=arguments[S]:m?(C=e["="+m],(!C||C.substr(0,3).toLowerCase()!==m.toLowerCase()+"\\")&&(C=m+"\\")):C=process.cwd(),r.isString(C)){if(!C)continue}else throw new TypeError("Arguments to path.resolve must be strings");var w=c(C),E=w.device,$=w.isUnc,T=w.isAbsolute,B=w.tail;if(!(E&&m&&E.toLowerCase()!==m.toLowerCase())&&(m||(m=E),_||(g=B+"\\"+g,_=T),m&&_))break}return $&&(m=d(m)),g=t(g.split(/[\\\/]+/),!_).join("\\"),m+(_?"\\":"")+g||"."},i.normalize=function(m){var g=c(m),_=g.device,S=g.isUnc,C=g.isAbsolute,w=g.tail,E=/[\\\/]$/.test(w);return w=t(w.split(/[\\\/]+/),!C).join("\\"),!w&&!C&&(w="."),w&&E&&(w+="\\"),S&&(_=d(_)),_+(C?"\\":"")+w},i.isAbsolute=function(m){return c(m).isAbsolute},i.join=function(){for(var m=[],g=0;g<arguments.length;g++){var _=arguments[g];if(!r.isString(_))throw new TypeError("Arguments to path.join must be strings");_&&m.push(_)}var S=m.join("\\");return/^[\\\/]{2}[^\\\/]/.test(m[0])||(S=S.replace(/^[\\\/]{2,}/,"\\")),i.normalize(S)},i.relative=function(m,g){m=i.resolve(m),g=i.resolve(g);for(var _=m.toLowerCase(),S=g.toLowerCase(),C=n(g.split("\\")),w=n(_.split("\\")),E=n(S.split("\\")),$=Math.min(w.length,E.length),T=$,B=0;B<$;B++)if(w[B]!==E[B]){T=B;break}if(T==0)return g;for(var R=[],B=T;B<w.length;B++)R.push("..");return R=R.concat(C.slice(T)),R.join("\\")},i._makeLong=function(m){if(!r.isString(m))return m;if(!m)return"";var g=i.resolve(m);return/^[a-zA-Z]\:\\/.test(g)?"\\\\?\\"+g:/^\\\\[^?.]/.test(g)?"\\\\?\\UNC\\"+g.substring(2):m},i.dirname=function(m){var g=l(m),_=g[0],S=g[1];return!_&&!S?".":(S&&(S=S.substr(0,S.length-1)),_+S)},i.basename=function(m,g){var _=l(m)[2];return g&&_.substr(-1*g.length)===g&&(_=_.substr(0,_.length-g.length)),_},i.extname=function(m){return l(m)[3]},i.format=function(m){if(!r.isObject(m))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof m);var g=m.root||"";if(!r.isString(g))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof m.root);var _=m.dir,S=m.base||"";return _?_[_.length-1]===i.sep?_+S:_+i.sep+S:S},i.parse=function(m){if(!r.isString(m))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof m);var g=l(m);if(!g||g.length!==4)throw new TypeError("Invalid path '"+m+"'");return{root:g[0],dir:g[0]+g[1].slice(0,-1),base:g[2],ext:g[3],name:g[2].slice(0,g[2].length-g[3].length)}},i.sep="\\",i.delimiter=";";var f=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,p={};function v(m){return f.exec(m).slice(1)}return p.resolve=function(){for(var m="",g=!1,_=arguments.length-1;_>=-1&&!g;_--){var S=_>=0?arguments[_]:process.cwd();if(r.isString(S)){if(!S)continue}else throw new TypeError("Arguments to path.resolve must be strings");m=S+"/"+m,g=S[0]==="/"}return m=t(m.split("/"),!g).join("/"),(g?"/":"")+m||"."},p.normalize=function(m){var g=p.isAbsolute(m),_=m&&m[m.length-1]==="/";return m=t(m.split("/"),!g).join("/"),!m&&!g&&(m="."),m&&_&&(m+="/"),(g?"/":"")+m},p.isAbsolute=function(m){return m.charAt(0)==="/"},p.join=function(){for(var m="",g=0;g<arguments.length;g++){var _=arguments[g];if(!r.isString(_))throw new TypeError("Arguments to path.join must be strings");_&&(m?m+="/"+_:m+=_)}return p.normalize(m)},p.relative=function(m,g){m=p.resolve(m).substr(1),g=p.resolve(g).substr(1);for(var _=n(m.split("/")),S=n(g.split("/")),C=Math.min(_.length,S.length),w=C,E=0;E<C;E++)if(_[E]!==S[E]){w=E;break}for(var $=[],E=w;E<_.length;E++)$.push("..");return $=$.concat(S.slice(w)),$.join("/")},p._makeLong=function(m){return m},p.dirname=function(m){var g=v(m),_=g[0],S=g[1];return!_&&!S?".":(S&&(S=S.substr(0,S.length-1)),_+S)},p.basename=function(m,g){var _=v(m)[2];return g&&_.substr(-1*g.length)===g&&(_=_.substr(0,_.length-g.length)),_},p.extname=function(m){return v(m)[3]},p.format=function(m){if(!r.isObject(m))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof m);var g=m.root||"";if(!r.isString(g))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof m.root);var _=m.dir?m.dir+p.sep:"",S=m.base||"";return _+S},p.parse=function(m){if(!r.isString(m))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof m);var g=v(m);if(!g||g.length!==4)throw new TypeError("Invalid path '"+m+"'");return g[1]=g[1]||"",g[2]=g[2]||"",g[3]=g[3]||"",{root:g[0],dir:g[0]+g[1].slice(0,-1),base:g[2],ext:g[3],name:g[2].slice(0,g[2].length-g[3].length)}},p.sep="/",p.delimiter=":",path$2.exports=i,path$2.exports.posix=p,path$2.exports.win32=i,path$2.exports}const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0$1=getAugmentedNamespace(__viteBrowserExternal$1);var homedir,hasRequiredHomedir;function requireHomedir(){if(hasRequiredHomedir)return homedir;hasRequiredHomedir=1;var e={ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",JETBRAINS_INTELLIJ_COMMAND_END_MARKER:"ZU98Tjo1s9mdtrKJDjkDGSGGEp5tw63GnQvv7ElLZlCMGXy1aOp9jFhC5BjusZy0",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.7",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-9cb82016;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-49607556;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;;D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\node_modules\\.bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSExecutionPolicyPreference:"Bypass",PSModulePath:"D:\\Users\\martin.taylor\\Documents\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TERMINAL_EMULATOR:"JetBrains-JediTerm",TERM_SESSION_ID:"1ff63cfe-b994-4472-afa5-0ddc6b11b75f",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"},r=require$$0$1;return homedir=r.homedir||function(){return e.USERPROFILE},homedir}var caller,hasRequiredCaller;function requireCaller(){return hasRequiredCaller||(hasRequiredCaller=1,caller=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(t,n){return n};var r=new Error().stack;return Error.prepareStackTrace=e,r[2].getFileName()}),caller}var pathParse={exports:{}},hasRequiredPathParse;function requirePathParse(){if(hasRequiredPathParse)return pathParse.exports;hasRequiredPathParse=1;var e=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,r={};function t(i){return e.exec(i).slice(1)}r.parse=function(i){if(typeof i!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof i);var l=t(i);if(!l||l.length!==5)throw new TypeError("Invalid path '"+i+"'");return{root:l[1],dir:l[0]===l[1]?l[0]:l[0].slice(0,-1),base:l[2],ext:l[4],name:l[3]}};var n=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,a={};function o(i){return n.exec(i).slice(1)}return a.parse=function(i){if(typeof i!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof i);var l=o(i);if(!l||l.length!==5)throw new TypeError("Invalid path '"+i+"'");return{root:l[1],dir:l[0].slice(0,-1),base:l[2],ext:l[4],name:l[3]}},pathParse.exports=r.parse,pathParse.exports.posix=a.parse,pathParse.exports.win32=r.parse,pathParse.exports}var nodeModulesPaths,hasRequiredNodeModulesPaths;function requireNodeModulesPaths(){if(hasRequiredNodeModulesPaths)return nodeModulesPaths;hasRequiredNodeModulesPaths=1;var e=requirePath(),r=e.parse||requirePathParse(),t=function(a,o){var i="/";/^([A-Za-z]:)/.test(a)?i="":/^\\\\/.test(a)&&(i="\\\\");for(var l=[a],c=r(a);c.dir!==l[l.length-1];)l.push(c.dir),c=r(c.dir);return l.reduce(function(d,f){return d.concat(o.map(function(p){return e.resolve(i,f,p)}))},[])};return nodeModulesPaths=function(a,o,i){var l=o&&o.moduleDirectory?[].concat(o.moduleDirectory):["node_modules"];if(o&&typeof o.paths=="function")return o.paths(i,a,function(){return t(a,l)},o);var c=t(a,l);return o&&o.paths?c.concat(o.paths):c},nodeModulesPaths}var normalizeOptions,hasRequiredNormalizeOptions;function requireNormalizeOptions(){if(hasRequiredNormalizeOptions)return normalizeOptions;hasRequiredNormalizeOptions=1;var e={node:"22.11.0",acorn:"8.12.1",ada:"2.9.0",amaro:"0.1.8",ares:"1.33.1",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"9.2.1",modules:"127",napi:"9",nbytes:"0.1.1",ncrypto:"0.0.1",nghttp2:"1.63.0",nghttp3:"0.7.0",ngtcp2:"1.3.0",openssl:"3.0.15+quic",simdjson:"3.10.0",simdutf:"5.5.0",sqlite:"3.46.1",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.48.0",uvwasi:"0.0.21",v8:"12.4.254.21-node.21",zlib:"1.3.0.1-motley-71660e1"};const r=requirePath();return normalizeOptions=function(t,n){if(n=n||{},n.forceNodeResolution||!e.pnp)return n;const{findPnpApi:a}=require$$0$1,o=(p,v)=>{const m=p.match(/^((?:@[^/]+\/)?[^/]+)(\/.*)?/);if(!m)throw new Error(`Assertion failed: Expected the "resolve" package to call the "paths" callback with package names only (got "${p}")`);v.charAt(v.length-1)!=="/"&&(v=r.join(v,"/"));const g=a(v);if(g===null)return;let _;try{_=g.resolveToUnqualified(`${m[1]}/package.json`,v,{considerBuiltins:!1})}catch{return null}if(_===null)throw new Error(`Assertion failed: The resolution thinks that "${m[1]}" is a Node builtin`);const S=r.dirname(_),C=typeof m[2]<"u"?r.join(S,m[2]):S;return{packagePath:S,unqualifiedPath:C}},i=(p,v)=>{for(let m=0;m<v.length;m++){const g=o(p,v[m]);if(g||m===v.length-1)return g}return null},l=Array.isArray(n.paths)?n.paths:[],c=(p,v,m,g)=>{const _=[v].concat(l),S=i(p,_);return S==null?m():[S.unqualifiedPath]},d=(p,v,m,g)=>{const _=[v].concat(l),S=i(p,_);if(S==null)return m().concat(l);let C=r.dirname(S.packagePath);return p.match(/^@[^/]+\//)&&(C=r.dirname(C)),[C]};let f=!1;return n.__skipPackageIterator||(n.packageIterator=function(p,v,m,g){f=!0;try{return c(p,v,m,g)}finally{f=!1}}),n.paths=function(p,v,m,g){return f?m().concat(l):d(p,v,m)},n},normalizeOptions}var implementation,hasRequiredImplementation;function requireImplementation(){if(hasRequiredImplementation)return implementation;hasRequiredImplementation=1;var e="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,t=Math.max,n="[object Function]",a=function(c,d){for(var f=[],p=0;p<c.length;p+=1)f[p]=c[p];for(var v=0;v<d.length;v+=1)f[v+c.length]=d[v];return f},o=function(c,d){for(var f=[],p=d,v=0;p<c.length;p+=1,v+=1)f[v]=c[p];return f},i=function(l,c){for(var d="",f=0;f<l.length;f+=1)d+=l[f],f+1<l.length&&(d+=c);return d};return implementation=function(c){var d=this;if(typeof d!="function"||r.apply(d)!==n)throw new TypeError(e+d);for(var f=o(arguments,1),p,v=function(){if(this instanceof p){var C=d.apply(this,a(f,arguments));return Object(C)===C?C:this}return d.apply(c,a(f,arguments))},m=t(0,d.length-f.length),g=[],_=0;_<m;_++)g[_]="$"+_;if(p=Function("binder","return function ("+i(g,",")+"){ return binder.apply(this,arguments); }")(v),d.prototype){var S=function(){};S.prototype=d.prototype,p.prototype=new S,S.prototype=null}return p},implementation}var functionBind,hasRequiredFunctionBind;function requireFunctionBind(){if(hasRequiredFunctionBind)return functionBind;hasRequiredFunctionBind=1;var e=requireImplementation();return functionBind=Function.prototype.bind||e,functionBind}var hasown,hasRequiredHasown;function requireHasown(){if(hasRequiredHasown)return hasown;hasRequiredHasown=1;var e=Function.prototype.call,r=Object.prototype.hasOwnProperty,t=requireFunctionBind();return hasown=t.call(e,r),hasown}const assert$1=!0,async_hooks$1=">= 8",buffer_ieee754$1=">= 0.5 && < 0.9.7",buffer$1=!0,child_process$1=!0,cluster$1=">= 0.5",console$2=!0,constants$1=!0,crypto$1=!0,_debug_agent$1=">= 1 && < 8",_debugger$1="< 8",dgram$1=!0,diagnostics_channel$1=[">= 14.17 && < 15",">= 15.1"],dns$1=!0,domain$1=">= 0.7.12",events$1=!0,freelist$1="< 6",fs$1=!0,_http_agent$1=">= 0.11.1",_http_client$1=">= 0.11.1",_http_common$1=">= 0.11.1",_http_incoming$1=">= 0.11.1",_http_outgoing$1=">= 0.11.1",_http_server$1=">= 0.11.1",http$1=!0,http2$1=">= 8.8",https$1=!0,inspector$1=">= 8",_linklist$1="< 8",module$2=!0,net$1=!0,os$1=!0,path$1=!0,perf_hooks$1=">= 8.5",process$2=">= 1",punycode$1=">= 0.5",querystring$1=!0,readline$1=!0,repl$1=!0,smalloc$1=">= 0.11.5 && < 3",_stream_duplex$1=">= 0.9.4",_stream_transform$1=">= 0.9.4",_stream_wrap$1=">= 1.4.1",_stream_passthrough$1=">= 0.9.4",_stream_readable$1=">= 0.9.4",_stream_writable$1=">= 0.9.4",stream$1=!0,string_decoder$1=!0,sys$1=[">= 0.4 && < 0.7",">= 0.8"],timers$1=!0,_tls_common$1=">= 0.11.13",_tls_legacy$1=">= 0.11.3 && < 10",_tls_wrap$1=">= 0.11.3",tls$1=!0,trace_events$1=">= 10",tty$1=!0,url$1=!0,util$2=!0,v8$1=">= 1",vm$1=!0,wasi$1=[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],worker_threads$1=">= 11.7",zlib$1=">= 0.5",require$$1$1={assert:assert$1,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:async_hooks$1,"node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:buffer_ieee754$1,buffer:buffer$1,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:child_process$1,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:cluster$1,"node:cluster":[">= 14.18 && < 15",">= 16"],console:console$2,"node:console":[">= 14.18 && < 15",">= 16"],constants:constants$1,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:crypto$1,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:_debug_agent$1,_debugger:_debugger$1,dgram:dgram$1,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:diagnostics_channel$1,"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:dns$1,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:domain$1,"node:domain":[">= 14.18 && < 15",">= 16"],events:events$1,"node:events":[">= 14.18 && < 15",">= 16"],freelist:freelist$1,fs:fs$1,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:_http_agent$1,"node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:_http_client$1,"node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:_http_common$1,"node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:_http_incoming$1,"node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:_http_outgoing$1,"node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:_http_server$1,"node:_http_server":[">= 14.18 && < 15",">= 16"],http:http$1,"node:http":[">= 14.18 && < 15",">= 16"],http2:http2$1,"node:http2":[">= 14.18 && < 15",">= 16"],https:https$1,"node:https":[">= 14.18 && < 15",">= 16"],inspector:inspector$1,"node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:_linklist$1,module:module$2,"node:module":[">= 14.18 && < 15",">= 16"],net:net$1,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:os$1,"node:os":[">= 14.18 && < 15",">= 16"],path:path$1,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:perf_hooks$1,"node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:process$2,"node:process":[">= 14.18 && < 15",">= 16"],punycode:punycode$1,"node:punycode":[">= 14.18 && < 15",">= 16"],querystring:querystring$1,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:readline$1,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:repl$1,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:smalloc$1,_stream_duplex:_stream_duplex$1,"node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:_stream_transform$1,"node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:_stream_wrap$1,"node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:_stream_passthrough$1,"node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:_stream_readable$1,"node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:_stream_writable$1,"node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:stream$1,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:string_decoder$1,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:sys$1,"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:timers$1,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:_tls_common$1,"node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:_tls_legacy$1,_tls_wrap:_tls_wrap$1,"node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:tls$1,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:trace_events$1,"node:trace_events":[">= 14.18 && < 15",">= 16"],tty:tty$1,"node:tty":[">= 14.18 && < 15",">= 16"],url:url$1,"node:url":[">= 14.18 && < 15",">= 16"],util:util$2,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:v8$1,"node:v8":[">= 14.18 && < 15",">= 16"],vm:vm$1,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:wasi$1,"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:worker_threads$1,"node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:zlib$1,"node:zlib":[">= 14.18 && < 15",">= 16"]};var isCoreModule,hasRequiredIsCoreModule;function requireIsCoreModule(){if(hasRequiredIsCoreModule)return isCoreModule;hasRequiredIsCoreModule=1;var e={node:"22.11.0",acorn:"8.12.1",ada:"2.9.0",amaro:"0.1.8",ares:"1.33.1",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"9.2.1",modules:"127",napi:"9",nbytes:"0.1.1",ncrypto:"0.0.1",nghttp2:"1.63.0",nghttp3:"0.7.0",ngtcp2:"1.3.0",openssl:"3.0.15+quic",simdjson:"3.10.0",simdutf:"5.5.0",sqlite:"3.46.1",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.48.0",uvwasi:"0.0.21",v8:"12.4.254.21-node.21",zlib:"1.3.0.1-motley-71660e1"},r=requireHasown();function t(i,l){for(var c=i.split("."),d=l.split(" "),f=d.length>1?d[0]:"=",p=(d.length>1?d[1]:d[0]).split("."),v=0;v<3;++v){var m=parseInt(c[v]||0,10),g=parseInt(p[v]||0,10);if(m!==g)return f==="<"?m<g:f===">="?m>=g:!1}return f===">="}function n(i,l){var c=l.split(/ ?&& ?/);if(c.length===0)return!1;for(var d=0;d<c.length;++d)if(!t(i,c[d]))return!1;return!0}function a(i,l){if(typeof l=="boolean")return l;var c=typeof i>"u"?e&&e.node:i;if(typeof c!="string")throw new TypeError(typeof i>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(l&&typeof l=="object"){for(var d=0;d<l.length;++d)if(n(c,l[d]))return!0;return!1}return n(c,l)}var o=require$$1$1;return isCoreModule=function(l,c){return r(o,l)&&a(c,o[l])},isCoreModule}var async,hasRequiredAsync;function requireAsync(){if(hasRequiredAsync)return async;hasRequiredAsync=1;var e=require$$0$1,r=requireHomedir(),t=requirePath(),n=requireCaller(),a=requireNodeModulesPaths(),o=requireNormalizeOptions(),i=requireIsCoreModule(),l=e.realpath,c=r(),d=function(){return[t.join(c,".node_modules"),t.join(c,".node_libraries")]},f=function(C,w){e.stat(C,function(E,$){return E?E.code==="ENOENT"||E.code==="ENOTDIR"?w(null,!1):w(E):w(null,$.isFile()||$.isFIFO())})},p=function(C,w){e.stat(C,function(E,$){return E?E.code==="ENOENT"||E.code==="ENOTDIR"?w(null,!1):w(E):w(null,$.isDirectory())})},v=function(C,w){l(C,function(E,$){E&&E.code!=="ENOENT"?w(E):w(null,E?C:$)})},m=function(C,w,E,$){E&&E.preserveSymlinks===!1?C(w,$):$(null,w)},g=function(C,w,E){C(w,function($,T){if($)E($);else try{var B=JSON.parse(T);E(null,B)}catch{E(null)}})},_=function(C,w,E){for(var $=a(w,E,C),T=0;T<$.length;T++)$[T]=t.join($[T],C);return $};return async=function(C,w,E){var $=E,T=w;if(typeof w=="function"&&($=T,T={}),typeof C!="string"){var B=new TypeError("Path must be a string.");return process.nextTick(function(){$(B)})}T=o(C,T);var R=T.isFile||f,L=T.isDirectory||p,te=T.readFile||e.readFile,oe=T.realpath||v,Q=T.readPackage||g;if(T.readFile&&T.readPackage){var ce=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){$(ce)})}var Y=T.packageIterator,ne=T.extensions||[".js"],ge=T.includeCoreModules!==!1,me=T.basedir||t.dirname(n()),de=T.filename||me;T.paths=T.paths||d();var A=t.resolve(me);m(oe,A,T,function(ee,se){ee?$(ee):j(se)});var F;function j(ee){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(C))F=t.resolve(ee,C),(C==="."||C===".."||C.slice(-1)==="/")&&(F+="/"),/\/$/.test(C)&&F===ee?I(F,T.package,Z):fe(F,T.package,Z);else{if(ge&&i(C))return $(null,C);ae(C,ee,function(se,le,ie){if(se)$(se);else{if(le)return m(oe,le,T,function(Ve,Ae){Ve?$(Ve):$(null,Ae,ie)});var ve=new Error("Cannot find module '"+C+"' from '"+de+"'");ve.code="MODULE_NOT_FOUND",$(ve)}})}}function Z(ee,se,le){ee?$(ee):se?$(null,se,le):I(F,function(ie,ve,Ve){if(ie)$(ie);else if(ve)m(oe,ve,T,function(Ee,Pe){Ee?$(Ee):$(null,Pe,Ve)});else{var Ae=new Error("Cannot find module '"+C+"' from '"+de+"'");Ae.code="MODULE_NOT_FOUND",$(Ae)}})}function fe(ee,se,le){var ie=se,ve=le;typeof ie=="function"&&(ve=ie,ie=void 0);var Ve=[""].concat(ne);Ae(Ve,ee,ie);function Ae(Ee,Pe,Qe){if(Ee.length===0)return ve(null,void 0,Qe);var He=Pe+Ee[0],et=Qe;et?z(null,et):O(t.dirname(He),z);function z(Ue,mt,at){if(et=mt,Ue)return ve(Ue);if(at&&et&&T.pathFilter){var ur=t.relative(at,He),Nt=ur.slice(0,ur.length-Ee[0].length),Xt=T.pathFilter(et,Pe,Nt);if(Xt)return Ae([""].concat(ne.slice()),t.resolve(at,Xt),et)}R(He,ht)}function ht(Ue,mt){if(Ue)return ve(Ue);if(mt)return ve(null,He,et);Ae(Ee.slice(1),Pe,et)}}}function O(ee,se){if(ee===""||ee==="/"||/^\w:[/\\]*$/.test(ee)||/[/\\]node_modules[/\\]*$/.test(ee))return se(null);m(oe,ee,T,function(le,ie){if(le)return O(t.dirname(ee),se);var ve=t.join(ie,"package.json");R(ve,function(Ve,Ae){if(!Ae)return O(t.dirname(ee),se);Q(te,ve,function(Ee,Pe){Ee&&se(Ee);var Qe=Pe;Qe&&T.packageFilter&&(Qe=T.packageFilter(Qe,ve)),se(null,Qe,ee)})})})}function I(ee,se,le){var ie=le,ve=se;typeof ve=="function"&&(ie=ve,ve=T.package),m(oe,ee,T,function(Ve,Ae){if(Ve)return ie(Ve);var Ee=t.join(Ae,"package.json");R(Ee,function(Pe,Qe){if(Pe)return ie(Pe);if(!Qe)return fe(t.join(ee,"index"),ve,ie);Q(te,Ee,function(He,et){if(He)return ie(He);var z=et;if(z&&T.packageFilter&&(z=T.packageFilter(z,Ee)),z&&z.main){if(typeof z.main!="string"){var ht=new TypeError("package “"+z.name+"” `main` must be a string");return ht.code="INVALID_PACKAGE_MAIN",ie(ht)}(z.main==="."||z.main==="./")&&(z.main="index"),fe(t.resolve(ee,z.main),z,function(Ue,mt,at){if(Ue)return ie(Ue);if(mt)return ie(null,mt,at);if(!at)return fe(t.join(ee,"index"),at,ie);var ur=t.resolve(ee,at.main);I(ur,at,function(Nt,Xt,jt){if(Nt)return ie(Nt);if(Xt)return ie(null,Xt,jt);fe(t.join(ee,"index"),jt,ie)})});return}fe(t.join(ee,"/index"),z,ie)})})})}function U(ee,se){if(se.length===0)return ee(null,void 0);var le=se[0];L(t.dirname(le),ie);function ie(Ae,Ee){if(Ae)return ee(Ae);if(!Ee)return U(ee,se.slice(1));fe(le,T.package,ve)}function ve(Ae,Ee,Pe){if(Ae)return ee(Ae);if(Ee)return ee(null,Ee,Pe);I(le,T.package,Ve)}function Ve(Ae,Ee,Pe){if(Ae)return ee(Ae);if(Ee)return ee(null,Ee,Pe);U(ee,se.slice(1))}}function ae(ee,se,le){var ie=function(){return _(ee,se,T)};U(le,Y?Y(ee,se,ie,T):ie())}},async}const assert=!0,async_hooks=">= 8",buffer_ieee754=">= 0.5 && < 0.9.7",buffer=!0,child_process=!0,cluster=">= 0.5",console$1=!0,constants=!0,crypto=!0,_debug_agent=">= 1 && < 8",_debugger="< 8",dgram=!0,diagnostics_channel=[">= 14.17 && < 15",">= 15.1"],dns=!0,domain=">= 0.7.12",events=!0,freelist="< 6",fs=!0,_http_agent=">= 0.11.1",_http_client=">= 0.11.1",_http_common=">= 0.11.1",_http_incoming=">= 0.11.1",_http_outgoing=">= 0.11.1",_http_server=">= 0.11.1",http=!0,http2=">= 8.8",https=!0,inspector=">= 8",_linklist="< 8",module$1=!0,net=!0,os=!0,path=!0,perf_hooks=">= 8.5",process$1=">= 1",punycode=">= 0.5",querystring=!0,readline=!0,repl=!0,smalloc=">= 0.11.5 && < 3",_stream_duplex=">= 0.9.4",_stream_transform=">= 0.9.4",_stream_wrap=">= 1.4.1",_stream_passthrough=">= 0.9.4",_stream_readable=">= 0.9.4",_stream_writable=">= 0.9.4",stream=!0,string_decoder=!0,sys=[">= 0.4 && < 0.7",">= 0.8"],timers=!0,_tls_common=">= 0.11.13",_tls_legacy=">= 0.11.3 && < 10",_tls_wrap=">= 0.11.3",tls=!0,trace_events=">= 10",tty=!0,url=!0,util$1=!0,v8=">= 1",vm=!0,wasi=[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],worker_threads=">= 11.7",zlib=">= 0.5",require$$1={assert,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks,"node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754,buffer,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster,"node:cluster":[">= 14.18 && < 15",">= 16"],console:console$1,"node:console":[">= 14.18 && < 15",">= 16"],constants,"node:constants":[">= 14.18 && < 15",">= 16"],crypto,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent,_debugger,dgram,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel,"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain,"node:domain":[">= 14.18 && < 15",">= 16"],events,"node:events":[">= 14.18 && < 15",">= 16"],freelist,fs,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent,"node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client,"node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common,"node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming,"node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing,"node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server,"node:_http_server":[">= 14.18 && < 15",">= 16"],http,"node:http":[">= 14.18 && < 15",">= 16"],http2,"node:http2":[">= 14.18 && < 15",">= 16"],https,"node:https":[">= 14.18 && < 15",">= 16"],inspector,"node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist,module:module$1,"node:module":[">= 14.18 && < 15",">= 16"],net,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os,"node:os":[">= 14.18 && < 15",">= 16"],path,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks,"node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:process$1,"node:process":[">= 14.18 && < 15",">= 16"],punycode,"node:punycode":[">= 14.18 && < 15",">= 16"],querystring,"node:querystring":[">= 14.18 && < 15",">= 16"],readline,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc,_stream_duplex,"node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform,"node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap,"node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough,"node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable,"node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable,"node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys,"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common,"node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy,_tls_wrap,"node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events,"node:trace_events":[">= 14.18 && < 15",">= 16"],tty,"node:tty":[">= 14.18 && < 15",">= 16"],url,"node:url":[">= 14.18 && < 15",">= 16"],util:util$1,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8,"node:v8":[">= 14.18 && < 15",">= 16"],vm,"node:vm":[">= 14.18 && < 15",">= 16"],wasi,"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads,"node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib,"node:zlib":[">= 14.18 && < 15",">= 16"]};var core_1,hasRequiredCore;function requireCore(){if(hasRequiredCore)return core_1;hasRequiredCore=1;var e=requireIsCoreModule(),r=require$$1,t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=e(n));return core_1=t,core_1}var isCore,hasRequiredIsCore;function requireIsCore(){if(hasRequiredIsCore)return isCore;hasRequiredIsCore=1;var e=requireIsCoreModule();return isCore=function(t){return e(t)},isCore}var sync,hasRequiredSync;function requireSync(){if(hasRequiredSync)return sync;hasRequiredSync=1;var e=requireIsCoreModule(),r=require$$0$1,t=requirePath(),n=requireHomedir(),a=requireCaller(),o=requireNodeModulesPaths(),i=requireNormalizeOptions(),l=r.realpathSync,c=n(),d=function(){return[t.join(c,".node_modules"),t.join(c,".node_libraries")]},f=function(C){try{var w=r.statSync(C,{throwIfNoEntry:!1})}catch(E){if(E&&(E.code==="ENOENT"||E.code==="ENOTDIR"))return!1;throw E}return!!w&&(w.isFile()||w.isFIFO())},p=function(C){try{var w=r.statSync(C,{throwIfNoEntry:!1})}catch(E){if(E&&(E.code==="ENOENT"||E.code==="ENOTDIR"))return!1;throw E}return!!w&&w.isDirectory()},v=function(C){try{return l(C)}catch(w){if(w.code!=="ENOENT")throw w}return C},m=function(C,w,E){return E&&E.preserveSymlinks===!1?C(w):w},g=function(C,w){var E=C(w);try{var $=JSON.parse(E);return $}catch{}},_=function(C,w,E){for(var $=o(w,E,C),T=0;T<$.length;T++)$[T]=t.join($[T],C);return $};return sync=function(C,w){if(typeof C!="string")throw new TypeError("Path must be a string.");var E=i(C,w),$=E.isFile||f,T=E.readFileSync||r.readFileSync,B=E.isDirectory||p,R=E.realpathSync||v,L=E.readPackageSync||g;if(E.readFileSync&&E.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var te=E.packageIterator,oe=E.extensions||[".js"],Q=E.includeCoreModules!==!1,ce=E.basedir||t.dirname(a()),Y=E.filename||ce;E.paths=E.paths||d();var ne=m(R,t.resolve(ce),E);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(C)){var ge=t.resolve(ne,C);(C==="."||C===".."||C.slice(-1)==="/")&&(ge+="/");var me=F(ge)||Z(ge);if(me)return m(R,me,E)}else{if(Q&&e(C))return C;var de=fe(C,ne);if(de)return m(R,de,E)}var A=new Error("Cannot find module '"+C+"' from '"+Y+"'");throw A.code="MODULE_NOT_FOUND",A;function F(O){var I=j(t.dirname(O));if(I&&I.dir&&I.pkg&&E.pathFilter){var U=t.relative(I.dir,O),ae=E.pathFilter(I.pkg,O,U);ae&&(O=t.resolve(I.dir,ae))}if($(O))return O;for(var ee=0;ee<oe.length;ee++){var se=O+oe[ee];if($(se))return se}}function j(O){if(!(O===""||O==="/")&&!/^\w:[/\\]*$/.test(O)&&!/[/\\]node_modules[/\\]*$/.test(O)){var I=t.join(m(R,O,E),"package.json");if(!$(I))return j(t.dirname(O));var U=L(T,I);return U&&E.packageFilter&&(U=E.packageFilter(U,O)),{pkg:U,dir:O}}}function Z(O){var I=t.join(m(R,O,E),"/package.json");if($(I)){try{var U=L(T,I)}catch{}if(U&&E.packageFilter&&(U=E.packageFilter(U,O)),U&&U.main){if(typeof U.main!="string"){var ae=new TypeError("package “"+U.name+"” `main` must be a string");throw ae.code="INVALID_PACKAGE_MAIN",ae}(U.main==="."||U.main==="./")&&(U.main="index");try{var ee=F(t.resolve(O,U.main));if(ee)return ee;var se=Z(t.resolve(O,U.main));if(se)return se}catch{}}}return F(t.join(O,"/index"))}function fe(O,I){for(var U=function(){return _(O,I,E)},ae=te?te(O,I,U,E):U(),ee=0;ee<ae.length;ee++){var se=ae[ee];if(B(t.dirname(se))){var le=F(se);if(le)return le;var ie=Z(se);if(ie)return ie}}}},sync}var resolve,hasRequiredResolve;function requireResolve(){if(hasRequiredResolve)return resolve;hasRequiredResolve=1;var e=requireAsync();return e.core=requireCore(),e.isCore=requireIsCore(),e.sync=requireSync(),resolve=e,resolve}var dist$2={},Explorer={},ExplorerBase={},loaders={},resolveFrom={exports:{}},hasRequiredResolveFrom;function requireResolveFrom(){if(hasRequiredResolveFrom)return resolveFrom.exports;hasRequiredResolveFrom=1;const e=requirePath(),r=require$$0$1,t=require$$0$1,n=(a,o,i)=>{if(typeof a!="string")throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof a}\``);if(typeof o!="string")throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof o}\``);try{a=t.realpathSync(a)}catch(d){if(d.code==="ENOENT")a=e.resolve(a);else{if(i)return null;throw d}}const l=e.join(a,"noop.js"),c=()=>r._resolveFilename(o,{id:l,filename:l,paths:r._nodeModulePaths(a)});if(i)try{return c()}catch{return null}return c()};return resolveFrom.exports=(a,o)=>n(a,o),resolveFrom.exports.silent=(a,o)=>n(a,o,!0),resolveFrom.exports}var callsites={exports:{}},hasRequiredCallsites;function requireCallsites(){if(hasRequiredCallsites)return callsites.exports;hasRequiredCallsites=1;const e=()=>{const r=Error.prepareStackTrace;Error.prepareStackTrace=(n,a)=>a;const t=new Error().stack.slice(1);return Error.prepareStackTrace=r,t};return callsites.exports=e,callsites.exports.default=e,callsites.exports}var parentModule,hasRequiredParentModule;function requireParentModule(){if(hasRequiredParentModule)return parentModule;hasRequiredParentModule=1;const e=requireCallsites();return parentModule=r=>{const t=e();if(!r)return t[2].getFileName();let n=!1;t.shift();for(const a of t){const o=a.getFileName();if(typeof o=="string"){if(o===r){n=!0;continue}if(o!=="module.js"&&n&&o!==r)return o}}},parentModule}var importFresh,hasRequiredImportFresh;function requireImportFresh(){if(hasRequiredImportFresh)return importFresh;hasRequiredImportFresh=1;const e=requirePath(),r=requireResolveFrom(),t=requireParentModule();return importFresh=n=>{if(typeof n!="string")throw new TypeError("Expected a string");const a=t(__filename),o=a?e.dirname(a):__dirname,i=r(o,n),l=require.cache[i];if(l&&l.parent){let d=l.parent.children.length;for(;d--;)l.parent.children[d].id===i&&l.parent.children.splice(d,1)}delete require.cache[i];const c=require.cache[a];return c===void 0?commonjsRequire(i):c.require(i)},importFresh}var util={},types={},shams$1,hasRequiredShams$1;function requireShams$1(){return hasRequiredShams$1||(hasRequiredShams$1=1,shams$1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;r[t]=a;for(t in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(r,t);if(i.value!==a||i.enumerable!==!0)return!1}return!0}),shams$1}var shams,hasRequiredShams;function requireShams(){if(hasRequiredShams)return shams;hasRequiredShams=1;var e=requireShams$1();return shams=function(){return e()&&!!Symbol.toStringTag},shams}var esErrors,hasRequiredEsErrors;function requireEsErrors(){return hasRequiredEsErrors||(hasRequiredEsErrors=1,esErrors=Error),esErrors}var _eval,hasRequired_eval;function require_eval(){return hasRequired_eval||(hasRequired_eval=1,_eval=EvalError),_eval}var range,hasRequiredRange;function requireRange(){return hasRequiredRange||(hasRequiredRange=1,range=RangeError),range}var ref,hasRequiredRef;function requireRef(){return hasRequiredRef||(hasRequiredRef=1,ref=ReferenceError),ref}var syntax,hasRequiredSyntax;function requireSyntax(){return hasRequiredSyntax||(hasRequiredSyntax=1,syntax=SyntaxError),syntax}var type,hasRequiredType;function requireType(){return hasRequiredType||(hasRequiredType=1,type=TypeError),type}var uri,hasRequiredUri;function requireUri(){return hasRequiredUri||(hasRequiredUri=1,uri=URIError),uri}var hasSymbols,hasRequiredHasSymbols;function requireHasSymbols(){if(hasRequiredHasSymbols)return hasSymbols;hasRequiredHasSymbols=1;var e=typeof Symbol<"u"&&Symbol,r=requireShams$1();return hasSymbols=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:r()},hasSymbols}var hasProto,hasRequiredHasProto;function requireHasProto(){if(hasRequiredHasProto)return hasProto;hasRequiredHasProto=1;var e={__proto__:null,foo:{}},r=Object;return hasProto=function(){return{__proto__:e}.foo===e.foo&&!(e instanceof r)},hasProto}var getIntrinsic,hasRequiredGetIntrinsic;function requireGetIntrinsic(){if(hasRequiredGetIntrinsic)return getIntrinsic;hasRequiredGetIntrinsic=1;var e,r=requireEsErrors(),t=require_eval(),n=requireRange(),a=requireRef(),o=requireSyntax(),i=requireType(),l=requireUri(),c=Function,d=function(de){try{return c('"use strict"; return ('+de+").constructor;")()}catch{}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch{f=null}var p=function(){throw new i},v=f?function(){try{return arguments.callee,p}catch{try{return f(arguments,"callee").get}catch{return p}}}():p,m=requireHasSymbols()(),g=requireHasProto()(),_=Object.getPrototypeOf||(g?function(de){return de.__proto__}:null),S={},C=typeof Uint8Array>"u"||!_?e:_(Uint8Array),w={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":m&&_?_([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":S,"%AsyncGenerator%":S,"%AsyncGeneratorFunction%":S,"%AsyncIteratorPrototype%":S,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":t,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":S,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&_?_(_([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!m||!_?e:_(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":n,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!m||!_?e:_(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&_?_(""[Symbol.iterator]()):e,"%Symbol%":m?Symbol:e,"%SyntaxError%":o,"%ThrowTypeError%":v,"%TypedArray%":C,"%TypeError%":i,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet};if(_)try{null.error}catch(de){var E=_(_(de));w["%Error.prototype%"]=E}var $=function de(A){var F;if(A==="%AsyncFunction%")F=d("async function () {}");else if(A==="%GeneratorFunction%")F=d("function* () {}");else if(A==="%AsyncGeneratorFunction%")F=d("async function* () {}");else if(A==="%AsyncGenerator%"){var j=de("%AsyncGeneratorFunction%");j&&(F=j.prototype)}else if(A==="%AsyncIteratorPrototype%"){var Z=de("%AsyncGenerator%");Z&&_&&(F=_(Z.prototype))}return w[A]=F,F},T={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},B=requireFunctionBind(),R=requireHasown(),L=B.call(Function.call,Array.prototype.concat),te=B.call(Function.apply,Array.prototype.splice),oe=B.call(Function.call,String.prototype.replace),Q=B.call(Function.call,String.prototype.slice),ce=B.call(Function.call,RegExp.prototype.exec),Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ne=/\\(\\)?/g,ge=function(A){var F=Q(A,0,1),j=Q(A,-1);if(F==="%"&&j!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(j==="%"&&F!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var Z=[];return oe(A,Y,function(fe,O,I,U){Z[Z.length]=I?oe(U,ne,"$1"):O||fe}),Z},me=function(A,F){var j=A,Z;if(R(T,j)&&(Z=T[j],j="%"+Z[0]+"%"),R(w,j)){var fe=w[j];if(fe===S&&(fe=$(j)),typeof fe>"u"&&!F)throw new i("intrinsic "+A+" exists, but is not available. Please file an issue!");return{alias:Z,name:j,value:fe}}throw new o("intrinsic "+A+" does not exist!")};return getIntrinsic=function(A,F){if(typeof A!="string"||A.length===0)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof F!="boolean")throw new i('"allowMissing" argument must be a boolean');if(ce(/^%?[^%]*%?$/,A)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var j=ge(A),Z=j.length>0?j[0]:"",fe=me("%"+Z+"%",F),O=fe.name,I=fe.value,U=!1,ae=fe.alias;ae&&(Z=ae[0],te(j,L([0,1],ae)));for(var ee=1,se=!0;ee<j.length;ee+=1){var le=j[ee],ie=Q(le,0,1),ve=Q(le,-1);if((ie==='"'||ie==="'"||ie==="`"||ve==='"'||ve==="'"||ve==="`")&&ie!==ve)throw new o("property names with quotes must have matching quotes");if((le==="constructor"||!se)&&(U=!0),Z+="."+le,O="%"+Z+"%",R(w,O))I=w[O];else if(I!=null){if(!(le in I)){if(!F)throw new i("base intrinsic for "+A+" exists, but the property is not available.");return}if(f&&ee+1>=j.length){var Ve=f(I,le);se=!!Ve,se&&"get"in Ve&&!("originalValue"in Ve.get)?I=Ve.get:I=I[le]}else se=R(I,le),I=I[le];se&&!U&&(w[O]=I)}}return I},getIntrinsic}var callBind={exports:{}},esDefineProperty,hasRequiredEsDefineProperty;function requireEsDefineProperty(){if(hasRequiredEsDefineProperty)return esDefineProperty;hasRequiredEsDefineProperty=1;var e=requireGetIntrinsic(),r=e("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return esDefineProperty=r,esDefineProperty}var gopd,hasRequiredGopd;function requireGopd(){if(hasRequiredGopd)return gopd;hasRequiredGopd=1;var e=requireGetIntrinsic(),r=e("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch{r=null}return gopd=r,gopd}var defineDataProperty,hasRequiredDefineDataProperty;function requireDefineDataProperty(){if(hasRequiredDefineDataProperty)return defineDataProperty;hasRequiredDefineDataProperty=1;var e=requireEsDefineProperty(),r=requireSyntax(),t=requireType(),n=requireGopd();return defineDataProperty=function(o,i,l){if(!o||typeof o!="object"&&typeof o!="function")throw new t("`obj` must be an object or a function`");if(typeof i!="string"&&typeof i!="symbol")throw new t("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new t("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new t("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new t("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new t("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,d=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,v=!!n&&n(o,i);if(e)e(o,i,{configurable:f===null&&v?v.configurable:!f,enumerable:c===null&&v?v.enumerable:!c,value:l,writable:d===null&&v?v.writable:!d});else if(p||!c&&!d&&!f)o[i]=l;else throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},defineDataProperty}var hasPropertyDescriptors_1,hasRequiredHasPropertyDescriptors;function requireHasPropertyDescriptors(){if(hasRequiredHasPropertyDescriptors)return hasPropertyDescriptors_1;hasRequiredHasPropertyDescriptors=1;var e=requireEsDefineProperty(),r=function(){return!!e};return r.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},hasPropertyDescriptors_1=r,hasPropertyDescriptors_1}var setFunctionLength,hasRequiredSetFunctionLength;function requireSetFunctionLength(){if(hasRequiredSetFunctionLength)return setFunctionLength;hasRequiredSetFunctionLength=1;var e=requireGetIntrinsic(),r=requireDefineDataProperty(),t=requireHasPropertyDescriptors()(),n=requireGopd(),a=requireType(),o=e("%Math.floor%");return setFunctionLength=function(l,c){if(typeof l!="function")throw new a("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||o(c)!==c)throw new a("`length` must be a positive 32-bit integer");var d=arguments.length>2&&!!arguments[2],f=!0,p=!0;if("length"in l&&n){var v=n(l,"length");v&&!v.configurable&&(f=!1),v&&!v.writable&&(p=!1)}return(f||p||!d)&&(t?r(l,"length",c,!0,!0):r(l,"length",c)),l},setFunctionLength}var hasRequiredCallBind;function requireCallBind(){return hasRequiredCallBind||(hasRequiredCallBind=1,function(e){var r=requireFunctionBind(),t=requireGetIntrinsic(),n=requireSetFunctionLength(),a=requireType(),o=t("%Function.prototype.apply%"),i=t("%Function.prototype.call%"),l=t("%Reflect.apply%",!0)||r.call(i,o),c=requireEsDefineProperty(),d=t("%Math.max%");e.exports=function(v){if(typeof v!="function")throw new a("a function is required");var m=l(r,i,arguments);return n(m,1+d(0,v.length-(arguments.length-1)),!0)};var f=function(){return l(r,o,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f}(callBind)),callBind.exports}var callBound,hasRequiredCallBound;function requireCallBound(){if(hasRequiredCallBound)return callBound;hasRequiredCallBound=1;var e=requireGetIntrinsic(),r=requireCallBind(),t=r(e("String.prototype.indexOf"));return callBound=function(a,o){var i=e(a,!!o);return typeof i=="function"&&t(a,".prototype.")>-1?r(i):i},callBound}var isArguments,hasRequiredIsArguments;function requireIsArguments(){if(hasRequiredIsArguments)return isArguments;hasRequiredIsArguments=1;var e=requireShams()(),r=requireCallBound(),t=r("Object.prototype.toString"),n=function(l){return e&&l&&typeof l=="object"&&Symbol.toStringTag in l?!1:t(l)==="[object Arguments]"},a=function(l){return n(l)?!0:l!==null&&typeof l=="object"&&typeof l.length=="number"&&l.length>=0&&t(l)!=="[object Array]"&&t(l.callee)==="[object Function]"},o=function(){return n(arguments)}();return n.isLegacyArguments=a,isArguments=o?n:a,isArguments}var isGeneratorFunction,hasRequiredIsGeneratorFunction;function requireIsGeneratorFunction(){if(hasRequiredIsGeneratorFunction)return isGeneratorFunction;hasRequiredIsGeneratorFunction=1;var e=Object.prototype.toString,r=Function.prototype.toString,t=/^\s*(?:function)?\*/,n=requireShams()(),a=Object.getPrototypeOf,o=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},i;return isGeneratorFunction=function(c){if(typeof c!="function")return!1;if(t.test(r.call(c)))return!0;if(!n){var d=e.call(c);return d==="[object GeneratorFunction]"}if(!a)return!1;if(typeof i>"u"){var f=o();i=f?a(f):!1}return a(c)===i},isGeneratorFunction}var isCallable,hasRequiredIsCallable;function requireIsCallable(){if(hasRequiredIsCallable)return isCallable;hasRequiredIsCallable=1;var e=Function.prototype.toString,r=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,t,n;if(typeof r=="function"&&typeof Object.defineProperty=="function")try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},r(function(){throw 42},null,t)}catch(w){w!==n&&(r=null)}else r=null;var a=/^\s*class\b/,o=function(E){try{var $=e.call(E);return a.test($)}catch{return!1}},i=function(E){try{return o(E)?!1:(e.call(E),!0)}catch{return!1}},l=Object.prototype.toString,c="[object Object]",d="[object Function]",f="[object GeneratorFunction]",p="[object HTMLAllCollection]",v="[object HTML document.all class]",m="[object HTMLCollection]",g=typeof Symbol=="function"&&!!Symbol.toStringTag,_=!(0 in[,]),S=function(){return!1};if(typeof document=="object"){var C=document.all;l.call(C)===l.call(document.all)&&(S=function(E){if((_||!E)&&(typeof E>"u"||typeof E=="object"))try{var $=l.call(E);return($===p||$===v||$===m||$===c)&&E("")==null}catch{}return!1})}return isCallable=r?function(E){if(S(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;try{r(E,null,t)}catch($){if($!==n)return!1}return!o(E)&&i(E)}:function(E){if(S(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;if(g)return i(E);if(o(E))return!1;var $=l.call(E);return $!==d&&$!==f&&!/^\[object HTML/.test($)?!1:i(E)},isCallable}var forEach_1,hasRequiredForEach;function requireForEach(){if(hasRequiredForEach)return forEach_1;hasRequiredForEach=1;var e=requireIsCallable(),r=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n=function(c,d,f){for(var p=0,v=c.length;p<v;p++)t.call(c,p)&&(f==null?d(c[p],p,c):d.call(f,c[p],p,c))},a=function(c,d,f){for(var p=0,v=c.length;p<v;p++)f==null?d(c.charAt(p),p,c):d.call(f,c.charAt(p),p,c)},o=function(c,d,f){for(var p in c)t.call(c,p)&&(f==null?d(c[p],p,c):d.call(f,c[p],p,c))},i=function(c,d,f){if(!e(d))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=f),r.call(c)==="[object Array]"?n(c,d,p):typeof c=="string"?a(c,d,p):o(c,d,p)};return forEach_1=i,forEach_1}var possibleTypedArrayNames,hasRequiredPossibleTypedArrayNames;function requirePossibleTypedArrayNames(){return hasRequiredPossibleTypedArrayNames||(hasRequiredPossibleTypedArrayNames=1,possibleTypedArrayNames=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),possibleTypedArrayNames}var availableTypedArrays,hasRequiredAvailableTypedArrays;function requireAvailableTypedArrays(){if(hasRequiredAvailableTypedArrays)return availableTypedArrays;hasRequiredAvailableTypedArrays=1;var e=requirePossibleTypedArrayNames(),r=typeof globalThis>"u"?commonjsGlobal:globalThis;return availableTypedArrays=function(){for(var n=[],a=0;a<e.length;a++)typeof r[e[a]]=="function"&&(n[n.length]=e[a]);return n},availableTypedArrays}var whichTypedArray,hasRequiredWhichTypedArray;function requireWhichTypedArray(){if(hasRequiredWhichTypedArray)return whichTypedArray;hasRequiredWhichTypedArray=1;var e=requireForEach(),r=requireAvailableTypedArrays(),t=requireCallBind(),n=requireCallBound(),a=requireGopd(),o=n("Object.prototype.toString"),i=requireShams()(),l=typeof globalThis>"u"?commonjsGlobal:globalThis,c=r(),d=n("String.prototype.slice"),f=Object.getPrototypeOf,p=n("Array.prototype.indexOf",!0)||function(S,C){for(var w=0;w<S.length;w+=1)if(S[w]===C)return w;return-1},v={__proto__:null};i&&a&&f?e(c,function(_){var S=new l[_];if(Symbol.toStringTag in S){var C=f(S),w=a(C,Symbol.toStringTag);if(!w){var E=f(C);w=a(E,Symbol.toStringTag)}v["$"+_]=t(w.get)}}):e(c,function(_){var S=new l[_],C=S.slice||S.set;C&&(v["$"+_]=t(C))});var m=function(S){var C=!1;return e(v,function(w,E){if(!C)try{"$"+w(S)===E&&(C=d(E,1))}catch{}}),C},g=function(S){var C=!1;return e(v,function(w,E){if(!C)try{w(S),C=d(E,1)}catch{}}),C};return whichTypedArray=function(S){if(!S||typeof S!="object")return!1;if(!i){var C=d(o(S),8,-1);return p(c,C)>-1?C:C!=="Object"?!1:g(S)}return a?m(S):null},whichTypedArray}var isTypedArray,hasRequiredIsTypedArray;function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray;hasRequiredIsTypedArray=1;var e=requireWhichTypedArray();return isTypedArray=function(t){return!!e(t)},isTypedArray}var hasRequiredTypes;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,function(e){var r=requireIsArguments(),t=requireIsGeneratorFunction(),n=requireWhichTypedArray(),a=requireIsTypedArray();function o(z){return z.call.bind(z)}var i=typeof BigInt<"u",l=typeof Symbol<"u",c=o(Object.prototype.toString),d=o(Number.prototype.valueOf),f=o(String.prototype.valueOf),p=o(Boolean.prototype.valueOf);if(i)var v=o(BigInt.prototype.valueOf);if(l)var m=o(Symbol.prototype.valueOf);function g(z,ht){if(typeof z!="object")return!1;try{return ht(z),!0}catch{return!1}}e.isArgumentsObject=r,e.isGeneratorFunction=t,e.isTypedArray=a;function _(z){return typeof Promise<"u"&&z instanceof Promise||z!==null&&typeof z=="object"&&typeof z.then=="function"&&typeof z.catch=="function"}e.isPromise=_;function S(z){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(z):a(z)||O(z)}e.isArrayBufferView=S;function C(z){return n(z)==="Uint8Array"}e.isUint8Array=C;function w(z){return n(z)==="Uint8ClampedArray"}e.isUint8ClampedArray=w;function E(z){return n(z)==="Uint16Array"}e.isUint16Array=E;function $(z){return n(z)==="Uint32Array"}e.isUint32Array=$;function T(z){return n(z)==="Int8Array"}e.isInt8Array=T;function B(z){return n(z)==="Int16Array"}e.isInt16Array=B;function R(z){return n(z)==="Int32Array"}e.isInt32Array=R;function L(z){return n(z)==="Float32Array"}e.isFloat32Array=L;function te(z){return n(z)==="Float64Array"}e.isFloat64Array=te;function oe(z){return n(z)==="BigInt64Array"}e.isBigInt64Array=oe;function Q(z){return n(z)==="BigUint64Array"}e.isBigUint64Array=Q;function ce(z){return c(z)==="[object Map]"}ce.working=typeof Map<"u"&&ce(new Map);function Y(z){return typeof Map>"u"?!1:ce.working?ce(z):z instanceof Map}e.isMap=Y;function ne(z){return c(z)==="[object Set]"}ne.working=typeof Set<"u"&&ne(new Set);function ge(z){return typeof Set>"u"?!1:ne.working?ne(z):z instanceof Set}e.isSet=ge;function me(z){return c(z)==="[object WeakMap]"}me.working=typeof WeakMap<"u"&&me(new WeakMap);function de(z){return typeof WeakMap>"u"?!1:me.working?me(z):z instanceof WeakMap}e.isWeakMap=de;function A(z){return c(z)==="[object WeakSet]"}A.working=typeof WeakSet<"u"&&A(new WeakSet);function F(z){return A(z)}e.isWeakSet=F;function j(z){return c(z)==="[object ArrayBuffer]"}j.working=typeof ArrayBuffer<"u"&&j(new ArrayBuffer);function Z(z){return typeof ArrayBuffer>"u"?!1:j.working?j(z):z instanceof ArrayBuffer}e.isArrayBuffer=Z;function fe(z){return c(z)==="[object DataView]"}fe.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&fe(new DataView(new ArrayBuffer(1),0,1));function O(z){return typeof DataView>"u"?!1:fe.working?fe(z):z instanceof DataView}e.isDataView=O;var I=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function U(z){return c(z)==="[object SharedArrayBuffer]"}function ae(z){return typeof I>"u"?!1:(typeof U.working>"u"&&(U.working=U(new I)),U.working?U(z):z instanceof I)}e.isSharedArrayBuffer=ae;function ee(z){return c(z)==="[object AsyncFunction]"}e.isAsyncFunction=ee;function se(z){return c(z)==="[object Map Iterator]"}e.isMapIterator=se;function le(z){return c(z)==="[object Set Iterator]"}e.isSetIterator=le;function ie(z){return c(z)==="[object Generator]"}e.isGeneratorObject=ie;function ve(z){return c(z)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ve;function Ve(z){return g(z,d)}e.isNumberObject=Ve;function Ae(z){return g(z,f)}e.isStringObject=Ae;function Ee(z){return g(z,p)}e.isBooleanObject=Ee;function Pe(z){return i&&g(z,v)}e.isBigIntObject=Pe;function Qe(z){return l&&g(z,m)}e.isSymbolObject=Qe;function He(z){return Ve(z)||Ae(z)||Ee(z)||Pe(z)||Qe(z)}e.isBoxedPrimitive=He;function et(z){return typeof Uint8Array<"u"&&(Z(z)||ae(z))}e.isAnyArrayBuffer=et,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(z){Object.defineProperty(e,z,{enumerable:!1,value:function(){throw new Error(z+" is not supported in userland")}})})}(types)),types}var isBufferBrowser,hasRequiredIsBufferBrowser;function requireIsBufferBrowser(){return hasRequiredIsBufferBrowser||(hasRequiredIsBufferBrowser=1,isBufferBrowser=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}),isBufferBrowser}var inherits_browser={exports:{}},hasRequiredInherits_browser;function requireInherits_browser(){return hasRequiredInherits_browser||(hasRequiredInherits_browser=1,typeof Object.create=="function"?inherits_browser.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(r,t){if(t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r}}),inherits_browser.exports}var hasRequiredUtil;function requireUtil(){return hasRequiredUtil||(hasRequiredUtil=1,function(e){var r={ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",JETBRAINS_INTELLIJ_COMMAND_END_MARKER:"ZU98Tjo1s9mdtrKJDjkDGSGGEp5tw63GnQvv7ElLZlCMGXy1aOp9jFhC5BjusZy0",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.7",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-9cb82016;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-49607556;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;;D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\node_modules\\.bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSExecutionPolicyPreference:"Bypass",PSModulePath:"D:\\Users\\martin.taylor\\Documents\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TERMINAL_EMULATOR:"JetBrains-JediTerm",TERM_SESSION_ID:"1ff63cfe-b994-4472-afa5-0ddc6b11b75f",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"},t=Object.getOwnPropertyDescriptors||function(I){for(var U=Object.keys(I),ae={},ee=0;ee<U.length;ee++)ae[U[ee]]=Object.getOwnPropertyDescriptor(I,U[ee]);return ae},n=/%[sdj%]/g;e.format=function(O){if(!B(O)){for(var I=[],U=0;U<arguments.length;U++)I.push(l(arguments[U]));return I.join(" ")}for(var U=1,ae=arguments,ee=ae.length,se=String(O).replace(n,function(ie){if(ie==="%%")return"%";if(U>=ee)return ie;switch(ie){case"%s":return String(ae[U++]);case"%d":return Number(ae[U++]);case"%j":try{return JSON.stringify(ae[U++])}catch{return"[Circular]"}default:return ie}}),le=ae[U];U<ee;le=ae[++U])E(le)||!oe(le)?se+=" "+le:se+=" "+l(le);return se},e.deprecate=function(O,I){if(typeof process<"u"&&process.noDeprecation===!0)return O;if(typeof process>"u")return function(){return e.deprecate(O,I).apply(this,arguments)};var U=!1;function ae(){if(!U){if(process.throwDeprecation)throw new Error(I);process.traceDeprecation?console.trace(I):console.error(I),U=!0}return O.apply(this,arguments)}return ae};var a={},o=/^$/;if(r.NODE_DEBUG){var i=r.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(O){if(O=O.toUpperCase(),!a[O])if(o.test(O)){var I=process.pid;a[O]=function(){var U=e.format.apply(e,arguments);console.error("%s %d: %s",O,I,U)}}else a[O]=function(){};return a[O]};function l(O,I){var U={seen:[],stylize:d};return arguments.length>=3&&(U.depth=arguments[2]),arguments.length>=4&&(U.colors=arguments[3]),w(I)?U.showHidden=I:I&&e._extend(U,I),L(U.showHidden)&&(U.showHidden=!1),L(U.depth)&&(U.depth=2),L(U.colors)&&(U.colors=!1),L(U.customInspect)&&(U.customInspect=!0),U.colors&&(U.stylize=c),p(U,O,U.depth)}e.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(O,I){var U=l.styles[I];return U?"\x1B["+l.colors[U][0]+"m"+O+"\x1B["+l.colors[U][1]+"m":O}function d(O,I){return O}function f(O){var I={};return O.forEach(function(U,ae){I[U]=!0}),I}function p(O,I,U){if(O.customInspect&&I&&Y(I.inspect)&&I.inspect!==e.inspect&&!(I.constructor&&I.constructor.prototype===I)){var ae=I.inspect(U,O);return B(ae)||(ae=p(O,ae,U)),ae}var ee=v(O,I);if(ee)return ee;var se=Object.keys(I),le=f(se);if(O.showHidden&&(se=Object.getOwnPropertyNames(I)),ce(I)&&(se.indexOf("message")>=0||se.indexOf("description")>=0))return m(I);if(se.length===0){if(Y(I)){var ie=I.name?": "+I.name:"";return O.stylize("[Function"+ie+"]","special")}if(te(I))return O.stylize(RegExp.prototype.toString.call(I),"regexp");if(Q(I))return O.stylize(Date.prototype.toString.call(I),"date");if(ce(I))return m(I)}var ve="",Ve=!1,Ae=["{","}"];if(C(I)&&(Ve=!0,Ae=["[","]"]),Y(I)){var Ee=I.name?": "+I.name:"";ve=" [Function"+Ee+"]"}if(te(I)&&(ve=" "+RegExp.prototype.toString.call(I)),Q(I)&&(ve=" "+Date.prototype.toUTCString.call(I)),ce(I)&&(ve=" "+m(I)),se.length===0&&(!Ve||I.length==0))return Ae[0]+ve+Ae[1];if(U<0)return te(I)?O.stylize(RegExp.prototype.toString.call(I),"regexp"):O.stylize("[Object]","special");O.seen.push(I);var Pe;return Ve?Pe=g(O,I,U,le,se):Pe=se.map(function(Qe){return _(O,I,U,le,Qe,Ve)}),O.seen.pop(),S(Pe,ve,Ae)}function v(O,I){if(L(I))return O.stylize("undefined","undefined");if(B(I)){var U="'"+JSON.stringify(I).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return O.stylize(U,"string")}if(T(I))return O.stylize(""+I,"number");if(w(I))return O.stylize(""+I,"boolean");if(E(I))return O.stylize("null","null")}function m(O){return"["+Error.prototype.toString.call(O)+"]"}function g(O,I,U,ae,ee){for(var se=[],le=0,ie=I.length;le<ie;++le)F(I,String(le))?se.push(_(O,I,U,ae,String(le),!0)):se.push("");return ee.forEach(function(ve){ve.match(/^\d+$/)||se.push(_(O,I,U,ae,ve,!0))}),se}function _(O,I,U,ae,ee,se){var le,ie,ve;if(ve=Object.getOwnPropertyDescriptor(I,ee)||{value:I[ee]},ve.get?ve.set?ie=O.stylize("[Getter/Setter]","special"):ie=O.stylize("[Getter]","special"):ve.set&&(ie=O.stylize("[Setter]","special")),F(ae,ee)||(le="["+ee+"]"),ie||(O.seen.indexOf(ve.value)<0?(E(U)?ie=p(O,ve.value,null):ie=p(O,ve.value,U-1),ie.indexOf(`
194
+ `)+" "+W[1]:W[0]+F+" "+A.join(", ")+" "+W[1]}function _(A){return Array.isArray(A)}e.isArray=_;function S(A){return typeof A=="boolean"}e.isBoolean=S;function C(A){return A===null}e.isNull=C;function w(A){return A==null}e.isNullOrUndefined=w;function E(A){return typeof A=="number"}e.isNumber=E;function $(A){return typeof A=="string"}e.isString=$;function T(A){return typeof A=="symbol"}e.isSymbol=T;function B(A){return A===void 0}e.isUndefined=B;function R(A){return L(A)&&J(A)==="[object RegExp]"}e.isRegExp=R;function L(A){return typeof A=="object"&&A!==null}e.isObject=L;function te(A){return L(A)&&J(A)==="[object Date]"}e.isDate=te;function oe(A){return L(A)&&(J(A)==="[object Error]"||A instanceof Error)}e.isError=oe;function Q(A){return typeof A=="function"}e.isFunction=Q;function ce(A){return A===null||typeof A=="boolean"||typeof A=="number"||typeof A=="string"||typeof A=="symbol"||typeof A>"u"}e.isPrimitive=ce,e.isBuffer=requireIsBufferBrowser$1();function J(A){return Object.prototype.toString.call(A)}function ne(A){return A<10?"0"+A.toString(10):A.toString(10)}var ge=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function me(){var A=new Date,F=[ne(A.getHours()),ne(A.getMinutes()),ne(A.getSeconds())].join(":");return[A.getDate(),ge[A.getMonth()],F].join(" ")}e.log=function(){console.log("%s - %s",me(),e.format.apply(e,arguments))},e.inherits=requireInherits_browser$1(),e._extend=function(A,F){if(!F||!L(F))return A;for(var W=Object.keys(F),X=W.length;X--;)A[W[X]]=F[W[X]];return A};function de(A,F){return Object.prototype.hasOwnProperty.call(A,F)}}(util$3)),util$3}var hasRequiredPath;function requirePath(){if(hasRequiredPath)return path$2.exports;hasRequiredPath=1;var e={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.8",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-59948a58;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-de2eadd7;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"},r=requireUtil$1();function t(m,g){for(var _=[],S=0;S<m.length;S++){var C=m[S];!C||C==="."||(C===".."?_.length&&_[_.length-1]!==".."?_.pop():g&&_.push(".."):_.push(C))}return _}function n(m){for(var g=m.length-1,_=0;_<=g&&!m[_];_++);for(var S=g;S>=0&&!m[S];S--);return _===0&&S===g?m:_>S?[]:m.slice(_,S+1)}var a=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,o=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,i={};function l(m){var g=a.exec(m),_=(g[1]||"")+(g[2]||""),S=g[3]||"",C=o.exec(S),w=C[1],E=C[2],$=C[3];return[_,w,E,$]}function c(m){var g=a.exec(m),_=g[1]||"",S=!!_&&_[1]!==":";return{device:_,isUnc:S,isAbsolute:S||!!g[2],tail:g[3]}}function d(m){return"\\\\"+m.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}i.resolve=function(){for(var m="",g="",_=!1,S=arguments.length-1;S>=-1;S--){var C;if(S>=0?C=arguments[S]:m?(C=e["="+m],(!C||C.substr(0,3).toLowerCase()!==m.toLowerCase()+"\\")&&(C=m+"\\")):C=process.cwd(),r.isString(C)){if(!C)continue}else throw new TypeError("Arguments to path.resolve must be strings");var w=c(C),E=w.device,$=w.isUnc,T=w.isAbsolute,B=w.tail;if(!(E&&m&&E.toLowerCase()!==m.toLowerCase())&&(m||(m=E),_||(g=B+"\\"+g,_=T),m&&_))break}return $&&(m=d(m)),g=t(g.split(/[\\\/]+/),!_).join("\\"),m+(_?"\\":"")+g||"."},i.normalize=function(m){var g=c(m),_=g.device,S=g.isUnc,C=g.isAbsolute,w=g.tail,E=/[\\\/]$/.test(w);return w=t(w.split(/[\\\/]+/),!C).join("\\"),!w&&!C&&(w="."),w&&E&&(w+="\\"),S&&(_=d(_)),_+(C?"\\":"")+w},i.isAbsolute=function(m){return c(m).isAbsolute},i.join=function(){for(var m=[],g=0;g<arguments.length;g++){var _=arguments[g];if(!r.isString(_))throw new TypeError("Arguments to path.join must be strings");_&&m.push(_)}var S=m.join("\\");return/^[\\\/]{2}[^\\\/]/.test(m[0])||(S=S.replace(/^[\\\/]{2,}/,"\\")),i.normalize(S)},i.relative=function(m,g){m=i.resolve(m),g=i.resolve(g);for(var _=m.toLowerCase(),S=g.toLowerCase(),C=n(g.split("\\")),w=n(_.split("\\")),E=n(S.split("\\")),$=Math.min(w.length,E.length),T=$,B=0;B<$;B++)if(w[B]!==E[B]){T=B;break}if(T==0)return g;for(var R=[],B=T;B<w.length;B++)R.push("..");return R=R.concat(C.slice(T)),R.join("\\")},i._makeLong=function(m){if(!r.isString(m))return m;if(!m)return"";var g=i.resolve(m);return/^[a-zA-Z]\:\\/.test(g)?"\\\\?\\"+g:/^\\\\[^?.]/.test(g)?"\\\\?\\UNC\\"+g.substring(2):m},i.dirname=function(m){var g=l(m),_=g[0],S=g[1];return!_&&!S?".":(S&&(S=S.substr(0,S.length-1)),_+S)},i.basename=function(m,g){var _=l(m)[2];return g&&_.substr(-1*g.length)===g&&(_=_.substr(0,_.length-g.length)),_},i.extname=function(m){return l(m)[3]},i.format=function(m){if(!r.isObject(m))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof m);var g=m.root||"";if(!r.isString(g))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof m.root);var _=m.dir,S=m.base||"";return _?_[_.length-1]===i.sep?_+S:_+i.sep+S:S},i.parse=function(m){if(!r.isString(m))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof m);var g=l(m);if(!g||g.length!==4)throw new TypeError("Invalid path '"+m+"'");return{root:g[0],dir:g[0]+g[1].slice(0,-1),base:g[2],ext:g[3],name:g[2].slice(0,g[2].length-g[3].length)}},i.sep="\\",i.delimiter=";";var f=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,p={};function v(m){return f.exec(m).slice(1)}return p.resolve=function(){for(var m="",g=!1,_=arguments.length-1;_>=-1&&!g;_--){var S=_>=0?arguments[_]:process.cwd();if(r.isString(S)){if(!S)continue}else throw new TypeError("Arguments to path.resolve must be strings");m=S+"/"+m,g=S[0]==="/"}return m=t(m.split("/"),!g).join("/"),(g?"/":"")+m||"."},p.normalize=function(m){var g=p.isAbsolute(m),_=m&&m[m.length-1]==="/";return m=t(m.split("/"),!g).join("/"),!m&&!g&&(m="."),m&&_&&(m+="/"),(g?"/":"")+m},p.isAbsolute=function(m){return m.charAt(0)==="/"},p.join=function(){for(var m="",g=0;g<arguments.length;g++){var _=arguments[g];if(!r.isString(_))throw new TypeError("Arguments to path.join must be strings");_&&(m?m+="/"+_:m+=_)}return p.normalize(m)},p.relative=function(m,g){m=p.resolve(m).substr(1),g=p.resolve(g).substr(1);for(var _=n(m.split("/")),S=n(g.split("/")),C=Math.min(_.length,S.length),w=C,E=0;E<C;E++)if(_[E]!==S[E]){w=E;break}for(var $=[],E=w;E<_.length;E++)$.push("..");return $=$.concat(S.slice(w)),$.join("/")},p._makeLong=function(m){return m},p.dirname=function(m){var g=v(m),_=g[0],S=g[1];return!_&&!S?".":(S&&(S=S.substr(0,S.length-1)),_+S)},p.basename=function(m,g){var _=v(m)[2];return g&&_.substr(-1*g.length)===g&&(_=_.substr(0,_.length-g.length)),_},p.extname=function(m){return v(m)[3]},p.format=function(m){if(!r.isObject(m))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof m);var g=m.root||"";if(!r.isString(g))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof m.root);var _=m.dir?m.dir+p.sep:"",S=m.base||"";return _+S},p.parse=function(m){if(!r.isString(m))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof m);var g=v(m);if(!g||g.length!==4)throw new TypeError("Invalid path '"+m+"'");return g[1]=g[1]||"",g[2]=g[2]||"",g[3]=g[3]||"",{root:g[0],dir:g[0]+g[1].slice(0,-1),base:g[2],ext:g[3],name:g[2].slice(0,g[2].length-g[3].length)}},p.sep="/",p.delimiter=":",path$2.exports=i,path$2.exports.posix=p,path$2.exports.win32=i,path$2.exports}const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0$1=getAugmentedNamespace(__viteBrowserExternal$1);var homedir,hasRequiredHomedir;function requireHomedir(){if(hasRequiredHomedir)return homedir;hasRequiredHomedir=1;var e={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.8",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-59948a58;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-de2eadd7;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"},r=require$$0$1;return homedir=r.homedir||function(){return e.USERPROFILE},homedir}var caller,hasRequiredCaller;function requireCaller(){return hasRequiredCaller||(hasRequiredCaller=1,caller=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(t,n){return n};var r=new Error().stack;return Error.prepareStackTrace=e,r[2].getFileName()}),caller}var pathParse={exports:{}},hasRequiredPathParse;function requirePathParse(){if(hasRequiredPathParse)return pathParse.exports;hasRequiredPathParse=1;var e=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,r={};function t(i){return e.exec(i).slice(1)}r.parse=function(i){if(typeof i!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof i);var l=t(i);if(!l||l.length!==5)throw new TypeError("Invalid path '"+i+"'");return{root:l[1],dir:l[0]===l[1]?l[0]:l[0].slice(0,-1),base:l[2],ext:l[4],name:l[3]}};var n=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,a={};function o(i){return n.exec(i).slice(1)}return a.parse=function(i){if(typeof i!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof i);var l=o(i);if(!l||l.length!==5)throw new TypeError("Invalid path '"+i+"'");return{root:l[1],dir:l[0].slice(0,-1),base:l[2],ext:l[4],name:l[3]}},pathParse.exports=r.parse,pathParse.exports.posix=a.parse,pathParse.exports.win32=r.parse,pathParse.exports}var nodeModulesPaths,hasRequiredNodeModulesPaths;function requireNodeModulesPaths(){if(hasRequiredNodeModulesPaths)return nodeModulesPaths;hasRequiredNodeModulesPaths=1;var e=requirePath(),r=e.parse||requirePathParse(),t=function(a,o){var i="/";/^([A-Za-z]:)/.test(a)?i="":/^\\\\/.test(a)&&(i="\\\\");for(var l=[a],c=r(a);c.dir!==l[l.length-1];)l.push(c.dir),c=r(c.dir);return l.reduce(function(d,f){return d.concat(o.map(function(p){return e.resolve(i,f,p)}))},[])};return nodeModulesPaths=function(a,o,i){var l=o&&o.moduleDirectory?[].concat(o.moduleDirectory):["node_modules"];if(o&&typeof o.paths=="function")return o.paths(i,a,function(){return t(a,l)},o);var c=t(a,l);return o&&o.paths?c.concat(o.paths):c},nodeModulesPaths}var normalizeOptions,hasRequiredNormalizeOptions;function requireNormalizeOptions(){if(hasRequiredNormalizeOptions)return normalizeOptions;hasRequiredNormalizeOptions=1;var e={node:"22.11.0",acorn:"8.12.1",ada:"2.9.0",amaro:"0.1.8",ares:"1.33.1",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"9.2.1",modules:"127",napi:"9",nbytes:"0.1.1",ncrypto:"0.0.1",nghttp2:"1.63.0",nghttp3:"0.7.0",ngtcp2:"1.3.0",openssl:"3.0.15+quic",simdjson:"3.10.0",simdutf:"5.5.0",sqlite:"3.46.1",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.48.0",uvwasi:"0.0.21",v8:"12.4.254.21-node.21",zlib:"1.3.0.1-motley-71660e1"};const r=requirePath();return normalizeOptions=function(t,n){if(n=n||{},n.forceNodeResolution||!e.pnp)return n;const{findPnpApi:a}=require$$0$1,o=(p,v)=>{const m=p.match(/^((?:@[^/]+\/)?[^/]+)(\/.*)?/);if(!m)throw new Error(`Assertion failed: Expected the "resolve" package to call the "paths" callback with package names only (got "${p}")`);v.charAt(v.length-1)!=="/"&&(v=r.join(v,"/"));const g=a(v);if(g===null)return;let _;try{_=g.resolveToUnqualified(`${m[1]}/package.json`,v,{considerBuiltins:!1})}catch{return null}if(_===null)throw new Error(`Assertion failed: The resolution thinks that "${m[1]}" is a Node builtin`);const S=r.dirname(_),C=typeof m[2]<"u"?r.join(S,m[2]):S;return{packagePath:S,unqualifiedPath:C}},i=(p,v)=>{for(let m=0;m<v.length;m++){const g=o(p,v[m]);if(g||m===v.length-1)return g}return null},l=Array.isArray(n.paths)?n.paths:[],c=(p,v,m,g)=>{const _=[v].concat(l),S=i(p,_);return S==null?m():[S.unqualifiedPath]},d=(p,v,m,g)=>{const _=[v].concat(l),S=i(p,_);if(S==null)return m().concat(l);let C=r.dirname(S.packagePath);return p.match(/^@[^/]+\//)&&(C=r.dirname(C)),[C]};let f=!1;return n.__skipPackageIterator||(n.packageIterator=function(p,v,m,g){f=!0;try{return c(p,v,m,g)}finally{f=!1}}),n.paths=function(p,v,m,g){return f?m().concat(l):d(p,v,m)},n},normalizeOptions}var implementation,hasRequiredImplementation;function requireImplementation(){if(hasRequiredImplementation)return implementation;hasRequiredImplementation=1;var e="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,t=Math.max,n="[object Function]",a=function(c,d){for(var f=[],p=0;p<c.length;p+=1)f[p]=c[p];for(var v=0;v<d.length;v+=1)f[v+c.length]=d[v];return f},o=function(c,d){for(var f=[],p=d,v=0;p<c.length;p+=1,v+=1)f[v]=c[p];return f},i=function(l,c){for(var d="",f=0;f<l.length;f+=1)d+=l[f],f+1<l.length&&(d+=c);return d};return implementation=function(c){var d=this;if(typeof d!="function"||r.apply(d)!==n)throw new TypeError(e+d);for(var f=o(arguments,1),p,v=function(){if(this instanceof p){var C=d.apply(this,a(f,arguments));return Object(C)===C?C:this}return d.apply(c,a(f,arguments))},m=t(0,d.length-f.length),g=[],_=0;_<m;_++)g[_]="$"+_;if(p=Function("binder","return function ("+i(g,",")+"){ return binder.apply(this,arguments); }")(v),d.prototype){var S=function(){};S.prototype=d.prototype,p.prototype=new S,S.prototype=null}return p},implementation}var functionBind,hasRequiredFunctionBind;function requireFunctionBind(){if(hasRequiredFunctionBind)return functionBind;hasRequiredFunctionBind=1;var e=requireImplementation();return functionBind=Function.prototype.bind||e,functionBind}var hasown,hasRequiredHasown;function requireHasown(){if(hasRequiredHasown)return hasown;hasRequiredHasown=1;var e=Function.prototype.call,r=Object.prototype.hasOwnProperty,t=requireFunctionBind();return hasown=t.call(e,r),hasown}const assert$1=!0,async_hooks$1=">= 8",buffer_ieee754$1=">= 0.5 && < 0.9.7",buffer$1=!0,child_process$1=!0,cluster$1=">= 0.5",console$2=!0,constants$1=!0,crypto$1=!0,_debug_agent$1=">= 1 && < 8",_debugger$1="< 8",dgram$1=!0,diagnostics_channel$1=[">= 14.17 && < 15",">= 15.1"],dns$1=!0,domain$1=">= 0.7.12",events$1=!0,freelist$1="< 6",fs$1=!0,_http_agent$1=">= 0.11.1",_http_client$1=">= 0.11.1",_http_common$1=">= 0.11.1",_http_incoming$1=">= 0.11.1",_http_outgoing$1=">= 0.11.1",_http_server$1=">= 0.11.1",http$1=!0,http2$1=">= 8.8",https$1=!0,inspector$1=">= 8",_linklist$1="< 8",module$2=!0,net$1=!0,os$1=!0,path$1=!0,perf_hooks$1=">= 8.5",process$2=">= 1",punycode$1=">= 0.5",querystring$1=!0,readline$1=!0,repl$1=!0,smalloc$1=">= 0.11.5 && < 3",_stream_duplex$1=">= 0.9.4",_stream_transform$1=">= 0.9.4",_stream_wrap$1=">= 1.4.1",_stream_passthrough$1=">= 0.9.4",_stream_readable$1=">= 0.9.4",_stream_writable$1=">= 0.9.4",stream$1=!0,string_decoder$1=!0,sys$1=[">= 0.4 && < 0.7",">= 0.8"],timers$1=!0,_tls_common$1=">= 0.11.13",_tls_legacy$1=">= 0.11.3 && < 10",_tls_wrap$1=">= 0.11.3",tls$1=!0,trace_events$1=">= 10",tty$1=!0,url$1=!0,util$2=!0,v8$1=">= 1",vm$1=!0,wasi$1=[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],worker_threads$1=">= 11.7",zlib$1=">= 0.5",require$$1$1={assert:assert$1,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:async_hooks$1,"node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:buffer_ieee754$1,buffer:buffer$1,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:child_process$1,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:cluster$1,"node:cluster":[">= 14.18 && < 15",">= 16"],console:console$2,"node:console":[">= 14.18 && < 15",">= 16"],constants:constants$1,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:crypto$1,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:_debug_agent$1,_debugger:_debugger$1,dgram:dgram$1,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:diagnostics_channel$1,"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:dns$1,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:domain$1,"node:domain":[">= 14.18 && < 15",">= 16"],events:events$1,"node:events":[">= 14.18 && < 15",">= 16"],freelist:freelist$1,fs:fs$1,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:_http_agent$1,"node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:_http_client$1,"node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:_http_common$1,"node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:_http_incoming$1,"node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:_http_outgoing$1,"node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:_http_server$1,"node:_http_server":[">= 14.18 && < 15",">= 16"],http:http$1,"node:http":[">= 14.18 && < 15",">= 16"],http2:http2$1,"node:http2":[">= 14.18 && < 15",">= 16"],https:https$1,"node:https":[">= 14.18 && < 15",">= 16"],inspector:inspector$1,"node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:_linklist$1,module:module$2,"node:module":[">= 14.18 && < 15",">= 16"],net:net$1,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:os$1,"node:os":[">= 14.18 && < 15",">= 16"],path:path$1,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:perf_hooks$1,"node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:process$2,"node:process":[">= 14.18 && < 15",">= 16"],punycode:punycode$1,"node:punycode":[">= 14.18 && < 15",">= 16"],querystring:querystring$1,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:readline$1,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:repl$1,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:smalloc$1,_stream_duplex:_stream_duplex$1,"node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:_stream_transform$1,"node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:_stream_wrap$1,"node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:_stream_passthrough$1,"node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:_stream_readable$1,"node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:_stream_writable$1,"node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:stream$1,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:string_decoder$1,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:sys$1,"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:timers$1,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:_tls_common$1,"node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:_tls_legacy$1,_tls_wrap:_tls_wrap$1,"node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:tls$1,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:trace_events$1,"node:trace_events":[">= 14.18 && < 15",">= 16"],tty:tty$1,"node:tty":[">= 14.18 && < 15",">= 16"],url:url$1,"node:url":[">= 14.18 && < 15",">= 16"],util:util$2,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:v8$1,"node:v8":[">= 14.18 && < 15",">= 16"],vm:vm$1,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:wasi$1,"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:worker_threads$1,"node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:zlib$1,"node:zlib":[">= 14.18 && < 15",">= 16"]};var isCoreModule,hasRequiredIsCoreModule;function requireIsCoreModule(){if(hasRequiredIsCoreModule)return isCoreModule;hasRequiredIsCoreModule=1;var e={node:"22.11.0",acorn:"8.12.1",ada:"2.9.0",amaro:"0.1.8",ares:"1.33.1",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"9.2.1",modules:"127",napi:"9",nbytes:"0.1.1",ncrypto:"0.0.1",nghttp2:"1.63.0",nghttp3:"0.7.0",ngtcp2:"1.3.0",openssl:"3.0.15+quic",simdjson:"3.10.0",simdutf:"5.5.0",sqlite:"3.46.1",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.48.0",uvwasi:"0.0.21",v8:"12.4.254.21-node.21",zlib:"1.3.0.1-motley-71660e1"},r=requireHasown();function t(i,l){for(var c=i.split("."),d=l.split(" "),f=d.length>1?d[0]:"=",p=(d.length>1?d[1]:d[0]).split("."),v=0;v<3;++v){var m=parseInt(c[v]||0,10),g=parseInt(p[v]||0,10);if(m!==g)return f==="<"?m<g:f===">="?m>=g:!1}return f===">="}function n(i,l){var c=l.split(/ ?&& ?/);if(c.length===0)return!1;for(var d=0;d<c.length;++d)if(!t(i,c[d]))return!1;return!0}function a(i,l){if(typeof l=="boolean")return l;var c=typeof i>"u"?e&&e.node:i;if(typeof c!="string")throw new TypeError(typeof i>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(l&&typeof l=="object"){for(var d=0;d<l.length;++d)if(n(c,l[d]))return!0;return!1}return n(c,l)}var o=require$$1$1;return isCoreModule=function(l,c){return r(o,l)&&a(c,o[l])},isCoreModule}var async,hasRequiredAsync;function requireAsync(){if(hasRequiredAsync)return async;hasRequiredAsync=1;var e=require$$0$1,r=requireHomedir(),t=requirePath(),n=requireCaller(),a=requireNodeModulesPaths(),o=requireNormalizeOptions(),i=requireIsCoreModule(),l=e.realpath,c=r(),d=function(){return[t.join(c,".node_modules"),t.join(c,".node_libraries")]},f=function(C,w){e.stat(C,function(E,$){return E?E.code==="ENOENT"||E.code==="ENOTDIR"?w(null,!1):w(E):w(null,$.isFile()||$.isFIFO())})},p=function(C,w){e.stat(C,function(E,$){return E?E.code==="ENOENT"||E.code==="ENOTDIR"?w(null,!1):w(E):w(null,$.isDirectory())})},v=function(C,w){l(C,function(E,$){E&&E.code!=="ENOENT"?w(E):w(null,E?C:$)})},m=function(C,w,E,$){E&&E.preserveSymlinks===!1?C(w,$):$(null,w)},g=function(C,w,E){C(w,function($,T){if($)E($);else try{var B=JSON.parse(T);E(null,B)}catch{E(null)}})},_=function(C,w,E){for(var $=a(w,E,C),T=0;T<$.length;T++)$[T]=t.join($[T],C);return $};return async=function(C,w,E){var $=E,T=w;if(typeof w=="function"&&($=T,T={}),typeof C!="string"){var B=new TypeError("Path must be a string.");return process.nextTick(function(){$(B)})}T=o(C,T);var R=T.isFile||f,L=T.isDirectory||p,te=T.readFile||e.readFile,oe=T.realpath||v,Q=T.readPackage||g;if(T.readFile&&T.readPackage){var ce=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){$(ce)})}var J=T.packageIterator,ne=T.extensions||[".js"],ge=T.includeCoreModules!==!1,me=T.basedir||t.dirname(n()),de=T.filename||me;T.paths=T.paths||d();var A=t.resolve(me);m(oe,A,T,function(ee,se){ee?$(ee):W(se)});var F;function W(ee){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(C))F=t.resolve(ee,C),(C==="."||C===".."||C.slice(-1)==="/")&&(F+="/"),/\/$/.test(C)&&F===ee?I(F,T.package,X):fe(F,T.package,X);else{if(ge&&i(C))return $(null,C);ae(C,ee,function(se,le,ie){if(se)$(se);else{if(le)return m(oe,le,T,function(Ve,Ae){Ve?$(Ve):$(null,Ae,ie)});var ve=new Error("Cannot find module '"+C+"' from '"+de+"'");ve.code="MODULE_NOT_FOUND",$(ve)}})}}function X(ee,se,le){ee?$(ee):se?$(null,se,le):I(F,function(ie,ve,Ve){if(ie)$(ie);else if(ve)m(oe,ve,T,function(xe,Pe){xe?$(xe):$(null,Pe,Ve)});else{var Ae=new Error("Cannot find module '"+C+"' from '"+de+"'");Ae.code="MODULE_NOT_FOUND",$(Ae)}})}function fe(ee,se,le){var ie=se,ve=le;typeof ie=="function"&&(ve=ie,ie=void 0);var Ve=[""].concat(ne);Ae(Ve,ee,ie);function Ae(xe,Pe,Qe){if(xe.length===0)return ve(null,void 0,Qe);var He=Pe+xe[0],et=Qe;et?z(null,et):O(t.dirname(He),z);function z(Ue,mt,at){if(et=mt,Ue)return ve(Ue);if(at&&et&&T.pathFilter){var ur=t.relative(at,He),Nt=ur.slice(0,ur.length-xe[0].length),Zt=T.pathFilter(et,Pe,Nt);if(Zt)return Ae([""].concat(ne.slice()),t.resolve(at,Zt),et)}R(He,ht)}function ht(Ue,mt){if(Ue)return ve(Ue);if(mt)return ve(null,He,et);Ae(xe.slice(1),Pe,et)}}}function O(ee,se){if(ee===""||ee==="/"||/^\w:[/\\]*$/.test(ee)||/[/\\]node_modules[/\\]*$/.test(ee))return se(null);m(oe,ee,T,function(le,ie){if(le)return O(t.dirname(ee),se);var ve=t.join(ie,"package.json");R(ve,function(Ve,Ae){if(!Ae)return O(t.dirname(ee),se);Q(te,ve,function(xe,Pe){xe&&se(xe);var Qe=Pe;Qe&&T.packageFilter&&(Qe=T.packageFilter(Qe,ve)),se(null,Qe,ee)})})})}function I(ee,se,le){var ie=le,ve=se;typeof ve=="function"&&(ie=ve,ve=T.package),m(oe,ee,T,function(Ve,Ae){if(Ve)return ie(Ve);var xe=t.join(Ae,"package.json");R(xe,function(Pe,Qe){if(Pe)return ie(Pe);if(!Qe)return fe(t.join(ee,"index"),ve,ie);Q(te,xe,function(He,et){if(He)return ie(He);var z=et;if(z&&T.packageFilter&&(z=T.packageFilter(z,xe)),z&&z.main){if(typeof z.main!="string"){var ht=new TypeError("package “"+z.name+"” `main` must be a string");return ht.code="INVALID_PACKAGE_MAIN",ie(ht)}(z.main==="."||z.main==="./")&&(z.main="index"),fe(t.resolve(ee,z.main),z,function(Ue,mt,at){if(Ue)return ie(Ue);if(mt)return ie(null,mt,at);if(!at)return fe(t.join(ee,"index"),at,ie);var ur=t.resolve(ee,at.main);I(ur,at,function(Nt,Zt,Wt){if(Nt)return ie(Nt);if(Zt)return ie(null,Zt,Wt);fe(t.join(ee,"index"),Wt,ie)})});return}fe(t.join(ee,"/index"),z,ie)})})})}function U(ee,se){if(se.length===0)return ee(null,void 0);var le=se[0];L(t.dirname(le),ie);function ie(Ae,xe){if(Ae)return ee(Ae);if(!xe)return U(ee,se.slice(1));fe(le,T.package,ve)}function ve(Ae,xe,Pe){if(Ae)return ee(Ae);if(xe)return ee(null,xe,Pe);I(le,T.package,Ve)}function Ve(Ae,xe,Pe){if(Ae)return ee(Ae);if(xe)return ee(null,xe,Pe);U(ee,se.slice(1))}}function ae(ee,se,le){var ie=function(){return _(ee,se,T)};U(le,J?J(ee,se,ie,T):ie())}},async}const assert=!0,async_hooks=">= 8",buffer_ieee754=">= 0.5 && < 0.9.7",buffer=!0,child_process=!0,cluster=">= 0.5",console$1=!0,constants=!0,crypto=!0,_debug_agent=">= 1 && < 8",_debugger="< 8",dgram=!0,diagnostics_channel=[">= 14.17 && < 15",">= 15.1"],dns=!0,domain=">= 0.7.12",events=!0,freelist="< 6",fs=!0,_http_agent=">= 0.11.1",_http_client=">= 0.11.1",_http_common=">= 0.11.1",_http_incoming=">= 0.11.1",_http_outgoing=">= 0.11.1",_http_server=">= 0.11.1",http=!0,http2=">= 8.8",https=!0,inspector=">= 8",_linklist="< 8",module$1=!0,net=!0,os=!0,path=!0,perf_hooks=">= 8.5",process$1=">= 1",punycode=">= 0.5",querystring=!0,readline=!0,repl=!0,smalloc=">= 0.11.5 && < 3",_stream_duplex=">= 0.9.4",_stream_transform=">= 0.9.4",_stream_wrap=">= 1.4.1",_stream_passthrough=">= 0.9.4",_stream_readable=">= 0.9.4",_stream_writable=">= 0.9.4",stream=!0,string_decoder=!0,sys=[">= 0.4 && < 0.7",">= 0.8"],timers=!0,_tls_common=">= 0.11.13",_tls_legacy=">= 0.11.3 && < 10",_tls_wrap=">= 0.11.3",tls=!0,trace_events=">= 10",tty=!0,url=!0,util$1=!0,v8=">= 1",vm=!0,wasi=[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],worker_threads=">= 11.7",zlib=">= 0.5",require$$1={assert,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks,"node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754,buffer,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster,"node:cluster":[">= 14.18 && < 15",">= 16"],console:console$1,"node:console":[">= 14.18 && < 15",">= 16"],constants,"node:constants":[">= 14.18 && < 15",">= 16"],crypto,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent,_debugger,dgram,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel,"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain,"node:domain":[">= 14.18 && < 15",">= 16"],events,"node:events":[">= 14.18 && < 15",">= 16"],freelist,fs,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent,"node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client,"node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common,"node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming,"node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing,"node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server,"node:_http_server":[">= 14.18 && < 15",">= 16"],http,"node:http":[">= 14.18 && < 15",">= 16"],http2,"node:http2":[">= 14.18 && < 15",">= 16"],https,"node:https":[">= 14.18 && < 15",">= 16"],inspector,"node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist,module:module$1,"node:module":[">= 14.18 && < 15",">= 16"],net,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os,"node:os":[">= 14.18 && < 15",">= 16"],path,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks,"node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:process$1,"node:process":[">= 14.18 && < 15",">= 16"],punycode,"node:punycode":[">= 14.18 && < 15",">= 16"],querystring,"node:querystring":[">= 14.18 && < 15",">= 16"],readline,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc,_stream_duplex,"node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform,"node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap,"node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough,"node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable,"node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable,"node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys,"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common,"node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy,_tls_wrap,"node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events,"node:trace_events":[">= 14.18 && < 15",">= 16"],tty,"node:tty":[">= 14.18 && < 15",">= 16"],url,"node:url":[">= 14.18 && < 15",">= 16"],util:util$1,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8,"node:v8":[">= 14.18 && < 15",">= 16"],vm,"node:vm":[">= 14.18 && < 15",">= 16"],wasi,"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads,"node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib,"node:zlib":[">= 14.18 && < 15",">= 16"]};var core_1,hasRequiredCore;function requireCore(){if(hasRequiredCore)return core_1;hasRequiredCore=1;var e=requireIsCoreModule(),r=require$$1,t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=e(n));return core_1=t,core_1}var isCore,hasRequiredIsCore;function requireIsCore(){if(hasRequiredIsCore)return isCore;hasRequiredIsCore=1;var e=requireIsCoreModule();return isCore=function(t){return e(t)},isCore}var sync,hasRequiredSync;function requireSync(){if(hasRequiredSync)return sync;hasRequiredSync=1;var e=requireIsCoreModule(),r=require$$0$1,t=requirePath(),n=requireHomedir(),a=requireCaller(),o=requireNodeModulesPaths(),i=requireNormalizeOptions(),l=r.realpathSync,c=n(),d=function(){return[t.join(c,".node_modules"),t.join(c,".node_libraries")]},f=function(C){try{var w=r.statSync(C,{throwIfNoEntry:!1})}catch(E){if(E&&(E.code==="ENOENT"||E.code==="ENOTDIR"))return!1;throw E}return!!w&&(w.isFile()||w.isFIFO())},p=function(C){try{var w=r.statSync(C,{throwIfNoEntry:!1})}catch(E){if(E&&(E.code==="ENOENT"||E.code==="ENOTDIR"))return!1;throw E}return!!w&&w.isDirectory()},v=function(C){try{return l(C)}catch(w){if(w.code!=="ENOENT")throw w}return C},m=function(C,w,E){return E&&E.preserveSymlinks===!1?C(w):w},g=function(C,w){var E=C(w);try{var $=JSON.parse(E);return $}catch{}},_=function(C,w,E){for(var $=o(w,E,C),T=0;T<$.length;T++)$[T]=t.join($[T],C);return $};return sync=function(C,w){if(typeof C!="string")throw new TypeError("Path must be a string.");var E=i(C,w),$=E.isFile||f,T=E.readFileSync||r.readFileSync,B=E.isDirectory||p,R=E.realpathSync||v,L=E.readPackageSync||g;if(E.readFileSync&&E.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var te=E.packageIterator,oe=E.extensions||[".js"],Q=E.includeCoreModules!==!1,ce=E.basedir||t.dirname(a()),J=E.filename||ce;E.paths=E.paths||d();var ne=m(R,t.resolve(ce),E);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(C)){var ge=t.resolve(ne,C);(C==="."||C===".."||C.slice(-1)==="/")&&(ge+="/");var me=F(ge)||X(ge);if(me)return m(R,me,E)}else{if(Q&&e(C))return C;var de=fe(C,ne);if(de)return m(R,de,E)}var A=new Error("Cannot find module '"+C+"' from '"+J+"'");throw A.code="MODULE_NOT_FOUND",A;function F(O){var I=W(t.dirname(O));if(I&&I.dir&&I.pkg&&E.pathFilter){var U=t.relative(I.dir,O),ae=E.pathFilter(I.pkg,O,U);ae&&(O=t.resolve(I.dir,ae))}if($(O))return O;for(var ee=0;ee<oe.length;ee++){var se=O+oe[ee];if($(se))return se}}function W(O){if(!(O===""||O==="/")&&!/^\w:[/\\]*$/.test(O)&&!/[/\\]node_modules[/\\]*$/.test(O)){var I=t.join(m(R,O,E),"package.json");if(!$(I))return W(t.dirname(O));var U=L(T,I);return U&&E.packageFilter&&(U=E.packageFilter(U,O)),{pkg:U,dir:O}}}function X(O){var I=t.join(m(R,O,E),"/package.json");if($(I)){try{var U=L(T,I)}catch{}if(U&&E.packageFilter&&(U=E.packageFilter(U,O)),U&&U.main){if(typeof U.main!="string"){var ae=new TypeError("package “"+U.name+"” `main` must be a string");throw ae.code="INVALID_PACKAGE_MAIN",ae}(U.main==="."||U.main==="./")&&(U.main="index");try{var ee=F(t.resolve(O,U.main));if(ee)return ee;var se=X(t.resolve(O,U.main));if(se)return se}catch{}}}return F(t.join(O,"/index"))}function fe(O,I){for(var U=function(){return _(O,I,E)},ae=te?te(O,I,U,E):U(),ee=0;ee<ae.length;ee++){var se=ae[ee];if(B(t.dirname(se))){var le=F(se);if(le)return le;var ie=X(se);if(ie)return ie}}}},sync}var resolve,hasRequiredResolve;function requireResolve(){if(hasRequiredResolve)return resolve;hasRequiredResolve=1;var e=requireAsync();return e.core=requireCore(),e.isCore=requireIsCore(),e.sync=requireSync(),resolve=e,resolve}var dist$2={},Explorer={},ExplorerBase={},loaders={},resolveFrom={exports:{}},hasRequiredResolveFrom;function requireResolveFrom(){if(hasRequiredResolveFrom)return resolveFrom.exports;hasRequiredResolveFrom=1;const e=requirePath(),r=require$$0$1,t=require$$0$1,n=(a,o,i)=>{if(typeof a!="string")throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof a}\``);if(typeof o!="string")throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof o}\``);try{a=t.realpathSync(a)}catch(d){if(d.code==="ENOENT")a=e.resolve(a);else{if(i)return null;throw d}}const l=e.join(a,"noop.js"),c=()=>r._resolveFilename(o,{id:l,filename:l,paths:r._nodeModulePaths(a)});if(i)try{return c()}catch{return null}return c()};return resolveFrom.exports=(a,o)=>n(a,o),resolveFrom.exports.silent=(a,o)=>n(a,o,!0),resolveFrom.exports}var callsites={exports:{}},hasRequiredCallsites;function requireCallsites(){if(hasRequiredCallsites)return callsites.exports;hasRequiredCallsites=1;const e=()=>{const r=Error.prepareStackTrace;Error.prepareStackTrace=(n,a)=>a;const t=new Error().stack.slice(1);return Error.prepareStackTrace=r,t};return callsites.exports=e,callsites.exports.default=e,callsites.exports}var parentModule,hasRequiredParentModule;function requireParentModule(){if(hasRequiredParentModule)return parentModule;hasRequiredParentModule=1;const e=requireCallsites();return parentModule=r=>{const t=e();if(!r)return t[2].getFileName();let n=!1;t.shift();for(const a of t){const o=a.getFileName();if(typeof o=="string"){if(o===r){n=!0;continue}if(o!=="module.js"&&n&&o!==r)return o}}},parentModule}var importFresh,hasRequiredImportFresh;function requireImportFresh(){if(hasRequiredImportFresh)return importFresh;hasRequiredImportFresh=1;const e=requirePath(),r=requireResolveFrom(),t=requireParentModule();return importFresh=n=>{if(typeof n!="string")throw new TypeError("Expected a string");const a=t(__filename),o=a?e.dirname(a):__dirname,i=r(o,n),l=require.cache[i];if(l&&l.parent){let d=l.parent.children.length;for(;d--;)l.parent.children[d].id===i&&l.parent.children.splice(d,1)}delete require.cache[i];const c=require.cache[a];return c===void 0?commonjsRequire(i):c.require(i)},importFresh}var util={},types={},shams$1,hasRequiredShams$1;function requireShams$1(){return hasRequiredShams$1||(hasRequiredShams$1=1,shams$1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;r[t]=a;for(t in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(r,t);if(i.value!==a||i.enumerable!==!0)return!1}return!0}),shams$1}var shams,hasRequiredShams;function requireShams(){if(hasRequiredShams)return shams;hasRequiredShams=1;var e=requireShams$1();return shams=function(){return e()&&!!Symbol.toStringTag},shams}var esErrors,hasRequiredEsErrors;function requireEsErrors(){return hasRequiredEsErrors||(hasRequiredEsErrors=1,esErrors=Error),esErrors}var _eval,hasRequired_eval;function require_eval(){return hasRequired_eval||(hasRequired_eval=1,_eval=EvalError),_eval}var range,hasRequiredRange;function requireRange(){return hasRequiredRange||(hasRequiredRange=1,range=RangeError),range}var ref,hasRequiredRef;function requireRef(){return hasRequiredRef||(hasRequiredRef=1,ref=ReferenceError),ref}var syntax,hasRequiredSyntax;function requireSyntax(){return hasRequiredSyntax||(hasRequiredSyntax=1,syntax=SyntaxError),syntax}var type,hasRequiredType;function requireType(){return hasRequiredType||(hasRequiredType=1,type=TypeError),type}var uri,hasRequiredUri;function requireUri(){return hasRequiredUri||(hasRequiredUri=1,uri=URIError),uri}var hasSymbols,hasRequiredHasSymbols;function requireHasSymbols(){if(hasRequiredHasSymbols)return hasSymbols;hasRequiredHasSymbols=1;var e=typeof Symbol<"u"&&Symbol,r=requireShams$1();return hasSymbols=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:r()},hasSymbols}var hasProto,hasRequiredHasProto;function requireHasProto(){if(hasRequiredHasProto)return hasProto;hasRequiredHasProto=1;var e={__proto__:null,foo:{}},r=Object;return hasProto=function(){return{__proto__:e}.foo===e.foo&&!(e instanceof r)},hasProto}var getIntrinsic,hasRequiredGetIntrinsic;function requireGetIntrinsic(){if(hasRequiredGetIntrinsic)return getIntrinsic;hasRequiredGetIntrinsic=1;var e,r=requireEsErrors(),t=require_eval(),n=requireRange(),a=requireRef(),o=requireSyntax(),i=requireType(),l=requireUri(),c=Function,d=function(de){try{return c('"use strict"; return ('+de+").constructor;")()}catch{}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch{f=null}var p=function(){throw new i},v=f?function(){try{return arguments.callee,p}catch{try{return f(arguments,"callee").get}catch{return p}}}():p,m=requireHasSymbols()(),g=requireHasProto()(),_=Object.getPrototypeOf||(g?function(de){return de.__proto__}:null),S={},C=typeof Uint8Array>"u"||!_?e:_(Uint8Array),w={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":m&&_?_([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":S,"%AsyncGenerator%":S,"%AsyncGeneratorFunction%":S,"%AsyncIteratorPrototype%":S,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":t,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":S,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&_?_(_([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!m||!_?e:_(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":n,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!m||!_?e:_(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&_?_(""[Symbol.iterator]()):e,"%Symbol%":m?Symbol:e,"%SyntaxError%":o,"%ThrowTypeError%":v,"%TypedArray%":C,"%TypeError%":i,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet};if(_)try{null.error}catch(de){var E=_(_(de));w["%Error.prototype%"]=E}var $=function de(A){var F;if(A==="%AsyncFunction%")F=d("async function () {}");else if(A==="%GeneratorFunction%")F=d("function* () {}");else if(A==="%AsyncGeneratorFunction%")F=d("async function* () {}");else if(A==="%AsyncGenerator%"){var W=de("%AsyncGeneratorFunction%");W&&(F=W.prototype)}else if(A==="%AsyncIteratorPrototype%"){var X=de("%AsyncGenerator%");X&&_&&(F=_(X.prototype))}return w[A]=F,F},T={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},B=requireFunctionBind(),R=requireHasown(),L=B.call(Function.call,Array.prototype.concat),te=B.call(Function.apply,Array.prototype.splice),oe=B.call(Function.call,String.prototype.replace),Q=B.call(Function.call,String.prototype.slice),ce=B.call(Function.call,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ne=/\\(\\)?/g,ge=function(A){var F=Q(A,0,1),W=Q(A,-1);if(F==="%"&&W!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(W==="%"&&F!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var X=[];return oe(A,J,function(fe,O,I,U){X[X.length]=I?oe(U,ne,"$1"):O||fe}),X},me=function(A,F){var W=A,X;if(R(T,W)&&(X=T[W],W="%"+X[0]+"%"),R(w,W)){var fe=w[W];if(fe===S&&(fe=$(W)),typeof fe>"u"&&!F)throw new i("intrinsic "+A+" exists, but is not available. Please file an issue!");return{alias:X,name:W,value:fe}}throw new o("intrinsic "+A+" does not exist!")};return getIntrinsic=function(A,F){if(typeof A!="string"||A.length===0)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof F!="boolean")throw new i('"allowMissing" argument must be a boolean');if(ce(/^%?[^%]*%?$/,A)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var W=ge(A),X=W.length>0?W[0]:"",fe=me("%"+X+"%",F),O=fe.name,I=fe.value,U=!1,ae=fe.alias;ae&&(X=ae[0],te(W,L([0,1],ae)));for(var ee=1,se=!0;ee<W.length;ee+=1){var le=W[ee],ie=Q(le,0,1),ve=Q(le,-1);if((ie==='"'||ie==="'"||ie==="`"||ve==='"'||ve==="'"||ve==="`")&&ie!==ve)throw new o("property names with quotes must have matching quotes");if((le==="constructor"||!se)&&(U=!0),X+="."+le,O="%"+X+"%",R(w,O))I=w[O];else if(I!=null){if(!(le in I)){if(!F)throw new i("base intrinsic for "+A+" exists, but the property is not available.");return}if(f&&ee+1>=W.length){var Ve=f(I,le);se=!!Ve,se&&"get"in Ve&&!("originalValue"in Ve.get)?I=Ve.get:I=I[le]}else se=R(I,le),I=I[le];se&&!U&&(w[O]=I)}}return I},getIntrinsic}var callBind={exports:{}},esDefineProperty,hasRequiredEsDefineProperty;function requireEsDefineProperty(){if(hasRequiredEsDefineProperty)return esDefineProperty;hasRequiredEsDefineProperty=1;var e=requireGetIntrinsic(),r=e("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return esDefineProperty=r,esDefineProperty}var gopd,hasRequiredGopd;function requireGopd(){if(hasRequiredGopd)return gopd;hasRequiredGopd=1;var e=requireGetIntrinsic(),r=e("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch{r=null}return gopd=r,gopd}var defineDataProperty,hasRequiredDefineDataProperty;function requireDefineDataProperty(){if(hasRequiredDefineDataProperty)return defineDataProperty;hasRequiredDefineDataProperty=1;var e=requireEsDefineProperty(),r=requireSyntax(),t=requireType(),n=requireGopd();return defineDataProperty=function(o,i,l){if(!o||typeof o!="object"&&typeof o!="function")throw new t("`obj` must be an object or a function`");if(typeof i!="string"&&typeof i!="symbol")throw new t("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new t("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new t("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new t("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new t("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,d=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,v=!!n&&n(o,i);if(e)e(o,i,{configurable:f===null&&v?v.configurable:!f,enumerable:c===null&&v?v.enumerable:!c,value:l,writable:d===null&&v?v.writable:!d});else if(p||!c&&!d&&!f)o[i]=l;else throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},defineDataProperty}var hasPropertyDescriptors_1,hasRequiredHasPropertyDescriptors;function requireHasPropertyDescriptors(){if(hasRequiredHasPropertyDescriptors)return hasPropertyDescriptors_1;hasRequiredHasPropertyDescriptors=1;var e=requireEsDefineProperty(),r=function(){return!!e};return r.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},hasPropertyDescriptors_1=r,hasPropertyDescriptors_1}var setFunctionLength,hasRequiredSetFunctionLength;function requireSetFunctionLength(){if(hasRequiredSetFunctionLength)return setFunctionLength;hasRequiredSetFunctionLength=1;var e=requireGetIntrinsic(),r=requireDefineDataProperty(),t=requireHasPropertyDescriptors()(),n=requireGopd(),a=requireType(),o=e("%Math.floor%");return setFunctionLength=function(l,c){if(typeof l!="function")throw new a("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||o(c)!==c)throw new a("`length` must be a positive 32-bit integer");var d=arguments.length>2&&!!arguments[2],f=!0,p=!0;if("length"in l&&n){var v=n(l,"length");v&&!v.configurable&&(f=!1),v&&!v.writable&&(p=!1)}return(f||p||!d)&&(t?r(l,"length",c,!0,!0):r(l,"length",c)),l},setFunctionLength}var hasRequiredCallBind;function requireCallBind(){return hasRequiredCallBind||(hasRequiredCallBind=1,function(e){var r=requireFunctionBind(),t=requireGetIntrinsic(),n=requireSetFunctionLength(),a=requireType(),o=t("%Function.prototype.apply%"),i=t("%Function.prototype.call%"),l=t("%Reflect.apply%",!0)||r.call(i,o),c=requireEsDefineProperty(),d=t("%Math.max%");e.exports=function(v){if(typeof v!="function")throw new a("a function is required");var m=l(r,i,arguments);return n(m,1+d(0,v.length-(arguments.length-1)),!0)};var f=function(){return l(r,o,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f}(callBind)),callBind.exports}var callBound,hasRequiredCallBound;function requireCallBound(){if(hasRequiredCallBound)return callBound;hasRequiredCallBound=1;var e=requireGetIntrinsic(),r=requireCallBind(),t=r(e("String.prototype.indexOf"));return callBound=function(a,o){var i=e(a,!!o);return typeof i=="function"&&t(a,".prototype.")>-1?r(i):i},callBound}var isArguments,hasRequiredIsArguments;function requireIsArguments(){if(hasRequiredIsArguments)return isArguments;hasRequiredIsArguments=1;var e=requireShams()(),r=requireCallBound(),t=r("Object.prototype.toString"),n=function(l){return e&&l&&typeof l=="object"&&Symbol.toStringTag in l?!1:t(l)==="[object Arguments]"},a=function(l){return n(l)?!0:l!==null&&typeof l=="object"&&typeof l.length=="number"&&l.length>=0&&t(l)!=="[object Array]"&&t(l.callee)==="[object Function]"},o=function(){return n(arguments)}();return n.isLegacyArguments=a,isArguments=o?n:a,isArguments}var isGeneratorFunction,hasRequiredIsGeneratorFunction;function requireIsGeneratorFunction(){if(hasRequiredIsGeneratorFunction)return isGeneratorFunction;hasRequiredIsGeneratorFunction=1;var e=Object.prototype.toString,r=Function.prototype.toString,t=/^\s*(?:function)?\*/,n=requireShams()(),a=Object.getPrototypeOf,o=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},i;return isGeneratorFunction=function(c){if(typeof c!="function")return!1;if(t.test(r.call(c)))return!0;if(!n){var d=e.call(c);return d==="[object GeneratorFunction]"}if(!a)return!1;if(typeof i>"u"){var f=o();i=f?a(f):!1}return a(c)===i},isGeneratorFunction}var isCallable,hasRequiredIsCallable;function requireIsCallable(){if(hasRequiredIsCallable)return isCallable;hasRequiredIsCallable=1;var e=Function.prototype.toString,r=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,t,n;if(typeof r=="function"&&typeof Object.defineProperty=="function")try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},r(function(){throw 42},null,t)}catch(w){w!==n&&(r=null)}else r=null;var a=/^\s*class\b/,o=function(E){try{var $=e.call(E);return a.test($)}catch{return!1}},i=function(E){try{return o(E)?!1:(e.call(E),!0)}catch{return!1}},l=Object.prototype.toString,c="[object Object]",d="[object Function]",f="[object GeneratorFunction]",p="[object HTMLAllCollection]",v="[object HTML document.all class]",m="[object HTMLCollection]",g=typeof Symbol=="function"&&!!Symbol.toStringTag,_=!(0 in[,]),S=function(){return!1};if(typeof document=="object"){var C=document.all;l.call(C)===l.call(document.all)&&(S=function(E){if((_||!E)&&(typeof E>"u"||typeof E=="object"))try{var $=l.call(E);return($===p||$===v||$===m||$===c)&&E("")==null}catch{}return!1})}return isCallable=r?function(E){if(S(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;try{r(E,null,t)}catch($){if($!==n)return!1}return!o(E)&&i(E)}:function(E){if(S(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;if(g)return i(E);if(o(E))return!1;var $=l.call(E);return $!==d&&$!==f&&!/^\[object HTML/.test($)?!1:i(E)},isCallable}var forEach_1,hasRequiredForEach;function requireForEach(){if(hasRequiredForEach)return forEach_1;hasRequiredForEach=1;var e=requireIsCallable(),r=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n=function(c,d,f){for(var p=0,v=c.length;p<v;p++)t.call(c,p)&&(f==null?d(c[p],p,c):d.call(f,c[p],p,c))},a=function(c,d,f){for(var p=0,v=c.length;p<v;p++)f==null?d(c.charAt(p),p,c):d.call(f,c.charAt(p),p,c)},o=function(c,d,f){for(var p in c)t.call(c,p)&&(f==null?d(c[p],p,c):d.call(f,c[p],p,c))},i=function(c,d,f){if(!e(d))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=f),r.call(c)==="[object Array]"?n(c,d,p):typeof c=="string"?a(c,d,p):o(c,d,p)};return forEach_1=i,forEach_1}var possibleTypedArrayNames,hasRequiredPossibleTypedArrayNames;function requirePossibleTypedArrayNames(){return hasRequiredPossibleTypedArrayNames||(hasRequiredPossibleTypedArrayNames=1,possibleTypedArrayNames=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),possibleTypedArrayNames}var availableTypedArrays,hasRequiredAvailableTypedArrays;function requireAvailableTypedArrays(){if(hasRequiredAvailableTypedArrays)return availableTypedArrays;hasRequiredAvailableTypedArrays=1;var e=requirePossibleTypedArrayNames(),r=typeof globalThis>"u"?commonjsGlobal:globalThis;return availableTypedArrays=function(){for(var n=[],a=0;a<e.length;a++)typeof r[e[a]]=="function"&&(n[n.length]=e[a]);return n},availableTypedArrays}var whichTypedArray,hasRequiredWhichTypedArray;function requireWhichTypedArray(){if(hasRequiredWhichTypedArray)return whichTypedArray;hasRequiredWhichTypedArray=1;var e=requireForEach(),r=requireAvailableTypedArrays(),t=requireCallBind(),n=requireCallBound(),a=requireGopd(),o=n("Object.prototype.toString"),i=requireShams()(),l=typeof globalThis>"u"?commonjsGlobal:globalThis,c=r(),d=n("String.prototype.slice"),f=Object.getPrototypeOf,p=n("Array.prototype.indexOf",!0)||function(S,C){for(var w=0;w<S.length;w+=1)if(S[w]===C)return w;return-1},v={__proto__:null};i&&a&&f?e(c,function(_){var S=new l[_];if(Symbol.toStringTag in S){var C=f(S),w=a(C,Symbol.toStringTag);if(!w){var E=f(C);w=a(E,Symbol.toStringTag)}v["$"+_]=t(w.get)}}):e(c,function(_){var S=new l[_],C=S.slice||S.set;C&&(v["$"+_]=t(C))});var m=function(S){var C=!1;return e(v,function(w,E){if(!C)try{"$"+w(S)===E&&(C=d(E,1))}catch{}}),C},g=function(S){var C=!1;return e(v,function(w,E){if(!C)try{w(S),C=d(E,1)}catch{}}),C};return whichTypedArray=function(S){if(!S||typeof S!="object")return!1;if(!i){var C=d(o(S),8,-1);return p(c,C)>-1?C:C!=="Object"?!1:g(S)}return a?m(S):null},whichTypedArray}var isTypedArray,hasRequiredIsTypedArray;function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray;hasRequiredIsTypedArray=1;var e=requireWhichTypedArray();return isTypedArray=function(t){return!!e(t)},isTypedArray}var hasRequiredTypes;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,function(e){var r=requireIsArguments(),t=requireIsGeneratorFunction(),n=requireWhichTypedArray(),a=requireIsTypedArray();function o(z){return z.call.bind(z)}var i=typeof BigInt<"u",l=typeof Symbol<"u",c=o(Object.prototype.toString),d=o(Number.prototype.valueOf),f=o(String.prototype.valueOf),p=o(Boolean.prototype.valueOf);if(i)var v=o(BigInt.prototype.valueOf);if(l)var m=o(Symbol.prototype.valueOf);function g(z,ht){if(typeof z!="object")return!1;try{return ht(z),!0}catch{return!1}}e.isArgumentsObject=r,e.isGeneratorFunction=t,e.isTypedArray=a;function _(z){return typeof Promise<"u"&&z instanceof Promise||z!==null&&typeof z=="object"&&typeof z.then=="function"&&typeof z.catch=="function"}e.isPromise=_;function S(z){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(z):a(z)||O(z)}e.isArrayBufferView=S;function C(z){return n(z)==="Uint8Array"}e.isUint8Array=C;function w(z){return n(z)==="Uint8ClampedArray"}e.isUint8ClampedArray=w;function E(z){return n(z)==="Uint16Array"}e.isUint16Array=E;function $(z){return n(z)==="Uint32Array"}e.isUint32Array=$;function T(z){return n(z)==="Int8Array"}e.isInt8Array=T;function B(z){return n(z)==="Int16Array"}e.isInt16Array=B;function R(z){return n(z)==="Int32Array"}e.isInt32Array=R;function L(z){return n(z)==="Float32Array"}e.isFloat32Array=L;function te(z){return n(z)==="Float64Array"}e.isFloat64Array=te;function oe(z){return n(z)==="BigInt64Array"}e.isBigInt64Array=oe;function Q(z){return n(z)==="BigUint64Array"}e.isBigUint64Array=Q;function ce(z){return c(z)==="[object Map]"}ce.working=typeof Map<"u"&&ce(new Map);function J(z){return typeof Map>"u"?!1:ce.working?ce(z):z instanceof Map}e.isMap=J;function ne(z){return c(z)==="[object Set]"}ne.working=typeof Set<"u"&&ne(new Set);function ge(z){return typeof Set>"u"?!1:ne.working?ne(z):z instanceof Set}e.isSet=ge;function me(z){return c(z)==="[object WeakMap]"}me.working=typeof WeakMap<"u"&&me(new WeakMap);function de(z){return typeof WeakMap>"u"?!1:me.working?me(z):z instanceof WeakMap}e.isWeakMap=de;function A(z){return c(z)==="[object WeakSet]"}A.working=typeof WeakSet<"u"&&A(new WeakSet);function F(z){return A(z)}e.isWeakSet=F;function W(z){return c(z)==="[object ArrayBuffer]"}W.working=typeof ArrayBuffer<"u"&&W(new ArrayBuffer);function X(z){return typeof ArrayBuffer>"u"?!1:W.working?W(z):z instanceof ArrayBuffer}e.isArrayBuffer=X;function fe(z){return c(z)==="[object DataView]"}fe.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&fe(new DataView(new ArrayBuffer(1),0,1));function O(z){return typeof DataView>"u"?!1:fe.working?fe(z):z instanceof DataView}e.isDataView=O;var I=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function U(z){return c(z)==="[object SharedArrayBuffer]"}function ae(z){return typeof I>"u"?!1:(typeof U.working>"u"&&(U.working=U(new I)),U.working?U(z):z instanceof I)}e.isSharedArrayBuffer=ae;function ee(z){return c(z)==="[object AsyncFunction]"}e.isAsyncFunction=ee;function se(z){return c(z)==="[object Map Iterator]"}e.isMapIterator=se;function le(z){return c(z)==="[object Set Iterator]"}e.isSetIterator=le;function ie(z){return c(z)==="[object Generator]"}e.isGeneratorObject=ie;function ve(z){return c(z)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ve;function Ve(z){return g(z,d)}e.isNumberObject=Ve;function Ae(z){return g(z,f)}e.isStringObject=Ae;function xe(z){return g(z,p)}e.isBooleanObject=xe;function Pe(z){return i&&g(z,v)}e.isBigIntObject=Pe;function Qe(z){return l&&g(z,m)}e.isSymbolObject=Qe;function He(z){return Ve(z)||Ae(z)||xe(z)||Pe(z)||Qe(z)}e.isBoxedPrimitive=He;function et(z){return typeof Uint8Array<"u"&&(X(z)||ae(z))}e.isAnyArrayBuffer=et,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(z){Object.defineProperty(e,z,{enumerable:!1,value:function(){throw new Error(z+" is not supported in userland")}})})}(types)),types}var isBufferBrowser,hasRequiredIsBufferBrowser;function requireIsBufferBrowser(){return hasRequiredIsBufferBrowser||(hasRequiredIsBufferBrowser=1,isBufferBrowser=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}),isBufferBrowser}var inherits_browser={exports:{}},hasRequiredInherits_browser;function requireInherits_browser(){return hasRequiredInherits_browser||(hasRequiredInherits_browser=1,typeof Object.create=="function"?inherits_browser.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(r,t){if(t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r}}),inherits_browser.exports}var hasRequiredUtil;function requireUtil(){return hasRequiredUtil||(hasRequiredUtil=1,function(e){var r={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.8",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-59948a58;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-de2eadd7;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"},t=Object.getOwnPropertyDescriptors||function(I){for(var U=Object.keys(I),ae={},ee=0;ee<U.length;ee++)ae[U[ee]]=Object.getOwnPropertyDescriptor(I,U[ee]);return ae},n=/%[sdj%]/g;e.format=function(O){if(!B(O)){for(var I=[],U=0;U<arguments.length;U++)I.push(l(arguments[U]));return I.join(" ")}for(var U=1,ae=arguments,ee=ae.length,se=String(O).replace(n,function(ie){if(ie==="%%")return"%";if(U>=ee)return ie;switch(ie){case"%s":return String(ae[U++]);case"%d":return Number(ae[U++]);case"%j":try{return JSON.stringify(ae[U++])}catch{return"[Circular]"}default:return ie}}),le=ae[U];U<ee;le=ae[++U])E(le)||!oe(le)?se+=" "+le:se+=" "+l(le);return se},e.deprecate=function(O,I){if(typeof process<"u"&&process.noDeprecation===!0)return O;if(typeof process>"u")return function(){return e.deprecate(O,I).apply(this,arguments)};var U=!1;function ae(){if(!U){if(process.throwDeprecation)throw new Error(I);process.traceDeprecation?console.trace(I):console.error(I),U=!0}return O.apply(this,arguments)}return ae};var a={},o=/^$/;if(r.NODE_DEBUG){var i=r.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(O){if(O=O.toUpperCase(),!a[O])if(o.test(O)){var I=process.pid;a[O]=function(){var U=e.format.apply(e,arguments);console.error("%s %d: %s",O,I,U)}}else a[O]=function(){};return a[O]};function l(O,I){var U={seen:[],stylize:d};return arguments.length>=3&&(U.depth=arguments[2]),arguments.length>=4&&(U.colors=arguments[3]),w(I)?U.showHidden=I:I&&e._extend(U,I),L(U.showHidden)&&(U.showHidden=!1),L(U.depth)&&(U.depth=2),L(U.colors)&&(U.colors=!1),L(U.customInspect)&&(U.customInspect=!0),U.colors&&(U.stylize=c),p(U,O,U.depth)}e.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(O,I){var U=l.styles[I];return U?"\x1B["+l.colors[U][0]+"m"+O+"\x1B["+l.colors[U][1]+"m":O}function d(O,I){return O}function f(O){var I={};return O.forEach(function(U,ae){I[U]=!0}),I}function p(O,I,U){if(O.customInspect&&I&&J(I.inspect)&&I.inspect!==e.inspect&&!(I.constructor&&I.constructor.prototype===I)){var ae=I.inspect(U,O);return B(ae)||(ae=p(O,ae,U)),ae}var ee=v(O,I);if(ee)return ee;var se=Object.keys(I),le=f(se);if(O.showHidden&&(se=Object.getOwnPropertyNames(I)),ce(I)&&(se.indexOf("message")>=0||se.indexOf("description")>=0))return m(I);if(se.length===0){if(J(I)){var ie=I.name?": "+I.name:"";return O.stylize("[Function"+ie+"]","special")}if(te(I))return O.stylize(RegExp.prototype.toString.call(I),"regexp");if(Q(I))return O.stylize(Date.prototype.toString.call(I),"date");if(ce(I))return m(I)}var ve="",Ve=!1,Ae=["{","}"];if(C(I)&&(Ve=!0,Ae=["[","]"]),J(I)){var xe=I.name?": "+I.name:"";ve=" [Function"+xe+"]"}if(te(I)&&(ve=" "+RegExp.prototype.toString.call(I)),Q(I)&&(ve=" "+Date.prototype.toUTCString.call(I)),ce(I)&&(ve=" "+m(I)),se.length===0&&(!Ve||I.length==0))return Ae[0]+ve+Ae[1];if(U<0)return te(I)?O.stylize(RegExp.prototype.toString.call(I),"regexp"):O.stylize("[Object]","special");O.seen.push(I);var Pe;return Ve?Pe=g(O,I,U,le,se):Pe=se.map(function(Qe){return _(O,I,U,le,Qe,Ve)}),O.seen.pop(),S(Pe,ve,Ae)}function v(O,I){if(L(I))return O.stylize("undefined","undefined");if(B(I)){var U="'"+JSON.stringify(I).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return O.stylize(U,"string")}if(T(I))return O.stylize(""+I,"number");if(w(I))return O.stylize(""+I,"boolean");if(E(I))return O.stylize("null","null")}function m(O){return"["+Error.prototype.toString.call(O)+"]"}function g(O,I,U,ae,ee){for(var se=[],le=0,ie=I.length;le<ie;++le)F(I,String(le))?se.push(_(O,I,U,ae,String(le),!0)):se.push("");return ee.forEach(function(ve){ve.match(/^\d+$/)||se.push(_(O,I,U,ae,ve,!0))}),se}function _(O,I,U,ae,ee,se){var le,ie,ve;if(ve=Object.getOwnPropertyDescriptor(I,ee)||{value:I[ee]},ve.get?ve.set?ie=O.stylize("[Getter/Setter]","special"):ie=O.stylize("[Getter]","special"):ve.set&&(ie=O.stylize("[Setter]","special")),F(ae,ee)||(le="["+ee+"]"),ie||(O.seen.indexOf(ve.value)<0?(E(U)?ie=p(O,ve.value,null):ie=p(O,ve.value,U-1),ie.indexOf(`
195
195
  `)>-1&&(se?ie=ie.split(`
196
196
  `).map(function(Ve){return" "+Ve}).join(`
197
197
  `).slice(2):ie=`
@@ -200,16 +200,16 @@ function print() { __p += __j.call(arguments, '') }
200
200
  `))):ie=O.stylize("[Circular]","special")),L(le)){if(se&&ee.match(/^\d+$/))return ie;le=JSON.stringify(""+ee),le.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(le=le.slice(1,-1),le=O.stylize(le,"name")):(le=le.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),le=O.stylize(le,"string"))}return le+": "+ie}function S(O,I,U){var ae=O.reduce(function(ee,se){return se.indexOf(`
201
201
  `)>=0,ee+se.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ae>60?U[0]+(I===""?"":I+`
202
202
  `)+" "+O.join(`,
203
- `)+" "+U[1]:U[0]+I+" "+O.join(", ")+" "+U[1]}e.types=requireTypes();function C(O){return Array.isArray(O)}e.isArray=C;function w(O){return typeof O=="boolean"}e.isBoolean=w;function E(O){return O===null}e.isNull=E;function $(O){return O==null}e.isNullOrUndefined=$;function T(O){return typeof O=="number"}e.isNumber=T;function B(O){return typeof O=="string"}e.isString=B;function R(O){return typeof O=="symbol"}e.isSymbol=R;function L(O){return O===void 0}e.isUndefined=L;function te(O){return oe(O)&&ge(O)==="[object RegExp]"}e.isRegExp=te,e.types.isRegExp=te;function oe(O){return typeof O=="object"&&O!==null}e.isObject=oe;function Q(O){return oe(O)&&ge(O)==="[object Date]"}e.isDate=Q,e.types.isDate=Q;function ce(O){return oe(O)&&(ge(O)==="[object Error]"||O instanceof Error)}e.isError=ce,e.types.isNativeError=ce;function Y(O){return typeof O=="function"}e.isFunction=Y;function ne(O){return O===null||typeof O=="boolean"||typeof O=="number"||typeof O=="string"||typeof O=="symbol"||typeof O>"u"}e.isPrimitive=ne,e.isBuffer=requireIsBufferBrowser();function ge(O){return Object.prototype.toString.call(O)}function me(O){return O<10?"0"+O.toString(10):O.toString(10)}var de=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(){var O=new Date,I=[me(O.getHours()),me(O.getMinutes()),me(O.getSeconds())].join(":");return[O.getDate(),de[O.getMonth()],I].join(" ")}e.log=function(){console.log("%s - %s",A(),e.format.apply(e,arguments))},e.inherits=requireInherits_browser(),e._extend=function(O,I){if(!I||!oe(I))return O;for(var U=Object.keys(I),ae=U.length;ae--;)O[U[ae]]=I[U[ae]];return O};function F(O,I){return Object.prototype.hasOwnProperty.call(O,I)}var j=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(I){if(typeof I!="function")throw new TypeError('The "original" argument must be of type Function');if(j&&I[j]){var U=I[j];if(typeof U!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(U,j,{value:U,enumerable:!1,writable:!1,configurable:!0}),U}function U(){for(var ae,ee,se=new Promise(function(ve,Ve){ae=ve,ee=Ve}),le=[],ie=0;ie<arguments.length;ie++)le.push(arguments[ie]);le.push(function(ve,Ve){ve?ee(ve):ae(Ve)});try{I.apply(this,le)}catch(ve){ee(ve)}return se}return Object.setPrototypeOf(U,Object.getPrototypeOf(I)),j&&Object.defineProperty(U,j,{value:U,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(U,t(I))},e.promisify.custom=j;function Z(O,I){if(!O){var U=new Error("Promise was rejected with a falsy value");U.reason=O,O=U}return I(O)}function fe(O){if(typeof O!="function")throw new TypeError('The "original" argument must be of type Function');function I(){for(var U=[],ae=0;ae<arguments.length;ae++)U.push(arguments[ae]);var ee=U.pop();if(typeof ee!="function")throw new TypeError("The last argument must be of type Function");var se=this,le=function(){return ee.apply(se,arguments)};O.apply(this,U).then(function(ie){process.nextTick(le.bind(null,null,ie))},function(ie){process.nextTick(Z.bind(null,ie,le))})}return Object.setPrototypeOf(I,Object.getPrototypeOf(O)),Object.defineProperties(I,t(O)),I}e.callbackify=fe}(util)),util}var isArrayish,hasRequiredIsArrayish;function requireIsArrayish(){return hasRequiredIsArrayish||(hasRequiredIsArrayish=1,isArrayish=function(r){return r?r instanceof Array||Array.isArray(r)||r.length>=0&&r.splice instanceof Function:!1}),isArrayish}var errorEx_1,hasRequiredErrorEx;function requireErrorEx(){if(hasRequiredErrorEx)return errorEx_1;hasRequiredErrorEx=1;var e=requireUtil(),r=requireIsArrayish(),t=function(a,o){(!a||a.constructor!==String)&&(o=a||{},a=Error.name);var i=function l(c){if(!this)return new l(c);c=c instanceof Error?c.message:c||this.message,Error.call(this,c),Error.captureStackTrace(this,i),this.name=a,Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,get:function(){var m=c.split(/\r?\n/g);for(var g in o)if(o.hasOwnProperty(g)){var _=o[g];"message"in _&&(m=_.message(this[g],m)||m,r(m)||(m=[m]))}return m.join(`
203
+ `)+" "+U[1]:U[0]+I+" "+O.join(", ")+" "+U[1]}e.types=requireTypes();function C(O){return Array.isArray(O)}e.isArray=C;function w(O){return typeof O=="boolean"}e.isBoolean=w;function E(O){return O===null}e.isNull=E;function $(O){return O==null}e.isNullOrUndefined=$;function T(O){return typeof O=="number"}e.isNumber=T;function B(O){return typeof O=="string"}e.isString=B;function R(O){return typeof O=="symbol"}e.isSymbol=R;function L(O){return O===void 0}e.isUndefined=L;function te(O){return oe(O)&&ge(O)==="[object RegExp]"}e.isRegExp=te,e.types.isRegExp=te;function oe(O){return typeof O=="object"&&O!==null}e.isObject=oe;function Q(O){return oe(O)&&ge(O)==="[object Date]"}e.isDate=Q,e.types.isDate=Q;function ce(O){return oe(O)&&(ge(O)==="[object Error]"||O instanceof Error)}e.isError=ce,e.types.isNativeError=ce;function J(O){return typeof O=="function"}e.isFunction=J;function ne(O){return O===null||typeof O=="boolean"||typeof O=="number"||typeof O=="string"||typeof O=="symbol"||typeof O>"u"}e.isPrimitive=ne,e.isBuffer=requireIsBufferBrowser();function ge(O){return Object.prototype.toString.call(O)}function me(O){return O<10?"0"+O.toString(10):O.toString(10)}var de=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(){var O=new Date,I=[me(O.getHours()),me(O.getMinutes()),me(O.getSeconds())].join(":");return[O.getDate(),de[O.getMonth()],I].join(" ")}e.log=function(){console.log("%s - %s",A(),e.format.apply(e,arguments))},e.inherits=requireInherits_browser(),e._extend=function(O,I){if(!I||!oe(I))return O;for(var U=Object.keys(I),ae=U.length;ae--;)O[U[ae]]=I[U[ae]];return O};function F(O,I){return Object.prototype.hasOwnProperty.call(O,I)}var W=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(I){if(typeof I!="function")throw new TypeError('The "original" argument must be of type Function');if(W&&I[W]){var U=I[W];if(typeof U!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(U,W,{value:U,enumerable:!1,writable:!1,configurable:!0}),U}function U(){for(var ae,ee,se=new Promise(function(ve,Ve){ae=ve,ee=Ve}),le=[],ie=0;ie<arguments.length;ie++)le.push(arguments[ie]);le.push(function(ve,Ve){ve?ee(ve):ae(Ve)});try{I.apply(this,le)}catch(ve){ee(ve)}return se}return Object.setPrototypeOf(U,Object.getPrototypeOf(I)),W&&Object.defineProperty(U,W,{value:U,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(U,t(I))},e.promisify.custom=W;function X(O,I){if(!O){var U=new Error("Promise was rejected with a falsy value");U.reason=O,O=U}return I(O)}function fe(O){if(typeof O!="function")throw new TypeError('The "original" argument must be of type Function');function I(){for(var U=[],ae=0;ae<arguments.length;ae++)U.push(arguments[ae]);var ee=U.pop();if(typeof ee!="function")throw new TypeError("The last argument must be of type Function");var se=this,le=function(){return ee.apply(se,arguments)};O.apply(this,U).then(function(ie){process.nextTick(le.bind(null,null,ie))},function(ie){process.nextTick(X.bind(null,ie,le))})}return Object.setPrototypeOf(I,Object.getPrototypeOf(O)),Object.defineProperties(I,t(O)),I}e.callbackify=fe}(util)),util}var isArrayish,hasRequiredIsArrayish;function requireIsArrayish(){return hasRequiredIsArrayish||(hasRequiredIsArrayish=1,isArrayish=function(r){return r?r instanceof Array||Array.isArray(r)||r.length>=0&&r.splice instanceof Function:!1}),isArrayish}var errorEx_1,hasRequiredErrorEx;function requireErrorEx(){if(hasRequiredErrorEx)return errorEx_1;hasRequiredErrorEx=1;var e=requireUtil(),r=requireIsArrayish(),t=function(a,o){(!a||a.constructor!==String)&&(o=a||{},a=Error.name);var i=function l(c){if(!this)return new l(c);c=c instanceof Error?c.message:c||this.message,Error.call(this,c),Error.captureStackTrace(this,i),this.name=a,Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,get:function(){var m=c.split(/\r?\n/g);for(var g in o)if(o.hasOwnProperty(g)){var _=o[g];"message"in _&&(m=_.message(this[g],m)||m,r(m)||(m=[m]))}return m.join(`
204
204
  `)},set:function(m){c=m}});var d=null,f=Object.getOwnPropertyDescriptor(this,"stack"),p=f.get,v=f.value;delete f.value,delete f.writable,f.set=function(m){d=m},f.get=function(){var m=(d||(p?p.call(this):v)).split(/\r?\n+/g);d||(m[0]=this.name+": "+this.message);var g=1;for(var _ in o)if(o.hasOwnProperty(_)){var S=o[_];if("line"in S){var C=S.line(this[_]);C&&m.splice(g++,0," "+C)}"stack"in S&&S.stack(this[_],m)}return m.join(`
205
205
  `)},Object.defineProperty(this,"stack",f)};return Object.setPrototypeOf?(Object.setPrototypeOf(i.prototype,Error.prototype),Object.setPrototypeOf(i,Error)):e.inherits(i,Error),i};return t.append=function(n,a){return{message:function(o,i){return o=o||a,o&&(i[0]+=" "+n.replace("%s",o.toString())),i}}},t.line=function(n,a){return{line:function(o){return o=o||a,o?n.replace("%s",o.toString()):null}}},errorEx_1=t,errorEx_1}var jsonParseEvenBetterErrors,hasRequiredJsonParseEvenBetterErrors;function requireJsonParseEvenBetterErrors(){if(hasRequiredJsonParseEvenBetterErrors)return jsonParseEvenBetterErrors;hasRequiredJsonParseEvenBetterErrors=1;const e=d=>{const f=d.charCodeAt(0).toString(16).toUpperCase();return"0x"+(f.length%2?"0":"")+f},r=(d,f,p)=>{if(!f)return{message:d.message+" while parsing empty string",position:0};const v=d.message.match(/^Unexpected token (.) .*position\s+(\d+)/i),m=v?+v[2]:d.message.match(/^Unexpected end of JSON.*/i)?f.length-1:null,g=v?d.message.replace(/^Unexpected token ./,`Unexpected token ${JSON.stringify(v[1])} (${e(v[1])})`):d.message;if(m!=null){const _=m<=p?0:m-p,S=m+p>=f.length?f.length:m+p,C=(_===0?"":"...")+f.slice(_,S)+(S===f.length?"":"...");return{message:g+` while parsing ${f===C?"":"near "}${JSON.stringify(C)}`,position:m}}else return{message:g+` while parsing '${f.slice(0,p*2)}'`,position:0}};class t extends SyntaxError{constructor(f,p,v,m){v=v||20;const g=r(f,p,v);super(g.message),Object.assign(this,g),this.code="EJSONPARSE",this.systemError=f,Error.captureStackTrace(this,m||this.constructor)}get name(){return this.constructor.name}set name(f){}get[Symbol.toStringTag](){return this.constructor.name}}const n=Symbol.for("indent"),a=Symbol.for("newline"),o=/^\s*[{\[]((?:\r?\n)+)([\s\t]*)/,i=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,l=(d,f,p)=>{const v=c(d);p=p||20;try{const[,m=`
206
206
  `,g=" "]=v.match(i)||v.match(o)||[,"",""],_=JSON.parse(v,f);return _&&typeof _=="object"&&(_[a]=m,_[n]=g),_}catch(m){if(typeof d!="string"&&!Buffer.isBuffer(d)){const g=Array.isArray(d)&&d.length===0;throw Object.assign(new TypeError(`Cannot parse ${g?"an empty array":String(d)}`),{code:"EJSONPARSE",systemError:m})}throw new t(m,v,p,l)}},c=d=>String(d).replace(/^\uFEFF/,"");return jsonParseEvenBetterErrors=l,l.JSONParseError=t,l.noExceptions=(d,f)=>{try{return JSON.parse(c(d),f)}catch{}},jsonParseEvenBetterErrors}var build={},hasRequiredBuild;function requireBuild(){return hasRequiredBuild||(hasRequiredBuild=1,function(e){e.__esModule=!0,e.LinesAndColumns=void 0;var r=`
207
207
  `,t="\r",n=function(){function a(o){this.string=o;for(var i=[0],l=0;l<o.length;)switch(o[l]){case r:l+=r.length,i.push(l);break;case t:l+=t.length,o[l]===r&&(l+=r.length),i.push(l);break;default:l++;break}this.offsets=i}return a.prototype.locationForIndex=function(o){if(o<0||o>this.string.length)return null;for(var i=0,l=this.offsets;l[i+1]<=o;)i++;var c=o-l[i];return{line:i,column:c}},a.prototype.indexForLocation=function(o){var i=o.line,l=o.column;return i<0||i>=this.offsets.length||l<0||l>this.lengthOfLine(i)?null:this.offsets[i]+l},a.prototype.lengthOfLine=function(o){var i=this.offsets[o],l=o===this.offsets.length-1?this.string.length:this.offsets[o+1];return l-i},a}();e.LinesAndColumns=n,e.default=n}(build)),build}var lib$2={},lib$1={},jsTokens={},hasRequiredJsTokens;function requireJsTokens(){return hasRequiredJsTokens||(hasRequiredJsTokens=1,Object.defineProperty(jsTokens,"__esModule",{value:!0}),jsTokens.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,jsTokens.matchToToken=function(e){var r={type:"invalid",value:e[0],closed:void 0};return e[1]?(r.type="string",r.closed=!!(e[3]||e[4])):e[5]?r.type="comment":e[6]?(r.type="comment",r.closed=!!e[7]):e[8]?r.type="regex":e[9]?r.type="number":e[10]?r.type="name":e[11]?r.type="punctuator":e[12]&&(r.type="whitespace"),r}),jsTokens}var lib={},identifier={},hasRequiredIdentifier;function requireIdentifier(){if(hasRequiredIdentifier)return identifier;hasRequiredIdentifier=1,Object.defineProperty(identifier,"__esModule",{value:!0}),identifier.isIdentifierChar=c,identifier.isIdentifierName=d,identifier.isIdentifierStart=l;let e="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",r="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const t=new RegExp("["+e+"]"),n=new RegExp("["+e+r+"]");e=r=null;const a=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],o=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function i(f,p){let v=65536;for(let m=0,g=p.length;m<g;m+=2){if(v+=p[m],v>f)return!1;if(v+=p[m+1],v>=f)return!0}return!1}function l(f){return f<65?f===36:f<=90?!0:f<97?f===95:f<=122?!0:f<=65535?f>=170&&t.test(String.fromCharCode(f)):i(f,a)}function c(f){return f<48?f===36:f<58?!0:f<65?!1:f<=90?!0:f<97?f===95:f<=122?!0:f<=65535?f>=170&&n.test(String.fromCharCode(f)):i(f,a)||i(f,o)}function d(f){let p=!0;for(let v=0;v<f.length;v++){let m=f.charCodeAt(v);if((m&64512)===55296&&v+1<f.length){const g=f.charCodeAt(++v);(g&64512)===56320&&(m=65536+((m&1023)<<10)+(g&1023))}if(p){if(p=!1,!l(m))return!1}else if(!c(m))return!1}return!p}return identifier}var keyword={},hasRequiredKeyword;function requireKeyword(){if(hasRequiredKeyword)return keyword;hasRequiredKeyword=1,Object.defineProperty(keyword,"__esModule",{value:!0}),keyword.isKeyword=c,keyword.isReservedWord=a,keyword.isStrictBindOnlyReservedWord=i,keyword.isStrictBindReservedWord=l,keyword.isStrictReservedWord=o;const e={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},r=new Set(e.keyword),t=new Set(e.strict),n=new Set(e.strictBind);function a(d,f){return f&&d==="await"||d==="enum"}function o(d,f){return a(d,f)||t.has(d)}function i(d){return n.has(d)}function l(d,f){return o(d,f)||i(d)}function c(d){return r.has(d)}return keyword}var hasRequiredLib$2;function requireLib$2(){return hasRequiredLib$2||(hasRequiredLib$2=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return r.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return r.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return r.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return t.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return t.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return t.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return t.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return t.isStrictReservedWord}});var r=requireIdentifier(),t=requireKeyword()}(lib)),lib}var picocolors_browser={exports:{}},hasRequiredPicocolors_browser;function requirePicocolors_browser(){if(hasRequiredPicocolors_browser)return picocolors_browser.exports;hasRequiredPicocolors_browser=1;var e=String,r=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return picocolors_browser.exports=r(),picocolors_browser.exports.createColors=r,picocolors_browser.exports}var chalk={exports:{}},escapeStringRegexp,hasRequiredEscapeStringRegexp;function requireEscapeStringRegexp(){if(hasRequiredEscapeStringRegexp)return escapeStringRegexp;hasRequiredEscapeStringRegexp=1;var e=/[|\\{}()[\]^$+*?.]/g;return escapeStringRegexp=function(r){if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(e,"\\$&")},escapeStringRegexp}var ansiStyles={exports:{}},conversions={exports:{}},colorName,hasRequiredColorName;function requireColorName(){return hasRequiredColorName||(hasRequiredColorName=1,colorName={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),colorName}var hasRequiredConversions;function requireConversions(){if(hasRequiredConversions)return conversions.exports;hasRequiredConversions=1;var e=requireColorName(),r={};for(var t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);var n=conversions.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in n)if(n.hasOwnProperty(a)){if(!("channels"in n[a]))throw new Error("missing channels property: "+a);if(!("labels"in n[a]))throw new Error("missing channel labels property: "+a);if(n[a].labels.length!==n[a].channels)throw new Error("channel and label counts mismatch: "+a);var o=n[a].channels,i=n[a].labels;delete n[a].channels,delete n[a].labels,Object.defineProperty(n[a],"channels",{value:o}),Object.defineProperty(n[a],"labels",{value:i})}n.rgb.hsl=function(c){var d=c[0]/255,f=c[1]/255,p=c[2]/255,v=Math.min(d,f,p),m=Math.max(d,f,p),g=m-v,_,S,C;return m===v?_=0:d===m?_=(f-p)/g:f===m?_=2+(p-d)/g:p===m&&(_=4+(d-f)/g),_=Math.min(_*60,360),_<0&&(_+=360),C=(v+m)/2,m===v?S=0:C<=.5?S=g/(m+v):S=g/(2-m-v),[_,S*100,C*100]},n.rgb.hsv=function(c){var d,f,p,v,m,g=c[0]/255,_=c[1]/255,S=c[2]/255,C=Math.max(g,_,S),w=C-Math.min(g,_,S),E=function($){return(C-$)/6/w+1/2};return w===0?v=m=0:(m=w/C,d=E(g),f=E(_),p=E(S),g===C?v=p-f:_===C?v=1/3+d-p:S===C&&(v=2/3+f-d),v<0?v+=1:v>1&&(v-=1)),[v*360,m*100,C*100]},n.rgb.hwb=function(c){var d=c[0],f=c[1],p=c[2],v=n.rgb.hsl(c)[0],m=1/255*Math.min(d,Math.min(f,p));return p=1-1/255*Math.max(d,Math.max(f,p)),[v,m*100,p*100]},n.rgb.cmyk=function(c){var d=c[0]/255,f=c[1]/255,p=c[2]/255,v,m,g,_;return _=Math.min(1-d,1-f,1-p),v=(1-d-_)/(1-_)||0,m=(1-f-_)/(1-_)||0,g=(1-p-_)/(1-_)||0,[v*100,m*100,g*100,_*100]};function l(c,d){return Math.pow(c[0]-d[0],2)+Math.pow(c[1]-d[1],2)+Math.pow(c[2]-d[2],2)}return n.rgb.keyword=function(c){var d=r[c];if(d)return d;var f=1/0,p;for(var v in e)if(e.hasOwnProperty(v)){var m=e[v],g=l(c,m);g<f&&(f=g,p=v)}return p},n.keyword.rgb=function(c){return e[c]},n.rgb.xyz=function(c){var d=c[0]/255,f=c[1]/255,p=c[2]/255;d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92,f=f>.04045?Math.pow((f+.055)/1.055,2.4):f/12.92,p=p>.04045?Math.pow((p+.055)/1.055,2.4):p/12.92;var v=d*.4124+f*.3576+p*.1805,m=d*.2126+f*.7152+p*.0722,g=d*.0193+f*.1192+p*.9505;return[v*100,m*100,g*100]},n.rgb.lab=function(c){var d=n.rgb.xyz(c),f=d[0],p=d[1],v=d[2],m,g,_;return f/=95.047,p/=100,v/=108.883,f=f>.008856?Math.pow(f,1/3):7.787*f+16/116,p=p>.008856?Math.pow(p,1/3):7.787*p+16/116,v=v>.008856?Math.pow(v,1/3):7.787*v+16/116,m=116*p-16,g=500*(f-p),_=200*(p-v),[m,g,_]},n.hsl.rgb=function(c){var d=c[0]/360,f=c[1]/100,p=c[2]/100,v,m,g,_,S;if(f===0)return S=p*255,[S,S,S];p<.5?m=p*(1+f):m=p+f-p*f,v=2*p-m,_=[0,0,0];for(var C=0;C<3;C++)g=d+1/3*-(C-1),g<0&&g++,g>1&&g--,6*g<1?S=v+(m-v)*6*g:2*g<1?S=m:3*g<2?S=v+(m-v)*(2/3-g)*6:S=v,_[C]=S*255;return _},n.hsl.hsv=function(c){var d=c[0],f=c[1]/100,p=c[2]/100,v=f,m=Math.max(p,.01),g,_;return p*=2,f*=p<=1?p:2-p,v*=m<=1?m:2-m,_=(p+f)/2,g=p===0?2*v/(m+v):2*f/(p+f),[d,g*100,_*100]},n.hsv.rgb=function(c){var d=c[0]/60,f=c[1]/100,p=c[2]/100,v=Math.floor(d)%6,m=d-Math.floor(d),g=255*p*(1-f),_=255*p*(1-f*m),S=255*p*(1-f*(1-m));switch(p*=255,v){case 0:return[p,S,g];case 1:return[_,p,g];case 2:return[g,p,S];case 3:return[g,_,p];case 4:return[S,g,p];case 5:return[p,g,_]}},n.hsv.hsl=function(c){var d=c[0],f=c[1]/100,p=c[2]/100,v=Math.max(p,.01),m,g,_;return _=(2-f)*p,m=(2-f)*v,g=f*v,g/=m<=1?m:2-m,g=g||0,_/=2,[d,g*100,_*100]},n.hwb.rgb=function(c){var d=c[0]/360,f=c[1]/100,p=c[2]/100,v=f+p,m,g,_,S;v>1&&(f/=v,p/=v),m=Math.floor(6*d),g=1-p,_=6*d-m,m&1&&(_=1-_),S=f+_*(g-f);var C,w,E;switch(m){default:case 6:case 0:C=g,w=S,E=f;break;case 1:C=S,w=g,E=f;break;case 2:C=f,w=g,E=S;break;case 3:C=f,w=S,E=g;break;case 4:C=S,w=f,E=g;break;case 5:C=g,w=f,E=S;break}return[C*255,w*255,E*255]},n.cmyk.rgb=function(c){var d=c[0]/100,f=c[1]/100,p=c[2]/100,v=c[3]/100,m,g,_;return m=1-Math.min(1,d*(1-v)+v),g=1-Math.min(1,f*(1-v)+v),_=1-Math.min(1,p*(1-v)+v),[m*255,g*255,_*255]},n.xyz.rgb=function(c){var d=c[0]/100,f=c[1]/100,p=c[2]/100,v,m,g;return v=d*3.2406+f*-1.5372+p*-.4986,m=d*-.9689+f*1.8758+p*.0415,g=d*.0557+f*-.204+p*1.057,v=v>.0031308?1.055*Math.pow(v,1/2.4)-.055:v*12.92,m=m>.0031308?1.055*Math.pow(m,1/2.4)-.055:m*12.92,g=g>.0031308?1.055*Math.pow(g,1/2.4)-.055:g*12.92,v=Math.min(Math.max(0,v),1),m=Math.min(Math.max(0,m),1),g=Math.min(Math.max(0,g),1),[v*255,m*255,g*255]},n.xyz.lab=function(c){var d=c[0],f=c[1],p=c[2],v,m,g;return d/=95.047,f/=100,p/=108.883,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,f=f>.008856?Math.pow(f,1/3):7.787*f+16/116,p=p>.008856?Math.pow(p,1/3):7.787*p+16/116,v=116*f-16,m=500*(d-f),g=200*(f-p),[v,m,g]},n.lab.xyz=function(c){var d=c[0],f=c[1],p=c[2],v,m,g;m=(d+16)/116,v=f/500+m,g=m-p/200;var _=Math.pow(m,3),S=Math.pow(v,3),C=Math.pow(g,3);return m=_>.008856?_:(m-16/116)/7.787,v=S>.008856?S:(v-16/116)/7.787,g=C>.008856?C:(g-16/116)/7.787,v*=95.047,m*=100,g*=108.883,[v,m,g]},n.lab.lch=function(c){var d=c[0],f=c[1],p=c[2],v,m,g;return v=Math.atan2(p,f),m=v*360/2/Math.PI,m<0&&(m+=360),g=Math.sqrt(f*f+p*p),[d,g,m]},n.lch.lab=function(c){var d=c[0],f=c[1],p=c[2],v,m,g;return g=p/360*2*Math.PI,v=f*Math.cos(g),m=f*Math.sin(g),[d,v,m]},n.rgb.ansi16=function(c){var d=c[0],f=c[1],p=c[2],v=1 in arguments?arguments[1]:n.rgb.hsv(c)[2];if(v=Math.round(v/50),v===0)return 30;var m=30+(Math.round(p/255)<<2|Math.round(f/255)<<1|Math.round(d/255));return v===2&&(m+=60),m},n.hsv.ansi16=function(c){return n.rgb.ansi16(n.hsv.rgb(c),c[2])},n.rgb.ansi256=function(c){var d=c[0],f=c[1],p=c[2];if(d===f&&f===p)return d<8?16:d>248?231:Math.round((d-8)/247*24)+232;var v=16+36*Math.round(d/255*5)+6*Math.round(f/255*5)+Math.round(p/255*5);return v},n.ansi16.rgb=function(c){var d=c%10;if(d===0||d===7)return c>50&&(d+=3.5),d=d/10.5*255,[d,d,d];var f=(~~(c>50)+1)*.5,p=(d&1)*f*255,v=(d>>1&1)*f*255,m=(d>>2&1)*f*255;return[p,v,m]},n.ansi256.rgb=function(c){if(c>=232){var d=(c-232)*10+8;return[d,d,d]}c-=16;var f,p=Math.floor(c/36)/5*255,v=Math.floor((f=c%36)/6)/5*255,m=f%6/5*255;return[p,v,m]},n.rgb.hex=function(c){var d=((Math.round(c[0])&255)<<16)+((Math.round(c[1])&255)<<8)+(Math.round(c[2])&255),f=d.toString(16).toUpperCase();return"000000".substring(f.length)+f},n.hex.rgb=function(c){var d=c.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!d)return[0,0,0];var f=d[0];d[0].length===3&&(f=f.split("").map(function(_){return _+_}).join(""));var p=parseInt(f,16),v=p>>16&255,m=p>>8&255,g=p&255;return[v,m,g]},n.rgb.hcg=function(c){var d=c[0]/255,f=c[1]/255,p=c[2]/255,v=Math.max(Math.max(d,f),p),m=Math.min(Math.min(d,f),p),g=v-m,_,S;return g<1?_=m/(1-g):_=0,g<=0?S=0:v===d?S=(f-p)/g%6:v===f?S=2+(p-d)/g:S=4+(d-f)/g+4,S/=6,S%=1,[S*360,g*100,_*100]},n.hsl.hcg=function(c){var d=c[1]/100,f=c[2]/100,p=1,v=0;return f<.5?p=2*d*f:p=2*d*(1-f),p<1&&(v=(f-.5*p)/(1-p)),[c[0],p*100,v*100]},n.hsv.hcg=function(c){var d=c[1]/100,f=c[2]/100,p=d*f,v=0;return p<1&&(v=(f-p)/(1-p)),[c[0],p*100,v*100]},n.hcg.rgb=function(c){var d=c[0]/360,f=c[1]/100,p=c[2]/100;if(f===0)return[p*255,p*255,p*255];var v=[0,0,0],m=d%1*6,g=m%1,_=1-g,S=0;switch(Math.floor(m)){case 0:v[0]=1,v[1]=g,v[2]=0;break;case 1:v[0]=_,v[1]=1,v[2]=0;break;case 2:v[0]=0,v[1]=1,v[2]=g;break;case 3:v[0]=0,v[1]=_,v[2]=1;break;case 4:v[0]=g,v[1]=0,v[2]=1;break;default:v[0]=1,v[1]=0,v[2]=_}return S=(1-f)*p,[(f*v[0]+S)*255,(f*v[1]+S)*255,(f*v[2]+S)*255]},n.hcg.hsv=function(c){var d=c[1]/100,f=c[2]/100,p=d+f*(1-d),v=0;return p>0&&(v=d/p),[c[0],v*100,p*100]},n.hcg.hsl=function(c){var d=c[1]/100,f=c[2]/100,p=f*(1-d)+.5*d,v=0;return p>0&&p<.5?v=d/(2*p):p>=.5&&p<1&&(v=d/(2*(1-p))),[c[0],v*100,p*100]},n.hcg.hwb=function(c){var d=c[1]/100,f=c[2]/100,p=d+f*(1-d);return[c[0],(p-d)*100,(1-p)*100]},n.hwb.hcg=function(c){var d=c[1]/100,f=c[2]/100,p=1-f,v=p-d,m=0;return v<1&&(m=(p-v)/(1-v)),[c[0],v*100,m*100]},n.apple.rgb=function(c){return[c[0]/65535*255,c[1]/65535*255,c[2]/65535*255]},n.rgb.apple=function(c){return[c[0]/255*65535,c[1]/255*65535,c[2]/255*65535]},n.gray.rgb=function(c){return[c[0]/100*255,c[0]/100*255,c[0]/100*255]},n.gray.hsl=n.gray.hsv=function(c){return[0,0,c[0]]},n.gray.hwb=function(c){return[0,100,c[0]]},n.gray.cmyk=function(c){return[0,0,0,c[0]]},n.gray.lab=function(c){return[c[0],0,0]},n.gray.hex=function(c){var d=Math.round(c[0]/100*255)&255,f=(d<<16)+(d<<8)+d,p=f.toString(16).toUpperCase();return"000000".substring(p.length)+p},n.rgb.gray=function(c){var d=(c[0]+c[1]+c[2])/3;return[d/255*100]},conversions.exports}var route,hasRequiredRoute;function requireRoute(){if(hasRequiredRoute)return route;hasRequiredRoute=1;var e=requireConversions();function r(){for(var o={},i=Object.keys(e),l=i.length,c=0;c<l;c++)o[i[c]]={distance:-1,parent:null};return o}function t(o){var i=r(),l=[o];for(i[o].distance=0;l.length;)for(var c=l.pop(),d=Object.keys(e[c]),f=d.length,p=0;p<f;p++){var v=d[p],m=i[v];m.distance===-1&&(m.distance=i[c].distance+1,m.parent=c,l.unshift(v))}return i}function n(o,i){return function(l){return i(o(l))}}function a(o,i){for(var l=[i[o].parent,o],c=e[i[o].parent][o],d=i[o].parent;i[d].parent;)l.unshift(i[d].parent),c=n(e[i[d].parent][d],c),d=i[d].parent;return c.conversion=l,c}return route=function(o){for(var i=t(o),l={},c=Object.keys(i),d=c.length,f=0;f<d;f++){var p=c[f],v=i[p];v.parent!==null&&(l[p]=a(p,i))}return l},route}var colorConvert,hasRequiredColorConvert;function requireColorConvert(){if(hasRequiredColorConvert)return colorConvert;hasRequiredColorConvert=1;var e=requireConversions(),r=requireRoute(),t={},n=Object.keys(e);function a(i){var l=function(c){return c==null?c:(arguments.length>1&&(c=Array.prototype.slice.call(arguments)),i(c))};return"conversion"in i&&(l.conversion=i.conversion),l}function o(i){var l=function(c){if(c==null)return c;arguments.length>1&&(c=Array.prototype.slice.call(arguments));var d=i(c);if(typeof d=="object")for(var f=d.length,p=0;p<f;p++)d[p]=Math.round(d[p]);return d};return"conversion"in i&&(l.conversion=i.conversion),l}return n.forEach(function(i){t[i]={},Object.defineProperty(t[i],"channels",{value:e[i].channels}),Object.defineProperty(t[i],"labels",{value:e[i].labels});var l=r(i),c=Object.keys(l);c.forEach(function(d){var f=l[d];t[i][d]=o(f),t[i][d].raw=a(f)})}),colorConvert=t,colorConvert}ansiStyles.exports;var hasRequiredAnsiStyles;function requireAnsiStyles(){return hasRequiredAnsiStyles||(hasRequiredAnsiStyles=1,function(e){const r=requireColorConvert(),t=(i,l)=>function(){return`\x1B[${i.apply(r,arguments)+l}m`},n=(i,l)=>function(){const c=i.apply(r,arguments);return`\x1B[${38+l};5;${c}m`},a=(i,l)=>function(){const c=i.apply(r,arguments);return`\x1B[${38+l};2;${c[0]};${c[1]};${c[2]}m`};function o(){const i=new Map,l={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};l.color.grey=l.color.gray;for(const f of Object.keys(l)){const p=l[f];for(const v of Object.keys(p)){const m=p[v];l[v]={open:`\x1B[${m[0]}m`,close:`\x1B[${m[1]}m`},p[v]=l[v],i.set(m[0],m[1])}Object.defineProperty(l,f,{value:p,enumerable:!1}),Object.defineProperty(l,"codes",{value:i,enumerable:!1})}const c=f=>f,d=(f,p,v)=>[f,p,v];l.color.close="\x1B[39m",l.bgColor.close="\x1B[49m",l.color.ansi={ansi:t(c,0)},l.color.ansi256={ansi256:n(c,0)},l.color.ansi16m={rgb:a(d,0)},l.bgColor.ansi={ansi:t(c,10)},l.bgColor.ansi256={ansi256:n(c,10)},l.bgColor.ansi16m={rgb:a(d,10)};for(let f of Object.keys(r)){if(typeof r[f]!="object")continue;const p=r[f];f==="ansi16"&&(f="ansi"),"ansi16"in p&&(l.color.ansi[f]=t(p.ansi16,0),l.bgColor.ansi[f]=t(p.ansi16,10)),"ansi256"in p&&(l.color.ansi256[f]=n(p.ansi256,0),l.bgColor.ansi256[f]=n(p.ansi256,10)),"rgb"in p&&(l.color.ansi16m[f]=a(p.rgb,0),l.bgColor.ansi16m[f]=a(p.rgb,10))}return l}Object.defineProperty(e,"exports",{enumerable:!0,get:o})}(ansiStyles)),ansiStyles.exports}var browser$2,hasRequiredBrowser$1;function requireBrowser$1(){return hasRequiredBrowser$1||(hasRequiredBrowser$1=1,browser$2={stdout:!1,stderr:!1}),browser$2}var templates,hasRequiredTemplates;function requireTemplates(){if(hasRequiredTemplates)return templates;hasRequiredTemplates=1;const e=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,t=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,n=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
208
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function o(d){return d[0]==="u"&&d.length===5||d[0]==="x"&&d.length===3?String.fromCharCode(parseInt(d.slice(1),16)):a.get(d)||d}function i(d,f){const p=[],v=f.trim().split(/\s*,\s*/g);let m;for(const g of v)if(!isNaN(g))p.push(Number(g));else if(m=g.match(t))p.push(m[2].replace(n,(_,S,C)=>S?o(S):C));else throw new Error(`Invalid Chalk template style argument: ${g} (in style '${d}')`);return p}function l(d){r.lastIndex=0;const f=[];let p;for(;(p=r.exec(d))!==null;){const v=p[1];if(p[2]){const m=i(v,p[2]);f.push([v].concat(m))}else f.push([v])}return f}function c(d,f){const p={};for(const m of f)for(const g of m.styles)p[g[0]]=m.inverse?null:g.slice(1);let v=d;for(const m of Object.keys(p))if(Array.isArray(p[m])){if(!(m in v))throw new Error(`Unknown Chalk style: ${m}`);p[m].length>0?v=v[m].apply(v,p[m]):v=v[m]}return v}return templates=(d,f)=>{const p=[],v=[];let m=[];if(f.replace(e,(g,_,S,C,w,E)=>{if(_)m.push(o(_));else if(C){const $=m.join("");m=[],v.push(p.length===0?$:c(d,p)($)),p.push({inverse:S,styles:l(C)})}else if(w){if(p.length===0)throw new Error("Found extraneous } in Chalk template literal");v.push(c(d,p)(m.join(""))),m=[],p.pop()}else m.push(E)}),v.push(m.join("")),p.length>0){const g=`Chalk template literal is missing ${p.length} closing bracket${p.length===1?"":"s"} (\`}\`)`;throw new Error(g)}return v.join("")},templates}var hasRequiredChalk;function requireChalk(){return hasRequiredChalk||(hasRequiredChalk=1,function(e){var r={ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",JETBRAINS_INTELLIJ_COMMAND_END_MARKER:"ZU98Tjo1s9mdtrKJDjkDGSGGEp5tw63GnQvv7ElLZlCMGXy1aOp9jFhC5BjusZy0",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.7",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-9cb82016;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-49607556;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;;D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\node_modules\\.bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSExecutionPolicyPreference:"Bypass",PSModulePath:"D:\\Users\\martin.taylor\\Documents\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TERMINAL_EMULATOR:"JetBrains-JediTerm",TERM_SESSION_ID:"1ff63cfe-b994-4472-afa5-0ddc6b11b75f",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"};const t=requireEscapeStringRegexp(),n=requireAnsiStyles(),a=requireBrowser$1().stdout,o=requireTemplates(),i=!(r.TERM||"").toLowerCase().startsWith("xterm"),l=["ansi","ansi","ansi256","ansi16m"],c=new Set(["gray"]),d=Object.create(null);function f(S,C){C=C||{};const w=a?a.level:0;S.level=C.level===void 0?w:C.level,S.enabled="enabled"in C?C.enabled:S.level>0}function p(S){if(!this||!(this instanceof p)||this.template){const C={};return f(C,S),C.template=function(){const w=[].slice.call(arguments);return _.apply(null,[C.template].concat(w))},Object.setPrototypeOf(C,p.prototype),Object.setPrototypeOf(C.template,C),C.template.constructor=p,C.template}f(this,S)}i&&(n.blue.open="\x1B[94m");for(const S of Object.keys(n))n[S].closeRe=new RegExp(t(n[S].close),"g"),d[S]={get(){const C=n[S];return m.call(this,this._styles?this._styles.concat(C):[C],this._empty,S)}};d.visible={get(){return m.call(this,this._styles||[],!0,"visible")}},n.color.closeRe=new RegExp(t(n.color.close),"g");for(const S of Object.keys(n.color.ansi))c.has(S)||(d[S]={get(){const C=this.level;return function(){const E={open:n.color[l[C]][S].apply(null,arguments),close:n.color.close,closeRe:n.color.closeRe};return m.call(this,this._styles?this._styles.concat(E):[E],this._empty,S)}}});n.bgColor.closeRe=new RegExp(t(n.bgColor.close),"g");for(const S of Object.keys(n.bgColor.ansi)){if(c.has(S))continue;const C="bg"+S[0].toUpperCase()+S.slice(1);d[C]={get(){const w=this.level;return function(){const $={open:n.bgColor[l[w]][S].apply(null,arguments),close:n.bgColor.close,closeRe:n.bgColor.closeRe};return m.call(this,this._styles?this._styles.concat($):[$],this._empty,S)}}}}const v=Object.defineProperties(()=>{},d);function m(S,C,w){const E=function(){return g.apply(E,arguments)};E._styles=S,E._empty=C;const $=this;return Object.defineProperty(E,"level",{enumerable:!0,get(){return $.level},set(T){$.level=T}}),Object.defineProperty(E,"enabled",{enumerable:!0,get(){return $.enabled},set(T){$.enabled=T}}),E.hasGrey=this.hasGrey||w==="gray"||w==="grey",E.__proto__=v,E}function g(){const S=arguments,C=S.length;let w=String(arguments[0]);if(C===0)return"";if(C>1)for(let $=1;$<C;$++)w+=" "+S[$];if(!this.enabled||this.level<=0||!w)return this._empty?"":w;const E=n.dim.open;i&&this.hasGrey&&(n.dim.open="");for(const $ of this._styles.slice().reverse())w=$.open+w.replace($.closeRe,$.open)+$.close,w=w.replace(/\r?\n/g,`${$.close}$&${$.open}`);return n.dim.open=E,w}function _(S,C){if(!Array.isArray(C))return[].slice.call(arguments,1).join(" ");const w=[].slice.call(arguments,2),E=[C.raw[0]];for(let $=1;$<C.length;$++)E.push(String(w[$-1]).replace(/[{}\\]/g,"\\$&")),E.push(String(C.raw[$]));return o(S,E.join(""))}Object.defineProperties(p.prototype,d),e.exports=p(),e.exports.supportsColor=a,e.exports.default=e.exports}(chalk)),chalk.exports}var hasRequiredLib$1;function requireLib$1(){if(hasRequiredLib$1)return lib$1;hasRequiredLib$1=1;var e={ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",JETBRAINS_INTELLIJ_COMMAND_END_MARKER:"ZU98Tjo1s9mdtrKJDjkDGSGGEp5tw63GnQvv7ElLZlCMGXy1aOp9jFhC5BjusZy0",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.7",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-9cb82016;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-49607556;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;;D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\node_modules\\.bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSExecutionPolicyPreference:"Bypass",PSModulePath:"D:\\Users\\martin.taylor\\Documents\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TERMINAL_EMULATOR:"JetBrains-JediTerm",TERM_SESSION_ID:"1ff63cfe-b994-4472-afa5-0ddc6b11b75f",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"};Object.defineProperty(lib$1,"__esModule",{value:!0}),lib$1.default=C,lib$1.shouldHighlight=g;var r=requireJsTokens(),t=requireLib$2(),n=o(requirePicocolors_browser(),!0);function a(w){if(typeof WeakMap!="function")return null;var E=new WeakMap,$=new WeakMap;return(a=function(T){return T?$:E})(w)}function o(w,E){if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var $=a(E);if($&&$.has(w))return $.get(w);var T={__proto__:null},B=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var R in w)if(R!=="default"&&{}.hasOwnProperty.call(w,R)){var L=B?Object.getOwnPropertyDescriptor(w,R):null;L&&(L.get||L.set)?Object.defineProperty(T,R,L):T[R]=w[R]}return T.default=w,$&&$.set(w,T),T}const i=typeof process=="object"&&(e.FORCE_COLOR==="0"||e.FORCE_COLOR==="false")?(0,n.createColors)(!1):n.default,l=(w,E)=>$=>w(E($)),c=new Set(["as","async","from","get","of","set"]);function d(w){return{keyword:w.cyan,capitalized:w.yellow,jsxIdentifier:w.yellow,punctuator:w.yellow,number:w.magenta,string:w.green,regex:w.magenta,comment:w.gray,invalid:l(l(w.white,w.bgRed),w.bold)}}const f=/\r\n|[\n\r\u2028\u2029]/,p=/^[()[\]{}]$/;let v;{const w=/^[a-z][\w-]*$/i,E=function($,T,B){if($.type==="name"){if((0,t.isKeyword)($.value)||(0,t.isStrictReservedWord)($.value,!0)||c.has($.value))return"keyword";if(w.test($.value)&&(B[T-1]==="<"||B.slice(T-2,T)==="</"))return"jsxIdentifier";if($.value[0]!==$.value[0].toLowerCase())return"capitalized"}return $.type==="punctuator"&&p.test($.value)?"bracket":$.type==="invalid"&&($.value==="@"||$.value==="#")?"punctuator":$.type};v=function*($){let T;for(;T=r.default.exec($);){const B=r.matchToToken(T);yield{type:E(B,T.index,$),value:B.value}}}}function m(w,E){let $="";for(const{type:T,value:B}of v(E)){const R=w[T];R?$+=B.split(f).map(L=>R(L)).join(`
209
- `):$+=B}return $}function g(w){return i.isColorSupported||w.forceColor}let _;function S(w){if(w){var E;return(E=_)!=null||(_=(0,n.createColors)(!0)),_}return i}function C(w,E={}){if(w!==""&&g(E)){const $=d(S(E.forceColor));return m($,w)}else return w}{let w,E;lib$1.getChalk=({forceColor:$})=>{var T;if((T=w)!=null||(w=requireChalk()),$){var B;return(B=E)!=null||(E=new w.constructor({enabled:!0,level:1})),E}return w}}return lib$1}var hasRequiredLib;function requireLib(){if(hasRequiredLib)return lib$2;hasRequiredLib=1;var e={ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",JETBRAINS_INTELLIJ_COMMAND_END_MARKER:"ZU98Tjo1s9mdtrKJDjkDGSGGEp5tw63GnQvv7ElLZlCMGXy1aOp9jFhC5BjusZy0",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.7",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-9cb82016;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-49607556;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;;D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\node_modules\\.bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSExecutionPolicyPreference:"Bypass",PSModulePath:"D:\\Users\\martin.taylor\\Documents\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TERMINAL_EMULATOR:"JetBrains-JediTerm",TERM_SESSION_ID:"1ff63cfe-b994-4472-afa5-0ddc6b11b75f",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"};Object.defineProperty(lib$2,"__esModule",{value:!0}),lib$2.codeFrameColumns=m,lib$2.default=g;var r=requireLib$1(),t=a(requirePicocolors_browser(),!0);function n(_){if(typeof WeakMap!="function")return null;var S=new WeakMap,C=new WeakMap;return(n=function(w){return w?C:S})(_)}function a(_,S){if(_===null||typeof _!="object"&&typeof _!="function")return{default:_};var C=n(S);if(C&&C.has(_))return C.get(_);var w={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in _)if($!=="default"&&Object.prototype.hasOwnProperty.call(_,$)){var T=E?Object.getOwnPropertyDescriptor(_,$):null;T&&(T.get||T.set)?Object.defineProperty(w,$,T):w[$]=_[$]}return w.default=_,C&&C.set(_,w),w}const o=typeof process=="object"&&(e.FORCE_COLOR==="0"||e.FORCE_COLOR==="false")?(0,t.createColors)(!1):t.default,i=(_,S)=>C=>_(S(C));let l;function c(_){if(_){var S;return(S=l)!=null||(l=(0,t.createColors)(!0)),l}return o}let d=!1;function f(_){return{gutter:_.gray,marker:i(_.red,_.bold),message:i(_.red,_.bold)}}const p=/\r\n|[\n\r\u2028\u2029]/;function v(_,S,C){const w=Object.assign({column:0,line:-1},_.start),E=Object.assign({},w,_.end),{linesAbove:$=2,linesBelow:T=3}=C||{},B=w.line,R=w.column,L=E.line,te=E.column;let oe=Math.max(B-($+1),0),Q=Math.min(S.length,L+T);B===-1&&(oe=0),L===-1&&(Q=S.length);const ce=L-B,Y={};if(ce)for(let ne=0;ne<=ce;ne++){const ge=ne+B;if(!R)Y[ge]=!0;else if(ne===0){const me=S[ge-1].length;Y[ge]=[R,me-R+1]}else if(ne===ce)Y[ge]=[0,te];else{const me=S[ge-ne].length;Y[ge]=[0,me]}}else R===te?R?Y[B]=[R,0]:Y[B]=!0:Y[B]=[R,te-R];return{start:oe,end:Q,markerLines:Y}}function m(_,S,C={}){const w=(C.highlightCode||C.forceColor)&&(0,r.shouldHighlight)(C),E=c(C.forceColor),$=f(E),T=(ne,ge)=>w?ne(ge):ge,B=_.split(p),{start:R,end:L,markerLines:te}=v(S,B,C),oe=S.start&&typeof S.start.column=="number",Q=String(L).length;let Y=(w?(0,r.default)(_,C):_).split(p,L).slice(R,L).map((ne,ge)=>{const me=R+1+ge,A=` ${` ${me}`.slice(-Q)} |`,F=te[me],j=!te[me+1];if(F){let Z="";if(Array.isArray(F)){const fe=ne.slice(0,Math.max(F[0]-1,0)).replace(/[^\t]/g," "),O=F[1]||1;Z=[`
210
- `,T($.gutter,A.replace(/\d/g," "))," ",fe,T($.marker,"^").repeat(O)].join(""),j&&C.message&&(Z+=" "+T($.message,C.message))}return[T($.marker,">"),T($.gutter,A),ne.length>0?` ${ne}`:"",Z].join("")}else return` ${T($.gutter,A)}${ne.length>0?` ${ne}`:""}`}).join(`
211
- `);return C.message&&!oe&&(Y=`${" ".repeat(Q+1)}${C.message}
212
- ${Y}`),w?E.reset(Y):Y}function g(_,S,C,w={}){if(!d){d=!0;const $="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning($,"DeprecationWarning");else{const T=new Error($);T.name="DeprecationWarning",console.warn(new Error($))}}return C=Math.max(C,0),m(_,{start:{column:C,line:S}},w)}return lib$2}var parseJson_1,hasRequiredParseJson;function requireParseJson(){if(hasRequiredParseJson)return parseJson_1;hasRequiredParseJson=1;const e=requireErrorEx(),r=requireJsonParseEvenBetterErrors(),{default:t}=requireBuild(),{codeFrameColumns:n}=requireLib(),a=e("JSONError",{fileName:e.append("in %s"),codeFrame:e.append(`
208
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function o(d){return d[0]==="u"&&d.length===5||d[0]==="x"&&d.length===3?String.fromCharCode(parseInt(d.slice(1),16)):a.get(d)||d}function i(d,f){const p=[],v=f.trim().split(/\s*,\s*/g);let m;for(const g of v)if(!isNaN(g))p.push(Number(g));else if(m=g.match(t))p.push(m[2].replace(n,(_,S,C)=>S?o(S):C));else throw new Error(`Invalid Chalk template style argument: ${g} (in style '${d}')`);return p}function l(d){r.lastIndex=0;const f=[];let p;for(;(p=r.exec(d))!==null;){const v=p[1];if(p[2]){const m=i(v,p[2]);f.push([v].concat(m))}else f.push([v])}return f}function c(d,f){const p={};for(const m of f)for(const g of m.styles)p[g[0]]=m.inverse?null:g.slice(1);let v=d;for(const m of Object.keys(p))if(Array.isArray(p[m])){if(!(m in v))throw new Error(`Unknown Chalk style: ${m}`);p[m].length>0?v=v[m].apply(v,p[m]):v=v[m]}return v}return templates=(d,f)=>{const p=[],v=[];let m=[];if(f.replace(e,(g,_,S,C,w,E)=>{if(_)m.push(o(_));else if(C){const $=m.join("");m=[],v.push(p.length===0?$:c(d,p)($)),p.push({inverse:S,styles:l(C)})}else if(w){if(p.length===0)throw new Error("Found extraneous } in Chalk template literal");v.push(c(d,p)(m.join(""))),m=[],p.pop()}else m.push(E)}),v.push(m.join("")),p.length>0){const g=`Chalk template literal is missing ${p.length} closing bracket${p.length===1?"":"s"} (\`}\`)`;throw new Error(g)}return v.join("")},templates}var hasRequiredChalk;function requireChalk(){return hasRequiredChalk||(hasRequiredChalk=1,function(e){var r={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.8",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-59948a58;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-de2eadd7;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"};const t=requireEscapeStringRegexp(),n=requireAnsiStyles(),a=requireBrowser$1().stdout,o=requireTemplates(),i=!(r.TERM||"").toLowerCase().startsWith("xterm"),l=["ansi","ansi","ansi256","ansi16m"],c=new Set(["gray"]),d=Object.create(null);function f(S,C){C=C||{};const w=a?a.level:0;S.level=C.level===void 0?w:C.level,S.enabled="enabled"in C?C.enabled:S.level>0}function p(S){if(!this||!(this instanceof p)||this.template){const C={};return f(C,S),C.template=function(){const w=[].slice.call(arguments);return _.apply(null,[C.template].concat(w))},Object.setPrototypeOf(C,p.prototype),Object.setPrototypeOf(C.template,C),C.template.constructor=p,C.template}f(this,S)}i&&(n.blue.open="\x1B[94m");for(const S of Object.keys(n))n[S].closeRe=new RegExp(t(n[S].close),"g"),d[S]={get(){const C=n[S];return m.call(this,this._styles?this._styles.concat(C):[C],this._empty,S)}};d.visible={get(){return m.call(this,this._styles||[],!0,"visible")}},n.color.closeRe=new RegExp(t(n.color.close),"g");for(const S of Object.keys(n.color.ansi))c.has(S)||(d[S]={get(){const C=this.level;return function(){const E={open:n.color[l[C]][S].apply(null,arguments),close:n.color.close,closeRe:n.color.closeRe};return m.call(this,this._styles?this._styles.concat(E):[E],this._empty,S)}}});n.bgColor.closeRe=new RegExp(t(n.bgColor.close),"g");for(const S of Object.keys(n.bgColor.ansi)){if(c.has(S))continue;const C="bg"+S[0].toUpperCase()+S.slice(1);d[C]={get(){const w=this.level;return function(){const $={open:n.bgColor[l[w]][S].apply(null,arguments),close:n.bgColor.close,closeRe:n.bgColor.closeRe};return m.call(this,this._styles?this._styles.concat($):[$],this._empty,S)}}}}const v=Object.defineProperties(()=>{},d);function m(S,C,w){const E=function(){return g.apply(E,arguments)};E._styles=S,E._empty=C;const $=this;return Object.defineProperty(E,"level",{enumerable:!0,get(){return $.level},set(T){$.level=T}}),Object.defineProperty(E,"enabled",{enumerable:!0,get(){return $.enabled},set(T){$.enabled=T}}),E.hasGrey=this.hasGrey||w==="gray"||w==="grey",E.__proto__=v,E}function g(){const S=arguments,C=S.length;let w=String(arguments[0]);if(C===0)return"";if(C>1)for(let $=1;$<C;$++)w+=" "+S[$];if(!this.enabled||this.level<=0||!w)return this._empty?"":w;const E=n.dim.open;i&&this.hasGrey&&(n.dim.open="");for(const $ of this._styles.slice().reverse())w=$.open+w.replace($.closeRe,$.open)+$.close,w=w.replace(/\r?\n/g,`${$.close}$&${$.open}`);return n.dim.open=E,w}function _(S,C){if(!Array.isArray(C))return[].slice.call(arguments,1).join(" ");const w=[].slice.call(arguments,2),E=[C.raw[0]];for(let $=1;$<C.length;$++)E.push(String(w[$-1]).replace(/[{}\\]/g,"\\$&")),E.push(String(C.raw[$]));return o(S,E.join(""))}Object.defineProperties(p.prototype,d),e.exports=p(),e.exports.supportsColor=a,e.exports.default=e.exports}(chalk)),chalk.exports}var hasRequiredLib$1;function requireLib$1(){if(hasRequiredLib$1)return lib$1;hasRequiredLib$1=1;var e={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.8",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-59948a58;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-de2eadd7;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"};Object.defineProperty(lib$1,"__esModule",{value:!0}),lib$1.default=C,lib$1.shouldHighlight=g;var r=requireJsTokens(),t=requireLib$2(),n=o(requirePicocolors_browser(),!0);function a(w){if(typeof WeakMap!="function")return null;var E=new WeakMap,$=new WeakMap;return(a=function(T){return T?$:E})(w)}function o(w,E){if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var $=a(E);if($&&$.has(w))return $.get(w);var T={__proto__:null},B=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var R in w)if(R!=="default"&&{}.hasOwnProperty.call(w,R)){var L=B?Object.getOwnPropertyDescriptor(w,R):null;L&&(L.get||L.set)?Object.defineProperty(T,R,L):T[R]=w[R]}return T.default=w,$&&$.set(w,T),T}const i=typeof process=="object"&&(e.FORCE_COLOR==="0"||e.FORCE_COLOR==="false")?(0,n.createColors)(!1):n.default,l=(w,E)=>$=>w(E($)),c=new Set(["as","async","from","get","of","set"]);function d(w){return{keyword:w.cyan,capitalized:w.yellow,jsxIdentifier:w.yellow,punctuator:w.yellow,number:w.magenta,string:w.green,regex:w.magenta,comment:w.gray,invalid:l(l(w.white,w.bgRed),w.bold)}}const f=/\r\n|[\n\r\u2028\u2029]/,p=/^[()[\]{}]$/;let v;{const w=/^[a-z][\w-]*$/i,E=function($,T,B){if($.type==="name"){if((0,t.isKeyword)($.value)||(0,t.isStrictReservedWord)($.value,!0)||c.has($.value))return"keyword";if(w.test($.value)&&(B[T-1]==="<"||B.slice(T-2,T)==="</"))return"jsxIdentifier";if($.value[0]!==$.value[0].toLowerCase())return"capitalized"}return $.type==="punctuator"&&p.test($.value)?"bracket":$.type==="invalid"&&($.value==="@"||$.value==="#")?"punctuator":$.type};v=function*($){let T;for(;T=r.default.exec($);){const B=r.matchToToken(T);yield{type:E(B,T.index,$),value:B.value}}}}function m(w,E){let $="";for(const{type:T,value:B}of v(E)){const R=w[T];R?$+=B.split(f).map(L=>R(L)).join(`
209
+ `):$+=B}return $}function g(w){return i.isColorSupported||w.forceColor}let _;function S(w){if(w){var E;return(E=_)!=null||(_=(0,n.createColors)(!0)),_}return i}function C(w,E={}){if(w!==""&&g(E)){const $=d(S(E.forceColor));return m($,w)}else return w}{let w,E;lib$1.getChalk=({forceColor:$})=>{var T;if((T=w)!=null||(w=requireChalk()),$){var B;return(B=E)!=null||(E=new w.constructor({enabled:!0,level:1})),E}return w}}return lib$1}var hasRequiredLib;function requireLib(){if(hasRequiredLib)return lib$2;hasRequiredLib=1;var e={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.8",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-59948a58;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-de2eadd7;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"};Object.defineProperty(lib$2,"__esModule",{value:!0}),lib$2.codeFrameColumns=m,lib$2.default=g;var r=requireLib$1(),t=a(requirePicocolors_browser(),!0);function n(_){if(typeof WeakMap!="function")return null;var S=new WeakMap,C=new WeakMap;return(n=function(w){return w?C:S})(_)}function a(_,S){if(_===null||typeof _!="object"&&typeof _!="function")return{default:_};var C=n(S);if(C&&C.has(_))return C.get(_);var w={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in _)if($!=="default"&&Object.prototype.hasOwnProperty.call(_,$)){var T=E?Object.getOwnPropertyDescriptor(_,$):null;T&&(T.get||T.set)?Object.defineProperty(w,$,T):w[$]=_[$]}return w.default=_,C&&C.set(_,w),w}const o=typeof process=="object"&&(e.FORCE_COLOR==="0"||e.FORCE_COLOR==="false")?(0,t.createColors)(!1):t.default,i=(_,S)=>C=>_(S(C));let l;function c(_){if(_){var S;return(S=l)!=null||(l=(0,t.createColors)(!0)),l}return o}let d=!1;function f(_){return{gutter:_.gray,marker:i(_.red,_.bold),message:i(_.red,_.bold)}}const p=/\r\n|[\n\r\u2028\u2029]/;function v(_,S,C){const w=Object.assign({column:0,line:-1},_.start),E=Object.assign({},w,_.end),{linesAbove:$=2,linesBelow:T=3}=C||{},B=w.line,R=w.column,L=E.line,te=E.column;let oe=Math.max(B-($+1),0),Q=Math.min(S.length,L+T);B===-1&&(oe=0),L===-1&&(Q=S.length);const ce=L-B,J={};if(ce)for(let ne=0;ne<=ce;ne++){const ge=ne+B;if(!R)J[ge]=!0;else if(ne===0){const me=S[ge-1].length;J[ge]=[R,me-R+1]}else if(ne===ce)J[ge]=[0,te];else{const me=S[ge-ne].length;J[ge]=[0,me]}}else R===te?R?J[B]=[R,0]:J[B]=!0:J[B]=[R,te-R];return{start:oe,end:Q,markerLines:J}}function m(_,S,C={}){const w=(C.highlightCode||C.forceColor)&&(0,r.shouldHighlight)(C),E=c(C.forceColor),$=f(E),T=(ne,ge)=>w?ne(ge):ge,B=_.split(p),{start:R,end:L,markerLines:te}=v(S,B,C),oe=S.start&&typeof S.start.column=="number",Q=String(L).length;let J=(w?(0,r.default)(_,C):_).split(p,L).slice(R,L).map((ne,ge)=>{const me=R+1+ge,A=` ${` ${me}`.slice(-Q)} |`,F=te[me],W=!te[me+1];if(F){let X="";if(Array.isArray(F)){const fe=ne.slice(0,Math.max(F[0]-1,0)).replace(/[^\t]/g," "),O=F[1]||1;X=[`
210
+ `,T($.gutter,A.replace(/\d/g," "))," ",fe,T($.marker,"^").repeat(O)].join(""),W&&C.message&&(X+=" "+T($.message,C.message))}return[T($.marker,">"),T($.gutter,A),ne.length>0?` ${ne}`:"",X].join("")}else return` ${T($.gutter,A)}${ne.length>0?` ${ne}`:""}`}).join(`
211
+ `);return C.message&&!oe&&(J=`${" ".repeat(Q+1)}${C.message}
212
+ ${J}`),w?E.reset(J):J}function g(_,S,C,w={}){if(!d){d=!0;const $="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning($,"DeprecationWarning");else{const T=new Error($);T.name="DeprecationWarning",console.warn(new Error($))}}return C=Math.max(C,0),m(_,{start:{column:C,line:S}},w)}return lib$2}var parseJson_1,hasRequiredParseJson;function requireParseJson(){if(hasRequiredParseJson)return parseJson_1;hasRequiredParseJson=1;const e=requireErrorEx(),r=requireJsonParseEvenBetterErrors(),{default:t}=requireBuild(),{codeFrameColumns:n}=requireLib(),a=e("JSONError",{fileName:e.append("in %s"),codeFrame:e.append(`
213
213
 
214
214
  %s
215
215
  `)}),o=(i,l,c)=>{typeof l=="string"&&(c=l,l=null);try{try{return JSON.parse(i,l)}catch(d){throw r(i,l),d}}catch(d){d.message=d.message.replace(/\n/g,"");const f=d.message.match(/in JSON at position (\d+) while parsing/),p=new a(d);if(c&&(p.fileName=c),f&&f.length>0){const v=new t(i),m=Number(f[1]),g=v.locationForIndex(m),_=n(i,{start:{line:g.line+1,column:g.column+1}},{highlightCode:!0});p.codeFrame=_}throw p}};return o.JSONError=a,parseJson_1=o,parseJson_1}function _typeof(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(r){return typeof r}:_typeof=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof(e)}function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),e}function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _inherits(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&_setPrototypeOf(e,r)}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(e)}function _setPrototypeOf(e,r){return _setPrototypeOf=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},_setPrototypeOf(e,r)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(e,r,t){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(a,o,i){var l=[null];l.push.apply(l,o);var c=Function.bind.apply(a,l),d=new c;return i&&_setPrototypeOf(d,i.prototype),d},_construct.apply(null,arguments)}function _isNativeFunction(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _wrapNativeSuper(e){var r=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(n){if(n===null||!_isNativeFunction(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(n))return r.get(n);r.set(n,a)}function a(){return _construct(n,arguments,_getPrototypeOf(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(a,n)},_wrapNativeSuper(e)}function _assertThisInitialized(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn(e,r){return r&&(typeof r=="object"||typeof r=="function")?r:_assertThisInitialized(e)}function _createSuper(e){var r=_isNativeReflectConstruct();return function(){var n=_getPrototypeOf(e),a;if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _superPropBase(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&(e=_getPrototypeOf(e),e!==null););return e}function _get(e,r,t){return typeof Reflect<"u"&&Reflect.get?_get=Reflect.get:_get=function(a,o,i){var l=_superPropBase(a,o);if(l){var c=Object.getOwnPropertyDescriptor(l,o);return c.get?c.get.call(i):c.value}},_get(e,r,t||e)}function _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray(e,r)||_nonIterableRest()}function _toArray(e){return _arrayWithHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableRest()}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArray(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _iterableToArrayLimit(e,r){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var t=[],n=!0,a=!1,o=void 0;try{for(var i=e[Symbol.iterator](),l;!(n=(l=i.next()).done)&&(t.push(l.value),!(r&&t.length===r));n=!0);}catch(c){a=!0,o=c}finally{try{!n&&i.return!=null&&i.return()}finally{if(a)throw o}}return t}}function _unsupportedIterableToArray(e,r){if(e){if(typeof e=="string")return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray(e,r)}}function _arrayLikeToArray(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -303,11 +303,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
303
303
  `)},t}function addCommentBefore(e,r,t){if(!t)return e;var n=t.replace(/[\s\S]^/gm,"$&".concat(r,"#"));return"#".concat(n,`
304
304
  `).concat(r).concat(e)}function addComment(e,r,t){return t?t.indexOf(`
305
305
  `)===-1?"".concat(e," #").concat(t):"".concat(e,`
306
- `)+t.replace(/^/gm,"".concat(r||"","#")):e}var Node=function e(){_classCallCheck(this,e)};function toJSON(e,r,t){if(Array.isArray(e))return e.map(function(o,i){return toJSON(o,String(i),t)});if(e&&typeof e.toJSON=="function"){var n=t&&t.anchors&&t.anchors.get(e);n&&(t.onCreate=function(o){n.res=o,delete t.onCreate});var a=e.toJSON(r,t);return n&&t.onCreate&&t.onCreate(a),a}return(!t||!t.keep)&&typeof e=="bigint"?Number(e):e}var Scalar=function(e){_inherits(t,e);var r=_createSuper(t);function t(n){var a;return _classCallCheck(this,t),a=r.call(this),a.value=n,a}return _createClass(t,[{key:"toJSON",value:function(a,o){return o&&o.keep?this.value:toJSON(this.value,a,o)}},{key:"toString",value:function(){return String(this.value)}}]),t}(Node);function collectionFromPath(e,r,t){for(var n=t,a=r.length-1;a>=0;--a){var o=r[a];if(Number.isInteger(o)&&o>=0){var i=[];i[o]=n,n=i}else{var l={};Object.defineProperty(l,o,{value:n,writable:!0,enumerable:!0,configurable:!0}),n=l}}return e.createNode(n,!1)}var isEmptyPath=function e(r){return r==null||_typeof(r)==="object"&&r[Symbol.iterator]().next().done},Collection=function(e){_inherits(t,e);var r=_createSuper(t);function t(n){var a;return _classCallCheck(this,t),a=r.call(this),_defineProperty(_assertThisInitialized(a),"items",[]),a.schema=n,a}return _createClass(t,[{key:"addIn",value:function(a,o){if(isEmptyPath(a))this.add(o);else{var i=_toArray(a),l=i[0],c=i.slice(1),d=this.get(l,!0);if(d instanceof t)d.addIn(c,o);else if(d===void 0&&this.schema)this.set(l,collectionFromPath(this.schema,c,o));else throw new Error("Expected YAML collection at ".concat(l,". Remaining path: ").concat(c))}}},{key:"deleteIn",value:function(a){var o=_toArray(a),i=o[0],l=o.slice(1);if(l.length===0)return this.delete(i);var c=this.get(i,!0);if(c instanceof t)return c.deleteIn(l);throw new Error("Expected YAML collection at ".concat(i,". Remaining path: ").concat(l))}},{key:"getIn",value:function(a,o){var i=_toArray(a),l=i[0],c=i.slice(1),d=this.get(l,!0);return c.length===0?!o&&d instanceof Scalar?d.value:d:d instanceof t?d.getIn(c,o):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every(function(a){if(!a||a.type!=="PAIR")return!1;var o=a.value;return o==null||o instanceof Scalar&&o.value==null&&!o.commentBefore&&!o.comment&&!o.tag})}},{key:"hasIn",value:function(a){var o=_toArray(a),i=o[0],l=o.slice(1);if(l.length===0)return this.has(i);var c=this.get(i,!0);return c instanceof t?c.hasIn(l):!1}},{key:"setIn",value:function(a,o){var i=_toArray(a),l=i[0],c=i.slice(1);if(c.length===0)this.set(l,o);else{var d=this.get(l,!0);if(d instanceof t)d.setIn(c,o);else if(d===void 0&&this.schema)this.set(l,collectionFromPath(this.schema,c,o));else throw new Error("Expected YAML collection at ".concat(l,". Remaining path: ").concat(c))}}},{key:"toJSON",value:function(){return null}},{key:"toString",value:function(a,o,i,l){var c=this,d=o.blockItem,f=o.flowChars,p=o.isMap,v=o.itemIndent,m=a,g=m.indent,_=m.indentStep,S=m.stringify,C=this.type===Type.FLOW_MAP||this.type===Type.FLOW_SEQ||a.inFlow;C&&(v+=_);var w=p&&this.hasAllNullValues();a=Object.assign({},a,{allNullValues:w,indent:v,inFlow:C,type:null});var E=!1,$=!1,T=this.items.reduce(function(de,A,F){var j;A&&(!E&&A.spaceBefore&&de.push({type:"comment",str:""}),A.commentBefore&&A.commentBefore.match(/^.*$/gm).forEach(function(fe){de.push({type:"comment",str:"#".concat(fe)})}),A.comment&&(j=A.comment),C&&(!E&&A.spaceBefore||A.commentBefore||A.comment||A.key&&(A.key.commentBefore||A.key.comment)||A.value&&(A.value.commentBefore||A.value.comment))&&($=!0)),E=!1;var Z=S(A,a,function(){return j=null},function(){return E=!0});return C&&!$&&Z.includes(`
307
- `)&&($=!0),C&&F<c.items.length-1&&(Z+=","),Z=addComment(Z,v,j),E&&(j||C)&&(E=!1),de.push({type:"item",str:Z}),de},[]),B;if(T.length===0)B=f.start+f.end;else if(C){var R=f.start,L=f.end,te=T.map(function(de){return de.str});if($||te.reduce(function(de,A){return de+A.length+2},2)>t.maxFlowStringSingleLineLength){B=R;var oe=_createForOfIteratorHelper(te),Q;try{for(oe.s();!(Q=oe.n()).done;){var ce=Q.value;B+=ce?`
306
+ `)+t.replace(/^/gm,"".concat(r||"","#")):e}var Node=function e(){_classCallCheck(this,e)};function toJSON(e,r,t){if(Array.isArray(e))return e.map(function(o,i){return toJSON(o,String(i),t)});if(e&&typeof e.toJSON=="function"){var n=t&&t.anchors&&t.anchors.get(e);n&&(t.onCreate=function(o){n.res=o,delete t.onCreate});var a=e.toJSON(r,t);return n&&t.onCreate&&t.onCreate(a),a}return(!t||!t.keep)&&typeof e=="bigint"?Number(e):e}var Scalar=function(e){_inherits(t,e);var r=_createSuper(t);function t(n){var a;return _classCallCheck(this,t),a=r.call(this),a.value=n,a}return _createClass(t,[{key:"toJSON",value:function(a,o){return o&&o.keep?this.value:toJSON(this.value,a,o)}},{key:"toString",value:function(){return String(this.value)}}]),t}(Node);function collectionFromPath(e,r,t){for(var n=t,a=r.length-1;a>=0;--a){var o=r[a];if(Number.isInteger(o)&&o>=0){var i=[];i[o]=n,n=i}else{var l={};Object.defineProperty(l,o,{value:n,writable:!0,enumerable:!0,configurable:!0}),n=l}}return e.createNode(n,!1)}var isEmptyPath=function e(r){return r==null||_typeof(r)==="object"&&r[Symbol.iterator]().next().done},Collection=function(e){_inherits(t,e);var r=_createSuper(t);function t(n){var a;return _classCallCheck(this,t),a=r.call(this),_defineProperty(_assertThisInitialized(a),"items",[]),a.schema=n,a}return _createClass(t,[{key:"addIn",value:function(a,o){if(isEmptyPath(a))this.add(o);else{var i=_toArray(a),l=i[0],c=i.slice(1),d=this.get(l,!0);if(d instanceof t)d.addIn(c,o);else if(d===void 0&&this.schema)this.set(l,collectionFromPath(this.schema,c,o));else throw new Error("Expected YAML collection at ".concat(l,". Remaining path: ").concat(c))}}},{key:"deleteIn",value:function(a){var o=_toArray(a),i=o[0],l=o.slice(1);if(l.length===0)return this.delete(i);var c=this.get(i,!0);if(c instanceof t)return c.deleteIn(l);throw new Error("Expected YAML collection at ".concat(i,". Remaining path: ").concat(l))}},{key:"getIn",value:function(a,o){var i=_toArray(a),l=i[0],c=i.slice(1),d=this.get(l,!0);return c.length===0?!o&&d instanceof Scalar?d.value:d:d instanceof t?d.getIn(c,o):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every(function(a){if(!a||a.type!=="PAIR")return!1;var o=a.value;return o==null||o instanceof Scalar&&o.value==null&&!o.commentBefore&&!o.comment&&!o.tag})}},{key:"hasIn",value:function(a){var o=_toArray(a),i=o[0],l=o.slice(1);if(l.length===0)return this.has(i);var c=this.get(i,!0);return c instanceof t?c.hasIn(l):!1}},{key:"setIn",value:function(a,o){var i=_toArray(a),l=i[0],c=i.slice(1);if(c.length===0)this.set(l,o);else{var d=this.get(l,!0);if(d instanceof t)d.setIn(c,o);else if(d===void 0&&this.schema)this.set(l,collectionFromPath(this.schema,c,o));else throw new Error("Expected YAML collection at ".concat(l,". Remaining path: ").concat(c))}}},{key:"toJSON",value:function(){return null}},{key:"toString",value:function(a,o,i,l){var c=this,d=o.blockItem,f=o.flowChars,p=o.isMap,v=o.itemIndent,m=a,g=m.indent,_=m.indentStep,S=m.stringify,C=this.type===Type.FLOW_MAP||this.type===Type.FLOW_SEQ||a.inFlow;C&&(v+=_);var w=p&&this.hasAllNullValues();a=Object.assign({},a,{allNullValues:w,indent:v,inFlow:C,type:null});var E=!1,$=!1,T=this.items.reduce(function(de,A,F){var W;A&&(!E&&A.spaceBefore&&de.push({type:"comment",str:""}),A.commentBefore&&A.commentBefore.match(/^.*$/gm).forEach(function(fe){de.push({type:"comment",str:"#".concat(fe)})}),A.comment&&(W=A.comment),C&&(!E&&A.spaceBefore||A.commentBefore||A.comment||A.key&&(A.key.commentBefore||A.key.comment)||A.value&&(A.value.commentBefore||A.value.comment))&&($=!0)),E=!1;var X=S(A,a,function(){return W=null},function(){return E=!0});return C&&!$&&X.includes(`
307
+ `)&&($=!0),C&&F<c.items.length-1&&(X+=","),X=addComment(X,v,W),E&&(W||C)&&(E=!1),de.push({type:"item",str:X}),de},[]),B;if(T.length===0)B=f.start+f.end;else if(C){var R=f.start,L=f.end,te=T.map(function(de){return de.str});if($||te.reduce(function(de,A){return de+A.length+2},2)>t.maxFlowStringSingleLineLength){B=R;var oe=_createForOfIteratorHelper(te),Q;try{for(oe.s();!(Q=oe.n()).done;){var ce=Q.value;B+=ce?`
308
308
  `.concat(_).concat(g).concat(ce):`
309
309
  `}}catch(de){oe.e(de)}finally{oe.f()}B+=`
310
- `.concat(g).concat(L)}else B="".concat(R," ").concat(te.join(" ")," ").concat(L)}else{var Y=T.map(d);B=Y.shift();var ne=_createForOfIteratorHelper(Y),ge;try{for(ne.s();!(ge=ne.n()).done;){var me=ge.value;B+=me?`
310
+ `.concat(g).concat(L)}else B="".concat(R," ").concat(te.join(" ")," ").concat(L)}else{var J=T.map(d);B=J.shift();var ne=_createForOfIteratorHelper(J),ge;try{for(ne.s();!(ge=ne.n()).done;){var me=ge.value;B+=me?`
311
311
  `.concat(g).concat(me):`
312
312
  `}}catch(de){ne.e(de)}finally{ne.f()}}return this.comment?(B+=`
313
313
  `+this.comment.replace(/^/gm,"".concat(g,"#")),i&&i()):E&&l&&l(),B}}]),t}(Node);_defineProperty(Collection,"maxFlowStringSingleLineLength",60);function asItemIndex(e){var r=e instanceof Scalar?e.value:e;return r&&typeof r=="string"&&(r=Number(r)),Number.isInteger(r)&&r>=0?r:null}var YAMLSeq=function(e){_inherits(t,e);var r=_createSuper(t);function t(){return _classCallCheck(this,t),r.apply(this,arguments)}return _createClass(t,[{key:"add",value:function(a){this.items.push(a)}},{key:"delete",value:function(a){var o=asItemIndex(a);if(typeof o!="number")return!1;var i=this.items.splice(o,1);return i.length>0}},{key:"get",value:function(a,o){var i=asItemIndex(a);if(typeof i=="number"){var l=this.items[i];return!o&&l instanceof Scalar?l.value:l}}},{key:"has",value:function(a){var o=asItemIndex(a);return typeof o=="number"&&o<this.items.length}},{key:"set",value:function(a,o){var i=asItemIndex(a);if(typeof i!="number")throw new Error("Expected a valid index, not ".concat(a,"."));this.items[i]=o}},{key:"toJSON",value:function(a,o){var i=[];o&&o.onCreate&&o.onCreate(i);var l=0,c=_createForOfIteratorHelper(this.items),d;try{for(c.s();!(d=c.n()).done;){var f=d.value;i.push(toJSON(f,String(l++),o))}}catch(p){c.e(p)}finally{c.f()}return i}},{key:"toString",value:function(a,o,i){return a?_get(_getPrototypeOf(t.prototype),"toString",this).call(this,a,{blockItem:function(c){return c.type==="comment"?c.str:"- ".concat(c.str)},flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(a.indent||"")+" "},o,i):JSON.stringify(this)}}]),t}(Collection),stringifyKey=function e(r,t,n){return t===null?"":_typeof(t)!=="object"?String(t):r instanceof Node&&n&&n.doc?r.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(t)},Pair=function(e){_inherits(t,e);var r=_createSuper(t);function t(n){var a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return _classCallCheck(this,t),a=r.call(this),a.key=n,a.value=o,a.type=t.Type.PAIR,a}return _createClass(t,[{key:"commentBefore",get:function(){return this.key instanceof Node?this.key.commentBefore:void 0},set:function(a){if(this.key==null&&(this.key=new Scalar(null)),this.key instanceof Node)this.key.commentBefore=a;else{var o="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(o)}}},{key:"addToJSMap",value:function(a,o){var i=toJSON(this.key,"",a);if(o instanceof Map){var l=toJSON(this.value,i,a);o.set(i,l)}else if(o instanceof Set)o.add(i);else{var c=stringifyKey(this.key,i,a),d=toJSON(this.value,c,a);c in o?Object.defineProperty(o,c,{value:d,writable:!0,enumerable:!0,configurable:!0}):o[c]=d}return o}},{key:"toJSON",value:function(a,o){var i=o&&o.mapAsMap?new Map:{};return this.addToJSMap(o,i)}},{key:"toString",value:function(a,o,i){if(!a||!a.doc)return JSON.stringify(this);var l=a.doc.options,c=l.indent,d=l.indentSeq,f=l.simpleKeys,p=this.key,v=this.value,m=p instanceof Node&&p.comment;if(f){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(p instanceof Collection){var g="With simple keys, collection cannot be used as a key value";throw new Error(g)}}var _=!f&&(!p||m||(p instanceof Node?p instanceof Collection||p.type===Type.BLOCK_FOLDED||p.type===Type.BLOCK_LITERAL:_typeof(p)==="object")),S=a,C=S.doc,w=S.indent,E=S.indentStep,$=S.stringify;a=Object.assign({},a,{implicitKey:!_,indent:w+E});var T=!1,B=$(p,a,function(){return m=null},function(){return T=!0});if(B=addComment(B,a.indent,m),!_&&B.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");_=!0}if(a.allNullValues&&!f)return this.comment?(B=addComment(B,a.indent,this.comment),o&&o()):T&&!m&&i&&i(),a.inFlow&&!_?B:"? ".concat(B);B=_?"? ".concat(B,`
@@ -348,7 +348,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\
348
348
  `);v&&(f.comment=f.comment?"".concat(f.comment,`
349
349
  `).concat(v):v)}return r.resolved=f}function resolveMap(e,r){if(r.type!==Type.MAP&&r.type!==Type.FLOW_MAP){var t="A ".concat(r.type," node cannot be resolved as a mapping");return e.errors.push(new YAMLSyntaxError(r,t)),null}var n=r.type===Type.FLOW_MAP?resolveFlowMapItems(e,r):resolveBlockMapItems(e,r),a=n.comments,o=n.items,i=new YAMLMap;i.items=o,resolveComments(i,a);for(var l=!1,c=0;c<o.length;++c){var d=o[c].key;if(d instanceof Collection&&(l=!0),e.schema.merge&&d&&d.value===MERGE_KEY){o[c]=new Merge(o[c]);var f=o[c].value.items,p=null;f.some(function(S){if(S instanceof Alias){var C=S.source.type;return C===Type.MAP||C===Type.FLOW_MAP?!1:p="Merge nodes aliases can only point to maps"}return p="Merge nodes can only have Alias nodes as values"}),p&&e.errors.push(new YAMLSemanticError(r,p))}else for(var v=c+1;v<o.length;++v){var m=o[v].key;if(d===m||d&&m&&Object.prototype.hasOwnProperty.call(d,"value")&&d.value===m.value){var g='Map keys must be unique; "'.concat(d,'" is repeated');e.errors.push(new YAMLSemanticError(r,g));break}}}if(l&&!e.options.mapAsMap){var _="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new YAMLWarning(r,_))}return r.resolved=i,i}var valueHasPairComment=function e(r){var t=r.context,n=t.lineStart,a=t.node,o=t.src,i=r.props;if(i.length===0)return!1;var l=i[0].start;if(a&&l>a.valueRange.start||o[l]!==Char.COMMENT)return!1;for(var c=n;c<l;++c)if(o[c]===`
350
350
  `)return!1;return!0};function resolvePairComment(e,r){if(valueHasPairComment(e)){var t=e.getPropValue(0,Char.COMMENT,!0),n=!1,a=r.value.commentBefore;if(a&&a.startsWith(t))r.value.commentBefore=a.substr(t.length+1),n=!0;else{var o=r.value.comment;!e.node&&o&&o.startsWith(t)&&(r.value.comment=o.substr(t.length+1),n=!0)}n&&(r.comment=t)}}function resolveBlockMapItems(e,r){for(var t=[],n=[],a=void 0,o=null,i=0;i<r.items.length;++i){var l=r.items[i];switch(l.type){case Type.BLANK_LINE:t.push({afterKey:!!a,before:n.length});break;case Type.COMMENT:t.push({afterKey:!!a,before:n.length,comment:l.comment});break;case Type.MAP_KEY:a!==void 0&&n.push(new Pair(a)),l.error&&e.errors.push(l.error),a=resolveNode(e,l.node),o=null;break;case Type.MAP_VALUE:{if(a===void 0&&(a=null),l.error&&e.errors.push(l.error),!l.context.atLineStart&&l.node&&l.node.type===Type.MAP&&!l.node.context.atLineStart){var c="Nested mappings are not allowed in compact mappings";e.errors.push(new YAMLSemanticError(l.node,c))}var d=l.node;if(!d&&l.props.length>0){d=new PlainValue(Type.PLAIN,[]),d.context={parent:l,src:l.context.src};var f=l.range.start+1;if(d.range={start:f,end:f},d.valueRange={start:f,end:f},typeof l.range.origStart=="number"){var p=l.range.origStart+1;d.range.origStart=d.range.origEnd=p,d.valueRange.origStart=d.valueRange.origEnd=p}}var v=new Pair(a,resolveNode(e,d));resolvePairComment(l,v),n.push(v),a&&typeof o=="number"&&l.range.start>o+1024&&e.errors.push(getLongKeyError(r,a)),a=void 0,o=null}break;default:a!==void 0&&n.push(new Pair(a)),a=resolveNode(e,l),o=l.range.start,l.error&&e.errors.push(l.error);e:for(var m=i+1;;++m){var g=r.items[m];switch(g&&g.type){case Type.BLANK_LINE:case Type.COMMENT:continue e;case Type.MAP_VALUE:break e;default:{var _="Implicit map keys need to be followed by map values";e.errors.push(new YAMLSemanticError(l,_));break e}}}if(l.valueRangeContainsNewline){var S="Implicit map keys need to be on a single line";e.errors.push(new YAMLSemanticError(l,S))}}}return a!==void 0&&n.push(new Pair(a)),{comments:t,items:n}}function resolveFlowMapItems(e,r){for(var t=[],n=[],a=void 0,o=!1,i="{",l=0;l<r.items.length;++l){var c=r.items[l];if(typeof c.char=="string"){var d=c.char,f=c.offset;if(d==="?"&&a===void 0&&!o){o=!0,i=":";continue}if(d===":"){if(a===void 0&&(a=null),i===":"){i=",";continue}}else if(o&&(a===void 0&&d!==","&&(a=null),o=!1),a!==void 0&&(n.push(new Pair(a)),a=void 0,d===",")){i=":";continue}if(d==="}"){if(l===r.items.length-1)continue}else if(d===i){i=":";continue}var p="Flow map contains an unexpected ".concat(d),v=new YAMLSyntaxError(r,p);v.offset=f,e.errors.push(v)}else c.type===Type.BLANK_LINE?t.push({afterKey:!!a,before:n.length}):c.type===Type.COMMENT?(checkFlowCommentSpace(e.errors,c),t.push({afterKey:!!a,before:n.length,comment:c.comment})):a===void 0?(i===","&&e.errors.push(new YAMLSemanticError(c,"Separator , missing in flow map")),a=resolveNode(e,c)):(i!==","&&e.errors.push(new YAMLSemanticError(c,"Indicator : missing in flow map entry")),n.push(new Pair(a,resolveNode(e,c))),a=void 0,o=!1)}return checkFlowCollectionEnd(e.errors,r),a!==void 0&&n.push(new Pair(a)),{comments:t,items:n}}function resolveSeq(e,r){if(r.type!==Type.SEQ&&r.type!==Type.FLOW_SEQ){var t="A ".concat(r.type," node cannot be resolved as a sequence");return e.errors.push(new YAMLSyntaxError(r,t)),null}var n=r.type===Type.FLOW_SEQ?resolveFlowSeqItems(e,r):resolveBlockSeqItems(e,r),a=n.comments,o=n.items,i=new YAMLSeq;if(i.items=o,resolveComments(i,a),!e.options.mapAsMap&&o.some(function(c){return c instanceof Pair&&c.key instanceof Collection})){var l="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new YAMLWarning(r,l))}return r.resolved=i,i}function resolveBlockSeqItems(e,r){for(var t=[],n=[],a=0;a<r.items.length;++a){var o=r.items[a];switch(o.type){case Type.BLANK_LINE:t.push({before:n.length});break;case Type.COMMENT:t.push({comment:o.comment,before:n.length});break;case Type.SEQ_ITEM:if(o.error&&e.errors.push(o.error),n.push(resolveNode(e,o.node)),o.hasProps){var i="Sequence items cannot have tags or anchors before the - indicator";e.errors.push(new YAMLSemanticError(o,i))}break;default:o.error&&e.errors.push(o.error),e.errors.push(new YAMLSyntaxError(o,"Unexpected ".concat(o.type," node in sequence")))}}return{comments:t,items:n}}function resolveFlowSeqItems(e,r){for(var t=[],n=[],a=!1,o=void 0,i=null,l="[",c=null,d=0;d<r.items.length;++d){var f=r.items[d];if(typeof f.char=="string"){var p=f.char,v=f.offset;if(p!==":"&&(a||o!==void 0)&&(a&&o===void 0&&(o=l?n.pop():null),n.push(new Pair(o)),a=!1,o=void 0,i=null),p===l)l=null;else if(!l&&p==="?")a=!0;else if(l!=="["&&p===":"&&o===void 0){if(l===","){if(o=n.pop(),o instanceof Pair){var m="Chaining flow sequence pairs is invalid",g=new YAMLSemanticError(r,m);g.offset=v,e.errors.push(g)}if(!a&&typeof i=="number"){var _=f.range?f.range.start:f.offset;_>i+1024&&e.errors.push(getLongKeyError(r,o));for(var S=c.context.src,C=i;C<_;++C)if(S[C]===`
351
- `){var w="Implicit keys of flow sequence pairs need to be on a single line";e.errors.push(new YAMLSemanticError(c,w));break}}}else o=null;i=null,a=!1,l=null}else if(l==="["||p!=="]"||d<r.items.length-1){var E="Flow sequence contains an unexpected ".concat(p),$=new YAMLSyntaxError(r,E);$.offset=v,e.errors.push($)}}else if(f.type===Type.BLANK_LINE)t.push({before:n.length});else if(f.type===Type.COMMENT)checkFlowCommentSpace(e.errors,f),t.push({comment:f.comment,before:n.length});else{if(l){var T="Expected a ".concat(l," in flow sequence");e.errors.push(new YAMLSemanticError(f,T))}var B=resolveNode(e,f);o===void 0?(n.push(B),c=f):(n.push(new Pair(o,B)),o=void 0),i=f.range.start,l=","}}return checkFlowCollectionEnd(e.errors,r),o!==void 0&&n.push(new Pair(o)),{comments:t,items:n}}var define_process_env_default$2={ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",JETBRAINS_INTELLIJ_COMMAND_END_MARKER:"ZU98Tjo1s9mdtrKJDjkDGSGGEp5tw63GnQvv7ElLZlCMGXy1aOp9jFhC5BjusZy0",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.7",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-9cb82016;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-49607556;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;;D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\node_modules\\.bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSExecutionPolicyPreference:"Bypass",PSModulePath:"D:\\Users\\martin.taylor\\Documents\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TERMINAL_EMULATOR:"JetBrains-JediTerm",TERM_SESSION_ID:"1ff63cfe-b994-4472-afa5-0ddc6b11b75f",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"},binary={identify:function e(r){return r instanceof Uint8Array},default:!1,tag:"tag:yaml.org,2002:binary",resolve:function e(r,t){var n=resolveString(r,t);if(typeof Buffer=="function")return Buffer.from(n,"base64");if(typeof atob=="function"){for(var a=atob(n.replace(/[\n\r]/g,"")),o=new Uint8Array(a.length),i=0;i<a.length;++i)o[i]=a.charCodeAt(i);return o}else{var l="This environment does not support reading binary tags; either Buffer or atob is required";return r.errors.push(new YAMLReferenceError(t,l)),null}},options:binaryOptions,stringify:function e(r,t,n,a){var o=r.comment,i=r.type,l=r.value,c;if(typeof Buffer=="function")c=l instanceof Buffer?l.toString("base64"):Buffer.from(l.buffer).toString("base64");else if(typeof btoa=="function"){for(var d="",f=0;f<l.length;++f)d+=String.fromCharCode(l[f]);c=btoa(d)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(i||(i=binaryOptions.defaultType),i===Type.QUOTE_DOUBLE)l=c;else{for(var p=binaryOptions.lineWidth,v=Math.ceil(c.length/p),m=new Array(v),g=0,_=0;g<v;++g,_+=p)m[g]=c.substr(_,p);l=m.join(i===Type.BLOCK_LITERAL?`
351
+ `){var w="Implicit keys of flow sequence pairs need to be on a single line";e.errors.push(new YAMLSemanticError(c,w));break}}}else o=null;i=null,a=!1,l=null}else if(l==="["||p!=="]"||d<r.items.length-1){var E="Flow sequence contains an unexpected ".concat(p),$=new YAMLSyntaxError(r,E);$.offset=v,e.errors.push($)}}else if(f.type===Type.BLANK_LINE)t.push({before:n.length});else if(f.type===Type.COMMENT)checkFlowCommentSpace(e.errors,f),t.push({comment:f.comment,before:n.length});else{if(l){var T="Expected a ".concat(l," in flow sequence");e.errors.push(new YAMLSemanticError(f,T))}var B=resolveNode(e,f);o===void 0?(n.push(B),c=f):(n.push(new Pair(o,B)),o=void 0),i=f.range.start,l=","}}return checkFlowCollectionEnd(e.errors,r),o!==void 0&&n.push(new Pair(o)),{comments:t,items:n}}var define_process_env_default$2={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.8",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-59948a58;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-de2eadd7;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"},binary={identify:function e(r){return r instanceof Uint8Array},default:!1,tag:"tag:yaml.org,2002:binary",resolve:function e(r,t){var n=resolveString(r,t);if(typeof Buffer=="function")return Buffer.from(n,"base64");if(typeof atob=="function"){for(var a=atob(n.replace(/[\n\r]/g,"")),o=new Uint8Array(a.length),i=0;i<a.length;++i)o[i]=a.charCodeAt(i);return o}else{var l="This environment does not support reading binary tags; either Buffer or atob is required";return r.errors.push(new YAMLReferenceError(t,l)),null}},options:binaryOptions,stringify:function e(r,t,n,a){var o=r.comment,i=r.type,l=r.value,c;if(typeof Buffer=="function")c=l instanceof Buffer?l.toString("base64"):Buffer.from(l.buffer).toString("base64");else if(typeof btoa=="function"){for(var d="",f=0;f<l.length;++f)d+=String.fromCharCode(l[f]);c=btoa(d)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(i||(i=binaryOptions.defaultType),i===Type.QUOTE_DOUBLE)l=c;else{for(var p=binaryOptions.lineWidth,v=Math.ceil(c.length/p),m=new Array(v),g=0,_=0;g<v;++g,_+=p)m[g]=c.substr(_,p);l=m.join(i===Type.BLOCK_LITERAL?`
352
352
  `:" ")}return stringifyString({comment:o,type:i,value:l},t,n,a)}};function parsePairs(e,r){for(var t=resolveSeq(e,r),n=0;n<t.items.length;++n){var a=t.items[n];if(!(a instanceof Pair)){if(a instanceof YAMLMap){if(a.items.length>1){var o="Each pair must have its own sequence indicator";throw new YAMLSemanticError(r,o)}var i=a.items[0]||new Pair;a.commentBefore&&(i.commentBefore=i.commentBefore?"".concat(a.commentBefore,`
353
353
  `).concat(i.commentBefore):a.commentBefore),a.comment&&(i.comment=i.comment?"".concat(a.comment,`
354
354
  `).concat(i.comment):a.comment),a=i}t.items[n]=a instanceof Pair?a:new Pair(a)}}return t}function createPairs(e,r,t){var n=new YAMLSeq(e);n.tag="tag:yaml.org,2002:pairs";var a=_createForOfIteratorHelper(r),o;try{for(a.s();!(o=a.n()).done;){var i=o.value,l=void 0,c=void 0;if(Array.isArray(i))if(i.length===2)l=i[0],c=i[1];else throw new TypeError("Expected [key, value] tuple: ".concat(i));else if(i&&i instanceof Object){var d=Object.keys(i);if(d.length===1)l=d[0],c=i[l];else throw new TypeError("Expected { key: value } tuple: ".concat(i))}else l=i;var f=e.createPair(l,c,t);n.items.push(f)}}catch(p){a.e(p)}finally{a.f()}return n}var pairs={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:parsePairs,createNode:createPairs},YAMLOMap=function(e){_inherits(t,e);var r=_createSuper(t);function t(){var n;return _classCallCheck(this,t),n=r.call(this),_defineProperty(_assertThisInitialized(n),"add",YAMLMap.prototype.add.bind(_assertThisInitialized(n))),_defineProperty(_assertThisInitialized(n),"delete",YAMLMap.prototype.delete.bind(_assertThisInitialized(n))),_defineProperty(_assertThisInitialized(n),"get",YAMLMap.prototype.get.bind(_assertThisInitialized(n))),_defineProperty(_assertThisInitialized(n),"has",YAMLMap.prototype.has.bind(_assertThisInitialized(n))),_defineProperty(_assertThisInitialized(n),"set",YAMLMap.prototype.set.bind(_assertThisInitialized(n))),n.tag=t.tag,n}return _createClass(t,[{key:"toJSON",value:function(a,o){var i=new Map;o&&o.onCreate&&o.onCreate(i);var l=_createForOfIteratorHelper(this.items),c;try{for(l.s();!(c=l.n()).done;){var d=c.value,f=void 0,p=void 0;if(d instanceof Pair?(f=toJSON(d.key,"",o),p=toJSON(d.value,f,o)):f=toJSON(d,"",o),i.has(f))throw new Error("Ordered maps must not include duplicate keys");i.set(f,p)}}catch(v){l.e(v)}finally{l.f()}return i}}]),t}(YAMLSeq);_defineProperty(YAMLOMap,"tag","tag:yaml.org,2002:omap");function parseOMap(e,r){var t=parsePairs(e,r),n=[],a=_createForOfIteratorHelper(t.items),o;try{for(a.s();!(o=a.n()).done;){var i=o.value.key;if(i instanceof Scalar)if(n.includes(i.value)){var l="Ordered maps must not include duplicate keys";throw new YAMLSemanticError(r,l)}else n.push(i.value)}}catch(c){a.e(c)}finally{a.f()}return Object.assign(new YAMLOMap,t)}function createOMap(e,r,t){var n=createPairs(e,r,t),a=new YAMLOMap;return a.items=n.items,a}var omap={identify:function e(r){return r instanceof Map},nodeClass:YAMLOMap,default:!1,tag:"tag:yaml.org,2002:omap",resolve:parseOMap,createNode:createOMap},YAMLSet=function(e){_inherits(t,e);var r=_createSuper(t);function t(){var n;return _classCallCheck(this,t),n=r.call(this),n.tag=t.tag,n}return _createClass(t,[{key:"add",value:function(a){var o=a instanceof Pair?a:new Pair(a),i=findPair(this.items,o.key);i||this.items.push(o)}},{key:"get",value:function(a,o){var i=findPair(this.items,a);return!o&&i instanceof Pair?i.key instanceof Scalar?i.key.value:i.key:i}},{key:"set",value:function(a,o){if(typeof o!="boolean")throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(_typeof(o)));var i=findPair(this.items,a);i&&!o?this.items.splice(this.items.indexOf(i),1):!i&&o&&this.items.push(new Pair(a))}},{key:"toJSON",value:function(a,o){return _get(_getPrototypeOf(t.prototype),"toJSON",this).call(this,a,o,Set)}},{key:"toString",value:function(a,o,i){if(!a)return JSON.stringify(this);if(this.hasAllNullValues())return _get(_getPrototypeOf(t.prototype),"toString",this).call(this,a,o,i);throw new Error("Set items must all have null values")}}]),t}(YAMLMap);_defineProperty(YAMLSet,"tag","tag:yaml.org,2002:set");function parseSet(e,r){var t=resolveMap(e,r);if(!t.hasAllNullValues())throw new YAMLSemanticError(r,"Set items must all have null values");return Object.assign(new YAMLSet,t)}function createSet(e,r,t){var n=new YAMLSet,a=_createForOfIteratorHelper(r),o;try{for(a.s();!(o=a.n()).done;){var i=o.value;n.items.push(e.createPair(i,null,t))}}catch(l){a.e(l)}finally{a.f()}return n}var set={identify:function e(r){return r instanceof Set},nodeClass:YAMLSet,default:!1,tag:"tag:yaml.org,2002:set",resolve:parseSet,createNode:createSet},parseSexagesimal=function e(r,t){var n=t.split(":").reduce(function(a,o){return a*60+Number(o)},0);return r==="-"?-n:n},stringifySexagesimal=function e(r){var t=r.value;if(isNaN(t)||!isFinite(t))return stringifyNumber(t);var n="";t<0&&(n="-",t=Math.abs(t));var a=[t%60];return t<60?a.unshift(0):(t=Math.round((t-a[0])/60),a.unshift(t%60),t>=60&&(t=Math.round((t-a[0])/60),a.unshift(t))),n+a.map(function(o){return o<10?"0"+String(o):String(o)}).join(":").replace(/000000\d*$/,"")},intTime={identify:function e(r){return typeof r=="number"},default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function e(r,t,n){return parseSexagesimal(t,n.replace(/_/g,""))},stringify:stringifySexagesimal},floatTime={identify:function e(r){return typeof r=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:function e(r,t,n){return parseSexagesimal(t,n.replace(/_/g,""))},stringify:stringifySexagesimal},timestamp={identify:function e(r){return r instanceof Date},default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:function e(r,t,n,a,o,i,l,c,d){c&&(c=(c+"00").substr(1,3));var f=Date.UTC(t,n-1,a,o||0,i||0,l||0,c||0);if(d&&d!=="Z"){var p=parseSexagesimal(d[0],d.slice(1));Math.abs(p)<30&&(p*=60),f-=6e4*p}return new Date(f)},stringify:function e(r){var t=r.value;return t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function shouldWarn(e){var r=typeof process<"u"&&define_process_env_default$2||{};return e?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!r.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!r.YAML_SILENCE_WARNINGS}function warn(e,r){if(shouldWarn(!1)){var t=typeof process<"u"&&process.emitWarning;t?t(e,r):console.warn(r?"".concat(r,": ").concat(e):e)}}var warned={};function warnOptionDeprecation(e,r){if(!warned[e]&&shouldWarn(!0)){warned[e]=!0;var t="The option '".concat(e,"' will be removed in a future release");t+=", use '".concat(r,"' instead."),warn(t,"DeprecationWarning")}}function createMap(e,r,t){var n=new YAMLMap(e);if(r instanceof Map){var a=_createForOfIteratorHelper(r),o;try{for(a.s();!(o=a.n()).done;){var i=_slicedToArray(o.value,2),l=i[0],c=i[1];n.items.push(e.createPair(l,c,t))}}catch(v){a.e(v)}finally{a.f()}}else if(r&&_typeof(r)==="object")for(var d=0,f=Object.keys(r);d<f.length;d++){var p=f[d];n.items.push(e.createPair(p,r[p],t))}return typeof e.sortMapEntries=="function"&&n.items.sort(e.sortMapEntries),n}var map={createNode:createMap,default:!0,nodeClass:YAMLMap,tag:"tag:yaml.org,2002:map",resolve:resolveMap};function createSeq(e,r,t){var n=new YAMLSeq(e);if(r&&r[Symbol.iterator]){var a=_createForOfIteratorHelper(r),o;try{for(a.s();!(o=a.n()).done;){var i=o.value,l=e.createNode(i,t.wrapScalars,null,t);n.items.push(l)}}catch(c){a.e(c)}finally{a.f()}}return n}var seq={createNode:createSeq,default:!0,nodeClass:YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:resolveSeq},string={identify:function e(r){return typeof r=="string"},default:!0,tag:"tag:yaml.org,2002:str",resolve:resolveString,stringify:function e(r,t,n,a){return t=Object.assign({actualString:!0},t),stringifyString(r,t,n,a)},options:strOptions},failsafe=[map,seq,string],intIdentify$2=function e(r){return typeof r=="bigint"||Number.isInteger(r)},intResolve$1=function e(r,t,n){return intOptions.asBigInt?BigInt(r):parseInt(t,n)};function intStringify$1(e,r,t){var n=e.value;return intIdentify$2(n)&&n>=0?t+n.toString(r):stringifyNumber(e)}var nullObj={identify:function e(r){return r==null},createNode:function e(r,t,n){return n.wrapScalars?new Scalar(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function e(){return null},options:nullOptions,stringify:function e(){return nullOptions.nullStr}},boolObj={identify:function e(r){return typeof r=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:function e(r){return r[0]==="t"||r[0]==="T"},options:boolOptions,stringify:function e(r){var t=r.value;return t?boolOptions.trueStr:boolOptions.falseStr}},octObj={identify:function e(r){return intIdentify$2(r)&&r>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:function e(r,t){return intResolve$1(r,t,8)},options:intOptions,stringify:function e(r){return intStringify$1(r,8,"0o")}},intObj={identify:intIdentify$2,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function e(r){return intResolve$1(r,r,10)},options:intOptions,stringify:stringifyNumber},hexObj={identify:function e(r){return intIdentify$2(r)&&r>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:function e(r,t){return intResolve$1(r,t,16)},options:intOptions,stringify:function e(r){return intStringify$1(r,16,"0x")}},nanObj={identify:function e(r){return typeof r=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function e(r,t){return t?NaN:r[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:stringifyNumber},expObj={identify:function e(r){return typeof r=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:function e(r){return parseFloat(r)},stringify:function e(r){var t=r.value;return Number(t).toExponential()}},floatObj={identify:function e(r){return typeof r=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve:function e(r,t,n){var a=t||n,o=new Scalar(parseFloat(r));return a&&a[a.length-1]==="0"&&(o.minFractionDigits=a.length),o},stringify:stringifyNumber},core=failsafe.concat([nullObj,boolObj,octObj,intObj,hexObj,nanObj,expObj,floatObj]),intIdentify$1=function e(r){return typeof r=="bigint"||Number.isInteger(r)},stringifyJSON=function e(r){var t=r.value;return JSON.stringify(t)},json=[map,seq,{identify:function e(r){return typeof r=="string"},default:!0,tag:"tag:yaml.org,2002:str",resolve:resolveString,stringify:stringifyJSON},{identify:function e(r){return r==null},createNode:function e(r,t,n){return n.wrapScalars?new Scalar(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:function e(){return null},stringify:stringifyJSON},{identify:function e(r){return typeof r=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:function e(r){return r==="true"},stringify:stringifyJSON},{identify:intIdentify$1,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:function e(r){return intOptions.asBigInt?BigInt(r):parseInt(r,10)},stringify:function e(r){var t=r.value;return intIdentify$1(t)?t.toString():JSON.stringify(t)}},{identify:function e(r){return typeof r=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:function e(r){return parseFloat(r)},stringify:stringifyJSON}];json.scalarFallback=function(e){throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var boolStringify=function e(r){var t=r.value;return t?boolOptions.trueStr:boolOptions.falseStr},intIdentify=function e(r){return typeof r=="bigint"||Number.isInteger(r)};function intResolve(e,r,t){var n=r.replace(/_/g,"");if(intOptions.asBigInt){switch(t){case 2:n="0b".concat(n);break;case 8:n="0o".concat(n);break;case 16:n="0x".concat(n);break}var a=BigInt(n);return e==="-"?BigInt(-1)*a:a}var o=parseInt(n,t);return e==="-"?-1*o:o}function intStringify(e,r,t){var n=e.value;if(intIdentify(n)){var a=n.toString(r);return n<0?"-"+t+a.substr(1):t+a}return stringifyNumber(e)}var yaml11=failsafe.concat([{identify:function e(r){return r==null},createNode:function e(r,t,n){return n.wrapScalars?new Scalar(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function e(){return null},options:nullOptions,stringify:function e(){return nullOptions.nullStr}},{identify:function e(r){return typeof r=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:function e(){return!0},options:boolOptions,stringify:boolStringify},{identify:function e(r){return typeof r=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:function e(){return!1},options:boolOptions,stringify:boolStringify},{identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:function e(r,t,n){return intResolve(t,n,2)},stringify:function e(r){return intStringify(r,2,"0b")}},{identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:function e(r,t,n){return intResolve(t,n,8)},stringify:function e(r){return intStringify(r,8,"0")}},{identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:function e(r,t,n){return intResolve(t,n,10)},stringify:stringifyNumber},{identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:function e(r,t,n){return intResolve(t,n,16)},stringify:function e(r){return intStringify(r,16,"0x")}},{identify:function e(r){return typeof r=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function e(r,t){return t?NaN:r[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:stringifyNumber},{identify:function e(r){return typeof r=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:function e(r){return parseFloat(r.replace(/_/g,""))},stringify:function e(r){var t=r.value;return Number(t).toExponential()}},{identify:function e(r){return typeof r=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve:function e(r,t){var n=new Scalar(parseFloat(r.replace(/_/g,"")));if(t){var a=t.replace(/_/g,"");a[a.length-1]==="0"&&(n.minFractionDigits=a.length)}return n},stringify:stringifyNumber}],binary,omap,pairs,set,intTime,floatTime,timestamp),schemas={core,failsafe,json,yaml11},tags={binary,bool:boolObj,float:floatObj,floatExp:expObj,floatNaN:nanObj,floatTime,int:intObj,intHex:hexObj,intOct:octObj,intTime,map,null:nullObj,omap,pairs,seq,set,timestamp};function findTagObject(e,r,t){if(r){var n=t.filter(function(o){return o.tag===r}),a=n.find(function(o){return!o.format})||n[0];if(!a)throw new Error("Tag ".concat(r," not found"));return a}return t.find(function(o){return(o.identify&&o.identify(e)||o.class&&e instanceof o.class)&&!o.format})}function createNode$1(e,r,t){if(e instanceof Node)return e;var n=t.defaultPrefix,a=t.onTagObj,o=t.prevObjects,i=t.schema,l=t.wrapScalars;r&&r.startsWith("!!")&&(r=n+r.slice(2));var c=findTagObject(e,r,i.tags);if(!c){if(typeof e.toJSON=="function"&&(e=e.toJSON()),!e||_typeof(e)!=="object")return l?new Scalar(e):e;c=e instanceof Map?map:e[Symbol.iterator]?seq:map}a&&(a(c),delete t.onTagObj);var d={value:void 0,node:void 0};if(e&&_typeof(e)==="object"&&o){var f=o.get(e);if(f){var p=new Alias(f);return t.aliasNodes.push(p),p}d.value=e,o.set(e,d)}return d.node=c.createNode?c.createNode(t.schema,e,t):l?new Scalar(e):e,r&&d.node instanceof Node&&(d.node.tag=r),d.node}function getSchemaTags(e,r,t,n){var a=e[n.replace(/\W/g,"")];if(!a){var o=Object.keys(e).map(function(m){return JSON.stringify(m)}).join(", ");throw new Error('Unknown schema "'.concat(n,'"; use one of ').concat(o))}if(Array.isArray(t)){var i=_createForOfIteratorHelper(t),l;try{for(i.s();!(l=i.n()).done;){var c=l.value;a=a.concat(c)}}catch(m){i.e(m)}finally{i.f()}}else typeof t=="function"&&(a=t(a.slice()));for(var d=0;d<a.length;++d){var f=a[d];if(typeof f=="string"){var p=r[f];if(!p){var v=Object.keys(r).map(function(m){return JSON.stringify(m)}).join(", ");throw new Error('Unknown custom tag "'.concat(f,'"; use one of ').concat(v))}a[d]=p}}return a}var sortMapEntriesByKey=function e(r,t){return r.key<t.key?-1:r.key>t.key?1:0},Schema=function(){function e(r){var t=r.customTags,n=r.merge,a=r.schema,o=r.sortMapEntries,i=r.tags;_classCallCheck(this,e),this.merge=!!n,this.name=a,this.sortMapEntries=o===!0?sortMapEntriesByKey:o||null,!t&&i&&warnOptionDeprecation("tags","customTags"),this.tags=getSchemaTags(schemas,tags,t||i,a)}return _createClass(e,[{key:"createNode",value:function(t,n,a,o){var i={defaultPrefix:e.defaultPrefix,schema:this,wrapScalars:n},l=o?Object.assign(o,i):i;return createNode$1(t,a,l)}},{key:"createPair",value:function(t,n,a){a||(a={wrapScalars:!0});var o=this.createNode(t,a.wrapScalars,null,a),i=this.createNode(n,a.wrapScalars,null,a);return new Pair(o,i)}}]),e}();_defineProperty(Schema,"defaultPrefix",defaultTagPrefix);_defineProperty(Schema,"defaultTags",defaultTags);var defaultOptions={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},scalarOptions={get binary(){return binaryOptions},set binary(e){Object.assign(binaryOptions,e)},get bool(){return boolOptions},set bool(e){Object.assign(boolOptions,e)},get int(){return intOptions},set int(e){Object.assign(intOptions,e)},get null(){return nullOptions},set null(e){Object.assign(nullOptions,e)},get str(){return strOptions},set str(e){Object.assign(strOptions,e)}},documentOptions={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:defaultTagPrefix}]}};function stringifyTag(e,r){if((e.version||e.options.version)==="1.0"){var t=r.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(t)return"!"+t[1];var n=r.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?"!".concat(n[1],"/").concat(n[2]):"!".concat(r.replace(/^tag:/,""))}var a=e.tagPrefixes.find(function(l){return r.indexOf(l.prefix)===0});if(!a){var o=e.getDefaults().tagPrefixes;a=o&&o.find(function(l){return r.indexOf(l.prefix)===0})}if(!a)return r[0]==="!"?r:"!<".concat(r,">");var i=r.substr(a.prefix.length).replace(/[!,[\]{}]/g,function(l){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[l]});return a.handle+i}function getTagObject(e,r){if(r instanceof Alias)return Alias;if(r.tag){var t=e.filter(function(l){return l.tag===r.tag});if(t.length>0)return t.find(function(l){return l.format===r.format})||t[0]}var n,a;if(r instanceof Scalar){a=r.value;var o=e.filter(function(l){return l.identify&&l.identify(a)||l.class&&a instanceof l.class});n=o.find(function(l){return l.format===r.format})||o.find(function(l){return!l.format})}else a=r,n=e.find(function(l){return l.nodeClass&&a instanceof l.nodeClass});if(!n){var i=a&&a.constructor?a.constructor.name:_typeof(a);throw new Error("Tag not resolved for ".concat(i," value"))}return n}function stringifyProps(e,r,t){var n=t.anchors,a=t.doc,o=[],i=a.anchors.getName(e);return i&&(n[i]=e,o.push("&".concat(i))),e.tag?o.push(stringifyTag(a,e.tag)):r.default||o.push(stringifyTag(a,r.tag)),o.join(" ")}function stringify$1(e,r,t,n){var a=r.doc,o=a.anchors,i=a.schema,l;if(!(e instanceof Node)){var c={aliasNodes:[],onTagObj:function(S){return l=S},prevObjects:new Map};e=i.createNode(e,!0,null,c);var d=_createForOfIteratorHelper(c.aliasNodes),f;try{for(d.s();!(f=d.n()).done;){var p=f.value;p.source=p.source.node;var v=o.getName(p.source);v||(v=o.newName(),o.map[v]=p.source)}}catch(_){d.e(_)}finally{d.f()}}if(e instanceof Pair)return e.toString(r,t,n);l||(l=getTagObject(i.tags,e));var m=stringifyProps(e,l,r);m.length>0&&(r.indentAtStart=(r.indentAtStart||0)+m.length+1);var g=typeof l.stringify=="function"?l.stringify(e,r,t,n):e instanceof Scalar?stringifyString(e,r,t,n):e.toString(r,t,n);return m?e instanceof Scalar||g[0]==="{"||g[0]==="["?"".concat(m," ").concat(g):"".concat(m,`
@@ -362,8 +362,8 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\
362
362
  `)+`
363
363
  `}}]),e}();_defineProperty(Document$1,"defaults",documentOptions);function createNode(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=arguments.length>2?arguments[2]:void 0;t===void 0&&typeof r=="string"&&(t=r,r=!0);var n=Object.assign({},Document$1.defaults[defaultOptions.version],defaultOptions),a=new Schema(n);return a.createNode(e,r,t)}var Document=function(e){_inherits(t,e);var r=_createSuper(t);function t(n){return _classCallCheck(this,t),r.call(this,Object.assign({},defaultOptions,n))}return t}(Document$1);function parseAllDocuments(e,r){var t=[],n,a=_createForOfIteratorHelper(parse$1(e)),o;try{for(a.s();!(o=a.n()).done;){var i=o.value,l=new Document(r);l.parse(i,n),t.push(l),n=l}}catch(c){a.e(c)}finally{a.f()}return t}function parseDocument(e,r){var t=parse$1(e),n=new Document(r).parse(t[0]);if(t.length>1){var a="Source contains multiple documents; please use YAML.parseAllDocuments()";n.errors.unshift(new YAMLSemanticError(t[1],a))}return n}function parse(e,r){var t=parseDocument(e,r);if(t.warnings.forEach(function(n){return warn(n)}),t.errors.length>0)throw t.errors[0];return t.toJSON()}function stringify(e,r){var t=new Document(r);return t.contents=e,String(t)}var YAML={createNode,defaultOptions,Document,parse,parseAllDocuments,parseCST:parse$1,parseDocument,scalarOptions,stringify};const dist$1=Object.freeze(Object.defineProperty({__proto__:null,YAML},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(dist$1);var browser$1,hasRequiredBrowser;function requireBrowser(){return hasRequiredBrowser||(hasRequiredBrowser=1,browser$1=require$$0.YAML),browser$1}var hasRequiredLoaders;function requireLoaders(){if(hasRequiredLoaders)return loaders;hasRequiredLoaders=1,Object.defineProperty(loaders,"__esModule",{value:!0}),loaders.loaders=void 0;let e;const r=function(c){return e===void 0&&(e=requireImportFresh()),e(c)};let t;const n=function(c,d){t===void 0&&(t=requireParseJson());try{return t(d)}catch(f){throw f.message=`JSON Error in ${c}:
364
364
  ${f.message}`,f}};let a;const i={loadJs:r,loadJson:n,loadYaml:function(c,d){a===void 0&&(a=requireBrowser());try{return a.parse(d,{prettyErrors:!0})}catch(f){throw f.message=`YAML Error in ${c}:
365
- ${f.message}`,f}}};return loaders.loaders=i,loaders}var getPropertyByPath={},hasRequiredGetPropertyByPath;function requireGetPropertyByPath(){if(hasRequiredGetPropertyByPath)return getPropertyByPath;hasRequiredGetPropertyByPath=1,Object.defineProperty(getPropertyByPath,"__esModule",{value:!0}),getPropertyByPath.getPropertyByPath=e;function e(r,t){return typeof t=="string"&&Object.prototype.hasOwnProperty.call(r,t)?r[t]:(typeof t=="string"?t.split("."):t).reduce((a,o)=>a===void 0?a:a[o],r)}return getPropertyByPath}var hasRequiredExplorerBase;function requireExplorerBase(){if(hasRequiredExplorerBase)return ExplorerBase;hasRequiredExplorerBase=1,Object.defineProperty(ExplorerBase,"__esModule",{value:!0}),ExplorerBase.getExtensionDescription=i,ExplorerBase.ExplorerBase=void 0;var e=n(requirePath()),r=requireLoaders(),t=requireGetPropertyByPath();function n(l){return l&&l.__esModule?l:{default:l}}let a=class{constructor(c){c.cache===!0&&(this.loadCache=new Map,this.searchCache=new Map),this.config=c,this.validateConfig()}clearLoadCache(){this.loadCache&&this.loadCache.clear()}clearSearchCache(){this.searchCache&&this.searchCache.clear()}clearCaches(){this.clearLoadCache(),this.clearSearchCache()}validateConfig(){const c=this.config;c.searchPlaces.forEach(d=>{const f=e.default.extname(d)||"noExt",p=c.loaders[f];if(!p)throw new Error(`No loader specified for ${i(d)}, so searchPlaces item "${d}" is invalid`);if(typeof p!="function")throw new Error(`loader for ${i(d)} is not a function (type provided: "${typeof p}"), so searchPlaces item "${d}" is invalid`)})}shouldSearchStopWithResult(c){return!(c===null||c.isEmpty&&this.config.ignoreEmptySearchPlaces)}nextDirectoryToSearch(c,d){if(this.shouldSearchStopWithResult(d))return null;const f=o(c);return f===c||c===this.config.stopDir?null:f}loadPackageProp(c,d){const f=r.loaders.loadJson(c,d);return(0,t.getPropertyByPath)(f,this.config.packageProp)||null}getLoaderEntryForFile(c){if(e.default.basename(c)==="package.json")return this.loadPackageProp.bind(this);const d=e.default.extname(c)||"noExt",f=this.config.loaders[d];if(!f)throw new Error(`No loader specified for ${i(c)}`);return f}loadedContentToCosmiconfigResult(c,d){return d===null?null:d===void 0?{filepath:c,config:void 0,isEmpty:!0}:{config:d,filepath:c}}validateFilePath(c){if(!c)throw new Error("load must pass a non-empty string")}};ExplorerBase.ExplorerBase=a;function o(l){return e.default.dirname(l)}function i(l){const c=e.default.extname(l);return c?`extension "${c}"`:"files without extensions"}return ExplorerBase}var readFile={},hasRequiredReadFile;function requireReadFile(){if(hasRequiredReadFile)return readFile;hasRequiredReadFile=1,Object.defineProperty(readFile,"__esModule",{value:!0}),readFile.readFile=n,readFile.readFileSync=a;var e=r(require$$0$1);function r(o){return o&&o.__esModule?o:{default:o}}async function t(o,i){return new Promise((l,c)=>{e.default.readFile(o,i,(d,f)=>{if(d){c(d);return}l(f)})})}async function n(o,i={}){const l=i.throwNotFound===!0;try{return await t(o,"utf8")}catch(c){if(l===!1&&c.code==="ENOENT")return null;throw c}}function a(o,i={}){const l=i.throwNotFound===!0;try{return e.default.readFileSync(o,"utf8")}catch(c){if(l===!1&&c.code==="ENOENT")return null;throw c}}return readFile}var cacheWrapper={},hasRequiredCacheWrapper;function requireCacheWrapper(){if(hasRequiredCacheWrapper)return cacheWrapper;hasRequiredCacheWrapper=1,Object.defineProperty(cacheWrapper,"__esModule",{value:!0}),cacheWrapper.cacheWrapper=e,cacheWrapper.cacheWrapperSync=r;async function e(t,n,a){const o=t.get(n);if(o!==void 0)return o;const i=await a();return t.set(n,i),i}function r(t,n,a){const o=t.get(n);if(o!==void 0)return o;const i=a();return t.set(n,i),i}return cacheWrapper}var getDirectory={},pathType={},hasRequiredPathType;function requirePathType(){if(hasRequiredPathType)return pathType;hasRequiredPathType=1;const{promisify:e}=requireUtil(),r=require$$0$1;async function t(a,o,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return(await e(r[a])(i))[o]()}catch(l){if(l.code==="ENOENT")return!1;throw l}}function n(a,o,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return r[a](i)[o]()}catch(l){if(l.code==="ENOENT")return!1;throw l}}return pathType.isFile=t.bind(null,"stat","isFile"),pathType.isDirectory=t.bind(null,"stat","isDirectory"),pathType.isSymlink=t.bind(null,"lstat","isSymbolicLink"),pathType.isFileSync=n.bind(null,"statSync","isFile"),pathType.isDirectorySync=n.bind(null,"statSync","isDirectory"),pathType.isSymlinkSync=n.bind(null,"lstatSync","isSymbolicLink"),pathType}var hasRequiredGetDirectory;function requireGetDirectory(){if(hasRequiredGetDirectory)return getDirectory;hasRequiredGetDirectory=1,Object.defineProperty(getDirectory,"__esModule",{value:!0}),getDirectory.getDirectory=n,getDirectory.getDirectorySync=a;var e=t(requirePath()),r=requirePathType();function t(o){return o&&o.__esModule?o:{default:o}}async function n(o){return await(0,r.isDirectory)(o)===!0?o:e.default.dirname(o)}function a(o){return(0,r.isDirectorySync)(o)===!0?o:e.default.dirname(o)}return getDirectory}var hasRequiredExplorer;function requireExplorer(){if(hasRequiredExplorer)return Explorer;hasRequiredExplorer=1,Object.defineProperty(Explorer,"__esModule",{value:!0}),Explorer.Explorer=void 0;var e=o(requirePath()),r=requireExplorerBase(),t=requireReadFile(),n=requireCacheWrapper(),a=requireGetDirectory();function o(c){return c&&c.__esModule?c:{default:c}}function i(c){var d;if(typeof Symbol<"u"&&(Symbol.asyncIterator&&(d=c[Symbol.asyncIterator],d!=null)||Symbol.iterator&&(d=c[Symbol.iterator],d!=null)))return d.call(c);throw new TypeError("Object is not async iterable")}let l=class extends r.ExplorerBase{constructor(d){super(d)}async search(d=process.cwd()){const f=await(0,a.getDirectory)(d);return await this.searchFromDirectory(f)}async searchFromDirectory(d){const f=e.default.resolve(process.cwd(),d),p=async()=>{const v=await this.searchDirectory(f),m=this.nextDirectoryToSearch(f,v);return m?this.searchFromDirectory(m):await this.config.transform(v)};return this.searchCache?(0,n.cacheWrapper)(this.searchCache,f,p):p()}async searchDirectory(d){var f=!0,p=!1,v;try{for(var m=i(this.config.searchPlaces),g,_;g=await m.next(),f=g.done,_=await g.value,!f;f=!0){const S=_,C=await this.loadSearchPlace(d,S);if(this.shouldSearchStopWithResult(C)===!0)return C}}catch(S){p=!0,v=S}finally{try{!f&&m.return!=null&&await m.return()}finally{if(p)throw v}}return null}async loadSearchPlace(d,f){const p=e.default.join(d,f),v=await(0,t.readFile)(p);return await this.createCosmiconfigResult(p,v)}async loadFileContent(d,f){return f===null?null:f.trim()===""?void 0:await this.getLoaderEntryForFile(d)(d,f)}async createCosmiconfigResult(d,f){const p=await this.loadFileContent(d,f);return this.loadedContentToCosmiconfigResult(d,p)}async load(d){this.validateFilePath(d);const f=e.default.resolve(process.cwd(),d),p=async()=>{const v=await(0,t.readFile)(f,{throwNotFound:!0}),m=await this.createCosmiconfigResult(f,v);return await this.config.transform(m)};return this.loadCache?(0,n.cacheWrapper)(this.loadCache,f,p):p()}};return Explorer.Explorer=l,Explorer}var ExplorerSync={},hasRequiredExplorerSync;function requireExplorerSync(){if(hasRequiredExplorerSync)return ExplorerSync;hasRequiredExplorerSync=1,Object.defineProperty(ExplorerSync,"__esModule",{value:!0}),ExplorerSync.ExplorerSync=void 0;var e=o(requirePath()),r=requireExplorerBase(),t=requireReadFile(),n=requireCacheWrapper(),a=requireGetDirectory();function o(l){return l&&l.__esModule?l:{default:l}}let i=class extends r.ExplorerBase{constructor(c){super(c)}searchSync(c=process.cwd()){const d=(0,a.getDirectorySync)(c);return this.searchFromDirectorySync(d)}searchFromDirectorySync(c){const d=e.default.resolve(process.cwd(),c),f=()=>{const p=this.searchDirectorySync(d),v=this.nextDirectoryToSearch(d,p);return v?this.searchFromDirectorySync(v):this.config.transform(p)};return this.searchCache?(0,n.cacheWrapperSync)(this.searchCache,d,f):f()}searchDirectorySync(c){for(const d of this.config.searchPlaces){const f=this.loadSearchPlaceSync(c,d);if(this.shouldSearchStopWithResult(f)===!0)return f}return null}loadSearchPlaceSync(c,d){const f=e.default.join(c,d),p=(0,t.readFileSync)(f);return this.createCosmiconfigResultSync(f,p)}loadFileContentSync(c,d){return d===null?null:d.trim()===""?void 0:this.getLoaderEntryForFile(c)(c,d)}createCosmiconfigResultSync(c,d){const f=this.loadFileContentSync(c,d);return this.loadedContentToCosmiconfigResult(c,f)}loadSync(c){this.validateFilePath(c);const d=e.default.resolve(process.cwd(),c),f=()=>{const p=(0,t.readFileSync)(d,{throwNotFound:!0}),v=this.createCosmiconfigResultSync(d,p);return this.config.transform(v)};return this.loadCache?(0,n.cacheWrapperSync)(this.loadCache,d,f):f()}};return ExplorerSync.ExplorerSync=i,ExplorerSync}var hasRequiredDist;function requireDist(){if(hasRequiredDist)return dist$2;hasRequiredDist=1,Object.defineProperty(dist$2,"__esModule",{value:!0}),dist$2.cosmiconfig=o,dist$2.cosmiconfigSync=i,dist$2.defaultLoaders=void 0;var e=a(require$$0$1),r=requireExplorer(),t=requireExplorerSync(),n=requireLoaders();function a(f){return f&&f.__esModule?f:{default:f}}function o(f,p={}){const v=c(f,p),m=new r.Explorer(v);return{search:m.search.bind(m),load:m.load.bind(m),clearLoadCache:m.clearLoadCache.bind(m),clearSearchCache:m.clearSearchCache.bind(m),clearCaches:m.clearCaches.bind(m)}}function i(f,p={}){const v=c(f,p),m=new t.ExplorerSync(v);return{search:m.searchSync.bind(m),load:m.loadSync.bind(m),clearLoadCache:m.clearLoadCache.bind(m),clearSearchCache:m.clearSearchCache.bind(m),clearCaches:m.clearCaches.bind(m)}}const l=Object.freeze({".js":n.loaders.loadJs,".json":n.loaders.loadJson,".yaml":n.loaders.loadYaml,".yml":n.loaders.loadYaml,noExt:n.loaders.loadYaml});dist$2.defaultLoaders=l;function c(f,p){const v={packageProp:f,searchPlaces:["package.json",`.${f}rc`,`.${f}rc.json`,`.${f}rc.yaml`,`.${f}rc.yml`,`.${f}rc.js`,`${f}.config.js`],ignoreEmptySearchPlaces:!0,stopDir:e.default.homedir(),cache:!0,transform:d,loaders:l};return{...v,...p,loaders:{...v.loaders,...p.loaders}}}const d=function(p){return p};return dist$2}(function(e){var r=interopRequireDefaultExports,t=r(require_extends()),n=r(requireObjectWithoutPropertiesLoose());const a=requirePath(),o=requireResolve(),i=/[./]macro(\.js)?$/,l=T=>i.test(T);class c extends Error{constructor(B){super(B),this.name="MacroError",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack||(this.stack=new Error(B).stack)}}let d=null;function f(){return d=d||requireDist().cosmiconfigSync("babel-plugin-macros",{searchPlaces:["package.json",".babel-plugin-macrosrc",".babel-plugin-macrosrc.json",".babel-plugin-macrosrc.yaml",".babel-plugin-macrosrc.yml",".babel-plugin-macrosrc.js","babel-plugin-macros.config.js"],packageProp:"babelMacros"})}function p(T,B={}){if(B.configName==="options")throw new Error('You cannot use the configName "options". It is reserved for babel-plugin-macros.');return R.isBabelMacro=!0,R.options=B,R;function R(L){const{source:te,isBabelMacrosCall:oe}=L;if(!oe)throw new c(`The macro you imported from "${te}" is being executed outside the context of compilation with babel-plugin-macros. This indicates that you don't have the babel plugin "babel-plugin-macros" configured correctly. Please see the documentation for how to configure babel-plugin-macros properly: https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/user.md`);return T(L)}}function v(T,B){return o.sync(T,{basedir:B,paths:[a.resolve(__dirname,"../../")]})}function m(T,B={}){let{require:R=commonjsRequire,resolvePath:L=v,isMacrosName:te=l}=B,oe=(0,n.default)(B,["require","resolvePath","isMacrosName"]);function Q(ce){const Y=R(ce);return Y&&Y.__esModule&&Y.default?Y.default:Y}return{name:"macros",visitor:{Program(ce,Y){ce.traverse({ImportDeclaration(ne){if(!E(ne,{node:{source:{value:F=>te(F)}}}))return;const me=ne.node.specifiers.map(F=>({localName:F.local.name,importedName:F.type==="ImportDefaultSpecifier"?"default":F.imported.name})),de=ne.node.source.value,A=g({path:ne,imports:me,source:de,state:Y,babel:T,interopRequire:Q,resolvePath:L,options:oe});(!A||!A.keepImports)&&ne.remove()},VariableDeclaration(ne){const ge=me=>E(me,{node:{init:{callee:{type:"Identifier",name:"require"},arguments:de=>de.length===1&&te(de[0].value)}}});ne.get("declarations").filter(ge).forEach(me=>{const de=me.node.id.name?[{localName:me.node.id.name,importedName:"default"}]:me.node.id.properties.map(Z=>({localName:Z.value.name,importedName:Z.key.name})),A=me.get("init"),F=A.node.arguments[0].value,j=g({path:A,imports:de,source:F,state:Y,babel:T,interopRequire:Q,resolvePath:L,options:oe});(!j||!j.keepImports)&&me.remove()})}})}}}}function g({path:T,imports:B,source:R,state:L,babel:te,interopRequire:oe,resolvePath:Q,options:ce}){const{file:{opts:{filename:Y=""}}}=L;let ne=!1;const ge=B.reduce((Z,{importedName:fe,localName:O})=>{const I=T.scope.getBinding(O);return Z[fe]=I.referencePaths,ne=ne||!!Z[fe].length,Z},{}),me=R.indexOf(".")===0,de=Q(R,a.dirname(w(Y))),A=oe(de);if(!A.isBabelMacro)throw new Error(`The macro imported from "${R}" must be wrapped in "createMacro" which you can get from "babel-plugin-macros". Please refer to the documentation to see how to do this properly: https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/author.md#writing-a-macro`);const F=C(A,Y,R,ce);let j;try{L.file.scope.path.traverse({Identifier(){}}),j=A({references:ge,source:R,state:L,babel:te,config:F,isBabelMacrosCall:!0})}catch(Z){throw Z.name==="MacroError"||(Z.message=`${R}: ${Z.message}`,me||(Z.message=`${Z.message} Learn more: https://www.npmjs.com/package/${R.replace(/^((?:@[^/]+\/)?[^/]+).*/,"$1")}`)),Z}return j}function _(T,B){try{const R=f().search(B);if(R)return{options:R.config[T],path:R.filepath}}catch(R){return{error:R}}return{}}function S(T,B){if(B.hasOwnProperty(T))if(B[T]&&typeof B[T]!="object")console.error(`The macro plugin options' ${T} property was not an object or null.`);else return{options:B[T]};return{}}function C(T,B,R,L){const{configName:te}=T.options;if(te){const oe=_(te,B),Q=S(te,L);if(Q.options===void 0&&oe.options===void 0&&oe.error!==void 0)throw console.error(`There was an error trying to load the config "${te}" for the macro imported from "${R}. Please see the error thrown for more information.`),oe.error;if(oe.options!==void 0&&Q.options!==void 0&&typeof oe.options!="object")throw new Error(`${oe.path} specified a ${te} config of type ${typeof Q.options}, but the the macros plugin's options.${te} did contain an object. Both configs must contain objects for their options to be mergeable.`);return(0,t.default)({},Q.options,{},oe.options)}}function w(T){return a.isAbsolute(T)?T:a.join(process.cwd(),T)}function E(T,B){return T&&B&&Object.keys(B).every(R=>{const L=B[R],te=T[R];return typeof L=="function"?L(te):$(L)?L===te:E(te,L)})}function $(T){return T==null||/^[sbn]/.test(typeof T)}e.exports=m,Object.assign(e.exports,{createMacro:p,MacroError:c})})(dist$3);var distExports$1=dist$3.exports;const{createMacro}=distExports$1;function requireContext({references:e,state:r,babel:{types:t}}){e.default.forEach(n=>n.parentPath.replaceWith(t.callExpression(t.identifier("require.context"),[...n.parent.arguments])))}var requireContext_macro=createMacro(requireContext);const requireContext$1=getDefaultExportFromCjs(requireContext_macro),__vite_import_meta_env__$1={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let files=null;if(typeof jest<"u")files=requireContext$1("../assets/svg",!0,/^\.\/.*\.svg$/);else if({url:typeof document>"u"?require("url").pathToFileURL(__filename).href:_documentCurrentScript&&_documentCurrentScript.tagName.toUpperCase()==="SCRIPT"&&_documentCurrentScript.src||new URL("vs-component-library.js",document.baseURI).href}&&__vite_import_meta_env__$1){files=Object.assign({"../assets/svg/brandscotland-logo.svg":()=>Promise.resolve().then(()=>require("./brandscotland-logo-BbDMkgti.js")).then(r=>r.default),"../assets/svg/cookie-coo.svg":()=>Promise.resolve().then(()=>require("./cookie-coo-Bc1O8aR_.js")).then(r=>r.default),"../assets/svg/highland-cow.svg":()=>Promise.resolve().then(()=>require("./highland-cow-DlMGnebG.js")).then(r=>r.default),"../assets/svg/iCentre.svg":()=>Promise.resolve().then(()=>require("./iCentre-BnLcpIw8.js")).then(r=>r.default),"../assets/svg/icons/docs/deprecated.svg":()=>Promise.resolve().then(()=>require("./deprecated-BJ2e68Yo.js")).then(r=>r.default),"../assets/svg/icons/docs/prototype.svg":()=>Promise.resolve().then(()=>require("./prototype-DQocvgQh.js")).then(r=>r.default),"../assets/svg/icons/docs/ready.svg":()=>Promise.resolve().then(()=>require("./ready-D9pdKFkx.js")).then(r=>r.default),"../assets/svg/icons/docs/review.svg":()=>Promise.resolve().then(()=>require("./review-7L3On10m.js")).then(r=>r.default),"../assets/svg/icons/instagram-filled.svg":()=>Promise.resolve().then(()=>require("./instagram-filled-CvF3WA5q.js")).then(r=>r.default),"../assets/svg/no-js-coo.svg":()=>Promise.resolve().then(()=>require("./no-js-coo-BEt1aICD.js")).then(r=>r.default),"../assets/svg/os-logo-maps-white.svg":()=>Promise.resolve().then(()=>require("./os-logo-maps-white-BTtf_Eki.js")).then(r=>r.default),"../assets/svg/os-logo-maps.svg":()=>Promise.resolve().then(()=>require("./os-logo-maps-QXAuept_.js")).then(r=>r.default),"../assets/svg/visitscotland-logo.svg":()=>Promise.resolve().then(()=>require("./visitscotland-logo-NoymCLtN.js")).then(r=>r.default)});const e={};for(const[r,t]of Object.entries(files)){const n=r.replace("../assets/svg",".");e[n]=t}files=e}else files=requireContext$1("../assets/svg?optimise",!0,/^\.\/.*\.svg$/);const output=files,_sfc_main$1h={name:"VsSvg",release:"0.1.1",status:"prototype",props:{path:{type:String,required:!0},fill:{type:String,default:""},height:{type:[Number,String],default:""},width:{type:[Number,String],default:""}},data(){return{svg:null}},computed:{nativeAttrs(){if(this.svg){const r=lodashExports.first(this.svg.match(/<svg[^>]+.*?>/)).match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|[>"']))+.)["']?/g),t=lodashExports.fromPairs(lodashExports.map(r,lodashExports.partial(lodashExports.split,lodashExports.partial.placeholder,"=",2)));return lodashExports.mapValues(t,lodashExports.partial(lodashExports.replace,lodashExports.partial.placeholder,/"/g,""))}return null},attributes(){if(this.svg){const e={};let r={};return this.fill&&(lodashExports.has(this.nativeAttrs,"style")?(r=this.nativeStyleAttrMap,r.fill=this.fill):r={fill:this.fill},e.style=lodashExports.join(lodashExports.map(lodashExports.toPairs(r),lodashExports.partial(lodashExports.join,lodashExports.partial.placeholder,":")),";")),this.height&&(e.height=this.height),this.width&&(e.width=this.width),lodashExports.extend({},this.nativeAttrs,e)}return null},nativeStyleAttrMap(){if(this.svg){const e=lodashExports.map(lodashExports.split(this.nativeAttrs.style,";"),lodashExports.ary(lodashExports.partial(lodashExports.split,lodashExports.partial.placeholder,":"),1));return lodashExports.fromPairs(e)}return null},children(){return this.svg?lodashExports.nth(this.svg.match(/(<svg[^>]+.*?>)([\s\S]*)(<\/svg>)/),2):null}},mounted(){typeof output=="function"?this.svg=output(`./${this.path}.svg`):output[`./${this.path}.svg`]().then(e=>{this.svg=e})}},_hoisted_1$$=["innerHTML"];function _sfc_render$18(e,r,t,n,a,o){return a.svg?(vue.openBlock(),vue.createElementBlock("svg",vue.mergeProps({key:0},o.attributes,{innerHTML:o.children,focusable:"false"}),null,16,_hoisted_1$$)):vue.createCommentVNode("",!0)}const VsSvg=_export_sfc(_sfc_main$1h,[["render",_sfc_render$18]]),_sfc_main$1g={name:"VsSvgLink",status:"prototype",release:"0.0.1",components:{VsSvg,VsLink},props:{linkAltText:{type:String,required:!0},href:{type:String,required:!0},svgFill:{type:String,default:""},svgPath:{type:String,required:!0},svgHeight:{type:[Number,String],default:""},svgWidth:{type:[Number,String],default:""},dataLayerValue:{type:String,default:null},linkVariant:{type:String,default:"primary",validator:e=>e.match(/(primary|on-dark)/)}}},_hoisted_1$_={class:"visually-hidden","data-test":"link-alt-text"};function _sfc_render$17(e,r,t,n,a,o){const i=vue.resolveComponent("VsSvg"),l=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createBlock(l,{class:"vs-svg-link","data-test":"vs-svg-link",href:t.href,"data-layer-value":t.dataLayerValue,variant:t.linkVariant},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$_,vue.toDisplayString(t.linkAltText),1),vue.createVNode(i,{"data-test":"vs-svg-link__svg",focusable:"false",path:t.svgPath,fill:t.svgFill,width:t.svgWidth,height:t.svgHeight},null,8,["path","fill","width","height"])]),_:1},8,["href","data-layer-value","variant"])}const VsSvgLink=_export_sfc(_sfc_main$1g,[["render",_sfc_render$17]]),_sfc_main$1f={name:"VsFooterCopyright",status:"prototype",release:"0.0.1",components:{VsSvgLink,VsRow,VsContainer,VsCol},props:{linkAltText:{type:String,required:!0},href:{type:String,required:!0}},data(){return{currentYear:""}},computed:{getCurrentYear(){return new Date().getFullYear()}}},_hoisted_1$Z={class:"vs-footer-copyright","data-unique-id":"vs-footer-sub_footer","data-test":"vs-footer-copyright"},_hoisted_2$I={class:"vs-footer-copyright__text"};function _sfc_render$16(e,r,t,n,a,o){const i=vue.resolveComponent("VsSvgLink"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$Z,[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",class:"text-center"},{default:vue.withCtx(()=>[vue.createVNode(i,{class:"vs-footer-copyright__logo mb-100","data-test":"vs-footer-copyright-logo","link-alt-text":t.linkAltText,href:t.href,"svg-fill":"#ffffff","svg-path":"brandscotland-logo","link-variant":"on-dark"},null,8,["link-alt-text","href"]),vue.createElementVNode("p",_hoisted_2$I,[vue.createTextVNode(" © "+vue.toDisplayString(o.getCurrentYear)+" ",1),vue.renderSlot(e.$slots,"copyright")])]),_:3})]),_:3})]),_:3})])}const FooterCopyright=_export_sfc(_sfc_main$1f,[["render",_sfc_render$16]]),_sfc_main$1e={name:"VsGlobalMenuDropdown",status:"prototype",release:"0.1.0",components:{VsDropdown,VsDropdownItem},props:{activeSite:{type:String,required:!0},dropdownLabel:{type:String,default:"Our Websites"},websites:{type:Array,required:!0}}};function _sfc_render$15(e,r,t,n,a,o){const i=vue.resolveComponent("VsDropdownItem"),l=vue.resolveComponent("VsDropdown");return vue.openBlock(),vue.createBlock(l,{text:t.dropdownLabel,variant:"primary",class:"vs-global-menu__dropdown"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.websites,c=>(vue.openBlock(),vue.createBlock(i,{key:c.siteName,href:c.siteUrl,class:vue.normalizeClass(c.siteUrl==t.activeSite?"d-none":""),target:c.siteUrl==t.activeSite?"_self":"_blank",role:"menuitem"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(c.siteName),1)]),_:2},1032,["href","class","target"]))),128))]),_:1},8,["text"])}const VsGlobalMenuDropdown=_export_sfc(_sfc_main$1e,[["render",_sfc_render$15]]),_sfc_main$1d={name:"VsGlobalMenuList",status:"prototype",release:"0.1.0",components:{VsList},props:{activeSite:{type:String,required:!0},websites:{type:Array,required:!0}}},_hoisted_1$Y=["target","href"];function _sfc_render$14(e,r,t,n,a,o){const i=vue.resolveComponent("VsList");return vue.openBlock(),vue.createBlock(i,{unstyled:"",inline:"",class:"vs-global-menu__list"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.websites,l=>(vue.openBlock(),vue.createElementBlock("li",{key:l.siteName,class:vue.normalizeClass(["vs-global-menu__list_item",[l.siteUrl==t.activeSite?"vs-global-menu__list_item--active d-none d-lg-block":""]])},[vue.createElementVNode("a",{target:l.siteUrl==t.activeSite?"_self":"_blank",href:l.siteUrl},vue.toDisplayString(l.siteName),9,_hoisted_1$Y)],2))),128))]),_:1})}const VsGlobalMenuList=_export_sfc(_sfc_main$1d,[["render",_sfc_render$14]]),_sfc_main$1c={name:"VsGlobalMenu",status:"prototype",release:"0.1.0",components:{VsContainer,VsRow,VsCol,VsGlobalMenuDropdown,VsGlobalMenuList,LazyHydrationWrapper:LazyHydrationWrapper$1},props:{activeSite:{type:String,required:!0},dropdownLabel:{type:String,default:"Our Websites"}},data(){return{websites:[{siteName:"VisitScotland",siteUrl:"https://www.visitscotland.com/"},{siteName:"Business Events",siteUrl:"https://businessevents.visitscotland.com/"},{siteName:"Travel Trade",siteUrl:"https://traveltrade.visitscotland.org/"},{siteName:"Toolkit",siteUrl:"https://toolkit.visitscotland.org/"},{siteName:"Corporate",siteUrl:"https://www.visitscotland.org/"}]}}},_hoisted_1$X={class:"vs-global-menu"};function _sfc_render$13(e,r,t,n,a,o){const i=vue.resolveComponent("VsGlobalMenuDropdown"),l=vue.resolveComponent("VsGlobalMenuList"),c=vue.resolveComponent("VsCol"),d=vue.resolveComponent("VsRow"),f=vue.resolveComponent("VsContainer"),p=vue.resolveComponent("LazyHydrationWrapper");return vue.openBlock(),vue.createElementBlock("nav",_hoisted_1$X,[vue.createVNode(p,{"on-interaction":["focus","click"]},{default:vue.withCtx(()=>[vue.createVNode(f,{fluid:"lg",class:"px-025 px-sm-075"},{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,{cols:"12",class:"vs-global-menu__wrapper"},{default:vue.withCtx(()=>[vue.createVNode(i,{class:"d-lg-none","active-site":t.activeSite,"dropdown-label":t.dropdownLabel,websites:a.websites},null,8,["active-site","dropdown-label","websites"]),vue.createVNode(l,{class:"d-none d-lg-flex","active-site":t.activeSite,websites:a.websites},null,8,["active-site","websites"]),vue.renderSlot(e.$slots,"second-menu-item"),vue.renderSlot(e.$slots,"third-menu-item")]),_:3})]),_:3})]),_:3})]),_:3})])}const GlobalMenu=_export_sfc(_sfc_main$1c,[["render",_sfc_render$13]]),_sfc_main$1b={name:"VsGlobalMenuLanguage",status:"prototype",release:"0.1.0",components:{VsDropdown,VsIcon},mixins:[cookieMixin],props:{languageLabel:{type:String,default:"Language"},language:{type:String,default:"en"}},mounted(){this.cookieExists("vs_locale")||this.setCookie("vs_locale",this.localeCookie,!0),this.cookieExists("googtrans")||this.setCookie("googtrans",this.translationCookie,!0)}},_hoisted_1$W={class:"vs-global-menu__languages__text"},_hoisted_2$H={class:"vs-global-menu__languages__selected"},_hoisted_3$y={class:"vs-global-menu__languages__label",role:"menuitem"};function _sfc_render$12(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsDropdown");return vue.openBlock(),vue.createBlock(l,{variant:"primary",class:"vs-global-menu__languages"},{"button-content":vue.withCtx(()=>[vue.createVNode(i,{class:"vs-global-menu__languages__icon",name:"globe",variant:"inverse",size:"xxs",focusable:"false"}),vue.createElementVNode("span",_hoisted_1$W,vue.toDisplayString(t.languageLabel),1),vue.createElementVNode("span",_hoisted_2$H,vue.toDisplayString(e.selectedLanguage),1)]),default:vue.withCtx(()=>[vue.createElementVNode("li",_hoisted_3$y,[vue.createVNode(i,{name:"globe",variant:"inverse",size:"xxs",focusable:"false"}),vue.createTextVNode(" "+vue.toDisplayString(t.languageLabel),1)]),vue.renderSlot(e.$slots,"default")]),_:3})}const GlobalMenuLanguage=_export_sfc(_sfc_main$1b,[["render",_sfc_render$12]]),_sfc_main$1a={name:"VsGlobalMenuLanguageItem",status:"prototype",release:"0.1.0",components:{VsDropdownItem},mixins:[cookieMixin],props:{languageName:{type:String,default:null},languageLink:{type:String,default:null},language:{type:String,default:null}},methods:{setLanguage(){const e=this.cookieExists("vs_locale"),r=this.cookieExists("googtrans");this.setCookie("vs_locale",this.localeCookie,!e),this.setCookie("googtrans",this.translationCookie,!r)}}};function _sfc_render$11(e,r,t,n,a,o){const i=vue.resolveComponent("VsDropdownItem");return vue.openBlock(),vue.createBlock(i,{class:"vs-global-menu__languages__item",href:t.languageLink,onClick:r[0]||(r[0]=l=>o.setLanguage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.languageName),1)]),_:1},8,["href"])}const GlobalMenuLanguageItem=_export_sfc(_sfc_main$1a,[["render",_sfc_render$11]]),_sfc_main$19={name:"VsHeroSection",status:"prototype",release:"0.0.1",components:{VsHeading,VsContainer,VsCol,VsRow,VsCaption,VsRichTextWrapper,VsImg},props:{inset:{type:Boolean,default:!1},heading:{type:String,default:"",required:!0},lede:{type:String,default:"",required:!0},src:{type:String,default:""},imgAlt:{type:String,default:""},imgCaption:{type:String,default:""},imgCredit:{type:String,default:""}},computed:{setInset(){return this.inset||!this.src?"container":""}}},_hoisted_1$V={class:"vs-hero-section","data-test":"vs-hero-section"},_hoisted_2$G={class:"vs-hero-section__text-wrapper"},_hoisted_3$x={class:"mb-0"},_hoisted_4$r={key:0},_hoisted_5$j={key:1,class:"vs-hero-section__divider"};function _sfc_render$10(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRichTextWrapper"),d=vue.resolveComponent("VsRow"),f=vue.resolveComponent("VsContainer"),p=vue.resolveComponent("VsImg"),v=vue.resolveComponent("VsCaption");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$V,[vue.createElementVNode("div",_hoisted_2$G,[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",sm:"10",md:"9",lg:"7"},{default:vue.withCtx(()=>[vue.createVNode(i,{class:"vs-hero-section__heading m-lg-0","data-test":"vs-hero-section__heading",level:"1","heading-style":"display-xs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.heading),1)]),_:1})]),_:1}),vue.createVNode(l,{cols:"12",sm:"8","offset-lg":"1",lg:"4"},{default:vue.withCtx(()=>[t.lede?(vue.openBlock(),vue.createBlock(c,{key:0,"data-test":"vs-hero-section__lede",variant:"lead"},{default:vue.withCtx(()=>[vue.createElementVNode("p",_hoisted_3$x,vue.toDisplayString(t.lede),1)]),_:1})):vue.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),vue.createElementVNode("div",{class:vue.normalizeClass(o.setInset),"data-test":"vs-hero-section__image-wrapper"},[t.src?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4$r,[vue.createVNode(p,{class:"vs-hero-section__img",src:t.src,alt:t.imgAlt},null,8,["src","alt"]),t.imgCaption||t.imgCredit?(vue.openBlock(),vue.createBlock(v,{key:0,class:"p-0",theme:"subtle","data-test":"vs-hero-section__caption"},{caption:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.imgCaption),1)]),credit:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.imgCredit),1)]),_:1})):vue.createCommentVNode("",!0)])):(vue.openBlock(),vue.createElementBlock("hr",_hoisted_5$j))],2)])}const HeroSection=_export_sfc(_sfc_main$19,[["render",_sfc_render$10]]),_sfc_main$18={name:"VsHtmlError",status:"prototype",release:"0.1.0",mixins:[dataLayerMixin],props:{statusCode:{type:String,required:!0}},mounted(){this.createDataLayerObject("errorDataEvent",{error_type:"System Error",error_details:this.statusCode})}},_hoisted_1$U={class:"d-none"};function _sfc_render$$(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("span",_hoisted_1$U)}const HtmlError=_export_sfc(_sfc_main$18,[["render",_sfc_render$$]]),_sfc_main$17={name:"VsTourismInfo",status:"prototype",release:"0.0.1",components:{VsContainer,VsRow,VsCol}},_hoisted_1$T={class:"vs-tourism-info","data-test":"vs-tourism-info"},_hoisted_2$F={key:0,class:"vs-tourism-info__links","data-test":"vs-tourism-info__standalone-links"},_hoisted_3$w={class:"vs-tourism-info__quote-block"},_hoisted_4$q={key:0,class:"vs-tourism-info__links-contained","data-test":"vs-tourism-info__embedded-links"};function _sfc_render$_(e,r,t,n,a,o){const i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$T,[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"10",offset:"1",md:"8","offset-md":"2",lg:"6","offset-lg":"3",class:"vs-tourism-info__intro-content"},{default:vue.withCtx(()=>[e.$slots["tourism-info-links"]&&e.$slots["tourism-info-links"]()&&!(e.$slots["tourism-info-quote"]&&e.$slots["tourism-info-quote"]())?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$F,[vue.renderSlot(e.$slots,"tourism-info-links")])):vue.createCommentVNode("",!0)]),_:3}),vue.createVNode(i,{cols:"12",md:"10","offset-md":"1",class:vue.normalizeClass({"vs-tourism-info__image-offset":e.$slots["tourism-info-quote"]&&e.$slots["tourism-info-quote"]()})},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"tourism-info-image-with-caption")]),_:3},8,["class"]),e.$slots["tourism-info-quote"]&&e.$slots["tourism-info-quote"]()?(vue.openBlock(),vue.createBlock(i,{key:0,cols:"12",md:"10","offset-md":"1",lg:"7","offset-lg":"5",class:"vs-tourism-info__quote-block-container"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$w,[vue.renderSlot(e.$slots,"tourism-info-quote"),e.$slots["tourism-info-links"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$q,[vue.renderSlot(e.$slots,"tourism-info-links")])):vue.createCommentVNode("",!0)])]),_:3})):vue.createCommentVNode("",!0)]),_:3})]),_:3})])}const TourismInfo=_export_sfc(_sfc_main$17,[["render",_sfc_render$_]]),_sfc_main$16={name:"VsIconList",status:"prototype",release:"0.0.1",props:{title:{type:String,default:""}}},_hoisted_1$S={class:"vs-icon-list","data-test":"vs-icon-list"},_hoisted_2$E={key:0,class:"vs-icon-list__title"},_hoisted_3$v={class:"vs-icon-list__list mb-0"};function _sfc_render$Z(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$S,[t.title?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$E,vue.toDisplayString(t.title),1)):vue.createCommentVNode("",!0),vue.createElementVNode("ul",_hoisted_3$v,[vue.renderSlot(e.$slots,"default")])])}const IconList=_export_sfc(_sfc_main$16,[["render",_sfc_render$Z]]),_sfc_main$15={name:"VsIconListItem",status:"prototype",release:"0.0.1",components:{VsIcon},props:{label:{type:String,required:!0},icon:{type:String,required:!0}}},_hoisted_1$R={class:"vs-icon-list__item","data-test":"vs-icon-list__item"};function _sfc_render$Y(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$R,[vue.createVNode(i,{name:t.icon,size:"md",class:"d-block mx-auto"},null,8,["name"]),vue.createTextVNode(" "+vue.toDisplayString(t.label),1)])}const IconListItem=_export_sfc(_sfc_main$15,[["render",_sfc_render$Y]]),_sfc_main$14={name:"VsToggleButton",status:"prototype",release:"0.0.1",components:{VsButton,VsIcon},props:{toggleId:{type:String,default:""}},emits:["toggleAction"],data(){return{show:!1}},methods:{toggleAction(){this.show=!this.show,this.$emit("toggleAction",this.show)}}};function _sfc_render$X(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createBlock(l,{class:"vs-toggle-btn","data-test":"vs-toggle-btn",variant:"transparent","aria-controls":t.toggleId,"aria-expanded":a.show?"true":"false",onClick:o.toggleAction},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default"),a.show?(vue.openBlock(),vue.createBlock(i,{key:0,duotone:"",class:"fa-icon-colours fa-icon-colours--white",name:"circle-xmark"})):vue.renderSlot(e.$slots,"toggle-icon",{key:1},()=>[vue.createVNode(i,{duotone:"",class:"fa-icon-colours",name:"circle-info"})])]),_:3},8,["aria-controls","aria-expanded","onClick"])}const VsToggleButton=_export_sfc(_sfc_main$14,[["render",_sfc_render$X]]),_sfc_main$13={name:"VsVideoCaption",status:"prototype",release:"0.0.1",components:{VsButton,VsToggleButton,VsWarning},inject:{noJsMessage:{default:""},errorMessage:{default:""}},props:{videoBtnText:{type:String,default:""},withToggleBtn:{type:Boolean,default:!1},videoId:{type:String,required:!0},variant:{type:String,default:"wide",validator:e=>e.match(/(wide|narrow)/)}},emits:["toggleAction"],setup(){return{videoStore:useVideoStore()}},data(){return{showErrorMessage:!1}},computed:{videoDetails(){return this.videoStore.videos[this.videoId]},videoLoaded(){return typeof this.videoDetails<"u"&&this.videoDetails.videoDuration>0}},methods:{emitToggle(){this.$emit("toggleAction")},emitShowModal(){this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}},_hoisted_1$Q={key:0,class:"vs-video-caption__buttons-container"},_hoisted_2$D={class:"container"},_hoisted_3$u=vue.createElementVNode("span",{class:"visually-hidden"}," Toggle caption ",-1),_hoisted_4$p={class:"vs-video-caption__details"},_hoisted_5$i={class:"vs-video-caption__title"},_hoisted_6$e={class:"vs-video-caption__duration"},_hoisted_7$b={key:1,class:"vs-video-caption vs-video-caption--no-js vs-video-caption--warning","data-test":"video-caption-nojs"};function _sfc_render$W(e,r,t,n,a,o){const i=vue.resolveComponent("VsButton"),l=vue.resolveComponent("VsToggleButton"),c=vue.resolveComponent("VsWarning");return vue.openBlock(),vue.createElementBlock("div",{"data-test":"video-caption",class:vue.normalizeClass(["vs-video-caption__wrapper",`vs-video-caption__wrapper--${t.variant}`])},[o.videoLoaded?(vue.openBlock(),vue.createElementBlock("div",{"data-test":"video-caption-variants",class:vue.normalizeClass(["vs-video-caption",`vs-video-caption--${t.variant}`]),key:"video-caption"},[t.videoBtnText?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$Q,[vue.createElementVNode("div",_hoisted_2$D,[vue.createVNode(i,{class:"vs-video-caption__button",icon:"play","icon-position":"left",size:"md",ref:"videoShow",rounded:!1,onClick:o.emitShowModal},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.videoBtnText),1)]),_:1},8,["onClick"])]),t.withToggleBtn?(vue.openBlock(),vue.createBlock(l,{key:0,onToggleAction:o.emitToggle},{default:vue.withCtx(()=>[_hoisted_3$u]),_:1},8,["onToggleAction"])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4$p,[vue.createElementVNode("p",_hoisted_5$i,[vue.renderSlot(e.$slots,"video-title")]),vue.createElementVNode("p",_hoisted_6$e,vue.toDisplayString(o.videoDetails.videoDurationMsg),1)])],2)):vue.createCommentVNode("",!0),o.noJsMessage?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$b,[vue.createVNode(c,{size:"small"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.noJsMessage),1)]),_:1})])):vue.createCommentVNode("",!0)],2)}const VsVideoCaption=_export_sfc(_sfc_main$13,[["render",_sfc_render$W]]),_sfc_main$12={name:"VsImageWithCaption",status:"prototype",release:"0.0.1",components:{VsImg,VsToggleButton,VsVideoCaption},provide(){return{noJsMessage:this.noJsMessage,errorMessage:this.errorMessage}},props:{altText:{type:String,default:""},closedDefaultCaption:{type:Boolean,default:!1},imageSrc:{type:String,default:""},isHeroImage:{type:Boolean,default:!1},isVideo:{type:Boolean,default:!1},mobileOverlap:{type:Boolean,default:!1},toggleButtonText:{type:String,default:""},playButtonText:{type:String,default:""},videoId:{type:String,default:""},smallPlayButton:{type:Boolean,default:!1},noJsMessage:{type:String,default:""},useLazyLoading:{type:Boolean,default:!0},errorMessage:{type:String,default:""},showToggle:{type:Boolean,default:!0}},data(){return{showCaption:!1,uniqueCaptionId:""}},computed:{imageWithCaptionClasses(){return{"vs-image-with-caption--closed-default":this.closedDefaultCaption,"vs-image-with-caption--hero":this.isHeroImage,"vs-image-with-caption--video":this.isVideo}},captionWrapperClasses(){return{"d-block":this.showCaption&&!this.isHeroImage,"d-flex":this.showCaption&&this.isHeroImage||this.showCaption&&this.isVideo,container:this.isHeroImage}}},mounted(){this.uniqueCaptionId=this._uid},methods:{toggleCaption(){this.showCaption=!this.showCaption}}},_hoisted_1$P={class:"visually-hidden"},_hoisted_2$C={class:"vs-image-with-caption__captions"},_hoisted_3$t=["id"];function _sfc_render$V(e,r,t,n,a,o){const i=vue.resolveComponent("VsImg"),l=vue.resolveComponent("VsToggleButton"),c=vue.resolveComponent("VsVideoCaption");return vue.openBlock(),vue.createElementBlock("figure",{class:vue.normalizeClass(["vs-image-with-caption",o.imageWithCaptionClasses]),"data-test":"vs-image-with-caption"},[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-image-with-caption__image-wrapper",t.mobileOverlap?"vs-image-with-caption--overlapped":""])},[vue.renderSlot(e.$slots,"default",{},()=>[t.imageSrc?(vue.openBlock(),vue.createBlock(i,{key:0,src:t.imageSrc,alt:t.altText,"use-lazy-loading":t.useLazyLoading},null,8,["src","alt","use-lazy-loading"])):vue.createCommentVNode("",!0)]),t.showToggle?(vue.openBlock(),vue.createBlock(l,{key:0,"img-src":t.imageSrc,"toggle-id":a.uniqueCaptionId,onToggleAction:o.toggleCaption},{"toggle-icon":vue.withCtx(()=>[vue.renderSlot(e.$slots,"toggle-icon")]),default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$P,vue.toDisplayString(t.toggleButtonText),1)]),_:3},8,["img-src","toggle-id","onToggleAction"])):vue.createCommentVNode("",!0)],2),vue.createElementVNode("figcaption",_hoisted_2$C,[t.isVideo?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["vs-image-with-caption__video-caption-wrapper",t.isHeroImage?"container-lg":""])},[vue.createVNode(c,{"video-btn-text":t.playButtonText,"with-toggle-btn":t.showToggle,onToggleAction:o.toggleCaption,"video-id":t.videoId,"error-message":t.errorMessage,variant:t.smallPlayButton?"narrow":"wide"},{"video-title":vue.withCtx(()=>[vue.renderSlot(e.$slots,"video-title")]),_:3},8,["video-btn-text","with-toggle-btn","onToggleAction","video-id","error-message","variant"])],2)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:vue.normalizeClass(["vs-image-with-caption__caption-wrapper",o.captionWrapperClasses]),id:a.uniqueCaptionId},[vue.renderSlot(e.$slots,"img-caption")],10,_hoisted_3$t)])],2)}const ImageWithCaption=_export_sfc(_sfc_main$12,[["render",_sfc_render$V]]),_sfc_main$11={name:"VsInput",status:"prototype",release:"0.0.1",components:{BFormInput:bootstrapVueNext.BFormInput,VsButton},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{value:{type:String,default:""},fieldName:{type:String,required:!0},name:{type:String,default:""},type:{type:String,default:"text"},autoComplete:{type:Boolean,default:!0},validationRules:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},genericValidation:{type:Object,default(){return{}}},hintText:{type:String,default:""},clearButtonText:{type:String,default:""},placeholder:{type:String,default:""},reAlertErrors:{type:Boolean,default:!1}},emits:["updated"],setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,clearErrorsOnFocus:!1}},computed:{elementClass(){let e="";return(this.isInvalid||this.errorsList.length)&&(e="vs-input--error"),`${`vs-input--${this.fieldName}`} ${e}`},showClearButton(){return!!(this.inputVal.length&&this.clearButtonText!=="")}},watch:{triggerValidate(){this.manualValidate()},inputVal(e){this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e}},methods:{clearInput(){this.inputVal=""},focusOnInput(){this.$nextTick(()=>{this.$refs.input.$el.focus()})},clearInputAndFocus(){this.clearInput(),this.focusOnInput()},autocompleteValue(e){let r;switch(e){case"firstName":r="given-name";break;case"lastName":r="family-name";break;case"Email":r="email";break;case"PostalCode":r="postal-code";break;default:r=this.autoComplete?"on":"off";break}return r},validateErrors(){this.clearErrorsOnFocus=!1,this.emitStatus()},resetErrors(){this.clearErrorsOnFocus=!0}},validations(){return this.rules}},_hoisted_1$O={"data-test":"vs-input"},_hoisted_2$B=["id"],_hoisted_3$s=["id"],_hoisted_4$o={class:"visually-hidden"};function _sfc_render$U(e,r,t,n,a,o){const i=vue.resolveComponent("BFormInput"),l=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$O,[t.hintText?(vue.openBlock(),vue.createElementBlock("p",{key:0,class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_2$B)):vue.createCommentVNode("",!0),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:1,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,c=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:c,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$o,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[c]||t.genericValidation[c]),1)])),[[vue.vShow,!t.reAlertErrors&&!a.clearErrorsOnFocus]])),128))],8,_hoisted_3$s)):vue.createCommentVNode("",!0),vue.createVNode(i,{ref:"input",type:t.type,class:vue.normalizeClass(["vs-input",o.elementClass]),modelValue:a.inputVal,"onUpdate:modelValue":r[0]||(r[0]=c=>a.inputVal=c),id:t.fieldName,name:t.name?t.name:t.fieldName,placeholder:t.placeholder,required:e.isRequired,autocomplete:o.autocompleteValue(t.fieldName),v:a.inputVal,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,maxlength:t.validationRules.maxLength?t.validationRules.maxLength:null,minlength:t.validationRules.minLength?t.validationRules.minLength:null,min:t.validationRules.min!==void 0?t.validationRules.min:null,max:t.validationRules.max!==void 0?t.validationRules.max:null,disabled:t.disabled,onBlur:o.validateErrors,onChange:o.validateErrors,onFocus:o.resetErrors},null,8,["type","modelValue","class","id","name","placeholder","required","autocomplete","v","aria-invalid","aria-describedby","maxlength","minlength","min","max","disabled","onBlur","onChange","onFocus"]),o.showClearButton?(vue.openBlock(),vue.createBlock(l,{key:2,class:"vs-input__clear-button d-none d-lg-block","data-test":"input-clear-button",variant:"transparent",icon:"close",size:"md","icon-only":"",onClick:r[1]||(r[1]=vue.withModifiers(c=>o.clearInputAndFocus(),["prevent"]))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.clearButtonText),1)]),_:1})):vue.createCommentVNode("",!0)])}const VsInput=_export_sfc(_sfc_main$11,[["render",_sfc_render$U]]),_sfc_main$10={name:"VsItinerary",status:"prototype",release:"0.0.1",components:{VsContainer,VsRow,VsCol,VsAccordion,VsButton},props:{listViewText:{type:String,default:"List view"},mapViewText:{type:String,default:"Map view"}},data(){return{showMap:!1,isDesktop:!1,withinItineraryMain:!1}},mounted(){const e=document.querySelector(".vds-example");window.addEventListener("resize",this.resizeWidth),e===null?window.addEventListener("scroll",this.onScroll):e.addEventListener("scroll",this.onScroll),this.resizeWidth()},unmounted(){window.removeEventListener("resize",this.resizeWidth)},methods:{resizeWidth(){this.isDesktop=window.innerWidth>=1200,this.showMap=window.innerWidth>=1200},onScroll(){const e=this.$el.getBoundingClientRect(),r=e.top<=(window.innerHeight||document.documentElement.clientHeight),t=e.bottom<=(window.innerHeight||document.documentElement.clientHeight);this.withinItineraryMain=!!(r&&!t)},toggleShowMap(){this.showMap=!this.showMap}}},_hoisted_1$N={class:"vs-itinerary","data-test":"vs-itinerary"},_hoisted_2$A={class:"fixed-bottom"},_hoisted_3$r={class:"d-flex justify-content-center pb-050"},_hoisted_4$n={key:0,class:"vs-itinerary__map-container","data-chromatic":"ignore"};function _sfc_render$T(e,r,t,n,a,o){const i=vue.resolveComponent("VsButton"),l=vue.resolveComponent("VsAccordion"),c=vue.resolveComponent("VsCol"),d=vue.resolveComponent("VsRow"),f=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("section",_hoisted_1$N,[vue.withDirectives(vue.createElementVNode("div",_hoisted_2$A,[vue.createElementVNode("div",_hoisted_3$r,[vue.createVNode(i,{class:"vs-itinerary__map-toggle-button",onClick:r[0]||(r[0]=p=>o.toggleShowMap()),icon:a.showMap?"list":"map","data-test":"vs-itinerary-btn"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.showMap?t.listViewText:t.mapViewText),1)]),_:1},8,["icon"])])],512),[[vue.vShow,!a.isDesktop&&a.withinItineraryMain]]),a.isDesktop||a.showMap?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$n,[vue.renderSlot(e.$slots,"map")])):vue.createCommentVNode("",!0),vue.createVNode(f,{class:"vs-itinerary__outer-container"},{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,{cols:"12",class:"p-0 vs-itinerary__accordion-container"},{default:vue.withCtx(()=>[vue.createVNode(l,{"break-point":"lg"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"list")]),_:3})]),_:3})]),_:3})]),_:3})])}const Itinerary=_export_sfc(_sfc_main$10,[["render",_sfc_render$T]]),_sfc_main$$={name:"VsItineraryDay",status:"prototype",release:"0.0.1",components:{VsContainer,VsRow,VsCol,VsIcon,VsAccordionItem},props:{defaultShow:{type:Boolean,default:!0},dayLabel:{type:String,required:!0},dayNumber:{type:String,required:!0},dayTitle:{type:String,required:!0}},data(){return{show:this.defaultShow}}},_hoisted_1$M={class:"vs-itinerary-day"},_hoisted_2$z={class:"vs-itinerary-day__header"},_hoisted_3$q={class:"vs-itinerary-day__title"},_hoisted_4$m={class:"vs-itinerary-day__sub-heading"},_hoisted_5$h=["id"],_hoisted_6$d={class:"vs-itinerary-day__intro-content"},_hoisted_7$a={class:"list-unstyled"};function _sfc_render$S(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsAccordionItem"),c=vue.resolveComponent("VsCol"),d=vue.resolveComponent("VsRow"),f=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$M,[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(l,{"open-by-default":a.show,"control-id":"itinerary-day-"+t.dayNumber,variant:"transparent","item-break-point":"lg",class:"vs-itinerary-day__list-item"},{title:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$z,[vue.createElementVNode("span",_hoisted_3$q,vue.toDisplayString(t.dayLabel)+" "+vue.toDisplayString(t.dayNumber),1),vue.createElementVNode("span",_hoisted_4$m,vue.toDisplayString(t.dayTitle),1)])]),"icon-open":vue.withCtx(()=>[vue.createVNode(i,{name:"chevron",orientation:"down",size:"lg",padding:3,class:"vs-itinerary-day__toggle-button"})]),"icon-closed":vue.withCtx(()=>[vue.createVNode(i,{name:"chevron",size:"lg",padding:3,class:"vs-itinerary-day__toggle-button"})]),default:vue.withCtx(()=>[vue.createElementVNode("div",{id:"dayPanel_"+t.dayNumber,class:"vs-itinerary-day__panel"},[vue.createElementVNode("div",_hoisted_6$d,[vue.renderSlot(e.$slots,"day-transport"),vue.renderSlot(e.$slots,"day-introduction")]),vue.createElementVNode("ul",_hoisted_7$a,[vue.renderSlot(e.$slots,"stops")])],8,_hoisted_5$h)]),_:3},8,["open-by-default","control-id"])]),_:3})]),_:3})]),_:3})])}const ItineraryDay=_export_sfc(_sfc_main$$,[["render",_sfc_render$S]]),_sfc_main$_={name:"VsItineraryStop",status:"prototype",release:"0.0.1",components:{VsHeading,VsIcon},props:{stopLabel:{type:String,required:!0},stopNumber:{type:String,required:!0},stopTitle:{type:String,required:!0}}},_hoisted_1$L={class:"vs-itinerary-stop","data-test":"vs-itinerary-stop"},_hoisted_2$y={class:"border"},_hoisted_3$p={class:"d-flex justify-content-start align-items-top","data-test":"vs-itinerary-stop-heading"},_hoisted_4$l={class:"position-relative"},_hoisted_5$g={class:"map-marker__count","aria-hidden":"true","data-test":"vs-itinerary-stop-marker"},_hoisted_6$c={class:"vs-itinerary-stop__details-container","data-chromatic":"ignore"},_hoisted_7$9={key:0,class:"vs-itinerary-stop__address","data-test":"vs-itinerary-stop-address"};function _sfc_render$R(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$L,[vue.createElementVNode("div",_hoisted_2$y,[vue.createElementVNode("div",_hoisted_3$p,[vue.createElementVNode("div",_hoisted_4$l,[vue.createVNode(i,{name:"map-marker-filled",variant:"tertiary",size:"xl"}),vue.createElementVNode("span",_hoisted_5$g,vue.toDisplayString(t.stopNumber),1)]),vue.createVNode(l,{level:"3","heading-style":"heading-s",class:"vs-itinerary-stop__title ms-100 mt-0"},{"sub-heading":vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.stopTitle),1)]),default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.stopLabel)+" ",1)]),_:1})]),vue.renderSlot(e.$slots,"default"),vue.renderSlot(e.$slots,"stop-description"),vue.renderSlot(e.$slots,"stop-time-to-explore"),vue.renderSlot(e.$slots,"stop-tips"),vue.createElementVNode("div",_hoisted_6$c,[e.$slots["stop-address"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$9,[vue.renderSlot(e.$slots,"stop-address")])):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"stop-info")]),vue.renderSlot(e.$slots,"stop-facilities")]),e.$slots["stop-buttons"]?vue.renderSlot(e.$slots,"stop-buttons",{key:0}):vue.createCommentVNode("",!0)])}const ItineraryStop=_export_sfc(_sfc_main$_,[["render",_sfc_render$R]]),_sfc_main$Z={name:"VsItineraryStopInfo",status:"prototype",release:"0.0.1",components:{VsIcon,VsLink},props:{openingHours:{type:[String,Object],required:!1,default:null},openingTimesLink:{type:String,required:!1,default:null},closedText:{type:String,required:!0},closingSoonText:{type:String,required:!0},openText:{type:String,required:!0},usualText:{type:String,required:!0},provisionalText:{type:String,required:!0},temporarilyClosedText:{type:String,required:!0},toText:{type:String,required:!0},andText:{type:String,required:!0}},data(){return{openingMessage:"",currentDayData:{},currentTime:{},dayDataIndex:0,closedLongTerm:!1,ukDate:"",isCurrentTimeframe:!1,parsedHours:{}}},computed:{hoursMessage(){let e="";if(this.closedLongTerm)e=this.temporarilyClosedText;else if(this.currentDayData.length>0)switch(this.openingMessage){case"closed":e=this.closedText;break;case"closing soon":e=this.closingSoonText;break;case"open":e=this.openText;break;default:e=""}return e},provisionalMessage(){let e="";if(typeof this.currentDayData[0]<"u"){const r=this.currentDayData[0].state==="open"?this.openText:this.closedText;this.currentDayData[0].provisional?e=`${this.provisionalText} ${r.toLowerCase()} ${this.currentDayData[0].day}`:e=`${this.usualText} ${r.toLowerCase()} ${this.currentDayData[0].day}`,this.currentDayData[0].state!=="closed"&&typeof this.currentDayData[this.dayDataIndex]<"u"&&typeof this.currentDayData[this.dayDataIndex].startTime<"u"&&typeof this.currentDayData[this.dayDataIndex].endTime<"u"&&this.currentDayData[this.dayDataIndex].startTime!==""&&this.currentDayData[this.dayDataIndex].endTime!==""&&this.currentDayData.forEach((t,n)=>{e+=` ${t.startTime} ${this.toText} ${t.endTime}`,n+1<this.currentDayData.length&&(e+=` ${this.andText} `)})}return e}},created(){this.parseIncomingData(),this.getCurrentTime(),this.isActiveDate(),this.getCurrentHoursInfo()},methods:{parseIncomingData(){if(typeof this.openingHours!="object"){const e=this.openingHours.replace(/'/g,'"');this.parsedHours=JSON.parse(e)}else this.parsedHours=this.openingHours;this.parsedHours.closedLongTerm&&(this.closedLongTerm=!0)},getCurrentTime(){const e=new Date,r=e.toLocaleTimeString("en-GB",{timeZone:"Europe/London"});this.ukDate=e.toLocaleDateString("en-GB",{timeZone:"Europe/London"});const t=r.substring(0,2),n=r.substring(3,6),a=e.getDay();this.currentTime.hours=parseInt(t,10),this.currentTime.minutes=parseInt(n,10),this.currentTime.day=a},isActiveDate(){if(typeof this.parsedHours.period<"u"){const e=`${this.ukDate.substring(3,5)}/${this.ukDate.substring(0,2)}/${this.ukDate.substring(6,10)}`,r=new Date(this.parsedHours.period.startDay),t=new Date(this.parsedHours.period.endDay),n=new Date(e);n<t&&n>r?this.isCurrentTimeframe=!0:this.isCurrentTimeframe=!1}else this.isCurrentTimeframe=!0},getCurrentHoursInfo(){const e=this.returnDayName(this.currentTime.day);if(typeof this.parsedHours.days<"u"){const r=this.parsedHours.days.filter(t=>t.key===e);typeof r<"u"&&(this.currentDayData=r,this.compareTimes(this.currentTime,this.currentDayData,this.dayDataIndex))}},compareTimes(e,r,t){if(typeof r[t].startTime<"u"&&typeof r[t].endTime<"u"&&r[t].startTime.length>0&&r[t].endTime.length>0){const n=r[t].startTime,a=r[t].endTime,o=parseInt(n.substring(0,n.indexOf(":")),10),i=parseInt(n.substring(n.indexOf(":")+1,n.length),10),l=parseInt(a.substring(0,a.indexOf(":")),10),c=parseInt(a.substring(a.indexOf(":")+1,a.length),10),d=this.calculateClosingSoon(l,c);r[t].state==="closed"?this.openingMessage="closed":o>e.hours||o===e.hours&&i>e.minutes||l<e.hours||l===e.hours&&c<e.minutes?this.openingMessage="closed":this.withinClosingSoonTime(e,d)?this.openingMessage="closing soon":this.openingMessage="open",this.openingMessage==="closed"&&r.length>t+1&&(this.dayDataIndex+=1,this.compareTimes(this.currentTime,this.currentDayData,this.dayDataIndex))}else r[t].state==="closed"&&(this.openingMessage="closed")},returnDayName(e){let r="";switch(e){case 1:r="monday";break;case 2:r="tuesday";break;case 3:r="wednesday";break;case 4:r="thursday";break;case 5:r="friday";break;case 6:r="saturday";break;case 7:r="sunday";break;default:r=""}return r},calculateClosingSoon(e,r){let t,n;return r<30?(t=e-1,n=60+(r-30)):(t=e,n=r-30),{hours:t,mins:n}},withinClosingSoonTime(e,r){return!(r.hours>e.hours||r.hours===e.hours&&r.mins>e.minutes)}}},_hoisted_1$K={class:"vs-itinerary-stop-info","data-test":"vs-itinerary-stop-info"},_hoisted_2$x={key:0,class:"itinerary-stop-info__times mb-0","data-test":"vs-itinerary-stop-status"},_hoisted_3$o=vue.createElementVNode("br",null,null,-1),_hoisted_4$k={key:1,"data-test":"vs-itinerary-stop-hours"},_hoisted_5$f={key:1,"data-test":"vs-stop-link"},_hoisted_6$b={key:2,"data-test":"vs-stop-charge-text"};function _sfc_render$Q(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$K,[vue.createVNode(i,{name:"information",class:"vs-address__map-marker me-050"}),vue.createElementVNode("div",null,[a.isCurrentTimeframe?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[o.hoursMessage.length>0?(vue.openBlock(),vue.createElementBlock("p",_hoisted_2$x,[vue.createTextVNode(vue.toDisplayString(o.hoursMessage),1),_hoisted_3$o])):vue.createCommentVNode("",!0),!a.closedLongTerm&&typeof a.currentDayData[0]<"u"&&typeof a.currentDayData[0].state<"u"&&o.provisionalMessage.length>0?(vue.openBlock(),vue.createElementBlock("p",_hoisted_4$k,vue.toDisplayString(o.provisionalMessage)+". ",1)):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),e.$slots["stop-link-text"]&&t.openingTimesLink!==null?(vue.openBlock(),vue.createElementBlock("p",_hoisted_5$f,[vue.createVNode(l,{href:t.openingTimesLink},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"stop-link-text")]),_:3},8,["href"])])):vue.createCommentVNode("",!0),e.$slots["stop-charge-text"]?(vue.openBlock(),vue.createElementBlock("p",_hoisted_6$b,[vue.renderSlot(e.$slots,"stop-charge-text")])):vue.createCommentVNode("",!0)])])}const ItineraryStopInfo=_export_sfc(_sfc_main$Z,[["render",_sfc_render$Q]]),_sfc_main$Y={name:"VsItineraryTips",status:"prototype",release:"0.0.1",components:{},props:{}},_hoisted_1$J={class:"vs-itinerary-tips position-relative my-175"},_hoisted_2$w={class:"vs-itinerary-tips__text"},_hoisted_3$n={class:"vs-itinerary-tips__svg position-absolute"};function _sfc_render$P(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$J,[vue.createElementVNode("div",_hoisted_2$w,[vue.renderSlot(e.$slots,"text")]),vue.createElementVNode("div",_hoisted_3$n,[vue.renderSlot(e.$slots,"svg")])])}const ItineraryTips=_export_sfc(_sfc_main$Y,[["render",_sfc_render$P]]),_sfc_main$X={name:"VsLinkList",status:"prototype",release:"0.0.1",components:{VsHeading},props:{toc:{type:Boolean,default:!1}},computed:{classes(){return{"link-list":!0,"link-list--toc":this.toc}},dataTest(){return this.toc?"link-list--toc":"link-list"},hasHeadingSlot(){return!!this.$slots.heading}}},_hoisted_1$I=["data-test"],_hoisted_2$v={class:"link-list__list"};function _sfc_render$O(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(o.classes),"data-test":o.dataTest},[vue.createElementVNode("nav",null,[o.hasHeadingSlot?(vue.openBlock(),vue.createBlock(i,{key:0,level:"2","heading-style":"heading-l"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"heading")]),_:3})):vue.createCommentVNode("",!0),vue.createElementVNode("ul",_hoisted_2$v,[vue.renderSlot(e.$slots,"default")])])],10,_hoisted_1$I)}const VsLinkList=_export_sfc(_sfc_main$X,[["render",_sfc_render$O]]),_sfc_main$W={name:"VsLinkListItem",status:"prototype",release:"0.0.1",components:{VsLink},props:{href:{type:String,default:null},type:{type:String,default:"default",validator:e=>e.match(/(default|external|internal|download|video)/)},videoId:{type:String,default:null},videoDescriptor:{type:String,default:null}},setup(){return{videoStore:useVideoStore()}},computed:{formattedVideoDuration(){if(this.videoDetails){let e=`${this.videoDetails.videoFullDuration.seconds}`;return e.length===1&&(e=`0${e}`),`${this.videoDetails.videoFullDuration.minutes}:${e}`}return""},videoDetails(){return this.videoStore.videos[this.videoId]},videoLoaded(){return typeof this.videoDetails<"u"&&this.videoDetails.videoDuration>0}},methods:{emitShowModal(){this.videoId&&this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}},_hoisted_1$H={class:"link-list-item"};function _sfc_render$N(e,r,t,n,a,o){const i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$H,[vue.createVNode(i,{href:t.href,type:t.type=="video"?"default":t.type,role:t.type=="video"?"button":null,onClick:o.emitShowModal},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default"),t.type=="video"&&o.videoLoaded?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(" | "+vue.toDisplayString(t.videoDescriptor)+" "+vue.toDisplayString(o.formattedVideoDuration),1)],64)):vue.createCommentVNode("",!0)]),_:3},8,["href","type","role","onClick"])])}const LinkListItem=_export_sfc(_sfc_main$W,[["render",_sfc_render$N]]),_sfc_main$V={name:"VsListicleItem",status:"prototype",release:"0.0.1",components:{VsHeading,VsRow,VsCol},props:{index:{type:String,default:""},title:{type:String,default:""},subTitle:{type:String,default:""}},computed:{hasKeyFacilitiesSlot(){return!!this.$slots["facilities-slot"]}}},_hoisted_1$G={class:"vs-listicle-item border","data-test":"vs-listicle-item"},_hoisted_2$u={class:"d-flex justify-content-start align-items-top border-bottom border-white"},_hoisted_3$m={class:"position-relative"},_hoisted_4$j={class:"count__bg"},_hoisted_5$e={class:"count","aria-hidden":"true"};function _sfc_render$M(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRow");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$G,[vue.renderSlot(e.$slots,"hippo-details"),vue.createElementVNode("div",_hoisted_2$u,[vue.createElementVNode("div",_hoisted_3$m,[vue.createElementVNode("div",_hoisted_4$j,[vue.createElementVNode("span",_hoisted_5$e,vue.toDisplayString(t.index),1)])]),vue.createVNode(i,{level:"2","heading-style":"heading-s",class:"vs-listicle-item__heading"},{"sub-heading":vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.subTitle),1)]),default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title)+" ",1)]),_:1})]),vue.renderSlot(e.$slots,"image-slot"),vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",lg:"8",class:"mt-050 mt-sm-300 mb-100 mt-lg-050 pe-lg-300"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"description-slot")]),_:3}),vue.createVNode(l,{cols:"12",lg:"4",class:vue.normalizeClass(["key-facilities-list mt-lg-400",[o.hasKeyFacilitiesSlot?"has-facilities":""]])},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"facilities-slot")]),_:3},8,["class"])]),_:3})])}const ListicleItem=_export_sfc(_sfc_main$V,[["render",_sfc_render$M]]),_sfc_main$U={name:"VsLoadingSpinner",status:"prototype",release:"0.1.0",props:{variant:{type:String,default:"light",validator:e=>e.match(/(dark|light)/)}},computed:{spinnerClasses(){return this.variant?`vs-loading-spinner--${this.variant}`:""}}},_hoisted_1$F=vue.createStaticVNode('<div class="vs-loading-spinner__dot"></div><div class="vs-loading-spinner__dot"></div><div class="vs-loading-spinner__dot"></div><div class="vs-loading-spinner__dot"></div><div class="vs-loading-spinner__dot"></div><div class="vs-loading-spinner__dot"></div><div class="vs-loading-spinner__dot"></div>',7),_hoisted_8$6=[_hoisted_1$F];function _sfc_render$L(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-loading-spinner",o.spinnerClasses]),"data-test":"vs-loading-spinner"},_hoisted_8$6,2)}const VsLoadingSpinner=_export_sfc(_sfc_main$U,[["render",_sfc_render$L]]),__vite_import_meta_env__={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};var define_process_env_default$1={ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",JETBRAINS_INTELLIJ_COMMAND_END_MARKER:"ZU98Tjo1s9mdtrKJDjkDGSGGEp5tw63GnQvv7ElLZlCMGXy1aOp9jFhC5BjusZy0",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.7",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-9cb82016;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-49607556;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;;D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\node_modules\\.bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSExecutionPolicyPreference:"Bypass",PSModulePath:"D:\\Users\\martin.taylor\\Documents\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TERMINAL_EMULATOR:"JetBrains-JediTerm",TERM_SESSION_ID:"1ff63cfe-b994-4472-afa5-0ddc6b11b75f",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"};const getEnvValue=e=>define_process_env_default$1?define_process_env_default$1[e]:__vite_import_meta_env__[e],_sfc_main$T={name:"VsSelect",status:"prototype",release:"0.0.1",components:{BFormSelect:bootstrapVueNext.BFormSelect},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{options:{type:Array,required:!0},fieldName:{type:String,required:!0},value:{type:String,default:""},validationRules:{type:Object,default(){return{}}},triggerValidate:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},countryListUrl:{type:String,default:""},hintText:{type:String,default:""},countries:{type:Boolean,default:!1},genericValidation:{type:Object,default(){return{}}},reAlertErrors:{type:Boolean,default:!1}},emits:["toggleAction","updated"],setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,touched:!1,countryList:[]}},computed:{errorClass(){return this.errorsList.length>0&&this.v$.inputVal&&this.v$.inputVal.$anyDirty||this.invalid?"vs-select__element--error":""},fieldOptions(){return this.countries?this.countryList:this.options}},watch:{inputVal(e){this.emitStatus(),this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e},triggerValidate(){this.manualValidate()}},beforeMount(){this.countries&&axios.get(this.countryListUrl).then(e=>{this.countryList=e.data.countries})},methods:{autocompleteValue(e){let r;switch(e){case"Country":r="country-name";break;default:r="on";break}return r}},validations(){return this.rules}},_hoisted_1$E={class:"vs-select"},_hoisted_2$t=["id"],_hoisted_3$l=["id"],_hoisted_4$i={class:"visually-hidden"},_hoisted_5$d={class:"vs-select__container mt-050"},_hoisted_6$a=vue.createElementVNode("span",{class:"vs-select__focus"},null,-1);function _sfc_render$K(e,r,t,n,a,o){const i=vue.resolveComponent("BFormSelect");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$E,[vue.createElementVNode("p",{class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_2$t),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:0,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,l=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:l,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$i,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[l]||t.genericValidation[l]),1)])),[[vue.vShow,!t.reAlertErrors]])),128))],8,_hoisted_3$l)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_5$d,[vue.createVNode(i,vue.mergeProps({modelValue:a.inputVal,"onUpdate:modelValue":r[0]||(r[0]=l=>a.inputVal=l)},e.$attrs,{options:o.fieldOptions,name:t.fieldName,id:t.fieldName,onChange:e.emitStatus,onBlur:e.emitStatus,"data-test":"vs-select","data-testid":"vs-select",class:["vs-select__element",o.errorClass],required:e.isRequired,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,autocomplete:o.autocompleteValue(t.fieldName)}),null,16,["modelValue","options","name","id","onChange","onBlur","required","aria-invalid","aria-describedby","class","autocomplete"]),_hoisted_6$a])])}const VsSelect=_export_sfc(_sfc_main$T,[["render",_sfc_render$K]]);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},_extends.apply(this,arguments)}var defer=function e(){var r=!1,t=[],n=function(){if(!r){r=!0;for(var l=0,c=t.length;l<c;l++)t[l]()}},a=function(l){if(!r){t.push(l);return}l()},o={resolved:function(){return r},resolve:n,promise:{then:a}};return o},ownProp=Object.prototype.hasOwnProperty;function createRecaptcha(){var e=defer();return{notify:function(){e.resolve()},wait:function(){return e.promise},render:function(t,n,a){this.wait().then(function(){a(window.grecaptcha.render(t,n))})},reset:function(t){typeof t>"u"||(this.assertLoaded(),this.wait().then(function(){return window.grecaptcha.reset(t)}))},execute:function(t){typeof t>"u"||(this.assertLoaded(),this.wait().then(function(){return window.grecaptcha.execute(t)}))},checkRecaptchaLoad:function(){ownProp.call(window,"grecaptcha")&&ownProp.call(window.grecaptcha,"render")&&this.notify()},assertLoaded:function(){if(!e.resolved())throw new Error("ReCAPTCHA has not been loaded")}}}var recaptcha=createRecaptcha();typeof window<"u"&&(window.vueRecaptchaApiLoaded=recaptcha.notify);var Recaptcha=vue.defineComponent({name:"VueRecaptcha",props:{sitekey:{type:String,required:!0},theme:{type:String},badge:{type:String},type:{type:String},size:{type:String},tabindex:{type:String},loadRecaptchaScript:{type:Boolean,default:!0},recaptchaScriptId:{type:String,default:"__RECAPTCHA_SCRIPT"},recaptchaHost:{type:String,default:"www.google.com"},language:{type:String,default:""}},emits:["render","verify","expired","error"],setup:function e(r,t){var n=t.slots,a=t.emit,o=vue.ref(null),i=vue.ref(null),l=function(p){a("verify",p)},c=function(){a("expired")},d=function(){a("error")};return vue.onMounted(function(){if(recaptcha.checkRecaptchaLoad(),r.loadRecaptchaScript&&!document.getElementById(r.recaptchaScriptId)){var f=document.createElement("script");f.id=r.recaptchaScriptId,f.src="https://"+r.recaptchaHost+"/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit&hl="+r.language,f.async=!0,f.defer=!0,document.head.appendChild(f)}var p=_extends({},r,{callback:l,"expired-callback":c,"error-callback":d}),v=o.value,m=n.default?v.children[0]:v;recaptcha.render(m,p,function(g){i.value=g,a("render",g)})}),{root:o,widgetId:i,reset:function(){recaptcha.reset(i.value)},execute:function(){recaptcha.execute(i.value)}}},render:function e(){var r=this.$slots.default,t;return typeof r=="function"?t=r():t=r,vue.h("div",{ref:"root"},t)}});const _sfc_main$S={name:"VsRecaptcha",status:"prototype",release:"0.0.1",components:{VueRecaptcha:Recaptcha},props:{siteKey:{type:String,default:""},invalid:{type:Boolean,default:!1},language:{type:String,default:"en"},errorMsg:{type:String,default:""},textareaLabel:{type:String,default:"Does not need any text"},reAlertErrors:{type:Boolean,default:!1}},emits:["verified"],data(){return{response:null,recaptchaSiteKey:""}},created(){this.siteKey?this.recaptchaSiteKey=this.siteKey:this.recaptchaSiteKey=getEnvValue("RECAPTCHA_TOKEN")},methods:{verified(e){this.$emit("verified",e)},render(){const e=document.querySelectorAll('[id^="g-recaptcha-response"]');if(e.length){const r=e[0].parentNode,t=document.querySelector('label[for="g-recaptcha-response"]'),n=document.createElement("label");n.setAttribute("for","g-recaptcha-response"),n.setAttribute("class","visually-hidden"),n.textContent=this.textareaLabel,t||r.insertBefore(n,e[0])}}}},_hoisted_1$D={class:"vs-recaptcha","aria-live":"assertive"},_hoisted_2$s={key:0,class:"error"};function _sfc_render$J(e,r,t,n,a,o){const i=vue.resolveComponent("VueRecaptcha");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$D,[t.invalid&&!t.reAlertErrors?(vue.openBlock(),vue.createElementBlock("span",_hoisted_2$s,vue.toDisplayString(t.errorMsg),1)):vue.createCommentVNode("",!0),a.recaptchaSiteKey?(vue.openBlock(),vue.createBlock(i,{key:1,sitekey:a.recaptchaSiteKey,onVerify:o.verified,onRender:o.render,class:vue.normalizeClass(["vs-recaptcha__embed",t.invalid?"vs-recaptcha__embed--error":""]),language:t.language},null,8,["sitekey","onVerify","onRender","class","language"])):vue.createCommentVNode("",!0)])}const VsRecaptcha=_export_sfc(_sfc_main$S,[["render",_sfc_render$J]]),_sfc_main$R={name:"VsTextarea",status:"prototype",release:"0.0.1",components:{BFormTextarea:bootstrapVueNext.BFormTextarea},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{value:{type:String,default:""},fieldName:{type:String,required:!0},name:{type:String,default:""},autoComplete:{type:Boolean,default:!0},validationRules:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},genericValidation:{type:Object,default(){return{}}},hintText:{type:String,default:""},placeholder:{type:String,default:""},reAlertErrors:{type:Boolean,default:!1},rows:{type:Number||String,default:2}},setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,clearErrorsOnFocus:!1}},computed:{elementClass(){let e="";return(this.isInvalid||this.errorsList.length)&&(e="vs-input--error"),`${`vs-input--${this.fieldName}`} ${e}`}},watch:{triggerValidate(){this.manualValidate()},inputVal(e){this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e}},methods:{clearInput(){this.inputVal=""},focusOnInput(){this.$nextTick(()=>{this.$refs.input.$el.focus()})},clearInputAndFocus(){this.clearInput(),this.focusOnInput()},autocompleteValue(){return this.autoComplete?"on":"off"},validateErrors(){this.clearErrorsOnFocus=!1,this.emitStatus()},resetErrors(){this.clearErrorsOnFocus=!0}},validations(){return this.rules}},_hoisted_1$C={"data-test":"vs-textarea"},_hoisted_2$r=["id"],_hoisted_3$k=["id"],_hoisted_4$h={class:"visually-hidden"};function _sfc_render$I(e,r,t,n,a,o){const i=vue.resolveComponent("BFormTextarea");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$C,[t.hintText?(vue.openBlock(),vue.createElementBlock("p",{key:0,class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_2$r)):vue.createCommentVNode("",!0),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:1,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,l=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:l,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$h,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[l]||t.genericValidation[l]),1)])),[[vue.vShow,!t.reAlertErrors&&!a.clearErrorsOnFocus]])),128))],8,_hoisted_3$k)):vue.createCommentVNode("",!0),vue.createVNode(i,{ref:"input",class:vue.normalizeClass(["vs-textarea",o.elementClass]),modelValue:a.inputVal,"onUpdate:modelValue":r[0]||(r[0]=l=>a.inputVal=l),id:t.fieldName,name:t.name?t.name:t.fieldName,placeholder:t.placeholder,required:e.isRequired,autocomplete:o.autocompleteValue(t.fieldName),v:a.inputVal,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,disabled:t.disabled,rows:t.rows,onBlur:o.validateErrors,onChange:o.validateErrors,onFocus:o.resetErrors},null,8,["class","modelValue","id","name","placeholder","required","autocomplete","v","aria-invalid","aria-describedby","disabled","rows","onBlur","onChange","onFocus"])])}const VsTextarea=_export_sfc(_sfc_main$R,[["render",_sfc_render$I]]),_sfc_main$Q={name:"VsForm",status:"prototype",release:"0.0.1",components:{VsInput,VsSelect,VsCheckbox,BFormGroup:bootstrapVueNext.BFormGroup,VsRecaptcha,VsButton,VsHeading,VsWarning,VsTextarea},mixins:[dataLayerMixin],props:{isMarketo:{type:Boolean,default:!0},submitUrl:{type:String,default:""},dataUrl:{type:String,required:!0},recaptchaKey:{type:String,default:getEnvValue("RECAPTCHA_TOKEN")},recaptchaTextareaLabel:{type:String,default:"Does not need any text"},isProd:{type:Boolean,default:!1},munchkinId:{type:String,default:""},marketoInstance:{type:String,default:""},language:{type:String,default:"en"},messagingUrl:{type:String,required:!0},countryListUrl:{type:String,default:""},isTest:{type:Boolean,default:!0}},data(){return{submitted:!1,submitting:!1,submitError:!1,formData:{},messagingData:{},form:{},formIsInvalid:!1,showErrorMessage:!1,errorFields:[],triggerValidate:!1,recaptchaVerified:!1,conditionalFields:{},inputVal:"",reAlertErrors:!1,emailFieldName:""}},computed:{formId(){return this.isProd?this.formData.formLiveId:this.formData.formSandboxId},showFormHeading(){return!this.isUndefined(this.getTranslatedContent)&&!this.isUndefined(this.getTranslatedContent("heading"))}},created(){this.getFormData(),this.getGlobalMessaging()},methods:{getFormData(){axios.get(this.dataUrl).then(e=>{this.formData=e.data,this.isMarketo&&window.MktoForms2&&window.MktoForms2.loadForm(this.marketoInstance,this.munchkinId,this.formId),e.data.fields.forEach(r=>{this.form[r.name]="",r.conditional&&(this.conditionalFields[r.name]=!1)}),this.checkConditionalFields()}).catch(()=>{})},getGlobalMessaging(){axios.get(this.messagingUrl).then(e=>{this.messagingData=e.data}).catch(()=>{})},getLanguageObj(){let e;return this.isUndefined(this.formData[this.language])?e={}:e=this.formData[this.language]||void 0,e},getTranslatedLabel(e,r){const t=this.getLanguageObj();let n="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].label)?n=t[e].label:n=this.formData.fields[r].label,this.showOptionalText(this.formData.fields[r])&&!this.isUndefined(this.getMessagingData("optional",this.language))&&(n=`${n} (${this.getMessagingData("optional",this.language)})`),n},getTranslatedLegend(e,r){const t=this.getLanguageObj();let n="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].descriptor)?n=t[e].descriptor:n=this.formData.fields[r].descriptor,n},getTranslatedInfo(e,r){const t=this.getLanguageObj();let n="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].info)?n=t[e].info:n=this.formData.fields[r].info,n},getTranslatedValidation(e,r){const t=this.getLanguageObj();let n;return this.language==="en"&&!this.isUndefined(this.formData.fields[r].validationMessages)?n=this.formData.fields[r].validationMessages:!this.isUndefined(t[e])&&!this.isUndefined(t[e].validationMessages)?n=t[e].validationMessages:this.language==="en"&&(n=this.formData.fields[r].validationMessages),n},getTranslatedOptions(e,r){const t=this.getLanguageObj();let n=[];return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined([e].options)?n=t[e].options:n=this.formData.fields[r].options,typeof n>"u"&&(n=[]),n},getTranslatedHint(e,r){const t=this.getLanguageObj();let n="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].hint)?n=t[e].hint:this.isUndefined(this.formData.fields[r].hint)?n="":n=this.formData.fields[r].hint,n},getTranslatedContent(e){let r;const t=this.getLanguageObj();return this.language==="en"&&!this.isUndefined(this.formData.content)&&!this.isUndefined(this.formData.content[e])?r=this.formData.content[e]:!this.isUndefined(t.content)&&!this.isUndefined(t.content[e])?r=t.content[e]:r=this.getMessagingData(e,this.language),r},getMessagingData(e,r){return Object.keys(this.messagingData).length>0?this.messagingData[r][e]:e==="validation"?{}:""},getHiddenFields(){const e=this.$el.querySelectorAll("input[type=hidden]"),r={};return e.forEach(t=>{r[t.name]=t.value}),r},isUndefined(e){return typeof e>"u"},updateFieldData(e){this.form[e.field]=e.value||"",Array.isArray(e.errors)?this.formIsInvalid=e.errors.length>0:this.formIsInvalid=e.errors!==null,this.manageErrorStatus(e.field,e.errors),this.checkConditionalFields()},manageErrorStatus(e,r){const t=this.errorFields.indexOf(e);t!==-1?(!r||r.length<1)&&this.errorFields.splice(t,1):r&&r.length>0&&this.errorFields.push(e)},showOptionalText(e){return!!(this.isUndefined(e.validation)||this.isUndefined(e.validation.required))},needsLabel(e){return!(e.element==="radio"||e.element==="submit"||e.element==="checkbox")},preSubmit(e){e.preventDefault();function r(n){return n.validation&&n.validation.required}this.isTest||this.onRecaptchaVerify(),this.triggerValidate=!0;const t=this.formData.fields.filter(r);t.length===0?this.formIsInvalid=!1:t.forEach(n=>{if(!/\S/.test(this.form[n.name])){let a=!0;n.name in this.conditionalFields&&!this.conditionalFields[n.name]&&(a=!1),this.formIsInvalid=a}}),this.showErrorMessage=this.formIsInvalid,Object.entries(this.conditionalFields).forEach(([n,a])=>{a||(this.form[n]="")}),this.errorFields.length>0&&(this.formIsInvalid=!0),!this.formIsInvalid&&this.recaptchaVerified?this.isMarketo?this.marketoSubmit():this.axiosSubmit():(this.showErrorMessage=!0,this.reAlertErrors=!0,setTimeout(()=>{this.reAlertErrors=!1},100))},marketoSubmit(){this.createDataLayerObject("formsDataEvent");const e=window.MktoForms2.allForms()[0];e.addHiddenFields(this.form),window.grecaptcha&&e.addHiddenFields({lastReCAPTCHAUserFingerprint:window.grecaptcha.getResponse(),lastRecaptchaEnabledFormID:this.formId}),e.onSuccess(()=>(this.submitting=!1,this.submitted=!0,this.attachEmail(),!1)),e.onSubmit(()=>{this.submitting=!0}),e.submit()},axiosSubmit(){this.createDataLayerObject("formsDataEvent"),this.submitting=!0;let e="";window.grecaptcha&&(e=window.grecaptcha.getResponse());const r=this.getHiddenFields();axios.post(this.submitUrl,{...this.form,...r,formType:this.formData.content?this.formData.content.formType:"","g-recaptcha-response":e}).then(()=>(this.submitting=!1,this.submitted=!0,this.attachEmail(),!1)).catch(()=>{})},attachEmail(){this.formData.fields.forEach(e=>{e.type==="email"&&!this.emailFieldName&&(this.emailFieldName=e.name)}),this.emailFieldName&&typeof exponea<"u"&&exponea.identify({email_id:this.form[this.emailFieldName]},null,null,null,!0)},onRecaptchaVerify(){window.grecaptcha&&typeof window.grecaptcha.getResponse=="function"&&window.grecaptcha.getResponse()!==""?this.recaptchaVerified=!0:this.recaptchaVerified=!1},checkConditionalFields(){Object.keys(this.conditionalFields).forEach(e=>{const r=this.formData.fields.find(n=>n.name===e);let t=!0;Object.keys(r.conditional).forEach(n=>{const a=r.conditional[n];Array.isArray(a)?a.indexOf(this.form[n])===-1&&(t=!1):this.form[n]!==a&&(t=!1),t?this.conditionalFields[e]||(this.conditionalFields[e]=!0,this.$refs[e]&&this.$refs[e][0].manualValidate()):(this.manageErrorStatus(e,[]),this.conditionalFields[e]=!1)})})},conditionalElementClass(e){return this.conditionalFields[e]===!0||typeof this.conditionalFields[e]>"u"?"":"d-none"}}},_hoisted_1$B={class:"vs-form","data-test":"vs-form"},_hoisted_2$q=vue.createElementVNode("form",{class:"d-none"},null,-1),_hoisted_3$j={class:"vs-form__main-heading vs-heading vs-heading--heading-l float-none","data-test":"vs-form__main-heading"},_hoisted_4$g={key:0},_hoisted_5$c={"aria-live":"assertive"},_hoisted_6$9={key:0},_hoisted_7$8=["innerHTML"],_hoisted_8$5={key:2};function _sfc_render$H(e,r,t,n,a,o){const i=vue.resolveComponent("VsInput"),l=vue.resolveComponent("VsSelect"),c=vue.resolveComponent("VsCheckbox"),d=vue.resolveComponent("VsTextarea"),f=vue.resolveComponent("BFormGroup"),p=vue.resolveComponent("VsRecaptcha"),v=vue.resolveComponent("VsButton"),m=vue.resolveComponent("VsWarning"),g=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$B,[_hoisted_2$q,a.submitted?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("form",{key:0,onSubmit:r[0]||(r[0]=vue.withModifiers((..._)=>o.preSubmit&&o.preSubmit(..._),["prevent"]))},[vue.createElementVNode("fieldset",null,[vue.createElementVNode("legend",_hoisted_3$j,vue.toDisplayString(o.getTranslatedContent("heading")),1),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.formData.fields,(_,S)=>(vue.openBlock(),vue.createBlock(f,{key:_.name,label:o.needsLabel(_)?o.getTranslatedLabel(_.name,S):"","label-for":o.needsLabel(_)?_.name:"",class:vue.normalizeClass(o.conditionalElementClass(_.name))},{default:vue.withCtx(()=>[!o.isUndefined(_.descriptor)&&_.element==="checkbox"?(vue.openBlock(),vue.createElementBlock("legend",_hoisted_4$g,vue.toDisplayString(o.getTranslatedLegend(_.name,S)),1)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:vue.normalizeClass(o.conditionalElementClass(_.name))},[_.element==="input"?(vue.openBlock(),vue.createBlock(i,{key:0,ref_for:!0,ref:_.name,onStatusUpdate:o.updateFieldData,"field-name":_.name,type:_.type,"validation-rules":_.validation||{},"validation-messages":o.getTranslatedValidation(_.name,S)||{},"generic-validation":o.getMessagingData("validation",t.language),invalid:a.errorFields.indexOf(_.name)>-1,"trigger-validate":a.triggerValidate,"hint-text":o.getTranslatedHint(_.name,S),placeholder:_.placeholder||"","re-alert-errors":a.reAlertErrors},null,8,["onStatusUpdate","field-name","type","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","hint-text","placeholder","re-alert-errors"])):vue.createCommentVNode("",!0),_.element==="select"?(vue.openBlock(),vue.createBlock(l,{key:1,options:o.getTranslatedOptions(_.name,S),ref_for:!0,ref:_.name,onStatusUpdate:o.updateFieldData,"field-name":_.name,"validation-rules":_.validation||{},"validation-messages":o.getTranslatedValidation(_.name,S)||{},"generic-validation":o.getMessagingData("validation",t.language),invalid:a.errorFields.indexOf(_.name)>-1,"trigger-validate":a.triggerValidate,"country-list-url":t.countryListUrl,countries:_.countries,"hint-text":o.getTranslatedHint(_.name,S),"re-alert-errors":a.reAlertErrors},null,8,["options","onStatusUpdate","field-name","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","country-list-url","countries","hint-text","re-alert-errors"])):vue.createCommentVNode("",!0),_.element==="checkbox"?(vue.openBlock(),vue.createBlock(c,{key:_.name,ref_for:!0,ref:_.name,name:_.name,value:_.value,label:o.getTranslatedLabel(_.name,S),onStatusUpdate:o.updateFieldData,"field-name":_.name,"validation-rules":_.validation||{},"validation-messages":o.getTranslatedValidation(_.name,S)||{},"generic-validation":o.getMessagingData("validation",t.language),invalid:a.errorFields.indexOf(_.name)>-1,"trigger-validate":a.triggerValidate,"optional-text":o.getMessagingData("optional",t.language),"hint-text":o.getTranslatedHint(_.name,S),"info-text":o.getTranslatedInfo(_.name,S),"re-alert-errors":a.reAlertErrors},null,8,["name","value","label","onStatusUpdate","field-name","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","optional-text","hint-text","info-text","re-alert-errors"])):vue.createCommentVNode("",!0),_.element==="textarea"?(vue.openBlock(),vue.createBlock(d,{key:3,ref_for:!0,ref:_.name,onStatusUpdate:o.updateFieldData,"field-name":_.name,"validation-rules":_.validation||{},"validation-messages":o.getTranslatedValidation(_.name,S)||{},"generic-validation":o.getMessagingData("validation",t.language),invalid:a.errorFields.indexOf(_.name)>-1,"trigger-validate":a.triggerValidate,"hint-text":o.getTranslatedHint(_.name,S),placeholder:_.placeholder||"","re-alert-errors":a.reAlertErrors,rows:_.rows||null},null,8,["onStatusUpdate","field-name","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","hint-text","placeholder","re-alert-errors","rows"])):vue.createCommentVNode("",!0)],2)]),_:2},1032,["label","label-for","class"]))),128))]),vue.renderSlot(e.$slots,"hidden-fields"),vue.createVNode(p,{onVerified:o.onRecaptchaVerify,"site-key":t.recaptchaKey,invalid:!a.recaptchaVerified&&a.showErrorMessage,language:t.language,"error-msg":o.getMessagingData("recaptchaError",t.language),class:"mt-300","textarea-label":t.recaptchaTextareaLabel,"re-alert-errors":a.reAlertErrors},null,8,["onVerified","site-key","invalid","language","error-msg","textarea-label","re-alert-errors"]),vue.createVNode(v,{variant:"primary",type:"submit",class:"vs-form__submit mt-300",onClick:o.preSubmit},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.getTranslatedContent("submit")),1)]),_:1},8,["onClick"])],32)),vue.createVNode(m,{class:"vs-form__no-js"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"no-js")]),_:3}),vue.createElementVNode("div",_hoisted_5$c,[a.submitting?(vue.openBlock(),vue.createElementBlock("p",_hoisted_6$9,[vue.renderSlot(e.$slots,"submitting")])):vue.createCommentVNode("",!0),a.submitted?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[o.getTranslatedContent("successHeading")?(vue.openBlock(),vue.createBlock(g,{key:0,level:"2","heading-style":"heading-l"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.getTranslatedContent("successHeading")),1)]),_:1})):vue.createCommentVNode("",!0),vue.createElementVNode("p",{class:"vs-form__content",innerHTML:o.getTranslatedContent("successContent")},null,8,_hoisted_7$8)],64)):vue.createCommentVNode("",!0),a.submitError?(vue.openBlock(),vue.createElementBlock("p",_hoisted_8$5,[vue.renderSlot(e.$slots,"submit-error")])):vue.createCommentVNode("",!0)])])}const Form=_export_sfc(_sfc_main$Q,[["render",_sfc_render$H]]),_sfc_main$P={name:"VsMegaNavTopMenu",status:"prototype",release:"0.1.0",components:{VsList},inject:["isStatic"]};function _sfc_render$G(e,r,t,n,a,o){const i=vue.resolveComponent("VsList");return vue.openBlock(),vue.createBlock(i,{unstyled:"",class:"vs-mega-nav-top-menu","data-test":"vs-mega-nav-top-menu",role:o.isStatic?"menu":null},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["role"])}const VsMegaNavTopMenu=_export_sfc(_sfc_main$P,[["render",_sfc_render$G]]),_sfc_main$O={name:"VsMegaNavMobileMenu",status:"prototype",release:"0.1.0",mixins:[dataLayerMixin],mounted(){this.emitter&&this.emitter.on("navAccordionClick",e=>{this.dataLayerSubmit(e)})},methods:{dataLayerSubmit(e){const r={target:{text:e}};this.createDataLayerObject("menuNavigationDataEvent",r,null)}}},_hoisted_1$A={class:"mega-nav-mobile-menu","data-test":"vs-mega-nav-mobile-menu"};function _sfc_render$F(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$A,[vue.renderSlot(e.$slots,"default")])}const VsMegaNavMobileMenu=_export_sfc(_sfc_main$O,[["render",_sfc_render$F]]),_sfc_main$N={name:"VsSiteSearch",status:"prototype",release:"0.0.1",components:{VsButton},props:{isShowing:{type:Boolean,default:!1}},emits:["toggleAction"],data(){return{showSearchForm:!0}},methods:{toggleAction(){this.showSearchForm=!this.showSearchForm,this.$emit("toggleAction",this.showSearchForm)}}},_hoisted_1$z={class:"visually-hidden-xxl-down"};function _sfc_render$E(e,r,t,n,a,o){const i=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createBlock(i,{"data-test":"vs-site-search",class:vue.normalizeClass(["vs-site-search",t.isShowing?"vs-site-search--active":""]),icon:"search",size:"md",animate:!1,onClick:o.toggleAction,id:"site-search-btn",rounded:!1},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$z,[vue.renderSlot(e.$slots,"default")])]),_:3},8,["class","onClick"])}const VsSiteSearch=_export_sfc(_sfc_main$N,[["render",_sfc_render$E]]),_sfc_main$M={name:"VsSiteSearchForm",status:"prototype",release:"0.0.1",components:{VsIcon,VsInput,VsButton,VsCol,VsRow,VsContainer},props:{isShowing:{type:Boolean,default:!1},labelText:{type:String,default:""},submitButtonText:{type:String,default:""},clearButtonText:{type:String,default:""},closeButtonText:{type:String,default:""}},emits:["toggleAction"],data(){return{searchTerm:"",showSearchForm:!0}},watch:{isShowing(e){e&&this.focusOnInput()}},methods:{focusOnInput(){this.$nextTick(()=>this.$refs.searchInput.$refs.input.focus())},tabFromClose(e){e.shiftKey||this.closeSearchForm()},updateVal(e){this.searchTerm=e.value},onSubmit(e){this.searchTerm===""&&e.preventDefault()},closeSearchForm(){this.$emit("toggleAction",this.showSearchForm)}}},_hoisted_1$y={key:0,class:"vs-site-search-form","data-test":"vs-site-search-form"},_hoisted_2$p={class:"cludo-input-form d-flex align-items-start",role:"search",id:"cludo-search-input"},_hoisted_3$i={class:"d-flex flex-column flex-grow-1 position-relative"},_hoisted_4$f={for:"site-search",class:"vs-site-search-form__label"},_hoisted_5$b={class:"visually-hidden"};function _sfc_render$D(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsInput"),c=vue.resolveComponent("VsButton"),d=vue.resolveComponent("VsCol"),f=vue.resolveComponent("VsRow"),p=vue.resolveComponent("VsContainer");return a.showSearchForm?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$y,[vue.createVNode(p,{fluid:"lg"},{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(d,{cols:"12"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$p,[vue.createElementVNode("div",_hoisted_3$i,[vue.createElementVNode("label",_hoisted_4$f,[vue.createElementVNode("span",_hoisted_5$b,vue.toDisplayString(t.labelText),1),vue.createVNode(i,{name:"search",size:"xs"})]),vue.createVNode(l,{class:"vs-site-search-form__input cludo-input-form__input",ref:"searchInput",name:"searchrequest",type:"search","field-name":"site-search",placeholder:t.labelText,"clear-button-text":t.clearButtonText,"auto-complete":!1,onUpdated:o.updateVal},null,8,["placeholder","clear-button-text","onUpdated"])]),vue.createVNode(c,{type:"submit",class:"vs-site-search-form__search-button cludo-input-form__search-button",variant:"primary",size:"lg",rounded:!1,onClick:o.closeSearchForm},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.submitButtonText),1)]),_:1},8,["onClick"])])]),_:1})]),_:1})]),_:1}),vue.createVNode(c,{class:"vs-site-search-form__close-button d-none d-lg-block",variant:"transparent",icon:"close",size:"md","icon-only":"",onClick:o.closeSearchForm,onKeydown:vue.withKeys(o.tabFromClose,["tab"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.closeButtonText),1)]),_:1},8,["onClick","onKeydown"])])):vue.createCommentVNode("",!0)}const VsSiteSearchForm=_export_sfc(_sfc_main$M,[["render",_sfc_render$D]]),clickOutside={mounted(e,r){e.clickOutsideEvent=t=>{e===t.target||e.contains(t.target)||r.value(t)},document.body.addEventListener("click",e.clickOutsideEvent)},unmounted(e){document.body.removeEventListener("click",e.clickOutsideEvent)}},_sfc_main$L={name:"VsMegaNav",status:"prototype",release:"0.1.0",components:{VsCol,VsRow,VsContainer,VsSvgLink,VsMegaNavTopMenu,VsMegaNavMobileMenu,VsSiteSearch,VsSiteSearchForm,VsButton},directives:{clickOutside},mixins:[dataLayerMixin],provide(){return{isStatic:this.isStatic}},props:{href:{type:String,required:!0},menuToggleAltText:{type:String,required:!0},logoAltText:{type:String,default:"VisitScotland Home"},searchButtonText:{type:String,required:!0},searchLabelText:{type:String,default:"What are you looking for?"},searchClearButtonText:{type:String,default:"Clear form"},searchCloseButtonText:{type:String,default:"Close search form"},noSearch:{type:Boolean,default:!1},isStatic:{type:Boolean,default:!1}},data(){return{isOpen:!1,showSearch:!1,tokens:designTokens}},mounted(){this.addTabClose()},methods:{menuToggle(){this.isOpen=!this.isOpen},toggleSearch(){this.showSearch=!this.showSearch},closeMenu(e){const r=document.getElementsByClassName("vs-mega-nav__menu-mobile")[0];this.isOpen&&!r.contains(e.target)&&(this.isOpen=!1)},addTabClose(){document.body.addEventListener("focusin",e=>{this.isOpen&&(e.target.closest("#vs-mega-nav__menu-mobile")||(this.isOpen=!1))})}}},_hoisted_1$x={class:"vs-mega-nav bg-white","aria-label":"main nav","data-test":"vs-mega-nav",id:"main-nav"},_hoisted_2$o={class:"vs-mega-nav__menu-mobile d-lg-none",id:"vs-mega-nav__menu-mobile","data-test":"vs-mega-nav-mobile-container"};function _sfc_render$C(e,r,t,n,a,o){const i=vue.resolveComponent("VsSvgLink"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsMegaNavTopMenu"),d=vue.resolveComponent("VsSiteSearch"),f=vue.resolveComponent("VsButton"),p=vue.resolveComponent("VsMegaNavMobileMenu"),v=vue.resolveComponent("VsRow"),m=vue.resolveComponent("VsContainer"),g=vue.resolveComponent("VsSiteSearchForm"),_=vue.resolveDirective("click-outside");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createElementVNode("nav",_hoisted_1$x,[vue.createVNode(m,{fluid:"lg",class:"h-100"},{default:vue.withCtx(()=>[vue.createVNode(v,{class:"align-items-center h-100 vs-mega-nav__main-row"},{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"8",md:"4",lg:"3"},{default:vue.withCtx(()=>[vue.createElementVNode("div",null,[vue.createVNode(i,{class:"vs-mega-nav__logo","data-test":"vs-mega-nav__logo","link-alt-text":t.logoAltText,href:t.href,"svg-fill":a.tokens["vs-color-background-brand"],"svg-path":"visitscotland-logo","data-layer-value":"homePageLogoClickDataEvent"},null,8,["link-alt-text","href","svg-fill"])])]),_:1}),vue.createVNode(l,{cols:"4",md:"6",lg:t.noSearch?9:7,class:"vs-mega-nav__menu d-none d-lg-block"},{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"mega-nav-top-menu-items")]),_:3})]),_:3},8,["lg"]),vue.createVNode(l,{cols:"4",md:"8",lg:"2",class:"justify-content-end align-items-center position-static d-flex h-100"},{default:vue.withCtx(()=>[t.noSearch?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(d,{key:0,onToggleAction:o.toggleSearch,"is-showing":a.showSearch},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.searchButtonText),1)]),_:1},8,["onToggleAction","is-showing"])),vue.createElementVNode("div",_hoisted_2$o,[vue.createVNode(f,{class:"vs-mega-nav__mobile-menu-toggle p-0","icon-only":"",icon:a.isOpen?"close":"bars-mobile-menu",variant:"transparent",onClick:r[0]||(r[0]=S=>o.menuToggle()),ref:"toggleButton",rounded:!1,"aria-haspopup":"true"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.menuToggleAltText),1)]),_:1},8,["icon"]),a.isOpen?vue.withDirectives((vue.openBlock(),vue.createBlock(p,{key:0},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"mega-nav-accordion-items")]),_:3})),[[_,o.closeMenu]]):vue.createCommentVNode("",!0)])]),_:3})]),_:3})]),_:3})]),vue.withDirectives(vue.createVNode(g,{onToggleAction:o.toggleSearch,"is-showing":a.showSearch,"label-text":t.searchLabelText,"submit-button-text":t.searchButtonText,"clear-button-text":t.searchClearButtonText,"close-button-text":t.searchCloseButtonText},null,8,["onToggleAction","is-showing","label-text","submit-button-text","clear-button-text","close-button-text"]),[[vue.vShow,a.showSearch]])])}const MegaNav=_export_sfc(_sfc_main$L,[["render",_sfc_render$C]]),_sfc_main$K={name:"VsMegaNavDropdown",status:"prototype",release:"0.1.0",components:{BDropdown:bootstrapVueNext.BDropdown,VsCol,VsContainer,VsRow,VsButton},mixins:[dataLayerMixin],props:{menuToggleAltText:{type:String,required:!0}},emits:["menuToggled"],mounted(){this.emitter&&(this.emitter.on("bv::dropdown::show",()=>{this.$emit("menuToggled")}),this.emitter.on("bv::dropdown::hide",()=>{this.$emit("menuToggled")})),window.addEventListener("resize",this.closeMenu)},beforeUnmount(){window.removeEventListener("resize",this.closeMenu)},methods:{closeMenu(){this.$refs.dropdown.hide()},tabFromClose(e){e.shiftKey||this.closeMenu()},dataLayerSubmit(){if(this.$slots["button-content"]()[1]&&this.$slots["button-content"]()[1].children[0]){const r={target:{text:this.$slots["button-content"]()[1].children[0].children}};this.createDataLayerObject("menuNavigationDataEvent",r,null)}}}},_hoisted_1$w={class:"vs-mega-nav-dropdown","data-test":"vs-mega-nav-dropdown"},_hoisted_2$n={role:"menuitem"},_hoisted_3$h={class:"dropdown-menu dropdown-menu--fallback overflow-auto",role:"menu"},_hoisted_4$e={role:"menuitem"};function _sfc_render$B(e,r,t,n,a,o){const i=vue.resolveComponent("VsButton"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsContainer"),f=vue.resolveComponent("BDropdown");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$w,[vue.createVNode(f,{variant:"transparent",ref:"dropdown",onShow:r[0]||(r[0]=p=>o.dataLayerSubmit(p))},{"button-content":vue.withCtx(()=>[vue.renderSlot(e.$slots,"button-content")]),default:vue.withCtx(()=>[vue.createElementVNode("li",_hoisted_2$n,[vue.createVNode(d,{fluid:"lg",class:"px-0 px-lg-075"},{default:vue.withCtx(()=>[vue.createVNode(c,{class:"g-0"},{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",class:"position-relative"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"cta-link"),vue.renderSlot(e.$slots,"dropdown-content"),vue.createVNode(i,{class:"vs-mega-nav-dropdown__close-btn d-none d-lg-block position-absolute",icon:"close","icon-only":"",size:"sm",variant:"transparent",onClick:o.closeMenu,onKeydown:vue.withKeys(o.tabFromClose,["tab"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.menuToggleAltText),1)]),_:1},8,["onClick","onKeydown"])]),_:3})]),_:3})]),_:3})])]),_:3},512),vue.createElementVNode("ul",_hoisted_3$h,[vue.createElementVNode("li",_hoisted_4$e,[vue.createVNode(d,{fluid:"lg",class:"px-0 px-lg-075"},{default:vue.withCtx(()=>[vue.createVNode(c,{class:"g-0"},{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",class:"position-relative"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"cta-link"),vue.renderSlot(e.$slots,"dropdown-content"),vue.createVNode(i,{class:"vs-mega-nav-dropdown__close-btn d-none d-lg-block position-absolute",icon:"close","icon-only":"",size:"sm",variant:"transparent",onClick:o.closeMenu},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.menuToggleAltText),1)]),_:1},8,["onClick"])]),_:3})]),_:3})]),_:3})])])])}const VsMegaNavDropdown=_export_sfc(_sfc_main$K,[["render",_sfc_render$B]]),_sfc_main$J={name:"VsMegaNavDropdownContainer",status:"prototype",release:"0.1.0",components:{VsMegaNavDropdown,VsLink,LazyHydrationWrapper:LazyHydrationWrapper$1},props:{href:{type:String,default:""},ctaText:{type:String,default:""},align:{type:String,default:"top",validator:e=>e.match(/(left|bottom|top)/)}},computed:{hasFeaturedItem(){return this.$slots["nav-featured-item"]&&this.$slots["nav-featured-item"]()},hasFeaturedItemLeft(){return this.$slots["nav-featured-item-left"]&&this.$slots["nav-featured-item-left"]()},hasFeaturedEvent(){return this.$slots["nav-featured-event"]&&this.$slots["nav-featured-event"]()},alignmentClass(){return this.align==="bottom"?"vs-mega-nav-dropdown-container__featured--bottom":""}}},_hoisted_1$v={class:"vs-mega-nav-dropdown-container","data-test":"vs-mega-nav-dropdown-container",ref:"menuToggle"},_hoisted_2$m=vue.createElementVNode("hr",{class:"vs-mega-nav-dropdown-container__divider"},null,-1),_hoisted_3$g={class:"vs-mega-nav-dropdown-container__columns-wrapper"},_hoisted_4$d={key:2,class:"vs-mega-nav-dropdown-container__featured-event","data-test":"vs-mega-nav-dropdown-container__featured-event"};function _sfc_render$A(e,r,t,n,a,o){const i=vue.resolveComponent("VsLink"),l=vue.resolveComponent("VsMegaNavDropdown"),c=vue.resolveComponent("LazyHydrationWrapper");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$v,[vue.createVNode(c,{"on-interaction":["focus","click"]},{default:vue.withCtx(()=>[vue.createVNode(l,{"menu-toggle-alt-text":"Toggle Menu"},{"button-content":vue.withCtx(()=>[vue.renderSlot(e.$slots,"button-content")]),"cta-link":vue.withCtx(()=>[t.href&&t.ctaText?(vue.openBlock(),vue.createBlock(i,{key:0,href:t.href,"data-test":"vs-mega-nav-dropdown-container__cta-link",class:"vs-mega-nav-dropdown-container__cta-link"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.ctaText),1)]),_:1},8,["href"])):vue.createCommentVNode("",!0),_hoisted_2$m]),"dropdown-content":vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$g,[vue.renderSlot(e.$slots,"dropdown-content"),o.hasFeaturedItemLeft?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["vs-mega-nav-dropdown-container__featured vs-mega-nav-dropdown-container__featured--left",o.alignmentClass]),"data-test":"vs-mega-nav-dropdown-container__featured"},[vue.renderSlot(e.$slots,"nav-featured-item-left")],2)):vue.createCommentVNode("",!0),o.hasFeaturedItem?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["vs-mega-nav-dropdown-container__featured",o.alignmentClass]),"data-test":"vs-mega-nav-dropdown-container__featured"},[vue.renderSlot(e.$slots,"nav-featured-item")],2)):vue.createCommentVNode("",!0),o.hasFeaturedEvent?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$d,[vue.renderSlot(e.$slots,"nav-featured-event")])):vue.createCommentVNode("",!0)])]),_:3})]),_:3})],512)}const MegaNavDropdownContainer=_export_sfc(_sfc_main$J,[["render",_sfc_render$A]]),_sfc_main$I={name:"VsMegaNavList",status:"prototype",release:"0.1.0",components:{VsList,VsHeading},props:{listHeading:{type:String,default:""}},computed:{listHeadingId(){return this.listHeading?`vsMeganav${this.listHeading.replace(/\W/g,"")}`:""}}},_hoisted_1$u=["aria-label"];function _sfc_render$z(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsList");return vue.openBlock(),vue.createElementBlock("nav",{class:"vs-mega-nav-list","data-test":"vs-mega-nav-list","aria-label":o.listHeadingId},[t.listHeading?(vue.openBlock(),vue.createBlock(i,{key:0,class:"vs-mega-nav-list__heading",id:o.listHeadingId,level:"2","heading-style":"heading-xxs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.listHeading),1)]),_:1},8,["id"])):vue.createCommentVNode("",!0),vue.createVNode(l,{class:"vs-mega-nav-list__list",role:"menu"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"nav-heading-cta-link"),vue.renderSlot(e.$slots,"nav-list-items")]),_:3})],8,_hoisted_1$u)}const MegaNavList=_export_sfc(_sfc_main$I,[["render",_sfc_render$z]]),_sfc_main$H={name:"VsMegaNavListItem",status:"prototype",release:"0.1.0",components:{VsLink},mixins:[dataLayerMixin],props:{href:{type:String,default:"#"},subheadingLink:{type:Boolean,default:!1}},computed:{navItemClasses(){return{"vs-mega-nav-list-item__heading":this.href==="#","vs-mega-nav-list-item__link":this.href!=="#","vs-mega-nav-list-item__subheading-link":this.subheadingLink}}}};function _sfc_render$y(e,r,t,n,a,o){const i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",{class:vue.normalizeClass(["vs-mega-nav-list-item",o.navItemClasses]),"data-test":"vs-mega-nav-list-item",role:"presentation"},[vue.createVNode(i,{href:t.href,role:"menuitem","data-layer-value":"menuNavigationDataEvent"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["href"])],2)}const MegaNavListItem=_export_sfc(_sfc_main$H,[["render",_sfc_render$y]]),_sfc_main$G={name:"VsMegaNavAccordionItem",status:"prototype",release:"0.1.0",components:{VsAccordionItem,VsLink},props:{controlId:{type:String,required:!0},title:{type:String,required:!0},level:{type:String,required:!0,validator:e=>e.match(/(1|2)/)},ctaLink:{type:String,default:""},ctaText:{type:String,default:""}},computed:{getUniqueId(){let e=this.title.toLowerCase();return e=e.replace(/\s+/g,"-"),`vs-mega-nav-${e}`},accordionItemClasses(){return[`vs-mega-nav-accordion-item--level-${this.level}`]}}};function _sfc_render$x(e,r,t,n,a,o){const i=vue.resolveComponent("VsLink"),l=vue.resolveComponent("VsAccordionItem");return vue.openBlock(),vue.createBlock(l,{class:vue.normalizeClass(["vs-mega-nav-accordion-item",o.accordionItemClasses]),"data-test":"vs-mega-nav-accordion-item","data-unique-id":o.getUniqueId,"control-id":`vs-mega-nav-accordion-item-${o.getUniqueId}-${t.controlId}`},{title:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),default:vue.withCtx(()=>[t.ctaLink&&t.ctaText?(vue.openBlock(),vue.createBlock(i,{key:0,class:"vs-mega-nav-accordion-item__cta-link","data-test":"vs-mega-nav-accordion-item__cta-link",href:t.ctaLink},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.ctaText),1)]),_:1},8,["href"])):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"default")]),_:3},8,["class","data-unique-id","control-id"])}const MegaNavAccordionItem=_export_sfc(_sfc_main$G,[["render",_sfc_render$x]]),_sfc_main$F={name:"VsMegaNavFeaturedItem",status:"prototype",release:"0.1.0",components:{VsStretchedLinkCard},props:{link:{type:String,required:!0},imgUrl:{type:String,required:!0},imgAlt:{type:String,default:""}}};function _sfc_render$w(e,r,t,n,a,o){const i=vue.resolveComponent("VsStretchedLinkCard");return vue.openBlock(),vue.createBlock(i,{link:t.link,type:"internal","img-src":t.imgUrl,"img-alt":t.imgAlt,class:"vs-mega-nav-featured-item","data-test":"vs-mega-nav-featured-item","heading-level":"2","heading-style":"heading-xxs"},{"stretched-card-header":vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-featured-item-header")]),"stretched-card-content":vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-featured-item-content")]),"stretched-card-link":vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-featured-item-link")]),_:3},8,["link","img-src","img-alt"])}const MegaNavFeaturedItem=_export_sfc(_sfc_main$F,[["render",_sfc_render$w]]),_sfc_main$E={name:"VsMegaNavFeaturedEvent",status:"prototype",release:"0.1.0",components:{VsStretchedLinkCard},props:{sourceUrl:{type:String,default:""}},data(){return{featuredEvent:null}},mounted(){this.sourceUrl&&this.retrieveFeaturedEvent()},methods:{retrieveFeaturedEvent(){axios.get(this.sourceUrl).then(e=>{e.data.data.products&&e.data.data.products.length&&([this.featuredEvent]=e.data.data.products)}).catch(()=>{this.featuredEvent=null})}}},_hoisted_1$t={key:0,class:"vs-mega-nav-featured-event__date-range"},_hoisted_2$l={class:"vs-mega-nav-featured-event__date-detail"},_hoisted_3$f={class:"vs-mega-nav-featured-event__title"},_hoisted_4$c={key:1,class:"vs-mega-nav-featured-event__location"};function _sfc_render$v(e,r,t,n,a,o){const i=vue.resolveComponent("VsStretchedLinkCard");return a.featuredEvent?(vue.openBlock(),vue.createBlock(i,{key:0,link:a.featuredEvent.productLink.link,type:"internal","img-src":a.featuredEvent.images[0].mediaUrl,"img-alt":a.featuredEvent.name,class:"vs-mega-nav-featured-event","data-test":"vs-mega-nav-featured-event","data-chromatic":"ignore"},{"stretched-card-content":vue.withCtx(()=>[a.featuredEvent&&a.featuredEvent.opening?(vue.openBlock(),vue.createElementBlock("p",_hoisted_1$t,[vue.createTextVNode(vue.toDisplayString(a.featuredEvent.opening.period.label)+"  ",1),vue.createElementVNode("span",_hoisted_2$l,vue.toDisplayString(a.featuredEvent.opening.period.startDay),1)])):vue.createCommentVNode("",!0),vue.createElementVNode("p",_hoisted_3$f,vue.toDisplayString(a.featuredEvent.name),1),a.featuredEvent&&a.featuredEvent.address?(vue.openBlock(),vue.createElementBlock("p",_hoisted_4$c,vue.toDisplayString(a.featuredEvent.address.shortAddress),1)):vue.createCommentVNode("",!0)]),"stretched-card-link":vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.featuredEvent.productLink.label),1)]),_:1},8,["link","img-src","img-alt"])):vue.createCommentVNode("",!0)}const MegaNavFeaturedEvent=_export_sfc(_sfc_main$E,[["render",_sfc_render$v]]),_sfc_main$D={name:"VsMegaNavStaticLink",status:"prototype",release:"0.1.0",components:{VsLink},mixins:[dataLayerMixin],props:{href:{type:String,default:"#"},isFullWidth:{type:Boolean,default:!1}}};function _sfc_render$u(e,r,t,n,a,o){const i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",{class:vue.normalizeClass(["vs-mega-nav-static-link",t.isFullWidth?"vs-mega-nav-static-link--full-width":""]),"data-test":"vs-mega-nav-static-link",role:"presentation"},[vue.createVNode(i,{class:"vs-mega-nav-static-link__inner",href:t.href,role:"menuitem","data-layer-value":"menuNavigationDataEvent"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["href"])],2)}const MegaNavStaticLink=_export_sfc(_sfc_main$D,[["render",_sfc_render$u]]),_sfc_main$C={name:"VsMegalinks",status:"prototype",release:"0.0.1",components:{VsContainer,VsRow,VsCol,VsHeading,VsButton,VsRichTextWrapper},provide(){return{noJsMessage:this.noJsMessage,noCookiesMessage:this.noCookiesMessage,cookieLinkText:this.cookieLinkText,theme:this.theme}},props:{title:{type:String,required:!1,default:null},buttonLink:{type:String,required:!1,default:null},variant:{type:String,required:!1,default:null,validator:e=>e.match(/(multi-image|single-image|link-list)/)},theme:{type:String,default:"light",validator:e=>e.match(/(light|grey)/)},noJsMessage:{type:String,default:""},noCookiesMessage:{type:String,default:""},cookieLinkText:{type:String,default:""}},computed:{megalinksClasses(){return[this.variant?`vs-megalinks--${this.variant}`:"",`vs-megalinks--${this.theme}`]}}},_hoisted_1$s={key:0,class:"vs-megalinks__intro","data-test":"vs-megalinks__intro"},_hoisted_2$k={class:"row vs-megalinks__links-wrapper"},_hoisted_3$e={class:"vs-megalinks__button","data-test":"vs-megalinks__button"};function _sfc_render$t(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsRichTextWrapper"),c=vue.resolveComponent("VsCol"),d=vue.resolveComponent("VsRow"),f=vue.resolveComponent("VsButton"),p=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("section",{class:vue.normalizeClass(["vs-megalinks",o.megalinksClasses]),"data-test":"megalinks"},[vue.createVNode(p,{fluid:"lg"},{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,{cols:"12",md:"8","offset-md":"2"},{default:vue.withCtx(()=>[t.title?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$s,[vue.createVNode(i,{level:"2","heading-style":"heading-xl",class:"vs-megalinks__heading","data-test":"vs-megalinks__heading"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),_:1}),e.$slots["vs-megalinks-intro"]&&e.$slots["vs-megalinks-intro"]()?(vue.openBlock(),vue.createBlock(l,{key:0,class:"vs-megalinks__intro-content",variant:"lead","data-test":"vs-megalinks__intro-content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-megalinks-intro")]),_:3})):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)]),_:3})]),_:3}),vue.createElementVNode("div",_hoisted_2$k,[vue.renderSlot(e.$slots,"default")]),t.buttonLink&&t.variant!=="single-image"?(vue.openBlock(),vue.createBlock(d,{key:0},{default:vue.withCtx(()=>[vue.createVNode(c,{cols:"12"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$e,[vue.createVNode(f,{href:t.buttonLink},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-megalinks-button")]),_:3},8,["href"])])]),_:3})]),_:3})):vue.createCommentVNode("",!0)]),_:3})],2)}const Megalinks=_export_sfc(_sfc_main$C,[["render",_sfc_render$t]]),_sfc_main$B={name:"VsMegalinkLinkList",status:"prototype",release:"0.0.1",components:{VsStretchedLinkCard,VsRichTextWrapper,VsStretchedLinkPanels},props:{imgSrc:{required:!0,type:String},imgAlt:{required:!1,type:String,default:""},linkType:{type:String,required:!0,validator:e=>e.match(/(default|external|internal|download|video)/)},theme:{type:String,default:"light",validator:e=>e.match(/(light|grey)/)},linkUrl:{type:String,required:!0},days:{type:String,default:""},daysLabel:{type:String,default:"days"},transport:{type:String,default:""},transportName:{type:String,default:""},videoId:{type:String,default:""},videoBtnText:{type:String,default:"Play Video"},errorMessage:{type:String,default:""}}},_hoisted_1$r={class:"vs-megalink-link-list__title","data-test":"megalink-link-list__title"};function _sfc_render$s(e,r,t,n,a,o){const i=vue.resolveComponent("VsStretchedLinkPanels"),l=vue.resolveComponent("VsRichTextWrapper"),c=vue.resolveComponent("VsStretchedLinkCard");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-megalink-link-list",`vs-megalink-link-list--${t.theme}`])},[vue.createVNode(c,{link:t.linkUrl,type:t.linkType,class:"vs-megalink-link-list__wrapper","img-src":t.imgSrc,"img-alt":t.imgAlt,theme:t.theme,"video-id":t.videoId,"video-btn-text":t.videoBtnText,"error-message":t.errorMessage,"error-type":"full"},vue.createSlots({"stretched-card-header":vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$r,[vue.renderSlot(e.$slots,"vs-link-list-heading")])]),"stretched-card-content":vue.withCtx(()=>[vue.createVNode(l,{class:"vs-megalink-link-list__content","data-test":"megalink-link-list__content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-link-list-content")]),_:3})]),_:2},[t.days&&t.transport?{name:"stretched-card-panels",fn:vue.withCtx(()=>[vue.createVNode(i,{days:t.days,transport:t.transport,"transport-name":t.transportName,"days-label":t.daysLabel,"data-test":"vs-itinerary-panels"},null,8,["days","transport","transport-name","days-label"])]),key:"0"}:void 0]),1032,["link","type","img-src","img-alt","theme","video-id","video-btn-text","error-message"])],2)}const MegalinkLinkList=_export_sfc(_sfc_main$B,[["render",_sfc_render$s]]),_sfc_main$A={name:"VsMegalinkMultiImage",status:"prototype",release:"0.0.1",components:{VsStretchedLinkCard,VsRichTextWrapper,VsStretchedLinkPanels},props:{featured:{required:!1,type:Boolean,default:!1},lastFeatured:{required:!1,type:Boolean,default:!1},imgSrc:{required:!0,type:String},imgAlt:{required:!1,type:String,default:""},linkType:{type:String,required:!0,validator:e=>e.match(/(default|external|internal|download|video)/)},linkUrl:{type:String,required:!0},theme:{type:String,default:"light",validator:e=>e.match(/(light|grey)/)},days:{type:String,default:""},daysLabel:{type:String,default:"days"},transport:{type:String,default:""},transportName:{type:String,default:""},videoId:{type:String,default:""},videoBtnText:{type:String,default:"Play Video"},errorMessage:{type:String,default:""}},computed:{multiImageClasses(){return[`vs-megalink-multi-image-card--${this.theme}`,{"vs-megalink-multi-image-card--featured":this.featured,"vs-megalink-multi-image-card--featured-last":this.lastFeatured}]}}},_hoisted_1$q={class:"vs-megalink-multi-image"},_hoisted_2$j={class:"vs-megalink-multi-image-card__title","data-test":"megalink-multi-image-card__title"};function _sfc_render$r(e,r,t,n,a,o){const i=vue.resolveComponent("VsStretchedLinkPanels"),l=vue.resolveComponent("VsRichTextWrapper"),c=vue.resolveComponent("VsStretchedLinkCard");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$q,[vue.createVNode(c,{link:t.linkUrl,type:t.linkType,class:vue.normalizeClass(["vs-megalink-multi-image-card p-050",o.multiImageClasses]),"heading-style":t.featured?"heading-m":"heading-xs","img-src":t.imgSrc,"img-alt":t.imgAlt,"data-test":t.featured?"megalink-multi-image-featured":"megalink-multi-image-card",theme:t.theme,"video-id":t.videoId,"video-btn-text":t.videoBtnText,"error-message":t.errorMessage,"warning-size":t.featured?"normal":"small"},vue.createSlots({"stretched-card-header":vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$j,[vue.renderSlot(e.$slots,"vs-multi-image-heading")])]),"stretched-card-content":vue.withCtx(()=>[vue.createVNode(l,{class:"vs-megalink-multi-image-card__content","data-test":"megalink-multi-image-card__content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-multi-image-content")]),_:3})]),_:2},[t.days&&t.transport?{name:"stretched-card-panels",fn:vue.withCtx(()=>[vue.createVNode(i,{days:t.days,transport:t.transport,"transport-name":t.transportName,"days-label":t.daysLabel,"data-test":"vs-itinerary-panels"},null,8,["days","transport","transport-name","days-label"])]),key:"0"}:void 0]),1032,["link","type","class","heading-style","img-src","img-alt","data-test","theme","video-id","video-btn-text","error-message","warning-size"])])}const MegalinkMultiImage=_export_sfc(_sfc_main$A,[["render",_sfc_render$r]]),_sfc_main$z={name:"VsMegalinkSingleImage",status:"prototype",release:"0.0.1",components:{VsHeading,VsRichTextWrapper,VsButton,VsRow,VsCol,VsLinkList},props:{alternate:{type:Boolean,default:!1},title:{type:String,default:null},buttonLink:{type:String,default:""}},data(){return{negativeMargin:"200px",imageHeight:"400px"}},computed:{singleImageClasses(){return[this.alternate?"vs-megalink-single-image--alternate":""]},cssVars(){return{"--negative-margin":`-${this.negativeMargin}`,"--image-height":`${this.imageHeight}`}}},mounted(){const e=this.$el.querySelector(".vs-image-with-caption");if(e){const r=e.querySelector("img");r.addEventListener("load",()=>{const t=r.clientHeight/2.5/r.clientWidth;this.negativeMargin=`${t*100}%`,this.imageHeight=`${r.clientHeight}px`})}}},_hoisted_1$p={class:"vs-megalink-single-image__image-container"},_hoisted_2$i={class:"vs-megalink-single-image__content","data-test":"megalink-single-image__content"},_hoisted_3$d={class:"vs-megalink-single-image__button"};function _sfc_render$q(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsRichTextWrapper"),c=vue.resolveComponent("VsLinkList"),d=vue.resolveComponent("VsButton"),f=vue.resolveComponent("VsCol"),p=vue.resolveComponent("VsRow");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-megalink-single-image",o.singleImageClasses]),"data-test":"megalink-single-image",style:vue.normalizeStyle(o.cssVars)},[vue.createElementVNode("div",_hoisted_1$p,[vue.renderSlot(e.$slots,"vs-single-image")]),vue.createVNode(p,{class:"vs-megalink-single-image__text-container"},{default:vue.withCtx(()=>[vue.createVNode(f,{cols:"12",sm:"10",lg:"6",class:vue.normalizeClass(["offset-sm-1",t.alternate?"offset-lg-6":"offset-lg-0"])},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$i,[t.title?(vue.openBlock(),vue.createBlock(i,{key:0,level:"3","heading-style":"heading-m",class:"vs-megalink-single-image__title","data-test":"megalink-single-image__title"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(l,{variant:"lead"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-single-image-content")]),_:3}),vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-single-image-links")]),_:3}),vue.createElementVNode("div",_hoisted_3$d,[t.buttonLink?(vue.openBlock(),vue.createBlock(d,{key:0,href:t.buttonLink,variant:"secondary"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-single-image-button-text")]),_:3},8,["href"])):vue.createCommentVNode("",!0)])])]),_:3},8,["class"])]),_:3})],6)}const MegalinkSingleImage=_export_sfc(_sfc_main$z,[["render",_sfc_render$q]]),_sfc_main$y={name:"VsModal",status:"prototype",release:"0.0.1",components:{VsCol,VsRow,VsContainer,VsButton,BModal:bootstrapVueNext.BModal},props:{modalId:{type:String,required:!0},closeBtnText:{type:String,required:!0},isVideoModal:{type:Boolean,default:!1},autoMount:{type:Boolean,default:!1}},data(){return{show:!1,mounted:this.autoMount}},mounted(){this.mounted=!0,this.emitter&&(this.emitter.on("showModal",e=>this.showModal(e)),this.isVideoModal&&this.emitter.on("showModal",e=>{this.emitter.emit("video-controls",{action:"modal-opened",id:e})}))},methods:{hideModal(){this.emitter&&this.emitter.emit("video-controls",{action:"modal-closed",id:this.modalId}),this.show=!1},showModal(e){e===this.modalId&&(this.show=!0)}}};function _sfc_render$p(e,r,t,n,a,o){const i=vue.resolveComponent("VsButton"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsContainer"),f=vue.resolveComponent("BModal");return a.mounted?(vue.openBlock(),vue.createBlock(f,{key:0,"modal-class":"vs-modal","data-test":"vs-modal",ref:`modal-${t.modalId}`,id:t.modalId,size:"xl","hide-footer":"","hide-header":"",static:t.isVideoModal,modelValue:a.show,"onUpdate:modelValue":r[0]||(r[0]=p=>a.show=p),onHidden:o.hideModal},{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",lg:"1",class:"d-flex justify-content-end align-items-start order-lg-1"},{default:vue.withCtx(()=>[vue.createVNode(i,{class:"vs-modal__close-btn mb-125 mb-lg-0","data-test":"vs-modal__close-btn",variant:"transparent","icon-only":"",icon:"close",onClick:o.hideModal},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.closeBtnText),1)]),_:1},8,["onClick"])]),_:1}),vue.createVNode(l,{cols:"12",lg:"11"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3})]),_:3},8,["id","static","modelValue","onHidden"])):vue.createCommentVNode("",!0)}const Modal=_export_sfc(_sfc_main$y,[["render",_sfc_render$p]]),_sfc_main$x={name:"VsPageIntro",status:"prototype",release:"0.0.1",components:{VsHeading,VsRichTextWrapper,VsContainer,VsRow,VsCol},props:{background:{type:String,default:"light",validator:e=>e.match(/(light|grey)/)},heroIntro:{type:Boolean,default:!1},isItinerary:{type:Boolean,default:!1},fullscreenMobile:{type:Boolean,default:!1},hasToc:{type:Boolean,default:!1}},computed:{introClasses(){return[`vs-page-intro--${this.background}`,this.heroIntro?"vs-page-intro--hero":"",this.fullscreenMobile?"vs-page-intro__fullscreen-mobile-header":""]},contentColProps(){const e={};return this.isItinerary?(e.md="6",e.lg="5",e.xl="6",e["offset-lg"]="1"):this.heroIntro?(e.md="12",e.lg="7",e.xl="8",e["offset-lg"]="1"):this.hasToc?e.md="7":e.md="8",e}}},_hoisted_1$o={key:0,class:"vs-page-intro__fs-mobile-heading-wrapper","data-test":"vs-page-intro__mobile-breadcrumb"},_hoisted_2$h={class:"vs-page-intro__wrapper"},_hoisted_3$c={class:"vs-page-intro__share"},_hoisted_4$b={key:0,class:"list-inline"},_hoisted_5$a={key:0,class:"vs-page-intro__lower py-300","data-test":"vs-page-intro__lower"};function _sfc_render$o(e,r,t,n,a,o){const i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer"),d=vue.resolveComponent("VsHeading"),f=vue.resolveComponent("VsRichTextWrapper");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-page-intro",o.introClasses]),"data-test":"vs-page-intro"},[t.fullscreenMobile?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$o,[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(l,{class:vue.normalizeClass(t.fullscreenMobile?"d-none-md":"")},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"10",lg:t.heroIntro?"8":"","offset-lg":t.heroIntro?"1":""},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-page-intro__breadcrumb",t.heroIntro?"mt-lg-100":"mt-lg-200"])},[vue.renderSlot(e.$slots,"vs-intro-breadcrumb")],2)]),_:3},8,["lg","offset-lg"])]),_:3},8,["class"])]),_:3})])):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"vs-intro-hero"),vue.createElementVNode("div",_hoisted_2$h,[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(l,{class:vue.normalizeClass(t.fullscreenMobile?"d-none d-lg-flex":"")},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"10",lg:t.heroIntro?"8":"","offset-lg":t.heroIntro?"1":""},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-page-intro__breadcrumb",t.heroIntro?"mt-lg-100":"mt-lg-200"])},[vue.renderSlot(e.$slots,"vs-intro-breadcrumb")],2)]),_:3},8,["lg","offset-lg"])]),_:3},8,["class"]),vue.createElementVNode("div",_hoisted_3$c,[vue.renderSlot(e.$slots,"vs-share-button")]),vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"11",md:t.heroIntro?"11":"10",lg:t.heroIntro?"7":"10",xl:t.heroIntro?"8":"10","offset-lg":t.heroIntro?"1":"0",class:"mt-025 mt-sm-0"},{default:vue.withCtx(()=>[vue.createVNode(d,{level:"1","heading-style":"display-s",id:"main-heading"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-intro-heading")]),_:3}),vue.renderSlot(e.$slots,"vs-blog-data")]),_:3},8,["md","lg","xl","offset-lg"])]),_:3}),vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,vue.mergeProps({"data-test":"vs-page-intro__content",cols:"12"},o.contentColProps),{default:vue.withCtx(()=>[vue.createVNode(f,{variant:"lead"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-intro-content")]),_:3}),e.$slots["vs-intro-start-finish"]&&e.$slots["vs-intro-start-finish"]()?(vue.openBlock(),vue.createElementBlock("dl",_hoisted_4$b,[vue.renderSlot(e.$slots,"vs-intro-start-finish")])):vue.createCommentVNode("",!0)]),_:3},16),e.$slots["vs-intro-table-of-contents"]&&e.$slots["vs-intro-table-of-contents"]()?(vue.openBlock(),vue.createBlock(i,{key:0,cols:"12",md:"5"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-intro-table-of-contents")]),_:3})):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"vs-intro-summary-box")]),_:3})]),_:3}),e.$slots["vs-intro-lower"]&&e.$slots["vs-intro-lower"]()?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$a,[vue.renderSlot(e.$slots,"vs-intro-lower")])):vue.createCommentVNode("",!0)])],2)}const PageIntro=_export_sfc(_sfc_main$x,[["render",_sfc_render$o]]),_sfc_main$w={name:"VsPanel",status:"prototype",release:"0.0.1",components:{BCard:bootstrapVueNext.BCard}},_hoisted_1$n={class:"vs-panel__text"};function _sfc_render$n(e,r,t,n,a,o){const i=vue.resolveComponent("BCard");return vue.openBlock(),vue.createBlock(i,{class:vue.normalizeClass(["vs-panel",[e.$slots["vs-panel__title"]?"":"pt-400"]])},{header:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-panel-title")]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$n,[vue.renderSlot(e.$slots,"default")])]),_:3},8,["class"])}const Panel=_export_sfc(_sfc_main$w,[["render",_sfc_render$n]]);let VS$1;function setWindowObj(){typeof window<"u"?VS$1=typeof window.VS=="object"?window.VS:{}:VS$1={}}function getLabelText(e,r,t){setWindowObj();let n="";return Object.keys(VS$1).length>0&&(typeof t<"u"?n=VS$1.search_config.basic_config.search_module[t][e]:n=VS$1.search_config.basic_config.search_module[e]),n||r}function getProductName(e,r){setWindowObj();const t={};return Object.keys(VS$1).length>0&&Object.keys(VS$1.search_config.basic_config.productTypes).forEach(n=>{const a=VS$1.search_config.basic_config.productTypes[n];t[a.value]=a.text}),t[e]?t[e]:r}function getLocale(){let e=document.documentElement.lang.toLocaleLowerCase().slice(0,2)||"";return e==="en"&&(e=""),e}let VS;typeof window<"u"?VS=typeof window.VS=="object"?window.VS:{}:VS={};function getProductTypes(){if(Object.keys(VS).length<=0)return products;const e=VS.search_config.basic_config.productTypes,r=[];return Object.keys(e).forEach(n=>{r.push({key:e[n].value,text:e[n].text,value:e[n].value})}),r}async function getData(e){try{const{data:r}=await axios.get(e);return r}catch(r){console.error(`Axios error: ${r}`)}}var define_process_env_default={ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",JETBRAINS_INTELLIJ_COMMAND_END_MARKER:"ZU98Tjo1s9mdtrKJDjkDGSGGEp5tw63GnQvv7ElLZlCMGXy1aOp9jFhC5BjusZy0",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.7",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-9cb82016;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-49607556;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;;D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\node_modules\\.bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSExecutionPolicyPreference:"Bypass",PSModulePath:"D:\\Users\\martin.taylor\\Documents\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TERMINAL_EMULATOR:"JetBrains-JediTerm",TERM_SESSION_ID:"1ff63cfe-b994-4472-afa5-0ddc6b11b75f",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"},controls={arrowUpKey:38,arrowDownKey:40,escKey:27,enterKey:13};function isFn(e){return typeof e=="function"}function isControlledProp(e,r){return e[r]!==void 0}function hasKeyCode(e,r){return e===r.keyCode}function getItemIndex(e,r,t){return e!==void 0?e:t.length?t.indexOf(r):-1}function hasOwnProperty(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function getNextNonDisabledIndex(e,r,t,n,a){var o=n(r);if(!o||!o.hasAttribute("disabled"))return r;if(e>0)for(var i=r+1;i<t;i+=1){var l=n(i),c=l.hasAttribute("disabled");if(!c)return i}else for(var d=r-1;d>=0;d-=1)if(!n(d).hasAttribute("disabled"))return d;return a?e>0?getNextNonDisabledIndex(1,0,t,n,!1):getNextNonDisabledIndex(-1,t-1,t,n,!1):-1}function scrollToElement(e,r,t){var n=r.clientHeight,a=r.scrollTop,o=e.offsetHeight,i=e.offsetTop;if(i<a)t===0?r.scrollTop=0:r.scrollTop=i;else{var l=i+o,c=a+n;l>c&&(r.scrollTop=l-n)}}function getProps(e){return Object.assign({},e?{modelValue:{default:null}}:{value:{default:null}},{items:{type:Array,required:!0},itemToString:{type:Function,default:function(r){return r?String(r):""}},stateReducer:{type:Function,default:function(r,t){return t.changes}},getItemId:{type:Function,default:function(t){return"v-"+this.idCounter+"-vue-combo-blocks-item-"+t}},menuId:{type:String,default:""},inputId:{type:String,default:""},labelId:{type:String,default:""},scrollIntoView:{type:Boolean,default:!0},circular:{type:Boolean,default:!0}})}function getInitialData(e,r){return{hovered:null,isOpen:!1,hoveredIndex:-1,selectedItem:e,inputValue:r(e)}}var computed={menuElement:function e(){return document.querySelector("#"+this.computedMenuId)},computedMenuId:function e(){return this.menuId||"v-"+this.idCounter+"-vue-combo-blocks-menu"},computedInputId:function e(){return this.inputId||"v-"+this.idCounter+"-vue-combo-blocks-input"},computedLabelId:function e(){return this.labelId||"v-"+this.idCounter+"-vue-combo-blocks-label"},selectedIndex:function e(){return this.items.indexOf(this.selectedItem)}},InputKeyDownArrowDown="InputKeyDownArrowDown",InputKeyDownArrowUp="InputKeyDownArrowUp",InputKeyDownTab="InputKeyDownTab",InputKeyUpEscape="InputKeyUpEscape",InputKeyUpEnter="InputKeyUpEnter",InputChange="InputChange",InputBlur="InputBlur",MenuMouseLeave="MenuMouseLeave",ItemMouseMove="ItemMouseMove",ItemClick="ItemClick",FunctionOpenMenu="FunctionOpenMenu",FunctionCloseMenu="FunctionCloseMenu",FunctionSelectItem="FunctionSelectItem",FunctionSetInputValue="FunctionSetInputValue",FunctionReset="FunctionReset",ControlledPropUpdatedSelectedItem="ControlledPropUpdatedSelectedItem",sct=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem,FunctionCloseMenu,FunctionOpenMenu,FunctionReset,FunctionSelectItem,FunctionSetInputValue,InputBlur,InputChange,InputKeyDownArrowDown,InputKeyDownArrowUp,InputKeyDownTab,InputKeyUpEnter,InputKeyUpEscape,ItemClick,ItemMouseMove,MenuMouseLeave}),inputPropsAndListeners={getInputProps:function e(){return{value:this.inputValue||"","aria-activedescendant":this.hovered?this.getItemId(this.hoveredIndex):"","aria-autocomplete":"list","aria-controls":this.computedMenuId,"aria-labelledby":this.computedLabelId,id:this.computedInputId,autocomplete:"off"}},getInputEventListeners:function e(r){r===void 0&&(r={});var t=r.blur,n=r.input,a=r.keydown,o=r.keyup;return{blur:isFn(t)?t:this.onInputBlur,input:isFn(n)?n:this.onInput,keydown:isFn(a)?a:this.onInputKeyDown,keyup:isFn(o)?o:this.onInputKeyUp}},onInputKeyDown:function e(r){r.key==="Enter"&&this.isOpen?r.preventDefault():hasKeyCode(controls.arrowDownKey,r)&&!this.isOpen?(this.setState({isOpen:!0},InputKeyDownArrowDown),this.moveSelection(r)):this.moveSelection(r)},onInputKeyUp:function e(r){var t=controls.enterKey,n=controls.escKey;if(this.isOpen)if(hasKeyCode(t,r)){if(this.hoveredIndex>=0){r.preventDefault();var a=this.getItemNodeFromIndex(this.hoveredIndex);if(a&&a.hasAttribute("disabled"))return;this.setState({inputValue:this.itemToString(this.hovered),selectedItem:this.hovered,hoveredIndex:-1,hovered:null,isOpen:!1},InputKeyUpEnter)}}else hasKeyCode(n,r)&&this.setState({hoveredIndex:-1,hovered:null,isOpen:!1},InputKeyUpEscape)},onInputBlur:function e(){this.setState({isOpen:!1,inputValue:this.itemToString(this.selectedItem),hovered:null,hoveredIndex:-1},InputBlur)},onInput:function e(r){var t=r.target?r.target.value:r;this.setState({inputValue:t,hovered:null,isOpen:!0},InputChange)}},itemPropsAndListeners={getItemEventListeners:function e(r){var t=this;r===void 0&&(r={});var n=r.index,a=r.disabled,o=r.item;o===void 0&&(o=void 0);var i=r.mousemove,l=r.mousedown,c=r.click;return a?{}:{mousemove:isFn(i)?i:function(){return t.onItemMouseMove(n,o)},mousedown:isFn(l)?l:this.onItemMouseDown,click:isFn(c)?c:function(){return t.onItemClick(o)}}},onItemMouseMove:function e(r,t){var n=getItemIndex(r,t,this.items);this.hoveredIndex!==n&&this.setState({hoveredIndex:n,hovered:t},ItemMouseMove)},onItemMouseDown:function e(r){r.preventDefault()},onItemClick:function e(r){this.setState({inputValue:this.itemToString(r),selectedItem:r,isOpen:!1,hoveredIndex:-1,hovered:null},ItemClick)},getItemProps:function e(r){r===void 0&&(r={});var t=r.index,n=r.disabled,a=r.item;a===void 0&&(a=void 0);var o=getItemIndex(t,a,this.items),i=this.getItemId(o);return{id:i,disabled:n?!0:void 0,role:"option","aria-selected":this.hoveredIndex===o||this.selectedItem===a?"true":"false"}}},menuPropsAndListeners={getMenuProps:function e(){return{id:this.computedMenuId,role:"listbox","aria-labelledby":this.computedLabelId}},getMenuEventListeners:function e(r){r===void 0&&(r={});var t=r.mouseleave,n=r.mousedown;return{mouseleave:isFn(t)?t:this.onMenuMouseLeave,mousedown:isFn(n)?n:this.onMenuMouseDown}},onMenuMouseLeave:function e(){this.setState({hoveredIndex:-1,hovered:null},MenuMouseLeave)},onMenuMouseDown:function e(r){r.preventDefault()}},methods=Object.assign({},inputPropsAndListeners,itemPropsAndListeners,menuPropsAndListeners,{getComboboxProps:function e(){return{role:"combobox","aria-haspopup":"listbox","aria-owns":this.computedMenuId,"aria-expanded":this.isOpen?"true":"false"}},getLabelProps:function e(){return{id:this.computedLabelId,for:this.computedInputId}},autocompleteText:function e(r){this.setInputValue(this.itemToString(r))},reset:function e(){this.setState({selectedItem:null,inputValue:""},FunctionReset)},select:function e(r){this.setState({inputValue:this.itemToString(r),selectedItem:r,isOpen:!1,hoveredIndex:-1,hovered:null},FunctionSelectItem)},setHoveredItem:function e(r,t,n){r&&r!==this.hovered&&this.$emit("hover",r,n),this.hovered=r,this.hoveredIndex=typeof t=="number"?t:-1},closeMenu:function e(){this.setState({isOpen:!1,hoveredIndex:-1,hovered:null},FunctionCloseMenu)},openMenu:function e(){this.setState({isOpen:!0},FunctionOpenMenu)},getItemNodeFromIndex:function e(r){return this.menuElement.querySelector("#"+this.getItemId(r))},scrollItemIntoView:function e(r){var t=this.getItemNodeFromIndex(r);scrollToElement(t,this.menuElement,r)},moveSelection:function e(r){var t=this,n=this.items.length;if(!(!this.isOpen||!n)){var a=hasKeyCode(controls.arrowDownKey,r),o=hasKeyCode(controls.arrowUpKey,r);if(a||o){r.preventDefault();var i=a*2-1,l=a?0:n-1,c=a?this.hoveredIndex<n-1:this.hoveredIndex>0,d=c?this.hoveredIndex+i:l,f=getNextNonDisabledIndex(i,d,n,this.getItemNodeFromIndex,this.circular);if(!this.circular&&(o&&f>this.hoveredIndex||a&&f<this.hoveredIndex))return;var p=this.items[f];this.scrollIntoView&&this.$nextTick(function(){t.scrollItemIntoView(d)}),this.setState({hoveredIndex:f,hovered:p},a?InputKeyDownArrowDown:InputKeyDownArrowUp)}}},setInputValue:function e(r){this.inputValue!==r&&this.setState({inputValue:r},FunctionSetInputValue)}});function slot(e){return{getInputProps:e.getInputProps,getItemProps:e.getItemProps,getMenuProps:e.getMenuProps,getComboboxProps:e.getComboboxProps,getLabelProps:e.getLabelProps,getInputEventListeners:e.getInputEventListeners,getMenuEventListeners:e.getMenuEventListeners,getItemEventListeners:e.getItemEventListeners,isOpen:e.isOpen,selectedItem:e.selectedItem,hoveredIndex:e.hoveredIndex,inputValue:e.inputValue,reset:e.reset,select:e.select,setInputValue:e.setInputValue,openMenu:e.openMenu,closeMenu:e.closeMenu}}var idCounter=0;function beforeCreate(){this.idCounter=idCounter.toString(),idCounter+=1}var isVue3=!!vue.defineComponent;!isVue3&&define_process_env_default.NODE_ENV!=="production"&&console.error(`Looks like your Vue version is 2.x, but you are using VueComboBlocks for Vue 3.
366
- Install the correct version for Vue 2.x: "npm i vue-combo-blocks@vue2"`);var VueComboBlocks=vue.defineComponent({name:"vue-combo-blocks",emits:{select:null,"update:modelValue":null,"input-value-change":null,"is-open-change":null,"hovered-index-change":null,"state-change":null,change:null,"show-list":null,focus:null,hover:null},props:getProps(isVue3),watch:{modelValue:function e(r){isControlledProp(this.$props,"modelValue")&&(this.inputValue=this.itemToString(r),this.selectedItem=r)}},beforeCreate,data:function e(){return getInitialData(this.modelValue,this.itemToString)},computed:Object.assign({},computed),methods:Object.assign({},{setState:function e(r,t){var n=this.$data,a=this.stateReducer(n,{changes:r,type:t}),o=hasOwnProperty(a,"selectedItem"),i=a.selectedItem!==n.selectedItem;o&&(this.$emit("select",a.selectedItem,t),i&&this.$emit("update:modelValue",a.selectedItem,t));var l={};for(var c in a)hasOwnProperty(a,c)&&n[c]!==a[c]&&(l[c]=a[c],this[c]=l[c],c==="inputValue"?this.$emit("input-value-change",a[c],t):c==="isOpen"?this.$emit("is-open-change",a[c],t):c==="hoveredIndex"&&this.$emit("hovered-index-change",a[c],t));this.$emit("state-change",l,t)}},methods),render:function e(){return this.$slots.default(slot(this))}});VueComboBlocks.stateChangeTypes=sct;const _hoisted_1$m={"data-test":"vs-autocomplete",class:"vs-autocomplete mb-100"},_hoisted_2$g=["for"],_hoisted_3$b=["placeholder","onClick"],_hoisted_4$a=["name"],_sfc_main$v=vue.defineComponent({__name:"Autocomplete",props:{id:{},label:{},mode:{},multiselectLabel:{},name:{},options:{},placeholder:{},trackBy:{},isTourLocation:{type:Boolean},defaultVal:{}},emits:["changeValue"],setup(e,{emit:r}){const t=e,n=r,a=vue.ref([]),o=vue.ref(t.options),i=v=>v?v[d.value]:"",l=v=>{o.value=t.options.filter(m=>m[d.value].toLowerCase().includes(v.toLowerCase()))},c=v=>{typeof t.trackBy<"u"?n("changeValue",v[t.trackBy]):n("changeValue",v.label)},d=vue.computed(()=>typeof t.multiselectLabel<"u"?t.multiselectLabel:"name"),f=vue.computed(()=>{if(typeof a.value=="string"){if(t.isTourLocation){const v=t.options.find(m=>m.name===a.value);if(typeof v<"u")return v.slug.trim()}return a.value.trim()}else if(typeof a.value=="object"&&Object.keys(a.value).length>0)return i(a.value).trim()}),p=vue.computed(()=>!!(f.value&&f.value.length>0));return vue.watch(()=>a.value,()=>{a.value===null&&(a.value=[])}),vue.onMounted(()=>{typeof t.defaultVal<"u"&&(a.value=t.defaultVal)}),(v,m)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$m,[vue.createElementVNode("label",{for:v.id},vue.toDisplayString(v.label),9,_hoisted_2$g),vue.createVNode(vue.unref(VueComboBlocks),{"input-id":v.id,modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=g=>a.value=g),itemToString:i,items:o.value,onInputValueChange:l,onSelect:c},{default:vue.withCtx(({getInputProps:g,getInputEventListeners:_,hoveredIndex:S,isOpen:C,getMenuProps:w,getMenuEventListeners:E,getItemProps:$,getItemEventListeners:T,getComboboxProps:B,openMenu:R})=>[vue.createElementVNode("div",vue.mergeProps(B(),{class:"vs-autocomplete__list-wrapper"}),[vue.createElementVNode("input",vue.mergeProps({class:"vs-input form-control"},g(),vue.toHandlers(_(),!0),{placeholder:v.placeholder,onClick:L=>R()}),null,16,_hoisted_3$b),vue.createVNode(VsIcon,{name:"chevron-down",variant:"primary",size:"sm"}),vue.withDirectives(vue.createElementVNode("ul",vue.mergeProps(w(),vue.toHandlers(E(),!0),{class:"vs-autocomplete__list"}),[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.value,(L,te)=>(vue.openBlock(),vue.createElementBlock("li",vue.mergeProps({key:L.id,ref_for:!0},$({item:L,index:te}),vue.toHandlers(T({item:L,index:te}),!0),{class:["vs-autocomplete__list-item",{"vs-autocomplete__list-item--hover":S===te}]}),vue.toDisplayString(L[d.value]),17))),128))],16),[[vue.vShow,C]])],16)]),_:1},8,["input-id","modelValue","items"]),p.value?vue.withDirectives((vue.openBlock(),vue.createElementBlock("input",{key:0,type:"hidden",name:v.name,"onUpdate:modelValue":m[1]||(m[1]=g=>f.value=g)},null,8,_hoisted_4$a)),[[vue.vModelText,f.value]]):vue.createCommentVNode("",!0)]))}}),_hoisted_1$l={class:"vs-guest-selector-number-group","data-test":"vs-guest-selector-number-group"},_hoisted_2$f={class:"vs-guest-selector-number-group__label"},_hoisted_3$a={class:"vs-guest-selector-number-group__buttons justify-content-end"},_hoisted_4$9=["disabled"],_hoisted_5$9=["name","disabled"],_sfc_main$u=vue.defineComponent({__name:"GuestSelectorNumberGroup",props:{adultCount:{},childrenCount:{},count:{},disabled:{type:Boolean},id:{},infantCount:{},inputType:{},maxValue:{},minValue:{},name:{},rowName:{},rowLabel:{},unitRemoved:{type:Boolean}},emits:["changeHandler"],setup(e,{emit:r}){const t=e,n=r,a=vue.ref(0),o=vue.ref(!1),i=vue.ref(t.name),l=()=>{a.value>t.minValue&&(a.value--,o.value=!0,d("decrease"))},c=()=>{a.value<t.maxValue&&(a.value++,o.value=!0,d("increase"))},d=f=>{n("changeHandler",t.name,a.value,f,t.id)};return vue.onMounted(()=>{o.value||(a.value=t.minValue),a.value<=t.maxValue&&(a.value=t.count),t.unitRemoved&&(t.name.includes("children")?(a.value=t.childrenCount,i.value=t.rowName+"children"):t.name.includes("infants")?(a.value=t.infantCount,i.value=t.rowName+"infants"):(a.value=t.adultCount,i.value=t.rowName+"a"))}),(f,p)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$l,[vue.createElementVNode("span",_hoisted_2$f,vue.toDisplayString(f.rowLabel),1),vue.createElementVNode("div",_hoisted_3$a,[vue.createVNode(VsButton,{class:"vs-guest-selector-number-group__button--remove",size:"sm",icon:"minus","icon-only":"",value:"-",onClick:vue.withModifiers(l,["prevent"]),disabled:a.value===f.minValue},{default:vue.withCtx(()=>[vue.createTextVNode(" Remove ")]),_:1},8,["disabled"]),vue.withDirectives(vue.createElementVNode("input",{class:"vs-guest-selector-number-group__input",disabled:f.disabled,pattern:"[0-9]*",readonly:"",tabIndex:"-1",type:"text","onUpdate:modelValue":p[0]||(p[0]=v=>a.value=v)},null,8,_hoisted_4$9),[[vue.vModelText,a.value]]),vue.createVNode(VsButton,{class:"vs-guest-selector-number-group__button--add",size:"sm",icon:"plus","icon-only":"",value:"+",onClick:vue.withModifiers(c,["prevent"]),disabled:a.value===f.maxValue},{default:vue.withCtx(()=>[vue.createTextVNode(" Add ")]),_:1},8,["disabled"]),vue.withDirectives(vue.createElementVNode("input",{type:"hidden","onUpdate:modelValue":p[1]||(p[1]=v=>a.value=v),name:(f.unitRemoved&&f.rowName!=="r1",i.value),disabled:f.disabled},null,8,_hoisted_5$9),[[vue.vModelText,a.value]])])]))}}),_hoisted_1$k={class:"vs-guest-selector-row","data-test":"vs-guest-selector-row"},_hoisted_2$e={class:"vs-guest-selector-row__title"},_hoisted_3$9={key:1,class:"c-search__rooms-guests-picker__row"},_hoisted_4$8=["name"],_hoisted_5$8=["name"],_hoisted_6$8=["name"],_sfc_main$t=vue.defineComponent({__name:"GuestSelectorRow",props:{name:{},showRemoveBtn:{type:Boolean},unitLabel:{},unitOptions:{},unitRemoved:{type:Boolean}},emits:["numberChange","onRemove"],setup(e,{emit:r}){const t=e,n=r,a=vue.ref(t.unitOptions.numberGroups.adults.count),o=vue.ref(t.unitOptions.numberGroups.children.count),i=vue.ref(t.unitOptions.numberGroups.infants.count),l=getLabelText("remove","Remove","guests_rooms"),c=vue.computed(()=>o.value+i.value),d=(p,v,m,g)=>{let _="";p.includes("children")&&(o.value=v,_="children"),p.includes("infants")&&(i.value=v,_="infants"),(p.includes("r1a")||p.includes("r2a")||p.includes("r3a")||p.includes("r4a")||p.includes("r5a"))&&(a.value=v,_="adults"),n("numberChange",m,_,g)},f=()=>{n("onRemove",i.value+o.value+a.value,i.value+o.value,t.unitOptions.id)};return(p,v)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$k,[vue.createElementVNode("div",_hoisted_2$e,vue.toDisplayString(p.unitLabel),1),p.name!=="r1"?(vue.openBlock(),vue.createBlock(VsButton,{key:0,class:"vs-guest-selector-row__remove",onClick:vue.withModifiers(f,["prevent"]),variant:"transparent",icon:"close","icon-size":"sm","icon-position":"left","icon-only":"",size:"sm"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(l)),1)]),_:1})):vue.createCommentVNode("",!0),p.unitOptions?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$9,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(p.unitOptions.numberGroups,(m,g)=>(vue.openBlock(),vue.createBlock(_sfc_main$u,{"adult-count":a.value,"children-count":o.value,count:m.count,disabled:!1,id:p.unitOptions.id,"infant-count":i.value,"input-type":m,key:`${p.name}_${g}`,"max-value":m.maxCount,"min-value":m.minCount,name:m.name,"row-label":m.unitLabel,"row-name":p.name,"unit-removed":p.unitRemoved,onChangeHandler:d},null,8,["adult-count","children-count","count","id","infant-count","input-type","max-value","min-value","name","row-label","row-name","unit-removed"]))),128)),vue.withDirectives(vue.createElementVNode("input",{type:"hidden",name:`${p.name}c`,"onUpdate:modelValue":v[0]||(v[0]=m=>c.value=m)},null,8,_hoisted_4$8),[[vue.vModelText,c.value]])])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.value,(m,g)=>(vue.openBlock(),vue.createElementBlock("input",{type:"hidden",key:`${p.name}c${g}`,name:`${p.name}c${g}`,value:"10"},null,8,_hoisted_5$8))),128)),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(i.value,(m,g)=>(vue.openBlock(),vue.createElementBlock("input",{type:"hidden",key:`${p.name}c${g}`,name:`${p.name}c${g+o.value}`,value:"1"},null,8,_hoisted_6$8))),128))]))}}),_hoisted_1$j={class:"form-group vs-guest-selector","data-test":"vs-guest-selector"},_hoisted_2$d={class:"vs-guest-selector__label"},_hoisted_3$8=["disabled"],_hoisted_4$7={class:"vs-guest-selector__button-row mb-075"},_hoisted_5$7={class:"d-flex justify-content-between"},_hoisted_6$7=["value","disabled"],_hoisted_7$7=["value","disabled"],adultDefaultCount=1,unitLimit=5,_sfc_main$s=vue.defineComponent({__name:"GuestSelector",props:{availability:{type:Boolean}},setup(e){const r=vue.getCurrentInstance(),t=getLabelText("add_room_label","Add a Room","guests_rooms"),n=getLabelText("save_changes","Save","guests_rooms"),a=vue.ref(2),o=getLabelText("guest","Guest","guests_rooms"),i=getLabelText("guests","Guests","guests_rooms"),l=vue.ref(!1),c=vue.ref(0),d=vue.ref([{id:`${r.uid}`,showRemoveBtn:!1,numberGroups:{adults:{minCount:1,maxCount:30,count:2,name:"r1a",unitLabel:getLabelText("adults","Adults","guests_rooms")},children:{minCount:0,maxCount:30,count:0,name:"r1children",unitLabel:getLabelText("children","Children","guests_rooms")},infants:{minCount:0,maxCount:30,count:0,name:"r1infants",unitLabel:getLabelText("infants","Infants","guests_rooms")}}}]),f=vue.ref(1),p=getLabelText("room","Room","guests_rooms"),v=getLabelText("rooms","Rooms","guests_rooms"),m=vue.ref(!1),g=vue.ref(!1),_=()=>{g.value=!1},S=()=>{g.value=!g.value},C=()=>{if(d.value.length<unitLimit){const $={id:`${r.uid}`,showRemoveBtn:!0,numberGroups:{adults:{minCount:1,maxCount:30,count:1,name:"r"+(d.value.length+1)+"a",unitLabel:getLabelText("adults","Adults","guests_rooms")},children:{minCount:0,maxCount:30,count:0,name:"r"+(d.value.length+1)+"children",unitLabel:getLabelText("children","Children","guests_rooms")},infants:{minCount:0,maxCount:30,count:0,name:"r"+(d.value.length+1)+"infants",unitLabel:getLabelText("infants","Infants","guests_rooms")}}};let T=d.value.slice();T.push($),d.value=T,f.value=T.length,l.value=!0,a.value=a.value+adultDefaultCount}},w=($,T,B)=>{const R=d.value.findIndex(L=>L.id===B);d.value.splice(R,1),f.value=d.value.length,m.value=!0,a.value=a.value-$,c.value=c.value-T,d.value.length===1&&(l.value=!1)},E=($,T,B)=>{a.value=$==="increase"?a.value+1:a.value-1,T!=="adults"&&(c.value=$==="increase"?c.value+1:c.value-1);const R=d.value.findIndex(L=>L.id===B);d.value[R].numberGroups[T].count=$==="increase"?d.value[R].numberGroups[T].count+1:d.value[R].numberGroups[T].count-1};return($,T)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$j,[vue.createElementVNode("span",_hoisted_2$d,vue.toDisplayString(vue.unref(i)),1),vue.createElementVNode("button",{tabIndex:"availability ? '0' : ''",class:"vs-guest-selector__trigger form-control vs-input",onClick:vue.withModifiers(S,["prevent"]),disabled:!$.availability},[vue.createElementVNode("span",null,vue.toDisplayString(f.value)+" ",1),vue.createElementVNode("span",null,vue.toDisplayString(f.value>1?vue.unref(v):vue.unref(p)),1),vue.createTextVNode(",  "),vue.createElementVNode("span",null,vue.toDisplayString(a.value)+" ",1),vue.createElementVNode("span",null,vue.toDisplayString(a.value>1?vue.unref(i):vue.unref(o)),1)],8,_hoisted_3$8),vue.createElementVNode("div",{class:vue.normalizeClass(["vs-guest-selector__modal",g.value?"vs-guest-selector__modal--visible":""])},[vue.createVNode(VsButton,{class:"align-self-end","data-test":"vs-guest-selector__close-btn",variant:"transparent",icon:"close",size:"md","icon-only":"",onClick:vue.withModifiers(_,["prevent"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(getLabelText)("close","Close","guests_rooms")),1)]),_:1}),vue.createElementVNode("div",_hoisted_4$7,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(d.value,(B,R)=>(vue.openBlock(),vue.createBlock(_sfc_main$t,{key:B.id,name:"r"+(R+1),"show-remove-btn":l.value,"unit-label":vue.unref(getLabelText)("room","Room","guests_rooms")+" "+(R+1),"unit-options":B,"unit-removed":m.value,onNumberChange:E,onOnRemove:w},null,8,["name","show-remove-btn","unit-label","unit-options","unit-removed"]))),128))]),vue.createElementVNode("div",_hoisted_5$7,[d.value.length<unitLimit?(vue.openBlock(),vue.createBlock(VsButton,{key:0,variant:"secondary",class:"c-search__popup__btn-link me-050 align-self-start",onClick:vue.withModifiers(C,["prevent"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(t)),1)]),_:1})):vue.createCommentVNode("",!0),d.value.length<unitLimit?(vue.openBlock(),vue.createBlock(VsButton,{key:1,class:"c-search__popup__btn-link c-search__popup__btn-link--pull-right align-self-end",onClick:vue.withModifiers(_,["prevent"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(n)),1)]),_:1})):vue.createCommentVNode("",!0)])],2),d.value?(vue.openBlock(),vue.createElementBlock("input",{key:0,type:"hidden",name:"rooms",id:"room-count",value:f.value,disabled:!$.availability},null,8,_hoisted_6$7)):vue.createCommentVNode("",!0),d.value?(vue.openBlock(),vue.createElementBlock("input",{key:1,type:"hidden",name:"guests",id:"guest-count",value:a.value,disabled:!$.availability},null,8,_hoisted_7$7)):vue.createCommentVNode("",!0)]))}}),_hoisted_1$i={class:"vs-date-input","data-test":"vs-date-input"},_hoisted_2$c=["for"],_hoisted_3$7=["min","name","id"],_sfc_main$r=vue.defineComponent({__name:"DateInput",props:{label:{},id:{},name:{},value:{},minDate:{}},emits:["changeDate"],setup(e,{emit:r}){const t=e,n=r,a=vue.ref(t.value),o=vue.computed(()=>new Date().toISOString().split("T")[0]);return vue.watch(()=>t.value,i=>{a.value=i,n("changeDate",a.value)}),(i,l)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$i,[vue.createElementVNode("label",{for:i.id},vue.toDisplayString(i.label),9,_hoisted_2$c),vue.withDirectives(vue.createElementVNode("input",{type:"date",min:typeof i.minDate<"u"&&i.minDate.length>0?i.minDate:o.value,name:i.name,id:i.id,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),onChange:l[1]||(l[1]=c=>i.$emit("changeDate",a.value)),class:"form-control vs-input"},null,40,_hoisted_3$7),[[vue.vModelText,a.value]])]))}}),_hoisted_1$h={class:"vs-date-range","data-test":"vs-date-range"},_hoisted_2$b={class:"row align-items-center"},_hoisted_3$6={class:"col-12 col-sm-5 order-1"},_hoisted_4$6={class:"col-12 col-sm-5 order-2"},_hoisted_5$6={class:"col-12 col-sm-2 order-first order-sm-3 text-sm-right"},_hoisted_6$6={key:1,type:"hidden",name:"refine-date",value:"on"},_hoisted_7$6=["value"],_sfc_main$q=vue.defineComponent({__name:"DateRange",props:{startLabel:{type:String,required:!1,default:"Start Date"},endLabel:{type:String,required:!1,default:"End Date"},defaultDates:{type:Boolean,default:!1},selectedProd:{type:String,required:!0}},emits:["dateUpdated"],setup(e,{emit:r}){const t=e,n=r,a=vue.ref(""),o=vue.ref(""),i=vue.computed(()=>!!a.value||!!o.value),l=vue.computed(()=>{const w=new Date(o.value),E=new Date(a.value),$=w.getTime()-E.getTime();return isNaN($)?1:$/(1e3*3600*24)});function c(){a.value="",o.value=""}const d=w=>{const E=w.toLocaleString("default",{year:"numeric"}),$=w.toLocaleString("default",{month:"2-digit"}),T=w.toLocaleString("default",{day:"2-digit"});return`${E}-${$}-${T}`},f=vue.computed(()=>a.value===""?d(new Date):""),p=vue.computed(()=>{let w;if(a.value!==""){const E=new Date(a.value);E.setDate(E.getDate()+1),w=d(E)}else if(t.defaultDates){const E=new Date,$=new Date(E);$.setDate($.getDate()+1),w=d($)}return w}),v=vue.computed(()=>{let w;if(a.value===""){const E=new Date,$=new Date(E);$.setDate($.getDate()+1),w=d($)}else{const E=new Date,$=new Date(a.value);E.setDate($.getDate()+1),w=d(E)}return w});function m(){const w=new Date(a.value);new Date(o.value)<=w&&(o.value="")}function g(){const w=!(!a.value&&!o.value);n("dateUpdated",w)}function _(){g(),m()}const S=vue.computed(()=>t.selectedProd==="acco"?"stay":"isostartdate"),C=vue.computed(()=>t.selectedProd==="acco"?"endDate":"isoenddate");return(w,E)=>(vue.openBlock(),vue.createElementBlock("fieldset",_hoisted_1$h,[vue.createElementVNode("div",_hoisted_2$b,[vue.createElementVNode("div",_hoisted_3$6,[vue.createVNode(_sfc_main$r,{label:e.startLabel,value:e.defaultDates&&a.value===""&&o.value?f.value:a.value,name:S.value,id:"startDate",onChangeDate:E[0]||(E[0]=$=>{a.value=$,_()}),class:"mb-100"},null,8,["label","value","name"])]),vue.createElementVNode("div",_hoisted_4$6,[vue.createVNode(_sfc_main$r,{label:e.endLabel,value:e.defaultDates&&o.value===""&&a.value?p.value:o.value,"min-date":v.value,name:C.value,id:"endDate",onChangeDate:E[1]||(E[1]=$=>{o.value=$,_()}),class:"mb-100"},null,8,["label","value","min-date","name"])]),vue.createElementVNode("div",_hoisted_5$6,[i.value?(vue.openBlock(),vue.createElementBlock("button",{key:0,id:"clearDateRange",type:"button",onClick:c,class:"vs-date-range__clear"},vue.toDisplayString(vue.unref(getLabelText)("reset","Clear")),1)):vue.createCommentVNode("",!0),e.selectedProd!=="acco"?(vue.openBlock(),vue.createElementBlock("input",_hoisted_6$6)):vue.createCommentVNode("",!0),vue.createElementVNode("input",{type:"hidden",name:"nights",value:l.value},null,8,_hoisted_7$6)])])]))}}),_hoisted_1$g={class:"vs-product-search-embed","data-test":"vs-product-search-embed"},_hoisted_2$a={key:0,class:"container"},_hoisted_3$5={class:"row"},_hoisted_4$5={class:"col-12"},_hoisted_5$5=["action"],_hoisted_6$5={class:"form-group product-search__type mb-100"},_hoisted_7$5={for:"prodtypes"},_hoisted_8$4={class:"product-search__in d-none d-md-block mt-100"},_hoisted_9$3={"aria-live":"polite"},_hoisted_10$3=["disabled","value"],_hoisted_11$3=["disabled","value"],_hoisted_12$2=["value"],_hoisted_13$2={key:4,type:"hidden",name:"areaproxdist",value:"10"},_hoisted_14$1={key:5},_hoisted_15$1={key:0,class:"form-group"},_hoisted_16$1={for:"search-keyword"},_hoisted_17$1={key:2},_hoisted_18=["value"],_hoisted_19={key:0},_hoisted_20=["value"],__default__=vue.defineComponent({mixins:[dataLayerMixin],methods:{trackSubmit(e,r){this.createDataLayerObject("productSearchDataEvent",{searchType:e,searchLocation:r.name},this.href)}}}),_sfc_main$p=vue.defineComponent({...__default__,__name:"ProductSearchEmbed",props:{defaultProd:{type:String,default:"acti,attr,reta",validator(e){return["acco","cate","even","tour","acti,attr,reta"].includes(e)}},defaultLocale:{type:String,default:"",validator(e){return["en","fr","de","es","it","nl",""].includes(e)}},defaultLocation:{type:String,default:""}},setup(e){const r=e,t=vue.ref(!1),n=vue.ref(),a=vue.ref([]);vue.ref(null);let o=vue.ref();o.value={id:"",key:"",name:"",type:""};const i=vue.ref("off"),l=vue.ref(!1),c=vue.computed(()=>{const A=typeof n.value>"u"?"see-do":n.value;return`/info/${paths[A]}`});let d=vue.ref(!1);const f={en:{localeUrl:""},fr:{localeUrl:"fr-fr"},de:{localeUrl:"de-de"},es:{localeUrl:"es-es"},it:{localeUrl:"it-it"},nl:{localeUrl:"nl-nl"}},p=vue.computed(()=>{let A=r.defaultLocale.length>0?r.defaultLocale:getLocale();return A==="en"&&(A=""),A}),v=vue.computed(()=>{if(typeof window<"u"){let A=window.location.origin;return A.includes("localhost")?"https://www.visitscotland.com":A}return"https://www.visitscotland.com"}),m=vue.computed(()=>`${v.value}${p.value?"/"+p.value:""}${c.value}/search-results`),_="https://www.visitscotland.com/data/locations"+`?locale=${p.value}`,S=vue.ref([]),C="https://www.visitscotland.com/tms-api/v1/attractions",w=vue.ref([]),E="https://www.visitscotland.com/tms-api/v1/origins?active=1",$=vue.ref([]),T=vue.ref([]),B=()=>{const A=getProductTypes(),F=[];A.forEach(j=>{F.push(j)}),T.value=F},R=vue.computed(()=>t.value?[]:T.value.map(F=>({...F,text:getProductName(F.value,F.text)}))),L=async()=>{const A=await getData(_);A&&(S.value=A.data)},te=async()=>{const A=await getData(E);A&&($.value=A.data)},oe=async()=>{const A=await getData(C);A&&(w.value=A.data)},Q=(A,F)=>{F==="key"?o.value=S.value.find(j=>j.key===A):F==="id"?o.value=S.value.find(j=>j.id===A):o.value=S.value.find(j=>j.name===A.trim())},ce=A=>{const F=A.value;n.value=F,F==="tour"&&(te(),oe())},Y=()=>f[r.defaultLocale]||"",ne=()=>{t.value=!0,vue.nextTick(()=>{t.value=!1,r.defaultLocation!==""&&d&&Q(r.defaultLocation,"id")})},ge=vue.computed(()=>n.value!=="cate"&&n.value!=="acti,attr,reta"?"d-lg-flex":"");vue.onBeforeMount(async()=>{window.VS={};const A=document.createElement("script");A.async=!1,A.onload=ne,A.setAttribute("src",`https://www.visitscotland.com/${Y().localeUrl}/data/template/search.js`),document.head.appendChild(A)}),vue.onMounted(async()=>{L(),d.value=!0,n.value=r.defaultProd,n.value==="tour"&&(te(),oe()),B()});const me=A=>{i.value=A?"on":"off"},de=A=>{l.value=!0;const F=A.currentTarget;setTimeout(function(){F.submit()},500)};return(A,F)=>{var j,Z,fe,O,I,U;return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$g,[t.value?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$a,[vue.createElementVNode("div",_hoisted_3$5,[vue.createElementVNode("div",_hoisted_4$5,[vue.unref(d)?(vue.openBlock(),vue.createElementBlock("form",{key:0,action:m.value,onSubmit:vue.withModifiers(de,["prevent"]),"accept-charset":"UTF-8","data-test":"psw-form"},[vue.createElementVNode("div",_hoisted_6$5,[vue.createElementVNode("label",_hoisted_7$5,vue.toDisplayString(vue.unref(getLabelText)("search_for","I'm looking for")),1),vue.createElementVNode("div",{class:vue.normalizeClass(ge.value)},[vue.createVNode(VsSelect,{options:R.value,value:e.defaultProd,onUpdated:F[0]||(F[0]=ae=>ce(ae)),"field-name":"prodtypes"},null,8,["options","value"]),vue.createElementVNode("div",_hoisted_8$4,vue.toDisplayString(vue.unref(getLabelText)("in","in")),1)],2)]),vue.createElementVNode("div",_hoisted_9$3,[n.value!="tour"&&vue.unref(d)?(vue.openBlock(),vue.createBlock(_sfc_main$v,{key:0,id:"search-location",label:vue.unref(getLabelText)("location","Location"),"multiselect-label":"name",name:"loc",options:S.value,placeholder:vue.unref(getLabelText)("location_placeholder","Enter a location"),"track-by":"name",onChangeValue:F[1]||(F[1]=ae=>Q(ae)),"default-val":vue.unref(o),"data-chromatic":"ignore"},null,8,["label","options","placeholder","default-val"])):vue.createCommentVNode("",!0),n.value!=="tour"?(vue.openBlock(),vue.createElementBlock("input",{key:1,type:"hidden",name:"locplace",disabled:((j=vue.unref(o))==null?void 0:j.type)==="POLYGON",value:((Z=vue.unref(o))==null?void 0:Z.key)||""},null,8,_hoisted_10$3)):vue.createCommentVNode("",!0),n.value!=="tour"?(vue.openBlock(),vue.createElementBlock("input",{key:2,type:"hidden",name:"locpoly",disabled:((fe=vue.unref(o))==null?void 0:fe.type)!=="POLYGON",value:((O=vue.unref(o))==null?void 0:O.key)||""},null,8,_hoisted_11$3)):vue.createCommentVNode("",!0),n.value!=="tour"?(vue.openBlock(),vue.createElementBlock("input",{key:3,type:"hidden",name:"locprox",value:((I=vue.unref(o))==null?void 0:I.type)==="DISTRICT"?1:0},null,8,_hoisted_12$2)):vue.createCommentVNode("",!0),n.value!=="tour"&&((U=vue.unref(o))==null?void 0:U.type)==="DISTRICT"?(vue.openBlock(),vue.createElementBlock("input",_hoisted_13$2)):vue.createCommentVNode("",!0),n.value==="even"||n.value==="acco"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14$1,[vue.createVNode(_sfc_main$q,{"start-label":vue.unref(getLabelText)("startdate","Start Date","dates"),"end-label":vue.unref(getLabelText)("enddate","End Date","dates"),onDateUpdated:F[2]||(F[2]=ae=>me(ae)),"default-dates":l.value,"selected-prod":n.value},null,8,["start-label","end-label","default-dates","selected-prod"]),n.value==="even"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$1,[vue.createElementVNode("label",_hoisted_16$1,vue.toDisplayString(vue.unref(getLabelText)("keywords","Keywords")),1),vue.createVNode(VsInput,{"field-name":"search-keyword",placeholder:vue.unref(getLabelText)("events_keywords_placeholder","Highland games, music festivals etc"),name:"name"},null,8,["placeholder"])])):vue.createCommentVNode("",!0),n.value==="acco"?(vue.openBlock(),vue.createBlock(_sfc_main$s,{key:1,availability:!0,id:"guest-selector"})):vue.createCommentVNode("",!0),n.value==="acco"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_17$1,[vue.createElementVNode("input",{hidden:"true",name:"avail",value:i.value},null,8,_hoisted_18)])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)]),n.value==="tour"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_19,[vue.createVNode(_sfc_main$v,{id:"tour-origin",label:vue.unref(getLabelText)("tour_origin","Starting point"),"multiselect-label":"name",name:"origins[]",options:$.value,placeholder:vue.unref(getLabelText)("tour_origin_placeholder","Location"),"track-by":"name","is-tour-location":!0},null,8,["label","options","placeholder"]),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.value,ae=>(vue.openBlock(),vue.createElementBlock("input",{type:"hidden",name:"attractions[]",value:ae},null,8,_hoisted_20))),256)),vue.createVNode(_sfc_main$v,{id:"tour-month",label:vue.unref(getLabelText)("tour_month","I'm traveling in"),"multiselect-label":"label",name:"when",options:vue.unref(getLabelText)("months",vue.unref(monthsEnglish)),placeholder:vue.unref(getLabelText)("tour_month_placeholder","Select month"),"track-by":"value"},null,8,["label","options","placeholder"])])):vue.createCommentVNode("",!0),vue.createVNode(VsButton,{class:"mt-150","data-test":"psw-submit",type:"submit",onClick:F[3]||(F[3]=ae=>A.trackSubmit(n.value,typeof vue.unref(o)>"u"?"":vue.unref(o)))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(getLabelText)("search","Search")),1)]),_:1})],40,_hoisted_5$5)):vue.createCommentVNode("",!0),vue.unref(d)?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(VsLoadingSpinner,{key:1,variant:"dark"}))])])]))])}}}),_sfc_main$o={name:"VsProductSearch",status:"prototype",release:"0.0.1",components:{VsContainer,VsRow,VsCol,VsProductSearchEmbed:_sfc_main$p,VsHeading,VsWarning},props:{noJsMessage:{type:String,required:!0},defaultLocation:{type:String,default:""},defaultProd:{type:String,default:"acti,attr,reta"},defaultLocale:{type:String,default:"en"}}},_hoisted_1$f={class:"vs-product-search","data-test":"vs-product-search"},_hoisted_2$9={class:"vs-product-search__intro"};function _sfc_render$m(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsProductSearchEmbed"),d=vue.resolveComponent("VsWarning"),f=vue.resolveComponent("VsRow"),p=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$f,[vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(l,{class:"vs-product-search__col vs-product-search__col--left",xl:"7"},{default:vue.withCtx(()=>[vue.createVNode(i,{level:"2",headingStyle:"heading-l",class:"vs-product-search__heading mt-0"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-module-heading")]),_:3}),vue.createElementVNode("div",_hoisted_2$9,[vue.renderSlot(e.$slots,"vs-module-intro")])]),_:3}),vue.createVNode(l,{class:"vs-product-search__col vs-product-search__col--right",xl:"5"},{default:vue.withCtx(()=>[vue.createVNode(c,{class:"vs-product-search__widget","default-location":t.defaultLocation,"default-locale":t.defaultLocale,"default-prod":t.defaultProd},null,8,["default-location","default-locale","default-prod"]),vue.createVNode(d,{class:"vs-product-search__no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.noJsMessage),1)]),_:1})]),_:1})]),_:3})]),_:3})])}const ProductSearch=_export_sfc(_sfc_main$o,[["render",_sfc_render$m]]),_sfc_main$n={name:"VsQuote",status:"prototype",release:"0.0.1",props:{variant:{type:String,default:"narrow",validator:e=>e.match(/(narrow|wide)/)},withBorder:{type:Boolean,default:!1}},computed:{hasAuthorName(){return!!this.$slots["quote-author-name"]},hasAuthorTitle(){return!!this.$slots["quote-author-title"]},hasAuthorImage(){return!!this.$slots["quote-image"]},variantClass(){return[{"vs-quote--narrow":this.variant==="narrow","vs-quote--wide":this.variant==="wide","vs-quote--with-border":this.withBorder}]}}},_hoisted_1$e={key:0,class:"vs-quote__speech-container"},_hoisted_2$8=vue.createElementVNode("span",{class:"vs-quote__speech-mark"},"“",-1),_hoisted_3$4=[_hoisted_2$8],_hoisted_4$4={key:1,class:"vs-quote__author-container"},_hoisted_5$4={class:"vs-quote__content-container"},_hoisted_6$4={class:"vs-quote__content"},_hoisted_7$4={key:0,class:"vs-quote__author-name"},_hoisted_8$3={key:2,class:"vs-quote__quote-link"};function _sfc_render$l(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-quote",o.variantClass]),"data-test":"vs-quote"},[t.withBorder?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$e,_hoisted_3$4)),o.hasAuthorImage?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$4,[vue.renderSlot(e.$slots,"quote-image")])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_5$4,[vue.createElementVNode("div",_hoisted_6$4,[vue.renderSlot(e.$slots,"quote-content")]),o.hasAuthorName?(vue.openBlock(),vue.createElementBlock("p",_hoisted_7$4,[vue.renderSlot(e.$slots,"quote-author-name")])):vue.createCommentVNode("",!0),o.hasAuthorTitle?(vue.openBlock(),vue.createElementBlock("p",{key:1,class:vue.normalizeClass(["vs-quote__author-title",t.variant==="narrow"?"vs-quote__author-title--narrow-margin":null])},[vue.renderSlot(e.$slots,"quote-author-title")],2)):vue.createCommentVNode("",!0),e.$slots["quote-link"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$3,[vue.renderSlot(e.$slots,"quote-link",{if:"$slots['quote-link']"})])):vue.createCommentVNode("",!0)])],2)}const Quote=_export_sfc(_sfc_main$n,[["render",_sfc_render$l]]),_sfc_main$m={name:"VsTable",status:"prototype",release:"0.0.1",components:{BTableSimple:bootstrapVueNext.BTableSimple},props:{tableCaption:{type:String,required:!0},tableType:{type:String,default:"responsive",validator:e=>e.match(/(responsive|stacked)/)}},computed:{responsive(){return this.tableType==="responsive"},stacked(){return this.tableType==="stacked"}}},_hoisted_1$d={class:"visually-hidden","data-test":"vs-table__caption"};function _sfc_render$k(e,r,t,n,a,o){const i=vue.resolveComponent("BTableSimple");return vue.openBlock(),vue.createBlock(i,{class:"vs-table","data-test":"vs-table",small:"","caption-top":"",responsive:o.responsive,stacked:o.stacked},{default:vue.withCtx(()=>[vue.createElementVNode("caption",_hoisted_1$d,vue.toDisplayString(t.tableCaption),1),vue.renderSlot(e.$slots,"default")]),_:3},8,["responsive","stacked"])}const VsTable=_export_sfc(_sfc_main$m,[["render",_sfc_render$k]]),_sfc_main$l={name:"VsTableHead",status:"prototype",release:"0.0.1",components:{BThead:bootstrapVueNext.BThead}};function _sfc_render$j(e,r,t,n,a,o){const i=vue.resolveComponent("BThead");return vue.openBlock(),vue.createBlock(i,vue.normalizeProps(vue.guardReactiveProps(e.$attrs)),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsTableHead=_export_sfc(_sfc_main$l,[["render",_sfc_render$j]]),_sfc_main$k={name:"VsTableHeaderCell",status:"prototype",release:"0.0.1",components:{BTh:bootstrapVueNext.BTh},props:{stackedHeading:{type:String,default:void 0}}};function _sfc_render$i(e,r,t,n,a,o){const i=vue.resolveComponent("BTh");return vue.openBlock(),vue.createBlock(i,vue.mergeProps({"data-test":"vs-table-header-cell","stacked-heading":t.stackedHeading},e.$attrs),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16,["stacked-heading"])}const VsTableHeaderCell=_export_sfc(_sfc_main$k,[["render",_sfc_render$i]]),_sfc_main$j={name:"VsTableBody",status:"prototype",release:"0.0.1",components:{BTbody:bootstrapVueNext.BTbody}};function _sfc_render$h(e,r,t,n,a,o){const i=vue.resolveComponent("BTbody");return vue.openBlock(),vue.createBlock(i,vue.normalizeProps(vue.guardReactiveProps(e.$attrs)),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsTableBody=_export_sfc(_sfc_main$j,[["render",_sfc_render$h]]),_sfc_main$i={name:"VsTableRow",status:"prototype",release:"0.0.1",components:{BTr:bootstrapVueNext.BTr}};function _sfc_render$g(e,r,t,n,a,o){const i=vue.resolveComponent("BTr");return vue.openBlock(),vue.createBlock(i,vue.normalizeProps(vue.guardReactiveProps(e.$attrs)),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsTableRow=_export_sfc(_sfc_main$i,[["render",_sfc_render$g]]),_sfc_main$h={name:"VsTableDataCell",status:"prototype",release:"0.0.1",components:{BTd:bootstrapVueNext.BTd},props:{stackedHeading:{type:String,default:null}}};function _sfc_render$f(e,r,t,n,a,o){const i=vue.resolveComponent("BTd");return vue.openBlock(),vue.createBlock(i,vue.mergeProps({"data-test":"vs-table-data-cell","stacked-heading":t.stackedHeading},e.$attrs,{scope:null}),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16,["stacked-heading"])}const VsTableDataCell=_export_sfc(_sfc_main$h,[["render",_sfc_render$f]]),_sfc_main$g={name:"VsTableFooter",status:"prototype",release:"0.0.1",components:{BTfoot:bootstrapVueNext.BTfoot}};function _sfc_render$e(e,r,t,n,a,o){const i=vue.resolveComponent("BTfoot");return vue.openBlock(),vue.createBlock(i,vue.mergeProps(e.$attrs,{role:"rowgroup"}),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsTableFooter=_export_sfc(_sfc_main$g,[["render",_sfc_render$e]]),_sfc_main$f={name:"VsSkiScotlandCard",status:"prototype",release:"0.0.1",components:{VsImg,VsHeading,VsIcon,VsWarning,VsLoadingSpinner,VsButton,VsTable,VsTableHead,VsTableHeaderCell,VsTableBody,VsTableRow,VsTableDataCell,VsTableFooter},props:{centreInfoUrl:{type:String,default:""},locale:{type:String,default:"en-gb"},timeoutDuration:{type:Number,default:3e4},lastUpdatedLabel:{type:String,default:"Last Updated"},liftsLabel:{type:String,default:"Lifts"},runsLabel:{type:String,default:"Runs"},runsLiftsStatusLabel:{type:String,default:"Run/Lift Status"},statusLabel:{type:String,default:"Status"},summaryClosedLabel:{type:String,default:"Closed"},summaryOpenLabel:{type:String,default:"Open"},summaryOpeningLabel:{type:String,default:"Opening"},summaryLimitedPatrolLabel:{type:String,default:"Limited Patrol"},summaryOnHoldLabel:{type:String,default:"On Hold"},imgSrc:{required:!0,type:String},imgAlt:{type:String,default:""},pisteMapLabel:{type:String,default:"View Piste Map"},moreDetailsLabel:{type:String,default:"More Details"},pisteMapLink:{type:String,default:""},moreDetailsLink:{type:String,required:!0,default:"#"}},data(){return{statusSummary:{runs:{open:0,opening:0,closed:0,onHold:0,limitedPatrol:0},lifts:{open:0,opening:0,closed:0,onHold:0,limitedPatrol:0}},runs:[],lifts:[],lastUpdate:"",jsDisabled:!0,isLoading:!0,displayError:!1}},mounted(){this.centreInfoUrl&&this.retrieveCentreInfo(),this.jsDisabled=!1},methods:{retrieveCentreInfo(){const e=setTimeout(()=>{this.displayError=!0},this.timeoutDuration);axios.get(this.centreInfoUrl).then(r=>{const t=this.cleanData(r.data);this.processLifts(t.lifts),t.runs&&this.processRuns(t.runs),this.processLastUpdate(t.lastUpdate),this.isLoading=!1,clearTimeout(e)}).catch(()=>{this.runStatusInfo=null,this.displayError=!0,this.isLoading=!1,clearTimeout(e)})},cleanData(e){const r={contact:e.contact,report:e.report};if(e.snowReport)r.lastUpdate=e.snowReport.lastupdate,r.lifts=e.lifts.sector.items,r.runs=e.runs.items,this.isCairngorms=!0;else if(r.lastUpdate=e.lastupdate,[r.lifts]=e.lift.sectors,r.lifts=r.lifts.lifts,e.run.areas){const t=e.run.areas.map(n=>n.runs).reduce((n,a)=>n.concat(a)).filter((n,a,o)=>a===o.findIndex(i=>i.name===n.name));r.runs=t}return r},processLastUpdate(e){const r=new Date(e.year,parseInt(e.month,10)-1,e.day),t={year:"numeric",month:"long",day:"numeric"},n=r.toLocaleDateString(this.locale,t);this.lastUpdate=`${e.hour24}:${e.minute} - ${n}`},processLifts(e){for(let r=0;r<e.length;r++)switch(e[r].status){case"4":case 4:this.statusSummary.lifts.onHold+=1;break;case"3":case 3:this.statusSummary.lifts.limitedPatrol+=1;break;case"2":case 2:this.statusSummary.lifts.opening+=1;break;case"1":case 1:this.statusSummary.lifts.open+=1;break;default:this.statusSummary.lifts.closed+=1;break}this.lifts=e},processRuns(e){for(let r=0;r<e.length;r++)switch(e[r].status){case"4":case 4:this.statusSummary.runs.onHold+=1;break;case"3":case 3:this.statusSummary.runs.limitedPatrol+=1;break;case"2":case 2:this.statusSummary.runs.opening+=1;break;case"1":case 1:this.statusSummary.runs.open+=1;break;default:this.statusSummary.runs.closed+=1;break}this.runs=e}}},_hoisted_1$c={class:"card vs-ski-scotland-card","data-test":"vs-ski-scotland-card"},_hoisted_2$7={class:"vs-ski-scotland-card__img-container"},_hoisted_3$3={class:"card-body"},_hoisted_4$3={key:0,class:"text-center pb-200 position-relative"},_hoisted_5$3={"data-test":"vs-ski__status-label"},_hoisted_6$3={"data-test":"vs-ski__runs-label"},_hoisted_7$3={"data-test":"vs-ski__lifts-label"},_hoisted_8$2={"data-test":"vs-ski__open-label"},_hoisted_9$2={"data-test":"vs-ski__limited-patrol-label"},_hoisted_10$2={"data-test":"vs-ski__opening-label"},_hoisted_11$2={"data-test":"vs-ski__closed-label"},_hoisted_12$1={"data-test":"vs-ski__on-hold-label"},_hoisted_13$1={"data-test":"vs-ski__last-updated-label"};function _sfc_render$d(e,r,t,n,a,o){const i=vue.resolveComponent("VsImg"),l=vue.resolveComponent("VsHeading"),c=vue.resolveComponent("VsLoadingSpinner"),d=vue.resolveComponent("VsWarning"),f=vue.resolveComponent("VsTableHeaderCell"),p=vue.resolveComponent("VsTableHead"),v=vue.resolveComponent("VsIcon"),m=vue.resolveComponent("VsTableDataCell"),g=vue.resolveComponent("VsTableRow"),_=vue.resolveComponent("VsTableBody"),S=vue.resolveComponent("VsTableFooter"),C=vue.resolveComponent("VsTable"),w=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$c,[vue.createElementVNode("div",_hoisted_2$7,[t.imgSrc?(vue.openBlock(),vue.createBlock(i,{key:0,src:t.imgSrc,alt:t.imgAlt,class:"vs-ski-scotland-card__img","data-test":"vs-ski-scotland-card__img"},null,8,["src","alt"])):vue.createCommentVNode("",!0)]),vue.createElementVNode("div",_hoisted_3$3,[vue.createVNode(l,{level:"3","heading-style":"heading-m"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"centre-name")]),_:3}),a.jsDisabled||a.isLoading||a.displayError?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$3,[!a.jsDisabled&&a.isLoading?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(c,{class:"mb-100 d-block"}),vue.renderSlot(e.$slots,"data-loading")],64)):vue.createCommentVNode("",!0),!a.jsDisabled&&a.displayError?(vue.openBlock(),vue.createBlock(d,{key:1,size:"small","data-test":"vs-ski-scotland-card__error"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"data-unavailable")]),_:3})):vue.createCommentVNode("",!0),a.jsDisabled?(vue.openBlock(),vue.createBlock(d,{key:2,size:"small","data-test":"vs-ski-scotland-card__js-disabled"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"js-required")]),_:3})):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),!a.jsDisabled&&!a.isLoading&&!a.displayError?(vue.openBlock(),vue.createBlock(C,{key:1,"table-caption":t.runsLiftsStatusLabel},{default:vue.withCtx(()=>[vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_5$3,vue.toDisplayString(t.statusLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(f,{key:0},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_6$3,vue.toDisplayString(t.runsLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_7$3,vue.toDisplayString(t.liftsLabel),1)]),_:1})]),_:1}),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createVNode(g,null,{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(v,{name:"tick",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_8$2,vue.toDisplayString(t.summaryOpenLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(m,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.runs.open)+"/"+vue.toDisplayString(a.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.open)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1}),a.statusSummary.runs.limitedPatrol||a.statusSummary.lifts.limitedPatrol?(vue.openBlock(),vue.createBlock(g,{key:0},{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(v,{name:"ski-boot",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_9$2,vue.toDisplayString(t.summaryLimitedPatrolLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(m,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.runs.limitedPatrol)+"/"+vue.toDisplayString(a.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.limitedPatrol)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(g,null,{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(v,{name:"expected-open",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_10$2,vue.toDisplayString(t.summaryOpeningLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(m,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.runs.opening)+"/"+vue.toDisplayString(a.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.opening)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1}),vue.createVNode(g,null,{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(v,{name:"status-closed",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_11$2,vue.toDisplayString(t.summaryClosedLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(m,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.runs.closed)+"/"+vue.toDisplayString(a.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.closed)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1}),a.statusSummary.runs.onHold||a.statusSummary.lifts.onHold?(vue.openBlock(),vue.createBlock(g,{key:1},{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(v,{name:"hourglass",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_12$1,vue.toDisplayString(t.summaryOnHoldLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(m,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.runs.onHold)+"/"+vue.toDisplayString(a.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.onHold)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(S,null,{default:vue.withCtx(()=>[vue.createVNode(g,null,{default:vue.withCtx(()=>[vue.createVNode(m,{colspan:"3",role:"cell"},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_13$1,vue.toDisplayString(t.lastUpdatedLabel)+": "+vue.toDisplayString(a.lastUpdate),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["table-caption"])):vue.createCommentVNode("",!0),vue.createVNode(w,{variant:"secondary",href:t.pisteMapLink,class:"mb-050",disabled:!t.pisteMapLink},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.pisteMapLabel),1)]),_:1},8,["href","disabled"]),vue.createVNode(w,{href:t.moreDetailsLink},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.moreDetailsLabel),1)]),_:1},8,["href"])])])}const SkiScotlandCard=_export_sfc(_sfc_main$f,[["render",_sfc_render$d]]),_sfc_main$e={name:"VsSkiScotlandStatus",status:"prototype",release:"0.0.1",components:{VsTable,VsTableHead,VsTableHeaderCell,VsTableBody,VsTableRow,VsTableDataCell,VsTableFooter,VsContainer,VsRow,VsCol,VsAccordion,VsAccordionItem,VsIcon,VsLink,VsHeading,VsLoadingSpinner,VsWarning},props:{skiStatusUrl:{type:String,default:""},locale:{type:String,default:"en-gb"},timeoutDuration:{type:Number,default:3e4},currentWeatherLabel:{type:String,default:"Current Weather"},detailedStatusLabel:{type:String,default:"Detailed Status"},difficultLabel:{type:String,default:"Difficult"},easyLabel:{type:String,default:"Easy"},intermediateLabel:{type:String,default:"Intermediate"},itinerariesLabel:{type:String,default:"Itineraries"},lastUpdatedLabel:{type:String,default:"Last Updated"},liftLabel:{type:String,default:"Lift"},liftsLabel:{type:String,default:"Lifts"},liftStatusLabel:{type:String,default:"Lift Status"},newsLabel:{type:String,default:"News From The Slopes"},otherLabel:{type:String,default:"Other"},roadsLabel:{type:String,default:"Road Status"},runLabel:{type:String,default:"Run"},runsLabel:{type:String,default:"Runs"},runsLiftsStatusLabel:{type:String,default:"Run/Lift Status"},runStatusLabel:{type:String,default:"Run Status"},snowConditionsLabel:{type:String,default:"Snow Conditions Full Report"},statusLabel:{type:String,default:"Status"},summaryClosedLabel:{type:String,default:"Closed"},summaryOpenLabel:{type:String,default:"Open"},summaryOpeningLabel:{type:String,default:"Opening"},summaryLimitedPatrolLabel:{type:String,default:"Limited Patrol"},summaryOnHoldLabel:{type:String,default:"On Hold"},statusClosedLabel:{type:String,default:"Closed"},statusOpenLabel:{type:String,default:"Open"},statusOpeningLabel:{type:String,default:"Opening"},statusLimitedPatrolLabel:{type:String,default:"Limited Patrol"},statusOnHoldLabel:{type:String,default:"On Hold"},veryDifficultLabel:{type:String,default:"Very Difficult"},weatherForecastLabel:{type:String,default:"Weather Forecast"},greenLabel:{type:String,default:"Green"},blueLabel:{type:String,default:"Blue"},redLabel:{type:String,default:"Red"},blackLabel:{type:String,default:"Black"},orangeLabel:{type:String,default:"Orange"},greyLabel:{type:String,default:"Grey"}},data(){return{tokens:designTokens,componentId:0,statusSummary:{runs:{open:0,opening:0,closed:0,onHold:0,limitedPatrol:0},lifts:{open:0,opening:0,closed:0,onHold:0,limitedPatrol:0}},lifts:[],runs:[],lastUpdate:"",report:"",currentWeather:"",weatherForecast:"",roadStatus:"",news:"",runLevels:[{colour:"green",colourToken:"",id:"easy",name:this.easyLabel,runs:[]},{colour:"blue",colourToken:"",id:"intermediate",name:this.intermediateLabel,runs:[]},{colour:"red",colourToken:"",id:"difficult",name:this.difficultLabel,runs:[]},{colour:"black",colourToken:"",id:"very-difficult",name:this.veryDifficultLabel,runs:[]},{colour:"orange",colourToken:"",id:"itineraries",name:this.itinerariesLabel,runs:[]},{colour:"grey",colourToken:"",id:"other",name:this.otherLabel,runs:[]}],jsDisabled:!0,isLoading:!0,displayError:!1,isCairngorms:!1}},computed:{filteredRunLevels(){return this.setColourToken().filter(r=>r.runs.length>0)}},mounted(){this.skiStatusUrl&&this.retrieveSkiStatus(),this.id=this._uid,this.jsDisabled=!1},methods:{retrieveSkiStatus(){const e=setTimeout(()=>{this.displayError=!0},this.timeoutDuration);axios.get(this.skiStatusUrl).then(r=>{const t=this.cleanData(r.data);this.processLifts(t.lifts),t.runs&&this.processRuns(t.runs),this.processLastUpdate(t.lastUpdate),this.processFullReport(t.report),this.isLoading=!1,clearTimeout(e)}).catch(()=>{this.runStatusInfo=null,this.displayError=!0,this.isLoading=!1,clearTimeout(e)})},cleanData(e){const r={contact:e.contact,report:e.report};if(e.snowReport)r.lastUpdate=e.snowReport.lastupdate,r.lifts=e.lifts.sector.items,r.runs=e.runs.items,this.isCairngorms=!0;else if(r.lastUpdate=e.lastupdate,[r.lifts]=e.lift.sectors,r.lifts=r.lifts.lifts,e.run.areas){const t=e.run.areas.map(n=>n.runs).reduce((n,a)=>n.concat(a)).filter((n,a,o)=>a===o.findIndex(i=>i.name===n.name));r.runs=t}if(r.runs)for(let t=0;t<r.runs.length;t++)r.runs[t].difficulty===null&&(r.runs[t].difficulty="orange");return r},processFullReport(e){this.report=e.runs,this.currentWeather=e.current_weather_conditions,this.weatherForecast=e.weather_forecast,this.roadStatus=e.access_roads,this.news=e.news_from_the_slopes},processLastUpdate(e){const r=new Date(e.year,parseInt(e.month,10)-1,e.day),t={year:"numeric",month:"long",day:"numeric"},n=r.toLocaleDateString(this.locale,t);this.lastUpdate=`${e.hour24}:${e.minute} - ${n}`},processLifts(e){for(let r=0;r<e.length;r++)switch(e[r].status){case"4":case 4:this.statusSummary.lifts.onHold+=1;break;case"3":case 3:this.statusSummary.lifts.limitedPatrol+=1;break;case"2":case 2:this.statusSummary.lifts.opening+=1;break;case"1":case 1:this.statusSummary.lifts.open+=1;break;default:this.statusSummary.lifts.closed+=1;break}this.lifts=e},processRuns(e){for(let r=0;r<e.length;r++){switch(e[r].status){case"4":case 4:this.statusSummary.runs.onHold+=1;break;case"3":case 3:this.statusSummary.runs.limitedPatrol+=1;break;case"2":case 2:this.statusSummary.runs.opening+=1;break;case"1":case 1:this.statusSummary.runs.open+=1;break;default:this.statusSummary.runs.closed+=1;break}for(let t=0;t<this.runLevels.length;t++)this.runLevels[t].colour===e[r].difficulty&&this.runLevels[t].runs.push(e[r])}this.runs=e},getColourLabel(e){return this[`${e}Label`]},setColourToken(){return this.runLevels.map(({...e})=>({...e,colourToken:this.tokens[`vs-color-icon-ski-${e.id}`]}))}}},_hoisted_1$b={class:"vs-ski-scotland-status","data-test":"vs-ski-scotland-status"},_hoisted_2$6={"data-test":"vs-ski__status-label"},_hoisted_3$2={"data-test":"vs-ski__runs-label"},_hoisted_4$2={"data-test":"vs-ski__lifts-label"},_hoisted_5$2={"data-test":"vs-ski__open-label"},_hoisted_6$2={"data-test":"vs-ski__open-label"},_hoisted_7$2={"data-test":"vs-ski__opening-label"},_hoisted_8$1={"data-test":"vs-ski__closed-label"},_hoisted_9$1={"data-test":"vs-ski__open-label"},_hoisted_10$1={"data-test":"vs-ski__last-updated-label"},_hoisted_11$1=["innerHTML"],_hoisted_12=["innerHTML"],_hoisted_13=["innerHTML"],_hoisted_14=["innerHTML"],_hoisted_15=["innerHTML"],_hoisted_16=["data-test"],_hoisted_17={class:"visually-hidden"};function _sfc_render$c(e,r,t,n,a,o){const i=vue.resolveComponent("VsLoadingSpinner"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsContainer"),f=vue.resolveComponent("VsWarning"),p=vue.resolveComponent("VsHeading"),v=vue.resolveComponent("VsTableHeaderCell"),m=vue.resolveComponent("VsTableHead"),g=vue.resolveComponent("VsIcon"),_=vue.resolveComponent("VsTableDataCell"),S=vue.resolveComponent("VsTableRow"),C=vue.resolveComponent("VsTableBody"),w=vue.resolveComponent("VsTableFooter"),E=vue.resolveComponent("VsTable"),$=vue.resolveComponent("VsLink"),T=vue.resolveComponent("VsAccordionItem"),B=vue.resolveComponent("VsAccordion");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$b,[!a.jsDisabled&&a.isLoading?(vue.openBlock(),vue.createBlock(d,{key:0},{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(l,{class:"text-center py-100"},{default:vue.withCtx(()=>[vue.createVNode(i),vue.renderSlot(e.$slots,"data-loading")]),_:3})]),_:3})]),_:3})):vue.createCommentVNode("",!0),!a.jsDisabled&&a.displayError?(vue.openBlock(),vue.createBlock(d,{key:1},{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(l,{class:"text-center py-100"},{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"data-unavailable")]),_:3})]),_:3})]),_:3})]),_:3})):vue.createCommentVNode("",!0),vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[a.jsDisabled?(vue.openBlock(),vue.createBlock(l,{key:0,cols:"12",md:"6","data-test":"vs-ski__js-disabled"},{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"js-required")]),_:3})]),_:3})):vue.createCommentVNode("",!0),!a.jsDisabled&&!a.isLoading&&!a.displayError?(vue.openBlock(),vue.createBlock(l,{key:1,cols:"12",md:"6"},{default:vue.withCtx(()=>[vue.createVNode(p,{level:"3","heading-style":"heading-xs","data-test":"vs-ski__runs-lifts-status-label",class:"d-none d-md-block"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.runsLiftsStatusLabel),1)]),_:1}),vue.createVNode(E,{"table-caption":t.runsLiftsStatusLabel},{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$6,vue.toDisplayString(t.statusLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(v,{key:0},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$2,vue.toDisplayString(t.runsLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_4$2,vue.toDisplayString(t.liftsLabel),1)]),_:1})]),_:1}),vue.createVNode(C,null,{default:vue.withCtx(()=>[vue.createVNode(S,null,{default:vue.withCtx(()=>[vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createVNode(g,{name:"tick",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_5$2,vue.toDisplayString(t.summaryOpenLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(_,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.runs.open)+"/"+vue.toDisplayString(a.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.open)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1}),a.statusSummary.runs.limitedPatrol||a.statusSummary.lifts.limitedPatrol?(vue.openBlock(),vue.createBlock(S,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createVNode(g,{name:"ski-boot",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_6$2,vue.toDisplayString(t.summaryLimitedPatrolLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(_,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.runs.limitedPatrol)+"/"+vue.toDisplayString(a.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.limitedPatrol)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(S,null,{default:vue.withCtx(()=>[vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createVNode(g,{name:"expected-open",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_7$2,vue.toDisplayString(t.summaryOpeningLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(_,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.runs.opening)+"/"+vue.toDisplayString(a.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.opening)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1}),vue.createVNode(S,null,{default:vue.withCtx(()=>[vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createVNode(g,{name:"status-closed",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_8$1,vue.toDisplayString(t.summaryClosedLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(_,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.runs.closed)+"/"+vue.toDisplayString(a.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.closed)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1}),a.statusSummary.runs.onHold||a.statusSummary.lifts.onHold?(vue.openBlock(),vue.createBlock(S,{key:1},{default:vue.withCtx(()=>[vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createVNode(g,{name:"hourglass",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_9$1,vue.toDisplayString(t.summaryOnHoldLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(_,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.runs.onHold)+"/"+vue.toDisplayString(a.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.onHold)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(w,null,{default:vue.withCtx(()=>[vue.createVNode(S,null,{default:vue.withCtx(()=>[vue.createVNode(_,{colspan:"3",role:"cell"},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_10$1,vue.toDisplayString(t.lastUpdatedLabel)+": "+vue.toDisplayString(a.lastUpdate),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["table-caption"]),vue.createVNode($,{href:`#vs-ski-scotland-status__detailed-status-${e.id}`,type:"default",class:"vs-ski-scotland-status__detailed-status-link"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.detailedStatusLabel),1)]),_:1},8,["href"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(l,{cols:"12",md:"5","offset-md":"1",class:"vs-ski-scotland-status__centre-info"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"centre-information")]),_:3})]),_:3}),!a.jsDisabled&&!a.isLoading&&!a.displayError?(vue.openBlock(),vue.createBlock(c,{key:0},{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",md:"9",class:"vs-ski-scotland-status__full-report"},{default:vue.withCtx(()=>[vue.createVNode(p,{level:"3","heading-style":"heading-l","data-test":"vs-ski__snow-conditions-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.snowConditionsLabel),1)]),_:1}),vue.createElementVNode("div",{innerHTML:a.report},null,8,_hoisted_11$1),a.currentWeather.length?(vue.openBlock(),vue.createBlock(p,{key:0,level:"4","heading-style":"heading-xs","data-test":"vs-ski__current-weather-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.currentWeatherLabel),1)]),_:1})):vue.createCommentVNode("",!0),a.currentWeather.length?(vue.openBlock(),vue.createElementBlock("div",{key:1,innerHTML:a.currentWeather},null,8,_hoisted_12)):vue.createCommentVNode("",!0),a.weatherForecast.length?(vue.openBlock(),vue.createBlock(p,{key:2,level:"4","heading-style":"heading-xs","data-test":"vs-ski__weather-forecast-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.weatherForecastLabel),1)]),_:1})):vue.createCommentVNode("",!0),a.weatherForecast.length?(vue.openBlock(),vue.createElementBlock("div",{key:3,innerHTML:a.weatherForecast},null,8,_hoisted_13)):vue.createCommentVNode("",!0),a.roadStatus.length?(vue.openBlock(),vue.createBlock(p,{key:4,level:"4","heading-style":"heading-xs","data-test":"vs-ski__roads-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.roadsLabel),1)]),_:1})):vue.createCommentVNode("",!0),a.roadStatus.length?(vue.openBlock(),vue.createElementBlock("div",{key:5,innerHTML:a.roadStatus},null,8,_hoisted_14)):vue.createCommentVNode("",!0),a.news.length?(vue.openBlock(),vue.createBlock(p,{key:6,level:"4","heading-style":"heading-xs","data-test":"vs-ski__news-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.newsLabel),1)]),_:1})):vue.createCommentVNode("",!0),a.news.length?(vue.openBlock(),vue.createElementBlock("div",{key:7,innerHTML:a.news},null,8,_hoisted_15)):vue.createCommentVNode("",!0)]),_:1})]),_:1})):vue.createCommentVNode("",!0),!a.jsDisabled&&!a.isLoading&&!a.displayError?(vue.openBlock(),vue.createBlock(c,{key:1},{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",md:"9"},{default:vue.withCtx(()=>[vue.createVNode(p,{level:"3","heading-style":"heading-l","data-test":"vs-ski__lift-status-label",id:`vs-ski-scotland-status__detailed-status-${e.id}`},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.liftStatusLabel),1)]),_:1},8,["id"]),vue.createVNode(E,{"table-caption":t.liftStatusLabel,class:"vs-ski-scotland-status__run-status-table"},{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.statusLabel),1)]),_:1}),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.liftLabel),1)]),_:1})]),_:1}),vue.createVNode(C,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.lifts,R=>(vue.openBlock(),vue.createBlock(S,{key:R.name},{default:vue.withCtx(()=>[R.status==="0"||R.status===0?(vue.openBlock(),vue.createBlock(_,{key:0},{default:vue.withCtx(()=>[vue.createVNode(g,{name:"status-closed",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusClosedLabel),1)]),_:1})):vue.createCommentVNode("",!0),R.status==="1"||R.status===1?(vue.openBlock(),vue.createBlock(_,{key:1},{default:vue.withCtx(()=>[vue.createVNode(g,{name:"tick",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOpenLabel),1)]),_:1})):vue.createCommentVNode("",!0),R.status==="2"||R.status===2?(vue.openBlock(),vue.createBlock(_,{key:2},{default:vue.withCtx(()=>[vue.createVNode(g,{name:"expected-open",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOpeningLabel),1)]),_:1})):vue.createCommentVNode("",!0),R.status==="3"||R.status===3?(vue.openBlock(),vue.createBlock(_,{key:3},{default:vue.withCtx(()=>[vue.createVNode(g,{name:"ski-boot",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusLimitedPatrolLabel),1)]),_:1})):vue.createCommentVNode("",!0),R.status==="4"||R.status===4?(vue.openBlock(),vue.createBlock(_,{key:4},{default:vue.withCtx(()=>[vue.createVNode(g,{name:"hourglass",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOnHoldLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(R.name),1)]),_:2},1024)]),_:2},1024))),128))]),_:1}),vue.createVNode(w,null,{default:vue.withCtx(()=>[vue.createVNode(S,null,{default:vue.withCtx(()=>[vue.createVNode(_,{colspan:"2",role:"cell"},{default:vue.withCtx(()=>[vue.createElementVNode("p",null,vue.toDisplayString(t.lastUpdatedLabel)+": "+vue.toDisplayString(a.lastUpdate),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["table-caption"])]),_:1})]),_:1})):vue.createCommentVNode("",!0),!a.jsDisabled&&!a.isLoading&&!a.displayError&&a.runs.length?(vue.openBlock(),vue.createBlock(c,{key:2},{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",md:"9"},{default:vue.withCtx(()=>[vue.createVNode(p,{level:"3","heading-style":"heading-l","data-test":"vs-ski__run-status-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.runStatusLabel),1)]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.filteredRunLevels,R=>(vue.openBlock(),vue.createElementBlock("div",{key:R.name},[vue.createVNode(B,null,{default:vue.withCtx(()=>[vue.createVNode(T,{variant:"transparent","control-id":"accordion_item_"+R.name,"colour-badge":R.colourToken},{title:vue.withCtx(()=>[vue.createElementVNode("div",{"data-test":`vs-ski__${R.name}-label`,class:"d-inline-block"},[vue.createElementVNode("span",_hoisted_17,vue.toDisplayString(o.getColourLabel(R.colour)),1),vue.createTextVNode(" "+vue.toDisplayString(R.name),1)],8,_hoisted_16)]),default:vue.withCtx(()=>[vue.createVNode(E,{"table-caption":R.colour+" - "+R.name,class:"vs-ski-scotland-status__run-status-table"},{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.statusLabel),1)]),_:1}),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.runLabel),1)]),_:1})]),_:1}),vue.createVNode(C,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(R.runs,L=>(vue.openBlock(),vue.createBlock(S,{key:L.name,"data-test":`vs-ski__${R.name}-row`},{default:vue.withCtx(()=>[L.status==="0"||L.status===0?(vue.openBlock(),vue.createBlock(_,{key:0},{default:vue.withCtx(()=>[vue.createVNode(g,{name:"status-closed",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusClosedLabel),1)]),_:1})):vue.createCommentVNode("",!0),L.status==="1"||L.status===1?(vue.openBlock(),vue.createBlock(_,{key:1},{default:vue.withCtx(()=>[vue.createVNode(g,{name:"tick",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOpenLabel),1)]),_:1})):vue.createCommentVNode("",!0),L.status==="2"||L.status===2?(vue.openBlock(),vue.createBlock(_,{key:2},{default:vue.withCtx(()=>[vue.createVNode(g,{name:"expected-open",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOpeningLabel),1)]),_:1})):vue.createCommentVNode("",!0),L.status==="3"||L.status===3?(vue.openBlock(),vue.createBlock(_,{key:3},{default:vue.withCtx(()=>[vue.createVNode(g,{name:"ski-boot",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusLimitedPatrolLabel),1)]),_:1})):vue.createCommentVNode("",!0),L.status==="4"||L.status===4?(vue.openBlock(),vue.createBlock(_,{key:4},{default:vue.withCtx(()=>[vue.createVNode(g,{name:"hourglass",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOnHoldLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(L.name),1)]),_:2},1024)]),_:2},1032,["data-test"]))),128))]),_:2},1024),vue.createVNode(w,null,{default:vue.withCtx(()=>[vue.createVNode(S,null,{default:vue.withCtx(()=>[vue.createVNode(_,{colspan:"2",role:"cell"},{default:vue.withCtx(()=>[vue.createElementVNode("p",null,vue.toDisplayString(t.lastUpdatedLabel)+": "+vue.toDisplayString(a.lastUpdate),1)]),_:1})]),_:1})]),_:1})]),_:2},1032,["table-caption"])]),_:2},1032,["control-id","colour-badge"])]),_:2},1024)]))),128))]),_:1})]),_:1})):vue.createCommentVNode("",!0)]),_:3})])}const SkiScotlandStatus=_export_sfc(_sfc_main$e,[["render",_sfc_render$c]]),_sfc_main$d={name:"VsSkipTo",status:"prototype",release:"0.0.1",components:{VsLink},props:{skipToText:{type:String,required:!0},hasSearchLink:{type:Boolean,default:!0}},methods:{mainMenuFocus(){const e=document.getElementsByClassName("vs-mega-nav__menu__mobile")[0],r=document.getElementsByClassName("vs-mega-nav-dropdown")[0];if(!this.isUndefined(r)){let t=r.getElementsByClassName("btn")[0];e.offsetParent!==null?(e.querySelectorAll(".btn.dropdown-toggle")[0].click(),t=document.getElementsByClassName("vs-mega-nav-accordion-item--level-1")[0].querySelectorAll(".vs-button.vs-accordion-toggle")[0],setTimeout(()=>{t.focus()},200)):t.focus()}},footerFocus(){const e=document.getElementsByClassName("vs-footer")[0];if(!this.isUndefined(e)){const r=e.getElementsByClassName("vs-footer-accordion-item")[0],t=r.getElementsByClassName("vs-link")[0],n=r.getElementsByClassName("vs-accordion-toggle")[0];n.offsetParent!==null&&!this.isUndefined(n)&&n.click(),!this.isUndefined(e)&&!this.isUndefined(t)&&(e.scrollIntoView(!0),setTimeout(()=>{t.focus()},200))}},isUndefined(e){return typeof e>"u"}}},_hoisted_1$a=["aria-label"],_hoisted_2$5={class:"vs-skip-to__label",id:"skip-to-label"};function _sfc_render$b(e,r,t,n,a,o){const i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("nav",{class:"vs-skip-to d-flex","data-test":"vs-skip-to","aria-label":t.skipToText},[vue.createElementVNode("p",_hoisted_2$5,vue.toDisplayString(t.skipToText)+": ",1),vue.createVNode(i,{href:"#main-nav","data-test":"vs-skip-to-main-menu",onClick:r[0]||(r[0]=l=>o.mainMenuFocus()),id:"main-menu"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"main-menu-text")]),_:3}),t.hasSearchLink?(vue.openBlock(),vue.createBlock(i,{key:0,href:"#site-search-btn","data-test":"vs-skip-to-search",class:"vs-skip-to__search"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"search-text")]),_:3})):vue.createCommentVNode("",!0),vue.createVNode(i,{href:"#main-heading","data-test":"vs-skip-to-main-content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"main-content-text")]),_:3}),vue.createVNode(i,{href:"#site-footer",onClick:r[1]||(r[1]=l=>o.footerFocus()),"data-test":"vs-skip-to-footer"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"footer-text")]),_:3})],8,_hoisted_1$a)}const SkipTo=_export_sfc(_sfc_main$d,[["render",_sfc_render$b]]),_sfc_main$c={name:"VsSocialCreditLink",status:"prototype",release:"0.0.1",components:{VsLink,VsIcon},props:{credit:{type:String,required:!0},socialPostUrl:{type:String,required:!0},source:{type:String,required:!0,validator:e=>e.match(/(instagram)/)}}},_hoisted_1$9={class:"social-credit","data-test":"vs-social-credit-link"};function _sfc_render$a(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$9,[t.source?(vue.openBlock(),vue.createBlock(i,{key:0,name:t.source,variant:"inverse",size:"xs",class:"me-025","data-test":"vs-social-credit-link__icon"},null,8,["name"])):vue.createCommentVNode("",!0),vue.createVNode(l,{class:"social-credit__link","data-test":"vs-social-credit-link__link",href:t.socialPostUrl,variant:"on-dark",type:"external"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.credit),1)]),_:1},8,["href"])])}const SocialCreditLink=_export_sfc(_sfc_main$c,[["render",_sfc_render$a]]),_sfc_main$b={name:"VsSocialShare",status:"prototype",release:"0.0.1",components:{VsButton,VsHeading,VsModuleWrapper,BPopover:bootstrapVueNext.BPopover,VsRow,VsContainer,VsCol},provide(){return{referringPageUrl:this.pageUrl,pageTitle:this.pageTitle,noJs:this.noJs}},props:{shareBtnText:{type:String,required:!0},sharePopoverTitle:{type:String,required:!0},pageUrl:{type:String,required:!0},pageTitle:{type:String,default:""},closeAltText:{type:String,required:!0},id:{type:String,required:!0},noJs:{type:Boolean,default:!1}},data(){return{copyLink:!1,renderPopover:!1}},mounted(){this.renderPopover=!0},methods:{onClose(e){this.$refs.popover.hide(e)},onShown(){this.focusFirst()},onHidden(){this.focusRef(this.$refs.shareButton)},onHide(e){this.copyLink&&(e.preventDefault(),this.focusFirst(),this.copyLink=!1)},onCopyLink(){this.copyLink=!0},focusRef(e){this.$nextTick(()=>{this.$nextTick(()=>{(e.$el||e).focus()})})},focusFirst(){this.$nextTick(()=>{this.$nextTick(()=>{this.$refs.popoverShareRow.$el.querySelector(".vs-social-share-item a ").focus()})})},tabFromClose(e){e.shiftKey||(e.preventDefault(),this.focusFirst())},tabBackFromHidden(e){e.shiftKey&&(e.preventDefault(),this.focusRef(this.$refs.closeButton))}}};function _sfc_render$9(e,r,t,n,a,o){const i=vue.resolveComponent("VsButton"),l=vue.resolveComponent("VsHeading"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("BPopover"),f=vue.resolveComponent("VsCol"),p=vue.resolveComponent("VsContainer"),v=vue.resolveComponent("VsModuleWrapper");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-social-share",t.noJs?"vs-module-wrapper__outer--hidden":"vs-module-wrapper__outer--light"]),"data-test":"vs-social-share",ref:"socialShareContainer"},[t.noJs?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(i,{key:0,class:"vs-social-share__share-btn",variant:"transparent",icon:"share",id:`vs-social-share-popover--${t.id}`,ref:"shareButton"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.shareBtnText),1)]),_:1},8,["id"])),!t.noJs&&a.renderPopover?(vue.openBlock(),vue.createBlock(d,{key:1,"custom-class":"vs-social-share__popover",target:`vs-social-share-popover--${t.id}`,click:!0,container:"body",placement:"left-end",offset:"-100",onShown:o.onShown,onHidden:o.onHidden,onHide:o.onHide,ref:"popover"},{default:vue.withCtx(()=>[vue.createVNode(l,{level:"3",tabindex:"0","heading-style":"heading-m",ref:"shareHeader",class:"vs-social-share__header",onKeydown:r[0]||(r[0]=vue.withKeys(m=>o.tabBackFromHidden(m),["tab"]))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.sharePopoverTitle),1)]),_:1},512),vue.createVNode(c,{ref:"popoverShareRow"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default",{onCopyLink:o.onCopyLink})]),_:3},512),vue.createVNode(i,{"icon-only":"",class:"vs-social-share__close-btn",icon:"close",variant:"transparent",ref:"closeButton",onClick:o.onClose,onKeydown:r[1]||(r[1]=vue.withKeys(m=>o.tabFromClose(m),["tab"]))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.closeAltText),1)]),_:1},8,["onClick"])]),_:3},8,["target","onShown","onHidden","onHide"])):vue.createCommentVNode("",!0),t.noJs?(vue.openBlock(),vue.createBlock(v,{key:2,class:"vs-social-share--module-list"},{default:vue.withCtx(()=>[vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(f,{cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(l,{level:"2","heading-style":"heading-l",class:"mb-300 mt-0"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.sharePopoverTitle),1)]),_:1})]),_:1})]),_:1}),vue.createVNode(c,{class:"justify-content-center"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3})):vue.createCommentVNode("",!0)],2)}const SocialShare=_export_sfc(_sfc_main$b,[["render",_sfc_render$9]]),_sfc_main$a={name:"VsSocialShareItem",status:"prototype",release:"0.0.1",components:{VsCol,VsLink,VsIcon},mixins:[dataLayerMixin],inject:{referringPageUrl:{default:""},pageTitle:{default:""},noJs:{default:""}},props:{name:{type:String,required:!0,validator:e=>e.match(/(facebook|twitter|pinterest|link|email|whatsapp)/)},linkText:{type:String,required:!0},linkCopiedText:{type:String,default:""}},emits:["copyLinkClicked"],data(){return{show:!1}},computed:{iconColour(){let e="";switch(this.name){case"facebook":e="#1877f2";break;case"x-twitter":e="#0F1419";break;case"pinterest":e="#E60023";break;case"whatsapp":e="#455a64";break;default:e="#000000"}return e},encodedPageTitle(){return encodeURI(this.pageTitle)},shareUrl(){let e="";switch(this.name){case"facebook":e=`https://www.facebook.com/sharer/sharer.php?u=${this.referringPageUrl}&t=${this.encodedPageTitle}`;break;case"x-twitter":e=`https://twitter.com/intent/tweet?text=${this.encodedPageTitle}%20@VisitScotland&url=${this.referringPageUrl}`;break;case"pinterest":e=`https://www.pinterest.com/pin/create/button/?url=${this.referringPageUrl}`;break;case"email":e=`mailto:?body=${this.encodedPageTitle}%20-%20${this.referringPageUrl}&subject=${this.encodedPageTitle}`;break;case"whatsapp":e=`https://wa.me/?text=${this.encodedPageTitle}%20-%20${this.referringPageUrl}`;break;case"link":e="#";break;default:e="#"}return e}},methods:{copyToClipboard(e){if(this.name==="link"){if(this.$emit("copyLinkClicked"),!navigator.clipboard)return;navigator.clipboard.writeText&&navigator.clipboard.writeText(this.referringPageUrl),this.show=!0,setTimeout(()=>{this.show=!1},2e3)}this.trackShareClick(e)},trackShareClick(e){this.createDataLayerObject("socialShareDataEvent",e,this.href)}}},_hoisted_1$8={class:"vs-social-share-item__text"};function _sfc_render$8(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsLink"),c=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(c,{class:"vs-social-share-item","data-test":"vs-social-share-item",cols:4,md:o.noJs?2:4},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"vs-social-share-item__link",href:o.shareUrl,onClick:r[0]||(r[0]=d=>o.copyToClipboard(d)),id:`vs-share-${t.name}`},{default:vue.withCtx(()=>[vue.createVNode(i,{name:t.name,"custom-colour":o.iconColour,size:"xl","small-size":"lg"},null,8,["name","custom-colour"]),vue.createElementVNode("span",_hoisted_1$8,vue.toDisplayString(a.show?t.linkCopiedText:t.linkText),1)]),_:1},8,["href","id"])]),_:1},8,["md"])}const SocialShareItem=_export_sfc(_sfc_main$a,[["render",_sfc_render$8]]),_hoisted_1$7={class:"vs-styled-list__list"},_hoisted_2$4={class:"vs-styled-list__source"},_sfc_main$9={__name:"StyledList",props:{source:{type:String,default:null},variant:{type:String,default:"icon",validator:e=>["icon","image","image-horizontal","numbered"].includes(e)}},setup(e){const r=e;return(t,n)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-styled-list",`vs-styled-list--${r.variant}`]),"data-test":"vs-styled-list"},[vue.createVNode(vue.unref(VsContainer),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(VsRow),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(VsCol),{md:r.variant==="icon"?"8":null},{default:vue.withCtx(()=>[vue.createElementVNode("ul",_hoisted_1$7,[vue.renderSlot(t.$slots,"default")])]),_:3},8,["md"])]),_:3}),r.source?(vue.openBlock(),vue.createBlock(vue.unref(VsRow),{key:0},{default:vue.withCtx(()=>[vue.createElementVNode("p",_hoisted_2$4,vue.toDisplayString(r.source),1)]),_:1})):vue.createCommentVNode("",!0)]),_:3})],2))}},_hoisted_1$6={class:"vs-styled-list__item","data-test":"vs-styled-list__item"},_sfc_main$8={__name:"StyledListItem",props:{heading:{type:String,required:!0},headingLevel:{type:Number,default:3,validator:e=>lodashExports.isNumber(e)?e>0&&e<7:e.match(/(1|2|3|4|5|6)/)},imageSrc:{type:String,default:null},variant:{type:String,default:"icon",validator:e=>["icon","image","image-horizontal","numbered"].includes(e)}},setup(e){const r=e;return(t,n)=>(vue.openBlock(),vue.createElementBlock("li",_hoisted_1$6,[vue.createVNode(vue.unref(VsRow),null,{default:vue.withCtx(()=>[r.variant==="image"?(vue.openBlock(),vue.createBlock(vue.unref(VsCol),{key:0,cols:"12",md:"2"},{default:vue.withCtx(()=>[vue.createVNode(VsImg,{src:r.imageSrc},null,8,["src"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(VsCol),{md:r.variant==="image"?"10":"12"},{default:vue.withCtx(()=>[r.variant==="image-horizontal"?(vue.openBlock(),vue.createBlock(VsImg,{key:0,src:r.imageSrc},null,8,["src"])):vue.createCommentVNode("",!0),vue.createVNode(VsHeading,{level:r.headingLevel,"heading-style":"heading-xxs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(e.heading),1)]),_:1},8,["level"]),vue.createVNode(VsRichTextWrapper,null,{default:vue.withCtx(()=>[vue.renderSlot(t.$slots,"default")]),_:3})]),_:3},8,["md"])]),_:3})]))}},_sfc_main$7={name:"VsSummaryBoxList",status:"prototype",release:"0.0.1"},_hoisted_1$5={class:"vs-summary-box","data-test":"vs-summary-box-list"},_hoisted_2$3={class:"vs-summary-box__list list-unstyled d-flex flex-wrap p-050 p-sm-075"};function _sfc_render$7(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$5,[vue.createElementVNode("ul",_hoisted_2$3,[vue.renderSlot(e.$slots,"default")])])}const SummaryBoxList=_export_sfc(_sfc_main$7,[["render",_sfc_render$7]]),_sfc_main$6={name:"VsSummaryBoxListItem",status:"prototype",release:"0.0.1",components:{VsIcon},props:{text:{type:String,default:""},label:{type:String,default:""},icon:{type:String,default:""},iconLabel:{type:String,default:""}}},_hoisted_1$4={class:"vs-summary-box-item position-relative","data-test":"vs-summary-box-list-item"},_hoisted_2$2={key:0,class:"text-center vs-summary-box-item__label d-block position-absolute w-100","data-test":"vs-summary-box-list-item-label"},_hoisted_3$1={class:"vs-summary-box-item__label-inner"},_hoisted_4$1={key:1,class:"vs-summary-box-item__display position-absolute d-block text-center w-100","data-test":"vs-summary-box-list-item-display"},_hoisted_5$1={key:2,class:"vs-summary-box-item__icon d-flex align-items-center position-absolute justify-content-center w-100","data-test":"vs-summary-box-list-item-icon-with-label"},_hoisted_6$1={class:"icon-wrapper text-end"},_hoisted_7$1={class:"text-wrapper d-block w-auto pt-100"};function _sfc_render$6(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$4,[t.label?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$2,[vue.createElementVNode("span",_hoisted_3$1,vue.toDisplayString(t.label),1)])):vue.createCommentVNode("",!0),t.text?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$1,[vue.createElementVNode("span",null,vue.toDisplayString(t.text),1)])):vue.createCommentVNode("",!0),t.icon?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$1,[vue.createElementVNode("div",_hoisted_6$1,[vue.createVNode(i,{name:t.icon,size:"xl"},null,8,["name"])]),vue.createElementVNode("div",_hoisted_7$1,[vue.createElementVNode("span",null,vue.toDisplayString(t.iconLabel),1)])])):vue.createCommentVNode("",!0)])}const SummaryBoxListItem=_export_sfc(_sfc_main$6,[["render",_sfc_render$6],["__scopeId","data-v-c1033825"]]),_sfc_main$5={name:"VsSummaryBoxDistanceListItem",status:"prototype",release:"0.0.1",props:{miles:{type:String,default:""},kilometres:{type:String,default:""},distanceLabel:{type:String,default:"Distance"},milesLabel:{type:String,default:"miles"},kilometresLabel:{type:String,default:"km"},showMiles:{type:Boolean,default:!0}}},_withScopeId=e=>(vue.pushScopeId("data-v-66ab4829"),e=e(),vue.popScopeId(),e),_hoisted_1$3={class:"vs-summary-box-distance position-relative","data-test":"vs-summary-box-distance-list-item"},_hoisted_2$1={key:0,class:"text-center vs-summary-box-distance__label d-block position-absolute w-100","data-test":"vs-summary-box-distance-list-item-label"},_hoisted_3={class:"vs-summary-box-distance__label-inner"},_hoisted_4={class:"vs-summary-box-distance__display position-absolute d-block text-center w-100","data-test":"vs-summary-box-distance-display"},_hoisted_5={class:"vs-summary-box-distance__display-entry"},_hoisted_6={class:"vs-summary-box-distance__display-value"},_hoisted_7={class:"vs-summary-box-distance__display-label"},_hoisted_8=_withScopeId(()=>vue.createElementVNode("hr",{class:"vs-summary-box-distance__divider"},null,-1)),_hoisted_9={class:"vs-summary-box-distance__display-entry"},_hoisted_10={class:"vs-summary-box-distance__display-value"},_hoisted_11={class:"vs-summary-box-distance__display-label"};function _sfc_render$5(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$3,[t.distanceLabel?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1,[vue.createElementVNode("span",_hoisted_3,vue.toDisplayString(t.distanceLabel),1)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4,[vue.createElementVNode("div",_hoisted_5,[vue.createElementVNode("span",_hoisted_6,vue.toDisplayString(t.miles),1),vue.createElementVNode("span",_hoisted_7,vue.toDisplayString(t.milesLabel),1)]),_hoisted_8,vue.createElementVNode("div",_hoisted_9,[vue.createElementVNode("span",_hoisted_10,vue.toDisplayString(t.kilometres),1),vue.createElementVNode("span",_hoisted_11,vue.toDisplayString(t.kilometresLabel),1)])])])}const SummaryBoxDistanceListItem=_export_sfc(_sfc_main$5,[["render",_sfc_render$5],["__scopeId","data-v-66ab4829"]]),_sfc_main$4={name:"VsTabs",status:"prototype",release:"0.0.1",components:{BTabs:bootstrapVueNext.BTabs}},_hoisted_1$2={class:"vs-tabs","data-test":"vs-tabs"};function _sfc_render$4(e,r,t,n,a,o){const i=vue.resolveComponent("BTabs");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$2,[vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})])}const Tabs=_export_sfc(_sfc_main$4,[["render",_sfc_render$4]]),_sfc_main$3={name:"VsTabItem",status:"prototype",release:"0.0.1",components:{VsHeading,BTab:bootstrapVueNext.BTab},props:{title:{type:String,required:!0}}};function _sfc_render$3(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("BTab");return vue.openBlock(),vue.createBlock(l,{class:"vs-tab__item","data-test":"vs-tab__item","title-link-class":"vs-tab-link vs-heading",title:t.title},{default:vue.withCtx(()=>[vue.createVNode(i,{level:"3","heading-style":"heading-xxs",class:"vs-tab__item__heading"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),_:1}),vue.renderSlot(e.$slots,"default")]),_:3},8,["title"])}const TabItem=_export_sfc(_sfc_main$3,[["render",_sfc_render$3]]),_sfc_main$2={name:"VsTag",status:"prototype",release:"0.0.1",components:{VsLink},props:{href:{type:String,required:!0}}};function _sfc_render$2(e,r,t,n,a,o){const i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createBlock(i,{class:"vs-tag me-050 mb-100","data-test":"vs-tag",href:t.href},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["href"])}const Tag=_export_sfc(_sfc_main$2,[["render",_sfc_render$2]]),_sfc_main$1={name:"VsTagManagerWrapper",status:"prototype",release:"0.0.1",mixins:[dataLayerMixin],props:{payload:{type:Object,default:()=>{}}},mounted(){this.processPayload(this.payload),document.addEventListener("DOMContentLoaded",()=>{this.dataLayerStore.setTestRun(!0),this.dataLayerStore.setPageUrl(window.location.href)}),this.createDataLayerObject("pageViewTemplateDataEvent")},methods:{processPayload(e){e!==void 0&&Object.keys(e).forEach(r=>{const t=r.replace(/-/g,"_");this.dataLayerStore.processPayload({key:t,value:e[r]})})}}},_hoisted_1$1={"data-test":"vs-tag-manager-wrapper",class:"d-none"};function _sfc_render$1(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("span",_hoisted_1$1)}const TagManagerWrapper=_export_sfc(_sfc_main$1,[["render",_sfc_render$1]]);var dist={exports:{}},Sister;/**
365
+ ${f.message}`,f}}};return loaders.loaders=i,loaders}var getPropertyByPath={},hasRequiredGetPropertyByPath;function requireGetPropertyByPath(){if(hasRequiredGetPropertyByPath)return getPropertyByPath;hasRequiredGetPropertyByPath=1,Object.defineProperty(getPropertyByPath,"__esModule",{value:!0}),getPropertyByPath.getPropertyByPath=e;function e(r,t){return typeof t=="string"&&Object.prototype.hasOwnProperty.call(r,t)?r[t]:(typeof t=="string"?t.split("."):t).reduce((a,o)=>a===void 0?a:a[o],r)}return getPropertyByPath}var hasRequiredExplorerBase;function requireExplorerBase(){if(hasRequiredExplorerBase)return ExplorerBase;hasRequiredExplorerBase=1,Object.defineProperty(ExplorerBase,"__esModule",{value:!0}),ExplorerBase.getExtensionDescription=i,ExplorerBase.ExplorerBase=void 0;var e=n(requirePath()),r=requireLoaders(),t=requireGetPropertyByPath();function n(l){return l&&l.__esModule?l:{default:l}}let a=class{constructor(c){c.cache===!0&&(this.loadCache=new Map,this.searchCache=new Map),this.config=c,this.validateConfig()}clearLoadCache(){this.loadCache&&this.loadCache.clear()}clearSearchCache(){this.searchCache&&this.searchCache.clear()}clearCaches(){this.clearLoadCache(),this.clearSearchCache()}validateConfig(){const c=this.config;c.searchPlaces.forEach(d=>{const f=e.default.extname(d)||"noExt",p=c.loaders[f];if(!p)throw new Error(`No loader specified for ${i(d)}, so searchPlaces item "${d}" is invalid`);if(typeof p!="function")throw new Error(`loader for ${i(d)} is not a function (type provided: "${typeof p}"), so searchPlaces item "${d}" is invalid`)})}shouldSearchStopWithResult(c){return!(c===null||c.isEmpty&&this.config.ignoreEmptySearchPlaces)}nextDirectoryToSearch(c,d){if(this.shouldSearchStopWithResult(d))return null;const f=o(c);return f===c||c===this.config.stopDir?null:f}loadPackageProp(c,d){const f=r.loaders.loadJson(c,d);return(0,t.getPropertyByPath)(f,this.config.packageProp)||null}getLoaderEntryForFile(c){if(e.default.basename(c)==="package.json")return this.loadPackageProp.bind(this);const d=e.default.extname(c)||"noExt",f=this.config.loaders[d];if(!f)throw new Error(`No loader specified for ${i(c)}`);return f}loadedContentToCosmiconfigResult(c,d){return d===null?null:d===void 0?{filepath:c,config:void 0,isEmpty:!0}:{config:d,filepath:c}}validateFilePath(c){if(!c)throw new Error("load must pass a non-empty string")}};ExplorerBase.ExplorerBase=a;function o(l){return e.default.dirname(l)}function i(l){const c=e.default.extname(l);return c?`extension "${c}"`:"files without extensions"}return ExplorerBase}var readFile={},hasRequiredReadFile;function requireReadFile(){if(hasRequiredReadFile)return readFile;hasRequiredReadFile=1,Object.defineProperty(readFile,"__esModule",{value:!0}),readFile.readFile=n,readFile.readFileSync=a;var e=r(require$$0$1);function r(o){return o&&o.__esModule?o:{default:o}}async function t(o,i){return new Promise((l,c)=>{e.default.readFile(o,i,(d,f)=>{if(d){c(d);return}l(f)})})}async function n(o,i={}){const l=i.throwNotFound===!0;try{return await t(o,"utf8")}catch(c){if(l===!1&&c.code==="ENOENT")return null;throw c}}function a(o,i={}){const l=i.throwNotFound===!0;try{return e.default.readFileSync(o,"utf8")}catch(c){if(l===!1&&c.code==="ENOENT")return null;throw c}}return readFile}var cacheWrapper={},hasRequiredCacheWrapper;function requireCacheWrapper(){if(hasRequiredCacheWrapper)return cacheWrapper;hasRequiredCacheWrapper=1,Object.defineProperty(cacheWrapper,"__esModule",{value:!0}),cacheWrapper.cacheWrapper=e,cacheWrapper.cacheWrapperSync=r;async function e(t,n,a){const o=t.get(n);if(o!==void 0)return o;const i=await a();return t.set(n,i),i}function r(t,n,a){const o=t.get(n);if(o!==void 0)return o;const i=a();return t.set(n,i),i}return cacheWrapper}var getDirectory={},pathType={},hasRequiredPathType;function requirePathType(){if(hasRequiredPathType)return pathType;hasRequiredPathType=1;const{promisify:e}=requireUtil(),r=require$$0$1;async function t(a,o,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return(await e(r[a])(i))[o]()}catch(l){if(l.code==="ENOENT")return!1;throw l}}function n(a,o,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return r[a](i)[o]()}catch(l){if(l.code==="ENOENT")return!1;throw l}}return pathType.isFile=t.bind(null,"stat","isFile"),pathType.isDirectory=t.bind(null,"stat","isDirectory"),pathType.isSymlink=t.bind(null,"lstat","isSymbolicLink"),pathType.isFileSync=n.bind(null,"statSync","isFile"),pathType.isDirectorySync=n.bind(null,"statSync","isDirectory"),pathType.isSymlinkSync=n.bind(null,"lstatSync","isSymbolicLink"),pathType}var hasRequiredGetDirectory;function requireGetDirectory(){if(hasRequiredGetDirectory)return getDirectory;hasRequiredGetDirectory=1,Object.defineProperty(getDirectory,"__esModule",{value:!0}),getDirectory.getDirectory=n,getDirectory.getDirectorySync=a;var e=t(requirePath()),r=requirePathType();function t(o){return o&&o.__esModule?o:{default:o}}async function n(o){return await(0,r.isDirectory)(o)===!0?o:e.default.dirname(o)}function a(o){return(0,r.isDirectorySync)(o)===!0?o:e.default.dirname(o)}return getDirectory}var hasRequiredExplorer;function requireExplorer(){if(hasRequiredExplorer)return Explorer;hasRequiredExplorer=1,Object.defineProperty(Explorer,"__esModule",{value:!0}),Explorer.Explorer=void 0;var e=o(requirePath()),r=requireExplorerBase(),t=requireReadFile(),n=requireCacheWrapper(),a=requireGetDirectory();function o(c){return c&&c.__esModule?c:{default:c}}function i(c){var d;if(typeof Symbol<"u"&&(Symbol.asyncIterator&&(d=c[Symbol.asyncIterator],d!=null)||Symbol.iterator&&(d=c[Symbol.iterator],d!=null)))return d.call(c);throw new TypeError("Object is not async iterable")}let l=class extends r.ExplorerBase{constructor(d){super(d)}async search(d=process.cwd()){const f=await(0,a.getDirectory)(d);return await this.searchFromDirectory(f)}async searchFromDirectory(d){const f=e.default.resolve(process.cwd(),d),p=async()=>{const v=await this.searchDirectory(f),m=this.nextDirectoryToSearch(f,v);return m?this.searchFromDirectory(m):await this.config.transform(v)};return this.searchCache?(0,n.cacheWrapper)(this.searchCache,f,p):p()}async searchDirectory(d){var f=!0,p=!1,v;try{for(var m=i(this.config.searchPlaces),g,_;g=await m.next(),f=g.done,_=await g.value,!f;f=!0){const S=_,C=await this.loadSearchPlace(d,S);if(this.shouldSearchStopWithResult(C)===!0)return C}}catch(S){p=!0,v=S}finally{try{!f&&m.return!=null&&await m.return()}finally{if(p)throw v}}return null}async loadSearchPlace(d,f){const p=e.default.join(d,f),v=await(0,t.readFile)(p);return await this.createCosmiconfigResult(p,v)}async loadFileContent(d,f){return f===null?null:f.trim()===""?void 0:await this.getLoaderEntryForFile(d)(d,f)}async createCosmiconfigResult(d,f){const p=await this.loadFileContent(d,f);return this.loadedContentToCosmiconfigResult(d,p)}async load(d){this.validateFilePath(d);const f=e.default.resolve(process.cwd(),d),p=async()=>{const v=await(0,t.readFile)(f,{throwNotFound:!0}),m=await this.createCosmiconfigResult(f,v);return await this.config.transform(m)};return this.loadCache?(0,n.cacheWrapper)(this.loadCache,f,p):p()}};return Explorer.Explorer=l,Explorer}var ExplorerSync={},hasRequiredExplorerSync;function requireExplorerSync(){if(hasRequiredExplorerSync)return ExplorerSync;hasRequiredExplorerSync=1,Object.defineProperty(ExplorerSync,"__esModule",{value:!0}),ExplorerSync.ExplorerSync=void 0;var e=o(requirePath()),r=requireExplorerBase(),t=requireReadFile(),n=requireCacheWrapper(),a=requireGetDirectory();function o(l){return l&&l.__esModule?l:{default:l}}let i=class extends r.ExplorerBase{constructor(c){super(c)}searchSync(c=process.cwd()){const d=(0,a.getDirectorySync)(c);return this.searchFromDirectorySync(d)}searchFromDirectorySync(c){const d=e.default.resolve(process.cwd(),c),f=()=>{const p=this.searchDirectorySync(d),v=this.nextDirectoryToSearch(d,p);return v?this.searchFromDirectorySync(v):this.config.transform(p)};return this.searchCache?(0,n.cacheWrapperSync)(this.searchCache,d,f):f()}searchDirectorySync(c){for(const d of this.config.searchPlaces){const f=this.loadSearchPlaceSync(c,d);if(this.shouldSearchStopWithResult(f)===!0)return f}return null}loadSearchPlaceSync(c,d){const f=e.default.join(c,d),p=(0,t.readFileSync)(f);return this.createCosmiconfigResultSync(f,p)}loadFileContentSync(c,d){return d===null?null:d.trim()===""?void 0:this.getLoaderEntryForFile(c)(c,d)}createCosmiconfigResultSync(c,d){const f=this.loadFileContentSync(c,d);return this.loadedContentToCosmiconfigResult(c,f)}loadSync(c){this.validateFilePath(c);const d=e.default.resolve(process.cwd(),c),f=()=>{const p=(0,t.readFileSync)(d,{throwNotFound:!0}),v=this.createCosmiconfigResultSync(d,p);return this.config.transform(v)};return this.loadCache?(0,n.cacheWrapperSync)(this.loadCache,d,f):f()}};return ExplorerSync.ExplorerSync=i,ExplorerSync}var hasRequiredDist;function requireDist(){if(hasRequiredDist)return dist$2;hasRequiredDist=1,Object.defineProperty(dist$2,"__esModule",{value:!0}),dist$2.cosmiconfig=o,dist$2.cosmiconfigSync=i,dist$2.defaultLoaders=void 0;var e=a(require$$0$1),r=requireExplorer(),t=requireExplorerSync(),n=requireLoaders();function a(f){return f&&f.__esModule?f:{default:f}}function o(f,p={}){const v=c(f,p),m=new r.Explorer(v);return{search:m.search.bind(m),load:m.load.bind(m),clearLoadCache:m.clearLoadCache.bind(m),clearSearchCache:m.clearSearchCache.bind(m),clearCaches:m.clearCaches.bind(m)}}function i(f,p={}){const v=c(f,p),m=new t.ExplorerSync(v);return{search:m.searchSync.bind(m),load:m.loadSync.bind(m),clearLoadCache:m.clearLoadCache.bind(m),clearSearchCache:m.clearSearchCache.bind(m),clearCaches:m.clearCaches.bind(m)}}const l=Object.freeze({".js":n.loaders.loadJs,".json":n.loaders.loadJson,".yaml":n.loaders.loadYaml,".yml":n.loaders.loadYaml,noExt:n.loaders.loadYaml});dist$2.defaultLoaders=l;function c(f,p){const v={packageProp:f,searchPlaces:["package.json",`.${f}rc`,`.${f}rc.json`,`.${f}rc.yaml`,`.${f}rc.yml`,`.${f}rc.js`,`${f}.config.js`],ignoreEmptySearchPlaces:!0,stopDir:e.default.homedir(),cache:!0,transform:d,loaders:l};return{...v,...p,loaders:{...v.loaders,...p.loaders}}}const d=function(p){return p};return dist$2}(function(e){var r=interopRequireDefaultExports,t=r(require_extends()),n=r(requireObjectWithoutPropertiesLoose());const a=requirePath(),o=requireResolve(),i=/[./]macro(\.js)?$/,l=T=>i.test(T);class c extends Error{constructor(B){super(B),this.name="MacroError",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack||(this.stack=new Error(B).stack)}}let d=null;function f(){return d=d||requireDist().cosmiconfigSync("babel-plugin-macros",{searchPlaces:["package.json",".babel-plugin-macrosrc",".babel-plugin-macrosrc.json",".babel-plugin-macrosrc.yaml",".babel-plugin-macrosrc.yml",".babel-plugin-macrosrc.js","babel-plugin-macros.config.js"],packageProp:"babelMacros"})}function p(T,B={}){if(B.configName==="options")throw new Error('You cannot use the configName "options". It is reserved for babel-plugin-macros.');return R.isBabelMacro=!0,R.options=B,R;function R(L){const{source:te,isBabelMacrosCall:oe}=L;if(!oe)throw new c(`The macro you imported from "${te}" is being executed outside the context of compilation with babel-plugin-macros. This indicates that you don't have the babel plugin "babel-plugin-macros" configured correctly. Please see the documentation for how to configure babel-plugin-macros properly: https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/user.md`);return T(L)}}function v(T,B){return o.sync(T,{basedir:B,paths:[a.resolve(__dirname,"../../")]})}function m(T,B={}){let{require:R=commonjsRequire,resolvePath:L=v,isMacrosName:te=l}=B,oe=(0,n.default)(B,["require","resolvePath","isMacrosName"]);function Q(ce){const J=R(ce);return J&&J.__esModule&&J.default?J.default:J}return{name:"macros",visitor:{Program(ce,J){ce.traverse({ImportDeclaration(ne){if(!E(ne,{node:{source:{value:F=>te(F)}}}))return;const me=ne.node.specifiers.map(F=>({localName:F.local.name,importedName:F.type==="ImportDefaultSpecifier"?"default":F.imported.name})),de=ne.node.source.value,A=g({path:ne,imports:me,source:de,state:J,babel:T,interopRequire:Q,resolvePath:L,options:oe});(!A||!A.keepImports)&&ne.remove()},VariableDeclaration(ne){const ge=me=>E(me,{node:{init:{callee:{type:"Identifier",name:"require"},arguments:de=>de.length===1&&te(de[0].value)}}});ne.get("declarations").filter(ge).forEach(me=>{const de=me.node.id.name?[{localName:me.node.id.name,importedName:"default"}]:me.node.id.properties.map(X=>({localName:X.value.name,importedName:X.key.name})),A=me.get("init"),F=A.node.arguments[0].value,W=g({path:A,imports:de,source:F,state:J,babel:T,interopRequire:Q,resolvePath:L,options:oe});(!W||!W.keepImports)&&me.remove()})}})}}}}function g({path:T,imports:B,source:R,state:L,babel:te,interopRequire:oe,resolvePath:Q,options:ce}){const{file:{opts:{filename:J=""}}}=L;let ne=!1;const ge=B.reduce((X,{importedName:fe,localName:O})=>{const I=T.scope.getBinding(O);return X[fe]=I.referencePaths,ne=ne||!!X[fe].length,X},{}),me=R.indexOf(".")===0,de=Q(R,a.dirname(w(J))),A=oe(de);if(!A.isBabelMacro)throw new Error(`The macro imported from "${R}" must be wrapped in "createMacro" which you can get from "babel-plugin-macros". Please refer to the documentation to see how to do this properly: https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/author.md#writing-a-macro`);const F=C(A,J,R,ce);let W;try{L.file.scope.path.traverse({Identifier(){}}),W=A({references:ge,source:R,state:L,babel:te,config:F,isBabelMacrosCall:!0})}catch(X){throw X.name==="MacroError"||(X.message=`${R}: ${X.message}`,me||(X.message=`${X.message} Learn more: https://www.npmjs.com/package/${R.replace(/^((?:@[^/]+\/)?[^/]+).*/,"$1")}`)),X}return W}function _(T,B){try{const R=f().search(B);if(R)return{options:R.config[T],path:R.filepath}}catch(R){return{error:R}}return{}}function S(T,B){if(B.hasOwnProperty(T))if(B[T]&&typeof B[T]!="object")console.error(`The macro plugin options' ${T} property was not an object or null.`);else return{options:B[T]};return{}}function C(T,B,R,L){const{configName:te}=T.options;if(te){const oe=_(te,B),Q=S(te,L);if(Q.options===void 0&&oe.options===void 0&&oe.error!==void 0)throw console.error(`There was an error trying to load the config "${te}" for the macro imported from "${R}. Please see the error thrown for more information.`),oe.error;if(oe.options!==void 0&&Q.options!==void 0&&typeof oe.options!="object")throw new Error(`${oe.path} specified a ${te} config of type ${typeof Q.options}, but the the macros plugin's options.${te} did contain an object. Both configs must contain objects for their options to be mergeable.`);return(0,t.default)({},Q.options,{},oe.options)}}function w(T){return a.isAbsolute(T)?T:a.join(process.cwd(),T)}function E(T,B){return T&&B&&Object.keys(B).every(R=>{const L=B[R],te=T[R];return typeof L=="function"?L(te):$(L)?L===te:E(te,L)})}function $(T){return T==null||/^[sbn]/.test(typeof T)}e.exports=m,Object.assign(e.exports,{createMacro:p,MacroError:c})})(dist$3);var distExports$1=dist$3.exports;const{createMacro}=distExports$1;function requireContext({references:e,state:r,babel:{types:t}}){e.default.forEach(n=>n.parentPath.replaceWith(t.callExpression(t.identifier("require.context"),[...n.parent.arguments])))}var requireContext_macro=createMacro(requireContext);const requireContext$1=getDefaultExportFromCjs(requireContext_macro),__vite_import_meta_env__$1={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let files=null;if(typeof jest<"u")files=requireContext$1("../assets/svg",!0,/^\.\/.*\.svg$/);else if({url:typeof document>"u"?require("url").pathToFileURL(__filename).href:_documentCurrentScript&&_documentCurrentScript.tagName.toUpperCase()==="SCRIPT"&&_documentCurrentScript.src||new URL("vs-component-library.js",document.baseURI).href}&&__vite_import_meta_env__$1){files=Object.assign({"../assets/svg/brandscotland-logo.svg":()=>Promise.resolve().then(()=>require("./brandscotland-logo-BbDMkgti.js")).then(r=>r.default),"../assets/svg/cookie-coo.svg":()=>Promise.resolve().then(()=>require("./cookie-coo-Bc1O8aR_.js")).then(r=>r.default),"../assets/svg/highland-cow.svg":()=>Promise.resolve().then(()=>require("./highland-cow-DlMGnebG.js")).then(r=>r.default),"../assets/svg/iCentre.svg":()=>Promise.resolve().then(()=>require("./iCentre-BnLcpIw8.js")).then(r=>r.default),"../assets/svg/icons/docs/deprecated.svg":()=>Promise.resolve().then(()=>require("./deprecated-BJ2e68Yo.js")).then(r=>r.default),"../assets/svg/icons/docs/prototype.svg":()=>Promise.resolve().then(()=>require("./prototype-DQocvgQh.js")).then(r=>r.default),"../assets/svg/icons/docs/ready.svg":()=>Promise.resolve().then(()=>require("./ready-D9pdKFkx.js")).then(r=>r.default),"../assets/svg/icons/docs/review.svg":()=>Promise.resolve().then(()=>require("./review-7L3On10m.js")).then(r=>r.default),"../assets/svg/icons/instagram-filled.svg":()=>Promise.resolve().then(()=>require("./instagram-filled-CvF3WA5q.js")).then(r=>r.default),"../assets/svg/no-js-coo.svg":()=>Promise.resolve().then(()=>require("./no-js-coo-BEt1aICD.js")).then(r=>r.default),"../assets/svg/os-logo-maps-white.svg":()=>Promise.resolve().then(()=>require("./os-logo-maps-white-BTtf_Eki.js")).then(r=>r.default),"../assets/svg/os-logo-maps.svg":()=>Promise.resolve().then(()=>require("./os-logo-maps-QXAuept_.js")).then(r=>r.default),"../assets/svg/visitscotland-logo.svg":()=>Promise.resolve().then(()=>require("./visitscotland-logo-NoymCLtN.js")).then(r=>r.default)});const e={};for(const[r,t]of Object.entries(files)){const n=r.replace("../assets/svg",".");e[n]=t}files=e}else files=requireContext$1("../assets/svg?optimise",!0,/^\.\/.*\.svg$/);const output=files,_sfc_main$1h={name:"VsSvg",release:"0.1.1",status:"prototype",props:{path:{type:String,required:!0},fill:{type:String,default:""},height:{type:[Number,String],default:""},width:{type:[Number,String],default:""}},data(){return{svg:null}},computed:{nativeAttrs(){if(this.svg){const r=lodashExports.first(this.svg.match(/<svg[^>]+.*?>/)).match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|[>"']))+.)["']?/g),t=lodashExports.fromPairs(lodashExports.map(r,lodashExports.partial(lodashExports.split,lodashExports.partial.placeholder,"=",2)));return lodashExports.mapValues(t,lodashExports.partial(lodashExports.replace,lodashExports.partial.placeholder,/"/g,""))}return null},attributes(){if(this.svg){const e={};let r={};return this.fill&&(lodashExports.has(this.nativeAttrs,"style")?(r=this.nativeStyleAttrMap,r.fill=this.fill):r={fill:this.fill},e.style=lodashExports.join(lodashExports.map(lodashExports.toPairs(r),lodashExports.partial(lodashExports.join,lodashExports.partial.placeholder,":")),";")),this.height&&(e.height=this.height),this.width&&(e.width=this.width),lodashExports.extend({},this.nativeAttrs,e)}return null},nativeStyleAttrMap(){if(this.svg){const e=lodashExports.map(lodashExports.split(this.nativeAttrs.style,";"),lodashExports.ary(lodashExports.partial(lodashExports.split,lodashExports.partial.placeholder,":"),1));return lodashExports.fromPairs(e)}return null},children(){return this.svg?lodashExports.nth(this.svg.match(/(<svg[^>]+.*?>)([\s\S]*)(<\/svg>)/),2):null}},mounted(){typeof output=="function"?this.svg=output(`./${this.path}.svg`):output[`./${this.path}.svg`]().then(e=>{this.svg=e})}},_hoisted_1$$=["innerHTML"];function _sfc_render$18(e,r,t,n,a,o){return a.svg?(vue.openBlock(),vue.createElementBlock("svg",vue.mergeProps({key:0},o.attributes,{innerHTML:o.children,focusable:"false"}),null,16,_hoisted_1$$)):vue.createCommentVNode("",!0)}const VsSvg=_export_sfc(_sfc_main$1h,[["render",_sfc_render$18]]),_sfc_main$1g={name:"VsSvgLink",status:"prototype",release:"0.0.1",components:{VsSvg,VsLink},props:{linkAltText:{type:String,required:!0},href:{type:String,required:!0},svgFill:{type:String,default:""},svgPath:{type:String,required:!0},svgHeight:{type:[Number,String],default:""},svgWidth:{type:[Number,String],default:""},dataLayerValue:{type:String,default:null},linkVariant:{type:String,default:"primary",validator:e=>e.match(/(primary|on-dark)/)}}},_hoisted_1$_={class:"visually-hidden","data-test":"link-alt-text"};function _sfc_render$17(e,r,t,n,a,o){const i=vue.resolveComponent("VsSvg"),l=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createBlock(l,{class:"vs-svg-link","data-test":"vs-svg-link",href:t.href,"data-layer-value":t.dataLayerValue,variant:t.linkVariant},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$_,vue.toDisplayString(t.linkAltText),1),vue.createVNode(i,{"data-test":"vs-svg-link__svg",focusable:"false",path:t.svgPath,fill:t.svgFill,width:t.svgWidth,height:t.svgHeight},null,8,["path","fill","width","height"])]),_:1},8,["href","data-layer-value","variant"])}const VsSvgLink=_export_sfc(_sfc_main$1g,[["render",_sfc_render$17]]),_sfc_main$1f={name:"VsFooterCopyright",status:"prototype",release:"0.0.1",components:{VsSvgLink,VsRow,VsContainer,VsCol},props:{linkAltText:{type:String,required:!0},href:{type:String,required:!0}},data(){return{currentYear:""}},computed:{getCurrentYear(){return new Date().getFullYear()}}},_hoisted_1$Z={class:"vs-footer-copyright","data-unique-id":"vs-footer-sub_footer","data-test":"vs-footer-copyright"},_hoisted_2$I={class:"vs-footer-copyright__text"};function _sfc_render$16(e,r,t,n,a,o){const i=vue.resolveComponent("VsSvgLink"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$Z,[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",class:"text-center"},{default:vue.withCtx(()=>[vue.createVNode(i,{class:"vs-footer-copyright__logo mb-100","data-test":"vs-footer-copyright-logo","link-alt-text":t.linkAltText,href:t.href,"svg-fill":"#ffffff","svg-path":"brandscotland-logo","link-variant":"on-dark"},null,8,["link-alt-text","href"]),vue.createElementVNode("p",_hoisted_2$I,[vue.createTextVNode(" © "+vue.toDisplayString(o.getCurrentYear)+" ",1),vue.renderSlot(e.$slots,"copyright")])]),_:3})]),_:3})]),_:3})])}const FooterCopyright=_export_sfc(_sfc_main$1f,[["render",_sfc_render$16]]),_sfc_main$1e={name:"VsGlobalMenuDropdown",status:"prototype",release:"0.1.0",components:{VsDropdown,VsDropdownItem},props:{activeSite:{type:String,required:!0},dropdownLabel:{type:String,default:"Our Websites"},websites:{type:Array,required:!0}}};function _sfc_render$15(e,r,t,n,a,o){const i=vue.resolveComponent("VsDropdownItem"),l=vue.resolveComponent("VsDropdown");return vue.openBlock(),vue.createBlock(l,{text:t.dropdownLabel,variant:"primary",class:"vs-global-menu__dropdown"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.websites,c=>(vue.openBlock(),vue.createBlock(i,{key:c.siteName,href:c.siteUrl,class:vue.normalizeClass(c.siteUrl==t.activeSite?"d-none":""),target:c.siteUrl==t.activeSite?"_self":"_blank",role:"menuitem"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(c.siteName),1)]),_:2},1032,["href","class","target"]))),128))]),_:1},8,["text"])}const VsGlobalMenuDropdown=_export_sfc(_sfc_main$1e,[["render",_sfc_render$15]]),_sfc_main$1d={name:"VsGlobalMenuList",status:"prototype",release:"0.1.0",components:{VsList},props:{activeSite:{type:String,required:!0},websites:{type:Array,required:!0}}},_hoisted_1$Y=["target","href"];function _sfc_render$14(e,r,t,n,a,o){const i=vue.resolveComponent("VsList");return vue.openBlock(),vue.createBlock(i,{unstyled:"",inline:"",class:"vs-global-menu__list"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.websites,l=>(vue.openBlock(),vue.createElementBlock("li",{key:l.siteName,class:vue.normalizeClass(["vs-global-menu__list_item",[l.siteUrl==t.activeSite?"vs-global-menu__list_item--active d-none d-lg-block":""]])},[vue.createElementVNode("a",{target:l.siteUrl==t.activeSite?"_self":"_blank",href:l.siteUrl},vue.toDisplayString(l.siteName),9,_hoisted_1$Y)],2))),128))]),_:1})}const VsGlobalMenuList=_export_sfc(_sfc_main$1d,[["render",_sfc_render$14]]),_sfc_main$1c={name:"VsGlobalMenu",status:"prototype",release:"0.1.0",components:{VsContainer,VsRow,VsCol,VsGlobalMenuDropdown,VsGlobalMenuList,LazyHydrationWrapper:LazyHydrationWrapper$1},props:{activeSite:{type:String,required:!0},dropdownLabel:{type:String,default:"Our Websites"}},data(){return{websites:[{siteName:"VisitScotland",siteUrl:"https://www.visitscotland.com/"},{siteName:"Business Events",siteUrl:"https://businessevents.visitscotland.com/"},{siteName:"Travel Trade",siteUrl:"https://traveltrade.visitscotland.org/"},{siteName:"Toolkit",siteUrl:"https://toolkit.visitscotland.org/"},{siteName:"Corporate",siteUrl:"https://www.visitscotland.org/"}]}}},_hoisted_1$X={class:"vs-global-menu"};function _sfc_render$13(e,r,t,n,a,o){const i=vue.resolveComponent("VsGlobalMenuDropdown"),l=vue.resolveComponent("VsGlobalMenuList"),c=vue.resolveComponent("VsCol"),d=vue.resolveComponent("VsRow"),f=vue.resolveComponent("VsContainer"),p=vue.resolveComponent("LazyHydrationWrapper");return vue.openBlock(),vue.createElementBlock("nav",_hoisted_1$X,[vue.createVNode(p,{"on-interaction":["focus","click"]},{default:vue.withCtx(()=>[vue.createVNode(f,{fluid:"lg",class:"px-025 px-sm-075"},{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,{cols:"12",class:"vs-global-menu__wrapper"},{default:vue.withCtx(()=>[vue.createVNode(i,{class:"d-lg-none","active-site":t.activeSite,"dropdown-label":t.dropdownLabel,websites:a.websites},null,8,["active-site","dropdown-label","websites"]),vue.createVNode(l,{class:"d-none d-lg-flex","active-site":t.activeSite,websites:a.websites},null,8,["active-site","websites"]),vue.renderSlot(e.$slots,"second-menu-item"),vue.renderSlot(e.$slots,"third-menu-item")]),_:3})]),_:3})]),_:3})]),_:3})])}const GlobalMenu=_export_sfc(_sfc_main$1c,[["render",_sfc_render$13]]),_sfc_main$1b={name:"VsGlobalMenuLanguage",status:"prototype",release:"0.1.0",components:{VsDropdown,VsIcon},mixins:[cookieMixin],props:{languageLabel:{type:String,default:"Language"},language:{type:String,default:"en"}},mounted(){this.cookieExists("vs_locale")||this.setCookie("vs_locale",this.localeCookie,!0),this.cookieExists("googtrans")||this.setCookie("googtrans",this.translationCookie,!0)}},_hoisted_1$W={class:"vs-global-menu__languages__text"},_hoisted_2$H={class:"vs-global-menu__languages__selected"},_hoisted_3$y={class:"vs-global-menu__languages__label",role:"menuitem"};function _sfc_render$12(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsDropdown");return vue.openBlock(),vue.createBlock(l,{variant:"primary",class:"vs-global-menu__languages"},{"button-content":vue.withCtx(()=>[vue.createVNode(i,{class:"vs-global-menu__languages__icon",name:"globe",variant:"inverse",size:"xxs",focusable:"false"}),vue.createElementVNode("span",_hoisted_1$W,vue.toDisplayString(t.languageLabel),1),vue.createElementVNode("span",_hoisted_2$H,vue.toDisplayString(e.selectedLanguage),1)]),default:vue.withCtx(()=>[vue.createElementVNode("li",_hoisted_3$y,[vue.createVNode(i,{name:"globe",variant:"inverse",size:"xxs",focusable:"false"}),vue.createTextVNode(" "+vue.toDisplayString(t.languageLabel),1)]),vue.renderSlot(e.$slots,"default")]),_:3})}const GlobalMenuLanguage=_export_sfc(_sfc_main$1b,[["render",_sfc_render$12]]),_sfc_main$1a={name:"VsGlobalMenuLanguageItem",status:"prototype",release:"0.1.0",components:{VsDropdownItem},mixins:[cookieMixin],props:{languageName:{type:String,default:null},languageLink:{type:String,default:null},language:{type:String,default:null}},methods:{setLanguage(){const e=this.cookieExists("vs_locale"),r=this.cookieExists("googtrans");this.setCookie("vs_locale",this.localeCookie,!e),this.setCookie("googtrans",this.translationCookie,!r)}}};function _sfc_render$11(e,r,t,n,a,o){const i=vue.resolveComponent("VsDropdownItem");return vue.openBlock(),vue.createBlock(i,{class:"vs-global-menu__languages__item",href:t.languageLink,onClick:r[0]||(r[0]=l=>o.setLanguage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.languageName),1)]),_:1},8,["href"])}const GlobalMenuLanguageItem=_export_sfc(_sfc_main$1a,[["render",_sfc_render$11]]),_sfc_main$19={name:"VsHeroSection",status:"prototype",release:"0.0.1",components:{VsHeading,VsContainer,VsCol,VsRow,VsCaption,VsRichTextWrapper,VsImg},props:{inset:{type:Boolean,default:!1},heading:{type:String,default:"",required:!0},lede:{type:String,default:"",required:!0},src:{type:String,default:""},imgAlt:{type:String,default:""},imgCaption:{type:String,default:""},imgCredit:{type:String,default:""}},computed:{setInset(){return this.inset||!this.src?"container":""}}},_hoisted_1$V={class:"vs-hero-section","data-test":"vs-hero-section"},_hoisted_2$G={class:"vs-hero-section__text-wrapper"},_hoisted_3$x={class:"mb-0"},_hoisted_4$r={key:0},_hoisted_5$j={key:1,class:"vs-hero-section__divider"};function _sfc_render$10(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRichTextWrapper"),d=vue.resolveComponent("VsRow"),f=vue.resolveComponent("VsContainer"),p=vue.resolveComponent("VsImg"),v=vue.resolveComponent("VsCaption");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$V,[vue.createElementVNode("div",_hoisted_2$G,[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",sm:"10",md:"9",lg:"7"},{default:vue.withCtx(()=>[vue.createVNode(i,{class:"vs-hero-section__heading m-lg-0","data-test":"vs-hero-section__heading",level:"1","heading-style":"display-xs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.heading),1)]),_:1})]),_:1}),vue.createVNode(l,{cols:"12",sm:"8","offset-lg":"1",lg:"4"},{default:vue.withCtx(()=>[t.lede?(vue.openBlock(),vue.createBlock(c,{key:0,"data-test":"vs-hero-section__lede",variant:"lead"},{default:vue.withCtx(()=>[vue.createElementVNode("p",_hoisted_3$x,vue.toDisplayString(t.lede),1)]),_:1})):vue.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),vue.createElementVNode("div",{class:vue.normalizeClass(o.setInset),"data-test":"vs-hero-section__image-wrapper"},[t.src?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4$r,[vue.createVNode(p,{class:"vs-hero-section__img",src:t.src,alt:t.imgAlt},null,8,["src","alt"]),t.imgCaption||t.imgCredit?(vue.openBlock(),vue.createBlock(v,{key:0,class:"p-0",theme:"subtle","data-test":"vs-hero-section__caption"},{caption:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.imgCaption),1)]),credit:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.imgCredit),1)]),_:1})):vue.createCommentVNode("",!0)])):(vue.openBlock(),vue.createElementBlock("hr",_hoisted_5$j))],2)])}const HeroSection=_export_sfc(_sfc_main$19,[["render",_sfc_render$10]]),_sfc_main$18={name:"VsHtmlError",status:"prototype",release:"0.1.0",mixins:[dataLayerMixin],props:{statusCode:{type:String,required:!0}},mounted(){this.createDataLayerObject("errorDataEvent",{error_type:"System Error",error_details:this.statusCode})}},_hoisted_1$U={class:"d-none"};function _sfc_render$$(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("span",_hoisted_1$U)}const HtmlError=_export_sfc(_sfc_main$18,[["render",_sfc_render$$]]),_sfc_main$17={name:"VsTourismInfo",status:"prototype",release:"0.0.1",components:{VsContainer,VsRow,VsCol}},_hoisted_1$T={class:"vs-tourism-info","data-test":"vs-tourism-info"},_hoisted_2$F={key:0,class:"vs-tourism-info__links","data-test":"vs-tourism-info__standalone-links"},_hoisted_3$w={class:"vs-tourism-info__quote-block"},_hoisted_4$q={key:0,class:"vs-tourism-info__links-contained","data-test":"vs-tourism-info__embedded-links"};function _sfc_render$_(e,r,t,n,a,o){const i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$T,[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"10",offset:"1",md:"8","offset-md":"2",lg:"6","offset-lg":"3",class:"vs-tourism-info__intro-content"},{default:vue.withCtx(()=>[e.$slots["tourism-info-links"]&&e.$slots["tourism-info-links"]()&&!(e.$slots["tourism-info-quote"]&&e.$slots["tourism-info-quote"]())?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$F,[vue.renderSlot(e.$slots,"tourism-info-links")])):vue.createCommentVNode("",!0)]),_:3}),vue.createVNode(i,{cols:"12",md:"10","offset-md":"1",class:vue.normalizeClass({"vs-tourism-info__image-offset":e.$slots["tourism-info-quote"]&&e.$slots["tourism-info-quote"]()})},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"tourism-info-image-with-caption")]),_:3},8,["class"]),e.$slots["tourism-info-quote"]&&e.$slots["tourism-info-quote"]()?(vue.openBlock(),vue.createBlock(i,{key:0,cols:"12",md:"10","offset-md":"1",lg:"7","offset-lg":"5",class:"vs-tourism-info__quote-block-container"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$w,[vue.renderSlot(e.$slots,"tourism-info-quote"),e.$slots["tourism-info-links"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$q,[vue.renderSlot(e.$slots,"tourism-info-links")])):vue.createCommentVNode("",!0)])]),_:3})):vue.createCommentVNode("",!0)]),_:3})]),_:3})])}const TourismInfo=_export_sfc(_sfc_main$17,[["render",_sfc_render$_]]),_sfc_main$16={name:"VsIconList",status:"prototype",release:"0.0.1",props:{title:{type:String,default:""}}},_hoisted_1$S={class:"vs-icon-list","data-test":"vs-icon-list"},_hoisted_2$E={key:0,class:"vs-icon-list__title"},_hoisted_3$v={class:"vs-icon-list__list mb-0"};function _sfc_render$Z(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$S,[t.title?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$E,vue.toDisplayString(t.title),1)):vue.createCommentVNode("",!0),vue.createElementVNode("ul",_hoisted_3$v,[vue.renderSlot(e.$slots,"default")])])}const IconList=_export_sfc(_sfc_main$16,[["render",_sfc_render$Z]]),_sfc_main$15={name:"VsIconListItem",status:"prototype",release:"0.0.1",components:{VsIcon},props:{label:{type:String,required:!0},icon:{type:String,required:!0}}},_hoisted_1$R={class:"vs-icon-list__item","data-test":"vs-icon-list__item"};function _sfc_render$Y(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$R,[vue.createVNode(i,{name:t.icon,size:"md",class:"d-block mx-auto"},null,8,["name"]),vue.createTextVNode(" "+vue.toDisplayString(t.label),1)])}const IconListItem=_export_sfc(_sfc_main$15,[["render",_sfc_render$Y]]),_sfc_main$14={name:"VsToggleButton",status:"prototype",release:"0.0.1",components:{VsButton,VsIcon},props:{toggleId:{type:String,default:""}},emits:["toggleAction"],data(){return{show:!1}},methods:{toggleAction(){this.show=!this.show,this.$emit("toggleAction",this.show)}}};function _sfc_render$X(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createBlock(l,{class:"vs-toggle-btn","data-test":"vs-toggle-btn",variant:"transparent","aria-controls":t.toggleId,"aria-expanded":a.show?"true":"false",onClick:o.toggleAction},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default"),a.show?(vue.openBlock(),vue.createBlock(i,{key:0,duotone:"",class:"fa-icon-colours fa-icon-colours--white",name:"circle-xmark"})):vue.renderSlot(e.$slots,"toggle-icon",{key:1},()=>[vue.createVNode(i,{duotone:"",class:"fa-icon-colours",name:"circle-info"})])]),_:3},8,["aria-controls","aria-expanded","onClick"])}const VsToggleButton=_export_sfc(_sfc_main$14,[["render",_sfc_render$X]]),_sfc_main$13={name:"VsVideoCaption",status:"prototype",release:"0.0.1",components:{VsButton,VsToggleButton,VsWarning},inject:{noJsMessage:{default:""},errorMessage:{default:""}},props:{videoBtnText:{type:String,default:""},withToggleBtn:{type:Boolean,default:!1},videoId:{type:String,required:!0},variant:{type:String,default:"wide",validator:e=>e.match(/(wide|narrow)/)}},emits:["toggleAction"],setup(){return{videoStore:useVideoStore()}},data(){return{showErrorMessage:!1}},computed:{videoDetails(){return this.videoStore.videos[this.videoId]},videoLoaded(){return typeof this.videoDetails<"u"&&this.videoDetails.videoDuration>0}},methods:{emitToggle(){this.$emit("toggleAction")},emitShowModal(){this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}},_hoisted_1$Q={key:0,class:"vs-video-caption__buttons-container"},_hoisted_2$D={class:"container"},_hoisted_3$u=vue.createElementVNode("span",{class:"visually-hidden"}," Toggle caption ",-1),_hoisted_4$p={class:"vs-video-caption__details"},_hoisted_5$i={class:"vs-video-caption__title"},_hoisted_6$e={class:"vs-video-caption__duration"},_hoisted_7$b={key:1,class:"vs-video-caption vs-video-caption--no-js vs-video-caption--warning","data-test":"video-caption-nojs"};function _sfc_render$W(e,r,t,n,a,o){const i=vue.resolveComponent("VsButton"),l=vue.resolveComponent("VsToggleButton"),c=vue.resolveComponent("VsWarning");return vue.openBlock(),vue.createElementBlock("div",{"data-test":"video-caption",class:vue.normalizeClass(["vs-video-caption__wrapper",`vs-video-caption__wrapper--${t.variant}`])},[o.videoLoaded?(vue.openBlock(),vue.createElementBlock("div",{"data-test":"video-caption-variants",class:vue.normalizeClass(["vs-video-caption",`vs-video-caption--${t.variant}`]),key:"video-caption"},[t.videoBtnText?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$Q,[vue.createElementVNode("div",_hoisted_2$D,[vue.createVNode(i,{class:"vs-video-caption__button",icon:"play","icon-position":"left",size:"md",ref:"videoShow",rounded:!1,onClick:o.emitShowModal},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.videoBtnText),1)]),_:1},8,["onClick"])]),t.withToggleBtn?(vue.openBlock(),vue.createBlock(l,{key:0,onToggleAction:o.emitToggle},{default:vue.withCtx(()=>[_hoisted_3$u]),_:1},8,["onToggleAction"])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4$p,[vue.createElementVNode("p",_hoisted_5$i,[vue.renderSlot(e.$slots,"video-title")]),vue.createElementVNode("p",_hoisted_6$e,vue.toDisplayString(o.videoDetails.videoDurationMsg),1)])],2)):vue.createCommentVNode("",!0),o.noJsMessage?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$b,[vue.createVNode(c,{size:"small"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.noJsMessage),1)]),_:1})])):vue.createCommentVNode("",!0)],2)}const VsVideoCaption=_export_sfc(_sfc_main$13,[["render",_sfc_render$W]]),_sfc_main$12={name:"VsImageWithCaption",status:"prototype",release:"0.0.1",components:{VsImg,VsToggleButton,VsVideoCaption},provide(){return{noJsMessage:this.noJsMessage,errorMessage:this.errorMessage}},props:{altText:{type:String,default:""},closedDefaultCaption:{type:Boolean,default:!1},imageSrc:{type:String,default:""},isHeroImage:{type:Boolean,default:!1},isVideo:{type:Boolean,default:!1},mobileOverlap:{type:Boolean,default:!1},toggleButtonText:{type:String,default:""},playButtonText:{type:String,default:""},videoId:{type:String,default:""},smallPlayButton:{type:Boolean,default:!1},noJsMessage:{type:String,default:""},useLazyLoading:{type:Boolean,default:!0},errorMessage:{type:String,default:""},showToggle:{type:Boolean,default:!0}},data(){return{showCaption:!1,uniqueCaptionId:""}},computed:{imageWithCaptionClasses(){return{"vs-image-with-caption--closed-default":this.closedDefaultCaption,"vs-image-with-caption--hero":this.isHeroImage,"vs-image-with-caption--video":this.isVideo}},captionWrapperClasses(){return{"d-block":this.showCaption&&!this.isHeroImage,"d-flex":this.showCaption&&this.isHeroImage||this.showCaption&&this.isVideo,container:this.isHeroImage}}},mounted(){this.uniqueCaptionId=this._uid},methods:{toggleCaption(){this.showCaption=!this.showCaption}}},_hoisted_1$P={class:"visually-hidden"},_hoisted_2$C={class:"vs-image-with-caption__captions"},_hoisted_3$t=["id"];function _sfc_render$V(e,r,t,n,a,o){const i=vue.resolveComponent("VsImg"),l=vue.resolveComponent("VsToggleButton"),c=vue.resolveComponent("VsVideoCaption");return vue.openBlock(),vue.createElementBlock("figure",{class:vue.normalizeClass(["vs-image-with-caption",o.imageWithCaptionClasses]),"data-test":"vs-image-with-caption"},[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-image-with-caption__image-wrapper",t.mobileOverlap?"vs-image-with-caption--overlapped":""])},[vue.renderSlot(e.$slots,"default",{},()=>[t.imageSrc?(vue.openBlock(),vue.createBlock(i,{key:0,src:t.imageSrc,alt:t.altText,"use-lazy-loading":t.useLazyLoading},null,8,["src","alt","use-lazy-loading"])):vue.createCommentVNode("",!0)]),t.showToggle?(vue.openBlock(),vue.createBlock(l,{key:0,"img-src":t.imageSrc,"toggle-id":a.uniqueCaptionId,onToggleAction:o.toggleCaption},{"toggle-icon":vue.withCtx(()=>[vue.renderSlot(e.$slots,"toggle-icon")]),default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$P,vue.toDisplayString(t.toggleButtonText),1)]),_:3},8,["img-src","toggle-id","onToggleAction"])):vue.createCommentVNode("",!0)],2),vue.createElementVNode("figcaption",_hoisted_2$C,[t.isVideo?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["vs-image-with-caption__video-caption-wrapper",t.isHeroImage?"container-lg":""])},[vue.createVNode(c,{"video-btn-text":t.playButtonText,"with-toggle-btn":t.showToggle,onToggleAction:o.toggleCaption,"video-id":t.videoId,"error-message":t.errorMessage,variant:t.smallPlayButton?"narrow":"wide"},{"video-title":vue.withCtx(()=>[vue.renderSlot(e.$slots,"video-title")]),_:3},8,["video-btn-text","with-toggle-btn","onToggleAction","video-id","error-message","variant"])],2)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:vue.normalizeClass(["vs-image-with-caption__caption-wrapper",o.captionWrapperClasses]),id:a.uniqueCaptionId},[vue.renderSlot(e.$slots,"img-caption")],10,_hoisted_3$t)])],2)}const ImageWithCaption=_export_sfc(_sfc_main$12,[["render",_sfc_render$V]]),_sfc_main$11={name:"VsInput",status:"prototype",release:"0.0.1",components:{BFormInput:bootstrapVueNext.BFormInput,VsButton},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{value:{type:String,default:""},fieldName:{type:String,required:!0},name:{type:String,default:""},type:{type:String,default:"text"},autoComplete:{type:Boolean,default:!0},validationRules:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},genericValidation:{type:Object,default(){return{}}},hintText:{type:String,default:""},clearButtonText:{type:String,default:""},placeholder:{type:String,default:""},reAlertErrors:{type:Boolean,default:!1}},emits:["updated"],setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,clearErrorsOnFocus:!1}},computed:{elementClass(){let e="";return(this.isInvalid||this.errorsList.length)&&(e="vs-input--error"),`${`vs-input--${this.fieldName}`} ${e}`},showClearButton(){return!!(this.inputVal.length&&this.clearButtonText!=="")}},watch:{triggerValidate(){this.manualValidate()},inputVal(e){this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e}},methods:{clearInput(){this.inputVal=""},focusOnInput(){this.$nextTick(()=>{this.$refs.input.$el.focus()})},clearInputAndFocus(){this.clearInput(),this.focusOnInput()},autocompleteValue(e){let r;switch(e){case"firstName":r="given-name";break;case"lastName":r="family-name";break;case"Email":r="email";break;case"PostalCode":r="postal-code";break;default:r=this.autoComplete?"on":"off";break}return r},validateErrors(){this.clearErrorsOnFocus=!1,this.emitStatus()},resetErrors(){this.clearErrorsOnFocus=!0}},validations(){return this.rules}},_hoisted_1$O={"data-test":"vs-input"},_hoisted_2$B=["id"],_hoisted_3$s=["id"],_hoisted_4$o={class:"visually-hidden"};function _sfc_render$U(e,r,t,n,a,o){const i=vue.resolveComponent("BFormInput"),l=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$O,[t.hintText?(vue.openBlock(),vue.createElementBlock("p",{key:0,class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_2$B)):vue.createCommentVNode("",!0),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:1,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,c=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:c,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$o,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[c]||t.genericValidation[c]),1)])),[[vue.vShow,!t.reAlertErrors&&!a.clearErrorsOnFocus]])),128))],8,_hoisted_3$s)):vue.createCommentVNode("",!0),vue.createVNode(i,{ref:"input",type:t.type,class:vue.normalizeClass(["vs-input",o.elementClass]),modelValue:a.inputVal,"onUpdate:modelValue":r[0]||(r[0]=c=>a.inputVal=c),id:t.fieldName,name:t.name?t.name:t.fieldName,placeholder:t.placeholder,required:e.isRequired,autocomplete:o.autocompleteValue(t.fieldName),v:a.inputVal,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,maxlength:t.validationRules.maxLength?t.validationRules.maxLength:null,minlength:t.validationRules.minLength?t.validationRules.minLength:null,min:t.validationRules.min!==void 0?t.validationRules.min:null,max:t.validationRules.max!==void 0?t.validationRules.max:null,disabled:t.disabled,onBlur:o.validateErrors,onChange:o.validateErrors,onFocus:o.resetErrors},null,8,["type","modelValue","class","id","name","placeholder","required","autocomplete","v","aria-invalid","aria-describedby","maxlength","minlength","min","max","disabled","onBlur","onChange","onFocus"]),o.showClearButton?(vue.openBlock(),vue.createBlock(l,{key:2,class:"vs-input__clear-button d-none d-lg-block","data-test":"input-clear-button",variant:"transparent",icon:"close",size:"md","icon-only":"",onClick:r[1]||(r[1]=vue.withModifiers(c=>o.clearInputAndFocus(),["prevent"]))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.clearButtonText),1)]),_:1})):vue.createCommentVNode("",!0)])}const VsInput=_export_sfc(_sfc_main$11,[["render",_sfc_render$U]]),_sfc_main$10={name:"VsItinerary",status:"prototype",release:"0.0.1",components:{VsContainer,VsRow,VsCol,VsAccordion,VsButton},props:{listViewText:{type:String,default:"List view"},mapViewText:{type:String,default:"Map view"}},data(){return{showMap:!1,isDesktop:!1,withinItineraryMain:!1}},mounted(){const e=document.querySelector(".vds-example");window.addEventListener("resize",this.resizeWidth),e===null?window.addEventListener("scroll",this.onScroll):e.addEventListener("scroll",this.onScroll),this.resizeWidth()},unmounted(){window.removeEventListener("resize",this.resizeWidth)},methods:{resizeWidth(){this.isDesktop=window.innerWidth>=1200,this.showMap=window.innerWidth>=1200},onScroll(){const e=this.$el.getBoundingClientRect(),r=e.top<=(window.innerHeight||document.documentElement.clientHeight),t=e.bottom<=(window.innerHeight||document.documentElement.clientHeight);this.withinItineraryMain=!!(r&&!t)},toggleShowMap(){this.showMap=!this.showMap}}},_hoisted_1$N={class:"vs-itinerary","data-test":"vs-itinerary"},_hoisted_2$A={class:"fixed-bottom"},_hoisted_3$r={class:"d-flex justify-content-center pb-050"},_hoisted_4$n={key:0,class:"vs-itinerary__map-container","data-chromatic":"ignore"};function _sfc_render$T(e,r,t,n,a,o){const i=vue.resolveComponent("VsButton"),l=vue.resolveComponent("VsAccordion"),c=vue.resolveComponent("VsCol"),d=vue.resolveComponent("VsRow"),f=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("section",_hoisted_1$N,[vue.withDirectives(vue.createElementVNode("div",_hoisted_2$A,[vue.createElementVNode("div",_hoisted_3$r,[vue.createVNode(i,{class:"vs-itinerary__map-toggle-button",onClick:r[0]||(r[0]=p=>o.toggleShowMap()),icon:a.showMap?"list":"map","data-test":"vs-itinerary-btn"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.showMap?t.listViewText:t.mapViewText),1)]),_:1},8,["icon"])])],512),[[vue.vShow,!a.isDesktop&&a.withinItineraryMain]]),a.isDesktop||a.showMap?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$n,[vue.renderSlot(e.$slots,"map")])):vue.createCommentVNode("",!0),vue.createVNode(f,{class:"vs-itinerary__outer-container"},{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,{cols:"12",class:"p-0 vs-itinerary__accordion-container"},{default:vue.withCtx(()=>[vue.createVNode(l,{"break-point":"lg"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"list")]),_:3})]),_:3})]),_:3})]),_:3})])}const Itinerary=_export_sfc(_sfc_main$10,[["render",_sfc_render$T]]),_sfc_main$$={name:"VsItineraryDay",status:"prototype",release:"0.0.1",components:{VsContainer,VsRow,VsCol,VsIcon,VsAccordionItem},props:{defaultShow:{type:Boolean,default:!0},dayLabel:{type:String,required:!0},dayNumber:{type:String,required:!0},dayTitle:{type:String,required:!0}},data(){return{show:this.defaultShow}}},_hoisted_1$M={class:"vs-itinerary-day"},_hoisted_2$z={class:"vs-itinerary-day__header"},_hoisted_3$q={class:"vs-itinerary-day__title"},_hoisted_4$m={class:"vs-itinerary-day__sub-heading"},_hoisted_5$h=["id"],_hoisted_6$d={class:"vs-itinerary-day__intro-content"},_hoisted_7$a={class:"list-unstyled"};function _sfc_render$S(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsAccordionItem"),c=vue.resolveComponent("VsCol"),d=vue.resolveComponent("VsRow"),f=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$M,[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(l,{"open-by-default":a.show,"control-id":"itinerary-day-"+t.dayNumber,variant:"transparent","item-break-point":"lg",class:"vs-itinerary-day__list-item"},{title:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$z,[vue.createElementVNode("span",_hoisted_3$q,vue.toDisplayString(t.dayLabel)+" "+vue.toDisplayString(t.dayNumber),1),vue.createElementVNode("span",_hoisted_4$m,vue.toDisplayString(t.dayTitle),1)])]),"icon-open":vue.withCtx(()=>[vue.createVNode(i,{name:"chevron",orientation:"down",size:"lg",padding:3,class:"vs-itinerary-day__toggle-button"})]),"icon-closed":vue.withCtx(()=>[vue.createVNode(i,{name:"chevron",size:"lg",padding:3,class:"vs-itinerary-day__toggle-button"})]),default:vue.withCtx(()=>[vue.createElementVNode("div",{id:"dayPanel_"+t.dayNumber,class:"vs-itinerary-day__panel"},[vue.createElementVNode("div",_hoisted_6$d,[vue.renderSlot(e.$slots,"day-transport"),vue.renderSlot(e.$slots,"day-introduction")]),vue.createElementVNode("ul",_hoisted_7$a,[vue.renderSlot(e.$slots,"stops")])],8,_hoisted_5$h)]),_:3},8,["open-by-default","control-id"])]),_:3})]),_:3})]),_:3})])}const ItineraryDay=_export_sfc(_sfc_main$$,[["render",_sfc_render$S]]),_sfc_main$_={name:"VsItineraryStop",status:"prototype",release:"0.0.1",components:{VsHeading,VsIcon},props:{stopLabel:{type:String,required:!0},stopNumber:{type:String,required:!0},stopTitle:{type:String,required:!0}}},_hoisted_1$L={class:"vs-itinerary-stop","data-test":"vs-itinerary-stop"},_hoisted_2$y={class:"border"},_hoisted_3$p={class:"d-flex justify-content-start align-items-top","data-test":"vs-itinerary-stop-heading"},_hoisted_4$l={class:"position-relative"},_hoisted_5$g={class:"map-marker__count","aria-hidden":"true","data-test":"vs-itinerary-stop-marker"},_hoisted_6$c={class:"vs-itinerary-stop__details-container","data-chromatic":"ignore"},_hoisted_7$9={key:0,class:"vs-itinerary-stop__address","data-test":"vs-itinerary-stop-address"};function _sfc_render$R(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$L,[vue.createElementVNode("div",_hoisted_2$y,[vue.createElementVNode("div",_hoisted_3$p,[vue.createElementVNode("div",_hoisted_4$l,[vue.createVNode(i,{name:"map-marker-filled",variant:"tertiary",size:"xl"}),vue.createElementVNode("span",_hoisted_5$g,vue.toDisplayString(t.stopNumber),1)]),vue.createVNode(l,{level:"3","heading-style":"heading-s",class:"vs-itinerary-stop__title ms-100 mt-0"},{"sub-heading":vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.stopTitle),1)]),default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.stopLabel)+" ",1)]),_:1})]),vue.renderSlot(e.$slots,"default"),vue.renderSlot(e.$slots,"stop-description"),vue.renderSlot(e.$slots,"stop-time-to-explore"),vue.renderSlot(e.$slots,"stop-tips"),vue.createElementVNode("div",_hoisted_6$c,[e.$slots["stop-address"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$9,[vue.renderSlot(e.$slots,"stop-address")])):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"stop-info")]),vue.renderSlot(e.$slots,"stop-facilities")]),e.$slots["stop-buttons"]?vue.renderSlot(e.$slots,"stop-buttons",{key:0}):vue.createCommentVNode("",!0)])}const ItineraryStop=_export_sfc(_sfc_main$_,[["render",_sfc_render$R]]),_sfc_main$Z={name:"VsItineraryStopInfo",status:"prototype",release:"0.0.1",components:{VsIcon,VsLink},props:{openingHours:{type:[String,Object],required:!1,default:null},openingTimesLink:{type:String,required:!1,default:null},closedText:{type:String,required:!0},closingSoonText:{type:String,required:!0},openText:{type:String,required:!0},usualText:{type:String,required:!0},provisionalText:{type:String,required:!0},temporarilyClosedText:{type:String,required:!0},toText:{type:String,required:!0},andText:{type:String,required:!0}},data(){return{openingMessage:"",currentDayData:{},currentTime:{},dayDataIndex:0,closedLongTerm:!1,ukDate:"",isCurrentTimeframe:!1,parsedHours:{}}},computed:{hoursMessage(){let e="";if(this.closedLongTerm)e=this.temporarilyClosedText;else if(this.currentDayData.length>0)switch(this.openingMessage){case"closed":e=this.closedText;break;case"closing soon":e=this.closingSoonText;break;case"open":e=this.openText;break;default:e=""}return e},provisionalMessage(){let e="";if(typeof this.currentDayData[0]<"u"){const r=this.currentDayData[0].state==="open"?this.openText:this.closedText;this.currentDayData[0].provisional?e=`${this.provisionalText} ${r.toLowerCase()} ${this.currentDayData[0].day}`:e=`${this.usualText} ${r.toLowerCase()} ${this.currentDayData[0].day}`,this.currentDayData[0].state!=="closed"&&typeof this.currentDayData[this.dayDataIndex]<"u"&&typeof this.currentDayData[this.dayDataIndex].startTime<"u"&&typeof this.currentDayData[this.dayDataIndex].endTime<"u"&&this.currentDayData[this.dayDataIndex].startTime!==""&&this.currentDayData[this.dayDataIndex].endTime!==""&&this.currentDayData.forEach((t,n)=>{e+=` ${t.startTime} ${this.toText} ${t.endTime}`,n+1<this.currentDayData.length&&(e+=` ${this.andText} `)})}return e}},created(){this.parseIncomingData(),this.getCurrentTime(),this.isActiveDate(),this.getCurrentHoursInfo()},methods:{parseIncomingData(){if(typeof this.openingHours!="object"){const e=this.openingHours.replace(/'/g,'"');this.parsedHours=JSON.parse(e)}else this.parsedHours=this.openingHours;this.parsedHours.closedLongTerm&&(this.closedLongTerm=!0)},getCurrentTime(){const e=new Date,r=e.toLocaleTimeString("en-GB",{timeZone:"Europe/London"});this.ukDate=e.toLocaleDateString("en-GB",{timeZone:"Europe/London"});const t=r.substring(0,2),n=r.substring(3,6),a=e.getDay();this.currentTime.hours=parseInt(t,10),this.currentTime.minutes=parseInt(n,10),this.currentTime.day=a},isActiveDate(){if(typeof this.parsedHours.period<"u"){const e=`${this.ukDate.substring(3,5)}/${this.ukDate.substring(0,2)}/${this.ukDate.substring(6,10)}`,r=new Date(this.parsedHours.period.startDay),t=new Date(this.parsedHours.period.endDay),n=new Date(e);n<t&&n>r?this.isCurrentTimeframe=!0:this.isCurrentTimeframe=!1}else this.isCurrentTimeframe=!0},getCurrentHoursInfo(){const e=this.returnDayName(this.currentTime.day);if(typeof this.parsedHours.days<"u"){const r=this.parsedHours.days.filter(t=>t.key===e);typeof r<"u"&&(this.currentDayData=r,this.compareTimes(this.currentTime,this.currentDayData,this.dayDataIndex))}},compareTimes(e,r,t){if(typeof r[t].startTime<"u"&&typeof r[t].endTime<"u"&&r[t].startTime.length>0&&r[t].endTime.length>0){const n=r[t].startTime,a=r[t].endTime,o=parseInt(n.substring(0,n.indexOf(":")),10),i=parseInt(n.substring(n.indexOf(":")+1,n.length),10),l=parseInt(a.substring(0,a.indexOf(":")),10),c=parseInt(a.substring(a.indexOf(":")+1,a.length),10),d=this.calculateClosingSoon(l,c);r[t].state==="closed"?this.openingMessage="closed":o>e.hours||o===e.hours&&i>e.minutes||l<e.hours||l===e.hours&&c<e.minutes?this.openingMessage="closed":this.withinClosingSoonTime(e,d)?this.openingMessage="closing soon":this.openingMessage="open",this.openingMessage==="closed"&&r.length>t+1&&(this.dayDataIndex+=1,this.compareTimes(this.currentTime,this.currentDayData,this.dayDataIndex))}else r[t].state==="closed"&&(this.openingMessage="closed")},returnDayName(e){let r="";switch(e){case 1:r="monday";break;case 2:r="tuesday";break;case 3:r="wednesday";break;case 4:r="thursday";break;case 5:r="friday";break;case 6:r="saturday";break;case 7:r="sunday";break;default:r=""}return r},calculateClosingSoon(e,r){let t,n;return r<30?(t=e-1,n=60+(r-30)):(t=e,n=r-30),{hours:t,mins:n}},withinClosingSoonTime(e,r){return!(r.hours>e.hours||r.hours===e.hours&&r.mins>e.minutes)}}},_hoisted_1$K={class:"vs-itinerary-stop-info","data-test":"vs-itinerary-stop-info"},_hoisted_2$x={key:0,class:"itinerary-stop-info__times mb-0","data-test":"vs-itinerary-stop-status"},_hoisted_3$o=vue.createElementVNode("br",null,null,-1),_hoisted_4$k={key:1,"data-test":"vs-itinerary-stop-hours"},_hoisted_5$f={key:1,"data-test":"vs-stop-link"},_hoisted_6$b={key:2,"data-test":"vs-stop-charge-text"};function _sfc_render$Q(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$K,[vue.createVNode(i,{name:"information",class:"vs-address__map-marker me-050"}),vue.createElementVNode("div",null,[a.isCurrentTimeframe?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[o.hoursMessage.length>0?(vue.openBlock(),vue.createElementBlock("p",_hoisted_2$x,[vue.createTextVNode(vue.toDisplayString(o.hoursMessage),1),_hoisted_3$o])):vue.createCommentVNode("",!0),!a.closedLongTerm&&typeof a.currentDayData[0]<"u"&&typeof a.currentDayData[0].state<"u"&&o.provisionalMessage.length>0?(vue.openBlock(),vue.createElementBlock("p",_hoisted_4$k,vue.toDisplayString(o.provisionalMessage)+". ",1)):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),e.$slots["stop-link-text"]&&t.openingTimesLink!==null?(vue.openBlock(),vue.createElementBlock("p",_hoisted_5$f,[vue.createVNode(l,{href:t.openingTimesLink},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"stop-link-text")]),_:3},8,["href"])])):vue.createCommentVNode("",!0),e.$slots["stop-charge-text"]?(vue.openBlock(),vue.createElementBlock("p",_hoisted_6$b,[vue.renderSlot(e.$slots,"stop-charge-text")])):vue.createCommentVNode("",!0)])])}const ItineraryStopInfo=_export_sfc(_sfc_main$Z,[["render",_sfc_render$Q]]),_sfc_main$Y={name:"VsItineraryTips",status:"prototype",release:"0.0.1",components:{},props:{}},_hoisted_1$J={class:"vs-itinerary-tips position-relative my-175"},_hoisted_2$w={class:"vs-itinerary-tips__text"},_hoisted_3$n={class:"vs-itinerary-tips__svg position-absolute"};function _sfc_render$P(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$J,[vue.createElementVNode("div",_hoisted_2$w,[vue.renderSlot(e.$slots,"text")]),vue.createElementVNode("div",_hoisted_3$n,[vue.renderSlot(e.$slots,"svg")])])}const ItineraryTips=_export_sfc(_sfc_main$Y,[["render",_sfc_render$P]]),_sfc_main$X={name:"VsLinkList",status:"prototype",release:"0.0.1",components:{VsHeading},props:{toc:{type:Boolean,default:!1}},computed:{classes(){return{"link-list":!0,"link-list--toc":this.toc}},dataTest(){return this.toc?"link-list--toc":"link-list"},hasHeadingSlot(){return!!this.$slots.heading}}},_hoisted_1$I=["data-test"],_hoisted_2$v={class:"link-list__list"};function _sfc_render$O(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(o.classes),"data-test":o.dataTest},[vue.createElementVNode("nav",null,[o.hasHeadingSlot?(vue.openBlock(),vue.createBlock(i,{key:0,level:"2","heading-style":"heading-l"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"heading")]),_:3})):vue.createCommentVNode("",!0),vue.createElementVNode("ul",_hoisted_2$v,[vue.renderSlot(e.$slots,"default")])])],10,_hoisted_1$I)}const VsLinkList=_export_sfc(_sfc_main$X,[["render",_sfc_render$O]]),_sfc_main$W={name:"VsLinkListItem",status:"prototype",release:"0.0.1",components:{VsLink},props:{href:{type:String,default:null},type:{type:String,default:"default",validator:e=>e.match(/(default|external|internal|download|video)/)},videoId:{type:String,default:null},videoDescriptor:{type:String,default:null}},setup(){return{videoStore:useVideoStore()}},computed:{formattedVideoDuration(){if(this.videoDetails){let e=`${this.videoDetails.videoFullDuration.seconds}`;return e.length===1&&(e=`0${e}`),`${this.videoDetails.videoFullDuration.minutes}:${e}`}return""},videoDetails(){return this.videoStore.videos[this.videoId]},videoLoaded(){return typeof this.videoDetails<"u"&&this.videoDetails.videoDuration>0}},methods:{emitShowModal(){this.videoId&&this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}},_hoisted_1$H={class:"link-list-item"};function _sfc_render$N(e,r,t,n,a,o){const i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$H,[vue.createVNode(i,{href:t.href,type:t.type=="video"?"default":t.type,role:t.type=="video"?"button":null,onClick:o.emitShowModal},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default"),t.type=="video"&&o.videoLoaded?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(" | "+vue.toDisplayString(t.videoDescriptor)+" "+vue.toDisplayString(o.formattedVideoDuration),1)],64)):vue.createCommentVNode("",!0)]),_:3},8,["href","type","role","onClick"])])}const LinkListItem=_export_sfc(_sfc_main$W,[["render",_sfc_render$N]]),_sfc_main$V={name:"VsListicleItem",status:"prototype",release:"0.0.1",components:{VsHeading,VsRow,VsCol},props:{index:{type:String,default:""},title:{type:String,default:""},subTitle:{type:String,default:""}},computed:{hasKeyFacilitiesSlot(){return!!this.$slots["facilities-slot"]}}},_hoisted_1$G={class:"vs-listicle-item border","data-test":"vs-listicle-item"},_hoisted_2$u={class:"d-flex justify-content-start align-items-top border-bottom border-white"},_hoisted_3$m={class:"position-relative"},_hoisted_4$j={class:"count__bg"},_hoisted_5$e={class:"count","aria-hidden":"true"};function _sfc_render$M(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRow");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$G,[vue.renderSlot(e.$slots,"hippo-details"),vue.createElementVNode("div",_hoisted_2$u,[vue.createElementVNode("div",_hoisted_3$m,[vue.createElementVNode("div",_hoisted_4$j,[vue.createElementVNode("span",_hoisted_5$e,vue.toDisplayString(t.index),1)])]),vue.createVNode(i,{level:"2","heading-style":"heading-s",class:"vs-listicle-item__heading"},{"sub-heading":vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.subTitle),1)]),default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title)+" ",1)]),_:1})]),vue.renderSlot(e.$slots,"image-slot"),vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",lg:"8",class:"mt-050 mt-sm-300 mb-100 mt-lg-050 pe-lg-300"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"description-slot")]),_:3}),vue.createVNode(l,{cols:"12",lg:"4",class:vue.normalizeClass(["key-facilities-list mt-lg-400",[o.hasKeyFacilitiesSlot?"has-facilities":""]])},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"facilities-slot")]),_:3},8,["class"])]),_:3})])}const ListicleItem=_export_sfc(_sfc_main$V,[["render",_sfc_render$M]]),_sfc_main$U={name:"VsLoadingSpinner",status:"prototype",release:"0.1.0",props:{variant:{type:String,default:"light",validator:e=>e.match(/(dark|light)/)}},computed:{spinnerClasses(){return this.variant?`vs-loading-spinner--${this.variant}`:""}}},_hoisted_1$F=vue.createStaticVNode('<div class="vs-loading-spinner__dot"></div><div class="vs-loading-spinner__dot"></div><div class="vs-loading-spinner__dot"></div><div class="vs-loading-spinner__dot"></div><div class="vs-loading-spinner__dot"></div><div class="vs-loading-spinner__dot"></div><div class="vs-loading-spinner__dot"></div>',7),_hoisted_8$6=[_hoisted_1$F];function _sfc_render$L(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-loading-spinner",o.spinnerClasses]),"data-test":"vs-loading-spinner"},_hoisted_8$6,2)}const VsLoadingSpinner=_export_sfc(_sfc_main$U,[["render",_sfc_render$L]]),__vite_import_meta_env__={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};var define_process_env_default$1={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.8",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-59948a58;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-de2eadd7;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"};const getEnvValue=e=>define_process_env_default$1?define_process_env_default$1[e]:__vite_import_meta_env__[e],_sfc_main$T={name:"VsSelect",status:"prototype",release:"0.0.1",components:{BFormSelect:bootstrapVueNext.BFormSelect},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{options:{type:Array,required:!0},fieldName:{type:String,required:!0},value:{type:String,default:""},validationRules:{type:Object,default(){return{}}},triggerValidate:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},countryListUrl:{type:String,default:""},hintText:{type:String,default:""},countries:{type:Boolean,default:!1},genericValidation:{type:Object,default(){return{}}},reAlertErrors:{type:Boolean,default:!1}},emits:["toggleAction","updated"],setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,touched:!1,countryList:[]}},computed:{errorClass(){return this.errorsList.length>0&&this.v$.inputVal&&this.v$.inputVal.$anyDirty||this.invalid?"vs-select__element--error":""},fieldOptions(){return this.countries?this.countryList:this.options}},watch:{inputVal(e){this.emitStatus(),this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e},triggerValidate(){this.manualValidate()}},beforeMount(){this.countries&&axios.get(this.countryListUrl).then(e=>{this.countryList=e.data.countries})},methods:{autocompleteValue(e){let r;switch(e){case"Country":r="country-name";break;default:r="on";break}return r}},validations(){return this.rules}},_hoisted_1$E={class:"vs-select"},_hoisted_2$t=["id"],_hoisted_3$l=["id"],_hoisted_4$i={class:"visually-hidden"},_hoisted_5$d={class:"vs-select__container mt-050"},_hoisted_6$a=vue.createElementVNode("span",{class:"vs-select__focus"},null,-1);function _sfc_render$K(e,r,t,n,a,o){const i=vue.resolveComponent("BFormSelect");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$E,[vue.createElementVNode("p",{class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_2$t),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:0,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,l=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:l,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$i,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[l]||t.genericValidation[l]),1)])),[[vue.vShow,!t.reAlertErrors]])),128))],8,_hoisted_3$l)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_5$d,[vue.createVNode(i,vue.mergeProps({modelValue:a.inputVal,"onUpdate:modelValue":r[0]||(r[0]=l=>a.inputVal=l)},e.$attrs,{options:o.fieldOptions,name:t.fieldName,id:t.fieldName,onChange:e.emitStatus,onBlur:e.emitStatus,"data-test":"vs-select","data-testid":"vs-select",class:["vs-select__element",o.errorClass],required:e.isRequired,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,autocomplete:o.autocompleteValue(t.fieldName)}),null,16,["modelValue","options","name","id","onChange","onBlur","required","aria-invalid","aria-describedby","class","autocomplete"]),_hoisted_6$a])])}const VsSelect=_export_sfc(_sfc_main$T,[["render",_sfc_render$K]]);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},_extends.apply(this,arguments)}var defer=function e(){var r=!1,t=[],n=function(){if(!r){r=!0;for(var l=0,c=t.length;l<c;l++)t[l]()}},a=function(l){if(!r){t.push(l);return}l()},o={resolved:function(){return r},resolve:n,promise:{then:a}};return o},ownProp=Object.prototype.hasOwnProperty;function createRecaptcha(){var e=defer();return{notify:function(){e.resolve()},wait:function(){return e.promise},render:function(t,n,a){this.wait().then(function(){a(window.grecaptcha.render(t,n))})},reset:function(t){typeof t>"u"||(this.assertLoaded(),this.wait().then(function(){return window.grecaptcha.reset(t)}))},execute:function(t){typeof t>"u"||(this.assertLoaded(),this.wait().then(function(){return window.grecaptcha.execute(t)}))},checkRecaptchaLoad:function(){ownProp.call(window,"grecaptcha")&&ownProp.call(window.grecaptcha,"render")&&this.notify()},assertLoaded:function(){if(!e.resolved())throw new Error("ReCAPTCHA has not been loaded")}}}var recaptcha=createRecaptcha();typeof window<"u"&&(window.vueRecaptchaApiLoaded=recaptcha.notify);var Recaptcha=vue.defineComponent({name:"VueRecaptcha",props:{sitekey:{type:String,required:!0},theme:{type:String},badge:{type:String},type:{type:String},size:{type:String},tabindex:{type:String},loadRecaptchaScript:{type:Boolean,default:!0},recaptchaScriptId:{type:String,default:"__RECAPTCHA_SCRIPT"},recaptchaHost:{type:String,default:"www.google.com"},language:{type:String,default:""}},emits:["render","verify","expired","error"],setup:function e(r,t){var n=t.slots,a=t.emit,o=vue.ref(null),i=vue.ref(null),l=function(p){a("verify",p)},c=function(){a("expired")},d=function(){a("error")};return vue.onMounted(function(){if(recaptcha.checkRecaptchaLoad(),r.loadRecaptchaScript&&!document.getElementById(r.recaptchaScriptId)){var f=document.createElement("script");f.id=r.recaptchaScriptId,f.src="https://"+r.recaptchaHost+"/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit&hl="+r.language,f.async=!0,f.defer=!0,document.head.appendChild(f)}var p=_extends({},r,{callback:l,"expired-callback":c,"error-callback":d}),v=o.value,m=n.default?v.children[0]:v;recaptcha.render(m,p,function(g){i.value=g,a("render",g)})}),{root:o,widgetId:i,reset:function(){recaptcha.reset(i.value)},execute:function(){recaptcha.execute(i.value)}}},render:function e(){var r=this.$slots.default,t;return typeof r=="function"?t=r():t=r,vue.h("div",{ref:"root"},t)}});const _sfc_main$S={name:"VsRecaptcha",status:"prototype",release:"0.0.1",components:{VueRecaptcha:Recaptcha},props:{siteKey:{type:String,default:""},invalid:{type:Boolean,default:!1},language:{type:String,default:"en"},errorMsg:{type:String,default:""},textareaLabel:{type:String,default:"Does not need any text"},reAlertErrors:{type:Boolean,default:!1}},emits:["verified"],data(){return{response:null,recaptchaSiteKey:""}},created(){this.siteKey?this.recaptchaSiteKey=this.siteKey:this.recaptchaSiteKey=getEnvValue("RECAPTCHA_TOKEN")},methods:{verified(e){this.$emit("verified",e)},render(){const e=document.querySelectorAll('[id^="g-recaptcha-response"]');if(e.length){const r=e[0].parentNode,t=document.querySelector('label[for="g-recaptcha-response"]'),n=document.createElement("label");n.setAttribute("for","g-recaptcha-response"),n.setAttribute("class","visually-hidden"),n.textContent=this.textareaLabel,t||r.insertBefore(n,e[0])}}}},_hoisted_1$D={class:"vs-recaptcha","aria-live":"assertive"},_hoisted_2$s={key:0,class:"error"};function _sfc_render$J(e,r,t,n,a,o){const i=vue.resolveComponent("VueRecaptcha");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$D,[t.invalid&&!t.reAlertErrors?(vue.openBlock(),vue.createElementBlock("span",_hoisted_2$s,vue.toDisplayString(t.errorMsg),1)):vue.createCommentVNode("",!0),a.recaptchaSiteKey?(vue.openBlock(),vue.createBlock(i,{key:1,sitekey:a.recaptchaSiteKey,onVerify:o.verified,onRender:o.render,class:vue.normalizeClass(["vs-recaptcha__embed",t.invalid?"vs-recaptcha__embed--error":""]),language:t.language},null,8,["sitekey","onVerify","onRender","class","language"])):vue.createCommentVNode("",!0)])}const VsRecaptcha=_export_sfc(_sfc_main$S,[["render",_sfc_render$J]]),_sfc_main$R={name:"VsTextarea",status:"prototype",release:"0.0.1",components:{BFormTextarea:bootstrapVueNext.BFormTextarea},mixins:[validateFormElementMixin,ariaDescriptionMixin],props:{value:{type:String,default:""},fieldName:{type:String,required:!0},name:{type:String,default:""},autoComplete:{type:Boolean,default:!0},validationRules:{type:Object,default(){return{}}},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default(){return{}}},genericValidation:{type:Object,default(){return{}}},hintText:{type:String,default:""},placeholder:{type:String,default:""},reAlertErrors:{type:Boolean,default:!1},rows:{type:Number||String,default:2}},setup:()=>({v$:useVuelidate()}),data(){return{inputVal:this.value,clearErrorsOnFocus:!1}},computed:{elementClass(){let e="";return(this.isInvalid||this.errorsList.length)&&(e="vs-input--error"),`${`vs-input--${this.fieldName}`} ${e}`}},watch:{triggerValidate(){this.manualValidate()},inputVal(e){this.$emit("updated",{field:this.fieldName,value:e})},value(e){this.inputVal=e}},methods:{clearInput(){this.inputVal=""},focusOnInput(){this.$nextTick(()=>{this.$refs.input.$el.focus()})},clearInputAndFocus(){this.clearInput(),this.focusOnInput()},autocompleteValue(){return this.autoComplete?"on":"off"},validateErrors(){this.clearErrorsOnFocus=!1,this.emitStatus()},resetErrors(){this.clearErrorsOnFocus=!0}},validations(){return this.rules}},_hoisted_1$C={"data-test":"vs-textarea"},_hoisted_2$r=["id"],_hoisted_3$k=["id"],_hoisted_4$h={class:"visually-hidden"};function _sfc_render$I(e,r,t,n,a,o){const i=vue.resolveComponent("BFormTextarea");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$C,[t.hintText?(vue.openBlock(),vue.createElementBlock("p",{key:0,class:"hint-text",id:`hint-${t.fieldName}`},vue.toDisplayString(t.hintText),9,_hoisted_2$r)):vue.createCommentVNode("",!0),e.errorsList.length||t.invalid?(vue.openBlock(),vue.createElementBlock("div",{key:1,role:"alert","aria-live":"assertive",id:`error-${t.fieldName}`},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.errorsList,l=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("p",{key:l,class:"error mb-0"},[vue.createElementVNode("span",_hoisted_4$h,vue.toDisplayString(t.fieldName),1),vue.createTextVNode(" "+vue.toDisplayString(t.validationMessages[l]||t.genericValidation[l]),1)])),[[vue.vShow,!t.reAlertErrors&&!a.clearErrorsOnFocus]])),128))],8,_hoisted_3$k)):vue.createCommentVNode("",!0),vue.createVNode(i,{ref:"input",class:vue.normalizeClass(["vs-textarea",o.elementClass]),modelValue:a.inputVal,"onUpdate:modelValue":r[0]||(r[0]=l=>a.inputVal=l),id:t.fieldName,name:t.name?t.name:t.fieldName,placeholder:t.placeholder,required:e.isRequired,autocomplete:o.autocompleteValue(t.fieldName),v:a.inputVal,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,disabled:t.disabled,rows:t.rows,onBlur:o.validateErrors,onChange:o.validateErrors,onFocus:o.resetErrors},null,8,["class","modelValue","id","name","placeholder","required","autocomplete","v","aria-invalid","aria-describedby","disabled","rows","onBlur","onChange","onFocus"])])}const VsTextarea=_export_sfc(_sfc_main$R,[["render",_sfc_render$I]]),_sfc_main$Q={name:"VsForm",status:"prototype",release:"0.0.1",components:{VsInput,VsSelect,VsCheckbox,BFormGroup:bootstrapVueNext.BFormGroup,VsRecaptcha,VsButton,VsHeading,VsWarning,VsTextarea},mixins:[dataLayerMixin],props:{isMarketo:{type:Boolean,default:!0},submitUrl:{type:String,default:""},dataUrl:{type:String,required:!0},recaptchaKey:{type:String,default:getEnvValue("RECAPTCHA_TOKEN")},recaptchaTextareaLabel:{type:String,default:"Does not need any text"},isProd:{type:Boolean,default:!1},munchkinId:{type:String,default:""},marketoInstance:{type:String,default:""},language:{type:String,default:"en"},messagingUrl:{type:String,required:!0},countryListUrl:{type:String,default:""},isTest:{type:Boolean,default:!0}},data(){return{submitted:!1,submitting:!1,submitError:!1,formData:{},messagingData:{},form:{},formIsInvalid:!1,showErrorMessage:!1,errorFields:[],triggerValidate:!1,recaptchaVerified:!1,conditionalFields:{},inputVal:"",reAlertErrors:!1,emailFieldName:""}},computed:{formId(){return this.isProd?this.formData.formLiveId:this.formData.formSandboxId},showFormHeading(){return!this.isUndefined(this.getTranslatedContent)&&!this.isUndefined(this.getTranslatedContent("heading"))}},created(){this.getFormData(),this.getGlobalMessaging()},methods:{getFormData(){axios.get(this.dataUrl).then(e=>{this.formData=e.data,this.isMarketo&&window.MktoForms2&&window.MktoForms2.loadForm(this.marketoInstance,this.munchkinId,this.formId),e.data.fields.forEach(r=>{this.form[r.name]="",r.conditional&&(this.conditionalFields[r.name]=!1)}),this.checkConditionalFields()}).catch(()=>{})},getGlobalMessaging(){axios.get(this.messagingUrl).then(e=>{this.messagingData=e.data}).catch(()=>{})},getLanguageObj(){let e;return this.isUndefined(this.formData[this.language])?e={}:e=this.formData[this.language]||void 0,e},getTranslatedLabel(e,r){const t=this.getLanguageObj();let n="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].label)?n=t[e].label:n=this.formData.fields[r].label,this.showOptionalText(this.formData.fields[r])&&!this.isUndefined(this.getMessagingData("optional",this.language))&&(n=`${n} (${this.getMessagingData("optional",this.language)})`),n},getTranslatedLegend(e,r){const t=this.getLanguageObj();let n="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].descriptor)?n=t[e].descriptor:n=this.formData.fields[r].descriptor,n},getTranslatedInfo(e,r){const t=this.getLanguageObj();let n="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].info)?n=t[e].info:n=this.formData.fields[r].info,n},getTranslatedValidation(e,r){const t=this.getLanguageObj();let n;return this.language==="en"&&!this.isUndefined(this.formData.fields[r].validationMessages)?n=this.formData.fields[r].validationMessages:!this.isUndefined(t[e])&&!this.isUndefined(t[e].validationMessages)?n=t[e].validationMessages:this.language==="en"&&(n=this.formData.fields[r].validationMessages),n},getTranslatedOptions(e,r){const t=this.getLanguageObj();let n=[];return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined([e].options)?n=t[e].options:n=this.formData.fields[r].options,typeof n>"u"&&(n=[]),n},getTranslatedHint(e,r){const t=this.getLanguageObj();let n="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].hint)?n=t[e].hint:this.isUndefined(this.formData.fields[r].hint)?n="":n=this.formData.fields[r].hint,n},getTranslatedContent(e){let r;const t=this.getLanguageObj();return this.language==="en"&&!this.isUndefined(this.formData.content)&&!this.isUndefined(this.formData.content[e])?r=this.formData.content[e]:!this.isUndefined(t.content)&&!this.isUndefined(t.content[e])?r=t.content[e]:r=this.getMessagingData(e,this.language),r},getMessagingData(e,r){return Object.keys(this.messagingData).length>0?this.messagingData[r][e]:e==="validation"?{}:""},getHiddenFields(){return[...this.$el.querySelectorAll("input[type=hidden]")].map(this.parseBooleanStringsFromInputField)},parseBooleanStringsFromInputField(e){let r=e.value;return r==="true"?r=!0:r==="false"&&(r=!1),{name:e.name,value:r}},isUndefined(e){return typeof e>"u"},updateFieldData(e){this.form[e.field]=e.value||"",Array.isArray(e.errors)?this.formIsInvalid=e.errors.length>0:this.formIsInvalid=e.errors!==null,this.manageErrorStatus(e.field,e.errors),this.checkConditionalFields()},manageErrorStatus(e,r){const t=this.errorFields.indexOf(e);t!==-1?(!r||r.length<1)&&this.errorFields.splice(t,1):r&&r.length>0&&this.errorFields.push(e)},showOptionalText(e){return!!(this.isUndefined(e.validation)||this.isUndefined(e.validation.required))},needsLabel(e){return!(e.element==="radio"||e.element==="submit"||e.element==="checkbox")},preSubmit(e){e.preventDefault();function r(n){return n.validation&&n.validation.required}this.isTest||this.onRecaptchaVerify(),this.triggerValidate=!0;const t=this.formData.fields.filter(r);t.length===0?this.formIsInvalid=!1:t.forEach(n=>{if(!/\S/.test(this.form[n.name])){let a=!0;n.name in this.conditionalFields&&!this.conditionalFields[n.name]&&(a=!1),this.formIsInvalid=a}}),this.showErrorMessage=this.formIsInvalid,Object.entries(this.conditionalFields).forEach(([n,a])=>{a||(this.form[n]="")}),this.errorFields.length>0&&(this.formIsInvalid=!0),!this.formIsInvalid&&this.recaptchaVerified?this.isMarketo?this.marketoSubmit():this.axiosSubmit():(this.showErrorMessage=!0,this.reAlertErrors=!0,setTimeout(()=>{this.reAlertErrors=!1},100))},marketoSubmit(){this.createDataLayerObject("formsDataEvent");const e=window.MktoForms2.allForms()[0];e.addHiddenFields(this.form),window.grecaptcha&&e.addHiddenFields({lastReCAPTCHAUserFingerprint:window.grecaptcha.getResponse(),lastRecaptchaEnabledFormID:this.formId}),e.onSuccess(()=>(this.submitting=!1,this.submitted=!0,this.attachEmail(),!1)),e.onSubmit(()=>{this.submitting=!0}),e.submit()},axiosSubmit(){this.createDataLayerObject("formsDataEvent"),this.submitting=!0;let e="";window.grecaptcha&&(e=window.grecaptcha.getResponse());const r=this.getHiddenFields();axios.post(this.submitUrl,{...this.form,...r,formType:this.formData.content?this.formData.content.formType:"","g-recaptcha-response":e}).then(()=>(this.submitting=!1,this.submitted=!0,this.attachEmail(),!1)).catch(()=>{})},attachEmail(){this.formData.fields.forEach(e=>{e.type==="email"&&!this.emailFieldName&&(this.emailFieldName=e.name)}),this.emailFieldName&&typeof exponea<"u"&&exponea.identify({email_id:this.form[this.emailFieldName]},null,null,null,!0)},onRecaptchaVerify(){window.grecaptcha&&typeof window.grecaptcha.getResponse=="function"&&window.grecaptcha.getResponse()!==""?this.recaptchaVerified=!0:this.recaptchaVerified=!1},checkConditionalFields(){Object.keys(this.conditionalFields).forEach(e=>{const r=this.formData.fields.find(n=>n.name===e);let t=!0;Object.keys(r.conditional).forEach(n=>{const a=r.conditional[n];Array.isArray(a)?a.indexOf(this.form[n])===-1&&(t=!1):this.form[n]!==a&&(t=!1),t?this.conditionalFields[e]||(this.conditionalFields[e]=!0,this.$refs[e]&&this.$refs[e][0].manualValidate()):(this.manageErrorStatus(e,[]),this.conditionalFields[e]=!1)})})},conditionalElementClass(e){return this.conditionalFields[e]===!0||typeof this.conditionalFields[e]>"u"?"":"d-none"}}},_hoisted_1$B={class:"vs-form","data-test":"vs-form"},_hoisted_2$q=vue.createElementVNode("form",{class:"d-none"},null,-1),_hoisted_3$j={class:"vs-form__main-heading vs-heading vs-heading--heading-l float-none","data-test":"vs-form__main-heading"},_hoisted_4$g={key:0},_hoisted_5$c={"aria-live":"assertive"},_hoisted_6$9={key:0},_hoisted_7$8=["innerHTML"],_hoisted_8$5={key:2};function _sfc_render$H(e,r,t,n,a,o){const i=vue.resolveComponent("VsInput"),l=vue.resolveComponent("VsSelect"),c=vue.resolveComponent("VsCheckbox"),d=vue.resolveComponent("VsTextarea"),f=vue.resolveComponent("BFormGroup"),p=vue.resolveComponent("VsRecaptcha"),v=vue.resolveComponent("VsButton"),m=vue.resolveComponent("VsWarning"),g=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$B,[_hoisted_2$q,a.submitted?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("form",{key:0,onSubmit:r[0]||(r[0]=vue.withModifiers((..._)=>o.preSubmit&&o.preSubmit(..._),["prevent"]))},[vue.createElementVNode("fieldset",null,[vue.createElementVNode("legend",_hoisted_3$j,vue.toDisplayString(o.getTranslatedContent("heading")),1),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.formData.fields,(_,S)=>(vue.openBlock(),vue.createBlock(f,{key:_.name,label:o.needsLabel(_)?o.getTranslatedLabel(_.name,S):"","label-for":o.needsLabel(_)?_.name:"",class:vue.normalizeClass(o.conditionalElementClass(_.name))},{default:vue.withCtx(()=>[!o.isUndefined(_.descriptor)&&_.element==="checkbox"?(vue.openBlock(),vue.createElementBlock("legend",_hoisted_4$g,vue.toDisplayString(o.getTranslatedLegend(_.name,S)),1)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:vue.normalizeClass(o.conditionalElementClass(_.name))},[_.element==="input"?(vue.openBlock(),vue.createBlock(i,{key:0,ref_for:!0,ref:_.name,onStatusUpdate:o.updateFieldData,"field-name":_.name,type:_.type,"validation-rules":_.validation||{},"validation-messages":o.getTranslatedValidation(_.name,S)||{},"generic-validation":o.getMessagingData("validation",t.language),invalid:a.errorFields.indexOf(_.name)>-1,"trigger-validate":a.triggerValidate,"hint-text":o.getTranslatedHint(_.name,S),placeholder:_.placeholder||"","re-alert-errors":a.reAlertErrors},null,8,["onStatusUpdate","field-name","type","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","hint-text","placeholder","re-alert-errors"])):vue.createCommentVNode("",!0),_.element==="select"?(vue.openBlock(),vue.createBlock(l,{key:1,options:o.getTranslatedOptions(_.name,S),ref_for:!0,ref:_.name,onStatusUpdate:o.updateFieldData,"field-name":_.name,"validation-rules":_.validation||{},"validation-messages":o.getTranslatedValidation(_.name,S)||{},"generic-validation":o.getMessagingData("validation",t.language),invalid:a.errorFields.indexOf(_.name)>-1,"trigger-validate":a.triggerValidate,"country-list-url":t.countryListUrl,countries:_.countries,"hint-text":o.getTranslatedHint(_.name,S),"re-alert-errors":a.reAlertErrors},null,8,["options","onStatusUpdate","field-name","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","country-list-url","countries","hint-text","re-alert-errors"])):vue.createCommentVNode("",!0),_.element==="checkbox"?(vue.openBlock(),vue.createBlock(c,{key:_.name,ref_for:!0,ref:_.name,name:_.name,value:_.value,label:o.getTranslatedLabel(_.name,S),onStatusUpdate:o.updateFieldData,"field-name":_.name,"validation-rules":_.validation||{},"validation-messages":o.getTranslatedValidation(_.name,S)||{},"generic-validation":o.getMessagingData("validation",t.language),invalid:a.errorFields.indexOf(_.name)>-1,"trigger-validate":a.triggerValidate,"optional-text":o.getMessagingData("optional",t.language),"hint-text":o.getTranslatedHint(_.name,S),"info-text":o.getTranslatedInfo(_.name,S),"re-alert-errors":a.reAlertErrors},null,8,["name","value","label","onStatusUpdate","field-name","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","optional-text","hint-text","info-text","re-alert-errors"])):vue.createCommentVNode("",!0),_.element==="textarea"?(vue.openBlock(),vue.createBlock(d,{key:3,ref_for:!0,ref:_.name,onStatusUpdate:o.updateFieldData,"field-name":_.name,"validation-rules":_.validation||{},"validation-messages":o.getTranslatedValidation(_.name,S)||{},"generic-validation":o.getMessagingData("validation",t.language),invalid:a.errorFields.indexOf(_.name)>-1,"trigger-validate":a.triggerValidate,"hint-text":o.getTranslatedHint(_.name,S),placeholder:_.placeholder||"","re-alert-errors":a.reAlertErrors,rows:_.rows||null},null,8,["onStatusUpdate","field-name","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","hint-text","placeholder","re-alert-errors","rows"])):vue.createCommentVNode("",!0)],2)]),_:2},1032,["label","label-for","class"]))),128))]),vue.renderSlot(e.$slots,"hidden-fields"),vue.createVNode(p,{onVerified:o.onRecaptchaVerify,"site-key":t.recaptchaKey,invalid:!a.recaptchaVerified&&a.showErrorMessage,language:t.language,"error-msg":o.getMessagingData("recaptchaError",t.language),class:"mt-300","textarea-label":t.recaptchaTextareaLabel,"re-alert-errors":a.reAlertErrors},null,8,["onVerified","site-key","invalid","language","error-msg","textarea-label","re-alert-errors"]),vue.createVNode(v,{variant:"primary",type:"submit",class:"vs-form__submit mt-300",onClick:o.preSubmit},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.getTranslatedContent("submit")),1)]),_:1},8,["onClick"])],32)),vue.createVNode(m,{class:"vs-form__no-js"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"no-js")]),_:3}),vue.createElementVNode("div",_hoisted_5$c,[a.submitting?(vue.openBlock(),vue.createElementBlock("p",_hoisted_6$9,[vue.renderSlot(e.$slots,"submitting")])):vue.createCommentVNode("",!0),a.submitted?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[o.getTranslatedContent("successHeading")?(vue.openBlock(),vue.createBlock(g,{key:0,level:"2","heading-style":"heading-l"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(o.getTranslatedContent("successHeading")),1)]),_:1})):vue.createCommentVNode("",!0),vue.createElementVNode("p",{class:"vs-form__content",innerHTML:o.getTranslatedContent("successContent")},null,8,_hoisted_7$8)],64)):vue.createCommentVNode("",!0),a.submitError?(vue.openBlock(),vue.createElementBlock("p",_hoisted_8$5,[vue.renderSlot(e.$slots,"submit-error")])):vue.createCommentVNode("",!0)])])}const Form=_export_sfc(_sfc_main$Q,[["render",_sfc_render$H]]),_sfc_main$P={name:"VsMegaNavTopMenu",status:"prototype",release:"0.1.0",components:{VsList},inject:["isStatic"]};function _sfc_render$G(e,r,t,n,a,o){const i=vue.resolveComponent("VsList");return vue.openBlock(),vue.createBlock(i,{unstyled:"",class:"vs-mega-nav-top-menu","data-test":"vs-mega-nav-top-menu",role:o.isStatic?"menu":null},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["role"])}const VsMegaNavTopMenu=_export_sfc(_sfc_main$P,[["render",_sfc_render$G]]),_sfc_main$O={name:"VsMegaNavMobileMenu",status:"prototype",release:"0.1.0",mixins:[dataLayerMixin],mounted(){this.emitter&&this.emitter.on("navAccordionClick",e=>{this.dataLayerSubmit(e)})},methods:{dataLayerSubmit(e){const r={target:{text:e}};this.createDataLayerObject("menuNavigationDataEvent",r,null)}}},_hoisted_1$A={class:"mega-nav-mobile-menu","data-test":"vs-mega-nav-mobile-menu"};function _sfc_render$F(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$A,[vue.renderSlot(e.$slots,"default")])}const VsMegaNavMobileMenu=_export_sfc(_sfc_main$O,[["render",_sfc_render$F]]),_sfc_main$N={name:"VsSiteSearch",status:"prototype",release:"0.0.1",components:{VsButton},props:{isShowing:{type:Boolean,default:!1}},emits:["toggleAction"],data(){return{showSearchForm:!0}},methods:{toggleAction(){this.showSearchForm=!this.showSearchForm,this.$emit("toggleAction",this.showSearchForm)}}},_hoisted_1$z={class:"visually-hidden-xxl-down"};function _sfc_render$E(e,r,t,n,a,o){const i=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createBlock(i,{"data-test":"vs-site-search",class:vue.normalizeClass(["vs-site-search",t.isShowing?"vs-site-search--active":""]),icon:"search",size:"md",animate:!1,onClick:o.toggleAction,id:"site-search-btn",rounded:!1},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$z,[vue.renderSlot(e.$slots,"default")])]),_:3},8,["class","onClick"])}const VsSiteSearch=_export_sfc(_sfc_main$N,[["render",_sfc_render$E]]),_sfc_main$M={name:"VsSiteSearchForm",status:"prototype",release:"0.0.1",components:{VsIcon,VsInput,VsButton,VsCol,VsRow,VsContainer},props:{isShowing:{type:Boolean,default:!1},labelText:{type:String,default:""},submitButtonText:{type:String,default:""},clearButtonText:{type:String,default:""},closeButtonText:{type:String,default:""}},emits:["toggleAction"],data(){return{searchTerm:"",showSearchForm:!0}},watch:{isShowing(e){e&&this.focusOnInput()}},methods:{focusOnInput(){this.$nextTick(()=>this.$refs.searchInput.$refs.input.focus())},tabFromClose(e){e.shiftKey||this.closeSearchForm()},updateVal(e){this.searchTerm=e.value},onSubmit(e){this.searchTerm===""&&e.preventDefault()},closeSearchForm(){this.$emit("toggleAction",this.showSearchForm)}}},_hoisted_1$y={key:0,class:"vs-site-search-form","data-test":"vs-site-search-form"},_hoisted_2$p={class:"cludo-input-form d-flex align-items-start",role:"search",id:"cludo-search-input"},_hoisted_3$i={class:"d-flex flex-column flex-grow-1 position-relative"},_hoisted_4$f={for:"site-search",class:"vs-site-search-form__label"},_hoisted_5$b={class:"visually-hidden"};function _sfc_render$D(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsInput"),c=vue.resolveComponent("VsButton"),d=vue.resolveComponent("VsCol"),f=vue.resolveComponent("VsRow"),p=vue.resolveComponent("VsContainer");return a.showSearchForm?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$y,[vue.createVNode(p,{fluid:"lg"},{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(d,{cols:"12"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$p,[vue.createElementVNode("div",_hoisted_3$i,[vue.createElementVNode("label",_hoisted_4$f,[vue.createElementVNode("span",_hoisted_5$b,vue.toDisplayString(t.labelText),1),vue.createVNode(i,{name:"search",size:"xs"})]),vue.createVNode(l,{class:"vs-site-search-form__input cludo-input-form__input",ref:"searchInput",name:"searchrequest",type:"search","field-name":"site-search",placeholder:t.labelText,"clear-button-text":t.clearButtonText,"auto-complete":!1,onUpdated:o.updateVal},null,8,["placeholder","clear-button-text","onUpdated"])]),vue.createVNode(c,{type:"submit",class:"vs-site-search-form__search-button cludo-input-form__search-button",variant:"primary",size:"lg",rounded:!1,onClick:o.closeSearchForm},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.submitButtonText),1)]),_:1},8,["onClick"])])]),_:1})]),_:1})]),_:1}),vue.createVNode(c,{class:"vs-site-search-form__close-button d-none d-lg-block",variant:"transparent",icon:"close",size:"md","icon-only":"",onClick:o.closeSearchForm,onKeydown:vue.withKeys(o.tabFromClose,["tab"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.closeButtonText),1)]),_:1},8,["onClick","onKeydown"])])):vue.createCommentVNode("",!0)}const VsSiteSearchForm=_export_sfc(_sfc_main$M,[["render",_sfc_render$D]]),clickOutside={mounted(e,r){e.clickOutsideEvent=t=>{e===t.target||e.contains(t.target)||r.value(t)},document.body.addEventListener("click",e.clickOutsideEvent)},unmounted(e){document.body.removeEventListener("click",e.clickOutsideEvent)}},_sfc_main$L={name:"VsMegaNav",status:"prototype",release:"0.1.0",components:{VsCol,VsRow,VsContainer,VsSvgLink,VsMegaNavTopMenu,VsMegaNavMobileMenu,VsSiteSearch,VsSiteSearchForm,VsButton},directives:{clickOutside},mixins:[dataLayerMixin],provide(){return{isStatic:this.isStatic}},props:{href:{type:String,required:!0},menuToggleAltText:{type:String,required:!0},logoAltText:{type:String,default:"VisitScotland Home"},searchButtonText:{type:String,required:!0},searchLabelText:{type:String,default:"What are you looking for?"},searchClearButtonText:{type:String,default:"Clear form"},searchCloseButtonText:{type:String,default:"Close search form"},noSearch:{type:Boolean,default:!1},isStatic:{type:Boolean,default:!1}},data(){return{isOpen:!1,showSearch:!1,tokens:designTokens}},mounted(){this.addTabClose()},methods:{menuToggle(){this.isOpen=!this.isOpen},toggleSearch(){this.showSearch=!this.showSearch},closeMenu(e){const r=document.getElementsByClassName("vs-mega-nav__menu-mobile")[0];this.isOpen&&!r.contains(e.target)&&(this.isOpen=!1)},addTabClose(){document.body.addEventListener("focusin",e=>{this.isOpen&&(e.target.closest("#vs-mega-nav__menu-mobile")||(this.isOpen=!1))})}}},_hoisted_1$x={class:"vs-mega-nav bg-white","aria-label":"main nav","data-test":"vs-mega-nav",id:"main-nav"},_hoisted_2$o={class:"vs-mega-nav__menu-mobile d-lg-none",id:"vs-mega-nav__menu-mobile","data-test":"vs-mega-nav-mobile-container"};function _sfc_render$C(e,r,t,n,a,o){const i=vue.resolveComponent("VsSvgLink"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsMegaNavTopMenu"),d=vue.resolveComponent("VsSiteSearch"),f=vue.resolveComponent("VsButton"),p=vue.resolveComponent("VsMegaNavMobileMenu"),v=vue.resolveComponent("VsRow"),m=vue.resolveComponent("VsContainer"),g=vue.resolveComponent("VsSiteSearchForm"),_=vue.resolveDirective("click-outside");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createElementVNode("nav",_hoisted_1$x,[vue.createVNode(m,{fluid:"lg",class:"h-100"},{default:vue.withCtx(()=>[vue.createVNode(v,{class:"align-items-center h-100 vs-mega-nav__main-row"},{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"8",md:"4",lg:"3"},{default:vue.withCtx(()=>[vue.createElementVNode("div",null,[vue.createVNode(i,{class:"vs-mega-nav__logo","data-test":"vs-mega-nav__logo","link-alt-text":t.logoAltText,href:t.href,"svg-fill":a.tokens["vs-color-background-brand"],"svg-path":"visitscotland-logo","data-layer-value":"homePageLogoClickDataEvent"},null,8,["link-alt-text","href","svg-fill"])])]),_:1}),vue.createVNode(l,{cols:"4",md:"6",lg:t.noSearch?9:7,class:"vs-mega-nav__menu d-none d-lg-block"},{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"mega-nav-top-menu-items")]),_:3})]),_:3},8,["lg"]),vue.createVNode(l,{cols:"4",md:"8",lg:"2",class:"justify-content-end align-items-center position-static d-flex h-100"},{default:vue.withCtx(()=>[t.noSearch?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(d,{key:0,onToggleAction:o.toggleSearch,"is-showing":a.showSearch},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.searchButtonText),1)]),_:1},8,["onToggleAction","is-showing"])),vue.createElementVNode("div",_hoisted_2$o,[vue.createVNode(f,{class:"vs-mega-nav__mobile-menu-toggle p-0","icon-only":"",icon:a.isOpen?"close":"bars-mobile-menu",variant:"transparent",onClick:r[0]||(r[0]=S=>o.menuToggle()),ref:"toggleButton",rounded:!1,"aria-haspopup":"true"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.menuToggleAltText),1)]),_:1},8,["icon"]),a.isOpen?vue.withDirectives((vue.openBlock(),vue.createBlock(p,{key:0},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"mega-nav-accordion-items")]),_:3})),[[_,o.closeMenu]]):vue.createCommentVNode("",!0)])]),_:3})]),_:3})]),_:3})]),vue.withDirectives(vue.createVNode(g,{onToggleAction:o.toggleSearch,"is-showing":a.showSearch,"label-text":t.searchLabelText,"submit-button-text":t.searchButtonText,"clear-button-text":t.searchClearButtonText,"close-button-text":t.searchCloseButtonText},null,8,["onToggleAction","is-showing","label-text","submit-button-text","clear-button-text","close-button-text"]),[[vue.vShow,a.showSearch]])])}const MegaNav=_export_sfc(_sfc_main$L,[["render",_sfc_render$C]]),_sfc_main$K={name:"VsMegaNavDropdown",status:"prototype",release:"0.1.0",components:{BDropdown:bootstrapVueNext.BDropdown,VsCol,VsContainer,VsRow,VsButton},mixins:[dataLayerMixin],props:{menuToggleAltText:{type:String,required:!0}},emits:["menuToggled"],mounted(){this.emitter&&(this.emitter.on("bv::dropdown::show",()=>{this.$emit("menuToggled")}),this.emitter.on("bv::dropdown::hide",()=>{this.$emit("menuToggled")})),window.addEventListener("resize",this.closeMenu)},beforeUnmount(){window.removeEventListener("resize",this.closeMenu)},methods:{closeMenu(){this.$refs.dropdown.hide()},tabFromClose(e){e.shiftKey||this.closeMenu()},dataLayerSubmit(){if(this.$slots["button-content"]()[1]&&this.$slots["button-content"]()[1].children[0]){const r={target:{text:this.$slots["button-content"]()[1].children[0].children}};this.createDataLayerObject("menuNavigationDataEvent",r,null)}}}},_hoisted_1$w={class:"vs-mega-nav-dropdown","data-test":"vs-mega-nav-dropdown"},_hoisted_2$n={role:"menuitem"},_hoisted_3$h={class:"dropdown-menu dropdown-menu--fallback overflow-auto",role:"menu"},_hoisted_4$e={role:"menuitem"};function _sfc_render$B(e,r,t,n,a,o){const i=vue.resolveComponent("VsButton"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsContainer"),f=vue.resolveComponent("BDropdown");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$w,[vue.createVNode(f,{variant:"transparent",ref:"dropdown",onShow:r[0]||(r[0]=p=>o.dataLayerSubmit(p))},{"button-content":vue.withCtx(()=>[vue.renderSlot(e.$slots,"button-content")]),default:vue.withCtx(()=>[vue.createElementVNode("li",_hoisted_2$n,[vue.createVNode(d,{fluid:"lg",class:"px-0 px-lg-075"},{default:vue.withCtx(()=>[vue.createVNode(c,{class:"g-0"},{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",class:"position-relative"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"cta-link"),vue.renderSlot(e.$slots,"dropdown-content"),vue.createVNode(i,{class:"vs-mega-nav-dropdown__close-btn d-none d-lg-block position-absolute",icon:"close","icon-only":"",size:"sm",variant:"transparent",onClick:o.closeMenu,onKeydown:vue.withKeys(o.tabFromClose,["tab"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.menuToggleAltText),1)]),_:1},8,["onClick","onKeydown"])]),_:3})]),_:3})]),_:3})])]),_:3},512),vue.createElementVNode("ul",_hoisted_3$h,[vue.createElementVNode("li",_hoisted_4$e,[vue.createVNode(d,{fluid:"lg",class:"px-0 px-lg-075"},{default:vue.withCtx(()=>[vue.createVNode(c,{class:"g-0"},{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",class:"position-relative"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"cta-link"),vue.renderSlot(e.$slots,"dropdown-content"),vue.createVNode(i,{class:"vs-mega-nav-dropdown__close-btn d-none d-lg-block position-absolute",icon:"close","icon-only":"",size:"sm",variant:"transparent",onClick:o.closeMenu},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.menuToggleAltText),1)]),_:1},8,["onClick"])]),_:3})]),_:3})]),_:3})])])])}const VsMegaNavDropdown=_export_sfc(_sfc_main$K,[["render",_sfc_render$B]]),_sfc_main$J={name:"VsMegaNavDropdownContainer",status:"prototype",release:"0.1.0",components:{VsMegaNavDropdown,VsLink,LazyHydrationWrapper:LazyHydrationWrapper$1},props:{href:{type:String,default:""},ctaText:{type:String,default:""},align:{type:String,default:"top",validator:e=>e.match(/(left|bottom|top)/)}},computed:{hasFeaturedItem(){return this.$slots["nav-featured-item"]&&this.$slots["nav-featured-item"]()},hasFeaturedItemLeft(){return this.$slots["nav-featured-item-left"]&&this.$slots["nav-featured-item-left"]()},hasFeaturedEvent(){return this.$slots["nav-featured-event"]&&this.$slots["nav-featured-event"]()},alignmentClass(){return this.align==="bottom"?"vs-mega-nav-dropdown-container__featured--bottom":""}}},_hoisted_1$v={class:"vs-mega-nav-dropdown-container","data-test":"vs-mega-nav-dropdown-container",ref:"menuToggle"},_hoisted_2$m=vue.createElementVNode("hr",{class:"vs-mega-nav-dropdown-container__divider"},null,-1),_hoisted_3$g={class:"vs-mega-nav-dropdown-container__columns-wrapper"},_hoisted_4$d={key:2,class:"vs-mega-nav-dropdown-container__featured-event","data-test":"vs-mega-nav-dropdown-container__featured-event"};function _sfc_render$A(e,r,t,n,a,o){const i=vue.resolveComponent("VsLink"),l=vue.resolveComponent("VsMegaNavDropdown"),c=vue.resolveComponent("LazyHydrationWrapper");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$v,[vue.createVNode(c,{"on-interaction":["focus","click"]},{default:vue.withCtx(()=>[vue.createVNode(l,{"menu-toggle-alt-text":"Toggle Menu"},{"button-content":vue.withCtx(()=>[vue.renderSlot(e.$slots,"button-content")]),"cta-link":vue.withCtx(()=>[t.href&&t.ctaText?(vue.openBlock(),vue.createBlock(i,{key:0,href:t.href,"data-test":"vs-mega-nav-dropdown-container__cta-link",class:"vs-mega-nav-dropdown-container__cta-link"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.ctaText),1)]),_:1},8,["href"])):vue.createCommentVNode("",!0),_hoisted_2$m]),"dropdown-content":vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$g,[vue.renderSlot(e.$slots,"dropdown-content"),o.hasFeaturedItemLeft?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["vs-mega-nav-dropdown-container__featured vs-mega-nav-dropdown-container__featured--left",o.alignmentClass]),"data-test":"vs-mega-nav-dropdown-container__featured"},[vue.renderSlot(e.$slots,"nav-featured-item-left")],2)):vue.createCommentVNode("",!0),o.hasFeaturedItem?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["vs-mega-nav-dropdown-container__featured",o.alignmentClass]),"data-test":"vs-mega-nav-dropdown-container__featured"},[vue.renderSlot(e.$slots,"nav-featured-item")],2)):vue.createCommentVNode("",!0),o.hasFeaturedEvent?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$d,[vue.renderSlot(e.$slots,"nav-featured-event")])):vue.createCommentVNode("",!0)])]),_:3})]),_:3})],512)}const MegaNavDropdownContainer=_export_sfc(_sfc_main$J,[["render",_sfc_render$A]]),_sfc_main$I={name:"VsMegaNavList",status:"prototype",release:"0.1.0",components:{VsList,VsHeading},props:{listHeading:{type:String,default:""}},computed:{listHeadingId(){return this.listHeading?`vsMeganav${this.listHeading.replace(/\W/g,"")}`:""}}},_hoisted_1$u=["aria-label"];function _sfc_render$z(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsList");return vue.openBlock(),vue.createElementBlock("nav",{class:"vs-mega-nav-list","data-test":"vs-mega-nav-list","aria-label":o.listHeadingId},[t.listHeading?(vue.openBlock(),vue.createBlock(i,{key:0,class:"vs-mega-nav-list__heading",id:o.listHeadingId,level:"2","heading-style":"heading-xxs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.listHeading),1)]),_:1},8,["id"])):vue.createCommentVNode("",!0),vue.createVNode(l,{class:"vs-mega-nav-list__list",role:"menu"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"nav-heading-cta-link"),vue.renderSlot(e.$slots,"nav-list-items")]),_:3})],8,_hoisted_1$u)}const MegaNavList=_export_sfc(_sfc_main$I,[["render",_sfc_render$z]]),_sfc_main$H={name:"VsMegaNavListItem",status:"prototype",release:"0.1.0",components:{VsLink},mixins:[dataLayerMixin],props:{href:{type:String,default:"#"},subheadingLink:{type:Boolean,default:!1}},computed:{navItemClasses(){return{"vs-mega-nav-list-item__heading":this.href==="#","vs-mega-nav-list-item__link":this.href!=="#","vs-mega-nav-list-item__subheading-link":this.subheadingLink}}}};function _sfc_render$y(e,r,t,n,a,o){const i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",{class:vue.normalizeClass(["vs-mega-nav-list-item",o.navItemClasses]),"data-test":"vs-mega-nav-list-item",role:"presentation"},[vue.createVNode(i,{href:t.href,role:"menuitem","data-layer-value":"menuNavigationDataEvent"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["href"])],2)}const MegaNavListItem=_export_sfc(_sfc_main$H,[["render",_sfc_render$y]]),_sfc_main$G={name:"VsMegaNavAccordionItem",status:"prototype",release:"0.1.0",components:{VsAccordionItem,VsLink},props:{controlId:{type:String,required:!0},title:{type:String,required:!0},level:{type:String,required:!0,validator:e=>e.match(/(1|2)/)},ctaLink:{type:String,default:""},ctaText:{type:String,default:""}},computed:{getUniqueId(){let e=this.title.toLowerCase();return e=e.replace(/\s+/g,"-"),`vs-mega-nav-${e}`},accordionItemClasses(){return[`vs-mega-nav-accordion-item--level-${this.level}`]}}};function _sfc_render$x(e,r,t,n,a,o){const i=vue.resolveComponent("VsLink"),l=vue.resolveComponent("VsAccordionItem");return vue.openBlock(),vue.createBlock(l,{class:vue.normalizeClass(["vs-mega-nav-accordion-item",o.accordionItemClasses]),"data-test":"vs-mega-nav-accordion-item","data-unique-id":o.getUniqueId,"control-id":`vs-mega-nav-accordion-item-${o.getUniqueId}-${t.controlId}`},{title:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),default:vue.withCtx(()=>[t.ctaLink&&t.ctaText?(vue.openBlock(),vue.createBlock(i,{key:0,class:"vs-mega-nav-accordion-item__cta-link","data-test":"vs-mega-nav-accordion-item__cta-link",href:t.ctaLink},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.ctaText),1)]),_:1},8,["href"])):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"default")]),_:3},8,["class","data-unique-id","control-id"])}const MegaNavAccordionItem=_export_sfc(_sfc_main$G,[["render",_sfc_render$x]]),_sfc_main$F={name:"VsMegaNavFeaturedItem",status:"prototype",release:"0.1.0",components:{VsStretchedLinkCard},props:{link:{type:String,required:!0},imgUrl:{type:String,required:!0},imgAlt:{type:String,default:""}}};function _sfc_render$w(e,r,t,n,a,o){const i=vue.resolveComponent("VsStretchedLinkCard");return vue.openBlock(),vue.createBlock(i,{link:t.link,type:"internal","img-src":t.imgUrl,"img-alt":t.imgAlt,class:"vs-mega-nav-featured-item","data-test":"vs-mega-nav-featured-item","heading-level":"2","heading-style":"heading-xxs"},{"stretched-card-header":vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-featured-item-header")]),"stretched-card-content":vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-featured-item-content")]),"stretched-card-link":vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-featured-item-link")]),_:3},8,["link","img-src","img-alt"])}const MegaNavFeaturedItem=_export_sfc(_sfc_main$F,[["render",_sfc_render$w]]),_sfc_main$E={name:"VsMegaNavFeaturedEvent",status:"prototype",release:"0.1.0",components:{VsStretchedLinkCard},props:{sourceUrl:{type:String,default:""}},data(){return{featuredEvent:null}},mounted(){this.sourceUrl&&this.retrieveFeaturedEvent()},methods:{retrieveFeaturedEvent(){axios.get(this.sourceUrl).then(e=>{e.data.data.products&&e.data.data.products.length&&([this.featuredEvent]=e.data.data.products)}).catch(()=>{this.featuredEvent=null})}}},_hoisted_1$t={key:0,class:"vs-mega-nav-featured-event__date-range"},_hoisted_2$l={class:"vs-mega-nav-featured-event__date-detail"},_hoisted_3$f={class:"vs-mega-nav-featured-event__title"},_hoisted_4$c={key:1,class:"vs-mega-nav-featured-event__location"};function _sfc_render$v(e,r,t,n,a,o){const i=vue.resolveComponent("VsStretchedLinkCard");return a.featuredEvent?(vue.openBlock(),vue.createBlock(i,{key:0,link:a.featuredEvent.productLink.link,type:"internal","img-src":a.featuredEvent.images[0].mediaUrl,"img-alt":a.featuredEvent.name,class:"vs-mega-nav-featured-event","data-test":"vs-mega-nav-featured-event","data-chromatic":"ignore"},{"stretched-card-content":vue.withCtx(()=>[a.featuredEvent&&a.featuredEvent.opening?(vue.openBlock(),vue.createElementBlock("p",_hoisted_1$t,[vue.createTextVNode(vue.toDisplayString(a.featuredEvent.opening.period.label)+"  ",1),vue.createElementVNode("span",_hoisted_2$l,vue.toDisplayString(a.featuredEvent.opening.period.startDay),1)])):vue.createCommentVNode("",!0),vue.createElementVNode("p",_hoisted_3$f,vue.toDisplayString(a.featuredEvent.name),1),a.featuredEvent&&a.featuredEvent.address?(vue.openBlock(),vue.createElementBlock("p",_hoisted_4$c,vue.toDisplayString(a.featuredEvent.address.shortAddress),1)):vue.createCommentVNode("",!0)]),"stretched-card-link":vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.featuredEvent.productLink.label),1)]),_:1},8,["link","img-src","img-alt"])):vue.createCommentVNode("",!0)}const MegaNavFeaturedEvent=_export_sfc(_sfc_main$E,[["render",_sfc_render$v]]),_sfc_main$D={name:"VsMegaNavStaticLink",status:"prototype",release:"0.1.0",components:{VsLink},mixins:[dataLayerMixin],props:{href:{type:String,default:"#"},isFullWidth:{type:Boolean,default:!1}}};function _sfc_render$u(e,r,t,n,a,o){const i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",{class:vue.normalizeClass(["vs-mega-nav-static-link",t.isFullWidth?"vs-mega-nav-static-link--full-width":""]),"data-test":"vs-mega-nav-static-link",role:"presentation"},[vue.createVNode(i,{class:"vs-mega-nav-static-link__inner",href:t.href,role:"menuitem","data-layer-value":"menuNavigationDataEvent"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["href"])],2)}const MegaNavStaticLink=_export_sfc(_sfc_main$D,[["render",_sfc_render$u]]),_sfc_main$C={name:"VsMegalinks",status:"prototype",release:"0.0.1",components:{VsContainer,VsRow,VsCol,VsHeading,VsButton,VsRichTextWrapper},provide(){return{noJsMessage:this.noJsMessage,noCookiesMessage:this.noCookiesMessage,cookieLinkText:this.cookieLinkText,theme:this.theme}},props:{title:{type:String,required:!1,default:null},buttonLink:{type:String,required:!1,default:null},variant:{type:String,required:!1,default:null,validator:e=>e.match(/(multi-image|single-image|link-list)/)},theme:{type:String,default:"light",validator:e=>e.match(/(light|grey)/)},noJsMessage:{type:String,default:""},noCookiesMessage:{type:String,default:""},cookieLinkText:{type:String,default:""}},computed:{megalinksClasses(){return[this.variant?`vs-megalinks--${this.variant}`:"",`vs-megalinks--${this.theme}`]}}},_hoisted_1$s={key:0,class:"vs-megalinks__intro","data-test":"vs-megalinks__intro"},_hoisted_2$k={class:"row vs-megalinks__links-wrapper"},_hoisted_3$e={class:"vs-megalinks__button","data-test":"vs-megalinks__button"};function _sfc_render$t(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsRichTextWrapper"),c=vue.resolveComponent("VsCol"),d=vue.resolveComponent("VsRow"),f=vue.resolveComponent("VsButton"),p=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("section",{class:vue.normalizeClass(["vs-megalinks",o.megalinksClasses]),"data-test":"megalinks"},[vue.createVNode(p,{fluid:"lg"},{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,{cols:"12",md:"8","offset-md":"2"},{default:vue.withCtx(()=>[t.title?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$s,[vue.createVNode(i,{level:"2","heading-style":"heading-xl",class:"vs-megalinks__heading","data-test":"vs-megalinks__heading"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),_:1}),e.$slots["vs-megalinks-intro"]&&e.$slots["vs-megalinks-intro"]()?(vue.openBlock(),vue.createBlock(l,{key:0,class:"vs-megalinks__intro-content",variant:"lead","data-test":"vs-megalinks__intro-content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-megalinks-intro")]),_:3})):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)]),_:3})]),_:3}),vue.createElementVNode("div",_hoisted_2$k,[vue.renderSlot(e.$slots,"default")]),t.buttonLink&&t.variant!=="single-image"?(vue.openBlock(),vue.createBlock(d,{key:0},{default:vue.withCtx(()=>[vue.createVNode(c,{cols:"12"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$e,[vue.createVNode(f,{href:t.buttonLink},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-megalinks-button")]),_:3},8,["href"])])]),_:3})]),_:3})):vue.createCommentVNode("",!0)]),_:3})],2)}const Megalinks=_export_sfc(_sfc_main$C,[["render",_sfc_render$t]]),_sfc_main$B={name:"VsMegalinkLinkList",status:"prototype",release:"0.0.1",components:{VsStretchedLinkCard,VsRichTextWrapper,VsStretchedLinkPanels},props:{imgSrc:{required:!0,type:String},imgAlt:{required:!1,type:String,default:""},linkType:{type:String,required:!0,validator:e=>e.match(/(default|external|internal|download|video)/)},theme:{type:String,default:"light",validator:e=>e.match(/(light|grey)/)},linkUrl:{type:String,required:!0},days:{type:String,default:""},daysLabel:{type:String,default:"days"},transport:{type:String,default:""},transportName:{type:String,default:""},videoId:{type:String,default:""},videoBtnText:{type:String,default:"Play Video"},errorMessage:{type:String,default:""}}},_hoisted_1$r={class:"vs-megalink-link-list__title","data-test":"megalink-link-list__title"};function _sfc_render$s(e,r,t,n,a,o){const i=vue.resolveComponent("VsStretchedLinkPanels"),l=vue.resolveComponent("VsRichTextWrapper"),c=vue.resolveComponent("VsStretchedLinkCard");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-megalink-link-list",`vs-megalink-link-list--${t.theme}`])},[vue.createVNode(c,{link:t.linkUrl,type:t.linkType,class:"vs-megalink-link-list__wrapper","img-src":t.imgSrc,"img-alt":t.imgAlt,theme:t.theme,"video-id":t.videoId,"video-btn-text":t.videoBtnText,"error-message":t.errorMessage,"error-type":"full"},vue.createSlots({"stretched-card-header":vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$r,[vue.renderSlot(e.$slots,"vs-link-list-heading")])]),"stretched-card-content":vue.withCtx(()=>[vue.createVNode(l,{class:"vs-megalink-link-list__content","data-test":"megalink-link-list__content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-link-list-content")]),_:3})]),_:2},[t.days&&t.transport?{name:"stretched-card-panels",fn:vue.withCtx(()=>[vue.createVNode(i,{days:t.days,transport:t.transport,"transport-name":t.transportName,"days-label":t.daysLabel,"data-test":"vs-itinerary-panels"},null,8,["days","transport","transport-name","days-label"])]),key:"0"}:void 0]),1032,["link","type","img-src","img-alt","theme","video-id","video-btn-text","error-message"])],2)}const MegalinkLinkList=_export_sfc(_sfc_main$B,[["render",_sfc_render$s]]),_sfc_main$A={name:"VsMegalinkMultiImage",status:"prototype",release:"0.0.1",components:{VsStretchedLinkCard,VsRichTextWrapper,VsStretchedLinkPanels},props:{featured:{required:!1,type:Boolean,default:!1},lastFeatured:{required:!1,type:Boolean,default:!1},imgSrc:{required:!0,type:String},imgAlt:{required:!1,type:String,default:""},linkType:{type:String,required:!0,validator:e=>e.match(/(default|external|internal|download|video)/)},linkUrl:{type:String,required:!0},theme:{type:String,default:"light",validator:e=>e.match(/(light|grey)/)},days:{type:String,default:""},daysLabel:{type:String,default:"days"},transport:{type:String,default:""},transportName:{type:String,default:""},videoId:{type:String,default:""},videoBtnText:{type:String,default:"Play Video"},errorMessage:{type:String,default:""}},computed:{multiImageClasses(){return[`vs-megalink-multi-image-card--${this.theme}`,{"vs-megalink-multi-image-card--featured":this.featured,"vs-megalink-multi-image-card--featured-last":this.lastFeatured}]}}},_hoisted_1$q={class:"vs-megalink-multi-image"},_hoisted_2$j={class:"vs-megalink-multi-image-card__title","data-test":"megalink-multi-image-card__title"};function _sfc_render$r(e,r,t,n,a,o){const i=vue.resolveComponent("VsStretchedLinkPanels"),l=vue.resolveComponent("VsRichTextWrapper"),c=vue.resolveComponent("VsStretchedLinkCard");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$q,[vue.createVNode(c,{link:t.linkUrl,type:t.linkType,class:vue.normalizeClass(["vs-megalink-multi-image-card p-050",o.multiImageClasses]),"heading-style":t.featured?"heading-m":"heading-xs","img-src":t.imgSrc,"img-alt":t.imgAlt,"data-test":t.featured?"megalink-multi-image-featured":"megalink-multi-image-card",theme:t.theme,"video-id":t.videoId,"video-btn-text":t.videoBtnText,"error-message":t.errorMessage,"warning-size":t.featured?"normal":"small"},vue.createSlots({"stretched-card-header":vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$j,[vue.renderSlot(e.$slots,"vs-multi-image-heading")])]),"stretched-card-content":vue.withCtx(()=>[vue.createVNode(l,{class:"vs-megalink-multi-image-card__content","data-test":"megalink-multi-image-card__content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-multi-image-content")]),_:3})]),_:2},[t.days&&t.transport?{name:"stretched-card-panels",fn:vue.withCtx(()=>[vue.createVNode(i,{days:t.days,transport:t.transport,"transport-name":t.transportName,"days-label":t.daysLabel,"data-test":"vs-itinerary-panels"},null,8,["days","transport","transport-name","days-label"])]),key:"0"}:void 0]),1032,["link","type","class","heading-style","img-src","img-alt","data-test","theme","video-id","video-btn-text","error-message","warning-size"])])}const MegalinkMultiImage=_export_sfc(_sfc_main$A,[["render",_sfc_render$r]]),_sfc_main$z={name:"VsMegalinkSingleImage",status:"prototype",release:"0.0.1",components:{VsHeading,VsRichTextWrapper,VsButton,VsRow,VsCol,VsLinkList},props:{alternate:{type:Boolean,default:!1},title:{type:String,default:null},buttonLink:{type:String,default:""}},data(){return{negativeMargin:"200px",imageHeight:"400px"}},computed:{singleImageClasses(){return[this.alternate?"vs-megalink-single-image--alternate":""]},cssVars(){return{"--negative-margin":`-${this.negativeMargin}`,"--image-height":`${this.imageHeight}`}}},mounted(){const e=this.$el.querySelector(".vs-image-with-caption");if(e){const r=e.querySelector("img");r.addEventListener("load",()=>{const t=r.clientHeight/2.5/r.clientWidth;this.negativeMargin=`${t*100}%`,this.imageHeight=`${r.clientHeight}px`})}}},_hoisted_1$p={class:"vs-megalink-single-image__image-container"},_hoisted_2$i={class:"vs-megalink-single-image__content","data-test":"megalink-single-image__content"},_hoisted_3$d={class:"vs-megalink-single-image__button"};function _sfc_render$q(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsRichTextWrapper"),c=vue.resolveComponent("VsLinkList"),d=vue.resolveComponent("VsButton"),f=vue.resolveComponent("VsCol"),p=vue.resolveComponent("VsRow");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-megalink-single-image",o.singleImageClasses]),"data-test":"megalink-single-image",style:vue.normalizeStyle(o.cssVars)},[vue.createElementVNode("div",_hoisted_1$p,[vue.renderSlot(e.$slots,"vs-single-image")]),vue.createVNode(p,{class:"vs-megalink-single-image__text-container"},{default:vue.withCtx(()=>[vue.createVNode(f,{cols:"12",sm:"10",lg:"6",class:vue.normalizeClass(["offset-sm-1",t.alternate?"offset-lg-6":"offset-lg-0"])},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$i,[t.title?(vue.openBlock(),vue.createBlock(i,{key:0,level:"3","heading-style":"heading-m",class:"vs-megalink-single-image__title","data-test":"megalink-single-image__title"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(l,{variant:"lead"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-single-image-content")]),_:3}),vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-single-image-links")]),_:3}),vue.createElementVNode("div",_hoisted_3$d,[t.buttonLink?(vue.openBlock(),vue.createBlock(d,{key:0,href:t.buttonLink,variant:"secondary"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-single-image-button-text")]),_:3},8,["href"])):vue.createCommentVNode("",!0)])])]),_:3},8,["class"])]),_:3})],6)}const MegalinkSingleImage=_export_sfc(_sfc_main$z,[["render",_sfc_render$q]]),_sfc_main$y={name:"VsModal",status:"prototype",release:"0.0.1",components:{VsCol,VsRow,VsContainer,VsButton,BModal:bootstrapVueNext.BModal},props:{modalId:{type:String,required:!0},closeBtnText:{type:String,required:!0},isVideoModal:{type:Boolean,default:!1},autoMount:{type:Boolean,default:!1}},data(){return{show:!1,mounted:this.autoMount}},mounted(){this.mounted=!0,this.emitter&&(this.emitter.on("showModal",e=>this.showModal(e)),this.isVideoModal&&this.emitter.on("showModal",e=>{this.emitter.emit("video-controls",{action:"modal-opened",id:e})}))},methods:{hideModal(){this.emitter&&this.emitter.emit("video-controls",{action:"modal-closed",id:this.modalId}),this.show=!1},showModal(e){e===this.modalId&&(this.show=!0)}}};function _sfc_render$p(e,r,t,n,a,o){const i=vue.resolveComponent("VsButton"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsContainer"),f=vue.resolveComponent("BModal");return a.mounted?(vue.openBlock(),vue.createBlock(f,{key:0,"modal-class":"vs-modal","data-test":"vs-modal",ref:`modal-${t.modalId}`,id:t.modalId,size:"xl","hide-footer":"","hide-header":"",static:t.isVideoModal,modelValue:a.show,"onUpdate:modelValue":r[0]||(r[0]=p=>a.show=p),onHidden:o.hideModal},{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",lg:"1",class:"d-flex justify-content-end align-items-start order-lg-1"},{default:vue.withCtx(()=>[vue.createVNode(i,{class:"vs-modal__close-btn mb-125 mb-lg-0","data-test":"vs-modal__close-btn",variant:"transparent","icon-only":"",icon:"close",onClick:o.hideModal},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.closeBtnText),1)]),_:1},8,["onClick"])]),_:1}),vue.createVNode(l,{cols:"12",lg:"11"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3})]),_:3},8,["id","static","modelValue","onHidden"])):vue.createCommentVNode("",!0)}const Modal=_export_sfc(_sfc_main$y,[["render",_sfc_render$p]]),_sfc_main$x={name:"VsPageIntro",status:"prototype",release:"0.0.1",components:{VsHeading,VsRichTextWrapper,VsContainer,VsRow,VsCol},props:{background:{type:String,default:"light",validator:e=>e.match(/(light|grey)/)},heroIntro:{type:Boolean,default:!1},isItinerary:{type:Boolean,default:!1},fullscreenMobile:{type:Boolean,default:!1},hasToc:{type:Boolean,default:!1}},computed:{introClasses(){return[`vs-page-intro--${this.background}`,this.heroIntro?"vs-page-intro--hero":"",this.fullscreenMobile?"vs-page-intro__fullscreen-mobile-header":""]},contentColProps(){const e={};return this.isItinerary?(e.md="6",e.lg="5",e.xl="6",e["offset-lg"]="1"):this.heroIntro?(e.md="12",e.lg="7",e.xl="8",e["offset-lg"]="1"):this.hasToc?e.md="7":e.md="8",e}}},_hoisted_1$o={key:0,class:"vs-page-intro__fs-mobile-heading-wrapper","data-test":"vs-page-intro__mobile-breadcrumb"},_hoisted_2$h={class:"vs-page-intro__wrapper"},_hoisted_3$c={class:"vs-page-intro__share"},_hoisted_4$b={key:0,class:"list-inline"},_hoisted_5$a={key:0,class:"vs-page-intro__lower py-300","data-test":"vs-page-intro__lower"};function _sfc_render$o(e,r,t,n,a,o){const i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer"),d=vue.resolveComponent("VsHeading"),f=vue.resolveComponent("VsRichTextWrapper");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-page-intro",o.introClasses]),"data-test":"vs-page-intro"},[t.fullscreenMobile?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$o,[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(l,{class:vue.normalizeClass(t.fullscreenMobile?"d-none-md":"")},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"10",lg:t.heroIntro?"8":"","offset-lg":t.heroIntro?"1":""},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-page-intro__breadcrumb",t.heroIntro?"mt-lg-100":"mt-lg-200"])},[vue.renderSlot(e.$slots,"vs-intro-breadcrumb")],2)]),_:3},8,["lg","offset-lg"])]),_:3},8,["class"])]),_:3})])):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"vs-intro-hero"),vue.createElementVNode("div",_hoisted_2$h,[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(l,{class:vue.normalizeClass(t.fullscreenMobile?"d-none d-lg-flex":"")},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"10",lg:t.heroIntro?"8":"","offset-lg":t.heroIntro?"1":""},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-page-intro__breadcrumb",t.heroIntro?"mt-lg-100":"mt-lg-200"])},[vue.renderSlot(e.$slots,"vs-intro-breadcrumb")],2)]),_:3},8,["lg","offset-lg"])]),_:3},8,["class"]),vue.createElementVNode("div",_hoisted_3$c,[vue.renderSlot(e.$slots,"vs-share-button")]),vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"11",md:t.heroIntro?"11":"10",lg:t.heroIntro?"7":"10",xl:t.heroIntro?"8":"10","offset-lg":t.heroIntro?"1":"0",class:"mt-025 mt-sm-0"},{default:vue.withCtx(()=>[vue.createVNode(d,{level:"1","heading-style":"display-s",id:"main-heading"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-intro-heading")]),_:3}),vue.renderSlot(e.$slots,"vs-blog-data")]),_:3},8,["md","lg","xl","offset-lg"])]),_:3}),vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(i,vue.mergeProps({"data-test":"vs-page-intro__content",cols:"12"},o.contentColProps),{default:vue.withCtx(()=>[vue.createVNode(f,{variant:"lead"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-intro-content")]),_:3}),e.$slots["vs-intro-start-finish"]&&e.$slots["vs-intro-start-finish"]()?(vue.openBlock(),vue.createElementBlock("dl",_hoisted_4$b,[vue.renderSlot(e.$slots,"vs-intro-start-finish")])):vue.createCommentVNode("",!0)]),_:3},16),e.$slots["vs-intro-table-of-contents"]&&e.$slots["vs-intro-table-of-contents"]()?(vue.openBlock(),vue.createBlock(i,{key:0,cols:"12",md:"5"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-intro-table-of-contents")]),_:3})):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"vs-intro-summary-box")]),_:3})]),_:3}),e.$slots["vs-intro-lower"]&&e.$slots["vs-intro-lower"]()?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$a,[vue.renderSlot(e.$slots,"vs-intro-lower")])):vue.createCommentVNode("",!0)])],2)}const PageIntro=_export_sfc(_sfc_main$x,[["render",_sfc_render$o]]),_sfc_main$w={name:"VsPanel",status:"prototype",release:"0.0.1",components:{BCard:bootstrapVueNext.BCard}},_hoisted_1$n={class:"vs-panel__text"};function _sfc_render$n(e,r,t,n,a,o){const i=vue.resolveComponent("BCard");return vue.openBlock(),vue.createBlock(i,{class:vue.normalizeClass(["vs-panel",[e.$slots["vs-panel__title"]?"":"pt-400"]])},{header:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-panel-title")]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$n,[vue.renderSlot(e.$slots,"default")])]),_:3},8,["class"])}const Panel=_export_sfc(_sfc_main$w,[["render",_sfc_render$n]]);let VS$1;function setWindowObj(){typeof window<"u"?VS$1=typeof window.VS=="object"?window.VS:{}:VS$1={}}function getLabelText(e,r,t){setWindowObj();let n="";return Object.keys(VS$1).length>0&&(typeof t<"u"?n=VS$1.search_config.basic_config.search_module[t][e]:n=VS$1.search_config.basic_config.search_module[e]),n||r}function getProductName(e,r){setWindowObj();const t={};return Object.keys(VS$1).length>0&&Object.keys(VS$1.search_config.basic_config.productTypes).forEach(n=>{const a=VS$1.search_config.basic_config.productTypes[n];t[a.value]=a.text}),t[e]?t[e]:r}function getLocale(){let e=document.documentElement.lang.toLocaleLowerCase().slice(0,2)||"";return e==="en"&&(e=""),e}let VS;typeof window<"u"?VS=typeof window.VS=="object"?window.VS:{}:VS={};function getProductTypes(){if(Object.keys(VS).length<=0)return products;const e=VS.search_config.basic_config.productTypes,r=[];return Object.keys(e).forEach(n=>{r.push({key:e[n].value,text:e[n].text,value:e[n].value})}),r}async function getData(e){try{const{data:r}=await axios.get(e);return r}catch(r){console.error(`Axios error: ${r}`)}}var define_process_env_default={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.8",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-59948a58;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-de2eadd7;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"},controls={arrowUpKey:38,arrowDownKey:40,escKey:27,enterKey:13};function isFn(e){return typeof e=="function"}function isControlledProp(e,r){return e[r]!==void 0}function hasKeyCode(e,r){return e===r.keyCode}function getItemIndex(e,r,t){return e!==void 0?e:t.length?t.indexOf(r):-1}function hasOwnProperty(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function getNextNonDisabledIndex(e,r,t,n,a){var o=n(r);if(!o||!o.hasAttribute("disabled"))return r;if(e>0)for(var i=r+1;i<t;i+=1){var l=n(i),c=l.hasAttribute("disabled");if(!c)return i}else for(var d=r-1;d>=0;d-=1)if(!n(d).hasAttribute("disabled"))return d;return a?e>0?getNextNonDisabledIndex(1,0,t,n,!1):getNextNonDisabledIndex(-1,t-1,t,n,!1):-1}function scrollToElement(e,r,t){var n=r.clientHeight,a=r.scrollTop,o=e.offsetHeight,i=e.offsetTop;if(i<a)t===0?r.scrollTop=0:r.scrollTop=i;else{var l=i+o,c=a+n;l>c&&(r.scrollTop=l-n)}}function getProps(e){return Object.assign({},e?{modelValue:{default:null}}:{value:{default:null}},{items:{type:Array,required:!0},itemToString:{type:Function,default:function(r){return r?String(r):""}},stateReducer:{type:Function,default:function(r,t){return t.changes}},getItemId:{type:Function,default:function(t){return"v-"+this.idCounter+"-vue-combo-blocks-item-"+t}},menuId:{type:String,default:""},inputId:{type:String,default:""},labelId:{type:String,default:""},scrollIntoView:{type:Boolean,default:!0},circular:{type:Boolean,default:!0}})}function getInitialData(e,r){return{hovered:null,isOpen:!1,hoveredIndex:-1,selectedItem:e,inputValue:r(e)}}var computed={menuElement:function e(){return document.querySelector("#"+this.computedMenuId)},computedMenuId:function e(){return this.menuId||"v-"+this.idCounter+"-vue-combo-blocks-menu"},computedInputId:function e(){return this.inputId||"v-"+this.idCounter+"-vue-combo-blocks-input"},computedLabelId:function e(){return this.labelId||"v-"+this.idCounter+"-vue-combo-blocks-label"},selectedIndex:function e(){return this.items.indexOf(this.selectedItem)}},InputKeyDownArrowDown="InputKeyDownArrowDown",InputKeyDownArrowUp="InputKeyDownArrowUp",InputKeyDownTab="InputKeyDownTab",InputKeyUpEscape="InputKeyUpEscape",InputKeyUpEnter="InputKeyUpEnter",InputChange="InputChange",InputBlur="InputBlur",MenuMouseLeave="MenuMouseLeave",ItemMouseMove="ItemMouseMove",ItemClick="ItemClick",FunctionOpenMenu="FunctionOpenMenu",FunctionCloseMenu="FunctionCloseMenu",FunctionSelectItem="FunctionSelectItem",FunctionSetInputValue="FunctionSetInputValue",FunctionReset="FunctionReset",ControlledPropUpdatedSelectedItem="ControlledPropUpdatedSelectedItem",sct=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem,FunctionCloseMenu,FunctionOpenMenu,FunctionReset,FunctionSelectItem,FunctionSetInputValue,InputBlur,InputChange,InputKeyDownArrowDown,InputKeyDownArrowUp,InputKeyDownTab,InputKeyUpEnter,InputKeyUpEscape,ItemClick,ItemMouseMove,MenuMouseLeave}),inputPropsAndListeners={getInputProps:function e(){return{value:this.inputValue||"","aria-activedescendant":this.hovered?this.getItemId(this.hoveredIndex):"","aria-autocomplete":"list","aria-controls":this.computedMenuId,"aria-labelledby":this.computedLabelId,id:this.computedInputId,autocomplete:"off"}},getInputEventListeners:function e(r){r===void 0&&(r={});var t=r.blur,n=r.input,a=r.keydown,o=r.keyup;return{blur:isFn(t)?t:this.onInputBlur,input:isFn(n)?n:this.onInput,keydown:isFn(a)?a:this.onInputKeyDown,keyup:isFn(o)?o:this.onInputKeyUp}},onInputKeyDown:function e(r){r.key==="Enter"&&this.isOpen?r.preventDefault():hasKeyCode(controls.arrowDownKey,r)&&!this.isOpen?(this.setState({isOpen:!0},InputKeyDownArrowDown),this.moveSelection(r)):this.moveSelection(r)},onInputKeyUp:function e(r){var t=controls.enterKey,n=controls.escKey;if(this.isOpen)if(hasKeyCode(t,r)){if(this.hoveredIndex>=0){r.preventDefault();var a=this.getItemNodeFromIndex(this.hoveredIndex);if(a&&a.hasAttribute("disabled"))return;this.setState({inputValue:this.itemToString(this.hovered),selectedItem:this.hovered,hoveredIndex:-1,hovered:null,isOpen:!1},InputKeyUpEnter)}}else hasKeyCode(n,r)&&this.setState({hoveredIndex:-1,hovered:null,isOpen:!1},InputKeyUpEscape)},onInputBlur:function e(){this.setState({isOpen:!1,inputValue:this.itemToString(this.selectedItem),hovered:null,hoveredIndex:-1},InputBlur)},onInput:function e(r){var t=r.target?r.target.value:r;this.setState({inputValue:t,hovered:null,isOpen:!0},InputChange)}},itemPropsAndListeners={getItemEventListeners:function e(r){var t=this;r===void 0&&(r={});var n=r.index,a=r.disabled,o=r.item;o===void 0&&(o=void 0);var i=r.mousemove,l=r.mousedown,c=r.click;return a?{}:{mousemove:isFn(i)?i:function(){return t.onItemMouseMove(n,o)},mousedown:isFn(l)?l:this.onItemMouseDown,click:isFn(c)?c:function(){return t.onItemClick(o)}}},onItemMouseMove:function e(r,t){var n=getItemIndex(r,t,this.items);this.hoveredIndex!==n&&this.setState({hoveredIndex:n,hovered:t},ItemMouseMove)},onItemMouseDown:function e(r){r.preventDefault()},onItemClick:function e(r){this.setState({inputValue:this.itemToString(r),selectedItem:r,isOpen:!1,hoveredIndex:-1,hovered:null},ItemClick)},getItemProps:function e(r){r===void 0&&(r={});var t=r.index,n=r.disabled,a=r.item;a===void 0&&(a=void 0);var o=getItemIndex(t,a,this.items),i=this.getItemId(o);return{id:i,disabled:n?!0:void 0,role:"option","aria-selected":this.hoveredIndex===o||this.selectedItem===a?"true":"false"}}},menuPropsAndListeners={getMenuProps:function e(){return{id:this.computedMenuId,role:"listbox","aria-labelledby":this.computedLabelId}},getMenuEventListeners:function e(r){r===void 0&&(r={});var t=r.mouseleave,n=r.mousedown;return{mouseleave:isFn(t)?t:this.onMenuMouseLeave,mousedown:isFn(n)?n:this.onMenuMouseDown}},onMenuMouseLeave:function e(){this.setState({hoveredIndex:-1,hovered:null},MenuMouseLeave)},onMenuMouseDown:function e(r){r.preventDefault()}},methods=Object.assign({},inputPropsAndListeners,itemPropsAndListeners,menuPropsAndListeners,{getComboboxProps:function e(){return{role:"combobox","aria-haspopup":"listbox","aria-owns":this.computedMenuId,"aria-expanded":this.isOpen?"true":"false"}},getLabelProps:function e(){return{id:this.computedLabelId,for:this.computedInputId}},autocompleteText:function e(r){this.setInputValue(this.itemToString(r))},reset:function e(){this.setState({selectedItem:null,inputValue:""},FunctionReset)},select:function e(r){this.setState({inputValue:this.itemToString(r),selectedItem:r,isOpen:!1,hoveredIndex:-1,hovered:null},FunctionSelectItem)},setHoveredItem:function e(r,t,n){r&&r!==this.hovered&&this.$emit("hover",r,n),this.hovered=r,this.hoveredIndex=typeof t=="number"?t:-1},closeMenu:function e(){this.setState({isOpen:!1,hoveredIndex:-1,hovered:null},FunctionCloseMenu)},openMenu:function e(){this.setState({isOpen:!0},FunctionOpenMenu)},getItemNodeFromIndex:function e(r){return this.menuElement.querySelector("#"+this.getItemId(r))},scrollItemIntoView:function e(r){var t=this.getItemNodeFromIndex(r);scrollToElement(t,this.menuElement,r)},moveSelection:function e(r){var t=this,n=this.items.length;if(!(!this.isOpen||!n)){var a=hasKeyCode(controls.arrowDownKey,r),o=hasKeyCode(controls.arrowUpKey,r);if(a||o){r.preventDefault();var i=a*2-1,l=a?0:n-1,c=a?this.hoveredIndex<n-1:this.hoveredIndex>0,d=c?this.hoveredIndex+i:l,f=getNextNonDisabledIndex(i,d,n,this.getItemNodeFromIndex,this.circular);if(!this.circular&&(o&&f>this.hoveredIndex||a&&f<this.hoveredIndex))return;var p=this.items[f];this.scrollIntoView&&this.$nextTick(function(){t.scrollItemIntoView(d)}),this.setState({hoveredIndex:f,hovered:p},a?InputKeyDownArrowDown:InputKeyDownArrowUp)}}},setInputValue:function e(r){this.inputValue!==r&&this.setState({inputValue:r},FunctionSetInputValue)}});function slot(e){return{getInputProps:e.getInputProps,getItemProps:e.getItemProps,getMenuProps:e.getMenuProps,getComboboxProps:e.getComboboxProps,getLabelProps:e.getLabelProps,getInputEventListeners:e.getInputEventListeners,getMenuEventListeners:e.getMenuEventListeners,getItemEventListeners:e.getItemEventListeners,isOpen:e.isOpen,selectedItem:e.selectedItem,hoveredIndex:e.hoveredIndex,inputValue:e.inputValue,reset:e.reset,select:e.select,setInputValue:e.setInputValue,openMenu:e.openMenu,closeMenu:e.closeMenu}}var idCounter=0;function beforeCreate(){this.idCounter=idCounter.toString(),idCounter+=1}var isVue3=!!vue.defineComponent;!isVue3&&define_process_env_default.NODE_ENV!=="production"&&console.error(`Looks like your Vue version is 2.x, but you are using VueComboBlocks for Vue 3.
366
+ Install the correct version for Vue 2.x: "npm i vue-combo-blocks@vue2"`);var VueComboBlocks=vue.defineComponent({name:"vue-combo-blocks",emits:{select:null,"update:modelValue":null,"input-value-change":null,"is-open-change":null,"hovered-index-change":null,"state-change":null,change:null,"show-list":null,focus:null,hover:null},props:getProps(isVue3),watch:{modelValue:function e(r){isControlledProp(this.$props,"modelValue")&&(this.inputValue=this.itemToString(r),this.selectedItem=r)}},beforeCreate,data:function e(){return getInitialData(this.modelValue,this.itemToString)},computed:Object.assign({},computed),methods:Object.assign({},{setState:function e(r,t){var n=this.$data,a=this.stateReducer(n,{changes:r,type:t}),o=hasOwnProperty(a,"selectedItem"),i=a.selectedItem!==n.selectedItem;o&&(this.$emit("select",a.selectedItem,t),i&&this.$emit("update:modelValue",a.selectedItem,t));var l={};for(var c in a)hasOwnProperty(a,c)&&n[c]!==a[c]&&(l[c]=a[c],this[c]=l[c],c==="inputValue"?this.$emit("input-value-change",a[c],t):c==="isOpen"?this.$emit("is-open-change",a[c],t):c==="hoveredIndex"&&this.$emit("hovered-index-change",a[c],t));this.$emit("state-change",l,t)}},methods),render:function e(){return this.$slots.default(slot(this))}});VueComboBlocks.stateChangeTypes=sct;const _hoisted_1$m={"data-test":"vs-autocomplete",class:"vs-autocomplete mb-100"},_hoisted_2$g=["for"],_hoisted_3$b=["placeholder","onClick"],_hoisted_4$a=["name"],_sfc_main$v=vue.defineComponent({__name:"Autocomplete",props:{id:{},label:{},mode:{},multiselectLabel:{},name:{},options:{},placeholder:{},trackBy:{},isTourLocation:{type:Boolean},defaultVal:{}},emits:["changeValue"],setup(e,{emit:r}){const t=e,n=r,a=vue.ref([]),o=vue.ref(t.options),i=v=>v?v[d.value]:"",l=v=>{o.value=t.options.filter(m=>m[d.value].toLowerCase().includes(v.toLowerCase()))},c=v=>{typeof t.trackBy<"u"?n("changeValue",v[t.trackBy]):n("changeValue",v.label)},d=vue.computed(()=>typeof t.multiselectLabel<"u"?t.multiselectLabel:"name"),f=vue.computed(()=>{if(typeof a.value=="string"){if(t.isTourLocation){const v=t.options.find(m=>m.name===a.value);if(typeof v<"u")return v.slug.trim()}return a.value.trim()}else if(typeof a.value=="object"&&Object.keys(a.value).length>0)return i(a.value).trim()}),p=vue.computed(()=>!!(f.value&&f.value.length>0));return vue.watch(()=>a.value,()=>{a.value===null&&(a.value=[])}),vue.onMounted(()=>{typeof t.defaultVal<"u"&&(a.value=t.defaultVal)}),(v,m)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$m,[vue.createElementVNode("label",{for:v.id},vue.toDisplayString(v.label),9,_hoisted_2$g),vue.createVNode(vue.unref(VueComboBlocks),{"input-id":v.id,modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=g=>a.value=g),itemToString:i,items:o.value,onInputValueChange:l,onSelect:c},{default:vue.withCtx(({getInputProps:g,getInputEventListeners:_,hoveredIndex:S,isOpen:C,getMenuProps:w,getMenuEventListeners:E,getItemProps:$,getItemEventListeners:T,getComboboxProps:B,openMenu:R})=>[vue.createElementVNode("div",vue.mergeProps(B(),{class:"vs-autocomplete__list-wrapper"}),[vue.createElementVNode("input",vue.mergeProps({class:"vs-input form-control"},g(),vue.toHandlers(_(),!0),{placeholder:v.placeholder,onClick:L=>R()}),null,16,_hoisted_3$b),vue.createVNode(VsIcon,{name:"chevron-down",variant:"primary",size:"sm"}),vue.withDirectives(vue.createElementVNode("ul",vue.mergeProps(w(),vue.toHandlers(E(),!0),{class:"vs-autocomplete__list"}),[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.value,(L,te)=>(vue.openBlock(),vue.createElementBlock("li",vue.mergeProps({key:L.id,ref_for:!0},$({item:L,index:te}),vue.toHandlers(T({item:L,index:te}),!0),{class:["vs-autocomplete__list-item",{"vs-autocomplete__list-item--hover":S===te}]}),vue.toDisplayString(L[d.value]),17))),128))],16),[[vue.vShow,C]])],16)]),_:1},8,["input-id","modelValue","items"]),p.value?vue.withDirectives((vue.openBlock(),vue.createElementBlock("input",{key:0,type:"hidden",name:v.name,"onUpdate:modelValue":m[1]||(m[1]=g=>f.value=g)},null,8,_hoisted_4$a)),[[vue.vModelText,f.value]]):vue.createCommentVNode("",!0)]))}}),_hoisted_1$l={class:"vs-guest-selector-number-group","data-test":"vs-guest-selector-number-group"},_hoisted_2$f={class:"vs-guest-selector-number-group__label"},_hoisted_3$a={class:"vs-guest-selector-number-group__buttons justify-content-end"},_hoisted_4$9=["disabled"],_hoisted_5$9=["name","disabled"],_sfc_main$u=vue.defineComponent({__name:"GuestSelectorNumberGroup",props:{adultCount:{},childrenCount:{},count:{},disabled:{type:Boolean},id:{},infantCount:{},inputType:{},maxValue:{},minValue:{},name:{},rowName:{},rowLabel:{},unitRemoved:{type:Boolean}},emits:["changeHandler"],setup(e,{emit:r}){const t=e,n=r,a=vue.ref(0),o=vue.ref(!1),i=vue.ref(t.name),l=()=>{a.value>t.minValue&&(a.value--,o.value=!0,d("decrease"))},c=()=>{a.value<t.maxValue&&(a.value++,o.value=!0,d("increase"))},d=f=>{n("changeHandler",t.name,a.value,f,t.id)};return vue.onMounted(()=>{o.value||(a.value=t.minValue),a.value<=t.maxValue&&(a.value=t.count),t.unitRemoved&&(t.name.includes("children")?(a.value=t.childrenCount,i.value=t.rowName+"children"):t.name.includes("infants")?(a.value=t.infantCount,i.value=t.rowName+"infants"):(a.value=t.adultCount,i.value=t.rowName+"a"))}),(f,p)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$l,[vue.createElementVNode("span",_hoisted_2$f,vue.toDisplayString(f.rowLabel),1),vue.createElementVNode("div",_hoisted_3$a,[vue.createVNode(VsButton,{class:"vs-guest-selector-number-group__button--remove",size:"sm",icon:"minus","icon-only":"",value:"-",onClick:vue.withModifiers(l,["prevent"]),disabled:a.value===f.minValue},{default:vue.withCtx(()=>[vue.createTextVNode(" Remove ")]),_:1},8,["disabled"]),vue.withDirectives(vue.createElementVNode("input",{class:"vs-guest-selector-number-group__input",disabled:f.disabled,pattern:"[0-9]*",readonly:"",tabIndex:"-1",type:"text","onUpdate:modelValue":p[0]||(p[0]=v=>a.value=v)},null,8,_hoisted_4$9),[[vue.vModelText,a.value]]),vue.createVNode(VsButton,{class:"vs-guest-selector-number-group__button--add",size:"sm",icon:"plus","icon-only":"",value:"+",onClick:vue.withModifiers(c,["prevent"]),disabled:a.value===f.maxValue},{default:vue.withCtx(()=>[vue.createTextVNode(" Add ")]),_:1},8,["disabled"]),vue.withDirectives(vue.createElementVNode("input",{type:"hidden","onUpdate:modelValue":p[1]||(p[1]=v=>a.value=v),name:(f.unitRemoved&&f.rowName!=="r1",i.value),disabled:f.disabled},null,8,_hoisted_5$9),[[vue.vModelText,a.value]])])]))}}),_hoisted_1$k={class:"vs-guest-selector-row","data-test":"vs-guest-selector-row"},_hoisted_2$e={class:"vs-guest-selector-row__title"},_hoisted_3$9={key:1,class:"c-search__rooms-guests-picker__row"},_hoisted_4$8=["name"],_hoisted_5$8=["name"],_hoisted_6$8=["name"],_sfc_main$t=vue.defineComponent({__name:"GuestSelectorRow",props:{name:{},showRemoveBtn:{type:Boolean},unitLabel:{},unitOptions:{},unitRemoved:{type:Boolean}},emits:["numberChange","onRemove"],setup(e,{emit:r}){const t=e,n=r,a=vue.ref(t.unitOptions.numberGroups.adults.count),o=vue.ref(t.unitOptions.numberGroups.children.count),i=vue.ref(t.unitOptions.numberGroups.infants.count),l=getLabelText("remove","Remove","guests_rooms"),c=vue.computed(()=>o.value+i.value),d=(p,v,m,g)=>{let _="";p.includes("children")&&(o.value=v,_="children"),p.includes("infants")&&(i.value=v,_="infants"),(p.includes("r1a")||p.includes("r2a")||p.includes("r3a")||p.includes("r4a")||p.includes("r5a"))&&(a.value=v,_="adults"),n("numberChange",m,_,g)},f=()=>{n("onRemove",i.value+o.value+a.value,i.value+o.value,t.unitOptions.id)};return(p,v)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$k,[vue.createElementVNode("div",_hoisted_2$e,vue.toDisplayString(p.unitLabel),1),p.name!=="r1"?(vue.openBlock(),vue.createBlock(VsButton,{key:0,class:"vs-guest-selector-row__remove",onClick:vue.withModifiers(f,["prevent"]),variant:"transparent",icon:"close","icon-size":"sm","icon-position":"left","icon-only":"",size:"sm"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(l)),1)]),_:1})):vue.createCommentVNode("",!0),p.unitOptions?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$9,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(p.unitOptions.numberGroups,(m,g)=>(vue.openBlock(),vue.createBlock(_sfc_main$u,{"adult-count":a.value,"children-count":o.value,count:m.count,disabled:!1,id:p.unitOptions.id,"infant-count":i.value,"input-type":m,key:`${p.name}_${g}`,"max-value":m.maxCount,"min-value":m.minCount,name:m.name,"row-label":m.unitLabel,"row-name":p.name,"unit-removed":p.unitRemoved,onChangeHandler:d},null,8,["adult-count","children-count","count","id","infant-count","input-type","max-value","min-value","name","row-label","row-name","unit-removed"]))),128)),vue.withDirectives(vue.createElementVNode("input",{type:"hidden",name:`${p.name}c`,"onUpdate:modelValue":v[0]||(v[0]=m=>c.value=m)},null,8,_hoisted_4$8),[[vue.vModelText,c.value]])])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.value,(m,g)=>(vue.openBlock(),vue.createElementBlock("input",{type:"hidden",key:`${p.name}c${g}`,name:`${p.name}c${g}`,value:"10"},null,8,_hoisted_5$8))),128)),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(i.value,(m,g)=>(vue.openBlock(),vue.createElementBlock("input",{type:"hidden",key:`${p.name}c${g}`,name:`${p.name}c${g+o.value}`,value:"1"},null,8,_hoisted_6$8))),128))]))}}),_hoisted_1$j={class:"form-group vs-guest-selector","data-test":"vs-guest-selector"},_hoisted_2$d={class:"vs-guest-selector__label"},_hoisted_3$8=["disabled"],_hoisted_4$7={class:"vs-guest-selector__button-row mb-075"},_hoisted_5$7={class:"d-flex justify-content-between"},_hoisted_6$7=["value","disabled"],_hoisted_7$7=["value","disabled"],adultDefaultCount=1,unitLimit=5,_sfc_main$s=vue.defineComponent({__name:"GuestSelector",props:{availability:{type:Boolean}},setup(e){const r=vue.getCurrentInstance(),t=getLabelText("add_room_label","Add a Room","guests_rooms"),n=getLabelText("save_changes","Save","guests_rooms"),a=vue.ref(2),o=getLabelText("guest","Guest","guests_rooms"),i=getLabelText("guests","Guests","guests_rooms"),l=vue.ref(!1),c=vue.ref(0),d=vue.ref([{id:`${r.uid}`,showRemoveBtn:!1,numberGroups:{adults:{minCount:1,maxCount:30,count:2,name:"r1a",unitLabel:getLabelText("adults","Adults","guests_rooms")},children:{minCount:0,maxCount:30,count:0,name:"r1children",unitLabel:getLabelText("children","Children","guests_rooms")},infants:{minCount:0,maxCount:30,count:0,name:"r1infants",unitLabel:getLabelText("infants","Infants","guests_rooms")}}}]),f=vue.ref(1),p=getLabelText("room","Room","guests_rooms"),v=getLabelText("rooms","Rooms","guests_rooms"),m=vue.ref(!1),g=vue.ref(!1),_=()=>{g.value=!1},S=()=>{g.value=!g.value},C=()=>{if(d.value.length<unitLimit){const $={id:`${r.uid}`,showRemoveBtn:!0,numberGroups:{adults:{minCount:1,maxCount:30,count:1,name:"r"+(d.value.length+1)+"a",unitLabel:getLabelText("adults","Adults","guests_rooms")},children:{minCount:0,maxCount:30,count:0,name:"r"+(d.value.length+1)+"children",unitLabel:getLabelText("children","Children","guests_rooms")},infants:{minCount:0,maxCount:30,count:0,name:"r"+(d.value.length+1)+"infants",unitLabel:getLabelText("infants","Infants","guests_rooms")}}};let T=d.value.slice();T.push($),d.value=T,f.value=T.length,l.value=!0,a.value=a.value+adultDefaultCount}},w=($,T,B)=>{const R=d.value.findIndex(L=>L.id===B);d.value.splice(R,1),f.value=d.value.length,m.value=!0,a.value=a.value-$,c.value=c.value-T,d.value.length===1&&(l.value=!1)},E=($,T,B)=>{a.value=$==="increase"?a.value+1:a.value-1,T!=="adults"&&(c.value=$==="increase"?c.value+1:c.value-1);const R=d.value.findIndex(L=>L.id===B);d.value[R].numberGroups[T].count=$==="increase"?d.value[R].numberGroups[T].count+1:d.value[R].numberGroups[T].count-1};return($,T)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$j,[vue.createElementVNode("span",_hoisted_2$d,vue.toDisplayString(vue.unref(i)),1),vue.createElementVNode("button",{tabIndex:"availability ? '0' : ''",class:"vs-guest-selector__trigger form-control vs-input",onClick:vue.withModifiers(S,["prevent"]),disabled:!$.availability},[vue.createElementVNode("span",null,vue.toDisplayString(f.value)+" ",1),vue.createElementVNode("span",null,vue.toDisplayString(f.value>1?vue.unref(v):vue.unref(p)),1),vue.createTextVNode(",  "),vue.createElementVNode("span",null,vue.toDisplayString(a.value)+" ",1),vue.createElementVNode("span",null,vue.toDisplayString(a.value>1?vue.unref(i):vue.unref(o)),1)],8,_hoisted_3$8),vue.createElementVNode("div",{class:vue.normalizeClass(["vs-guest-selector__modal",g.value?"vs-guest-selector__modal--visible":""])},[vue.createVNode(VsButton,{class:"align-self-end","data-test":"vs-guest-selector__close-btn",variant:"transparent",icon:"close",size:"md","icon-only":"",onClick:vue.withModifiers(_,["prevent"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(getLabelText)("close","Close","guests_rooms")),1)]),_:1}),vue.createElementVNode("div",_hoisted_4$7,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(d.value,(B,R)=>(vue.openBlock(),vue.createBlock(_sfc_main$t,{key:B.id,name:"r"+(R+1),"show-remove-btn":l.value,"unit-label":vue.unref(getLabelText)("room","Room","guests_rooms")+" "+(R+1),"unit-options":B,"unit-removed":m.value,onNumberChange:E,onOnRemove:w},null,8,["name","show-remove-btn","unit-label","unit-options","unit-removed"]))),128))]),vue.createElementVNode("div",_hoisted_5$7,[d.value.length<unitLimit?(vue.openBlock(),vue.createBlock(VsButton,{key:0,variant:"secondary",class:"c-search__popup__btn-link me-050 align-self-start",onClick:vue.withModifiers(C,["prevent"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(t)),1)]),_:1})):vue.createCommentVNode("",!0),d.value.length<unitLimit?(vue.openBlock(),vue.createBlock(VsButton,{key:1,class:"c-search__popup__btn-link c-search__popup__btn-link--pull-right align-self-end",onClick:vue.withModifiers(_,["prevent"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(n)),1)]),_:1})):vue.createCommentVNode("",!0)])],2),d.value?(vue.openBlock(),vue.createElementBlock("input",{key:0,type:"hidden",name:"rooms",id:"room-count",value:f.value,disabled:!$.availability},null,8,_hoisted_6$7)):vue.createCommentVNode("",!0),d.value?(vue.openBlock(),vue.createElementBlock("input",{key:1,type:"hidden",name:"guests",id:"guest-count",value:a.value,disabled:!$.availability},null,8,_hoisted_7$7)):vue.createCommentVNode("",!0)]))}}),_hoisted_1$i={class:"vs-date-input","data-test":"vs-date-input"},_hoisted_2$c=["for"],_hoisted_3$7=["min","name","id"],_sfc_main$r=vue.defineComponent({__name:"DateInput",props:{label:{},id:{},name:{},value:{},minDate:{}},emits:["changeDate"],setup(e,{emit:r}){const t=e,n=r,a=vue.ref(t.value),o=vue.computed(()=>new Date().toISOString().split("T")[0]);return vue.watch(()=>t.value,i=>{a.value=i,n("changeDate",a.value)}),(i,l)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$i,[vue.createElementVNode("label",{for:i.id},vue.toDisplayString(i.label),9,_hoisted_2$c),vue.withDirectives(vue.createElementVNode("input",{type:"date",min:typeof i.minDate<"u"&&i.minDate.length>0?i.minDate:o.value,name:i.name,id:i.id,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),onChange:l[1]||(l[1]=c=>i.$emit("changeDate",a.value)),class:"form-control vs-input"},null,40,_hoisted_3$7),[[vue.vModelText,a.value]])]))}}),_hoisted_1$h={class:"vs-date-range","data-test":"vs-date-range"},_hoisted_2$b={class:"row align-items-center"},_hoisted_3$6={class:"col-12 col-sm-5 order-1"},_hoisted_4$6={class:"col-12 col-sm-5 order-2"},_hoisted_5$6={class:"col-12 col-sm-2 order-first order-sm-3 text-sm-right"},_hoisted_6$6={key:1,type:"hidden",name:"refine-date",value:"on"},_hoisted_7$6=["value"],_sfc_main$q=vue.defineComponent({__name:"DateRange",props:{startLabel:{type:String,required:!1,default:"Start Date"},endLabel:{type:String,required:!1,default:"End Date"},defaultDates:{type:Boolean,default:!1},selectedProd:{type:String,required:!0}},emits:["dateUpdated"],setup(e,{emit:r}){const t=e,n=r,a=vue.ref(""),o=vue.ref(""),i=vue.computed(()=>!!a.value||!!o.value),l=vue.computed(()=>{const w=new Date(o.value),E=new Date(a.value),$=w.getTime()-E.getTime();return isNaN($)?1:$/(1e3*3600*24)});function c(){a.value="",o.value=""}const d=w=>{const E=w.toLocaleString("default",{year:"numeric"}),$=w.toLocaleString("default",{month:"2-digit"}),T=w.toLocaleString("default",{day:"2-digit"});return`${E}-${$}-${T}`},f=vue.computed(()=>a.value===""?d(new Date):""),p=vue.computed(()=>{let w;if(a.value!==""){const E=new Date(a.value);E.setDate(E.getDate()+1),w=d(E)}else if(t.defaultDates){const E=new Date,$=new Date(E);$.setDate($.getDate()+1),w=d($)}return w}),v=vue.computed(()=>{let w;if(a.value===""){const E=new Date,$=new Date(E);$.setDate($.getDate()+1),w=d($)}else{const E=new Date,$=new Date(a.value);E.setDate($.getDate()+1),w=d(E)}return w});function m(){const w=new Date(a.value);new Date(o.value)<=w&&(o.value="")}function g(){const w=!(!a.value&&!o.value);n("dateUpdated",w)}function _(){g(),m()}const S=vue.computed(()=>t.selectedProd==="acco"?"stay":"isostartdate"),C=vue.computed(()=>t.selectedProd==="acco"?"endDate":"isoenddate");return(w,E)=>(vue.openBlock(),vue.createElementBlock("fieldset",_hoisted_1$h,[vue.createElementVNode("div",_hoisted_2$b,[vue.createElementVNode("div",_hoisted_3$6,[vue.createVNode(_sfc_main$r,{label:e.startLabel,value:e.defaultDates&&a.value===""&&o.value?f.value:a.value,name:S.value,id:"startDate",onChangeDate:E[0]||(E[0]=$=>{a.value=$,_()}),class:"mb-100"},null,8,["label","value","name"])]),vue.createElementVNode("div",_hoisted_4$6,[vue.createVNode(_sfc_main$r,{label:e.endLabel,value:e.defaultDates&&o.value===""&&a.value?p.value:o.value,"min-date":v.value,name:C.value,id:"endDate",onChangeDate:E[1]||(E[1]=$=>{o.value=$,_()}),class:"mb-100"},null,8,["label","value","min-date","name"])]),vue.createElementVNode("div",_hoisted_5$6,[i.value?(vue.openBlock(),vue.createElementBlock("button",{key:0,id:"clearDateRange",type:"button",onClick:c,class:"vs-date-range__clear"},vue.toDisplayString(vue.unref(getLabelText)("reset","Clear")),1)):vue.createCommentVNode("",!0),e.selectedProd!=="acco"?(vue.openBlock(),vue.createElementBlock("input",_hoisted_6$6)):vue.createCommentVNode("",!0),vue.createElementVNode("input",{type:"hidden",name:"nights",value:l.value},null,8,_hoisted_7$6)])])]))}}),_hoisted_1$g={class:"vs-product-search-embed","data-test":"vs-product-search-embed"},_hoisted_2$a={key:0,class:"container"},_hoisted_3$5={class:"row"},_hoisted_4$5={class:"col-12"},_hoisted_5$5=["action"],_hoisted_6$5={class:"form-group product-search__type mb-100"},_hoisted_7$5={for:"prodtypes"},_hoisted_8$4={class:"product-search__in d-none d-md-block mt-100"},_hoisted_9$3={"aria-live":"polite"},_hoisted_10$3=["disabled","value"],_hoisted_11$3=["disabled","value"],_hoisted_12$2=["value"],_hoisted_13$2={key:4,type:"hidden",name:"areaproxdist",value:"10"},_hoisted_14$1={key:5},_hoisted_15$1={key:0,class:"form-group"},_hoisted_16$1={for:"search-keyword"},_hoisted_17$1={key:2},_hoisted_18=["value"],_hoisted_19={key:0},_hoisted_20=["value"],__default__=vue.defineComponent({mixins:[dataLayerMixin],methods:{trackSubmit(e,r){this.createDataLayerObject("productSearchDataEvent",{searchType:e,searchLocation:r.name},this.href)}}}),_sfc_main$p=vue.defineComponent({...__default__,__name:"ProductSearchEmbed",props:{defaultProd:{type:String,default:"acti,attr,reta",validator(e){return["acco","cate","even","tour","acti,attr,reta"].includes(e)}},defaultLocale:{type:String,default:"",validator(e){return["en","fr","de","es","it","nl",""].includes(e)}},defaultLocation:{type:String,default:""}},setup(e){const r=e,t=vue.ref(!1),n=vue.ref(),a=vue.ref([]);vue.ref(null);let o=vue.ref();o.value={id:"",key:"",name:"",type:""};const i=vue.ref("off"),l=vue.ref(!1),c=vue.computed(()=>{const A=typeof n.value>"u"?"see-do":n.value;return`/info/${paths[A]}`});let d=vue.ref(!1);const f={en:{localeUrl:""},fr:{localeUrl:"fr-fr"},de:{localeUrl:"de-de"},es:{localeUrl:"es-es"},it:{localeUrl:"it-it"},nl:{localeUrl:"nl-nl"}},p=vue.computed(()=>{let A=r.defaultLocale.length>0?r.defaultLocale:getLocale();return A==="en"&&(A=""),A}),v=vue.computed(()=>{if(typeof window<"u"){let A=window.location.origin;return A.includes("localhost")?"https://www.visitscotland.com":A}return"https://www.visitscotland.com"}),m=vue.computed(()=>`${v.value}${p.value?"/"+p.value:""}${c.value}/search-results`),_="https://www.visitscotland.com/data/locations"+`?locale=${p.value}`,S=vue.ref([]),C="https://www.visitscotland.com/tms-api/v1/attractions",w=vue.ref([]),E="https://www.visitscotland.com/tms-api/v1/origins?active=1",$=vue.ref([]),T=vue.ref([]),B=()=>{const A=getProductTypes(),F=[];A.forEach(W=>{F.push(W)}),T.value=F},R=vue.computed(()=>t.value?[]:T.value.map(F=>({...F,text:getProductName(F.value,F.text)}))),L=async()=>{const A=await getData(_);A&&(S.value=A.data)},te=async()=>{const A=await getData(E);A&&($.value=A.data)},oe=async()=>{const A=await getData(C);A&&(w.value=A.data)},Q=(A,F)=>{F==="key"?o.value=S.value.find(W=>W.key===A):F==="id"?o.value=S.value.find(W=>W.id===A):o.value=S.value.find(W=>W.name===A.trim())},ce=A=>{const F=A.value;n.value=F,F==="tour"&&(te(),oe())},J=()=>f[r.defaultLocale]||"",ne=()=>{t.value=!0,vue.nextTick(()=>{t.value=!1,r.defaultLocation!==""&&d&&Q(r.defaultLocation,"id")})},ge=vue.computed(()=>n.value!=="cate"&&n.value!=="acti,attr,reta"?"d-lg-flex":"");vue.onBeforeMount(async()=>{window.VS={};const A=document.createElement("script");A.async=!1,A.onload=ne,A.setAttribute("src",`https://www.visitscotland.com/${J().localeUrl}/data/template/search.js`),document.head.appendChild(A)}),vue.onMounted(async()=>{L(),d.value=!0,n.value=r.defaultProd,n.value==="tour"&&(te(),oe()),B()});const me=A=>{i.value=A?"on":"off"},de=A=>{l.value=!0;const F=A.currentTarget;setTimeout(function(){F.submit()},500)};return(A,F)=>{var W,X,fe,O,I,U;return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$g,[t.value?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$a,[vue.createElementVNode("div",_hoisted_3$5,[vue.createElementVNode("div",_hoisted_4$5,[vue.unref(d)?(vue.openBlock(),vue.createElementBlock("form",{key:0,action:m.value,onSubmit:vue.withModifiers(de,["prevent"]),"accept-charset":"UTF-8","data-test":"psw-form"},[vue.createElementVNode("div",_hoisted_6$5,[vue.createElementVNode("label",_hoisted_7$5,vue.toDisplayString(vue.unref(getLabelText)("search_for","I'm looking for")),1),vue.createElementVNode("div",{class:vue.normalizeClass(ge.value)},[vue.createVNode(VsSelect,{options:R.value,value:e.defaultProd,onUpdated:F[0]||(F[0]=ae=>ce(ae)),"field-name":"prodtypes"},null,8,["options","value"]),vue.createElementVNode("div",_hoisted_8$4,vue.toDisplayString(vue.unref(getLabelText)("in","in")),1)],2)]),vue.createElementVNode("div",_hoisted_9$3,[n.value!="tour"&&vue.unref(d)?(vue.openBlock(),vue.createBlock(_sfc_main$v,{key:0,id:"search-location",label:vue.unref(getLabelText)("location","Location"),"multiselect-label":"name",name:"loc",options:S.value,placeholder:vue.unref(getLabelText)("location_placeholder","Enter a location"),"track-by":"name",onChangeValue:F[1]||(F[1]=ae=>Q(ae)),"default-val":vue.unref(o),"data-chromatic":"ignore"},null,8,["label","options","placeholder","default-val"])):vue.createCommentVNode("",!0),n.value!=="tour"?(vue.openBlock(),vue.createElementBlock("input",{key:1,type:"hidden",name:"locplace",disabled:((W=vue.unref(o))==null?void 0:W.type)==="POLYGON",value:((X=vue.unref(o))==null?void 0:X.key)||""},null,8,_hoisted_10$3)):vue.createCommentVNode("",!0),n.value!=="tour"?(vue.openBlock(),vue.createElementBlock("input",{key:2,type:"hidden",name:"locpoly",disabled:((fe=vue.unref(o))==null?void 0:fe.type)!=="POLYGON",value:((O=vue.unref(o))==null?void 0:O.key)||""},null,8,_hoisted_11$3)):vue.createCommentVNode("",!0),n.value!=="tour"?(vue.openBlock(),vue.createElementBlock("input",{key:3,type:"hidden",name:"locprox",value:((I=vue.unref(o))==null?void 0:I.type)==="DISTRICT"?1:0},null,8,_hoisted_12$2)):vue.createCommentVNode("",!0),n.value!=="tour"&&((U=vue.unref(o))==null?void 0:U.type)==="DISTRICT"?(vue.openBlock(),vue.createElementBlock("input",_hoisted_13$2)):vue.createCommentVNode("",!0),n.value==="even"||n.value==="acco"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14$1,[vue.createVNode(_sfc_main$q,{"start-label":vue.unref(getLabelText)("startdate","Start Date","dates"),"end-label":vue.unref(getLabelText)("enddate","End Date","dates"),onDateUpdated:F[2]||(F[2]=ae=>me(ae)),"default-dates":l.value,"selected-prod":n.value},null,8,["start-label","end-label","default-dates","selected-prod"]),n.value==="even"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$1,[vue.createElementVNode("label",_hoisted_16$1,vue.toDisplayString(vue.unref(getLabelText)("keywords","Keywords")),1),vue.createVNode(VsInput,{"field-name":"search-keyword",placeholder:vue.unref(getLabelText)("events_keywords_placeholder","Highland games, music festivals etc"),name:"name"},null,8,["placeholder"])])):vue.createCommentVNode("",!0),n.value==="acco"?(vue.openBlock(),vue.createBlock(_sfc_main$s,{key:1,availability:!0,id:"guest-selector"})):vue.createCommentVNode("",!0),n.value==="acco"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_17$1,[vue.createElementVNode("input",{hidden:"true",name:"avail",value:i.value},null,8,_hoisted_18)])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)]),n.value==="tour"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_19,[vue.createVNode(_sfc_main$v,{id:"tour-origin",label:vue.unref(getLabelText)("tour_origin","Starting point"),"multiselect-label":"name",name:"origins[]",options:$.value,placeholder:vue.unref(getLabelText)("tour_origin_placeholder","Location"),"track-by":"name","is-tour-location":!0},null,8,["label","options","placeholder"]),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.value,ae=>(vue.openBlock(),vue.createElementBlock("input",{type:"hidden",name:"attractions[]",value:ae},null,8,_hoisted_20))),256)),vue.createVNode(_sfc_main$v,{id:"tour-month",label:vue.unref(getLabelText)("tour_month","I'm traveling in"),"multiselect-label":"label",name:"when",options:vue.unref(getLabelText)("months",vue.unref(monthsEnglish)),placeholder:vue.unref(getLabelText)("tour_month_placeholder","Select month"),"track-by":"value"},null,8,["label","options","placeholder"])])):vue.createCommentVNode("",!0),vue.createVNode(VsButton,{class:"mt-150","data-test":"psw-submit",type:"submit",onClick:F[3]||(F[3]=ae=>A.trackSubmit(n.value,typeof vue.unref(o)>"u"?"":vue.unref(o)))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(getLabelText)("search","Search")),1)]),_:1})],40,_hoisted_5$5)):vue.createCommentVNode("",!0),vue.unref(d)?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(VsLoadingSpinner,{key:1,variant:"dark"}))])])]))])}}}),_sfc_main$o={name:"VsProductSearch",status:"prototype",release:"0.0.1",components:{VsContainer,VsRow,VsCol,VsProductSearchEmbed:_sfc_main$p,VsHeading,VsWarning},props:{noJsMessage:{type:String,required:!0},defaultLocation:{type:String,default:""},defaultProd:{type:String,default:"acti,attr,reta"},defaultLocale:{type:String,default:"en"}}},_hoisted_1$f={class:"vs-product-search","data-test":"vs-product-search"},_hoisted_2$9={class:"vs-product-search__intro"};function _sfc_render$m(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsProductSearchEmbed"),d=vue.resolveComponent("VsWarning"),f=vue.resolveComponent("VsRow"),p=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$f,[vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createVNode(l,{class:"vs-product-search__col vs-product-search__col--left",xl:"7"},{default:vue.withCtx(()=>[vue.createVNode(i,{level:"2",headingStyle:"heading-l",class:"vs-product-search__heading mt-0"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-module-heading")]),_:3}),vue.createElementVNode("div",_hoisted_2$9,[vue.renderSlot(e.$slots,"vs-module-intro")])]),_:3}),vue.createVNode(l,{class:"vs-product-search__col vs-product-search__col--right",xl:"5"},{default:vue.withCtx(()=>[vue.createVNode(c,{class:"vs-product-search__widget","default-location":t.defaultLocation,"default-locale":t.defaultLocale,"default-prod":t.defaultProd},null,8,["default-location","default-locale","default-prod"]),vue.createVNode(d,{class:"vs-product-search__no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.noJsMessage),1)]),_:1})]),_:1})]),_:3})]),_:3})])}const ProductSearch=_export_sfc(_sfc_main$o,[["render",_sfc_render$m]]),_sfc_main$n={name:"VsQuote",status:"prototype",release:"0.0.1",props:{variant:{type:String,default:"narrow",validator:e=>e.match(/(narrow|wide)/)},withBorder:{type:Boolean,default:!1}},computed:{hasAuthorName(){return!!this.$slots["quote-author-name"]},hasAuthorTitle(){return!!this.$slots["quote-author-title"]},hasAuthorImage(){return!!this.$slots["quote-image"]},variantClass(){return[{"vs-quote--narrow":this.variant==="narrow","vs-quote--wide":this.variant==="wide","vs-quote--with-border":this.withBorder}]}}},_hoisted_1$e={key:0,class:"vs-quote__speech-container"},_hoisted_2$8=vue.createElementVNode("span",{class:"vs-quote__speech-mark"},"“",-1),_hoisted_3$4=[_hoisted_2$8],_hoisted_4$4={key:1,class:"vs-quote__author-container"},_hoisted_5$4={class:"vs-quote__content-container"},_hoisted_6$4={class:"vs-quote__content"},_hoisted_7$4={key:0,class:"vs-quote__author-name"},_hoisted_8$3={key:2,class:"vs-quote__quote-link"};function _sfc_render$l(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-quote",o.variantClass]),"data-test":"vs-quote"},[t.withBorder?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$e,_hoisted_3$4)),o.hasAuthorImage?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$4,[vue.renderSlot(e.$slots,"quote-image")])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_5$4,[vue.createElementVNode("div",_hoisted_6$4,[vue.renderSlot(e.$slots,"quote-content")]),o.hasAuthorName?(vue.openBlock(),vue.createElementBlock("p",_hoisted_7$4,[vue.renderSlot(e.$slots,"quote-author-name")])):vue.createCommentVNode("",!0),o.hasAuthorTitle?(vue.openBlock(),vue.createElementBlock("p",{key:1,class:vue.normalizeClass(["vs-quote__author-title",t.variant==="narrow"?"vs-quote__author-title--narrow-margin":null])},[vue.renderSlot(e.$slots,"quote-author-title")],2)):vue.createCommentVNode("",!0),e.$slots["quote-link"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$3,[vue.renderSlot(e.$slots,"quote-link",{if:"$slots['quote-link']"})])):vue.createCommentVNode("",!0)])],2)}const Quote=_export_sfc(_sfc_main$n,[["render",_sfc_render$l]]),_sfc_main$m={name:"VsTable",status:"prototype",release:"0.0.1",components:{BTableSimple:bootstrapVueNext.BTableSimple},props:{tableCaption:{type:String,required:!0},tableType:{type:String,default:"responsive",validator:e=>e.match(/(responsive|stacked)/)}},computed:{responsive(){return this.tableType==="responsive"},stacked(){return this.tableType==="stacked"}}},_hoisted_1$d={class:"visually-hidden","data-test":"vs-table__caption"};function _sfc_render$k(e,r,t,n,a,o){const i=vue.resolveComponent("BTableSimple");return vue.openBlock(),vue.createBlock(i,{class:"vs-table","data-test":"vs-table",small:"","caption-top":"",responsive:o.responsive,stacked:o.stacked},{default:vue.withCtx(()=>[vue.createElementVNode("caption",_hoisted_1$d,vue.toDisplayString(t.tableCaption),1),vue.renderSlot(e.$slots,"default")]),_:3},8,["responsive","stacked"])}const VsTable=_export_sfc(_sfc_main$m,[["render",_sfc_render$k]]),_sfc_main$l={name:"VsTableHead",status:"prototype",release:"0.0.1",components:{BThead:bootstrapVueNext.BThead}};function _sfc_render$j(e,r,t,n,a,o){const i=vue.resolveComponent("BThead");return vue.openBlock(),vue.createBlock(i,vue.normalizeProps(vue.guardReactiveProps(e.$attrs)),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsTableHead=_export_sfc(_sfc_main$l,[["render",_sfc_render$j]]),_sfc_main$k={name:"VsTableHeaderCell",status:"prototype",release:"0.0.1",components:{BTh:bootstrapVueNext.BTh},props:{stackedHeading:{type:String,default:void 0}}};function _sfc_render$i(e,r,t,n,a,o){const i=vue.resolveComponent("BTh");return vue.openBlock(),vue.createBlock(i,vue.mergeProps({"data-test":"vs-table-header-cell","stacked-heading":t.stackedHeading},e.$attrs),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16,["stacked-heading"])}const VsTableHeaderCell=_export_sfc(_sfc_main$k,[["render",_sfc_render$i]]),_sfc_main$j={name:"VsTableBody",status:"prototype",release:"0.0.1",components:{BTbody:bootstrapVueNext.BTbody}};function _sfc_render$h(e,r,t,n,a,o){const i=vue.resolveComponent("BTbody");return vue.openBlock(),vue.createBlock(i,vue.normalizeProps(vue.guardReactiveProps(e.$attrs)),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsTableBody=_export_sfc(_sfc_main$j,[["render",_sfc_render$h]]),_sfc_main$i={name:"VsTableRow",status:"prototype",release:"0.0.1",components:{BTr:bootstrapVueNext.BTr}};function _sfc_render$g(e,r,t,n,a,o){const i=vue.resolveComponent("BTr");return vue.openBlock(),vue.createBlock(i,vue.normalizeProps(vue.guardReactiveProps(e.$attrs)),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsTableRow=_export_sfc(_sfc_main$i,[["render",_sfc_render$g]]),_sfc_main$h={name:"VsTableDataCell",status:"prototype",release:"0.0.1",components:{BTd:bootstrapVueNext.BTd},props:{stackedHeading:{type:String,default:null}}};function _sfc_render$f(e,r,t,n,a,o){const i=vue.resolveComponent("BTd");return vue.openBlock(),vue.createBlock(i,vue.mergeProps({"data-test":"vs-table-data-cell","stacked-heading":t.stackedHeading},e.$attrs,{scope:null}),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16,["stacked-heading"])}const VsTableDataCell=_export_sfc(_sfc_main$h,[["render",_sfc_render$f]]),_sfc_main$g={name:"VsTableFooter",status:"prototype",release:"0.0.1",components:{BTfoot:bootstrapVueNext.BTfoot}};function _sfc_render$e(e,r,t,n,a,o){const i=vue.resolveComponent("BTfoot");return vue.openBlock(),vue.createBlock(i,vue.mergeProps(e.$attrs,{role:"rowgroup"}),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16)}const VsTableFooter=_export_sfc(_sfc_main$g,[["render",_sfc_render$e]]),_sfc_main$f={name:"VsSkiScotlandCard",status:"prototype",release:"0.0.1",components:{VsImg,VsHeading,VsIcon,VsWarning,VsLoadingSpinner,VsButton,VsTable,VsTableHead,VsTableHeaderCell,VsTableBody,VsTableRow,VsTableDataCell,VsTableFooter},props:{centreInfoUrl:{type:String,default:""},locale:{type:String,default:"en-gb"},timeoutDuration:{type:Number,default:3e4},lastUpdatedLabel:{type:String,default:"Last Updated"},liftsLabel:{type:String,default:"Lifts"},runsLabel:{type:String,default:"Runs"},runsLiftsStatusLabel:{type:String,default:"Run/Lift Status"},statusLabel:{type:String,default:"Status"},summaryClosedLabel:{type:String,default:"Closed"},summaryOpenLabel:{type:String,default:"Open"},summaryOpeningLabel:{type:String,default:"Opening"},summaryLimitedPatrolLabel:{type:String,default:"Limited Patrol"},summaryOnHoldLabel:{type:String,default:"On Hold"},imgSrc:{required:!0,type:String},imgAlt:{type:String,default:""},pisteMapLabel:{type:String,default:"View Piste Map"},moreDetailsLabel:{type:String,default:"More Details"},pisteMapLink:{type:String,default:""},moreDetailsLink:{type:String,required:!0,default:"#"}},data(){return{statusSummary:{runs:{open:0,opening:0,closed:0,onHold:0,limitedPatrol:0},lifts:{open:0,opening:0,closed:0,onHold:0,limitedPatrol:0}},runs:[],lifts:[],lastUpdate:"",jsDisabled:!0,isLoading:!0,displayError:!1}},mounted(){this.centreInfoUrl&&this.retrieveCentreInfo(),this.jsDisabled=!1},methods:{retrieveCentreInfo(){const e=setTimeout(()=>{this.displayError=!0},this.timeoutDuration);axios.get(this.centreInfoUrl).then(r=>{const t=this.cleanData(r.data);this.processLifts(t.lifts),t.runs&&this.processRuns(t.runs),this.processLastUpdate(t.lastUpdate),this.isLoading=!1,clearTimeout(e)}).catch(()=>{this.runStatusInfo=null,this.displayError=!0,this.isLoading=!1,clearTimeout(e)})},cleanData(e){const r={contact:e.contact,report:e.report};if(e.snowReport)r.lastUpdate=e.snowReport.lastupdate,r.lifts=e.lifts.sector.items,r.runs=e.runs.items,this.isCairngorms=!0;else if(r.lastUpdate=e.lastupdate,[r.lifts]=e.lift.sectors,r.lifts=r.lifts.lifts,e.run.areas){const t=e.run.areas.map(n=>n.runs).reduce((n,a)=>n.concat(a)).filter((n,a,o)=>a===o.findIndex(i=>i.name===n.name));r.runs=t}return r},processLastUpdate(e){const r=new Date(e.year,parseInt(e.month,10)-1,e.day),t={year:"numeric",month:"long",day:"numeric"},n=r.toLocaleDateString(this.locale,t);this.lastUpdate=`${e.hour24}:${e.minute} - ${n}`},processLifts(e){for(let r=0;r<e.length;r++)switch(e[r].status){case"4":case 4:this.statusSummary.lifts.onHold+=1;break;case"3":case 3:this.statusSummary.lifts.limitedPatrol+=1;break;case"2":case 2:this.statusSummary.lifts.opening+=1;break;case"1":case 1:this.statusSummary.lifts.open+=1;break;default:this.statusSummary.lifts.closed+=1;break}this.lifts=e},processRuns(e){for(let r=0;r<e.length;r++)switch(e[r].status){case"4":case 4:this.statusSummary.runs.onHold+=1;break;case"3":case 3:this.statusSummary.runs.limitedPatrol+=1;break;case"2":case 2:this.statusSummary.runs.opening+=1;break;case"1":case 1:this.statusSummary.runs.open+=1;break;default:this.statusSummary.runs.closed+=1;break}this.runs=e}}},_hoisted_1$c={class:"card vs-ski-scotland-card","data-test":"vs-ski-scotland-card"},_hoisted_2$7={class:"vs-ski-scotland-card__img-container"},_hoisted_3$3={class:"card-body"},_hoisted_4$3={key:0,class:"text-center pb-200 position-relative"},_hoisted_5$3={"data-test":"vs-ski__status-label"},_hoisted_6$3={"data-test":"vs-ski__runs-label"},_hoisted_7$3={"data-test":"vs-ski__lifts-label"},_hoisted_8$2={"data-test":"vs-ski__open-label"},_hoisted_9$2={"data-test":"vs-ski__limited-patrol-label"},_hoisted_10$2={"data-test":"vs-ski__opening-label"},_hoisted_11$2={"data-test":"vs-ski__closed-label"},_hoisted_12$1={"data-test":"vs-ski__on-hold-label"},_hoisted_13$1={"data-test":"vs-ski__last-updated-label"};function _sfc_render$d(e,r,t,n,a,o){const i=vue.resolveComponent("VsImg"),l=vue.resolveComponent("VsHeading"),c=vue.resolveComponent("VsLoadingSpinner"),d=vue.resolveComponent("VsWarning"),f=vue.resolveComponent("VsTableHeaderCell"),p=vue.resolveComponent("VsTableHead"),v=vue.resolveComponent("VsIcon"),m=vue.resolveComponent("VsTableDataCell"),g=vue.resolveComponent("VsTableRow"),_=vue.resolveComponent("VsTableBody"),S=vue.resolveComponent("VsTableFooter"),C=vue.resolveComponent("VsTable"),w=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$c,[vue.createElementVNode("div",_hoisted_2$7,[t.imgSrc?(vue.openBlock(),vue.createBlock(i,{key:0,src:t.imgSrc,alt:t.imgAlt,class:"vs-ski-scotland-card__img","data-test":"vs-ski-scotland-card__img"},null,8,["src","alt"])):vue.createCommentVNode("",!0)]),vue.createElementVNode("div",_hoisted_3$3,[vue.createVNode(l,{level:"3","heading-style":"heading-m"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"centre-name")]),_:3}),a.jsDisabled||a.isLoading||a.displayError?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$3,[!a.jsDisabled&&a.isLoading?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(c,{class:"mb-100 d-block"}),vue.renderSlot(e.$slots,"data-loading")],64)):vue.createCommentVNode("",!0),!a.jsDisabled&&a.displayError?(vue.openBlock(),vue.createBlock(d,{key:1,size:"small","data-test":"vs-ski-scotland-card__error"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"data-unavailable")]),_:3})):vue.createCommentVNode("",!0),a.jsDisabled?(vue.openBlock(),vue.createBlock(d,{key:2,size:"small","data-test":"vs-ski-scotland-card__js-disabled"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"js-required")]),_:3})):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),!a.jsDisabled&&!a.isLoading&&!a.displayError?(vue.openBlock(),vue.createBlock(C,{key:1,"table-caption":t.runsLiftsStatusLabel},{default:vue.withCtx(()=>[vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_5$3,vue.toDisplayString(t.statusLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(f,{key:0},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_6$3,vue.toDisplayString(t.runsLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_7$3,vue.toDisplayString(t.liftsLabel),1)]),_:1})]),_:1}),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createVNode(g,null,{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(v,{name:"tick",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_8$2,vue.toDisplayString(t.summaryOpenLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(m,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.runs.open)+"/"+vue.toDisplayString(a.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.open)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1}),a.statusSummary.runs.limitedPatrol||a.statusSummary.lifts.limitedPatrol?(vue.openBlock(),vue.createBlock(g,{key:0},{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(v,{name:"ski-boot",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_9$2,vue.toDisplayString(t.summaryLimitedPatrolLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(m,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.runs.limitedPatrol)+"/"+vue.toDisplayString(a.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.limitedPatrol)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(g,null,{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(v,{name:"expected-open",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_10$2,vue.toDisplayString(t.summaryOpeningLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(m,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.runs.opening)+"/"+vue.toDisplayString(a.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.opening)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1}),vue.createVNode(g,null,{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(v,{name:"status-closed",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_11$2,vue.toDisplayString(t.summaryClosedLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(m,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.runs.closed)+"/"+vue.toDisplayString(a.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.closed)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1}),a.statusSummary.runs.onHold||a.statusSummary.lifts.onHold?(vue.openBlock(),vue.createBlock(g,{key:1},{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(v,{name:"hourglass",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_12$1,vue.toDisplayString(t.summaryOnHoldLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(m,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.runs.onHold)+"/"+vue.toDisplayString(a.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.onHold)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(S,null,{default:vue.withCtx(()=>[vue.createVNode(g,null,{default:vue.withCtx(()=>[vue.createVNode(m,{colspan:"3",role:"cell"},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_13$1,vue.toDisplayString(t.lastUpdatedLabel)+": "+vue.toDisplayString(a.lastUpdate),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["table-caption"])):vue.createCommentVNode("",!0),vue.createVNode(w,{variant:"secondary",href:t.pisteMapLink,class:"mb-050",disabled:!t.pisteMapLink},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.pisteMapLabel),1)]),_:1},8,["href","disabled"]),vue.createVNode(w,{href:t.moreDetailsLink},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.moreDetailsLabel),1)]),_:1},8,["href"])])])}const SkiScotlandCard=_export_sfc(_sfc_main$f,[["render",_sfc_render$d]]),_sfc_main$e={name:"VsSkiScotlandStatus",status:"prototype",release:"0.0.1",components:{VsTable,VsTableHead,VsTableHeaderCell,VsTableBody,VsTableRow,VsTableDataCell,VsTableFooter,VsContainer,VsRow,VsCol,VsAccordion,VsAccordionItem,VsIcon,VsLink,VsHeading,VsLoadingSpinner,VsWarning},props:{skiStatusUrl:{type:String,default:""},locale:{type:String,default:"en-gb"},timeoutDuration:{type:Number,default:3e4},currentWeatherLabel:{type:String,default:"Current Weather"},detailedStatusLabel:{type:String,default:"Detailed Status"},difficultLabel:{type:String,default:"Difficult"},easyLabel:{type:String,default:"Easy"},intermediateLabel:{type:String,default:"Intermediate"},itinerariesLabel:{type:String,default:"Itineraries"},lastUpdatedLabel:{type:String,default:"Last Updated"},liftLabel:{type:String,default:"Lift"},liftsLabel:{type:String,default:"Lifts"},liftStatusLabel:{type:String,default:"Lift Status"},newsLabel:{type:String,default:"News From The Slopes"},otherLabel:{type:String,default:"Other"},roadsLabel:{type:String,default:"Road Status"},runLabel:{type:String,default:"Run"},runsLabel:{type:String,default:"Runs"},runsLiftsStatusLabel:{type:String,default:"Run/Lift Status"},runStatusLabel:{type:String,default:"Run Status"},snowConditionsLabel:{type:String,default:"Snow Conditions Full Report"},statusLabel:{type:String,default:"Status"},summaryClosedLabel:{type:String,default:"Closed"},summaryOpenLabel:{type:String,default:"Open"},summaryOpeningLabel:{type:String,default:"Opening"},summaryLimitedPatrolLabel:{type:String,default:"Limited Patrol"},summaryOnHoldLabel:{type:String,default:"On Hold"},statusClosedLabel:{type:String,default:"Closed"},statusOpenLabel:{type:String,default:"Open"},statusOpeningLabel:{type:String,default:"Opening"},statusLimitedPatrolLabel:{type:String,default:"Limited Patrol"},statusOnHoldLabel:{type:String,default:"On Hold"},veryDifficultLabel:{type:String,default:"Very Difficult"},weatherForecastLabel:{type:String,default:"Weather Forecast"},greenLabel:{type:String,default:"Green"},blueLabel:{type:String,default:"Blue"},redLabel:{type:String,default:"Red"},blackLabel:{type:String,default:"Black"},orangeLabel:{type:String,default:"Orange"},greyLabel:{type:String,default:"Grey"}},data(){return{tokens:designTokens,componentId:0,statusSummary:{runs:{open:0,opening:0,closed:0,onHold:0,limitedPatrol:0},lifts:{open:0,opening:0,closed:0,onHold:0,limitedPatrol:0}},lifts:[],runs:[],lastUpdate:"",report:"",currentWeather:"",weatherForecast:"",roadStatus:"",news:"",runLevels:[{colour:"green",colourToken:"",id:"easy",name:this.easyLabel,runs:[]},{colour:"blue",colourToken:"",id:"intermediate",name:this.intermediateLabel,runs:[]},{colour:"red",colourToken:"",id:"difficult",name:this.difficultLabel,runs:[]},{colour:"black",colourToken:"",id:"very-difficult",name:this.veryDifficultLabel,runs:[]},{colour:"orange",colourToken:"",id:"itineraries",name:this.itinerariesLabel,runs:[]},{colour:"grey",colourToken:"",id:"other",name:this.otherLabel,runs:[]}],jsDisabled:!0,isLoading:!0,displayError:!1,isCairngorms:!1}},computed:{filteredRunLevels(){return this.setColourToken().filter(r=>r.runs.length>0)}},mounted(){this.skiStatusUrl&&this.retrieveSkiStatus(),this.id=this._uid,this.jsDisabled=!1},methods:{retrieveSkiStatus(){const e=setTimeout(()=>{this.displayError=!0},this.timeoutDuration);axios.get(this.skiStatusUrl).then(r=>{const t=this.cleanData(r.data);this.processLifts(t.lifts),t.runs&&this.processRuns(t.runs),this.processLastUpdate(t.lastUpdate),this.processFullReport(t.report),this.isLoading=!1,clearTimeout(e)}).catch(()=>{this.runStatusInfo=null,this.displayError=!0,this.isLoading=!1,clearTimeout(e)})},cleanData(e){const r={contact:e.contact,report:e.report};if(e.snowReport)r.lastUpdate=e.snowReport.lastupdate,r.lifts=e.lifts.sector.items,r.runs=e.runs.items,this.isCairngorms=!0;else if(r.lastUpdate=e.lastupdate,[r.lifts]=e.lift.sectors,r.lifts=r.lifts.lifts,e.run.areas){const t=e.run.areas.map(n=>n.runs).reduce((n,a)=>n.concat(a)).filter((n,a,o)=>a===o.findIndex(i=>i.name===n.name));r.runs=t}if(r.runs)for(let t=0;t<r.runs.length;t++)r.runs[t].difficulty===null&&(r.runs[t].difficulty="orange");return r},processFullReport(e){this.report=e.runs,this.currentWeather=e.current_weather_conditions,this.weatherForecast=e.weather_forecast,this.roadStatus=e.access_roads,this.news=e.news_from_the_slopes},processLastUpdate(e){const r=new Date(e.year,parseInt(e.month,10)-1,e.day),t={year:"numeric",month:"long",day:"numeric"},n=r.toLocaleDateString(this.locale,t);this.lastUpdate=`${e.hour24}:${e.minute} - ${n}`},processLifts(e){for(let r=0;r<e.length;r++)switch(e[r].status){case"4":case 4:this.statusSummary.lifts.onHold+=1;break;case"3":case 3:this.statusSummary.lifts.limitedPatrol+=1;break;case"2":case 2:this.statusSummary.lifts.opening+=1;break;case"1":case 1:this.statusSummary.lifts.open+=1;break;default:this.statusSummary.lifts.closed+=1;break}this.lifts=e},processRuns(e){for(let r=0;r<e.length;r++){switch(e[r].status){case"4":case 4:this.statusSummary.runs.onHold+=1;break;case"3":case 3:this.statusSummary.runs.limitedPatrol+=1;break;case"2":case 2:this.statusSummary.runs.opening+=1;break;case"1":case 1:this.statusSummary.runs.open+=1;break;default:this.statusSummary.runs.closed+=1;break}for(let t=0;t<this.runLevels.length;t++)this.runLevels[t].colour===e[r].difficulty&&this.runLevels[t].runs.push(e[r])}this.runs=e},getColourLabel(e){return this[`${e}Label`]},setColourToken(){return this.runLevels.map(({...e})=>({...e,colourToken:this.tokens[`vs-color-icon-ski-${e.id}`]}))}}},_hoisted_1$b={class:"vs-ski-scotland-status","data-test":"vs-ski-scotland-status"},_hoisted_2$6={"data-test":"vs-ski__status-label"},_hoisted_3$2={"data-test":"vs-ski__runs-label"},_hoisted_4$2={"data-test":"vs-ski__lifts-label"},_hoisted_5$2={"data-test":"vs-ski__open-label"},_hoisted_6$2={"data-test":"vs-ski__open-label"},_hoisted_7$2={"data-test":"vs-ski__opening-label"},_hoisted_8$1={"data-test":"vs-ski__closed-label"},_hoisted_9$1={"data-test":"vs-ski__open-label"},_hoisted_10$1={"data-test":"vs-ski__last-updated-label"},_hoisted_11$1=["innerHTML"],_hoisted_12=["innerHTML"],_hoisted_13=["innerHTML"],_hoisted_14=["innerHTML"],_hoisted_15=["innerHTML"],_hoisted_16=["data-test"],_hoisted_17={class:"visually-hidden"};function _sfc_render$c(e,r,t,n,a,o){const i=vue.resolveComponent("VsLoadingSpinner"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("VsContainer"),f=vue.resolveComponent("VsWarning"),p=vue.resolveComponent("VsHeading"),v=vue.resolveComponent("VsTableHeaderCell"),m=vue.resolveComponent("VsTableHead"),g=vue.resolveComponent("VsIcon"),_=vue.resolveComponent("VsTableDataCell"),S=vue.resolveComponent("VsTableRow"),C=vue.resolveComponent("VsTableBody"),w=vue.resolveComponent("VsTableFooter"),E=vue.resolveComponent("VsTable"),$=vue.resolveComponent("VsLink"),T=vue.resolveComponent("VsAccordionItem"),B=vue.resolveComponent("VsAccordion");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$b,[!a.jsDisabled&&a.isLoading?(vue.openBlock(),vue.createBlock(d,{key:0},{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(l,{class:"text-center py-100"},{default:vue.withCtx(()=>[vue.createVNode(i),vue.renderSlot(e.$slots,"data-loading")]),_:3})]),_:3})]),_:3})):vue.createCommentVNode("",!0),!a.jsDisabled&&a.displayError?(vue.openBlock(),vue.createBlock(d,{key:1},{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(l,{class:"text-center py-100"},{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"data-unavailable")]),_:3})]),_:3})]),_:3})]),_:3})):vue.createCommentVNode("",!0),vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[a.jsDisabled?(vue.openBlock(),vue.createBlock(l,{key:0,cols:"12",md:"6","data-test":"vs-ski__js-disabled"},{default:vue.withCtx(()=>[vue.createVNode(f,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"js-required")]),_:3})]),_:3})):vue.createCommentVNode("",!0),!a.jsDisabled&&!a.isLoading&&!a.displayError?(vue.openBlock(),vue.createBlock(l,{key:1,cols:"12",md:"6"},{default:vue.withCtx(()=>[vue.createVNode(p,{level:"3","heading-style":"heading-xs","data-test":"vs-ski__runs-lifts-status-label",class:"d-none d-md-block"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.runsLiftsStatusLabel),1)]),_:1}),vue.createVNode(E,{"table-caption":t.runsLiftsStatusLabel},{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_2$6,vue.toDisplayString(t.statusLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(v,{key:0},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$2,vue.toDisplayString(t.runsLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_4$2,vue.toDisplayString(t.liftsLabel),1)]),_:1})]),_:1}),vue.createVNode(C,null,{default:vue.withCtx(()=>[vue.createVNode(S,null,{default:vue.withCtx(()=>[vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createVNode(g,{name:"tick",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_5$2,vue.toDisplayString(t.summaryOpenLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(_,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.runs.open)+"/"+vue.toDisplayString(a.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.open)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1}),a.statusSummary.runs.limitedPatrol||a.statusSummary.lifts.limitedPatrol?(vue.openBlock(),vue.createBlock(S,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createVNode(g,{name:"ski-boot",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_6$2,vue.toDisplayString(t.summaryLimitedPatrolLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(_,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.runs.limitedPatrol)+"/"+vue.toDisplayString(a.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.limitedPatrol)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(S,null,{default:vue.withCtx(()=>[vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createVNode(g,{name:"expected-open",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_7$2,vue.toDisplayString(t.summaryOpeningLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(_,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.runs.opening)+"/"+vue.toDisplayString(a.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.opening)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1}),vue.createVNode(S,null,{default:vue.withCtx(()=>[vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createVNode(g,{name:"status-closed",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_8$1,vue.toDisplayString(t.summaryClosedLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(_,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.runs.closed)+"/"+vue.toDisplayString(a.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.closed)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1}),a.statusSummary.runs.onHold||a.statusSummary.lifts.onHold?(vue.openBlock(),vue.createBlock(S,{key:1},{default:vue.withCtx(()=>[vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createVNode(g,{name:"hourglass",size:"xs",class:"me-050"}),vue.createElementVNode("span",_hoisted_9$1,vue.toDisplayString(t.summaryOnHoldLabel),1)]),_:1}),a.runs.length?(vue.openBlock(),vue.createBlock(_,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.runs.onHold)+"/"+vue.toDisplayString(a.runs.length),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.onHold)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(w,null,{default:vue.withCtx(()=>[vue.createVNode(S,null,{default:vue.withCtx(()=>[vue.createVNode(_,{colspan:"3",role:"cell"},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_10$1,vue.toDisplayString(t.lastUpdatedLabel)+": "+vue.toDisplayString(a.lastUpdate),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["table-caption"]),vue.createVNode($,{href:`#vs-ski-scotland-status__detailed-status-${e.id}`,type:"default",class:"vs-ski-scotland-status__detailed-status-link"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.detailedStatusLabel),1)]),_:1},8,["href"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(l,{cols:"12",md:"5","offset-md":"1",class:"vs-ski-scotland-status__centre-info"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"centre-information")]),_:3})]),_:3}),!a.jsDisabled&&!a.isLoading&&!a.displayError?(vue.openBlock(),vue.createBlock(c,{key:0},{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",md:"9",class:"vs-ski-scotland-status__full-report"},{default:vue.withCtx(()=>[vue.createVNode(p,{level:"3","heading-style":"heading-l","data-test":"vs-ski__snow-conditions-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.snowConditionsLabel),1)]),_:1}),vue.createElementVNode("div",{innerHTML:a.report},null,8,_hoisted_11$1),a.currentWeather.length?(vue.openBlock(),vue.createBlock(p,{key:0,level:"4","heading-style":"heading-xs","data-test":"vs-ski__current-weather-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.currentWeatherLabel),1)]),_:1})):vue.createCommentVNode("",!0),a.currentWeather.length?(vue.openBlock(),vue.createElementBlock("div",{key:1,innerHTML:a.currentWeather},null,8,_hoisted_12)):vue.createCommentVNode("",!0),a.weatherForecast.length?(vue.openBlock(),vue.createBlock(p,{key:2,level:"4","heading-style":"heading-xs","data-test":"vs-ski__weather-forecast-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.weatherForecastLabel),1)]),_:1})):vue.createCommentVNode("",!0),a.weatherForecast.length?(vue.openBlock(),vue.createElementBlock("div",{key:3,innerHTML:a.weatherForecast},null,8,_hoisted_13)):vue.createCommentVNode("",!0),a.roadStatus.length?(vue.openBlock(),vue.createBlock(p,{key:4,level:"4","heading-style":"heading-xs","data-test":"vs-ski__roads-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.roadsLabel),1)]),_:1})):vue.createCommentVNode("",!0),a.roadStatus.length?(vue.openBlock(),vue.createElementBlock("div",{key:5,innerHTML:a.roadStatus},null,8,_hoisted_14)):vue.createCommentVNode("",!0),a.news.length?(vue.openBlock(),vue.createBlock(p,{key:6,level:"4","heading-style":"heading-xs","data-test":"vs-ski__news-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.newsLabel),1)]),_:1})):vue.createCommentVNode("",!0),a.news.length?(vue.openBlock(),vue.createElementBlock("div",{key:7,innerHTML:a.news},null,8,_hoisted_15)):vue.createCommentVNode("",!0)]),_:1})]),_:1})):vue.createCommentVNode("",!0),!a.jsDisabled&&!a.isLoading&&!a.displayError?(vue.openBlock(),vue.createBlock(c,{key:1},{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",md:"9"},{default:vue.withCtx(()=>[vue.createVNode(p,{level:"3","heading-style":"heading-l","data-test":"vs-ski__lift-status-label",id:`vs-ski-scotland-status__detailed-status-${e.id}`},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.liftStatusLabel),1)]),_:1},8,["id"]),vue.createVNode(E,{"table-caption":t.liftStatusLabel,class:"vs-ski-scotland-status__run-status-table"},{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.statusLabel),1)]),_:1}),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.liftLabel),1)]),_:1})]),_:1}),vue.createVNode(C,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.lifts,R=>(vue.openBlock(),vue.createBlock(S,{key:R.name},{default:vue.withCtx(()=>[R.status==="0"||R.status===0?(vue.openBlock(),vue.createBlock(_,{key:0},{default:vue.withCtx(()=>[vue.createVNode(g,{name:"status-closed",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusClosedLabel),1)]),_:1})):vue.createCommentVNode("",!0),R.status==="1"||R.status===1?(vue.openBlock(),vue.createBlock(_,{key:1},{default:vue.withCtx(()=>[vue.createVNode(g,{name:"tick",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOpenLabel),1)]),_:1})):vue.createCommentVNode("",!0),R.status==="2"||R.status===2?(vue.openBlock(),vue.createBlock(_,{key:2},{default:vue.withCtx(()=>[vue.createVNode(g,{name:"expected-open",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOpeningLabel),1)]),_:1})):vue.createCommentVNode("",!0),R.status==="3"||R.status===3?(vue.openBlock(),vue.createBlock(_,{key:3},{default:vue.withCtx(()=>[vue.createVNode(g,{name:"ski-boot",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusLimitedPatrolLabel),1)]),_:1})):vue.createCommentVNode("",!0),R.status==="4"||R.status===4?(vue.openBlock(),vue.createBlock(_,{key:4},{default:vue.withCtx(()=>[vue.createVNode(g,{name:"hourglass",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOnHoldLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(R.name),1)]),_:2},1024)]),_:2},1024))),128))]),_:1}),vue.createVNode(w,null,{default:vue.withCtx(()=>[vue.createVNode(S,null,{default:vue.withCtx(()=>[vue.createVNode(_,{colspan:"2",role:"cell"},{default:vue.withCtx(()=>[vue.createElementVNode("p",null,vue.toDisplayString(t.lastUpdatedLabel)+": "+vue.toDisplayString(a.lastUpdate),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["table-caption"])]),_:1})]),_:1})):vue.createCommentVNode("",!0),!a.jsDisabled&&!a.isLoading&&!a.displayError&&a.runs.length?(vue.openBlock(),vue.createBlock(c,{key:2},{default:vue.withCtx(()=>[vue.createVNode(l,{cols:"12",md:"9"},{default:vue.withCtx(()=>[vue.createVNode(p,{level:"3","heading-style":"heading-l","data-test":"vs-ski__run-status-label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.runStatusLabel),1)]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.filteredRunLevels,R=>(vue.openBlock(),vue.createElementBlock("div",{key:R.name},[vue.createVNode(B,null,{default:vue.withCtx(()=>[vue.createVNode(T,{variant:"transparent","control-id":"accordion_item_"+R.name,"colour-badge":R.colourToken},{title:vue.withCtx(()=>[vue.createElementVNode("div",{"data-test":`vs-ski__${R.name}-label`,class:"d-inline-block"},[vue.createElementVNode("span",_hoisted_17,vue.toDisplayString(o.getColourLabel(R.colour)),1),vue.createTextVNode(" "+vue.toDisplayString(R.name),1)],8,_hoisted_16)]),default:vue.withCtx(()=>[vue.createVNode(E,{"table-caption":R.colour+" - "+R.name,class:"vs-ski-scotland-status__run-status-table"},{default:vue.withCtx(()=>[vue.createVNode(m,null,{default:vue.withCtx(()=>[vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.statusLabel),1)]),_:1}),vue.createVNode(v,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.runLabel),1)]),_:1})]),_:1}),vue.createVNode(C,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(R.runs,L=>(vue.openBlock(),vue.createBlock(S,{key:L.name,"data-test":`vs-ski__${R.name}-row`},{default:vue.withCtx(()=>[L.status==="0"||L.status===0?(vue.openBlock(),vue.createBlock(_,{key:0},{default:vue.withCtx(()=>[vue.createVNode(g,{name:"status-closed",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusClosedLabel),1)]),_:1})):vue.createCommentVNode("",!0),L.status==="1"||L.status===1?(vue.openBlock(),vue.createBlock(_,{key:1},{default:vue.withCtx(()=>[vue.createVNode(g,{name:"tick",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOpenLabel),1)]),_:1})):vue.createCommentVNode("",!0),L.status==="2"||L.status===2?(vue.openBlock(),vue.createBlock(_,{key:2},{default:vue.withCtx(()=>[vue.createVNode(g,{name:"expected-open",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOpeningLabel),1)]),_:1})):vue.createCommentVNode("",!0),L.status==="3"||L.status===3?(vue.openBlock(),vue.createBlock(_,{key:3},{default:vue.withCtx(()=>[vue.createVNode(g,{name:"ski-boot",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusLimitedPatrolLabel),1)]),_:1})):vue.createCommentVNode("",!0),L.status==="4"||L.status===4?(vue.openBlock(),vue.createBlock(_,{key:4},{default:vue.withCtx(()=>[vue.createVNode(g,{name:"hourglass",size:"xs",class:"me-050"}),vue.createTextVNode(" "+vue.toDisplayString(t.statusOnHoldLabel),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(_,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(L.name),1)]),_:2},1024)]),_:2},1032,["data-test"]))),128))]),_:2},1024),vue.createVNode(w,null,{default:vue.withCtx(()=>[vue.createVNode(S,null,{default:vue.withCtx(()=>[vue.createVNode(_,{colspan:"2",role:"cell"},{default:vue.withCtx(()=>[vue.createElementVNode("p",null,vue.toDisplayString(t.lastUpdatedLabel)+": "+vue.toDisplayString(a.lastUpdate),1)]),_:1})]),_:1})]),_:1})]),_:2},1032,["table-caption"])]),_:2},1032,["control-id","colour-badge"])]),_:2},1024)]))),128))]),_:1})]),_:1})):vue.createCommentVNode("",!0)]),_:3})])}const SkiScotlandStatus=_export_sfc(_sfc_main$e,[["render",_sfc_render$c]]),_sfc_main$d={name:"VsSkipTo",status:"prototype",release:"0.0.1",components:{VsLink},props:{skipToText:{type:String,required:!0},hasSearchLink:{type:Boolean,default:!0}},methods:{mainMenuFocus(){const e=document.getElementsByClassName("vs-mega-nav__menu__mobile")[0],r=document.getElementsByClassName("vs-mega-nav-dropdown")[0];if(!this.isUndefined(r)){let t=r.getElementsByClassName("btn")[0];e.offsetParent!==null?(e.querySelectorAll(".btn.dropdown-toggle")[0].click(),t=document.getElementsByClassName("vs-mega-nav-accordion-item--level-1")[0].querySelectorAll(".vs-button.vs-accordion-toggle")[0],setTimeout(()=>{t.focus()},200)):t.focus()}},footerFocus(){const e=document.getElementsByClassName("vs-footer")[0];if(!this.isUndefined(e)){const r=e.getElementsByClassName("vs-footer-accordion-item")[0],t=r.getElementsByClassName("vs-link")[0],n=r.getElementsByClassName("vs-accordion-toggle")[0];n.offsetParent!==null&&!this.isUndefined(n)&&n.click(),!this.isUndefined(e)&&!this.isUndefined(t)&&(e.scrollIntoView(!0),setTimeout(()=>{t.focus()},200))}},isUndefined(e){return typeof e>"u"}}},_hoisted_1$a=["aria-label"],_hoisted_2$5={class:"vs-skip-to__label",id:"skip-to-label"};function _sfc_render$b(e,r,t,n,a,o){const i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("nav",{class:"vs-skip-to d-flex","data-test":"vs-skip-to","aria-label":t.skipToText},[vue.createElementVNode("p",_hoisted_2$5,vue.toDisplayString(t.skipToText)+": ",1),vue.createVNode(i,{href:"#main-nav","data-test":"vs-skip-to-main-menu",onClick:r[0]||(r[0]=l=>o.mainMenuFocus()),id:"main-menu"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"main-menu-text")]),_:3}),t.hasSearchLink?(vue.openBlock(),vue.createBlock(i,{key:0,href:"#site-search-btn","data-test":"vs-skip-to-search",class:"vs-skip-to__search"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"search-text")]),_:3})):vue.createCommentVNode("",!0),vue.createVNode(i,{href:"#main-heading","data-test":"vs-skip-to-main-content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"main-content-text")]),_:3}),vue.createVNode(i,{href:"#site-footer",onClick:r[1]||(r[1]=l=>o.footerFocus()),"data-test":"vs-skip-to-footer"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"footer-text")]),_:3})],8,_hoisted_1$a)}const SkipTo=_export_sfc(_sfc_main$d,[["render",_sfc_render$b]]),_sfc_main$c={name:"VsSocialCreditLink",status:"prototype",release:"0.0.1",components:{VsLink,VsIcon},props:{credit:{type:String,required:!0},socialPostUrl:{type:String,required:!0},source:{type:String,required:!0,validator:e=>e.match(/(instagram)/)}}},_hoisted_1$9={class:"social-credit","data-test":"vs-social-credit-link"};function _sfc_render$a(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$9,[t.source?(vue.openBlock(),vue.createBlock(i,{key:0,name:t.source,variant:"inverse",size:"xs",class:"me-025","data-test":"vs-social-credit-link__icon"},null,8,["name"])):vue.createCommentVNode("",!0),vue.createVNode(l,{class:"social-credit__link","data-test":"vs-social-credit-link__link",href:t.socialPostUrl,variant:"on-dark",type:"external"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.credit),1)]),_:1},8,["href"])])}const SocialCreditLink=_export_sfc(_sfc_main$c,[["render",_sfc_render$a]]),_sfc_main$b={name:"VsSocialShare",status:"prototype",release:"0.0.1",components:{VsButton,VsHeading,VsModuleWrapper,BPopover:bootstrapVueNext.BPopover,VsRow,VsContainer,VsCol},provide(){return{referringPageUrl:this.pageUrl,pageTitle:this.pageTitle,noJs:this.noJs}},props:{shareBtnText:{type:String,required:!0},sharePopoverTitle:{type:String,required:!0},pageUrl:{type:String,required:!0},pageTitle:{type:String,default:""},closeAltText:{type:String,required:!0},id:{type:String,required:!0},noJs:{type:Boolean,default:!1}},data(){return{copyLink:!1,renderPopover:!1}},mounted(){this.renderPopover=!0},methods:{onClose(e){this.$refs.popover.hide(e)},onShown(){this.focusFirst()},onHidden(){this.focusRef(this.$refs.shareButton)},onHide(e){this.copyLink&&(e.preventDefault(),this.focusFirst(),this.copyLink=!1)},onCopyLink(){this.copyLink=!0},focusRef(e){this.$nextTick(()=>{this.$nextTick(()=>{(e.$el||e).focus()})})},focusFirst(){this.$nextTick(()=>{this.$nextTick(()=>{this.$refs.popoverShareRow.$el.querySelector(".vs-social-share-item a ").focus()})})},tabFromClose(e){e.shiftKey||(e.preventDefault(),this.focusFirst())},tabBackFromHidden(e){e.shiftKey&&(e.preventDefault(),this.focusRef(this.$refs.closeButton))}}};function _sfc_render$9(e,r,t,n,a,o){const i=vue.resolveComponent("VsButton"),l=vue.resolveComponent("VsHeading"),c=vue.resolveComponent("VsRow"),d=vue.resolveComponent("BPopover"),f=vue.resolveComponent("VsCol"),p=vue.resolveComponent("VsContainer"),v=vue.resolveComponent("VsModuleWrapper");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-social-share",t.noJs?"vs-module-wrapper__outer--hidden":"vs-module-wrapper__outer--light"]),"data-test":"vs-social-share",ref:"socialShareContainer"},[t.noJs?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(i,{key:0,class:"vs-social-share__share-btn",variant:"transparent",icon:"share",id:`vs-social-share-popover--${t.id}`,ref:"shareButton"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.shareBtnText),1)]),_:1},8,["id"])),!t.noJs&&a.renderPopover?(vue.openBlock(),vue.createBlock(d,{key:1,"custom-class":"vs-social-share__popover",target:`vs-social-share-popover--${t.id}`,click:!0,container:"body",placement:"left-end",offset:"-100",onShown:o.onShown,onHidden:o.onHidden,onHide:o.onHide,ref:"popover"},{default:vue.withCtx(()=>[vue.createVNode(l,{level:"3",tabindex:"0","heading-style":"heading-m",ref:"shareHeader",class:"vs-social-share__header",onKeydown:r[0]||(r[0]=vue.withKeys(m=>o.tabBackFromHidden(m),["tab"]))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.sharePopoverTitle),1)]),_:1},512),vue.createVNode(c,{ref:"popoverShareRow"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default",{onCopyLink:o.onCopyLink})]),_:3},512),vue.createVNode(i,{"icon-only":"",class:"vs-social-share__close-btn",icon:"close",variant:"transparent",ref:"closeButton",onClick:o.onClose,onKeydown:r[1]||(r[1]=vue.withKeys(m=>o.tabFromClose(m),["tab"]))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.closeAltText),1)]),_:1},8,["onClick"])]),_:3},8,["target","onShown","onHidden","onHide"])):vue.createCommentVNode("",!0),t.noJs?(vue.openBlock(),vue.createBlock(v,{key:2,class:"vs-social-share--module-list"},{default:vue.withCtx(()=>[vue.createVNode(p,null,{default:vue.withCtx(()=>[vue.createVNode(c,null,{default:vue.withCtx(()=>[vue.createVNode(f,{cols:"12"},{default:vue.withCtx(()=>[vue.createVNode(l,{level:"2","heading-style":"heading-l",class:"mb-300 mt-0"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.sharePopoverTitle),1)]),_:1})]),_:1})]),_:1}),vue.createVNode(c,{class:"justify-content-center"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3})):vue.createCommentVNode("",!0)],2)}const SocialShare=_export_sfc(_sfc_main$b,[["render",_sfc_render$9]]),_sfc_main$a={name:"VsSocialShareItem",status:"prototype",release:"0.0.1",components:{VsCol,VsLink,VsIcon},mixins:[dataLayerMixin],inject:{referringPageUrl:{default:""},pageTitle:{default:""},noJs:{default:""}},props:{name:{type:String,required:!0,validator:e=>e.match(/(facebook|twitter|pinterest|link|email|whatsapp)/)},linkText:{type:String,required:!0},linkCopiedText:{type:String,default:""}},emits:["copyLinkClicked"],data(){return{show:!1}},computed:{iconColour(){let e="";switch(this.name){case"facebook":e="#1877f2";break;case"x-twitter":e="#0F1419";break;case"pinterest":e="#E60023";break;case"whatsapp":e="#455a64";break;default:e="#000000"}return e},encodedPageTitle(){return encodeURI(this.pageTitle)},shareUrl(){let e="";switch(this.name){case"facebook":e=`https://www.facebook.com/sharer/sharer.php?u=${this.referringPageUrl}&t=${this.encodedPageTitle}`;break;case"x-twitter":e=`https://twitter.com/intent/tweet?text=${this.encodedPageTitle}%20@VisitScotland&url=${this.referringPageUrl}`;break;case"pinterest":e=`https://www.pinterest.com/pin/create/button/?url=${this.referringPageUrl}`;break;case"email":e=`mailto:?body=${this.encodedPageTitle}%20-%20${this.referringPageUrl}&subject=${this.encodedPageTitle}`;break;case"whatsapp":e=`https://wa.me/?text=${this.encodedPageTitle}%20-%20${this.referringPageUrl}`;break;case"link":e="#";break;default:e="#"}return e}},methods:{copyToClipboard(e){if(this.name==="link"){if(this.$emit("copyLinkClicked"),!navigator.clipboard)return;navigator.clipboard.writeText&&navigator.clipboard.writeText(this.referringPageUrl),this.show=!0,setTimeout(()=>{this.show=!1},2e3)}this.trackShareClick(e)},trackShareClick(e){this.createDataLayerObject("socialShareDataEvent",e,this.href)}}},_hoisted_1$8={class:"vs-social-share-item__text"};function _sfc_render$8(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsLink"),c=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(c,{class:"vs-social-share-item","data-test":"vs-social-share-item",cols:4,md:o.noJs?2:4},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"vs-social-share-item__link",href:o.shareUrl,onClick:r[0]||(r[0]=d=>o.copyToClipboard(d)),id:`vs-share-${t.name}`},{default:vue.withCtx(()=>[vue.createVNode(i,{name:t.name,"custom-colour":o.iconColour,size:"xl","small-size":"lg"},null,8,["name","custom-colour"]),vue.createElementVNode("span",_hoisted_1$8,vue.toDisplayString(a.show?t.linkCopiedText:t.linkText),1)]),_:1},8,["href","id"])]),_:1},8,["md"])}const SocialShareItem=_export_sfc(_sfc_main$a,[["render",_sfc_render$8]]),_hoisted_1$7={class:"vs-styled-list__list"},_hoisted_2$4={class:"vs-styled-list__source"},_sfc_main$9={__name:"StyledList",props:{source:{type:String,default:null},variant:{type:String,default:"icon",validator:e=>["icon","image","image-horizontal","numbered"].includes(e)}},setup(e){const r=e;return(t,n)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-styled-list",`vs-styled-list--${r.variant}`]),"data-test":"vs-styled-list"},[vue.createVNode(vue.unref(VsContainer),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(VsRow),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(VsCol),{md:r.variant==="icon"?"8":null},{default:vue.withCtx(()=>[vue.createElementVNode("ul",_hoisted_1$7,[vue.renderSlot(t.$slots,"default")])]),_:3},8,["md"])]),_:3}),r.source?(vue.openBlock(),vue.createBlock(vue.unref(VsRow),{key:0},{default:vue.withCtx(()=>[vue.createElementVNode("p",_hoisted_2$4,vue.toDisplayString(r.source),1)]),_:1})):vue.createCommentVNode("",!0)]),_:3})],2))}},_hoisted_1$6={class:"vs-styled-list__item","data-test":"vs-styled-list__item"},_sfc_main$8={__name:"StyledListItem",props:{heading:{type:String,required:!0},headingLevel:{type:Number,default:3,validator:e=>lodashExports.isNumber(e)?e>0&&e<7:e.match(/(1|2|3|4|5|6)/)},imageSrc:{type:String,default:null},variant:{type:String,default:"icon",validator:e=>["icon","image","image-horizontal","numbered"].includes(e)}},setup(e){const r=e;return(t,n)=>(vue.openBlock(),vue.createElementBlock("li",_hoisted_1$6,[vue.createVNode(vue.unref(VsRow),null,{default:vue.withCtx(()=>[r.variant==="image"?(vue.openBlock(),vue.createBlock(vue.unref(VsCol),{key:0,cols:"12",md:"2"},{default:vue.withCtx(()=>[vue.createVNode(VsImg,{src:r.imageSrc},null,8,["src"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(VsCol),{md:r.variant==="image"?"10":"12"},{default:vue.withCtx(()=>[r.variant==="image-horizontal"?(vue.openBlock(),vue.createBlock(VsImg,{key:0,src:r.imageSrc},null,8,["src"])):vue.createCommentVNode("",!0),vue.createVNode(VsHeading,{level:r.headingLevel,"heading-style":"heading-xxs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(e.heading),1)]),_:1},8,["level"]),vue.createVNode(VsRichTextWrapper,null,{default:vue.withCtx(()=>[vue.renderSlot(t.$slots,"default")]),_:3})]),_:3},8,["md"])]),_:3})]))}},_sfc_main$7={name:"VsSummaryBoxList",status:"prototype",release:"0.0.1"},_hoisted_1$5={class:"vs-summary-box","data-test":"vs-summary-box-list"},_hoisted_2$3={class:"vs-summary-box__list list-unstyled d-flex flex-wrap p-050 p-sm-075"};function _sfc_render$7(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$5,[vue.createElementVNode("ul",_hoisted_2$3,[vue.renderSlot(e.$slots,"default")])])}const SummaryBoxList=_export_sfc(_sfc_main$7,[["render",_sfc_render$7]]),_sfc_main$6={name:"VsSummaryBoxListItem",status:"prototype",release:"0.0.1",components:{VsIcon},props:{text:{type:String,default:""},label:{type:String,default:""},icon:{type:String,default:""},iconLabel:{type:String,default:""}}},_hoisted_1$4={class:"vs-summary-box-item position-relative","data-test":"vs-summary-box-list-item"},_hoisted_2$2={key:0,class:"text-center vs-summary-box-item__label d-block position-absolute w-100","data-test":"vs-summary-box-list-item-label"},_hoisted_3$1={class:"vs-summary-box-item__label-inner"},_hoisted_4$1={key:1,class:"vs-summary-box-item__display position-absolute d-block text-center w-100","data-test":"vs-summary-box-list-item-display"},_hoisted_5$1={key:2,class:"vs-summary-box-item__icon d-flex align-items-center position-absolute justify-content-center w-100","data-test":"vs-summary-box-list-item-icon-with-label"},_hoisted_6$1={class:"icon-wrapper text-end"},_hoisted_7$1={class:"text-wrapper d-block w-auto pt-100"};function _sfc_render$6(e,r,t,n,a,o){const i=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$4,[t.label?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$2,[vue.createElementVNode("span",_hoisted_3$1,vue.toDisplayString(t.label),1)])):vue.createCommentVNode("",!0),t.text?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$1,[vue.createElementVNode("span",null,vue.toDisplayString(t.text),1)])):vue.createCommentVNode("",!0),t.icon?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$1,[vue.createElementVNode("div",_hoisted_6$1,[vue.createVNode(i,{name:t.icon,size:"xl"},null,8,["name"])]),vue.createElementVNode("div",_hoisted_7$1,[vue.createElementVNode("span",null,vue.toDisplayString(t.iconLabel),1)])])):vue.createCommentVNode("",!0)])}const SummaryBoxListItem=_export_sfc(_sfc_main$6,[["render",_sfc_render$6],["__scopeId","data-v-c1033825"]]),_sfc_main$5={name:"VsSummaryBoxDistanceListItem",status:"prototype",release:"0.0.1",props:{miles:{type:String,default:""},kilometres:{type:String,default:""},distanceLabel:{type:String,default:"Distance"},milesLabel:{type:String,default:"miles"},kilometresLabel:{type:String,default:"km"},showMiles:{type:Boolean,default:!0}}},_withScopeId=e=>(vue.pushScopeId("data-v-66ab4829"),e=e(),vue.popScopeId(),e),_hoisted_1$3={class:"vs-summary-box-distance position-relative","data-test":"vs-summary-box-distance-list-item"},_hoisted_2$1={key:0,class:"text-center vs-summary-box-distance__label d-block position-absolute w-100","data-test":"vs-summary-box-distance-list-item-label"},_hoisted_3={class:"vs-summary-box-distance__label-inner"},_hoisted_4={class:"vs-summary-box-distance__display position-absolute d-block text-center w-100","data-test":"vs-summary-box-distance-display"},_hoisted_5={class:"vs-summary-box-distance__display-entry"},_hoisted_6={class:"vs-summary-box-distance__display-value"},_hoisted_7={class:"vs-summary-box-distance__display-label"},_hoisted_8=_withScopeId(()=>vue.createElementVNode("hr",{class:"vs-summary-box-distance__divider"},null,-1)),_hoisted_9={class:"vs-summary-box-distance__display-entry"},_hoisted_10={class:"vs-summary-box-distance__display-value"},_hoisted_11={class:"vs-summary-box-distance__display-label"};function _sfc_render$5(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$3,[t.distanceLabel?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1,[vue.createElementVNode("span",_hoisted_3,vue.toDisplayString(t.distanceLabel),1)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4,[vue.createElementVNode("div",_hoisted_5,[vue.createElementVNode("span",_hoisted_6,vue.toDisplayString(t.miles),1),vue.createElementVNode("span",_hoisted_7,vue.toDisplayString(t.milesLabel),1)]),_hoisted_8,vue.createElementVNode("div",_hoisted_9,[vue.createElementVNode("span",_hoisted_10,vue.toDisplayString(t.kilometres),1),vue.createElementVNode("span",_hoisted_11,vue.toDisplayString(t.kilometresLabel),1)])])])}const SummaryBoxDistanceListItem=_export_sfc(_sfc_main$5,[["render",_sfc_render$5],["__scopeId","data-v-66ab4829"]]),_sfc_main$4={name:"VsTabs",status:"prototype",release:"0.0.1",components:{BTabs:bootstrapVueNext.BTabs}},_hoisted_1$2={class:"vs-tabs","data-test":"vs-tabs"};function _sfc_render$4(e,r,t,n,a,o){const i=vue.resolveComponent("BTabs");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$2,[vue.createVNode(i,null,{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3})])}const Tabs=_export_sfc(_sfc_main$4,[["render",_sfc_render$4]]),_sfc_main$3={name:"VsTabItem",status:"prototype",release:"0.0.1",components:{VsHeading,BTab:bootstrapVueNext.BTab},props:{title:{type:String,required:!0}}};function _sfc_render$3(e,r,t,n,a,o){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("BTab");return vue.openBlock(),vue.createBlock(l,{class:"vs-tab__item","data-test":"vs-tab__item","title-link-class":"vs-tab-link vs-heading",title:t.title},{default:vue.withCtx(()=>[vue.createVNode(i,{level:"3","heading-style":"heading-xxs",class:"vs-tab__item__heading"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),_:1}),vue.renderSlot(e.$slots,"default")]),_:3},8,["title"])}const TabItem=_export_sfc(_sfc_main$3,[["render",_sfc_render$3]]),_sfc_main$2={name:"VsTag",status:"prototype",release:"0.0.1",components:{VsLink},props:{href:{type:String,required:!0}}};function _sfc_render$2(e,r,t,n,a,o){const i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createBlock(i,{class:"vs-tag me-050 mb-100","data-test":"vs-tag",href:t.href},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["href"])}const Tag=_export_sfc(_sfc_main$2,[["render",_sfc_render$2]]),_sfc_main$1={name:"VsTagManagerWrapper",status:"prototype",release:"0.0.1",mixins:[dataLayerMixin],props:{payload:{type:Object,default:()=>{}}},mounted(){this.processPayload(this.payload),document.addEventListener("DOMContentLoaded",()=>{this.dataLayerStore.setTestRun(!0),this.dataLayerStore.setPageUrl(window.location.href)}),this.createDataLayerObject("pageViewTemplateDataEvent")},methods:{processPayload(e){e!==void 0&&Object.keys(e).forEach(r=>{const t=r.replace(/-/g,"_");this.dataLayerStore.processPayload({key:t,value:e[r]})})}}},_hoisted_1$1={"data-test":"vs-tag-manager-wrapper",class:"d-none"};function _sfc_render$1(e,r,t,n,a,o){return vue.openBlock(),vue.createElementBlock("span",_hoisted_1$1)}const TagManagerWrapper=_export_sfc(_sfc_main$1,[["render",_sfc_render$1]]);var dist={exports:{}},Sister;/**
367
367
  * @link https://github.com/gajus/sister for the canonical source repository
368
368
  * @license https://github.com/gajus/sister/blob/master/LICENSE BSD 3-Clause
369
- */Sister=function(){var e={},r={};return e.on=function(t,n){var a={name:t,handler:n};return r[t]=r[t]||[],r[t].unshift(a),a},e.off=function(t){var n=r[t.name].indexOf(t);n!==-1&&r[t.name].splice(n,1)},e.trigger=function(t,n){var a=r[t],o;if(a)for(o=a.length;o--;)a[o].handler(n)},e};var sister=Sister,YouTubePlayer={exports:{}},browser={exports:{}},ms,hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var e=1e3,r=e*60,t=r*60,n=t*24,a=n*7,o=n*365.25;ms=function(f,p){p=p||{};var v=typeof f;if(v==="string"&&f.length>0)return i(f);if(v==="number"&&isFinite(f))return p.long?c(f):l(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function i(f){if(f=String(f),!(f.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(p){var v=parseFloat(p[1]),m=(p[2]||"ms").toLowerCase();switch(m){case"years":case"year":case"yrs":case"yr":case"y":return v*o;case"weeks":case"week":case"w":return v*a;case"days":case"day":case"d":return v*n;case"hours":case"hour":case"hrs":case"hr":case"h":return v*t;case"minutes":case"minute":case"mins":case"min":case"m":return v*r;case"seconds":case"second":case"secs":case"sec":case"s":return v*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return v;default:return}}}}function l(f){var p=Math.abs(f);return p>=n?Math.round(f/n)+"d":p>=t?Math.round(f/t)+"h":p>=r?Math.round(f/r)+"m":p>=e?Math.round(f/e)+"s":f+"ms"}function c(f){var p=Math.abs(f);return p>=n?d(f,p,n,"day"):p>=t?d(f,p,t,"hour"):p>=r?d(f,p,r,"minute"):p>=e?d(f,p,e,"second"):f+" ms"}function d(f,p,v,m){var g=p>=v*1.5;return Math.round(f/v)+" "+m+(g?"s":"")}return ms}function setup(e){t.debug=t,t.default=t,t.coerce=c,t.disable=o,t.enable=a,t.enabled=i,t.humanize=requireMs(),t.destroy=d,Object.keys(e).forEach(f=>{t[f]=e[f]}),t.names=[],t.skips=[],t.formatters={};function r(f){let p=0;for(let v=0;v<f.length;v++)p=(p<<5)-p+f.charCodeAt(v),p|=0;return t.colors[Math.abs(p)%t.colors.length]}t.selectColor=r;function t(f){let p,v=null,m,g;function _(...S){if(!_.enabled)return;const C=_,w=Number(new Date),E=w-(p||w);C.diff=E,C.prev=p,C.curr=w,p=w,S[0]=t.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let $=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(B,R)=>{if(B==="%%")return"%";$++;const L=t.formatters[R];if(typeof L=="function"){const te=S[$];B=L.call(C,te),S.splice($,1),$--}return B}),t.formatArgs.call(C,S),(C.log||t.log).apply(C,S)}return _.namespace=f,_.useColors=t.useColors(),_.color=t.selectColor(f),_.extend=n,_.destroy=t.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>v!==null?v:(m!==t.namespaces&&(m=t.namespaces,g=t.enabled(f)),g),set:S=>{v=S}}),typeof t.init=="function"&&t.init(_),_}function n(f,p){const v=t(this.namespace+(typeof p>"u"?":":p)+f);return v.log=this.log,v}function a(f){t.save(f),t.namespaces=f,t.names=[],t.skips=[];let p;const v=(typeof f=="string"?f:"").split(/[\s,]+/),m=v.length;for(p=0;p<m;p++)v[p]&&(f=v[p].replace(/\*/g,".*?"),f[0]==="-"?t.skips.push(new RegExp("^"+f.slice(1)+"$")):t.names.push(new RegExp("^"+f+"$")))}function o(){const f=[...t.names.map(l),...t.skips.map(l).map(p=>"-"+p)].join(",");return t.enable(""),f}function i(f){if(f[f.length-1]==="*")return!0;let p,v;for(p=0,v=t.skips.length;p<v;p++)if(t.skips[p].test(f))return!1;for(p=0,v=t.names.length;p<v;p++)if(t.names[p].test(f))return!0;return!1}function l(f){return f.toString().substring(2,f.toString().length-2).replace(/\.\*\?$/,"*")}function c(f){return f instanceof Error?f.stack||f.message:f}function d(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}var common=setup;(function(e,r){var t={ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",JETBRAINS_INTELLIJ_COMMAND_END_MARKER:"ZU98Tjo1s9mdtrKJDjkDGSGGEp5tw63GnQvv7ElLZlCMGXy1aOp9jFhC5BjusZy0",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.7",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-066347a5;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-9cb82016;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-49607556;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;;D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\node_modules\\.bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSExecutionPolicyPreference:"Bypass",PSModulePath:"D:\\Users\\martin.taylor\\Documents\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TERMINAL_EMULATOR:"JetBrains-JediTerm",TERM_SESSION_ID:"1ff63cfe-b994-4472-afa5-0ddc6b11b75f",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"};r.formatArgs=a,r.save=o,r.load=i,r.useColors=n,r.storage=l(),r.destroy=(()=>{let d=!1;return()=>{d||(d=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function a(d){if(d[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+d[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const f="color: "+this.color;d.splice(1,0,f,"color: inherit");let p=0,v=0;d[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(p++,m==="%c"&&(v=p))}),d.splice(v,0,f)}r.log=console.debug||console.log||(()=>{});function o(d){try{d?r.storage.setItem("debug",d):r.storage.removeItem("debug")}catch{}}function i(){let d;try{d=r.storage.getItem("debug")}catch{}return!d&&typeof process<"u"&&"env"in process&&(d=t.DEBUG),d}function l(){try{return localStorage}catch{}}e.exports=common(r);const{formatters:c}=e.exports;c.j=function(d){try{return JSON.stringify(d)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}}})(browser,browser.exports);var browserExports=browser.exports,FunctionStateMap={exports:{}},PlayerStates={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},e.exports=r.default})(PlayerStates,PlayerStates.exports);var PlayerStatesExports=PlayerStates.exports;(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=PlayerStatesExports,n=a(t);function a(o){return o&&o.__esModule?o:{default:o}}r.default={pauseVideo:{acceptableStates:[n.default.ENDED,n.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[n.default.ENDED,n.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[n.default.ENDED,n.default.PLAYING,n.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},e.exports=r.default})(FunctionStateMap,FunctionStateMap.exports);var FunctionStateMapExports=FunctionStateMap.exports,eventNames={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],e.exports=r.default})(eventNames,eventNames.exports);var eventNamesExports=eventNames.exports,functionNames={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe","getSphericalProperties","setSphericalProperties"],e.exports=r.default})(functionNames,functionNames.exports);var functionNamesExports=functionNames.exports;(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=browserExports,n=f(t),a=FunctionStateMapExports,o=f(a),i=eventNamesExports,l=f(i),c=functionNamesExports,d=f(c);function f(m){return m&&m.__esModule?m:{default:m}}const p=(0,n.default)("youtube-player"),v={};v.proxyEvents=m=>{const g={};for(const _ of l.default){const S="on"+_.slice(0,1).toUpperCase()+_.slice(1);g[S]=C=>{p('event "%s"',S,C),m.trigger(_,C)}}return g},v.promisifyPlayer=(m,g=!1)=>{const _={};for(const S of d.default)g&&o.default[S]?_[S]=(...C)=>m.then(w=>{const E=o.default[S],$=w.getPlayerState(),T=w[S].apply(w,C);return E.stateChangeRequired||Array.isArray(E.acceptableStates)&&!E.acceptableStates.includes($)?new Promise(B=>{const R=()=>{const L=w.getPlayerState();let te;typeof E.timeout=="number"&&(te=setTimeout(()=>{w.removeEventListener("onStateChange",R),B()},E.timeout)),Array.isArray(E.acceptableStates)&&E.acceptableStates.includes(L)&&(w.removeEventListener("onStateChange",R),clearTimeout(te),B())};w.addEventListener("onStateChange",R)}).then(()=>T):T}):_[S]=(...C)=>m.then(w=>w[S].apply(w,C));return _},r.default=v,e.exports=r.default})(YouTubePlayer,YouTubePlayer.exports);var YouTubePlayerExports=YouTubePlayer.exports,loadYouTubeIframeApi={exports:{}},loadScript=function e(r,t,n){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");typeof t=="function"&&(n=t,t={}),t=t||{},n=n||function(){},o.type=t.type||"text/javascript",o.charset=t.charset||"utf8",o.async="async"in t?!!t.async:!0,o.src=r,t.attrs&&setAttributes(o,t.attrs),t.text&&(o.text=""+t.text);var i="onload"in o?stdOnEnd:ieOnEnd;i(o,n),o.onload||stdOnEnd(o,n),a.appendChild(o)};function setAttributes(e,r){for(var t in r)e.setAttribute(t,r[t])}function stdOnEnd(e,r){e.onload=function(){this.onerror=this.onload=null,r(null,e)},e.onerror=function(){this.onerror=this.onload=null,r(new Error("Failed to load "+this.src),e)}}function ieOnEnd(e,r){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,r(null,e))}}(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=loadScript,n=a(t);function a(o){return o&&o.__esModule?o:{default:o}}r.default=o=>new Promise(l=>{if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function){l(window.YT);return}else{const d=window.location.protocol==="http:"?"http:":"https:";(0,n.default)(d+"//www.youtube.com/iframe_api",f=>{f&&o.trigger("error",f)})}const c=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{c&&c(),l(window.YT)}}),e.exports=r.default})(loadYouTubeIframeApi,loadYouTubeIframeApi.exports);var loadYouTubeIframeApiExports=loadYouTubeIframeApi.exports;(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=sister,n=c(t),a=YouTubePlayerExports,o=c(a),i=loadYouTubeIframeApiExports,l=c(i);function c(f){return f&&f.__esModule?f:{default:f}}let d;r.default=(f,p={},v=!1)=>{const m=(0,n.default)();if(d||(d=(0,l.default)(m)),p.events)throw new Error("Event handlers cannot be overwritten.");if(typeof f=="string"&&!document.getElementById(f))throw new Error('Element "'+f+'" does not exist.');p.events=o.default.proxyEvents(m);const g=new Promise(S=>{typeof f=="object"&&f.playVideo instanceof Function?S(f):d.then(C=>{const w=new C.Player(f,p);return m.on("ready",()=>{S(w)}),null})}),_=o.default.promisifyPlayer(g,v);return _.on=m.on,_.off=m.off,_},e.exports=r.default})(dist,dist.exports);var distExports=dist.exports;const player=getDefaultExportFromCjs(distExports),UNSTARTED=-1,ENDED=0,PLAYING=1,PAUSED=2,BUFFERING=3,CUED=5,VueYoutube={name:"Youtube",props:{videoId:String,playerVars:{type:Object,default:()=>({})},height:{type:[Number,String],default:360},width:{type:[Number,String],default:640},resize:{type:Boolean,default:!1},resizeDelay:{type:Number,default:100},nocookie:{type:Boolean,default:!1},fitParent:{type:Boolean,default:!1}},data(){return{player:{},events:{[UNSTARTED]:"unstarted",[PLAYING]:"playing",[PAUSED]:"paused",[ENDED]:"ended",[BUFFERING]:"buffering",[CUED]:"cued"},resizeTimeout:null}},computed:{aspectRatio(){return this.width/this.height}},methods:{playerReady(e){this.$emit("ready",e.target)},playerStateChange(e){e.data!==null&&e.data!==UNSTARTED&&this.$emit(this.events[e.data],e.target)},playerError(e){this.$emit("error",e.target)},updatePlayer(e){if(!e){this.player.stopVideo();return}const r={videoId:e};if(typeof this.playerVars.start=="number"&&(r.startSeconds=this.playerVars.start),typeof this.playerVars.end=="number"&&(r.endSeconds=this.playerVars.end),this.playerVars.autoplay===1){this.player.loadVideoById(r);return}this.player.cueVideoById(r)},resizeProportionally(){this.player.getIframe().then(e=>{const r=this.fitParent?e.parentElement.offsetWidth:e.offsetWidth,t=r/this.aspectRatio;this.player.setSize(r,t)})},onResize(){clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.resizeProportionally,this.resizeDelay)}},watch:{videoId:"updatePlayer",resize(e){e?(window.addEventListener("resize",this.onResize),this.resizeProportionally()):(window.removeEventListener("resize",this.onResize),this.player.setSize(this.width,this.height))},width(e){this.player.setSize(e,this.height)},height(e){this.player.setSize(this.width,e)}},beforeUnmount(){this.player!==null&&this.player.destroy&&(this.player.destroy(),delete this.player),this.resize&&window.removeEventListener("resize",this.onResize)},mounted(){window.YTConfig={host:"https://www.youtube.com/iframe_api"};const e=this.nocookie?"https://www.youtube-nocookie.com":"https://www.youtube.com";this.player=player(this.$el,{host:e,width:this.width,height:this.height,videoId:this.videoId,playerVars:this.playerVars}),this.player.on("ready",this.playerReady),this.player.on("stateChange",this.playerStateChange),this.player.on("error",this.playerError),this.resize&&window.addEventListener("resize",this.onResize),this.fitParent&&this.resizeProportionally()},render(){return vue.h("div")}};let videoStore=null;const _sfc_main={name:"VsVideo",status:"prototype",release:"0.0.1",components:{VsWarning,VueYoutube},mixins:[dataLayerMixin],props:{language:{type:String,default:"en"},videoId:{type:String,required:!0},videoTitle:{type:String,default:""},singleMinuteDescriptor:{type:String,default:"%s minute video"},pluralMinuteDescriptor:{type:String,default:"%s minute video"},noJsMessage:{type:String,required:!0},errorMessage:{type:String,default:""}},data(){return{duration:{minutes:0,seconds:0,roundedMinutes:""},playerVars:{hl:this.language},reRendering:!1,shouldAutoPlay:!1,jsDisabled:!0}},computed:{warningText(){let e="";return this.videoId&&this.jsDisabled&&(e=this.noJsMessage),e},player(){return this.$refs.youtube?this.$refs.youtube.player:null}},mounted(){this.jsDisabled=jsIsDisabled(),videoStore=useVideoStore(),this.setEventListeners()},methods:{async playerReady(){await this.getPlayerDetails(),this.shouldAutoPlay&&(this.shouldAutoPlay=!1,this.playVideo())},async playVideo(){this.player&&await this.player.playVideo()},async pauseVideo(){this.player&&await this.player.pauseVideo()},async stopVideo(){this.player&&await this.player.stopVideo()},youtubePlaying(){this.analyticsEvent("play")},youtubePaused(){this.analyticsEvent("pause")},youtubeEnded(){this.analyticsEvent("ended")},analyticsEvent(e){let r=0,t=0;this.player.getCurrentTime().then(n=>(r=n,this.player?this.player.getDuration():null)).then(n=>{t=n}).then(()=>{const n=r/t*100;this.createDataLayerObject("videoTrackingDataEvent",{title:this.videoTitle,status:e,percent:Math.round(n)})})},async getPlayerDetails(){this.player&&await this.player.getDuration().then(e=>{this.formatTime(e),this.storeVideoDetails()})},formatTime(e){const r=Math.floor(e/60),t=Math.round(e-r*60);this.duration.minutes=r,this.duration.seconds=t;const n=this.getRoundedMinutes(r,t);this.duration.roundedMinutes=this.formatSingularOrPlural(n)},getRoundedMinutes(e,r){return r<30&&e!==0?e:e+1},formatSingularOrPlural(e){return e===1?this.singleMinuteDescriptor.replace("%s",e):this.pluralMinuteDescriptor.replace("%s",e)},pad(e){return e>=10?e:`0${e}`},storeVideoDetails(){videoStore.addVideo({videoId:this.videoId,videoDurationMsg:this.duration.roundedMinutes,videoDuration:this.duration.minutes*60+this.duration.seconds,videoFullDuration:this.duration})},setEventListeners(){this.emitter&&this.emitter.on("video-controls",e=>{e.id===this.videoId&&(e.action==="modal-opened"&&this.playVideo(),e.action==="modal-closed"&&this.stopVideo(),e.action==="play"?this.playVideo():e.action==="pause"&&this.pauseVideo())})}}},_hoisted_1={key:0,class:"vs-video","data-test":"vs-video"},_hoisted_2={class:"vs-video__iframe-wrapper"};function _sfc_render(e,r,t,n,a,o){const i=vue.resolveComponent("VueYoutube"),l=vue.resolveComponent("VsWarning");return a.reRendering?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1,[vue.createElementVNode("div",_hoisted_2,[vue.createVNode(i,{autoplay:0,"video-id":t.videoId,vars:a.playerVars,ref:"youtube",nocookie:!0,onPlaying:o.youtubePlaying,onPaused:o.youtubePaused,onEnded:o.youtubeEnded,onReady:o.playerReady},null,8,["video-id","vars","onPlaying","onPaused","onEnded","onReady"]),vue.createVNode(l,{"data-test":"vs-video__warning--no-js",class:"vs-video__warning vs-video__warning--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.noJsMessage),1)]),_:1})])]))}const Video=_export_sfc(_sfc_main,[["render",_sfc_render]]);exports.VsAccordion=VsAccordion;exports.VsAccordionItem=VsAccordionItem;exports.VsAccordionToggle=VsAccordionToggle;exports.VsAddress=Address;exports.VsAlert=Alert;exports.VsArticle=Article;exports.VsArticleSection=ArticleSection;exports.VsArticleSidebar=ArticleSidebar;exports.VsBadge=_sfc_main$28;exports.VsBanner=Banner;exports.VsBlogDetails=BlogDetails;exports.VsBreadcrumb=Breadcrumb;exports.VsBreadcrumbItem=BreadcrumbItem;exports.VsButton=VsButton;exports.VsButtonToggleGroup=ButtonToggleGroup;exports.VsCannedSearch=CannedSearch;exports.VsCaption=VsCaption;exports.VsCarbonCalculator=CarbonCalculator;exports.VsCarousel=VsCarousel;exports.VsCarouselSlide=CarouselSlide;exports.VsCheckbox=VsCheckbox;exports.VsCol=VsCol;exports.VsContainer=VsContainer;exports.VsCookieChecker=CookieChecker;exports.VsDescriptionList=DescriptionList;exports.VsDescriptionListItem=DescriptionListItem;exports.VsDropdown=VsDropdown;exports.VsDropdownItem=VsDropdownItem;exports.VsEmbedWrapper=EmbedWrapper;exports.VsFooter=Footer;exports.VsFooterAccordionItem=FooterAccordionItem;exports.VsFooterCopyright=FooterCopyright;exports.VsFooterNavListItem=FooterNavListItem;exports.VsFooterSocialItem=FooterSocialItem;exports.VsFooterSocialMenu=FooterSocialMenu;exports.VsFooterUtilityList=FooterUtilityList;exports.VsForm=Form;exports.VsGlobalMenu=GlobalMenu;exports.VsGlobalMenuLanguage=GlobalMenuLanguage;exports.VsGlobalMenuLanguageItem=GlobalMenuLanguageItem;exports.VsHeading=VsHeading;exports.VsHeroSection=HeroSection;exports.VsHtmlError=HtmlError;exports.VsIcon=VsIcon;exports.VsIconList=IconList;exports.VsIconListItem=IconListItem;exports.VsImageWithCaption=ImageWithCaption;exports.VsImg=VsImg;exports.VsInput=VsInput;exports.VsItinerary=Itinerary;exports.VsItineraryDay=ItineraryDay;exports.VsItineraryStop=ItineraryStop;exports.VsItineraryStopInfo=ItineraryStopInfo;exports.VsItineraryTips=ItineraryTips;exports.VsLink=VsLink;exports.VsLinkList=VsLinkList;exports.VsLinkListItem=LinkListItem;exports.VsList=VsList;exports.VsListicleItem=ListicleItem;exports.VsLoadingSpinner=VsLoadingSpinner;exports.VsMegaNavAccordionItem=MegaNavAccordionItem;exports.VsMegaNavDropdownContainer=MegaNavDropdownContainer;exports.VsMegaNavFeaturedEvent=MegaNavFeaturedEvent;exports.VsMegaNavFeaturedItem=MegaNavFeaturedItem;exports.VsMegaNavList=MegaNavList;exports.VsMegaNavListItem=MegaNavListItem;exports.VsMegaNavStaticLink=MegaNavStaticLink;exports.VsMegalinkLinkList=MegalinkLinkList;exports.VsMegalinkMultiImage=MegalinkMultiImage;exports.VsMegalinkSingleImage=MegalinkSingleImage;exports.VsMegalinks=Megalinks;exports.VsMeganav=MegaNav;exports.VsModal=Modal;exports.VsModuleWrapper=VsModuleWrapper;exports.VsNumberInput=VsNumberInput;exports.VsPageIntro=PageIntro;exports.VsPanel=Panel;exports.VsProductSearch=ProductSearch;exports.VsProgressBar=VsProgressBar;exports.VsQuote=Quote;exports.VsRadioButton=VsRadioButton;exports.VsRecaptcha=VsRecaptcha;exports.VsRichTextWrapper=VsRichTextWrapper;exports.VsRow=VsRow;exports.VsSelect=VsSelect;exports.VsSiteSearch=VsSiteSearch;exports.VsSiteSearchForm=VsSiteSearchForm;exports.VsSkiScotlandCard=SkiScotlandCard;exports.VsSkiScotlandStatus=SkiScotlandStatus;exports.VsSkipTo=SkipTo;exports.VsSocialCreditLink=SocialCreditLink;exports.VsSocialShare=SocialShare;exports.VsSocialShareItem=SocialShareItem;exports.VsStretchedLinkCard=VsStretchedLinkCard;exports.VsStretchedLinkPanel=VsStretchedLinkPanels;exports.VsStyledList=_sfc_main$9;exports.VsStyledListItem=_sfc_main$8;exports.VsSummaryBoxDistanceListItem=SummaryBoxDistanceListItem;exports.VsSummaryBoxList=SummaryBoxList;exports.VsSummaryBoxListItem=SummaryBoxListItem;exports.VsSvg=VsSvg;exports.VsSvgLink=VsSvgLink;exports.VsTabItem=TabItem;exports.VsTable=VsTable;exports.VsTableBody=VsTableBody;exports.VsTableDataCell=VsTableDataCell;exports.VsTableFooter=VsTableFooter;exports.VsTableHead=VsTableHead;exports.VsTableHeaderCell=VsTableHeaderCell;exports.VsTableRow=VsTableRow;exports.VsTabs=Tabs;exports.VsTag=Tag;exports.VsTagManagerWrapper=TagManagerWrapper;exports.VsTextarea=VsTextarea;exports.VsToggleButton=VsToggleButton;exports.VsTooltip=VsTooltip;exports.VsTourismInfo=TourismInfo;exports.VsVideo=Video;exports.VsVideoCaption=VsVideoCaption;exports.VsWarning=VsWarning;
369
+ */Sister=function(){var e={},r={};return e.on=function(t,n){var a={name:t,handler:n};return r[t]=r[t]||[],r[t].unshift(a),a},e.off=function(t){var n=r[t.name].indexOf(t);n!==-1&&r[t.name].splice(n,1)},e.trigger=function(t,n){var a=r[t],o;if(a)for(o=a.length;o--;)a[o].handler(n)},e};var sister=Sister,YouTubePlayer={exports:{}},browser={exports:{}},ms,hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var e=1e3,r=e*60,t=r*60,n=t*24,a=n*7,o=n*365.25;ms=function(f,p){p=p||{};var v=typeof f;if(v==="string"&&f.length>0)return i(f);if(v==="number"&&isFinite(f))return p.long?c(f):l(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function i(f){if(f=String(f),!(f.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(p){var v=parseFloat(p[1]),m=(p[2]||"ms").toLowerCase();switch(m){case"years":case"year":case"yrs":case"yr":case"y":return v*o;case"weeks":case"week":case"w":return v*a;case"days":case"day":case"d":return v*n;case"hours":case"hour":case"hrs":case"hr":case"h":return v*t;case"minutes":case"minute":case"mins":case"min":case"m":return v*r;case"seconds":case"second":case"secs":case"sec":case"s":return v*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return v;default:return}}}}function l(f){var p=Math.abs(f);return p>=n?Math.round(f/n)+"d":p>=t?Math.round(f/t)+"h":p>=r?Math.round(f/r)+"m":p>=e?Math.round(f/e)+"s":f+"ms"}function c(f){var p=Math.abs(f);return p>=n?d(f,p,n,"day"):p>=t?d(f,p,t,"hour"):p>=r?d(f,p,r,"minute"):p>=e?d(f,p,e,"second"):f+" ms"}function d(f,p,v,m){var g=p>=v*1.5;return Math.round(f/v)+" "+m+(g?"s":"")}return ms}function setup(e){t.debug=t,t.default=t,t.coerce=c,t.disable=o,t.enable=a,t.enabled=i,t.humanize=requireMs(),t.destroy=d,Object.keys(e).forEach(f=>{t[f]=e[f]}),t.names=[],t.skips=[],t.formatters={};function r(f){let p=0;for(let v=0;v<f.length;v++)p=(p<<5)-p+f.charCodeAt(v),p|=0;return t.colors[Math.abs(p)%t.colors.length]}t.selectColor=r;function t(f){let p,v=null,m,g;function _(...S){if(!_.enabled)return;const C=_,w=Number(new Date),E=w-(p||w);C.diff=E,C.prev=p,C.curr=w,p=w,S[0]=t.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let $=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(B,R)=>{if(B==="%%")return"%";$++;const L=t.formatters[R];if(typeof L=="function"){const te=S[$];B=L.call(C,te),S.splice($,1),$--}return B}),t.formatArgs.call(C,S),(C.log||t.log).apply(C,S)}return _.namespace=f,_.useColors=t.useColors(),_.color=t.selectColor(f),_.extend=n,_.destroy=t.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>v!==null?v:(m!==t.namespaces&&(m=t.namespaces,g=t.enabled(f)),g),set:S=>{v=S}}),typeof t.init=="function"&&t.init(_),_}function n(f,p){const v=t(this.namespace+(typeof p>"u"?":":p)+f);return v.log=this.log,v}function a(f){t.save(f),t.namespaces=f,t.names=[],t.skips=[];let p;const v=(typeof f=="string"?f:"").split(/[\s,]+/),m=v.length;for(p=0;p<m;p++)v[p]&&(f=v[p].replace(/\*/g,".*?"),f[0]==="-"?t.skips.push(new RegExp("^"+f.slice(1)+"$")):t.names.push(new RegExp("^"+f+"$")))}function o(){const f=[...t.names.map(l),...t.skips.map(l).map(p=>"-"+p)].join(",");return t.enable(""),f}function i(f){if(f[f.length-1]==="*")return!0;let p,v;for(p=0,v=t.skips.length;p<v;p++)if(t.skips[p].test(f))return!1;for(p=0,v=t.names.length;p<v;p++)if(t.names[p].test(f))return!0;return!1}function l(f){return f.toString().substring(2,f.toString().length-2).replace(/\.\*\?$/,"*")}function c(f){return f instanceof Error?f.stack||f.message:f}function d(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}var common=setup;(function(e,r){var t={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LdZ13gmAAAAAD5bpXvcE26kYVb1daMMXooSLffx",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"D:\\Users\\martin.taylor\\AppData\\Roaming",AUTOMATION_SCRIPTS_HOME:"D:\\Users\\martin.taylor\\Desktop\\Automation",AWS_EXECUTION_ENV:"EC2",BERRY_BIN_FOLDER:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"WSAMZN-KETUT7JV",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EC2LAUNCH_TELEMETRY:"1",HOMEDRIVE:"H:",HOMEPATH:"\\",HOMESHARE:"\\\\vsweb.visitscotland.net\\fs\\home\\martin.taylor",INIT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",JAVA_HOME:"D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25",LAST_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",LOCALAPPDATA:"D:\\Users\\martin.taylor\\AppData\\Local",LOGONSERVER:"\\\\GBB-DOM-VSWEBDC",M2:"C:\\vsdev\\apache-maven-3.5.0\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.5.0",NODE_ENV:"production",npm_config_user_agent:"yarn/4.3.1 npm/? node/v22.11.0 win32 x64",npm_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652\\node",npm_package_json:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.3.8",NUMBER_OF_PROCESSORS:"8",OLD_PATH:"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;",OneDrive:"D:\\Users\\martin.taylor\\OneDrive",OS:"Windows_NT",PATH:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-1ca79652;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-59948a58;D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1\\xfs-de2eadd7;C:\\Windows;C:\\Windows\\system32;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;c:\\vsdev\\apache-maven-3.5.0\\bin;C:\\vsdev;C:\\vsinfo;C:\\vstools;C:\\Program Files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\vstools\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\D2\\;D:\\Users\\martin.taylor\\.jdks\\temurin-11.0.25\\bin;C:\\Program Files\\nodejs\\;D:\\Users\\martin.taylor\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Users\\martin.taylor\\AppData\\Local\\JetBrains\\Toolbox\\scripts;D:\\Users\\martin.taylor\\Desktop\\Applications\\apache-jmeter-5.6.3\\bin;D:\\Users\\martin.taylor\\AppData\\Roaming\\npm;D:\\Users\\martin.taylor\\Desktop\\Applications\\terraform\\1.10.0\\bin;",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 143 Stepping 8, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8f08",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"D:\\Users\\martin.taylor\\Desktop\\Projects\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",TMP:"D:\\Users\\martin.taylor\\AppData\\Local\\Temp\\1",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"Martin.Taylor",USERPROFILE:"D:\\Users\\martin.taylor",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"/ase/ase",VS_ASE_CONFIG_DIR:"C:\\vsdev\\workspace\\www\\config",VS_ASE_DMS_SERVICE_URI:"http://localhost:9080/products-db-service/api/DMSService/",VS_ASE_FILE_STORE_ROOT:"C:\\vsdev\\ase\\filestore",VS_ASE_MONGODB_DB_NAME:"productDB",VS_ASE_MONGODB_HOST:"127.0.0.1",VS_ASE_NM_API_KEY:"ScotlandStage18643049",VS_ASE_NM_URI:"http://webservicepreview.nmdemo.net/TourismDataWebService.svc",VS_ASE_REST_PRODUCTS_DB_URI:"http://localhost:9080/products-db-service/api/productsDBService/",VS_CONFIG_DIR:"C:\\vsdev\\workspace",windir:"C:\\Windows"};r.formatArgs=a,r.save=o,r.load=i,r.useColors=n,r.storage=l(),r.destroy=(()=>{let d=!1;return()=>{d||(d=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function a(d){if(d[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+d[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const f="color: "+this.color;d.splice(1,0,f,"color: inherit");let p=0,v=0;d[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(p++,m==="%c"&&(v=p))}),d.splice(v,0,f)}r.log=console.debug||console.log||(()=>{});function o(d){try{d?r.storage.setItem("debug",d):r.storage.removeItem("debug")}catch{}}function i(){let d;try{d=r.storage.getItem("debug")}catch{}return!d&&typeof process<"u"&&"env"in process&&(d=t.DEBUG),d}function l(){try{return localStorage}catch{}}e.exports=common(r);const{formatters:c}=e.exports;c.j=function(d){try{return JSON.stringify(d)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}}})(browser,browser.exports);var browserExports=browser.exports,FunctionStateMap={exports:{}},PlayerStates={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},e.exports=r.default})(PlayerStates,PlayerStates.exports);var PlayerStatesExports=PlayerStates.exports;(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=PlayerStatesExports,n=a(t);function a(o){return o&&o.__esModule?o:{default:o}}r.default={pauseVideo:{acceptableStates:[n.default.ENDED,n.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[n.default.ENDED,n.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[n.default.ENDED,n.default.PLAYING,n.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},e.exports=r.default})(FunctionStateMap,FunctionStateMap.exports);var FunctionStateMapExports=FunctionStateMap.exports,eventNames={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],e.exports=r.default})(eventNames,eventNames.exports);var eventNamesExports=eventNames.exports,functionNames={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe","getSphericalProperties","setSphericalProperties"],e.exports=r.default})(functionNames,functionNames.exports);var functionNamesExports=functionNames.exports;(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=browserExports,n=f(t),a=FunctionStateMapExports,o=f(a),i=eventNamesExports,l=f(i),c=functionNamesExports,d=f(c);function f(m){return m&&m.__esModule?m:{default:m}}const p=(0,n.default)("youtube-player"),v={};v.proxyEvents=m=>{const g={};for(const _ of l.default){const S="on"+_.slice(0,1).toUpperCase()+_.slice(1);g[S]=C=>{p('event "%s"',S,C),m.trigger(_,C)}}return g},v.promisifyPlayer=(m,g=!1)=>{const _={};for(const S of d.default)g&&o.default[S]?_[S]=(...C)=>m.then(w=>{const E=o.default[S],$=w.getPlayerState(),T=w[S].apply(w,C);return E.stateChangeRequired||Array.isArray(E.acceptableStates)&&!E.acceptableStates.includes($)?new Promise(B=>{const R=()=>{const L=w.getPlayerState();let te;typeof E.timeout=="number"&&(te=setTimeout(()=>{w.removeEventListener("onStateChange",R),B()},E.timeout)),Array.isArray(E.acceptableStates)&&E.acceptableStates.includes(L)&&(w.removeEventListener("onStateChange",R),clearTimeout(te),B())};w.addEventListener("onStateChange",R)}).then(()=>T):T}):_[S]=(...C)=>m.then(w=>w[S].apply(w,C));return _},r.default=v,e.exports=r.default})(YouTubePlayer,YouTubePlayer.exports);var YouTubePlayerExports=YouTubePlayer.exports,loadYouTubeIframeApi={exports:{}},loadScript=function e(r,t,n){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");typeof t=="function"&&(n=t,t={}),t=t||{},n=n||function(){},o.type=t.type||"text/javascript",o.charset=t.charset||"utf8",o.async="async"in t?!!t.async:!0,o.src=r,t.attrs&&setAttributes(o,t.attrs),t.text&&(o.text=""+t.text);var i="onload"in o?stdOnEnd:ieOnEnd;i(o,n),o.onload||stdOnEnd(o,n),a.appendChild(o)};function setAttributes(e,r){for(var t in r)e.setAttribute(t,r[t])}function stdOnEnd(e,r){e.onload=function(){this.onerror=this.onload=null,r(null,e)},e.onerror=function(){this.onerror=this.onload=null,r(new Error("Failed to load "+this.src),e)}}function ieOnEnd(e,r){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,r(null,e))}}(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=loadScript,n=a(t);function a(o){return o&&o.__esModule?o:{default:o}}r.default=o=>new Promise(l=>{if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function){l(window.YT);return}else{const d=window.location.protocol==="http:"?"http:":"https:";(0,n.default)(d+"//www.youtube.com/iframe_api",f=>{f&&o.trigger("error",f)})}const c=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{c&&c(),l(window.YT)}}),e.exports=r.default})(loadYouTubeIframeApi,loadYouTubeIframeApi.exports);var loadYouTubeIframeApiExports=loadYouTubeIframeApi.exports;(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=sister,n=c(t),a=YouTubePlayerExports,o=c(a),i=loadYouTubeIframeApiExports,l=c(i);function c(f){return f&&f.__esModule?f:{default:f}}let d;r.default=(f,p={},v=!1)=>{const m=(0,n.default)();if(d||(d=(0,l.default)(m)),p.events)throw new Error("Event handlers cannot be overwritten.");if(typeof f=="string"&&!document.getElementById(f))throw new Error('Element "'+f+'" does not exist.');p.events=o.default.proxyEvents(m);const g=new Promise(S=>{typeof f=="object"&&f.playVideo instanceof Function?S(f):d.then(C=>{const w=new C.Player(f,p);return m.on("ready",()=>{S(w)}),null})}),_=o.default.promisifyPlayer(g,v);return _.on=m.on,_.off=m.off,_},e.exports=r.default})(dist,dist.exports);var distExports=dist.exports;const player=getDefaultExportFromCjs(distExports),UNSTARTED=-1,ENDED=0,PLAYING=1,PAUSED=2,BUFFERING=3,CUED=5,VueYoutube={name:"Youtube",props:{videoId:String,playerVars:{type:Object,default:()=>({})},height:{type:[Number,String],default:360},width:{type:[Number,String],default:640},resize:{type:Boolean,default:!1},resizeDelay:{type:Number,default:100},nocookie:{type:Boolean,default:!1},fitParent:{type:Boolean,default:!1}},data(){return{player:{},events:{[UNSTARTED]:"unstarted",[PLAYING]:"playing",[PAUSED]:"paused",[ENDED]:"ended",[BUFFERING]:"buffering",[CUED]:"cued"},resizeTimeout:null}},computed:{aspectRatio(){return this.width/this.height}},methods:{playerReady(e){this.$emit("ready",e.target)},playerStateChange(e){e.data!==null&&e.data!==UNSTARTED&&this.$emit(this.events[e.data],e.target)},playerError(e){this.$emit("error",e.target)},updatePlayer(e){if(!e){this.player.stopVideo();return}const r={videoId:e};if(typeof this.playerVars.start=="number"&&(r.startSeconds=this.playerVars.start),typeof this.playerVars.end=="number"&&(r.endSeconds=this.playerVars.end),this.playerVars.autoplay===1){this.player.loadVideoById(r);return}this.player.cueVideoById(r)},resizeProportionally(){this.player.getIframe().then(e=>{const r=this.fitParent?e.parentElement.offsetWidth:e.offsetWidth,t=r/this.aspectRatio;this.player.setSize(r,t)})},onResize(){clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.resizeProportionally,this.resizeDelay)}},watch:{videoId:"updatePlayer",resize(e){e?(window.addEventListener("resize",this.onResize),this.resizeProportionally()):(window.removeEventListener("resize",this.onResize),this.player.setSize(this.width,this.height))},width(e){this.player.setSize(e,this.height)},height(e){this.player.setSize(this.width,e)}},beforeUnmount(){this.player!==null&&this.player.destroy&&(this.player.destroy(),delete this.player),this.resize&&window.removeEventListener("resize",this.onResize)},mounted(){window.YTConfig={host:"https://www.youtube.com/iframe_api"};const e=this.nocookie?"https://www.youtube-nocookie.com":"https://www.youtube.com";this.player=player(this.$el,{host:e,width:this.width,height:this.height,videoId:this.videoId,playerVars:this.playerVars}),this.player.on("ready",this.playerReady),this.player.on("stateChange",this.playerStateChange),this.player.on("error",this.playerError),this.resize&&window.addEventListener("resize",this.onResize),this.fitParent&&this.resizeProportionally()},render(){return vue.h("div")}};let videoStore=null;const _sfc_main={name:"VsVideo",status:"prototype",release:"0.0.1",components:{VsWarning,VueYoutube},mixins:[dataLayerMixin],props:{language:{type:String,default:"en"},videoId:{type:String,required:!0},videoTitle:{type:String,default:""},singleMinuteDescriptor:{type:String,default:"%s minute video"},pluralMinuteDescriptor:{type:String,default:"%s minute video"},noJsMessage:{type:String,required:!0},errorMessage:{type:String,default:""}},data(){return{duration:{minutes:0,seconds:0,roundedMinutes:""},playerVars:{hl:this.language},reRendering:!1,shouldAutoPlay:!1,jsDisabled:!0}},computed:{warningText(){let e="";return this.videoId&&this.jsDisabled&&(e=this.noJsMessage),e},player(){return this.$refs.youtube?this.$refs.youtube.player:null}},mounted(){this.jsDisabled=jsIsDisabled(),videoStore=useVideoStore(),this.setEventListeners()},methods:{async playerReady(){await this.getPlayerDetails(),this.shouldAutoPlay&&(this.shouldAutoPlay=!1,this.playVideo())},async playVideo(){this.player&&await this.player.playVideo()},async pauseVideo(){this.player&&await this.player.pauseVideo()},async stopVideo(){this.player&&await this.player.stopVideo()},youtubePlaying(){this.analyticsEvent("play")},youtubePaused(){this.analyticsEvent("pause")},youtubeEnded(){this.analyticsEvent("ended")},analyticsEvent(e){let r=0,t=0;this.player.getCurrentTime().then(n=>(r=n,this.player?this.player.getDuration():null)).then(n=>{t=n}).then(()=>{const n=r/t*100;this.createDataLayerObject("videoTrackingDataEvent",{title:this.videoTitle,status:e,percent:Math.round(n)})})},async getPlayerDetails(){this.player&&await this.player.getDuration().then(e=>{this.formatTime(e),this.storeVideoDetails()})},formatTime(e){const r=Math.floor(e/60),t=Math.round(e-r*60);this.duration.minutes=r,this.duration.seconds=t;const n=this.getRoundedMinutes(r,t);this.duration.roundedMinutes=this.formatSingularOrPlural(n)},getRoundedMinutes(e,r){return r<30&&e!==0?e:e+1},formatSingularOrPlural(e){return e===1?this.singleMinuteDescriptor.replace("%s",e):this.pluralMinuteDescriptor.replace("%s",e)},pad(e){return e>=10?e:`0${e}`},storeVideoDetails(){videoStore.addVideo({videoId:this.videoId,videoDurationMsg:this.duration.roundedMinutes,videoDuration:this.duration.minutes*60+this.duration.seconds,videoFullDuration:this.duration})},setEventListeners(){this.emitter&&this.emitter.on("video-controls",e=>{e.id===this.videoId&&(e.action==="modal-opened"&&this.playVideo(),e.action==="modal-closed"&&this.stopVideo(),e.action==="play"?this.playVideo():e.action==="pause"&&this.pauseVideo())})}}},_hoisted_1={key:0,class:"vs-video","data-test":"vs-video"},_hoisted_2={class:"vs-video__iframe-wrapper"};function _sfc_render(e,r,t,n,a,o){const i=vue.resolveComponent("VueYoutube"),l=vue.resolveComponent("VsWarning");return a.reRendering?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1,[vue.createElementVNode("div",_hoisted_2,[vue.createVNode(i,{autoplay:0,"video-id":t.videoId,vars:a.playerVars,ref:"youtube",nocookie:!0,onPlaying:o.youtubePlaying,onPaused:o.youtubePaused,onEnded:o.youtubeEnded,onReady:o.playerReady},null,8,["video-id","vars","onPlaying","onPaused","onEnded","onReady"]),vue.createVNode(l,{"data-test":"vs-video__warning--no-js",class:"vs-video__warning vs-video__warning--no-js"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.noJsMessage),1)]),_:1})])]))}const Video=_export_sfc(_sfc_main,[["render",_sfc_render]]);exports.VsAccordion=VsAccordion;exports.VsAccordionItem=VsAccordionItem;exports.VsAccordionToggle=VsAccordionToggle;exports.VsAddress=Address;exports.VsAlert=Alert;exports.VsArticle=Article;exports.VsArticleSection=ArticleSection;exports.VsArticleSidebar=ArticleSidebar;exports.VsBadge=_sfc_main$28;exports.VsBanner=Banner;exports.VsBlogDetails=BlogDetails;exports.VsBreadcrumb=Breadcrumb;exports.VsBreadcrumbItem=BreadcrumbItem;exports.VsButton=VsButton;exports.VsButtonToggleGroup=ButtonToggleGroup;exports.VsCannedSearch=CannedSearch;exports.VsCaption=VsCaption;exports.VsCarbonCalculator=CarbonCalculator;exports.VsCarousel=VsCarousel;exports.VsCarouselSlide=CarouselSlide;exports.VsCheckbox=VsCheckbox;exports.VsCol=VsCol;exports.VsContainer=VsContainer;exports.VsCookieChecker=CookieChecker;exports.VsDescriptionList=DescriptionList;exports.VsDescriptionListItem=DescriptionListItem;exports.VsDropdown=VsDropdown;exports.VsDropdownItem=VsDropdownItem;exports.VsEmbedWrapper=EmbedWrapper;exports.VsFooter=Footer;exports.VsFooterAccordionItem=FooterAccordionItem;exports.VsFooterCopyright=FooterCopyright;exports.VsFooterNavListItem=FooterNavListItem;exports.VsFooterSocialItem=FooterSocialItem;exports.VsFooterSocialMenu=FooterSocialMenu;exports.VsFooterUtilityList=FooterUtilityList;exports.VsForm=Form;exports.VsGlobalMenu=GlobalMenu;exports.VsGlobalMenuLanguage=GlobalMenuLanguage;exports.VsGlobalMenuLanguageItem=GlobalMenuLanguageItem;exports.VsHeading=VsHeading;exports.VsHeroSection=HeroSection;exports.VsHtmlError=HtmlError;exports.VsIcon=VsIcon;exports.VsIconList=IconList;exports.VsIconListItem=IconListItem;exports.VsImageWithCaption=ImageWithCaption;exports.VsImg=VsImg;exports.VsInput=VsInput;exports.VsItinerary=Itinerary;exports.VsItineraryDay=ItineraryDay;exports.VsItineraryStop=ItineraryStop;exports.VsItineraryStopInfo=ItineraryStopInfo;exports.VsItineraryTips=ItineraryTips;exports.VsLink=VsLink;exports.VsLinkList=VsLinkList;exports.VsLinkListItem=LinkListItem;exports.VsList=VsList;exports.VsListicleItem=ListicleItem;exports.VsLoadingSpinner=VsLoadingSpinner;exports.VsMegaNavAccordionItem=MegaNavAccordionItem;exports.VsMegaNavDropdownContainer=MegaNavDropdownContainer;exports.VsMegaNavFeaturedEvent=MegaNavFeaturedEvent;exports.VsMegaNavFeaturedItem=MegaNavFeaturedItem;exports.VsMegaNavList=MegaNavList;exports.VsMegaNavListItem=MegaNavListItem;exports.VsMegaNavStaticLink=MegaNavStaticLink;exports.VsMegalinkLinkList=MegalinkLinkList;exports.VsMegalinkMultiImage=MegalinkMultiImage;exports.VsMegalinkSingleImage=MegalinkSingleImage;exports.VsMegalinks=Megalinks;exports.VsMeganav=MegaNav;exports.VsModal=Modal;exports.VsModuleWrapper=VsModuleWrapper;exports.VsNumberInput=VsNumberInput;exports.VsPageIntro=PageIntro;exports.VsPanel=Panel;exports.VsProductSearch=ProductSearch;exports.VsProgressBar=VsProgressBar;exports.VsQuote=Quote;exports.VsRadioButton=VsRadioButton;exports.VsRecaptcha=VsRecaptcha;exports.VsRichTextWrapper=VsRichTextWrapper;exports.VsRow=VsRow;exports.VsSelect=VsSelect;exports.VsSiteSearch=VsSiteSearch;exports.VsSiteSearchForm=VsSiteSearchForm;exports.VsSkiScotlandCard=SkiScotlandCard;exports.VsSkiScotlandStatus=SkiScotlandStatus;exports.VsSkipTo=SkipTo;exports.VsSocialCreditLink=SocialCreditLink;exports.VsSocialShare=SocialShare;exports.VsSocialShareItem=SocialShareItem;exports.VsStretchedLinkCard=VsStretchedLinkCard;exports.VsStretchedLinkPanel=VsStretchedLinkPanels;exports.VsStyledList=_sfc_main$9;exports.VsStyledListItem=_sfc_main$8;exports.VsSummaryBoxDistanceListItem=SummaryBoxDistanceListItem;exports.VsSummaryBoxList=SummaryBoxList;exports.VsSummaryBoxListItem=SummaryBoxListItem;exports.VsSvg=VsSvg;exports.VsSvgLink=VsSvgLink;exports.VsTabItem=TabItem;exports.VsTable=VsTable;exports.VsTableBody=VsTableBody;exports.VsTableDataCell=VsTableDataCell;exports.VsTableFooter=VsTableFooter;exports.VsTableHead=VsTableHead;exports.VsTableHeaderCell=VsTableHeaderCell;exports.VsTableRow=VsTableRow;exports.VsTabs=Tabs;exports.VsTag=Tag;exports.VsTagManagerWrapper=TagManagerWrapper;exports.VsTextarea=VsTextarea;exports.VsToggleButton=VsToggleButton;exports.VsTooltip=VsTooltip;exports.VsTourismInfo=TourismInfo;exports.VsVideo=Video;exports.VsVideoCaption=VsVideoCaption;exports.VsWarning=VsWarning;