@visitscotland/component-library 4.7.1 → 4.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/client/manifest.json +216 -216
- package/dist/client/scripts/277a9d0458dd73d63980.js +1 -0
- package/dist/client/scripts/{89b8016a750250a03733.js → 63d29726a2e5382258a4.js} +1 -1
- package/dist/client/scripts/a1ea6d101866bc682576.js +1 -0
- package/dist/client/scripts/{44fde6a5cc031db482b5.js → a91eaf4e14923d5b7de7.js} +1 -1
- package/dist/client/styles/{44fde6a5cc031db482b5.css → a91eaf4e14923d5b7de7.css} +1 -1
- package/dist/components/vs-component-library.css +1 -1
- package/dist/components/vs-component-library.js +39 -39
- package/dist/components/vs-component-library.mjs +411 -415
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/dist/ssr/styles/{99c8d5fbd876006a360c.css → 5f0c98d16fb66a56ae8f.css} +1 -1
- package/package.json +1 -1
- package/dist/client/scripts/207572ffaeb7e8e7a626.js +0 -1
- package/dist/client/scripts/5057183b32afebcc3653.js +0 -1
- /package/dist/client/styles/{5057183b32afebcc3653.css → 277a9d0458dd73d63980.css} +0 -0
- /package/dist/client/styles/{89b8016a750250a03733.css → 63d29726a2e5382258a4.css} +0 -0
- /package/dist/client/styles/{207572ffaeb7e8e7a626.css → a1ea6d101866bc682576.css} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use strict";var hv=Object.defineProperty;var vv=(e,n,t)=>n in e?hv(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var Gt=(e,n,t)=>vv(e,typeof n!="symbol"?n+"":n,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const vue=require("vue"),bootstrapVueNext=require("bootstrap-vue-next"),pinia=require("pinia");var _documentCurrentScript=typeof document<"u"?document.currentScript:null;const _export_sfc=(e,n)=>{const t=e.__vccOpts||e;for(const[r,a]of n)t[r]=a;return t},_sfc_main$2p={name:"VsAccordion",status:"prototype",release:"0.0.1",provide(){return{breakPoint:this.breakPoint}},props:{breakPoint:{type:String,default:null,validator:e=>e.match(/(xs|sm|md|lg|xl|xxl)/)}}},_hoisted_1$1O={class:"vs-accordion","data-test":"vs-accordion"};function _sfc_render$2e(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1O,[vue.renderSlot(e.$slots,"default")])}const VsAccordion=_export_sfc(_sfc_main$2p,[["render",_sfc_render$2e]]),_sfc_main$2o={name:"VsIcon",status:"prototype",release:"0.1.0",props:{name:{type:String,required:!0,default:"search"},variant:{type:String,default:"default",validator:e=>e.match(/(default|primary|inverse|disabled|tertiary|danger|warning)/)},customColour:{type:String,default:null},orientation:{type:String,default:null,validator:e=>e.match(/(up|down|left|right)/)},size:{type:String,default:"md",validator:e=>e.match(/(xxs|xs|sm|md|lg|xl)/)},smallSize:{type:String,default:null,validator:e=>e.match(/(xxs|xs|sm|md|lg|xl)/)},duotone:{type:Boolean,default:!1}},data(){return{iconLookup:[{key:"accesstoliet",value:"accessible-toilet"},{key:"accessparkdrop",value:"facility-accessparkdrop"},{key:"acco",value:"product-accommodation"},{key:"acti",value:"product-activities"},{key:"attr",value:"product-attractions"},{key:"audioloop",value:"facility-audioloop"},{key:"cafereston",value:"cafe"},{key:"cate",value:"product-food-and-drink"},{key:"cities",value:"city"},{key:"cycling",value:"cycle"},{key:"dsblaccess",value:"facility-dsblaccess"},{key:"wheelchairaccess",value:"facility-dsblaccess"},{key:"even",value:"product-events"},{key:"familyev",value:"family"},{key:"filmev",value:"film-tv"},{key:"hottub",value:"hot-tub"},{key:"parking",value:"facility-parking"},{key:"petswelcom",value:"facility-petswelcom"},{key:"wifi",value:"facility-wifi"},{key:"public",value:"public-transport"},{key:"pubtranrte",value:"public-transport"},{key:"reta",value:"product-shopping"},{key:"spahealth",value:"wellness"},{key:"vege",value:"vegan-vegetarian"},{key:"walking",value:"walk"},{key:"boat",value:"boat"},{key:"transport",value:"transport"},{key:"brekavail",value:"breakfast-available"},{key:"wetroom",value:"level-entry-shower"},{key:"x-twitter",value:"x-twitter fa-brands"},{key:"linkedin",value:"linkedin-in fa-brands"}]}},computed:{icon(){return this.formattedName},formattedName(){const e=this.iconLookup.find(({key:n})=>n===this.name);return e!==void 0?e.value:this.name}}};function _sfc_render$2d(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("i",vue.mergeProps({class:{fak:!0,[`fa-${s.icon}`]:!0,"vs-icon":!0,[`vs-icon--size-${t.size}`]:!0,[`vs-icon--sm-size-${t.smallSize}`]:t.smallSize,[`vs-icon--${s.formattedName}`]:!0,["icon--"+t.orientation]:t.orientation,[`vs-icon--variant-${t.variant}`]:t.variant,"fa-duotone":t.duotone},style:[t.customColour?{color:t.customColour}:{}]},e.$attrs,{"data-test":"vs-icon"}),null,16)}const VsIcon=_export_sfc(_sfc_main$2o,[["render",_sfc_render$2d]]),useDataLayerStore=pinia.defineStore("datalayer",()=>{const e=vue.ref(""),n=vue.ref(!1),t=vue.ref({});function r(l){n.value=l}function a(l){e.value=l}function s(l){t.value[l.key]=l.value}function i(l){return t.value[l]}return{pageUrl:e,tagsTestRun:n,GTMData:t,getValueFromKey:i,setTestRun:r,setPageUrl:a,processPayload:s}}),checkVendorLibrary=(e,n,t=0)=>{window.setTimeout(()=>{window[e]?n(window[e]):checkVendorLibrary(e,n,500)},t)},pageViewTemplate=["event","site_language","content_language","content_category","content_page_type","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","content_region","content_city","provider_search_region","provider_search_category","provider_search_facilities","provider_search_grading","provider_search_awards","provider_search_rooms","provider_search_min_price","provider_search_max_price","provider_category","provider_category_level_1","provider_category_level_2","provider_name","provider_ID","star_grading","provider_region","provider_city","provider_has_website","page_with_booking_link","provider_has_availability","availability_search_start_date","availability_search_end_date","availability_search_no_of_nights","availability_search_no_of_adults","availability_search_no_of_children","availability_search_no_of_rooms","availability_search_price_range","hit_timestamp","tag_name","meta_data"],productSearchTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","user_country_setting","hit_timestamp","tag_name","meta_data","psr_search_type","psr_search_location","page_path"],menuNavigationTemplate=["event","site_language","user_country_setting","hit_timestamp","tag_name","meta_data","click_text","click_URL"],shareTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_text","click_URL"],socialMediaExternalLinkTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_URL","location_on_page"],homePageLogoClickTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_URL"],videoTrackingTemplate=["event","language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","video_status","video_title","video_percent"],externalLinkTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_text","click_URL","dmo_referral"],internalLinkTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_text","click_URL"],errorTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","error_type","error_details","page_path"],formsTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","page_path","form_status"],carbonQuestionTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","question_number","answer"],carbonCompleteTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","total_emissions","total_per_day","travel_percent","accommodation_percent","food_percent"],cmsReferralTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","tag_name","meta_data","referral_location","attraction_name","dmo_referral"],dataLayerMixin={computed:{...pinia.mapState(useDataLayerStore,{pageUrl(e){return e.pageUrl}})},data(){return{dataLayerLoadConfirmed:!1,dataLayerStore:null}},mounted(){this.dataLayerStore=useDataLayerStore()},methods:{templateFiller(e,n){const t={};return e.forEach(r=>{t[r]="",t[r]=n[r]||void 0,r==="language"&&t[r]===void 0&&(t[r]=n.site_language||void 0)}),t},createDataLayerObject(e,n,t){let r,a,s,i,l,c,d="";switch(n&&n.target&&(n.target.text?c=n.target.text.trim():c=n.target.innerText),e){case"productSearchDataEvent":r="psr_search",a="VS - GA4 - Event - PSR Search",s={event:r,psr_search_type:n.searchType,psr_search_location:n.searchLocation,page_path:t,tag_name:a},i=this.compileFullTemplate(s),l=this.templateFiller(productSearchTemplate,i);break;case"pageViewTemplateDataEvent":r="page_view",s={event:r},i=this.compileFullTemplate(s),l=this.templateFiller(pageViewTemplate,i);break;case"menuNavigationDataEvent":r="menu_navigation",s={event:r,click_text:n.target.text.trim(),click_URL:t},i=this.compileFullTemplate(s),l=this.templateFiller(menuNavigationTemplate,i);break;case"socialMediaExternalLinkDataEvent":r="social_media_footer",a="VS - GA - Social Media External Link",s={event:r,tag_name:a,click_URL:t},i=this.compileFullTemplate(s),l=this.templateFiller(socialMediaExternalLinkTemplate,i);break;case"homePageLogoClickDataEvent":r="homepage_logo_click",a="VS - GA - Homepage Logo Click",s={event:r,tag_name:a},i=this.compileFullTemplate(s),l=this.templateFiller(homePageLogoClickTemplate,i);break;case"externalLinkDataEvent":r="external_link",a="VS - GA - External Link",s={event:r,tag_name:a,click_text:c,click_URL:t},i=this.compileFullTemplate(s),l=this.templateFiller(externalLinkTemplate,i);break;case"internalLinkDataEvent":r="internal_link",a="VS - GA - Internal Link",s={event:r,tag_name:a,click_text:c,click_URL:t},i=this.compileFullTemplate(s),l=this.templateFiller(internalLinkTemplate,i);break;case"formsDataEvent":r="forms",a="VS - GA - Forms",s={event:r,tag_name:a,form_status:"form_submitted"},i=this.compileFullTemplate(s),l=this.templateFiller(formsTemplate,i);break;case"errorDataEvent":r="errors",a="VS - GA - Errors",s={event:r,tag_name:a,error_type:n.error_type,error_details:n.error_details},i=this.compileFullTemplate(s),l=this.templateFiller(errorTemplate,i);break;case"videoTrackingDataEvent":r="video_tracking",a="VS - GA - Video Tracking",s={event:r,tag_name:a,video_status:n.status,video_title:n.title||"",video_percent:n.percent||0},i=this.compileFullTemplate(s),l=this.templateFiller(videoTrackingTemplate,i);break;case"socialShareDataEvent":r="share",a="VS - GA - Share",typeof n.target.text<"u"&&(d=n.target.text.trim()),s={event:r,tag_name:a,click_text:d,click_URL:t},i=this.compileFullTemplate(s),l=this.templateFiller(shareTemplate,i);break;case"carbonQuestionEvent":r="carbonCalculatorQuestion",a="VS - GA - Carbon Calculator Question Answered",s={event:r,tag_name:a,question_number:n.questionNumber,answer:n.answer},i=this.compileFullTemplate(s),l=this.templateFiller(carbonQuestionTemplate,i);break;case"carbonCompleteEvent":r="carbonCalculatorComplete",a="VS - GA - Carbon Calculator Complete",s={event:r,tag_name:a,total_emissions:n.totalEmissions,total_per_day:n.totalPerDay,travel_percent:n.travelPercent,accommodation_percent:n.accommodationPercent,food_percent:n.foodPercent},i=this.compileFullTemplate(s),l=this.templateFiller(carbonCompleteTemplate,i);break;case"cmsReferral":r="cms_referral",a="VS - GA4 - Event - CMS Link Click Referral",s={event:r,tag_name:a,referral_location:n.referral_location,dmo_referral:n.dmo_referral},i=this.compileFullTemplate(s),l=this.templateFiller(cmsReferralTemplate,i);break}this.pushToDataLayer(l)},returnIsoDate(){return new Date(Date.now()).toISOString()},pushToDataLayer(e){this.dataLayerLoadConfirmed?window.dataLayer.push(e):checkVendorLibrary("dataLayer",()=>{this.dataLayerLoadConfirmed=!0,window.dataLayer.push(e)})},compileFullTemplate(e){const t={...this.dataLayerStore.GTMData,...e};return t.hit_timestamp=this.returnIsoDate(),t},targetText(e){let n;return e.target.text?n=e.target.text.trim():n="",n}}},_sfc_main$2n={name:"VsButton",status:"prototype",release:"0.0.1",components:{BButton:bootstrapVueNext.BButton,VsIcon},mixins:[dataLayerMixin],props:{href:{type:String,default:null},tabindex:{type:String,default:null},variant:{type:String,default:"primary",validator:e=>e.match(/(primary|secondary|transparent)/)},size:{type:String,default:"md",validator:e=>e.match(/(sm|md|lg)/)},animate:{type:Boolean,default:!0},rounded:{type:Boolean,default:!0},icon:{type:String,default:""},iconOnly:{type:Boolean,default:!1},iconPosition:{type:String,default:"left",validator:e=>e.match(/(left|right)/)}},emits:["btnFocus"],data(){return{isAnimating:!1}},computed:{buttonClasses(){return[{"vs-button--animated":this.animate&&!this.iconOnly,"vs-button--is-animating":this.isAnimating,"vs-button--rounded":this.rounded,"vs-button--icon-only":this.iconOnly,"button-flex":this.icon&&!this.iconOnly,"vs-button--flex-reverse":this.iconPosition==="right"}]},iconClasses(){return[{"vs-icon--right":this.iconPosition==="right","vs-icon--left":this.iconPosition==="left"}]}},methods:{animateHandler(e){this.isAnimating=!0,setTimeout(()=>{this.isAnimating=!1},1e3),this.href!==null&&(e.preventDefault(),this.trackLink(e))},tabbedIn(e){this.$emit("btnFocus",e)},trackLink(e){let n;this.href.includes("http")?n="externalLinkDataEvent":n="internalLinkDataEvent",this.createDataLayerObject(n,e,this.href),this.href!=="#"&&this.href!==null&&(window.location.href=this.href)}}};function _sfc_render$2c(e,n,t,r,a,s){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("BButton");return vue.openBlock(),vue.createBlock(l,vue.mergeProps({variant:t.variant,href:t.href||void 0,tabindex:t.tabindex||void 0,class:["vs-button justify-content-center",s.buttonClasses],size:t.size},e.$attrs,{"aria-disabled":!!e.$attrs.disabled,onClick:n[0]||(n[0]=c=>s.animateHandler(c)),onKeyup:vue.withKeys(s.tabbedIn,["tab"])}),{default:vue.withCtx(()=>[t.icon?(vue.openBlock(),vue.createBlock(i,{key:0,class:vue.normalizeClass(["align-self-center",s.iconClasses]),name:t.icon,size:"xs",padding:0},null,8,["name","class"])):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass(["vs-button__text",{"visually-hidden":t.iconOnly}])},[vue.renderSlot(e.$slots,"default")],2)]),_:3},16,["variant","href","tabindex","class","size","aria-disabled","onKeyup"])}const VsButton=_export_sfc(_sfc_main$2n,[["render",_sfc_render$2c]]),_sfc_main$2m={name:"VsAccordionToggle",status:"prototype",release:"0.0.1",components:{VsButton},props:{variant:{type:String,default:"primary"},visible:{type:Boolean,default:!0}},emits:["toggle-panel"],methods:{triggerToggle(){this.$emit("toggle-panel")}}},_hoisted_1$1N={class:"vs-accordion-toggle__text"},_hoisted_2$1c={class:"vs-accordion-toggle__icon"};function _sfc_render$2b(e,n,t,r,a,s){const i=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createBlock(i,{animate:!1,"aria-expanded":t.visible?"true":"false","aria-haspopup":"true",onClick:s.triggerToggle,class:vue.normalizeClass(["vs-accordion-toggle clearfix",t.visible?"vs-accordion-toggle--open":""]),variant:t.variant,rounded:!1},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$1N,[vue.renderSlot(e.$slots,"default")]),vue.createElementVNode("span",_hoisted_2$1c,[t.visible?vue.renderSlot(e.$slots,"icon-open",{key:0}):vue.renderSlot(e.$slots,"icon-closed",{key:1})])]),_:3},8,["aria-expanded","onClick","class","variant"])}const VsAccordionToggle=_export_sfc(_sfc_main$2m,[["render",_sfc_render$2b]]);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var t=function r(){return this instanceof r?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),t}var lodash={exports:{}};/**
|
|
1
|
+
"use strict";var hv=Object.defineProperty;var vv=(e,n,t)=>n in e?hv(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var Gt=(e,n,t)=>vv(e,typeof n!="symbol"?n+"":n,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const vue=require("vue"),bootstrapVueNext=require("bootstrap-vue-next"),pinia=require("pinia");var _documentCurrentScript=typeof document<"u"?document.currentScript:null;const _export_sfc=(e,n)=>{const t=e.__vccOpts||e;for(const[r,a]of n)t[r]=a;return t},_sfc_main$2p={name:"VsAccordion",status:"prototype",release:"0.0.1",provide(){return{breakPoint:this.breakPoint}},props:{breakPoint:{type:String,default:null,validator:e=>e.match(/(xs|sm|md|lg|xl|xxl)/)}}},_hoisted_1$1O={class:"vs-accordion","data-test":"vs-accordion"};function _sfc_render$2e(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1O,[vue.renderSlot(e.$slots,"default")])}const VsAccordion=_export_sfc(_sfc_main$2p,[["render",_sfc_render$2e]]),_sfc_main$2o={name:"VsIcon",status:"prototype",release:"0.1.0",props:{name:{type:String,required:!0,default:"search"},variant:{type:String,default:"default",validator:e=>e.match(/(default|primary|inverse|disabled|tertiary|danger|warning)/)},customColour:{type:String,default:null},orientation:{type:String,default:null,validator:e=>e.match(/(up|down|left|right)/)},size:{type:String,default:"md",validator:e=>e.match(/(xxs|xs|sm|md|lg|xl)/)},smallSize:{type:String,default:null,validator:e=>e.match(/(xxs|xs|sm|md|lg|xl)/)},duotone:{type:Boolean,default:!1}},data(){return{iconLookup:[{key:"accesstoliet",value:"accessible-toilet"},{key:"accessparkdrop",value:"facility-accessparkdrop"},{key:"acco",value:"product-accommodation"},{key:"acti",value:"product-activities"},{key:"attr",value:"product-attractions"},{key:"audioloop",value:"facility-audioloop"},{key:"cafereston",value:"cafe"},{key:"cate",value:"product-food-and-drink"},{key:"cities",value:"city"},{key:"cycling",value:"cycle"},{key:"dsblaccess",value:"facility-dsblaccess"},{key:"wheelchairaccess",value:"facility-dsblaccess"},{key:"even",value:"product-events"},{key:"familyev",value:"family"},{key:"filmev",value:"film-tv"},{key:"hottub",value:"hot-tub"},{key:"parking",value:"facility-parking"},{key:"petswelcom",value:"facility-petswelcom"},{key:"wifi",value:"facility-wifi"},{key:"public",value:"public-transport"},{key:"pubtranrte",value:"public-transport"},{key:"reta",value:"product-shopping"},{key:"spahealth",value:"wellness"},{key:"vege",value:"vegan-vegetarian"},{key:"walking",value:"walk"},{key:"boat",value:"boat"},{key:"transport",value:"transport"},{key:"brekavail",value:"breakfast-available"},{key:"wetroom",value:"level-entry-shower"},{key:"linkedin",value:"linkedin-in fa-brands"}]}},computed:{icon(){return this.formattedName},formattedName(){const e=this.iconLookup.find(({key:n})=>n===this.name);return e!==void 0?e.value:this.name}}};function _sfc_render$2d(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("i",vue.mergeProps({class:{fak:!0,[`fa-${s.icon}`]:!0,"vs-icon":!0,[`vs-icon--size-${t.size}`]:!0,[`vs-icon--sm-size-${t.smallSize}`]:t.smallSize,[`vs-icon--${s.formattedName}`]:!0,["icon--"+t.orientation]:t.orientation,[`vs-icon--variant-${t.variant}`]:t.variant,"fa-duotone":t.duotone},style:[t.customColour?{color:t.customColour}:{}]},e.$attrs,{"data-test":"vs-icon"}),null,16)}const VsIcon=_export_sfc(_sfc_main$2o,[["render",_sfc_render$2d]]),useDataLayerStore=pinia.defineStore("datalayer",()=>{const e=vue.ref(""),n=vue.ref(!1),t=vue.ref({});function r(l){n.value=l}function a(l){e.value=l}function s(l){t.value[l.key]=l.value}function i(l){return t.value[l]}return{pageUrl:e,tagsTestRun:n,GTMData:t,getValueFromKey:i,setTestRun:r,setPageUrl:a,processPayload:s}}),checkVendorLibrary=(e,n,t=0)=>{window.setTimeout(()=>{window[e]?n(window[e]):checkVendorLibrary(e,n,500)},t)},pageViewTemplate=["event","site_language","content_language","content_category","content_page_type","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","content_region","content_city","provider_search_region","provider_search_category","provider_search_facilities","provider_search_grading","provider_search_awards","provider_search_rooms","provider_search_min_price","provider_search_max_price","provider_category","provider_category_level_1","provider_category_level_2","provider_name","provider_ID","star_grading","provider_region","provider_city","provider_has_website","page_with_booking_link","provider_has_availability","availability_search_start_date","availability_search_end_date","availability_search_no_of_nights","availability_search_no_of_adults","availability_search_no_of_children","availability_search_no_of_rooms","availability_search_price_range","hit_timestamp","tag_name","meta_data"],productSearchTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","user_country_setting","hit_timestamp","tag_name","meta_data","psr_search_type","psr_search_location","page_path"],menuNavigationTemplate=["event","site_language","user_country_setting","hit_timestamp","tag_name","meta_data","click_text","click_URL"],shareTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_text","click_URL"],socialMediaExternalLinkTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_URL","location_on_page"],homePageLogoClickTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_URL"],videoTrackingTemplate=["event","language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","video_status","video_title","video_percent"],externalLinkTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_text","click_URL","dmo_referral"],internalLinkTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_text","click_URL"],errorTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","error_type","error_details","page_path"],formsTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","page_path","form_status"],carbonQuestionTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","question_number","answer"],carbonCompleteTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","total_emissions","total_per_day","travel_percent","accommodation_percent","food_percent"],cmsReferralTemplate=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","tag_name","meta_data","referral_location","attraction_name","dmo_referral"],dataLayerMixin={computed:{...pinia.mapState(useDataLayerStore,{pageUrl(e){return e.pageUrl}})},data(){return{dataLayerLoadConfirmed:!1,dataLayerStore:null}},mounted(){this.dataLayerStore=useDataLayerStore()},methods:{templateFiller(e,n){const t={};return e.forEach(r=>{t[r]="",t[r]=n[r]||void 0,r==="language"&&t[r]===void 0&&(t[r]=n.site_language||void 0)}),t},createDataLayerObject(e,n,t){let r,a,s,i,l,c,d="";switch(n&&n.target&&(n.target.text?c=n.target.text.trim():c=n.target.innerText),e){case"productSearchDataEvent":r="psr_search",a="VS - GA4 - Event - PSR Search",s={event:r,psr_search_type:n.searchType,psr_search_location:n.searchLocation,page_path:t,tag_name:a},i=this.compileFullTemplate(s),l=this.templateFiller(productSearchTemplate,i);break;case"pageViewTemplateDataEvent":r="page_view",s={event:r},i=this.compileFullTemplate(s),l=this.templateFiller(pageViewTemplate,i);break;case"menuNavigationDataEvent":r="menu_navigation",s={event:r,click_text:n.target.text.trim(),click_URL:t},i=this.compileFullTemplate(s),l=this.templateFiller(menuNavigationTemplate,i);break;case"socialMediaExternalLinkDataEvent":r="social_media_footer",a="VS - GA - Social Media External Link",s={event:r,tag_name:a,click_URL:t},i=this.compileFullTemplate(s),l=this.templateFiller(socialMediaExternalLinkTemplate,i);break;case"homePageLogoClickDataEvent":r="homepage_logo_click",a="VS - GA - Homepage Logo Click",s={event:r,tag_name:a},i=this.compileFullTemplate(s),l=this.templateFiller(homePageLogoClickTemplate,i);break;case"externalLinkDataEvent":r="external_link",a="VS - GA - External Link",s={event:r,tag_name:a,click_text:c,click_URL:t},i=this.compileFullTemplate(s),l=this.templateFiller(externalLinkTemplate,i);break;case"internalLinkDataEvent":r="internal_link",a="VS - GA - Internal Link",s={event:r,tag_name:a,click_text:c,click_URL:t},i=this.compileFullTemplate(s),l=this.templateFiller(internalLinkTemplate,i);break;case"formsDataEvent":r="forms",a="VS - GA - Forms",s={event:r,tag_name:a,form_status:"form_submitted"},i=this.compileFullTemplate(s),l=this.templateFiller(formsTemplate,i);break;case"errorDataEvent":r="errors",a="VS - GA - Errors",s={event:r,tag_name:a,error_type:n.error_type,error_details:n.error_details},i=this.compileFullTemplate(s),l=this.templateFiller(errorTemplate,i);break;case"videoTrackingDataEvent":r="video_tracking",a="VS - GA - Video Tracking",s={event:r,tag_name:a,video_status:n.status,video_title:n.title||"",video_percent:n.percent||0},i=this.compileFullTemplate(s),l=this.templateFiller(videoTrackingTemplate,i);break;case"socialShareDataEvent":r="share",a="VS - GA - Share",typeof n.target.text<"u"&&(d=n.target.text.trim()),s={event:r,tag_name:a,click_text:d,click_URL:t},i=this.compileFullTemplate(s),l=this.templateFiller(shareTemplate,i);break;case"carbonQuestionEvent":r="carbonCalculatorQuestion",a="VS - GA - Carbon Calculator Question Answered",s={event:r,tag_name:a,question_number:n.questionNumber,answer:n.answer},i=this.compileFullTemplate(s),l=this.templateFiller(carbonQuestionTemplate,i);break;case"carbonCompleteEvent":r="carbonCalculatorComplete",a="VS - GA - Carbon Calculator Complete",s={event:r,tag_name:a,total_emissions:n.totalEmissions,total_per_day:n.totalPerDay,travel_percent:n.travelPercent,accommodation_percent:n.accommodationPercent,food_percent:n.foodPercent},i=this.compileFullTemplate(s),l=this.templateFiller(carbonCompleteTemplate,i);break;case"cmsReferral":r="cms_referral",a="VS - GA4 - Event - CMS Link Click Referral",s={event:r,tag_name:a,referral_location:n.referral_location,dmo_referral:n.dmo_referral},i=this.compileFullTemplate(s),l=this.templateFiller(cmsReferralTemplate,i);break}this.pushToDataLayer(l)},returnIsoDate(){return new Date(Date.now()).toISOString()},pushToDataLayer(e){this.dataLayerLoadConfirmed?window.dataLayer.push(e):checkVendorLibrary("dataLayer",()=>{this.dataLayerLoadConfirmed=!0,window.dataLayer.push(e)})},compileFullTemplate(e){const t={...this.dataLayerStore.GTMData,...e};return t.hit_timestamp=this.returnIsoDate(),t},targetText(e){let n;return e.target.text?n=e.target.text.trim():n="",n}}},_sfc_main$2n={name:"VsButton",status:"prototype",release:"0.0.1",components:{BButton:bootstrapVueNext.BButton,VsIcon},mixins:[dataLayerMixin],props:{href:{type:String,default:null},tabindex:{type:String,default:null},variant:{type:String,default:"primary",validator:e=>e.match(/(primary|secondary|transparent)/)},size:{type:String,default:"md",validator:e=>e.match(/(sm|md|lg)/)},animate:{type:Boolean,default:!0},rounded:{type:Boolean,default:!0},icon:{type:String,default:""},iconOnly:{type:Boolean,default:!1},iconPosition:{type:String,default:"left",validator:e=>e.match(/(left|right)/)}},emits:["btnFocus"],data(){return{isAnimating:!1}},computed:{buttonClasses(){return[{"vs-button--animated":this.animate&&!this.iconOnly,"vs-button--is-animating":this.isAnimating,"vs-button--rounded":this.rounded,"vs-button--icon-only":this.iconOnly,"button-flex":this.icon&&!this.iconOnly,"vs-button--flex-reverse":this.iconPosition==="right"}]},iconClasses(){return[{"vs-icon--right":this.iconPosition==="right","vs-icon--left":this.iconPosition==="left"}]}},methods:{animateHandler(e){this.isAnimating=!0,setTimeout(()=>{this.isAnimating=!1},1e3),this.href!==null&&(e.preventDefault(),this.trackLink(e))},tabbedIn(e){this.$emit("btnFocus",e)},trackLink(e){let n;this.href.includes("http")?n="externalLinkDataEvent":n="internalLinkDataEvent",this.createDataLayerObject(n,e,this.href),this.href!=="#"&&this.href!==null&&(window.location.href=this.href)}}};function _sfc_render$2c(e,n,t,r,a,s){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("BButton");return vue.openBlock(),vue.createBlock(l,vue.mergeProps({variant:t.variant,href:t.href||void 0,tabindex:t.tabindex||void 0,class:["vs-button justify-content-center",s.buttonClasses],size:t.size},e.$attrs,{"aria-disabled":!!e.$attrs.disabled,onClick:n[0]||(n[0]=c=>s.animateHandler(c)),onKeyup:vue.withKeys(s.tabbedIn,["tab"])}),{default:vue.withCtx(()=>[t.icon?(vue.openBlock(),vue.createBlock(i,{key:0,class:vue.normalizeClass(["align-self-center",s.iconClasses]),name:t.icon,size:"xs",padding:0},null,8,["name","class"])):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass(["vs-button__text",{"visually-hidden":t.iconOnly}])},[vue.renderSlot(e.$slots,"default")],2)]),_:3},16,["variant","href","tabindex","class","size","aria-disabled","onKeyup"])}const VsButton=_export_sfc(_sfc_main$2n,[["render",_sfc_render$2c]]),_sfc_main$2m={name:"VsAccordionToggle",status:"prototype",release:"0.0.1",components:{VsButton},props:{variant:{type:String,default:"primary"},visible:{type:Boolean,default:!0}},emits:["toggle-panel"],methods:{triggerToggle(){this.$emit("toggle-panel")}}},_hoisted_1$1N={class:"vs-accordion-toggle__text"},_hoisted_2$1c={class:"vs-accordion-toggle__icon"};function _sfc_render$2b(e,n,t,r,a,s){const i=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createBlock(i,{animate:!1,"aria-expanded":t.visible?"true":"false","aria-haspopup":"true",onClick:s.triggerToggle,class:vue.normalizeClass(["vs-accordion-toggle clearfix",t.visible?"vs-accordion-toggle--open":""]),variant:t.variant,rounded:!1},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_1$1N,[vue.renderSlot(e.$slots,"default")]),vue.createElementVNode("span",_hoisted_2$1c,[t.visible?vue.renderSlot(e.$slots,"icon-open",{key:0}):vue.renderSlot(e.$slots,"icon-closed",{key:1})])]),_:3},8,["aria-expanded","onClick","class","variant"])}const VsAccordionToggle=_export_sfc(_sfc_main$2m,[["render",_sfc_render$2b]]);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var t=function r(){return this instanceof r?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),t}var lodash={exports:{}};/**
|
|
2
2
|
* @license
|
|
3
3
|
* Lodash <https://lodash.com/>
|
|
4
4
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
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,n){(function(){var t,r="4.17.21",a=200,s="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,b=2,C=1,w=2,E=4,V=8,A=16,$=32,O=64,I=128,L=256,Z=512,se=30,z="...",ie=800,Q=16,ae=1,we=2,me=3,fe=1/0,T=9007199254740991,M=17976931348623157e292,G=NaN,ne=4294967295,he=ne-1,B=ne>>>1,U=[["ary",I],["bind",C],["bindKey",w],["curry",V],["curryRight",A],["flip",Z],["partial",$],["partialRight",O],["rearg",L]],q="[object Arguments]",oe="[object Array]",ee="[object AsyncFunction]",le="[object Boolean]",ue="[object Date]",te="[object DOMException]",ce="[object Error]",ge="[object Function]",Se="[object GeneratorFunction]",ye="[object Map]",Te="[object Number]",Oe="[object Null]",Ue="[object Object]",ze="[object Promise]",H="[object Proxy]",Qe="[object RegExp]",De="[object Set]",Ze="[object String]",Ke="[object Symbol]",Et="[object Undefined]",$t="[object WeakMap]",en="[object WeakSet]",Wt="[object ArrayBuffer]",dn="[object DataView]",Tr="[object Float32Array]",Or="[object Float64Array]",Dr="[object Int8Array]",Br="[object Int16Array]",Ir="[object Int32Array]",Lr="[object Uint8Array]",Rr="[object Uint8ClampedArray]",Mr="[object Uint16Array]",Fr="[object Uint32Array]",Di=/\b__p \+= '';/g,Bi=/\b(__p \+=) '' \+/g,Ii=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Za=/&(?:amp|lt|gt|quot|#39);/g,es=/[&<>"']/g,Li=RegExp(Za.source),Ri=RegExp(es.source),Mi=/<%-([\s\S]+?)%>/g,Fi=/<%([\s\S]+?)%>/g,ts=/<%=([\s\S]+?)%>/g,Ui=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qi=/^\w*$/,Gi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ur=/[\\^$.*+?()[\]{}|]/g,Wi=RegExp(Ur.source),qr=/^\s+/,Hi=/\s/,ji=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,zi=/\{\n\/\* \[wrapped with (.+)\] \*/,Ki=/,? & /,Yi=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ji=/[()=,{}\[\]\/\s]/,Qi=/\\(\\)?/g,Xi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ns=/\w*$/,Zi=/^[-+]0x[0-9a-f]+$/i,el=/^0b[01]+$/i,tl=/^\[object .+?Constructor\]$/,nl=/^0o[0-7]+$/i,rl=/^(?:0|[1-9]\d*)$/,al=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Un=/($^)/,sl=/['\n\r\u2028\u2029\\]/g,qn="\\ud800-\\udfff",ol="\\u0300-\\u036f",il="\\ufe20-\\ufe2f",ll="\\u20d0-\\u20ff",rs=ol+il+ll,as="\\u2700-\\u27bf",ss="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",ls="A-Z\\xc0-\\xd6\\xd8-\\xde",us="\\ufe0e\\ufe0f",cs=ul+cl+dl+fl,Gr="['’]",pl="["+qn+"]",ds="["+cs+"]",Gn="["+rs+"]",ps="\\d+",hl="["+as+"]",hs="["+ss+"]",vs="[^"+qn+cs+ps+as+ss+ls+"]",Wr="\\ud83c[\\udffb-\\udfff]",vl="(?:"+Gn+"|"+Wr+")",gs="[^"+qn+"]",Hr="(?:\\ud83c[\\udde6-\\uddff]){2}",jr="[\\ud800-\\udbff][\\udc00-\\udfff]",fn="["+ls+"]",_s="\\u200d",ys="(?:"+hs+"|"+vs+")",ml="(?:"+fn+"|"+vs+")",bs="(?:"+Gr+"(?:d|ll|m|re|s|t|ve))?",Cs="(?:"+Gr+"(?:D|LL|M|RE|S|T|VE))?",Ss=vl+"?",ws="["+us+"]?",gl="(?:"+_s+"(?:"+[gs,Hr,jr].join("|")+")"+ws+Ss+")*",_l="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ks=ws+Ss+gl,bl="(?:"+[hl,Hr,jr].join("|")+")"+ks,Cl="(?:"+[gs+Gn+"?",Gn,Hr,jr,pl].join("|")+")",Sl=RegExp(Gr,"g"),wl=RegExp(Gn,"g"),zr=RegExp(Wr+"(?="+Wr+")|"+Cl+ks,"g"),kl=RegExp([fn+"?"+hs+"+"+bs+"(?="+[ds,fn,"$"].join("|")+")",ml+"+"+Cs+"(?="+[ds,fn+ys,"$"].join("|")+")",fn+"?"+ys+"+"+bs,fn+"+"+Cs,yl,_l,ps,bl].join("|"),"g"),El=RegExp("["+_s+qn+rs+us+"]"),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"],Nl=-1,Fe={};Fe[Tr]=Fe[Or]=Fe[Dr]=Fe[Br]=Fe[Ir]=Fe[Lr]=Fe[Rr]=Fe[Mr]=Fe[Fr]=!0,Fe[q]=Fe[oe]=Fe[Wt]=Fe[le]=Fe[dn]=Fe[ue]=Fe[ce]=Fe[ge]=Fe[ye]=Fe[Te]=Fe[Ue]=Fe[Qe]=Fe[De]=Fe[Ze]=Fe[$t]=!1;var Me={};Me[q]=Me[oe]=Me[Wt]=Me[dn]=Me[le]=Me[ue]=Me[Tr]=Me[Or]=Me[Dr]=Me[Br]=Me[Ir]=Me[ye]=Me[Te]=Me[Ue]=Me[Qe]=Me[De]=Me[Ze]=Me[Ke]=Me[Lr]=Me[Rr]=Me[Mr]=Me[Fr]=!0,Me[ce]=Me[ge]=Me[$t]=!1;var Al={À:"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"},$l={"&":"&","<":"<",">":">",'"':""","'":"'"},Pl={"&":"&","<":"<",">":">",""":'"',"'":"'"},Tl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ol=parseFloat,Dl=parseInt,Es=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Bl=typeof self=="object"&&self&&self.Object===Object&&self,et=Es||Bl||Function("return this")(),Kr=n&&!n.nodeType&&n,tn=Kr&&!0&&e&&!e.nodeType&&e,xs=tn&&tn.exports===Kr,Yr=xs&&Es.process,gt=function(){try{var R=tn&&tn.require&&tn.require("util").types;return R||Yr&&Yr.binding&&Yr.binding("util")}catch{}}(),Vs=gt&>.isArrayBuffer,Ns=gt&>.isDate,As=gt&>.isMap,$s=gt&>.isRegExp,Ps=gt&>.isSet,Ts=gt&>.isTypedArray;function dt(R,j,W){switch(W.length){case 0:return R.call(j);case 1:return R.call(j,W[0]);case 2:return R.call(j,W[0],W[1]);case 3:return R.call(j,W[0],W[1],W[2])}return R.apply(j,W)}function Il(R,j,W,pe){for(var ke=-1,Be=R==null?0:R.length;++ke<Be;){var Ye=R[ke];j(pe,Ye,W(Ye),R)}return pe}function _t(R,j){for(var W=-1,pe=R==null?0:R.length;++W<pe&&j(R[W],W,R)!==!1;);return R}function Ll(R,j){for(var W=R==null?0:R.length;W--&&j(R[W],W,R)!==!1;);return R}function Os(R,j){for(var W=-1,pe=R==null?0:R.length;++W<pe;)if(!j(R[W],W,R))return!1;return!0}function Ht(R,j){for(var W=-1,pe=R==null?0:R.length,ke=0,Be=[];++W<pe;){var Ye=R[W];j(Ye,W,R)&&(Be[ke++]=Ye)}return Be}function Wn(R,j){var W=R==null?0:R.length;return!!W&&pn(R,j,0)>-1}function Jr(R,j,W){for(var pe=-1,ke=R==null?0:R.length;++pe<ke;)if(W(j,R[pe]))return!0;return!1}function qe(R,j){for(var W=-1,pe=R==null?0:R.length,ke=Array(pe);++W<pe;)ke[W]=j(R[W],W,R);return ke}function jt(R,j){for(var W=-1,pe=j.length,ke=R.length;++W<pe;)R[ke+W]=j[W];return R}function Qr(R,j,W,pe){var ke=-1,Be=R==null?0:R.length;for(pe&&Be&&(W=R[++ke]);++ke<Be;)W=j(W,R[ke],ke,R);return W}function Rl(R,j,W,pe){var ke=R==null?0:R.length;for(pe&&ke&&(W=R[--ke]);ke--;)W=j(W,R[ke],ke,R);return W}function Xr(R,j){for(var W=-1,pe=R==null?0:R.length;++W<pe;)if(j(R[W],W,R))return!0;return!1}var Ml=Zr("length");function Fl(R){return R.split("")}function Ul(R){return R.match(Yi)||[]}function Ds(R,j,W){var pe;return W(R,function(ke,Be,Ye){if(j(ke,Be,Ye))return pe=Be,!1}),pe}function Hn(R,j,W,pe){for(var ke=R.length,Be=W+(pe?1:-1);pe?Be--:++Be<ke;)if(j(R[Be],Be,R))return Be;return-1}function pn(R,j,W){return j===j?Zl(R,j,W):Hn(R,Bs,W)}function ql(R,j,W,pe){for(var ke=W-1,Be=R.length;++ke<Be;)if(pe(R[ke],j))return ke;return-1}function Bs(R){return R!==R}function Is(R,j){var W=R==null?0:R.length;return W?ta(R,j)/W:G}function Zr(R){return function(j){return j==null?t:j[R]}}function ea(R){return function(j){return R==null?t:R[j]}}function Ls(R,j,W,pe,ke){return ke(R,function(Be,Ye,Re){W=pe?(pe=!1,Be):j(W,Be,Ye,Re)}),W}function Gl(R,j){var W=R.length;for(R.sort(j);W--;)R[W]=R[W].value;return R}function ta(R,j){for(var W,pe=-1,ke=R.length;++pe<ke;){var Be=j(R[pe]);Be!==t&&(W=W===t?Be:W+Be)}return W}function na(R,j){for(var W=-1,pe=Array(R);++W<R;)pe[W]=j(W);return pe}function Wl(R,j){return qe(j,function(W){return[W,R[W]]})}function Rs(R){return R&&R.slice(0,qs(R)+1).replace(qr,"")}function ft(R){return function(j){return R(j)}}function ra(R,j){return qe(j,function(W){return R[W]})}function xn(R,j){return R.has(j)}function Ms(R,j){for(var W=-1,pe=R.length;++W<pe&&pn(j,R[W],0)>-1;);return W}function Fs(R,j){for(var W=R.length;W--&&pn(j,R[W],0)>-1;);return W}function Hl(R,j){for(var W=R.length,pe=0;W--;)R[W]===j&&++pe;return pe}var jl=ea(Al),zl=ea($l);function Kl(R){return"\\"+Tl[R]}function Yl(R,j){return R==null?t:R[j]}function hn(R){return El.test(R)}function Jl(R){return xl.test(R)}function Ql(R){for(var j,W=[];!(j=R.next()).done;)W.push(j.value);return W}function aa(R){var j=-1,W=Array(R.size);return R.forEach(function(pe,ke){W[++j]=[ke,pe]}),W}function Us(R,j){return function(W){return R(j(W))}}function zt(R,j){for(var W=-1,pe=R.length,ke=0,Be=[];++W<pe;){var Ye=R[W];(Ye===j||Ye===f)&&(R[W]=f,Be[ke++]=W)}return Be}function jn(R){var j=-1,W=Array(R.size);return R.forEach(function(pe){W[++j]=pe}),W}function Xl(R){var j=-1,W=Array(R.size);return R.forEach(function(pe){W[++j]=[pe,pe]}),W}function Zl(R,j,W){for(var pe=W-1,ke=R.length;++pe<ke;)if(R[pe]===j)return pe;return-1}function eu(R,j,W){for(var pe=W+1;pe--;)if(R[pe]===j)return pe;return pe}function vn(R){return hn(R)?nu(R):Ml(R)}function xt(R){return hn(R)?ru(R):Fl(R)}function qs(R){for(var j=R.length;j--&&Hi.test(R.charAt(j)););return j}var tu=ea(Pl);function nu(R){for(var j=zr.lastIndex=0;zr.test(R);)++j;return j}function ru(R){return R.match(zr)||[]}function au(R){return R.match(kl)||[]}var su=function R(j){j=j==null?et:mn.defaults(et.Object(),j,mn.pick(et,Vl));var W=j.Array,pe=j.Date,ke=j.Error,Be=j.Function,Ye=j.Math,Re=j.Object,sa=j.RegExp,ou=j.String,yt=j.TypeError,zn=W.prototype,iu=Be.prototype,gn=Re.prototype,Kn=j["__core-js_shared__"],Jn=iu.toString,Le=gn.hasOwnProperty,lu=0,Gs=function(){var o=/[^.]+$/.exec(Kn&&Kn.keys&&Kn.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Qn=gn.toString,uu=Jn.call(Re),cu=et._,du=sa("^"+Jn.call(Le).replace(Ur,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),er=xs?j.Buffer:t,Kt=j.Symbol,tr=j.Uint8Array,Ws=er?er.allocUnsafe:t,nr=Us(Re.getPrototypeOf,Re),Hs=Re.create,js=gn.propertyIsEnumerable,rr=zn.splice,zs=Kt?Kt.isConcatSpreadable:t,Vn=Kt?Kt.iterator:t,nn=Kt?Kt.toStringTag:t,ar=function(){try{var o=ln(Re,"defineProperty");return o({},"",{}),o}catch{}}(),fu=j.clearTimeout!==et.clearTimeout&&j.clearTimeout,pu=pe&&pe.now!==et.Date.now&&pe.now,hu=j.setTimeout!==et.setTimeout&&j.setTimeout,sr=Ye.ceil,or=Ye.floor,oa=Re.getOwnPropertySymbols,vu=er?er.isBuffer:t,Ks=j.isFinite,mu=zn.join,gu=Us(Re.keys,Re),Je=Ye.max,nt=Ye.min,_u=pe.now,yu=j.parseInt,Ys=Ye.random,bu=zn.reverse,ia=ln(j,"DataView"),Nn=ln(j,"Map"),la=ln(j,"Promise"),_n=ln(j,"Set"),An=ln(j,"WeakMap"),$n=ln(Re,"create"),ir=An&&new An,yn={},Cu=un(ia),Su=un(Nn),wu=un(la),ku=un(_n),Eu=un(An),lr=Kt?Kt.prototype:t,Pn=lr?lr.valueOf:t,Js=lr?lr.toString:t;function k(o){if(We(o)&&!Ee(o)&&!(o instanceof $e)){if(o instanceof bt)return o;if(Le.call(o,"__wrapped__"))return Xo(o)}return new bt(o)}var bn=function(){function o(){}return function(u){if(!Ge(u))return{};if(Hs)return Hs(u);o.prototype=u;var h=new o;return o.prototype=t,h}}();function ur(){}function bt(o,u){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=t}k.templateSettings={escape:Mi,evaluate:Fi,interpolate:ts,variable:"",imports:{_:k}},k.prototype=ur.prototype,k.prototype.constructor=k,bt.prototype=bn(ur.prototype),bt.prototype.constructor=bt;function $e(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ne,this.__views__=[]}function xu(){var o=new $e(this.__wrapped__);return o.__actions__=it(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=it(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=it(this.__views__),o}function Vu(){if(this.__filtered__){var o=new $e(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function Nu(){var o=this.__wrapped__.value(),u=this.__dir__,h=Ee(o),_=u<0,S=h?o.length:0,N=Fc(0,S,this.__views__),P=N.start,D=N.end,F=D-P,Y=_?D:P-1,J=this.__iteratees__,X=J.length,de=0,ve=nt(F,this.__takeCount__);if(!h||!_&&S==F&&ve==F)return Co(o,this.__actions__);var be=[];e:for(;F--&&de<ve;){Y+=u;for(var Ve=-1,Ce=o[Y];++Ve<X;){var Ae=J[Ve],Pe=Ae.iteratee,vt=Ae.type,ot=Pe(Ce);if(vt==we)Ce=ot;else if(!ot){if(vt==ae)continue e;break e}}be[de++]=Ce}return be}$e.prototype=bn(ur.prototype),$e.prototype.constructor=$e;function rn(o){var u=-1,h=o==null?0:o.length;for(this.clear();++u<h;){var _=o[u];this.set(_[0],_[1])}}function Au(){this.__data__=$n?$n(null):{},this.size=0}function $u(o){var u=this.has(o)&&delete this.__data__[o];return this.size-=u?1:0,u}function Pu(o){var u=this.__data__;if($n){var h=u[o];return h===c?t:h}return Le.call(u,o)?u[o]:t}function Tu(o){var u=this.__data__;return $n?u[o]!==t:Le.call(u,o)}function Ou(o,u){var h=this.__data__;return this.size+=this.has(o)?0:1,h[o]=$n&&u===t?c:u,this}rn.prototype.clear=Au,rn.prototype.delete=$u,rn.prototype.get=Pu,rn.prototype.has=Tu,rn.prototype.set=Ou;function Dt(o){var u=-1,h=o==null?0:o.length;for(this.clear();++u<h;){var _=o[u];this.set(_[0],_[1])}}function Du(){this.__data__=[],this.size=0}function Bu(o){var u=this.__data__,h=cr(u,o);if(h<0)return!1;var _=u.length-1;return h==_?u.pop():rr.call(u,h,1),--this.size,!0}function Iu(o){var u=this.__data__,h=cr(u,o);return h<0?t:u[h][1]}function Lu(o){return cr(this.__data__,o)>-1}function Ru(o,u){var h=this.__data__,_=cr(h,o);return _<0?(++this.size,h.push([o,u])):h[_][1]=u,this}Dt.prototype.clear=Du,Dt.prototype.delete=Bu,Dt.prototype.get=Iu,Dt.prototype.has=Lu,Dt.prototype.set=Ru;function Bt(o){var u=-1,h=o==null?0:o.length;for(this.clear();++u<h;){var _=o[u];this.set(_[0],_[1])}}function Mu(){this.size=0,this.__data__={hash:new rn,map:new(Nn||Dt),string:new rn}}function Fu(o){var u=Sr(this,o).delete(o);return this.size-=u?1:0,u}function Uu(o){return Sr(this,o).get(o)}function qu(o){return Sr(this,o).has(o)}function Gu(o,u){var h=Sr(this,o),_=h.size;return h.set(o,u),this.size+=h.size==_?0:1,this}Bt.prototype.clear=Mu,Bt.prototype.delete=Fu,Bt.prototype.get=Uu,Bt.prototype.has=qu,Bt.prototype.set=Gu;function an(o){var u=-1,h=o==null?0:o.length;for(this.__data__=new Bt;++u<h;)this.add(o[u])}function Wu(o){return this.__data__.set(o,c),this}function Hu(o){return this.__data__.has(o)}an.prototype.add=an.prototype.push=Wu,an.prototype.has=Hu;function Vt(o){var u=this.__data__=new Dt(o);this.size=u.size}function ju(){this.__data__=new Dt,this.size=0}function zu(o){var u=this.__data__,h=u.delete(o);return this.size=u.size,h}function Ku(o){return this.__data__.get(o)}function Yu(o){return this.__data__.has(o)}function Ju(o,u){var h=this.__data__;if(h instanceof Dt){var _=h.__data__;if(!Nn||_.length<a-1)return _.push([o,u]),this.size=++h.size,this;h=this.__data__=new Bt(_)}return h.set(o,u),this.size=h.size,this}Vt.prototype.clear=ju,Vt.prototype.delete=zu,Vt.prototype.get=Ku,Vt.prototype.has=Yu,Vt.prototype.set=Ju;function Qs(o,u){var h=Ee(o),_=!h&&cn(o),S=!h&&!_&&Zt(o),N=!h&&!_&&!S&&kn(o),P=h||_||S||N,D=P?na(o.length,ou):[],F=D.length;for(var Y in o)(u||Le.call(o,Y))&&!(P&&(Y=="length"||S&&(Y=="offset"||Y=="parent")||N&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||Mt(Y,F)))&&D.push(Y);return D}function Xs(o){var u=o.length;return u?o[ya(0,u-1)]:t}function Qu(o,u){return wr(it(o),sn(u,0,o.length))}function Xu(o){return wr(it(o))}function ua(o,u,h){(h!==t&&!Nt(o[u],h)||h===t&&!(u in o))&&It(o,u,h)}function Tn(o,u,h){var _=o[u];(!(Le.call(o,u)&&Nt(_,h))||h===t&&!(u in o))&&It(o,u,h)}function cr(o,u){for(var h=o.length;h--;)if(Nt(o[h][0],u))return h;return-1}function Zu(o,u,h,_){return Yt(o,function(S,N,P){u(_,S,h(S),P)}),_}function Zs(o,u){return o&&Tt(u,Xe(u),o)}function ec(o,u){return o&&Tt(u,ut(u),o)}function It(o,u,h){u=="__proto__"&&ar?ar(o,u,{configurable:!0,enumerable:!0,value:h,writable:!0}):o[u]=h}function ca(o,u){for(var h=-1,_=u.length,S=W(_),N=o==null;++h<_;)S[h]=N?t:Wa(o,u[h]);return S}function sn(o,u,h){return o===o&&(h!==t&&(o=o<=h?o:h),u!==t&&(o=o>=u?o:u)),o}function Ct(o,u,h,_,S,N){var P,D=u&p,F=u&v,Y=u&m;if(h&&(P=S?h(o,_,S,N):h(o)),P!==t)return P;if(!Ge(o))return o;var J=Ee(o);if(J){if(P=qc(o),!D)return it(o,P)}else{var X=rt(o),de=X==ge||X==Se;if(Zt(o))return ko(o,D);if(X==Ue||X==q||de&&!S){if(P=F||de?{}:Go(o),!D)return F?Pc(o,ec(P,o)):$c(o,Zs(P,o))}else{if(!Me[X])return S?o:{};P=Gc(o,X,D)}}N||(N=new Vt);var ve=N.get(o);if(ve)return ve;N.set(o,P),yi(o)?o.forEach(function(Ce){P.add(Ct(Ce,u,h,Ce,o,N))}):gi(o)&&o.forEach(function(Ce,Ae){P.set(Ae,Ct(Ce,u,h,Ae,o,N))});var be=Y?F?$a:Aa:F?ut:Xe,Ve=J?t:be(o);return _t(Ve||o,function(Ce,Ae){Ve&&(Ae=Ce,Ce=o[Ae]),Tn(P,Ae,Ct(Ce,u,h,Ae,o,N))}),P}function tc(o){var u=Xe(o);return function(h){return eo(h,o,u)}}function eo(o,u,h){var _=h.length;if(o==null)return!_;for(o=Re(o);_--;){var S=h[_],N=u[S],P=o[S];if(P===t&&!(S in o)||!N(P))return!1}return!0}function to(o,u,h){if(typeof o!="function")throw new yt(i);return Mn(function(){o.apply(t,h)},u)}function On(o,u,h,_){var S=-1,N=Wn,P=!0,D=o.length,F=[],Y=u.length;if(!D)return F;h&&(u=qe(u,ft(h))),_?(N=Jr,P=!1):u.length>=a&&(N=xn,P=!1,u=new an(u));e:for(;++S<D;){var J=o[S],X=h==null?J:h(J);if(J=_||J!==0?J:0,P&&X===X){for(var de=Y;de--;)if(u[de]===X)continue e;F.push(J)}else N(u,X,_)||F.push(J)}return F}var Yt=Ao(Pt),no=Ao(fa,!0);function nc(o,u){var h=!0;return Yt(o,function(_,S,N){return h=!!u(_,S,N),h}),h}function dr(o,u,h){for(var _=-1,S=o.length;++_<S;){var N=o[_],P=u(N);if(P!=null&&(D===t?P===P&&!ht(P):h(P,D)))var D=P,F=N}return F}function rc(o,u,h,_){var S=o.length;for(h=xe(h),h<0&&(h=-h>S?0:S+h),_=_===t||_>S?S:xe(_),_<0&&(_+=S),_=h>_?0:Ci(_);h<_;)o[h++]=u;return o}function ro(o,u){var h=[];return Yt(o,function(_,S,N){u(_,S,N)&&h.push(_)}),h}function tt(o,u,h,_,S){var N=-1,P=o.length;for(h||(h=Hc),S||(S=[]);++N<P;){var D=o[N];u>0&&h(D)?u>1?tt(D,u-1,h,_,S):jt(S,D):_||(S[S.length]=D)}return S}var da=$o(),ao=$o(!0);function Pt(o,u){return o&&da(o,u,Xe)}function fa(o,u){return o&&ao(o,u,Xe)}function fr(o,u){return Ht(u,function(h){return Ft(o[h])})}function on(o,u){u=Qt(u,o);for(var h=0,_=u.length;o!=null&&h<_;)o=o[Ot(u[h++])];return h&&h==_?o:t}function so(o,u,h){var _=u(o);return Ee(o)?_:jt(_,h(o))}function at(o){return o==null?o===t?Et:Oe:nn&&nn in Re(o)?Mc(o):Xc(o)}function pa(o,u){return o>u}function ac(o,u){return o!=null&&Le.call(o,u)}function sc(o,u){return o!=null&&u in Re(o)}function oc(o,u,h){return o>=nt(u,h)&&o<Je(u,h)}function ha(o,u,h){for(var _=h?Jr:Wn,S=o[0].length,N=o.length,P=N,D=W(N),F=1/0,Y=[];P--;){var J=o[P];P&&u&&(J=qe(J,ft(u))),F=nt(J.length,F),D[P]=!h&&(u||S>=120&&J.length>=120)?new an(P&&J):t}J=o[0];var X=-1,de=D[0];e:for(;++X<S&&Y.length<F;){var ve=J[X],be=u?u(ve):ve;if(ve=h||ve!==0?ve:0,!(de?xn(de,be):_(Y,be,h))){for(P=N;--P;){var Ve=D[P];if(!(Ve?xn(Ve,be):_(o[P],be,h)))continue e}de&&de.push(be),Y.push(ve)}}return Y}function ic(o,u,h,_){return Pt(o,function(S,N,P){u(_,h(S),N,P)}),_}function Dn(o,u,h){u=Qt(u,o),o=zo(o,u);var _=o==null?o:o[Ot(wt(u))];return _==null?t:dt(_,o,h)}function oo(o){return We(o)&&at(o)==q}function lc(o){return We(o)&&at(o)==Wt}function uc(o){return We(o)&&at(o)==ue}function Bn(o,u,h,_,S){return o===u?!0:o==null||u==null||!We(o)&&!We(u)?o!==o&&u!==u:cc(o,u,h,_,Bn,S)}function cc(o,u,h,_,S,N){var P=Ee(o),D=Ee(u),F=P?oe:rt(o),Y=D?oe:rt(u);F=F==q?Ue:F,Y=Y==q?Ue:Y;var J=F==Ue,X=Y==Ue,de=F==Y;if(de&&Zt(o)){if(!Zt(u))return!1;P=!0,J=!1}if(de&&!J)return N||(N=new Vt),P||kn(o)?Fo(o,u,h,_,S,N):Lc(o,u,F,h,_,S,N);if(!(h&g)){var ve=J&&Le.call(o,"__wrapped__"),be=X&&Le.call(u,"__wrapped__");if(ve||be){var Ve=ve?o.value():o,Ce=be?u.value():u;return N||(N=new Vt),S(Ve,Ce,h,_,N)}}return de?(N||(N=new Vt),Rc(o,u,h,_,S,N)):!1}function dc(o){return We(o)&&rt(o)==ye}function va(o,u,h,_){var S=h.length,N=S,P=!_;if(o==null)return!N;for(o=Re(o);S--;){var D=h[S];if(P&&D[2]?D[1]!==o[D[0]]:!(D[0]in o))return!1}for(;++S<N;){D=h[S];var F=D[0],Y=o[F],J=D[1];if(P&&D[2]){if(Y===t&&!(F in o))return!1}else{var X=new Vt;if(_)var de=_(Y,J,F,o,u,X);if(!(de===t?Bn(J,Y,g|b,_,X):de))return!1}}return!0}function io(o){if(!Ge(o)||zc(o))return!1;var u=Ft(o)?du:tl;return u.test(un(o))}function fc(o){return We(o)&&at(o)==Qe}function pc(o){return We(o)&&rt(o)==De}function hc(o){return We(o)&&Ar(o.length)&&!!Fe[at(o)]}function lo(o){return typeof o=="function"?o:o==null?ct:typeof o=="object"?Ee(o)?fo(o[0],o[1]):co(o):Ti(o)}function ma(o){if(!Rn(o))return gu(o);var u=[];for(var h in Re(o))Le.call(o,h)&&h!="constructor"&&u.push(h);return u}function vc(o){if(!Ge(o))return Qc(o);var u=Rn(o),h=[];for(var _ in o)_=="constructor"&&(u||!Le.call(o,_))||h.push(_);return h}function ga(o,u){return o<u}function uo(o,u){var h=-1,_=lt(o)?W(o.length):[];return Yt(o,function(S,N,P){_[++h]=u(S,N,P)}),_}function co(o){var u=Ta(o);return u.length==1&&u[0][2]?Ho(u[0][0],u[0][1]):function(h){return h===o||va(h,o,u)}}function fo(o,u){return Da(o)&&Wo(u)?Ho(Ot(o),u):function(h){var _=Wa(h,o);return _===t&&_===u?Ha(h,o):Bn(u,_,g|b)}}function pr(o,u,h,_,S){o!==u&&da(u,function(N,P){if(S||(S=new Vt),Ge(N))mc(o,u,P,h,pr,_,S);else{var D=_?_(Ia(o,P),N,P+"",o,u,S):t;D===t&&(D=N),ua(o,P,D)}},ut)}function mc(o,u,h,_,S,N,P){var D=Ia(o,h),F=Ia(u,h),Y=P.get(F);if(Y){ua(o,h,Y);return}var J=N?N(D,F,h+"",o,u,P):t,X=J===t;if(X){var de=Ee(F),ve=!de&&Zt(F),be=!de&&!ve&&kn(F);J=F,de||ve||be?Ee(D)?J=D:He(D)?J=it(D):ve?(X=!1,J=ko(F,!0)):be?(X=!1,J=Eo(F,!0)):J=[]:Fn(F)||cn(F)?(J=D,cn(D)?J=Si(D):(!Ge(D)||Ft(D))&&(J=Go(F))):X=!1}X&&(P.set(F,J),S(J,F,_,N,P),P.delete(F)),ua(o,h,J)}function po(o,u){var h=o.length;if(h)return u+=u<0?h:0,Mt(u,h)?o[u]:t}function ho(o,u,h){u.length?u=qe(u,function(N){return Ee(N)?function(P){return on(P,N.length===1?N[0]:N)}:N}):u=[ct];var _=-1;u=qe(u,ft(_e()));var S=uo(o,function(N,P,D){var F=qe(u,function(Y){return Y(N)});return{criteria:F,index:++_,value:N}});return Gl(S,function(N,P){return Ac(N,P,h)})}function gc(o,u){return vo(o,u,function(h,_){return Ha(o,_)})}function vo(o,u,h){for(var _=-1,S=u.length,N={};++_<S;){var P=u[_],D=on(o,P);h(D,P)&&In(N,Qt(P,o),D)}return N}function _c(o){return function(u){return on(u,o)}}function _a(o,u,h,_){var S=_?ql:pn,N=-1,P=u.length,D=o;for(o===u&&(u=it(u)),h&&(D=qe(o,ft(h)));++N<P;)for(var F=0,Y=u[N],J=h?h(Y):Y;(F=S(D,J,F,_))>-1;)D!==o&&rr.call(D,F,1),rr.call(o,F,1);return o}function mo(o,u){for(var h=o?u.length:0,_=h-1;h--;){var S=u[h];if(h==_||S!==N){var N=S;Mt(S)?rr.call(o,S,1):Sa(o,S)}}return o}function ya(o,u){return o+or(Ys()*(u-o+1))}function yc(o,u,h,_){for(var S=-1,N=Je(sr((u-o)/(h||1)),0),P=W(N);N--;)P[_?N:++S]=o,o+=h;return P}function ba(o,u){var h="";if(!o||u<1||u>T)return h;do u%2&&(h+=o),u=or(u/2),u&&(o+=o);while(u);return h}function Ne(o,u){return La(jo(o,u,ct),o+"")}function bc(o){return Xs(En(o))}function Cc(o,u){var h=En(o);return wr(h,sn(u,0,h.length))}function In(o,u,h,_){if(!Ge(o))return o;u=Qt(u,o);for(var S=-1,N=u.length,P=N-1,D=o;D!=null&&++S<N;){var F=Ot(u[S]),Y=h;if(F==="__proto__"||F==="constructor"||F==="prototype")return o;if(S!=P){var J=D[F];Y=_?_(J,F,D):t,Y===t&&(Y=Ge(J)?J:Mt(u[S+1])?[]:{})}Tn(D,F,Y),D=D[F]}return o}var go=ir?function(o,u){return ir.set(o,u),o}:ct,Sc=ar?function(o,u){return ar(o,"toString",{configurable:!0,enumerable:!1,value:za(u),writable:!0})}:ct;function wc(o){return wr(En(o))}function St(o,u,h){var _=-1,S=o.length;u<0&&(u=-u>S?0:S+u),h=h>S?S:h,h<0&&(h+=S),S=u>h?0:h-u>>>0,u>>>=0;for(var N=W(S);++_<S;)N[_]=o[_+u];return N}function kc(o,u){var h;return Yt(o,function(_,S,N){return h=u(_,S,N),!h}),!!h}function hr(o,u,h){var _=0,S=o==null?_:o.length;if(typeof u=="number"&&u===u&&S<=B){for(;_<S;){var N=_+S>>>1,P=o[N];P!==null&&!ht(P)&&(h?P<=u:P<u)?_=N+1:S=N}return S}return Ca(o,u,ct,h)}function Ca(o,u,h,_){var S=0,N=o==null?0:o.length;if(N===0)return 0;u=h(u);for(var P=u!==u,D=u===null,F=ht(u),Y=u===t;S<N;){var J=or((S+N)/2),X=h(o[J]),de=X!==t,ve=X===null,be=X===X,Ve=ht(X);if(P)var Ce=_||be;else Y?Ce=be&&(_||de):D?Ce=be&&de&&(_||!ve):F?Ce=be&&de&&!ve&&(_||!Ve):ve||Ve?Ce=!1:Ce=_?X<=u:X<u;Ce?S=J+1:N=J}return nt(N,he)}function _o(o,u){for(var h=-1,_=o.length,S=0,N=[];++h<_;){var P=o[h],D=u?u(P):P;if(!h||!Nt(D,F)){var F=D;N[S++]=P===0?0:P}}return N}function yo(o){return typeof o=="number"?o:ht(o)?G:+o}function pt(o){if(typeof o=="string")return o;if(Ee(o))return qe(o,pt)+"";if(ht(o))return Js?Js.call(o):"";var u=o+"";return u=="0"&&1/o==-1/0?"-0":u}function Jt(o,u,h){var _=-1,S=Wn,N=o.length,P=!0,D=[],F=D;if(h)P=!1,S=Jr;else if(N>=a){var Y=u?null:Bc(o);if(Y)return jn(Y);P=!1,S=xn,F=new an}else F=u?[]:D;e:for(;++_<N;){var J=o[_],X=u?u(J):J;if(J=h||J!==0?J:0,P&&X===X){for(var de=F.length;de--;)if(F[de]===X)continue e;u&&F.push(X),D.push(J)}else S(F,X,h)||(F!==D&&F.push(X),D.push(J))}return D}function Sa(o,u){return u=Qt(u,o),o=zo(o,u),o==null||delete o[Ot(wt(u))]}function bo(o,u,h,_){return In(o,u,h(on(o,u)),_)}function vr(o,u,h,_){for(var S=o.length,N=_?S:-1;(_?N--:++N<S)&&u(o[N],N,o););return h?St(o,_?0:N,_?N+1:S):St(o,_?N+1:0,_?S:N)}function Co(o,u){var h=o;return h instanceof $e&&(h=h.value()),Qr(u,function(_,S){return S.func.apply(S.thisArg,jt([_],S.args))},h)}function wa(o,u,h){var _=o.length;if(_<2)return _?Jt(o[0]):[];for(var S=-1,N=W(_);++S<_;)for(var P=o[S],D=-1;++D<_;)D!=S&&(N[S]=On(N[S]||P,o[D],u,h));return Jt(tt(N,1),u,h)}function So(o,u,h){for(var _=-1,S=o.length,N=u.length,P={};++_<S;){var D=_<N?u[_]:t;h(P,o[_],D)}return P}function ka(o){return He(o)?o:[]}function Ea(o){return typeof o=="function"?o:ct}function Qt(o,u){return Ee(o)?o:Da(o,u)?[o]:Qo(Ie(o))}var Ec=Ne;function Xt(o,u,h){var _=o.length;return h=h===t?_:h,!u&&h>=_?o:St(o,u,h)}var wo=fu||function(o){return et.clearTimeout(o)};function ko(o,u){if(u)return o.slice();var h=o.length,_=Ws?Ws(h):new o.constructor(h);return o.copy(_),_}function xa(o){var u=new o.constructor(o.byteLength);return new tr(u).set(new tr(o)),u}function xc(o,u){var h=u?xa(o.buffer):o.buffer;return new o.constructor(h,o.byteOffset,o.byteLength)}function Vc(o){var u=new o.constructor(o.source,ns.exec(o));return u.lastIndex=o.lastIndex,u}function Nc(o){return Pn?Re(Pn.call(o)):{}}function Eo(o,u){var h=u?xa(o.buffer):o.buffer;return new o.constructor(h,o.byteOffset,o.length)}function xo(o,u){if(o!==u){var h=o!==t,_=o===null,S=o===o,N=ht(o),P=u!==t,D=u===null,F=u===u,Y=ht(u);if(!D&&!Y&&!N&&o>u||N&&P&&F&&!D&&!Y||_&&P&&F||!h&&F||!S)return 1;if(!_&&!N&&!Y&&o<u||Y&&h&&S&&!_&&!N||D&&h&&S||!P&&S||!F)return-1}return 0}function Ac(o,u,h){for(var _=-1,S=o.criteria,N=u.criteria,P=S.length,D=h.length;++_<P;){var F=xo(S[_],N[_]);if(F){if(_>=D)return F;var Y=h[_];return F*(Y=="desc"?-1:1)}}return o.index-u.index}function Vo(o,u,h,_){for(var S=-1,N=o.length,P=h.length,D=-1,F=u.length,Y=Je(N-P,0),J=W(F+Y),X=!_;++D<F;)J[D]=u[D];for(;++S<P;)(X||S<N)&&(J[h[S]]=o[S]);for(;Y--;)J[D++]=o[S++];return J}function No(o,u,h,_){for(var S=-1,N=o.length,P=-1,D=h.length,F=-1,Y=u.length,J=Je(N-D,0),X=W(J+Y),de=!_;++S<J;)X[S]=o[S];for(var ve=S;++F<Y;)X[ve+F]=u[F];for(;++P<D;)(de||S<N)&&(X[ve+h[P]]=o[S++]);return X}function it(o,u){var h=-1,_=o.length;for(u||(u=W(_));++h<_;)u[h]=o[h];return u}function Tt(o,u,h,_){var S=!h;h||(h={});for(var N=-1,P=u.length;++N<P;){var D=u[N],F=_?_(h[D],o[D],D,h,o):t;F===t&&(F=o[D]),S?It(h,D,F):Tn(h,D,F)}return h}function $c(o,u){return Tt(o,Oa(o),u)}function Pc(o,u){return Tt(o,Uo(o),u)}function mr(o,u){return function(h,_){var S=Ee(h)?Il:Zu,N=u?u():{};return S(h,o,_e(_,2),N)}}function Cn(o){return Ne(function(u,h){var _=-1,S=h.length,N=S>1?h[S-1]:t,P=S>2?h[2]:t;for(N=o.length>3&&typeof N=="function"?(S--,N):t,P&&st(h[0],h[1],P)&&(N=S<3?t:N,S=1),u=Re(u);++_<S;){var D=h[_];D&&o(u,D,_,N)}return u})}function Ao(o,u){return function(h,_){if(h==null)return h;if(!lt(h))return o(h,_);for(var S=h.length,N=u?S:-1,P=Re(h);(u?N--:++N<S)&&_(P[N],N,P)!==!1;);return h}}function $o(o){return function(u,h,_){for(var S=-1,N=Re(u),P=_(u),D=P.length;D--;){var F=P[o?D:++S];if(h(N[F],F,N)===!1)break}return u}}function Tc(o,u,h){var _=u&C,S=Ln(o);function N(){var P=this&&this!==et&&this instanceof N?S:o;return P.apply(_?h:this,arguments)}return N}function Po(o){return function(u){u=Ie(u);var h=hn(u)?xt(u):t,_=h?h[0]:u.charAt(0),S=h?Xt(h,1).join(""):u.slice(1);return _[o]()+S}}function Sn(o){return function(u){return Qr($i(Ai(u).replace(Sl,"")),o,"")}}function Ln(o){return function(){var u=arguments;switch(u.length){case 0:return new o;case 1:return new o(u[0]);case 2:return new o(u[0],u[1]);case 3:return new o(u[0],u[1],u[2]);case 4:return new o(u[0],u[1],u[2],u[3]);case 5:return new o(u[0],u[1],u[2],u[3],u[4]);case 6:return new o(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new o(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var h=bn(o.prototype),_=o.apply(h,u);return Ge(_)?_:h}}function Oc(o,u,h){var _=Ln(o);function S(){for(var N=arguments.length,P=W(N),D=N,F=wn(S);D--;)P[D]=arguments[D];var Y=N<3&&P[0]!==F&&P[N-1]!==F?[]:zt(P,F);if(N-=Y.length,N<h)return Io(o,u,gr,S.placeholder,t,P,Y,t,t,h-N);var J=this&&this!==et&&this instanceof S?_:o;return dt(J,this,P)}return S}function To(o){return function(u,h,_){var S=Re(u);if(!lt(u)){var N=_e(h,3);u=Xe(u),h=function(D){return N(S[D],D,S)}}var P=o(u,h,_);return P>-1?S[N?u[P]:P]:t}}function Oo(o){return Rt(function(u){var h=u.length,_=h,S=bt.prototype.thru;for(o&&u.reverse();_--;){var N=u[_];if(typeof N!="function")throw new yt(i);if(S&&!P&&Cr(N)=="wrapper")var P=new bt([],!0)}for(_=P?_:h;++_<h;){N=u[_];var D=Cr(N),F=D=="wrapper"?Pa(N):t;F&&Ba(F[0])&&F[1]==(I|V|$|L)&&!F[4].length&&F[9]==1?P=P[Cr(F[0])].apply(P,F[3]):P=N.length==1&&Ba(N)?P[D]():P.thru(N)}return function(){var Y=arguments,J=Y[0];if(P&&Y.length==1&&Ee(J))return P.plant(J).value();for(var X=0,de=h?u[X].apply(this,Y):J;++X<h;)de=u[X].call(this,de);return de}})}function gr(o,u,h,_,S,N,P,D,F,Y){var J=u&I,X=u&C,de=u&w,ve=u&(V|A),be=u&Z,Ve=de?t:Ln(o);function Ce(){for(var Ae=arguments.length,Pe=W(Ae),vt=Ae;vt--;)Pe[vt]=arguments[vt];if(ve)var ot=wn(Ce),mt=Hl(Pe,ot);if(_&&(Pe=Vo(Pe,_,S,ve)),N&&(Pe=No(Pe,N,P,ve)),Ae-=mt,ve&&Ae<Y){var je=zt(Pe,ot);return Io(o,u,gr,Ce.placeholder,h,Pe,je,D,F,Y-Ae)}var At=X?h:this,qt=de?At[o]:o;return Ae=Pe.length,D?Pe=Zc(Pe,D):be&&Ae>1&&Pe.reverse(),J&&F<Ae&&(Pe.length=F),this&&this!==et&&this instanceof Ce&&(qt=Ve||Ln(qt)),qt.apply(At,Pe)}return Ce}function Do(o,u){return function(h,_){return ic(h,o,u(_),{})}}function _r(o,u){return function(h,_){var S;if(h===t&&_===t)return u;if(h!==t&&(S=h),_!==t){if(S===t)return _;typeof h=="string"||typeof _=="string"?(h=pt(h),_=pt(_)):(h=yo(h),_=yo(_)),S=o(h,_)}return S}}function Va(o){return Rt(function(u){return u=qe(u,ft(_e())),Ne(function(h){var _=this;return o(u,function(S){return dt(S,_,h)})})})}function yr(o,u){u=u===t?" ":pt(u);var h=u.length;if(h<2)return h?ba(u,o):u;var _=ba(u,sr(o/vn(u)));return hn(u)?Xt(xt(_),0,o).join(""):_.slice(0,o)}function Dc(o,u,h,_){var S=u&C,N=Ln(o);function P(){for(var D=-1,F=arguments.length,Y=-1,J=_.length,X=W(J+F),de=this&&this!==et&&this instanceof P?N:o;++Y<J;)X[Y]=_[Y];for(;F--;)X[Y++]=arguments[++D];return dt(de,S?h:this,X)}return P}function Bo(o){return function(u,h,_){return _&&typeof _!="number"&&st(u,h,_)&&(h=_=t),u=Ut(u),h===t?(h=u,u=0):h=Ut(h),_=_===t?u<h?1:-1:Ut(_),yc(u,h,_,o)}}function br(o){return function(u,h){return typeof u=="string"&&typeof h=="string"||(u=kt(u),h=kt(h)),o(u,h)}}function Io(o,u,h,_,S,N,P,D,F,Y){var J=u&V,X=J?P:t,de=J?t:P,ve=J?N:t,be=J?t:N;u|=J?$:O,u&=~(J?O:$),u&E||(u&=-4);var Ve=[o,u,S,ve,X,be,de,D,F,Y],Ce=h.apply(t,Ve);return Ba(o)&&Ko(Ce,Ve),Ce.placeholder=_,Yo(Ce,o,u)}function Na(o){var u=Ye[o];return function(h,_){if(h=kt(h),_=_==null?0:nt(xe(_),292),_&&Ks(h)){var S=(Ie(h)+"e").split("e"),N=u(S[0]+"e"+(+S[1]+_));return S=(Ie(N)+"e").split("e"),+(S[0]+"e"+(+S[1]-_))}return u(h)}}var Bc=_n&&1/jn(new _n([,-0]))[1]==fe?function(o){return new _n(o)}:Ja;function Lo(o){return function(u){var h=rt(u);return h==ye?aa(u):h==De?Xl(u):Wl(u,o(u))}}function Lt(o,u,h,_,S,N,P,D){var F=u&w;if(!F&&typeof o!="function")throw new yt(i);var Y=_?_.length:0;if(Y||(u&=-97,_=S=t),P=P===t?P:Je(xe(P),0),D=D===t?D:xe(D),Y-=S?S.length:0,u&O){var J=_,X=S;_=S=t}var de=F?t:Pa(o),ve=[o,u,h,_,S,J,X,N,P,D];if(de&&Jc(ve,de),o=ve[0],u=ve[1],h=ve[2],_=ve[3],S=ve[4],D=ve[9]=ve[9]===t?F?0:o.length:Je(ve[9]-Y,0),!D&&u&(V|A)&&(u&=-25),!u||u==C)var be=Tc(o,u,h);else u==V||u==A?be=Oc(o,u,D):(u==$||u==(C|$))&&!S.length?be=Dc(o,u,h,_):be=gr.apply(t,ve);var Ve=de?go:Ko;return Yo(Ve(be,ve),o,u)}function Ro(o,u,h,_){return o===t||Nt(o,gn[h])&&!Le.call(_,h)?u:o}function Mo(o,u,h,_,S,N){return Ge(o)&&Ge(u)&&(N.set(u,o),pr(o,u,t,Mo,N),N.delete(u)),o}function Ic(o){return Fn(o)?t:o}function Fo(o,u,h,_,S,N){var P=h&g,D=o.length,F=u.length;if(D!=F&&!(P&&F>D))return!1;var Y=N.get(o),J=N.get(u);if(Y&&J)return Y==u&&J==o;var X=-1,de=!0,ve=h&b?new an:t;for(N.set(o,u),N.set(u,o);++X<D;){var be=o[X],Ve=u[X];if(_)var Ce=P?_(Ve,be,X,u,o,N):_(be,Ve,X,o,u,N);if(Ce!==t){if(Ce)continue;de=!1;break}if(ve){if(!Xr(u,function(Ae,Pe){if(!xn(ve,Pe)&&(be===Ae||S(be,Ae,h,_,N)))return ve.push(Pe)})){de=!1;break}}else if(!(be===Ve||S(be,Ve,h,_,N))){de=!1;break}}return N.delete(o),N.delete(u),de}function Lc(o,u,h,_,S,N,P){switch(h){case dn:if(o.byteLength!=u.byteLength||o.byteOffset!=u.byteOffset)return!1;o=o.buffer,u=u.buffer;case Wt:return!(o.byteLength!=u.byteLength||!N(new tr(o),new tr(u)));case le:case ue:case Te:return Nt(+o,+u);case ce:return o.name==u.name&&o.message==u.message;case Qe:case Ze:return o==u+"";case ye:var D=aa;case De:var F=_&g;if(D||(D=jn),o.size!=u.size&&!F)return!1;var Y=P.get(o);if(Y)return Y==u;_|=b,P.set(o,u);var J=Fo(D(o),D(u),_,S,N,P);return P.delete(o),J;case Ke:if(Pn)return Pn.call(o)==Pn.call(u)}return!1}function Rc(o,u,h,_,S,N){var P=h&g,D=Aa(o),F=D.length,Y=Aa(u),J=Y.length;if(F!=J&&!P)return!1;for(var X=F;X--;){var de=D[X];if(!(P?de in u:Le.call(u,de)))return!1}var ve=N.get(o),be=N.get(u);if(ve&&be)return ve==u&&be==o;var Ve=!0;N.set(o,u),N.set(u,o);for(var Ce=P;++X<F;){de=D[X];var Ae=o[de],Pe=u[de];if(_)var vt=P?_(Pe,Ae,de,u,o,N):_(Ae,Pe,de,o,u,N);if(!(vt===t?Ae===Pe||S(Ae,Pe,h,_,N):vt)){Ve=!1;break}Ce||(Ce=de=="constructor")}if(Ve&&!Ce){var ot=o.constructor,mt=u.constructor;ot!=mt&&"constructor"in o&&"constructor"in u&&!(typeof ot=="function"&&ot instanceof ot&&typeof mt=="function"&&mt instanceof mt)&&(Ve=!1)}return N.delete(o),N.delete(u),Ve}function Rt(o){return La(jo(o,t,ti),o+"")}function Aa(o){return so(o,Xe,Oa)}function $a(o){return so(o,ut,Uo)}var Pa=ir?function(o){return ir.get(o)}:Ja;function Cr(o){for(var u=o.name+"",h=yn[u],_=Le.call(yn,u)?h.length:0;_--;){var S=h[_],N=S.func;if(N==null||N==o)return S.name}return u}function wn(o){var u=Le.call(k,"placeholder")?k:o;return u.placeholder}function _e(){var o=k.iteratee||Ka;return o=o===Ka?lo:o,arguments.length?o(arguments[0],arguments[1]):o}function Sr(o,u){var h=o.__data__;return jc(u)?h[typeof u=="string"?"string":"hash"]:h.map}function Ta(o){for(var u=Xe(o),h=u.length;h--;){var _=u[h],S=o[_];u[h]=[_,S,Wo(S)]}return u}function ln(o,u){var h=Yl(o,u);return io(h)?h:t}function Mc(o){var u=Le.call(o,nn),h=o[nn];try{o[nn]=t;var _=!0}catch{}var S=Qn.call(o);return _&&(u?o[nn]=h:delete o[nn]),S}var Oa=oa?function(o){return o==null?[]:(o=Re(o),Ht(oa(o),function(u){return js.call(o,u)}))}:Qa,Uo=oa?function(o){for(var u=[];o;)jt(u,Oa(o)),o=nr(o);return u}:Qa,rt=at;(ia&&rt(new ia(new ArrayBuffer(1)))!=dn||Nn&&rt(new Nn)!=ye||la&&rt(la.resolve())!=ze||_n&&rt(new _n)!=De||An&&rt(new An)!=$t)&&(rt=function(o){var u=at(o),h=u==Ue?o.constructor:t,_=h?un(h):"";if(_)switch(_){case Cu:return dn;case Su:return ye;case wu:return ze;case ku:return De;case Eu:return $t}return u});function Fc(o,u,h){for(var _=-1,S=h.length;++_<S;){var N=h[_],P=N.size;switch(N.type){case"drop":o+=P;break;case"dropRight":u-=P;break;case"take":u=nt(u,o+P);break;case"takeRight":o=Je(o,u-P);break}}return{start:o,end:u}}function Uc(o){var u=o.match(zi);return u?u[1].split(Ki):[]}function qo(o,u,h){u=Qt(u,o);for(var _=-1,S=u.length,N=!1;++_<S;){var P=Ot(u[_]);if(!(N=o!=null&&h(o,P)))break;o=o[P]}return N||++_!=S?N:(S=o==null?0:o.length,!!S&&Ar(S)&&Mt(P,S)&&(Ee(o)||cn(o)))}function qc(o){var u=o.length,h=new o.constructor(u);return u&&typeof o[0]=="string"&&Le.call(o,"index")&&(h.index=o.index,h.input=o.input),h}function Go(o){return typeof o.constructor=="function"&&!Rn(o)?bn(nr(o)):{}}function Gc(o,u,h){var _=o.constructor;switch(u){case Wt:return xa(o);case le:case ue:return new _(+o);case dn:return xc(o,h);case Tr:case Or:case Dr:case Br:case Ir:case Lr:case Rr:case Mr:case Fr:return Eo(o,h);case ye:return new _;case Te:case Ze:return new _(o);case Qe:return Vc(o);case De:return new _;case Ke:return Nc(o)}}function Wc(o,u){var h=u.length;if(!h)return o;var _=h-1;return u[_]=(h>1?"& ":"")+u[_],u=u.join(h>2?", ":" "),o.replace(ji,`{
|
|
8
|
+
*/lodash.exports;(function(e,n){(function(){var t,r="4.17.21",a=200,s="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,b=2,C=1,w=2,E=4,V=8,A=16,P=32,O=64,I=128,R=256,Z=512,se=30,z="...",ie=800,Q=16,ae=1,we=2,me=3,fe=1/0,T=9007199254740991,M=17976931348623157e292,G=NaN,ne=4294967295,he=ne-1,B=ne>>>1,U=[["ary",I],["bind",C],["bindKey",w],["curry",V],["curryRight",A],["flip",Z],["partial",P],["partialRight",O],["rearg",R]],q="[object Arguments]",oe="[object Array]",ee="[object AsyncFunction]",le="[object Boolean]",ue="[object Date]",te="[object DOMException]",ce="[object Error]",ge="[object Function]",Se="[object GeneratorFunction]",ye="[object Map]",Te="[object Number]",Oe="[object Null]",Ue="[object Object]",ze="[object Promise]",H="[object Proxy]",Qe="[object RegExp]",De="[object Set]",Ze="[object String]",Ke="[object Symbol]",Et="[object Undefined]",Pt="[object WeakMap]",en="[object WeakSet]",Wt="[object ArrayBuffer]",dn="[object DataView]",Tr="[object Float32Array]",Or="[object Float64Array]",Dr="[object Int8Array]",Br="[object Int16Array]",Ir="[object Int32Array]",Rr="[object Uint8Array]",Lr="[object Uint8ClampedArray]",Mr="[object Uint16Array]",Fr="[object Uint32Array]",Di=/\b__p \+= '';/g,Bi=/\b(__p \+=) '' \+/g,Ii=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Za=/&(?:amp|lt|gt|quot|#39);/g,es=/[&<>"']/g,Ri=RegExp(Za.source),Li=RegExp(es.source),Mi=/<%-([\s\S]+?)%>/g,Fi=/<%([\s\S]+?)%>/g,ts=/<%=([\s\S]+?)%>/g,Ui=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qi=/^\w*$/,Gi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ur=/[\\^$.*+?()[\]{}|]/g,Wi=RegExp(Ur.source),qr=/^\s+/,Hi=/\s/,ji=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,zi=/\{\n\/\* \[wrapped with (.+)\] \*/,Ki=/,? & /,Yi=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ji=/[()=,{}\[\]\/\s]/,Qi=/\\(\\)?/g,Xi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ns=/\w*$/,Zi=/^[-+]0x[0-9a-f]+$/i,el=/^0b[01]+$/i,tl=/^\[object .+?Constructor\]$/,nl=/^0o[0-7]+$/i,rl=/^(?:0|[1-9]\d*)$/,al=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Un=/($^)/,sl=/['\n\r\u2028\u2029\\]/g,qn="\\ud800-\\udfff",ol="\\u0300-\\u036f",il="\\ufe20-\\ufe2f",ll="\\u20d0-\\u20ff",rs=ol+il+ll,as="\\u2700-\\u27bf",ss="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",ls="A-Z\\xc0-\\xd6\\xd8-\\xde",us="\\ufe0e\\ufe0f",cs=ul+cl+dl+fl,Gr="['’]",pl="["+qn+"]",ds="["+cs+"]",Gn="["+rs+"]",ps="\\d+",hl="["+as+"]",hs="["+ss+"]",vs="[^"+qn+cs+ps+as+ss+ls+"]",Wr="\\ud83c[\\udffb-\\udfff]",vl="(?:"+Gn+"|"+Wr+")",gs="[^"+qn+"]",Hr="(?:\\ud83c[\\udde6-\\uddff]){2}",jr="[\\ud800-\\udbff][\\udc00-\\udfff]",fn="["+ls+"]",_s="\\u200d",ys="(?:"+hs+"|"+vs+")",ml="(?:"+fn+"|"+vs+")",bs="(?:"+Gr+"(?:d|ll|m|re|s|t|ve))?",Cs="(?:"+Gr+"(?:D|LL|M|RE|S|T|VE))?",Ss=vl+"?",ws="["+us+"]?",gl="(?:"+_s+"(?:"+[gs,Hr,jr].join("|")+")"+ws+Ss+")*",_l="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ks=ws+Ss+gl,bl="(?:"+[hl,Hr,jr].join("|")+")"+ks,Cl="(?:"+[gs+Gn+"?",Gn,Hr,jr,pl].join("|")+")",Sl=RegExp(Gr,"g"),wl=RegExp(Gn,"g"),zr=RegExp(Wr+"(?="+Wr+")|"+Cl+ks,"g"),kl=RegExp([fn+"?"+hs+"+"+bs+"(?="+[ds,fn,"$"].join("|")+")",ml+"+"+Cs+"(?="+[ds,fn+ys,"$"].join("|")+")",fn+"?"+ys+"+"+bs,fn+"+"+Cs,yl,_l,ps,bl].join("|"),"g"),El=RegExp("["+_s+qn+rs+us+"]"),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"],Nl=-1,Fe={};Fe[Tr]=Fe[Or]=Fe[Dr]=Fe[Br]=Fe[Ir]=Fe[Rr]=Fe[Lr]=Fe[Mr]=Fe[Fr]=!0,Fe[q]=Fe[oe]=Fe[Wt]=Fe[le]=Fe[dn]=Fe[ue]=Fe[ce]=Fe[ge]=Fe[ye]=Fe[Te]=Fe[Ue]=Fe[Qe]=Fe[De]=Fe[Ze]=Fe[Pt]=!1;var Me={};Me[q]=Me[oe]=Me[Wt]=Me[dn]=Me[le]=Me[ue]=Me[Tr]=Me[Or]=Me[Dr]=Me[Br]=Me[Ir]=Me[ye]=Me[Te]=Me[Ue]=Me[Qe]=Me[De]=Me[Ze]=Me[Ke]=Me[Rr]=Me[Lr]=Me[Mr]=Me[Fr]=!0,Me[ce]=Me[ge]=Me[Pt]=!1;var Al={À:"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"},Pl={"&":"&","<":"<",">":">",'"':""","'":"'"},$l={"&":"&","<":"<",">":">",""":'"',"'":"'"},Tl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ol=parseFloat,Dl=parseInt,Es=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Bl=typeof self=="object"&&self&&self.Object===Object&&self,et=Es||Bl||Function("return this")(),Kr=n&&!n.nodeType&&n,tn=Kr&&!0&&e&&!e.nodeType&&e,xs=tn&&tn.exports===Kr,Yr=xs&&Es.process,gt=function(){try{var L=tn&&tn.require&&tn.require("util").types;return L||Yr&&Yr.binding&&Yr.binding("util")}catch{}}(),Vs=gt&>.isArrayBuffer,Ns=gt&>.isDate,As=gt&>.isMap,Ps=gt&>.isRegExp,$s=gt&>.isSet,Ts=gt&>.isTypedArray;function dt(L,j,W){switch(W.length){case 0:return L.call(j);case 1:return L.call(j,W[0]);case 2:return L.call(j,W[0],W[1]);case 3:return L.call(j,W[0],W[1],W[2])}return L.apply(j,W)}function Il(L,j,W,pe){for(var ke=-1,Be=L==null?0:L.length;++ke<Be;){var Ye=L[ke];j(pe,Ye,W(Ye),L)}return pe}function _t(L,j){for(var W=-1,pe=L==null?0:L.length;++W<pe&&j(L[W],W,L)!==!1;);return L}function Rl(L,j){for(var W=L==null?0:L.length;W--&&j(L[W],W,L)!==!1;);return L}function Os(L,j){for(var W=-1,pe=L==null?0:L.length;++W<pe;)if(!j(L[W],W,L))return!1;return!0}function Ht(L,j){for(var W=-1,pe=L==null?0:L.length,ke=0,Be=[];++W<pe;){var Ye=L[W];j(Ye,W,L)&&(Be[ke++]=Ye)}return Be}function Wn(L,j){var W=L==null?0:L.length;return!!W&&pn(L,j,0)>-1}function Jr(L,j,W){for(var pe=-1,ke=L==null?0:L.length;++pe<ke;)if(W(j,L[pe]))return!0;return!1}function qe(L,j){for(var W=-1,pe=L==null?0:L.length,ke=Array(pe);++W<pe;)ke[W]=j(L[W],W,L);return ke}function jt(L,j){for(var W=-1,pe=j.length,ke=L.length;++W<pe;)L[ke+W]=j[W];return L}function Qr(L,j,W,pe){var ke=-1,Be=L==null?0:L.length;for(pe&&Be&&(W=L[++ke]);++ke<Be;)W=j(W,L[ke],ke,L);return W}function Ll(L,j,W,pe){var ke=L==null?0:L.length;for(pe&&ke&&(W=L[--ke]);ke--;)W=j(W,L[ke],ke,L);return W}function Xr(L,j){for(var W=-1,pe=L==null?0:L.length;++W<pe;)if(j(L[W],W,L))return!0;return!1}var Ml=Zr("length");function Fl(L){return L.split("")}function Ul(L){return L.match(Yi)||[]}function Ds(L,j,W){var pe;return W(L,function(ke,Be,Ye){if(j(ke,Be,Ye))return pe=Be,!1}),pe}function Hn(L,j,W,pe){for(var ke=L.length,Be=W+(pe?1:-1);pe?Be--:++Be<ke;)if(j(L[Be],Be,L))return Be;return-1}function pn(L,j,W){return j===j?Zl(L,j,W):Hn(L,Bs,W)}function ql(L,j,W,pe){for(var ke=W-1,Be=L.length;++ke<Be;)if(pe(L[ke],j))return ke;return-1}function Bs(L){return L!==L}function Is(L,j){var W=L==null?0:L.length;return W?ta(L,j)/W:G}function Zr(L){return function(j){return j==null?t:j[L]}}function ea(L){return function(j){return L==null?t:L[j]}}function Rs(L,j,W,pe,ke){return ke(L,function(Be,Ye,Le){W=pe?(pe=!1,Be):j(W,Be,Ye,Le)}),W}function Gl(L,j){var W=L.length;for(L.sort(j);W--;)L[W]=L[W].value;return L}function ta(L,j){for(var W,pe=-1,ke=L.length;++pe<ke;){var Be=j(L[pe]);Be!==t&&(W=W===t?Be:W+Be)}return W}function na(L,j){for(var W=-1,pe=Array(L);++W<L;)pe[W]=j(W);return pe}function Wl(L,j){return qe(j,function(W){return[W,L[W]]})}function Ls(L){return L&&L.slice(0,qs(L)+1).replace(qr,"")}function ft(L){return function(j){return L(j)}}function ra(L,j){return qe(j,function(W){return L[W]})}function xn(L,j){return L.has(j)}function Ms(L,j){for(var W=-1,pe=L.length;++W<pe&&pn(j,L[W],0)>-1;);return W}function Fs(L,j){for(var W=L.length;W--&&pn(j,L[W],0)>-1;);return W}function Hl(L,j){for(var W=L.length,pe=0;W--;)L[W]===j&&++pe;return pe}var jl=ea(Al),zl=ea(Pl);function Kl(L){return"\\"+Tl[L]}function Yl(L,j){return L==null?t:L[j]}function hn(L){return El.test(L)}function Jl(L){return xl.test(L)}function Ql(L){for(var j,W=[];!(j=L.next()).done;)W.push(j.value);return W}function aa(L){var j=-1,W=Array(L.size);return L.forEach(function(pe,ke){W[++j]=[ke,pe]}),W}function Us(L,j){return function(W){return L(j(W))}}function zt(L,j){for(var W=-1,pe=L.length,ke=0,Be=[];++W<pe;){var Ye=L[W];(Ye===j||Ye===f)&&(L[W]=f,Be[ke++]=W)}return Be}function jn(L){var j=-1,W=Array(L.size);return L.forEach(function(pe){W[++j]=pe}),W}function Xl(L){var j=-1,W=Array(L.size);return L.forEach(function(pe){W[++j]=[pe,pe]}),W}function Zl(L,j,W){for(var pe=W-1,ke=L.length;++pe<ke;)if(L[pe]===j)return pe;return-1}function eu(L,j,W){for(var pe=W+1;pe--;)if(L[pe]===j)return pe;return pe}function vn(L){return hn(L)?nu(L):Ml(L)}function xt(L){return hn(L)?ru(L):Fl(L)}function qs(L){for(var j=L.length;j--&&Hi.test(L.charAt(j)););return j}var tu=ea($l);function nu(L){for(var j=zr.lastIndex=0;zr.test(L);)++j;return j}function ru(L){return L.match(zr)||[]}function au(L){return L.match(kl)||[]}var su=function L(j){j=j==null?et:mn.defaults(et.Object(),j,mn.pick(et,Vl));var W=j.Array,pe=j.Date,ke=j.Error,Be=j.Function,Ye=j.Math,Le=j.Object,sa=j.RegExp,ou=j.String,yt=j.TypeError,zn=W.prototype,iu=Be.prototype,gn=Le.prototype,Kn=j["__core-js_shared__"],Jn=iu.toString,Re=gn.hasOwnProperty,lu=0,Gs=function(){var o=/[^.]+$/.exec(Kn&&Kn.keys&&Kn.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Qn=gn.toString,uu=Jn.call(Le),cu=et._,du=sa("^"+Jn.call(Re).replace(Ur,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),er=xs?j.Buffer:t,Kt=j.Symbol,tr=j.Uint8Array,Ws=er?er.allocUnsafe:t,nr=Us(Le.getPrototypeOf,Le),Hs=Le.create,js=gn.propertyIsEnumerable,rr=zn.splice,zs=Kt?Kt.isConcatSpreadable:t,Vn=Kt?Kt.iterator:t,nn=Kt?Kt.toStringTag:t,ar=function(){try{var o=ln(Le,"defineProperty");return o({},"",{}),o}catch{}}(),fu=j.clearTimeout!==et.clearTimeout&&j.clearTimeout,pu=pe&&pe.now!==et.Date.now&&pe.now,hu=j.setTimeout!==et.setTimeout&&j.setTimeout,sr=Ye.ceil,or=Ye.floor,oa=Le.getOwnPropertySymbols,vu=er?er.isBuffer:t,Ks=j.isFinite,mu=zn.join,gu=Us(Le.keys,Le),Je=Ye.max,nt=Ye.min,_u=pe.now,yu=j.parseInt,Ys=Ye.random,bu=zn.reverse,ia=ln(j,"DataView"),Nn=ln(j,"Map"),la=ln(j,"Promise"),_n=ln(j,"Set"),An=ln(j,"WeakMap"),Pn=ln(Le,"create"),ir=An&&new An,yn={},Cu=un(ia),Su=un(Nn),wu=un(la),ku=un(_n),Eu=un(An),lr=Kt?Kt.prototype:t,$n=lr?lr.valueOf:t,Js=lr?lr.toString:t;function k(o){if(We(o)&&!Ee(o)&&!(o instanceof Pe)){if(o instanceof bt)return o;if(Re.call(o,"__wrapped__"))return Xo(o)}return new bt(o)}var bn=function(){function o(){}return function(u){if(!Ge(u))return{};if(Hs)return Hs(u);o.prototype=u;var h=new o;return o.prototype=t,h}}();function ur(){}function bt(o,u){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=t}k.templateSettings={escape:Mi,evaluate:Fi,interpolate:ts,variable:"",imports:{_:k}},k.prototype=ur.prototype,k.prototype.constructor=k,bt.prototype=bn(ur.prototype),bt.prototype.constructor=bt;function Pe(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ne,this.__views__=[]}function xu(){var o=new Pe(this.__wrapped__);return o.__actions__=it(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=it(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=it(this.__views__),o}function Vu(){if(this.__filtered__){var o=new Pe(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function Nu(){var o=this.__wrapped__.value(),u=this.__dir__,h=Ee(o),_=u<0,S=h?o.length:0,N=Fc(0,S,this.__views__),$=N.start,D=N.end,F=D-$,Y=_?D:$-1,J=this.__iteratees__,X=J.length,de=0,ve=nt(F,this.__takeCount__);if(!h||!_&&S==F&&ve==F)return Co(o,this.__actions__);var be=[];e:for(;F--&&de<ve;){Y+=u;for(var Ve=-1,Ce=o[Y];++Ve<X;){var Ae=J[Ve],$e=Ae.iteratee,vt=Ae.type,ot=$e(Ce);if(vt==we)Ce=ot;else if(!ot){if(vt==ae)continue e;break e}}be[de++]=Ce}return be}Pe.prototype=bn(ur.prototype),Pe.prototype.constructor=Pe;function rn(o){var u=-1,h=o==null?0:o.length;for(this.clear();++u<h;){var _=o[u];this.set(_[0],_[1])}}function Au(){this.__data__=Pn?Pn(null):{},this.size=0}function Pu(o){var u=this.has(o)&&delete this.__data__[o];return this.size-=u?1:0,u}function $u(o){var u=this.__data__;if(Pn){var h=u[o];return h===c?t:h}return Re.call(u,o)?u[o]:t}function Tu(o){var u=this.__data__;return Pn?u[o]!==t:Re.call(u,o)}function Ou(o,u){var h=this.__data__;return this.size+=this.has(o)?0:1,h[o]=Pn&&u===t?c:u,this}rn.prototype.clear=Au,rn.prototype.delete=Pu,rn.prototype.get=$u,rn.prototype.has=Tu,rn.prototype.set=Ou;function Dt(o){var u=-1,h=o==null?0:o.length;for(this.clear();++u<h;){var _=o[u];this.set(_[0],_[1])}}function Du(){this.__data__=[],this.size=0}function Bu(o){var u=this.__data__,h=cr(u,o);if(h<0)return!1;var _=u.length-1;return h==_?u.pop():rr.call(u,h,1),--this.size,!0}function Iu(o){var u=this.__data__,h=cr(u,o);return h<0?t:u[h][1]}function Ru(o){return cr(this.__data__,o)>-1}function Lu(o,u){var h=this.__data__,_=cr(h,o);return _<0?(++this.size,h.push([o,u])):h[_][1]=u,this}Dt.prototype.clear=Du,Dt.prototype.delete=Bu,Dt.prototype.get=Iu,Dt.prototype.has=Ru,Dt.prototype.set=Lu;function Bt(o){var u=-1,h=o==null?0:o.length;for(this.clear();++u<h;){var _=o[u];this.set(_[0],_[1])}}function Mu(){this.size=0,this.__data__={hash:new rn,map:new(Nn||Dt),string:new rn}}function Fu(o){var u=Sr(this,o).delete(o);return this.size-=u?1:0,u}function Uu(o){return Sr(this,o).get(o)}function qu(o){return Sr(this,o).has(o)}function Gu(o,u){var h=Sr(this,o),_=h.size;return h.set(o,u),this.size+=h.size==_?0:1,this}Bt.prototype.clear=Mu,Bt.prototype.delete=Fu,Bt.prototype.get=Uu,Bt.prototype.has=qu,Bt.prototype.set=Gu;function an(o){var u=-1,h=o==null?0:o.length;for(this.__data__=new Bt;++u<h;)this.add(o[u])}function Wu(o){return this.__data__.set(o,c),this}function Hu(o){return this.__data__.has(o)}an.prototype.add=an.prototype.push=Wu,an.prototype.has=Hu;function Vt(o){var u=this.__data__=new Dt(o);this.size=u.size}function ju(){this.__data__=new Dt,this.size=0}function zu(o){var u=this.__data__,h=u.delete(o);return this.size=u.size,h}function Ku(o){return this.__data__.get(o)}function Yu(o){return this.__data__.has(o)}function Ju(o,u){var h=this.__data__;if(h instanceof Dt){var _=h.__data__;if(!Nn||_.length<a-1)return _.push([o,u]),this.size=++h.size,this;h=this.__data__=new Bt(_)}return h.set(o,u),this.size=h.size,this}Vt.prototype.clear=ju,Vt.prototype.delete=zu,Vt.prototype.get=Ku,Vt.prototype.has=Yu,Vt.prototype.set=Ju;function Qs(o,u){var h=Ee(o),_=!h&&cn(o),S=!h&&!_&&Zt(o),N=!h&&!_&&!S&&kn(o),$=h||_||S||N,D=$?na(o.length,ou):[],F=D.length;for(var Y in o)(u||Re.call(o,Y))&&!($&&(Y=="length"||S&&(Y=="offset"||Y=="parent")||N&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||Mt(Y,F)))&&D.push(Y);return D}function Xs(o){var u=o.length;return u?o[ya(0,u-1)]:t}function Qu(o,u){return wr(it(o),sn(u,0,o.length))}function Xu(o){return wr(it(o))}function ua(o,u,h){(h!==t&&!Nt(o[u],h)||h===t&&!(u in o))&&It(o,u,h)}function Tn(o,u,h){var _=o[u];(!(Re.call(o,u)&&Nt(_,h))||h===t&&!(u in o))&&It(o,u,h)}function cr(o,u){for(var h=o.length;h--;)if(Nt(o[h][0],u))return h;return-1}function Zu(o,u,h,_){return Yt(o,function(S,N,$){u(_,S,h(S),$)}),_}function Zs(o,u){return o&&Tt(u,Xe(u),o)}function ec(o,u){return o&&Tt(u,ut(u),o)}function It(o,u,h){u=="__proto__"&&ar?ar(o,u,{configurable:!0,enumerable:!0,value:h,writable:!0}):o[u]=h}function ca(o,u){for(var h=-1,_=u.length,S=W(_),N=o==null;++h<_;)S[h]=N?t:Wa(o,u[h]);return S}function sn(o,u,h){return o===o&&(h!==t&&(o=o<=h?o:h),u!==t&&(o=o>=u?o:u)),o}function Ct(o,u,h,_,S,N){var $,D=u&p,F=u&v,Y=u&m;if(h&&($=S?h(o,_,S,N):h(o)),$!==t)return $;if(!Ge(o))return o;var J=Ee(o);if(J){if($=qc(o),!D)return it(o,$)}else{var X=rt(o),de=X==ge||X==Se;if(Zt(o))return ko(o,D);if(X==Ue||X==q||de&&!S){if($=F||de?{}:Go(o),!D)return F?$c(o,ec($,o)):Pc(o,Zs($,o))}else{if(!Me[X])return S?o:{};$=Gc(o,X,D)}}N||(N=new Vt);var ve=N.get(o);if(ve)return ve;N.set(o,$),yi(o)?o.forEach(function(Ce){$.add(Ct(Ce,u,h,Ce,o,N))}):gi(o)&&o.forEach(function(Ce,Ae){$.set(Ae,Ct(Ce,u,h,Ae,o,N))});var be=Y?F?Pa:Aa:F?ut:Xe,Ve=J?t:be(o);return _t(Ve||o,function(Ce,Ae){Ve&&(Ae=Ce,Ce=o[Ae]),Tn($,Ae,Ct(Ce,u,h,Ae,o,N))}),$}function tc(o){var u=Xe(o);return function(h){return eo(h,o,u)}}function eo(o,u,h){var _=h.length;if(o==null)return!_;for(o=Le(o);_--;){var S=h[_],N=u[S],$=o[S];if($===t&&!(S in o)||!N($))return!1}return!0}function to(o,u,h){if(typeof o!="function")throw new yt(i);return Mn(function(){o.apply(t,h)},u)}function On(o,u,h,_){var S=-1,N=Wn,$=!0,D=o.length,F=[],Y=u.length;if(!D)return F;h&&(u=qe(u,ft(h))),_?(N=Jr,$=!1):u.length>=a&&(N=xn,$=!1,u=new an(u));e:for(;++S<D;){var J=o[S],X=h==null?J:h(J);if(J=_||J!==0?J:0,$&&X===X){for(var de=Y;de--;)if(u[de]===X)continue e;F.push(J)}else N(u,X,_)||F.push(J)}return F}var Yt=Ao($t),no=Ao(fa,!0);function nc(o,u){var h=!0;return Yt(o,function(_,S,N){return h=!!u(_,S,N),h}),h}function dr(o,u,h){for(var _=-1,S=o.length;++_<S;){var N=o[_],$=u(N);if($!=null&&(D===t?$===$&&!ht($):h($,D)))var D=$,F=N}return F}function rc(o,u,h,_){var S=o.length;for(h=xe(h),h<0&&(h=-h>S?0:S+h),_=_===t||_>S?S:xe(_),_<0&&(_+=S),_=h>_?0:Ci(_);h<_;)o[h++]=u;return o}function ro(o,u){var h=[];return Yt(o,function(_,S,N){u(_,S,N)&&h.push(_)}),h}function tt(o,u,h,_,S){var N=-1,$=o.length;for(h||(h=Hc),S||(S=[]);++N<$;){var D=o[N];u>0&&h(D)?u>1?tt(D,u-1,h,_,S):jt(S,D):_||(S[S.length]=D)}return S}var da=Po(),ao=Po(!0);function $t(o,u){return o&&da(o,u,Xe)}function fa(o,u){return o&&ao(o,u,Xe)}function fr(o,u){return Ht(u,function(h){return Ft(o[h])})}function on(o,u){u=Qt(u,o);for(var h=0,_=u.length;o!=null&&h<_;)o=o[Ot(u[h++])];return h&&h==_?o:t}function so(o,u,h){var _=u(o);return Ee(o)?_:jt(_,h(o))}function at(o){return o==null?o===t?Et:Oe:nn&&nn in Le(o)?Mc(o):Xc(o)}function pa(o,u){return o>u}function ac(o,u){return o!=null&&Re.call(o,u)}function sc(o,u){return o!=null&&u in Le(o)}function oc(o,u,h){return o>=nt(u,h)&&o<Je(u,h)}function ha(o,u,h){for(var _=h?Jr:Wn,S=o[0].length,N=o.length,$=N,D=W(N),F=1/0,Y=[];$--;){var J=o[$];$&&u&&(J=qe(J,ft(u))),F=nt(J.length,F),D[$]=!h&&(u||S>=120&&J.length>=120)?new an($&&J):t}J=o[0];var X=-1,de=D[0];e:for(;++X<S&&Y.length<F;){var ve=J[X],be=u?u(ve):ve;if(ve=h||ve!==0?ve:0,!(de?xn(de,be):_(Y,be,h))){for($=N;--$;){var Ve=D[$];if(!(Ve?xn(Ve,be):_(o[$],be,h)))continue e}de&&de.push(be),Y.push(ve)}}return Y}function ic(o,u,h,_){return $t(o,function(S,N,$){u(_,h(S),N,$)}),_}function Dn(o,u,h){u=Qt(u,o),o=zo(o,u);var _=o==null?o:o[Ot(wt(u))];return _==null?t:dt(_,o,h)}function oo(o){return We(o)&&at(o)==q}function lc(o){return We(o)&&at(o)==Wt}function uc(o){return We(o)&&at(o)==ue}function Bn(o,u,h,_,S){return o===u?!0:o==null||u==null||!We(o)&&!We(u)?o!==o&&u!==u:cc(o,u,h,_,Bn,S)}function cc(o,u,h,_,S,N){var $=Ee(o),D=Ee(u),F=$?oe:rt(o),Y=D?oe:rt(u);F=F==q?Ue:F,Y=Y==q?Ue:Y;var J=F==Ue,X=Y==Ue,de=F==Y;if(de&&Zt(o)){if(!Zt(u))return!1;$=!0,J=!1}if(de&&!J)return N||(N=new Vt),$||kn(o)?Fo(o,u,h,_,S,N):Rc(o,u,F,h,_,S,N);if(!(h&g)){var ve=J&&Re.call(o,"__wrapped__"),be=X&&Re.call(u,"__wrapped__");if(ve||be){var Ve=ve?o.value():o,Ce=be?u.value():u;return N||(N=new Vt),S(Ve,Ce,h,_,N)}}return de?(N||(N=new Vt),Lc(o,u,h,_,S,N)):!1}function dc(o){return We(o)&&rt(o)==ye}function va(o,u,h,_){var S=h.length,N=S,$=!_;if(o==null)return!N;for(o=Le(o);S--;){var D=h[S];if($&&D[2]?D[1]!==o[D[0]]:!(D[0]in o))return!1}for(;++S<N;){D=h[S];var F=D[0],Y=o[F],J=D[1];if($&&D[2]){if(Y===t&&!(F in o))return!1}else{var X=new Vt;if(_)var de=_(Y,J,F,o,u,X);if(!(de===t?Bn(J,Y,g|b,_,X):de))return!1}}return!0}function io(o){if(!Ge(o)||zc(o))return!1;var u=Ft(o)?du:tl;return u.test(un(o))}function fc(o){return We(o)&&at(o)==Qe}function pc(o){return We(o)&&rt(o)==De}function hc(o){return We(o)&&Ar(o.length)&&!!Fe[at(o)]}function lo(o){return typeof o=="function"?o:o==null?ct:typeof o=="object"?Ee(o)?fo(o[0],o[1]):co(o):Ti(o)}function ma(o){if(!Ln(o))return gu(o);var u=[];for(var h in Le(o))Re.call(o,h)&&h!="constructor"&&u.push(h);return u}function vc(o){if(!Ge(o))return Qc(o);var u=Ln(o),h=[];for(var _ in o)_=="constructor"&&(u||!Re.call(o,_))||h.push(_);return h}function ga(o,u){return o<u}function uo(o,u){var h=-1,_=lt(o)?W(o.length):[];return Yt(o,function(S,N,$){_[++h]=u(S,N,$)}),_}function co(o){var u=Ta(o);return u.length==1&&u[0][2]?Ho(u[0][0],u[0][1]):function(h){return h===o||va(h,o,u)}}function fo(o,u){return Da(o)&&Wo(u)?Ho(Ot(o),u):function(h){var _=Wa(h,o);return _===t&&_===u?Ha(h,o):Bn(u,_,g|b)}}function pr(o,u,h,_,S){o!==u&&da(u,function(N,$){if(S||(S=new Vt),Ge(N))mc(o,u,$,h,pr,_,S);else{var D=_?_(Ia(o,$),N,$+"",o,u,S):t;D===t&&(D=N),ua(o,$,D)}},ut)}function mc(o,u,h,_,S,N,$){var D=Ia(o,h),F=Ia(u,h),Y=$.get(F);if(Y){ua(o,h,Y);return}var J=N?N(D,F,h+"",o,u,$):t,X=J===t;if(X){var de=Ee(F),ve=!de&&Zt(F),be=!de&&!ve&&kn(F);J=F,de||ve||be?Ee(D)?J=D:He(D)?J=it(D):ve?(X=!1,J=ko(F,!0)):be?(X=!1,J=Eo(F,!0)):J=[]:Fn(F)||cn(F)?(J=D,cn(D)?J=Si(D):(!Ge(D)||Ft(D))&&(J=Go(F))):X=!1}X&&($.set(F,J),S(J,F,_,N,$),$.delete(F)),ua(o,h,J)}function po(o,u){var h=o.length;if(h)return u+=u<0?h:0,Mt(u,h)?o[u]:t}function ho(o,u,h){u.length?u=qe(u,function(N){return Ee(N)?function($){return on($,N.length===1?N[0]:N)}:N}):u=[ct];var _=-1;u=qe(u,ft(_e()));var S=uo(o,function(N,$,D){var F=qe(u,function(Y){return Y(N)});return{criteria:F,index:++_,value:N}});return Gl(S,function(N,$){return Ac(N,$,h)})}function gc(o,u){return vo(o,u,function(h,_){return Ha(o,_)})}function vo(o,u,h){for(var _=-1,S=u.length,N={};++_<S;){var $=u[_],D=on(o,$);h(D,$)&&In(N,Qt($,o),D)}return N}function _c(o){return function(u){return on(u,o)}}function _a(o,u,h,_){var S=_?ql:pn,N=-1,$=u.length,D=o;for(o===u&&(u=it(u)),h&&(D=qe(o,ft(h)));++N<$;)for(var F=0,Y=u[N],J=h?h(Y):Y;(F=S(D,J,F,_))>-1;)D!==o&&rr.call(D,F,1),rr.call(o,F,1);return o}function mo(o,u){for(var h=o?u.length:0,_=h-1;h--;){var S=u[h];if(h==_||S!==N){var N=S;Mt(S)?rr.call(o,S,1):Sa(o,S)}}return o}function ya(o,u){return o+or(Ys()*(u-o+1))}function yc(o,u,h,_){for(var S=-1,N=Je(sr((u-o)/(h||1)),0),$=W(N);N--;)$[_?N:++S]=o,o+=h;return $}function ba(o,u){var h="";if(!o||u<1||u>T)return h;do u%2&&(h+=o),u=or(u/2),u&&(o+=o);while(u);return h}function Ne(o,u){return Ra(jo(o,u,ct),o+"")}function bc(o){return Xs(En(o))}function Cc(o,u){var h=En(o);return wr(h,sn(u,0,h.length))}function In(o,u,h,_){if(!Ge(o))return o;u=Qt(u,o);for(var S=-1,N=u.length,$=N-1,D=o;D!=null&&++S<N;){var F=Ot(u[S]),Y=h;if(F==="__proto__"||F==="constructor"||F==="prototype")return o;if(S!=$){var J=D[F];Y=_?_(J,F,D):t,Y===t&&(Y=Ge(J)?J:Mt(u[S+1])?[]:{})}Tn(D,F,Y),D=D[F]}return o}var go=ir?function(o,u){return ir.set(o,u),o}:ct,Sc=ar?function(o,u){return ar(o,"toString",{configurable:!0,enumerable:!1,value:za(u),writable:!0})}:ct;function wc(o){return wr(En(o))}function St(o,u,h){var _=-1,S=o.length;u<0&&(u=-u>S?0:S+u),h=h>S?S:h,h<0&&(h+=S),S=u>h?0:h-u>>>0,u>>>=0;for(var N=W(S);++_<S;)N[_]=o[_+u];return N}function kc(o,u){var h;return Yt(o,function(_,S,N){return h=u(_,S,N),!h}),!!h}function hr(o,u,h){var _=0,S=o==null?_:o.length;if(typeof u=="number"&&u===u&&S<=B){for(;_<S;){var N=_+S>>>1,$=o[N];$!==null&&!ht($)&&(h?$<=u:$<u)?_=N+1:S=N}return S}return Ca(o,u,ct,h)}function Ca(o,u,h,_){var S=0,N=o==null?0:o.length;if(N===0)return 0;u=h(u);for(var $=u!==u,D=u===null,F=ht(u),Y=u===t;S<N;){var J=or((S+N)/2),X=h(o[J]),de=X!==t,ve=X===null,be=X===X,Ve=ht(X);if($)var Ce=_||be;else Y?Ce=be&&(_||de):D?Ce=be&&de&&(_||!ve):F?Ce=be&&de&&!ve&&(_||!Ve):ve||Ve?Ce=!1:Ce=_?X<=u:X<u;Ce?S=J+1:N=J}return nt(N,he)}function _o(o,u){for(var h=-1,_=o.length,S=0,N=[];++h<_;){var $=o[h],D=u?u($):$;if(!h||!Nt(D,F)){var F=D;N[S++]=$===0?0:$}}return N}function yo(o){return typeof o=="number"?o:ht(o)?G:+o}function pt(o){if(typeof o=="string")return o;if(Ee(o))return qe(o,pt)+"";if(ht(o))return Js?Js.call(o):"";var u=o+"";return u=="0"&&1/o==-1/0?"-0":u}function Jt(o,u,h){var _=-1,S=Wn,N=o.length,$=!0,D=[],F=D;if(h)$=!1,S=Jr;else if(N>=a){var Y=u?null:Bc(o);if(Y)return jn(Y);$=!1,S=xn,F=new an}else F=u?[]:D;e:for(;++_<N;){var J=o[_],X=u?u(J):J;if(J=h||J!==0?J:0,$&&X===X){for(var de=F.length;de--;)if(F[de]===X)continue e;u&&F.push(X),D.push(J)}else S(F,X,h)||(F!==D&&F.push(X),D.push(J))}return D}function Sa(o,u){return u=Qt(u,o),o=zo(o,u),o==null||delete o[Ot(wt(u))]}function bo(o,u,h,_){return In(o,u,h(on(o,u)),_)}function vr(o,u,h,_){for(var S=o.length,N=_?S:-1;(_?N--:++N<S)&&u(o[N],N,o););return h?St(o,_?0:N,_?N+1:S):St(o,_?N+1:0,_?S:N)}function Co(o,u){var h=o;return h instanceof Pe&&(h=h.value()),Qr(u,function(_,S){return S.func.apply(S.thisArg,jt([_],S.args))},h)}function wa(o,u,h){var _=o.length;if(_<2)return _?Jt(o[0]):[];for(var S=-1,N=W(_);++S<_;)for(var $=o[S],D=-1;++D<_;)D!=S&&(N[S]=On(N[S]||$,o[D],u,h));return Jt(tt(N,1),u,h)}function So(o,u,h){for(var _=-1,S=o.length,N=u.length,$={};++_<S;){var D=_<N?u[_]:t;h($,o[_],D)}return $}function ka(o){return He(o)?o:[]}function Ea(o){return typeof o=="function"?o:ct}function Qt(o,u){return Ee(o)?o:Da(o,u)?[o]:Qo(Ie(o))}var Ec=Ne;function Xt(o,u,h){var _=o.length;return h=h===t?_:h,!u&&h>=_?o:St(o,u,h)}var wo=fu||function(o){return et.clearTimeout(o)};function ko(o,u){if(u)return o.slice();var h=o.length,_=Ws?Ws(h):new o.constructor(h);return o.copy(_),_}function xa(o){var u=new o.constructor(o.byteLength);return new tr(u).set(new tr(o)),u}function xc(o,u){var h=u?xa(o.buffer):o.buffer;return new o.constructor(h,o.byteOffset,o.byteLength)}function Vc(o){var u=new o.constructor(o.source,ns.exec(o));return u.lastIndex=o.lastIndex,u}function Nc(o){return $n?Le($n.call(o)):{}}function Eo(o,u){var h=u?xa(o.buffer):o.buffer;return new o.constructor(h,o.byteOffset,o.length)}function xo(o,u){if(o!==u){var h=o!==t,_=o===null,S=o===o,N=ht(o),$=u!==t,D=u===null,F=u===u,Y=ht(u);if(!D&&!Y&&!N&&o>u||N&&$&&F&&!D&&!Y||_&&$&&F||!h&&F||!S)return 1;if(!_&&!N&&!Y&&o<u||Y&&h&&S&&!_&&!N||D&&h&&S||!$&&S||!F)return-1}return 0}function Ac(o,u,h){for(var _=-1,S=o.criteria,N=u.criteria,$=S.length,D=h.length;++_<$;){var F=xo(S[_],N[_]);if(F){if(_>=D)return F;var Y=h[_];return F*(Y=="desc"?-1:1)}}return o.index-u.index}function Vo(o,u,h,_){for(var S=-1,N=o.length,$=h.length,D=-1,F=u.length,Y=Je(N-$,0),J=W(F+Y),X=!_;++D<F;)J[D]=u[D];for(;++S<$;)(X||S<N)&&(J[h[S]]=o[S]);for(;Y--;)J[D++]=o[S++];return J}function No(o,u,h,_){for(var S=-1,N=o.length,$=-1,D=h.length,F=-1,Y=u.length,J=Je(N-D,0),X=W(J+Y),de=!_;++S<J;)X[S]=o[S];for(var ve=S;++F<Y;)X[ve+F]=u[F];for(;++$<D;)(de||S<N)&&(X[ve+h[$]]=o[S++]);return X}function it(o,u){var h=-1,_=o.length;for(u||(u=W(_));++h<_;)u[h]=o[h];return u}function Tt(o,u,h,_){var S=!h;h||(h={});for(var N=-1,$=u.length;++N<$;){var D=u[N],F=_?_(h[D],o[D],D,h,o):t;F===t&&(F=o[D]),S?It(h,D,F):Tn(h,D,F)}return h}function Pc(o,u){return Tt(o,Oa(o),u)}function $c(o,u){return Tt(o,Uo(o),u)}function mr(o,u){return function(h,_){var S=Ee(h)?Il:Zu,N=u?u():{};return S(h,o,_e(_,2),N)}}function Cn(o){return Ne(function(u,h){var _=-1,S=h.length,N=S>1?h[S-1]:t,$=S>2?h[2]:t;for(N=o.length>3&&typeof N=="function"?(S--,N):t,$&&st(h[0],h[1],$)&&(N=S<3?t:N,S=1),u=Le(u);++_<S;){var D=h[_];D&&o(u,D,_,N)}return u})}function Ao(o,u){return function(h,_){if(h==null)return h;if(!lt(h))return o(h,_);for(var S=h.length,N=u?S:-1,$=Le(h);(u?N--:++N<S)&&_($[N],N,$)!==!1;);return h}}function Po(o){return function(u,h,_){for(var S=-1,N=Le(u),$=_(u),D=$.length;D--;){var F=$[o?D:++S];if(h(N[F],F,N)===!1)break}return u}}function Tc(o,u,h){var _=u&C,S=Rn(o);function N(){var $=this&&this!==et&&this instanceof N?S:o;return $.apply(_?h:this,arguments)}return N}function $o(o){return function(u){u=Ie(u);var h=hn(u)?xt(u):t,_=h?h[0]:u.charAt(0),S=h?Xt(h,1).join(""):u.slice(1);return _[o]()+S}}function Sn(o){return function(u){return Qr(Pi(Ai(u).replace(Sl,"")),o,"")}}function Rn(o){return function(){var u=arguments;switch(u.length){case 0:return new o;case 1:return new o(u[0]);case 2:return new o(u[0],u[1]);case 3:return new o(u[0],u[1],u[2]);case 4:return new o(u[0],u[1],u[2],u[3]);case 5:return new o(u[0],u[1],u[2],u[3],u[4]);case 6:return new o(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new o(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var h=bn(o.prototype),_=o.apply(h,u);return Ge(_)?_:h}}function Oc(o,u,h){var _=Rn(o);function S(){for(var N=arguments.length,$=W(N),D=N,F=wn(S);D--;)$[D]=arguments[D];var Y=N<3&&$[0]!==F&&$[N-1]!==F?[]:zt($,F);if(N-=Y.length,N<h)return Io(o,u,gr,S.placeholder,t,$,Y,t,t,h-N);var J=this&&this!==et&&this instanceof S?_:o;return dt(J,this,$)}return S}function To(o){return function(u,h,_){var S=Le(u);if(!lt(u)){var N=_e(h,3);u=Xe(u),h=function(D){return N(S[D],D,S)}}var $=o(u,h,_);return $>-1?S[N?u[$]:$]:t}}function Oo(o){return Lt(function(u){var h=u.length,_=h,S=bt.prototype.thru;for(o&&u.reverse();_--;){var N=u[_];if(typeof N!="function")throw new yt(i);if(S&&!$&&Cr(N)=="wrapper")var $=new bt([],!0)}for(_=$?_:h;++_<h;){N=u[_];var D=Cr(N),F=D=="wrapper"?$a(N):t;F&&Ba(F[0])&&F[1]==(I|V|P|R)&&!F[4].length&&F[9]==1?$=$[Cr(F[0])].apply($,F[3]):$=N.length==1&&Ba(N)?$[D]():$.thru(N)}return function(){var Y=arguments,J=Y[0];if($&&Y.length==1&&Ee(J))return $.plant(J).value();for(var X=0,de=h?u[X].apply(this,Y):J;++X<h;)de=u[X].call(this,de);return de}})}function gr(o,u,h,_,S,N,$,D,F,Y){var J=u&I,X=u&C,de=u&w,ve=u&(V|A),be=u&Z,Ve=de?t:Rn(o);function Ce(){for(var Ae=arguments.length,$e=W(Ae),vt=Ae;vt--;)$e[vt]=arguments[vt];if(ve)var ot=wn(Ce),mt=Hl($e,ot);if(_&&($e=Vo($e,_,S,ve)),N&&($e=No($e,N,$,ve)),Ae-=mt,ve&&Ae<Y){var je=zt($e,ot);return Io(o,u,gr,Ce.placeholder,h,$e,je,D,F,Y-Ae)}var At=X?h:this,qt=de?At[o]:o;return Ae=$e.length,D?$e=Zc($e,D):be&&Ae>1&&$e.reverse(),J&&F<Ae&&($e.length=F),this&&this!==et&&this instanceof Ce&&(qt=Ve||Rn(qt)),qt.apply(At,$e)}return Ce}function Do(o,u){return function(h,_){return ic(h,o,u(_),{})}}function _r(o,u){return function(h,_){var S;if(h===t&&_===t)return u;if(h!==t&&(S=h),_!==t){if(S===t)return _;typeof h=="string"||typeof _=="string"?(h=pt(h),_=pt(_)):(h=yo(h),_=yo(_)),S=o(h,_)}return S}}function Va(o){return Lt(function(u){return u=qe(u,ft(_e())),Ne(function(h){var _=this;return o(u,function(S){return dt(S,_,h)})})})}function yr(o,u){u=u===t?" ":pt(u);var h=u.length;if(h<2)return h?ba(u,o):u;var _=ba(u,sr(o/vn(u)));return hn(u)?Xt(xt(_),0,o).join(""):_.slice(0,o)}function Dc(o,u,h,_){var S=u&C,N=Rn(o);function $(){for(var D=-1,F=arguments.length,Y=-1,J=_.length,X=W(J+F),de=this&&this!==et&&this instanceof $?N:o;++Y<J;)X[Y]=_[Y];for(;F--;)X[Y++]=arguments[++D];return dt(de,S?h:this,X)}return $}function Bo(o){return function(u,h,_){return _&&typeof _!="number"&&st(u,h,_)&&(h=_=t),u=Ut(u),h===t?(h=u,u=0):h=Ut(h),_=_===t?u<h?1:-1:Ut(_),yc(u,h,_,o)}}function br(o){return function(u,h){return typeof u=="string"&&typeof h=="string"||(u=kt(u),h=kt(h)),o(u,h)}}function Io(o,u,h,_,S,N,$,D,F,Y){var J=u&V,X=J?$:t,de=J?t:$,ve=J?N:t,be=J?t:N;u|=J?P:O,u&=~(J?O:P),u&E||(u&=-4);var Ve=[o,u,S,ve,X,be,de,D,F,Y],Ce=h.apply(t,Ve);return Ba(o)&&Ko(Ce,Ve),Ce.placeholder=_,Yo(Ce,o,u)}function Na(o){var u=Ye[o];return function(h,_){if(h=kt(h),_=_==null?0:nt(xe(_),292),_&&Ks(h)){var S=(Ie(h)+"e").split("e"),N=u(S[0]+"e"+(+S[1]+_));return S=(Ie(N)+"e").split("e"),+(S[0]+"e"+(+S[1]-_))}return u(h)}}var Bc=_n&&1/jn(new _n([,-0]))[1]==fe?function(o){return new _n(o)}:Ja;function Ro(o){return function(u){var h=rt(u);return h==ye?aa(u):h==De?Xl(u):Wl(u,o(u))}}function Rt(o,u,h,_,S,N,$,D){var F=u&w;if(!F&&typeof o!="function")throw new yt(i);var Y=_?_.length:0;if(Y||(u&=-97,_=S=t),$=$===t?$:Je(xe($),0),D=D===t?D:xe(D),Y-=S?S.length:0,u&O){var J=_,X=S;_=S=t}var de=F?t:$a(o),ve=[o,u,h,_,S,J,X,N,$,D];if(de&&Jc(ve,de),o=ve[0],u=ve[1],h=ve[2],_=ve[3],S=ve[4],D=ve[9]=ve[9]===t?F?0:o.length:Je(ve[9]-Y,0),!D&&u&(V|A)&&(u&=-25),!u||u==C)var be=Tc(o,u,h);else u==V||u==A?be=Oc(o,u,D):(u==P||u==(C|P))&&!S.length?be=Dc(o,u,h,_):be=gr.apply(t,ve);var Ve=de?go:Ko;return Yo(Ve(be,ve),o,u)}function Lo(o,u,h,_){return o===t||Nt(o,gn[h])&&!Re.call(_,h)?u:o}function Mo(o,u,h,_,S,N){return Ge(o)&&Ge(u)&&(N.set(u,o),pr(o,u,t,Mo,N),N.delete(u)),o}function Ic(o){return Fn(o)?t:o}function Fo(o,u,h,_,S,N){var $=h&g,D=o.length,F=u.length;if(D!=F&&!($&&F>D))return!1;var Y=N.get(o),J=N.get(u);if(Y&&J)return Y==u&&J==o;var X=-1,de=!0,ve=h&b?new an:t;for(N.set(o,u),N.set(u,o);++X<D;){var be=o[X],Ve=u[X];if(_)var Ce=$?_(Ve,be,X,u,o,N):_(be,Ve,X,o,u,N);if(Ce!==t){if(Ce)continue;de=!1;break}if(ve){if(!Xr(u,function(Ae,$e){if(!xn(ve,$e)&&(be===Ae||S(be,Ae,h,_,N)))return ve.push($e)})){de=!1;break}}else if(!(be===Ve||S(be,Ve,h,_,N))){de=!1;break}}return N.delete(o),N.delete(u),de}function Rc(o,u,h,_,S,N,$){switch(h){case dn:if(o.byteLength!=u.byteLength||o.byteOffset!=u.byteOffset)return!1;o=o.buffer,u=u.buffer;case Wt:return!(o.byteLength!=u.byteLength||!N(new tr(o),new tr(u)));case le:case ue:case Te:return Nt(+o,+u);case ce:return o.name==u.name&&o.message==u.message;case Qe:case Ze:return o==u+"";case ye:var D=aa;case De:var F=_&g;if(D||(D=jn),o.size!=u.size&&!F)return!1;var Y=$.get(o);if(Y)return Y==u;_|=b,$.set(o,u);var J=Fo(D(o),D(u),_,S,N,$);return $.delete(o),J;case Ke:if($n)return $n.call(o)==$n.call(u)}return!1}function Lc(o,u,h,_,S,N){var $=h&g,D=Aa(o),F=D.length,Y=Aa(u),J=Y.length;if(F!=J&&!$)return!1;for(var X=F;X--;){var de=D[X];if(!($?de in u:Re.call(u,de)))return!1}var ve=N.get(o),be=N.get(u);if(ve&&be)return ve==u&&be==o;var Ve=!0;N.set(o,u),N.set(u,o);for(var Ce=$;++X<F;){de=D[X];var Ae=o[de],$e=u[de];if(_)var vt=$?_($e,Ae,de,u,o,N):_(Ae,$e,de,o,u,N);if(!(vt===t?Ae===$e||S(Ae,$e,h,_,N):vt)){Ve=!1;break}Ce||(Ce=de=="constructor")}if(Ve&&!Ce){var ot=o.constructor,mt=u.constructor;ot!=mt&&"constructor"in o&&"constructor"in u&&!(typeof ot=="function"&&ot instanceof ot&&typeof mt=="function"&&mt instanceof mt)&&(Ve=!1)}return N.delete(o),N.delete(u),Ve}function Lt(o){return Ra(jo(o,t,ti),o+"")}function Aa(o){return so(o,Xe,Oa)}function Pa(o){return so(o,ut,Uo)}var $a=ir?function(o){return ir.get(o)}:Ja;function Cr(o){for(var u=o.name+"",h=yn[u],_=Re.call(yn,u)?h.length:0;_--;){var S=h[_],N=S.func;if(N==null||N==o)return S.name}return u}function wn(o){var u=Re.call(k,"placeholder")?k:o;return u.placeholder}function _e(){var o=k.iteratee||Ka;return o=o===Ka?lo:o,arguments.length?o(arguments[0],arguments[1]):o}function Sr(o,u){var h=o.__data__;return jc(u)?h[typeof u=="string"?"string":"hash"]:h.map}function Ta(o){for(var u=Xe(o),h=u.length;h--;){var _=u[h],S=o[_];u[h]=[_,S,Wo(S)]}return u}function ln(o,u){var h=Yl(o,u);return io(h)?h:t}function Mc(o){var u=Re.call(o,nn),h=o[nn];try{o[nn]=t;var _=!0}catch{}var S=Qn.call(o);return _&&(u?o[nn]=h:delete o[nn]),S}var Oa=oa?function(o){return o==null?[]:(o=Le(o),Ht(oa(o),function(u){return js.call(o,u)}))}:Qa,Uo=oa?function(o){for(var u=[];o;)jt(u,Oa(o)),o=nr(o);return u}:Qa,rt=at;(ia&&rt(new ia(new ArrayBuffer(1)))!=dn||Nn&&rt(new Nn)!=ye||la&&rt(la.resolve())!=ze||_n&&rt(new _n)!=De||An&&rt(new An)!=Pt)&&(rt=function(o){var u=at(o),h=u==Ue?o.constructor:t,_=h?un(h):"";if(_)switch(_){case Cu:return dn;case Su:return ye;case wu:return ze;case ku:return De;case Eu:return Pt}return u});function Fc(o,u,h){for(var _=-1,S=h.length;++_<S;){var N=h[_],$=N.size;switch(N.type){case"drop":o+=$;break;case"dropRight":u-=$;break;case"take":u=nt(u,o+$);break;case"takeRight":o=Je(o,u-$);break}}return{start:o,end:u}}function Uc(o){var u=o.match(zi);return u?u[1].split(Ki):[]}function qo(o,u,h){u=Qt(u,o);for(var _=-1,S=u.length,N=!1;++_<S;){var $=Ot(u[_]);if(!(N=o!=null&&h(o,$)))break;o=o[$]}return N||++_!=S?N:(S=o==null?0:o.length,!!S&&Ar(S)&&Mt($,S)&&(Ee(o)||cn(o)))}function qc(o){var u=o.length,h=new o.constructor(u);return u&&typeof o[0]=="string"&&Re.call(o,"index")&&(h.index=o.index,h.input=o.input),h}function Go(o){return typeof o.constructor=="function"&&!Ln(o)?bn(nr(o)):{}}function Gc(o,u,h){var _=o.constructor;switch(u){case Wt:return xa(o);case le:case ue:return new _(+o);case dn:return xc(o,h);case Tr:case Or:case Dr:case Br:case Ir:case Rr:case Lr:case Mr:case Fr:return Eo(o,h);case ye:return new _;case Te:case Ze:return new _(o);case Qe:return Vc(o);case De:return new _;case Ke:return Nc(o)}}function Wc(o,u){var h=u.length;if(!h)return o;var _=h-1;return u[_]=(h>1?"& ":"")+u[_],u=u.join(h>2?", ":" "),o.replace(ji,`{
|
|
9
9
|
/* [wrapped with `+u+`] */
|
|
10
|
-
`)}function Hc(o){return Ee(o)||cn(o)||!!(zs&&o&&o[zs])}function Mt(o,u){var h=typeof o;return u=u??T,!!u&&(h=="number"||h!="symbol"&&rl.test(o))&&o>-1&&o%1==0&&o<u}function st(o,u,h){if(!Ge(h))return!1;var _=typeof u;return(_=="number"?lt(h)&&Mt(u,h.length):_=="string"&&u in h)?Nt(h[u],o):!1}function Da(o,u){if(Ee(o))return!1;var h=typeof o;return h=="number"||h=="symbol"||h=="boolean"||o==null||ht(o)?!0:qi.test(o)||!Ui.test(o)||u!=null&&o in Re(u)}function jc(o){var u=typeof o;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?o!=="__proto__":o===null}function Ba(o){var u=Cr(o),h=k[u];if(typeof h!="function"||!(u in $e.prototype))return!1;if(o===h)return!0;var _=Pa(h);return!!_&&o===_[0]}function zc(o){return!!Gs&&Gs in o}var Kc=Kn?Ft:Xa;function Rn(o){var u=o&&o.constructor,h=typeof u=="function"&&u.prototype||gn;return o===h}function Wo(o){return o===o&&!Ge(o)}function Ho(o,u){return function(h){return h==null?!1:h[o]===u&&(u!==t||o in Re(h))}}function Yc(o){var u=Vr(o,function(_){return h.size===d&&h.clear(),_}),h=u.cache;return u}function Jc(o,u){var h=o[1],_=u[1],S=h|_,N=S<(C|w|I),P=_==I&&h==V||_==I&&h==L&&o[7].length<=u[8]||_==(I|L)&&u[7].length<=u[8]&&h==V;if(!(N||P))return o;_&C&&(o[2]=u[2],S|=h&C?0:E);var D=u[3];if(D){var F=o[3];o[3]=F?Vo(F,D,u[4]):D,o[4]=F?zt(o[3],f):u[4]}return D=u[5],D&&(F=o[5],o[5]=F?No(F,D,u[6]):D,o[6]=F?zt(o[5],f):u[6]),D=u[7],D&&(o[7]=D),_&I&&(o[8]=o[8]==null?u[8]:nt(o[8],u[8])),o[9]==null&&(o[9]=u[9]),o[0]=u[0],o[1]=S,o}function Qc(o){var u=[];if(o!=null)for(var h in Re(o))u.push(h);return u}function Xc(o){return Qn.call(o)}function jo(o,u,h){return u=Je(u===t?o.length-1:u,0),function(){for(var _=arguments,S=-1,N=Je(_.length-u,0),P=W(N);++S<N;)P[S]=_[u+S];S=-1;for(var D=W(u+1);++S<u;)D[S]=_[S];return D[u]=h(P),dt(o,this,D)}}function zo(o,u){return u.length<2?o:on(o,St(u,0,-1))}function Zc(o,u){for(var h=o.length,_=nt(u.length,h),S=it(o);_--;){var N=u[_];o[_]=Mt(N,h)?S[N]:t}return o}function Ia(o,u){if(!(u==="constructor"&&typeof o[u]=="function")&&u!="__proto__")return o[u]}var Ko=Jo(go),Mn=hu||function(o,u){return et.setTimeout(o,u)},La=Jo(Sc);function Yo(o,u,h){var _=u+"";return La(o,Wc(_,ed(Uc(_),h)))}function Jo(o){var u=0,h=0;return function(){var _=_u(),S=Q-(_-h);if(h=_,S>0){if(++u>=ie)return arguments[0]}else u=0;return o.apply(t,arguments)}}function wr(o,u){var h=-1,_=o.length,S=_-1;for(u=u===t?_:u;++h<u;){var N=ya(h,S),P=o[N];o[N]=o[h],o[h]=P}return o.length=u,o}var Qo=Yc(function(o){var u=[];return o.charCodeAt(0)===46&&u.push(""),o.replace(Gi,function(h,_,S,N){u.push(S?N.replace(Qi,"$1"):_||h)}),u});function Ot(o){if(typeof o=="string"||ht(o))return o;var u=o+"";return u=="0"&&1/o==-1/0?"-0":u}function un(o){if(o!=null){try{return Jn.call(o)}catch{}try{return o+""}catch{}}return""}function ed(o,u){return _t(U,function(h){var _="_."+h[0];u&h[1]&&!Wn(o,_)&&o.push(_)}),o.sort()}function Xo(o){if(o instanceof $e)return o.clone();var u=new bt(o.__wrapped__,o.__chain__);return u.__actions__=it(o.__actions__),u.__index__=o.__index__,u.__values__=o.__values__,u}function td(o,u,h){(h?st(o,u,h):u===t)?u=1:u=Je(xe(u),0);var _=o==null?0:o.length;if(!_||u<1)return[];for(var S=0,N=0,P=W(sr(_/u));S<_;)P[N++]=St(o,S,S+=u);return P}function nd(o){for(var u=-1,h=o==null?0:o.length,_=0,S=[];++u<h;){var N=o[u];N&&(S[_++]=N)}return S}function rd(){var o=arguments.length;if(!o)return[];for(var u=W(o-1),h=arguments[0],_=o;_--;)u[_-1]=arguments[_];return jt(Ee(h)?it(h):[h],tt(u,1))}var ad=Ne(function(o,u){return He(o)?On(o,tt(u,1,He,!0)):[]}),sd=Ne(function(o,u){var h=wt(u);return He(h)&&(h=t),He(o)?On(o,tt(u,1,He,!0),_e(h,2)):[]}),od=Ne(function(o,u){var h=wt(u);return He(h)&&(h=t),He(o)?On(o,tt(u,1,He,!0),t,h):[]});function id(o,u,h){var _=o==null?0:o.length;return _?(u=h||u===t?1:xe(u),St(o,u<0?0:u,_)):[]}function ld(o,u,h){var _=o==null?0:o.length;return _?(u=h||u===t?1:xe(u),u=_-u,St(o,0,u<0?0:u)):[]}function ud(o,u){return o&&o.length?vr(o,_e(u,3),!0,!0):[]}function cd(o,u){return o&&o.length?vr(o,_e(u,3),!0):[]}function dd(o,u,h,_){var S=o==null?0:o.length;return S?(h&&typeof h!="number"&&st(o,u,h)&&(h=0,_=S),rc(o,u,h,_)):[]}function Zo(o,u,h){var _=o==null?0:o.length;if(!_)return-1;var S=h==null?0:xe(h);return S<0&&(S=Je(_+S,0)),Hn(o,_e(u,3),S)}function ei(o,u,h){var _=o==null?0:o.length;if(!_)return-1;var S=_-1;return h!==t&&(S=xe(h),S=h<0?Je(_+S,0):nt(S,_-1)),Hn(o,_e(u,3),S,!0)}function ti(o){var u=o==null?0:o.length;return u?tt(o,1):[]}function fd(o){var u=o==null?0:o.length;return u?tt(o,fe):[]}function pd(o,u){var h=o==null?0:o.length;return h?(u=u===t?1:xe(u),tt(o,u)):[]}function hd(o){for(var u=-1,h=o==null?0:o.length,_={};++u<h;){var S=o[u];_[S[0]]=S[1]}return _}function ni(o){return o&&o.length?o[0]:t}function vd(o,u,h){var _=o==null?0:o.length;if(!_)return-1;var S=h==null?0:xe(h);return S<0&&(S=Je(_+S,0)),pn(o,u,S)}function md(o){var u=o==null?0:o.length;return u?St(o,0,-1):[]}var gd=Ne(function(o){var u=qe(o,ka);return u.length&&u[0]===o[0]?ha(u):[]}),_d=Ne(function(o){var u=wt(o),h=qe(o,ka);return u===wt(h)?u=t:h.pop(),h.length&&h[0]===o[0]?ha(h,_e(u,2)):[]}),yd=Ne(function(o){var u=wt(o),h=qe(o,ka);return u=typeof u=="function"?u:t,u&&h.pop(),h.length&&h[0]===o[0]?ha(h,t,u):[]});function bd(o,u){return o==null?"":mu.call(o,u)}function wt(o){var u=o==null?0:o.length;return u?o[u-1]:t}function Cd(o,u,h){var _=o==null?0:o.length;if(!_)return-1;var S=_;return h!==t&&(S=xe(h),S=S<0?Je(_+S,0):nt(S,_-1)),u===u?eu(o,u,S):Hn(o,Bs,S,!0)}function Sd(o,u){return o&&o.length?po(o,xe(u)):t}var wd=Ne(ri);function ri(o,u){return o&&o.length&&u&&u.length?_a(o,u):o}function kd(o,u,h){return o&&o.length&&u&&u.length?_a(o,u,_e(h,2)):o}function Ed(o,u,h){return o&&o.length&&u&&u.length?_a(o,u,t,h):o}var xd=Rt(function(o,u){var h=o==null?0:o.length,_=ca(o,u);return mo(o,qe(u,function(S){return Mt(S,h)?+S:S}).sort(xo)),_});function Vd(o,u){var h=[];if(!(o&&o.length))return h;var _=-1,S=[],N=o.length;for(u=_e(u,3);++_<N;){var P=o[_];u(P,_,o)&&(h.push(P),S.push(_))}return mo(o,S),h}function Ra(o){return o==null?o:bu.call(o)}function Nd(o,u,h){var _=o==null?0:o.length;return _?(h&&typeof h!="number"&&st(o,u,h)?(u=0,h=_):(u=u==null?0:xe(u),h=h===t?_:xe(h)),St(o,u,h)):[]}function Ad(o,u){return hr(o,u)}function $d(o,u,h){return Ca(o,u,_e(h,2))}function Pd(o,u){var h=o==null?0:o.length;if(h){var _=hr(o,u);if(_<h&&Nt(o[_],u))return _}return-1}function Td(o,u){return hr(o,u,!0)}function Od(o,u,h){return Ca(o,u,_e(h,2),!0)}function Dd(o,u){var h=o==null?0:o.length;if(h){var _=hr(o,u,!0)-1;if(Nt(o[_],u))return _}return-1}function Bd(o){return o&&o.length?_o(o):[]}function Id(o,u){return o&&o.length?_o(o,_e(u,2)):[]}function Ld(o){var u=o==null?0:o.length;return u?St(o,1,u):[]}function Rd(o,u,h){return o&&o.length?(u=h||u===t?1:xe(u),St(o,0,u<0?0:u)):[]}function Md(o,u,h){var _=o==null?0:o.length;return _?(u=h||u===t?1:xe(u),u=_-u,St(o,u<0?0:u,_)):[]}function Fd(o,u){return o&&o.length?vr(o,_e(u,3),!1,!0):[]}function Ud(o,u){return o&&o.length?vr(o,_e(u,3)):[]}var qd=Ne(function(o){return Jt(tt(o,1,He,!0))}),Gd=Ne(function(o){var u=wt(o);return He(u)&&(u=t),Jt(tt(o,1,He,!0),_e(u,2))}),Wd=Ne(function(o){var u=wt(o);return u=typeof u=="function"?u:t,Jt(tt(o,1,He,!0),t,u)});function Hd(o){return o&&o.length?Jt(o):[]}function jd(o,u){return o&&o.length?Jt(o,_e(u,2)):[]}function zd(o,u){return u=typeof u=="function"?u:t,o&&o.length?Jt(o,t,u):[]}function Ma(o){if(!(o&&o.length))return[];var u=0;return o=Ht(o,function(h){if(He(h))return u=Je(h.length,u),!0}),na(u,function(h){return qe(o,Zr(h))})}function ai(o,u){if(!(o&&o.length))return[];var h=Ma(o);return u==null?h:qe(h,function(_){return dt(u,t,_)})}var Kd=Ne(function(o,u){return He(o)?On(o,u):[]}),Yd=Ne(function(o){return wa(Ht(o,He))}),Jd=Ne(function(o){var u=wt(o);return He(u)&&(u=t),wa(Ht(o,He),_e(u,2))}),Qd=Ne(function(o){var u=wt(o);return u=typeof u=="function"?u:t,wa(Ht(o,He),t,u)}),Xd=Ne(Ma);function Zd(o,u){return So(o||[],u||[],Tn)}function ef(o,u){return So(o||[],u||[],In)}var tf=Ne(function(o){var u=o.length,h=u>1?o[u-1]:t;return h=typeof h=="function"?(o.pop(),h):t,ai(o,h)});function si(o){var u=k(o);return u.__chain__=!0,u}function nf(o,u){return u(o),o}function kr(o,u){return u(o)}var rf=Rt(function(o){var u=o.length,h=u?o[0]:0,_=this.__wrapped__,S=function(N){return ca(N,o)};return u>1||this.__actions__.length||!(_ instanceof $e)||!Mt(h)?this.thru(S):(_=_.slice(h,+h+(u?1:0)),_.__actions__.push({func:kr,args:[S],thisArg:t}),new bt(_,this.__chain__).thru(function(N){return u&&!N.length&&N.push(t),N}))});function af(){return si(this)}function sf(){return new bt(this.value(),this.__chain__)}function of(){this.__values__===t&&(this.__values__=bi(this.value()));var o=this.__index__>=this.__values__.length,u=o?t:this.__values__[this.__index__++];return{done:o,value:u}}function lf(){return this}function uf(o){for(var u,h=this;h instanceof ur;){var _=Xo(h);_.__index__=0,_.__values__=t,u?S.__wrapped__=_:u=_;var S=_;h=h.__wrapped__}return S.__wrapped__=o,u}function cf(){var o=this.__wrapped__;if(o instanceof $e){var u=o;return this.__actions__.length&&(u=new $e(this)),u=u.reverse(),u.__actions__.push({func:kr,args:[Ra],thisArg:t}),new bt(u,this.__chain__)}return this.thru(Ra)}function df(){return Co(this.__wrapped__,this.__actions__)}var ff=mr(function(o,u,h){Le.call(o,h)?++o[h]:It(o,h,1)});function pf(o,u,h){var _=Ee(o)?Os:nc;return h&&st(o,u,h)&&(u=t),_(o,_e(u,3))}function hf(o,u){var h=Ee(o)?Ht:ro;return h(o,_e(u,3))}var vf=To(Zo),mf=To(ei);function gf(o,u){return tt(Er(o,u),1)}function _f(o,u){return tt(Er(o,u),fe)}function yf(o,u,h){return h=h===t?1:xe(h),tt(Er(o,u),h)}function oi(o,u){var h=Ee(o)?_t:Yt;return h(o,_e(u,3))}function ii(o,u){var h=Ee(o)?Ll:no;return h(o,_e(u,3))}var bf=mr(function(o,u,h){Le.call(o,h)?o[h].push(u):It(o,h,[u])});function Cf(o,u,h,_){o=lt(o)?o:En(o),h=h&&!_?xe(h):0;var S=o.length;return h<0&&(h=Je(S+h,0)),$r(o)?h<=S&&o.indexOf(u,h)>-1:!!S&&pn(o,u,h)>-1}var Sf=Ne(function(o,u,h){var _=-1,S=typeof u=="function",N=lt(o)?W(o.length):[];return Yt(o,function(P){N[++_]=S?dt(u,P,h):Dn(P,u,h)}),N}),wf=mr(function(o,u,h){It(o,h,u)});function Er(o,u){var h=Ee(o)?qe:uo;return h(o,_e(u,3))}function kf(o,u,h,_){return o==null?[]:(Ee(u)||(u=u==null?[]:[u]),h=_?t:h,Ee(h)||(h=h==null?[]:[h]),ho(o,u,h))}var Ef=mr(function(o,u,h){o[h?0:1].push(u)},function(){return[[],[]]});function xf(o,u,h){var _=Ee(o)?Qr:Ls,S=arguments.length<3;return _(o,_e(u,4),h,S,Yt)}function Vf(o,u,h){var _=Ee(o)?Rl:Ls,S=arguments.length<3;return _(o,_e(u,4),h,S,no)}function Nf(o,u){var h=Ee(o)?Ht:ro;return h(o,Nr(_e(u,3)))}function Af(o){var u=Ee(o)?Xs:bc;return u(o)}function $f(o,u,h){(h?st(o,u,h):u===t)?u=1:u=xe(u);var _=Ee(o)?Qu:Cc;return _(o,u)}function Pf(o){var u=Ee(o)?Xu:wc;return u(o)}function Tf(o){if(o==null)return 0;if(lt(o))return $r(o)?vn(o):o.length;var u=rt(o);return u==ye||u==De?o.size:ma(o).length}function Of(o,u,h){var _=Ee(o)?Xr:kc;return h&&st(o,u,h)&&(u=t),_(o,_e(u,3))}var Df=Ne(function(o,u){if(o==null)return[];var h=u.length;return h>1&&st(o,u[0],u[1])?u=[]:h>2&&st(u[0],u[1],u[2])&&(u=[u[0]]),ho(o,tt(u,1),[])}),xr=pu||function(){return et.Date.now()};function Bf(o,u){if(typeof u!="function")throw new yt(i);return o=xe(o),function(){if(--o<1)return u.apply(this,arguments)}}function li(o,u,h){return u=h?t:u,u=o&&u==null?o.length:u,Lt(o,I,t,t,t,t,u)}function ui(o,u){var h;if(typeof u!="function")throw new yt(i);return o=xe(o),function(){return--o>0&&(h=u.apply(this,arguments)),o<=1&&(u=t),h}}var Fa=Ne(function(o,u,h){var _=C;if(h.length){var S=zt(h,wn(Fa));_|=$}return Lt(o,_,u,h,S)}),ci=Ne(function(o,u,h){var _=C|w;if(h.length){var S=zt(h,wn(ci));_|=$}return Lt(u,_,o,h,S)});function di(o,u,h){u=h?t:u;var _=Lt(o,V,t,t,t,t,t,u);return _.placeholder=di.placeholder,_}function fi(o,u,h){u=h?t:u;var _=Lt(o,A,t,t,t,t,t,u);return _.placeholder=fi.placeholder,_}function hi(o,u,h){var _,S,N,P,D,F,Y=0,J=!1,X=!1,de=!0;if(typeof o!="function")throw new yt(i);u=kt(u)||0,Ge(h)&&(J=!!h.leading,X="maxWait"in h,N=X?Je(kt(h.maxWait)||0,u):N,de="trailing"in h?!!h.trailing:de);function ve(je){var At=_,qt=S;return _=S=t,Y=je,P=o.apply(qt,At),P}function be(je){return Y=je,D=Mn(Ae,u),J?ve(je):P}function Ve(je){var At=je-F,qt=je-Y,Oi=u-At;return X?nt(Oi,N-qt):Oi}function Ce(je){var At=je-F,qt=je-Y;return F===t||At>=u||At<0||X&&qt>=N}function Ae(){var je=xr();if(Ce(je))return Pe(je);D=Mn(Ae,Ve(je))}function Pe(je){return D=t,de&&_?ve(je):(_=S=t,P)}function vt(){D!==t&&wo(D),Y=0,_=F=S=D=t}function ot(){return D===t?P:Pe(xr())}function mt(){var je=xr(),At=Ce(je);if(_=arguments,S=this,F=je,At){if(D===t)return be(F);if(X)return wo(D),D=Mn(Ae,u),ve(F)}return D===t&&(D=Mn(Ae,u)),P}return mt.cancel=vt,mt.flush=ot,mt}var If=Ne(function(o,u){return to(o,1,u)}),Lf=Ne(function(o,u,h){return to(o,kt(u)||0,h)});function Rf(o){return Lt(o,Z)}function Vr(o,u){if(typeof o!="function"||u!=null&&typeof u!="function")throw new yt(i);var h=function(){var _=arguments,S=u?u.apply(this,_):_[0],N=h.cache;if(N.has(S))return N.get(S);var P=o.apply(this,_);return h.cache=N.set(S,P)||N,P};return h.cache=new(Vr.Cache||Bt),h}Vr.Cache=Bt;function Nr(o){if(typeof o!="function")throw new yt(i);return function(){var u=arguments;switch(u.length){case 0:return!o.call(this);case 1:return!o.call(this,u[0]);case 2:return!o.call(this,u[0],u[1]);case 3:return!o.call(this,u[0],u[1],u[2])}return!o.apply(this,u)}}function Mf(o){return ui(2,o)}var Ff=Ec(function(o,u){u=u.length==1&&Ee(u[0])?qe(u[0],ft(_e())):qe(tt(u,1),ft(_e()));var h=u.length;return Ne(function(_){for(var S=-1,N=nt(_.length,h);++S<N;)_[S]=u[S].call(this,_[S]);return dt(o,this,_)})}),Ua=Ne(function(o,u){var h=zt(u,wn(Ua));return Lt(o,$,t,u,h)}),vi=Ne(function(o,u){var h=zt(u,wn(vi));return Lt(o,O,t,u,h)}),Uf=Rt(function(o,u){return Lt(o,L,t,t,t,u)});function qf(o,u){if(typeof o!="function")throw new yt(i);return u=u===t?u:xe(u),Ne(o,u)}function Gf(o,u){if(typeof o!="function")throw new yt(i);return u=u==null?0:Je(xe(u),0),Ne(function(h){var _=h[u],S=Xt(h,0,u);return _&&jt(S,_),dt(o,this,S)})}function Wf(o,u,h){var _=!0,S=!0;if(typeof o!="function")throw new yt(i);return Ge(h)&&(_="leading"in h?!!h.leading:_,S="trailing"in h?!!h.trailing:S),hi(o,u,{leading:_,maxWait:u,trailing:S})}function Hf(o){return li(o,1)}function jf(o,u){return Ua(Ea(u),o)}function zf(){if(!arguments.length)return[];var o=arguments[0];return Ee(o)?o:[o]}function Kf(o){return Ct(o,m)}function Yf(o,u){return u=typeof u=="function"?u:t,Ct(o,m,u)}function Jf(o){return Ct(o,p|m)}function Qf(o,u){return u=typeof u=="function"?u:t,Ct(o,p|m,u)}function Xf(o,u){return u==null||eo(o,u,Xe(u))}function Nt(o,u){return o===u||o!==o&&u!==u}var Zf=br(pa),ep=br(function(o,u){return o>=u}),cn=oo(function(){return arguments}())?oo:function(o){return We(o)&&Le.call(o,"callee")&&!js.call(o,"callee")},Ee=W.isArray,tp=Vs?ft(Vs):lc;function lt(o){return o!=null&&Ar(o.length)&&!Ft(o)}function He(o){return We(o)&<(o)}function np(o){return o===!0||o===!1||We(o)&&at(o)==le}var Zt=vu||Xa,rp=Ns?ft(Ns):uc;function ap(o){return We(o)&&o.nodeType===1&&!Fn(o)}function sp(o){if(o==null)return!0;if(lt(o)&&(Ee(o)||typeof o=="string"||typeof o.splice=="function"||Zt(o)||kn(o)||cn(o)))return!o.length;var u=rt(o);if(u==ye||u==De)return!o.size;if(Rn(o))return!ma(o).length;for(var h in o)if(Le.call(o,h))return!1;return!0}function op(o,u){return Bn(o,u)}function ip(o,u,h){h=typeof h=="function"?h:t;var _=h?h(o,u):t;return _===t?Bn(o,u,t,h):!!_}function qa(o){if(!We(o))return!1;var u=at(o);return u==ce||u==te||typeof o.message=="string"&&typeof o.name=="string"&&!Fn(o)}function lp(o){return typeof o=="number"&&Ks(o)}function Ft(o){if(!Ge(o))return!1;var u=at(o);return u==ge||u==Se||u==ee||u==H}function mi(o){return typeof o=="number"&&o==xe(o)}function Ar(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=T}function Ge(o){var u=typeof o;return o!=null&&(u=="object"||u=="function")}function We(o){return o!=null&&typeof o=="object"}var gi=As?ft(As):dc;function up(o,u){return o===u||va(o,u,Ta(u))}function cp(o,u,h){return h=typeof h=="function"?h:t,va(o,u,Ta(u),h)}function dp(o){return _i(o)&&o!=+o}function fp(o){if(Kc(o))throw new ke(s);return io(o)}function pp(o){return o===null}function hp(o){return o==null}function _i(o){return typeof o=="number"||We(o)&&at(o)==Te}function Fn(o){if(!We(o)||at(o)!=Ue)return!1;var u=nr(o);if(u===null)return!0;var h=Le.call(u,"constructor")&&u.constructor;return typeof h=="function"&&h instanceof h&&Jn.call(h)==uu}var Ga=$s?ft($s):fc;function vp(o){return mi(o)&&o>=-9007199254740991&&o<=T}var yi=Ps?ft(Ps):pc;function $r(o){return typeof o=="string"||!Ee(o)&&We(o)&&at(o)==Ze}function ht(o){return typeof o=="symbol"||We(o)&&at(o)==Ke}var kn=Ts?ft(Ts):hc;function mp(o){return o===t}function gp(o){return We(o)&&rt(o)==$t}function _p(o){return We(o)&&at(o)==en}var yp=br(ga),bp=br(function(o,u){return o<=u});function bi(o){if(!o)return[];if(lt(o))return $r(o)?xt(o):it(o);if(Vn&&o[Vn])return Ql(o[Vn]());var u=rt(o),h=u==ye?aa:u==De?jn:En;return h(o)}function Ut(o){if(!o)return o===0?o:0;if(o=kt(o),o===fe||o===-1/0){var u=o<0?-1:1;return u*M}return o===o?o:0}function xe(o){var u=Ut(o),h=u%1;return u===u?h?u-h:u:0}function Ci(o){return o?sn(xe(o),0,ne):0}function kt(o){if(typeof o=="number")return o;if(ht(o))return G;if(Ge(o)){var u=typeof o.valueOf=="function"?o.valueOf():o;o=Ge(u)?u+"":u}if(typeof o!="string")return o===0?o:+o;o=Rs(o);var h=el.test(o);return h||nl.test(o)?Dl(o.slice(2),h?2:8):Zi.test(o)?G:+o}function Si(o){return Tt(o,ut(o))}function Cp(o){return o?sn(xe(o),-9007199254740991,T):o===0?o:0}function Ie(o){return o==null?"":pt(o)}var Sp=Cn(function(o,u){if(Rn(u)||lt(u)){Tt(u,Xe(u),o);return}for(var h in u)Le.call(u,h)&&Tn(o,h,u[h])}),wi=Cn(function(o,u){Tt(u,ut(u),o)}),Pr=Cn(function(o,u,h,_){Tt(u,ut(u),o,_)}),wp=Cn(function(o,u,h,_){Tt(u,Xe(u),o,_)}),kp=Rt(ca);function Ep(o,u){var h=bn(o);return u==null?h:Zs(h,u)}var xp=Ne(function(o,u){o=Re(o);var h=-1,_=u.length,S=_>2?u[2]:t;for(S&&st(u[0],u[1],S)&&(_=1);++h<_;)for(var N=u[h],P=ut(N),D=-1,F=P.length;++D<F;){var Y=P[D],J=o[Y];(J===t||Nt(J,gn[Y])&&!Le.call(o,Y))&&(o[Y]=N[Y])}return o}),Vp=Ne(function(o){return o.push(t,Mo),dt(ki,t,o)});function Np(o,u){return Ds(o,_e(u,3),Pt)}function Ap(o,u){return Ds(o,_e(u,3),fa)}function $p(o,u){return o==null?o:da(o,_e(u,3),ut)}function Pp(o,u){return o==null?o:ao(o,_e(u,3),ut)}function Tp(o,u){return o&&Pt(o,_e(u,3))}function Op(o,u){return o&&fa(o,_e(u,3))}function Dp(o){return o==null?[]:fr(o,Xe(o))}function Bp(o){return o==null?[]:fr(o,ut(o))}function Wa(o,u,h){var _=o==null?t:on(o,u);return _===t?h:_}function Ip(o,u){return o!=null&&qo(o,u,ac)}function Ha(o,u){return o!=null&&qo(o,u,sc)}var Lp=Do(function(o,u,h){u!=null&&typeof u.toString!="function"&&(u=Qn.call(u)),o[u]=h},za(ct)),Rp=Do(function(o,u,h){u!=null&&typeof u.toString!="function"&&(u=Qn.call(u)),Le.call(o,u)?o[u].push(h):o[u]=[h]},_e),Mp=Ne(Dn);function Xe(o){return lt(o)?Qs(o):ma(o)}function ut(o){return lt(o)?Qs(o,!0):vc(o)}function Fp(o,u){var h={};return u=_e(u,3),Pt(o,function(_,S,N){It(h,u(_,S,N),_)}),h}function Up(o,u){var h={};return u=_e(u,3),Pt(o,function(_,S,N){It(h,S,u(_,S,N))}),h}var qp=Cn(function(o,u,h){pr(o,u,h)}),ki=Cn(function(o,u,h,_){pr(o,u,h,_)}),Gp=Rt(function(o,u){var h={};if(o==null)return h;var _=!1;u=qe(u,function(N){return N=Qt(N,o),_||(_=N.length>1),N}),Tt(o,$a(o),h),_&&(h=Ct(h,p|v|m,Ic));for(var S=u.length;S--;)Sa(h,u[S]);return h});function Wp(o,u){return Ei(o,Nr(_e(u)))}var Hp=Rt(function(o,u){return o==null?{}:gc(o,u)});function Ei(o,u){if(o==null)return{};var h=qe($a(o),function(_){return[_]});return u=_e(u),vo(o,h,function(_,S){return u(_,S[0])})}function jp(o,u,h){u=Qt(u,o);var _=-1,S=u.length;for(S||(S=1,o=t);++_<S;){var N=o==null?t:o[Ot(u[_])];N===t&&(_=S,N=h),o=Ft(N)?N.call(o):N}return o}function zp(o,u,h){return o==null?o:In(o,u,h)}function Kp(o,u,h,_){return _=typeof _=="function"?_:t,o==null?o:In(o,u,h,_)}var xi=Lo(Xe),Vi=Lo(ut);function Yp(o,u,h){var _=Ee(o),S=_||Zt(o)||kn(o);if(u=_e(u,4),h==null){var N=o&&o.constructor;S?h=_?new N:[]:Ge(o)?h=Ft(N)?bn(nr(o)):{}:h={}}return(S?_t:Pt)(o,function(P,D,F){return u(h,P,D,F)}),h}function Jp(o,u){return o==null?!0:Sa(o,u)}function Qp(o,u,h){return o==null?o:bo(o,u,Ea(h))}function Xp(o,u,h,_){return _=typeof _=="function"?_:t,o==null?o:bo(o,u,Ea(h),_)}function En(o){return o==null?[]:ra(o,Xe(o))}function Zp(o){return o==null?[]:ra(o,ut(o))}function eh(o,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),sn(kt(o),u,h)}function th(o,u,h){return u=Ut(u),h===t?(h=u,u=0):h=Ut(h),o=kt(o),oc(o,u,h)}function nh(o,u,h){if(h&&typeof h!="boolean"&&st(o,u,h)&&(u=h=t),h===t&&(typeof u=="boolean"?(h=u,u=t):typeof o=="boolean"&&(h=o,o=t)),o===t&&u===t?(o=0,u=1):(o=Ut(o),u===t?(u=o,o=0):u=Ut(u)),o>u){var _=o;o=u,u=_}if(h||o%1||u%1){var S=Ys();return nt(o+S*(u-o+Ol("1e-"+((S+"").length-1))),u)}return ya(o,u)}var rh=Sn(function(o,u,h){return u=u.toLowerCase(),o+(h?Ni(u):u)});function Ni(o){return ja(Ie(o).toLowerCase())}function Ai(o){return o=Ie(o),o&&o.replace(al,jl).replace(wl,"")}function ah(o,u,h){o=Ie(o),u=pt(u);var _=o.length;h=h===t?_:sn(xe(h),0,_);var S=h;return h-=u.length,h>=0&&o.slice(h,S)==u}function sh(o){return o=Ie(o),o&&Ri.test(o)?o.replace(es,zl):o}function oh(o){return o=Ie(o),o&&Wi.test(o)?o.replace(Ur,"\\$&"):o}var ih=Sn(function(o,u,h){return o+(h?"-":"")+u.toLowerCase()}),lh=Sn(function(o,u,h){return o+(h?" ":"")+u.toLowerCase()}),uh=Po("toLowerCase");function ch(o,u,h){o=Ie(o),u=xe(u);var _=u?vn(o):0;if(!u||_>=u)return o;var S=(u-_)/2;return yr(or(S),h)+o+yr(sr(S),h)}function dh(o,u,h){o=Ie(o),u=xe(u);var _=u?vn(o):0;return u&&_<u?o+yr(u-_,h):o}function fh(o,u,h){o=Ie(o),u=xe(u);var _=u?vn(o):0;return u&&_<u?yr(u-_,h)+o:o}function ph(o,u,h){return h||u==null?u=0:u&&(u=+u),yu(Ie(o).replace(qr,""),u||0)}function hh(o,u,h){return(h?st(o,u,h):u===t)?u=1:u=xe(u),ba(Ie(o),u)}function vh(){var o=arguments,u=Ie(o[0]);return o.length<3?u:u.replace(o[1],o[2])}var mh=Sn(function(o,u,h){return o+(h?"_":"")+u.toLowerCase()});function gh(o,u,h){return h&&typeof h!="number"&&st(o,u,h)&&(u=h=t),h=h===t?ne:h>>>0,h?(o=Ie(o),o&&(typeof u=="string"||u!=null&&!Ga(u))&&(u=pt(u),!u&&hn(o))?Xt(xt(o),0,h):o.split(u,h)):[]}var _h=Sn(function(o,u,h){return o+(h?" ":"")+ja(u)});function yh(o,u,h){return o=Ie(o),h=h==null?0:sn(xe(h),0,o.length),u=pt(u),o.slice(h,h+u.length)==u}function bh(o,u,h){var _=k.templateSettings;h&&st(o,u,h)&&(u=t),o=Ie(o),u=Pr({},u,_,Ro);var S=Pr({},u.imports,_.imports,Ro),N=Xe(S),P=ra(S,N),D,F,Y=0,J=u.interpolate||Un,X="__p += '",de=sa((u.escape||Un).source+"|"+J.source+"|"+(J===ts?Xi:Un).source+"|"+(u.evaluate||Un).source+"|$","g"),ve="//# sourceURL="+(Le.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Nl+"]")+`
|
|
11
|
-
`;o.replace(de,function(Ce,Ae,
|
|
10
|
+
`)}function Hc(o){return Ee(o)||cn(o)||!!(zs&&o&&o[zs])}function Mt(o,u){var h=typeof o;return u=u??T,!!u&&(h=="number"||h!="symbol"&&rl.test(o))&&o>-1&&o%1==0&&o<u}function st(o,u,h){if(!Ge(h))return!1;var _=typeof u;return(_=="number"?lt(h)&&Mt(u,h.length):_=="string"&&u in h)?Nt(h[u],o):!1}function Da(o,u){if(Ee(o))return!1;var h=typeof o;return h=="number"||h=="symbol"||h=="boolean"||o==null||ht(o)?!0:qi.test(o)||!Ui.test(o)||u!=null&&o in Le(u)}function jc(o){var u=typeof o;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?o!=="__proto__":o===null}function Ba(o){var u=Cr(o),h=k[u];if(typeof h!="function"||!(u in Pe.prototype))return!1;if(o===h)return!0;var _=$a(h);return!!_&&o===_[0]}function zc(o){return!!Gs&&Gs in o}var Kc=Kn?Ft:Xa;function Ln(o){var u=o&&o.constructor,h=typeof u=="function"&&u.prototype||gn;return o===h}function Wo(o){return o===o&&!Ge(o)}function Ho(o,u){return function(h){return h==null?!1:h[o]===u&&(u!==t||o in Le(h))}}function Yc(o){var u=Vr(o,function(_){return h.size===d&&h.clear(),_}),h=u.cache;return u}function Jc(o,u){var h=o[1],_=u[1],S=h|_,N=S<(C|w|I),$=_==I&&h==V||_==I&&h==R&&o[7].length<=u[8]||_==(I|R)&&u[7].length<=u[8]&&h==V;if(!(N||$))return o;_&C&&(o[2]=u[2],S|=h&C?0:E);var D=u[3];if(D){var F=o[3];o[3]=F?Vo(F,D,u[4]):D,o[4]=F?zt(o[3],f):u[4]}return D=u[5],D&&(F=o[5],o[5]=F?No(F,D,u[6]):D,o[6]=F?zt(o[5],f):u[6]),D=u[7],D&&(o[7]=D),_&I&&(o[8]=o[8]==null?u[8]:nt(o[8],u[8])),o[9]==null&&(o[9]=u[9]),o[0]=u[0],o[1]=S,o}function Qc(o){var u=[];if(o!=null)for(var h in Le(o))u.push(h);return u}function Xc(o){return Qn.call(o)}function jo(o,u,h){return u=Je(u===t?o.length-1:u,0),function(){for(var _=arguments,S=-1,N=Je(_.length-u,0),$=W(N);++S<N;)$[S]=_[u+S];S=-1;for(var D=W(u+1);++S<u;)D[S]=_[S];return D[u]=h($),dt(o,this,D)}}function zo(o,u){return u.length<2?o:on(o,St(u,0,-1))}function Zc(o,u){for(var h=o.length,_=nt(u.length,h),S=it(o);_--;){var N=u[_];o[_]=Mt(N,h)?S[N]:t}return o}function Ia(o,u){if(!(u==="constructor"&&typeof o[u]=="function")&&u!="__proto__")return o[u]}var Ko=Jo(go),Mn=hu||function(o,u){return et.setTimeout(o,u)},Ra=Jo(Sc);function Yo(o,u,h){var _=u+"";return Ra(o,Wc(_,ed(Uc(_),h)))}function Jo(o){var u=0,h=0;return function(){var _=_u(),S=Q-(_-h);if(h=_,S>0){if(++u>=ie)return arguments[0]}else u=0;return o.apply(t,arguments)}}function wr(o,u){var h=-1,_=o.length,S=_-1;for(u=u===t?_:u;++h<u;){var N=ya(h,S),$=o[N];o[N]=o[h],o[h]=$}return o.length=u,o}var Qo=Yc(function(o){var u=[];return o.charCodeAt(0)===46&&u.push(""),o.replace(Gi,function(h,_,S,N){u.push(S?N.replace(Qi,"$1"):_||h)}),u});function Ot(o){if(typeof o=="string"||ht(o))return o;var u=o+"";return u=="0"&&1/o==-1/0?"-0":u}function un(o){if(o!=null){try{return Jn.call(o)}catch{}try{return o+""}catch{}}return""}function ed(o,u){return _t(U,function(h){var _="_."+h[0];u&h[1]&&!Wn(o,_)&&o.push(_)}),o.sort()}function Xo(o){if(o instanceof Pe)return o.clone();var u=new bt(o.__wrapped__,o.__chain__);return u.__actions__=it(o.__actions__),u.__index__=o.__index__,u.__values__=o.__values__,u}function td(o,u,h){(h?st(o,u,h):u===t)?u=1:u=Je(xe(u),0);var _=o==null?0:o.length;if(!_||u<1)return[];for(var S=0,N=0,$=W(sr(_/u));S<_;)$[N++]=St(o,S,S+=u);return $}function nd(o){for(var u=-1,h=o==null?0:o.length,_=0,S=[];++u<h;){var N=o[u];N&&(S[_++]=N)}return S}function rd(){var o=arguments.length;if(!o)return[];for(var u=W(o-1),h=arguments[0],_=o;_--;)u[_-1]=arguments[_];return jt(Ee(h)?it(h):[h],tt(u,1))}var ad=Ne(function(o,u){return He(o)?On(o,tt(u,1,He,!0)):[]}),sd=Ne(function(o,u){var h=wt(u);return He(h)&&(h=t),He(o)?On(o,tt(u,1,He,!0),_e(h,2)):[]}),od=Ne(function(o,u){var h=wt(u);return He(h)&&(h=t),He(o)?On(o,tt(u,1,He,!0),t,h):[]});function id(o,u,h){var _=o==null?0:o.length;return _?(u=h||u===t?1:xe(u),St(o,u<0?0:u,_)):[]}function ld(o,u,h){var _=o==null?0:o.length;return _?(u=h||u===t?1:xe(u),u=_-u,St(o,0,u<0?0:u)):[]}function ud(o,u){return o&&o.length?vr(o,_e(u,3),!0,!0):[]}function cd(o,u){return o&&o.length?vr(o,_e(u,3),!0):[]}function dd(o,u,h,_){var S=o==null?0:o.length;return S?(h&&typeof h!="number"&&st(o,u,h)&&(h=0,_=S),rc(o,u,h,_)):[]}function Zo(o,u,h){var _=o==null?0:o.length;if(!_)return-1;var S=h==null?0:xe(h);return S<0&&(S=Je(_+S,0)),Hn(o,_e(u,3),S)}function ei(o,u,h){var _=o==null?0:o.length;if(!_)return-1;var S=_-1;return h!==t&&(S=xe(h),S=h<0?Je(_+S,0):nt(S,_-1)),Hn(o,_e(u,3),S,!0)}function ti(o){var u=o==null?0:o.length;return u?tt(o,1):[]}function fd(o){var u=o==null?0:o.length;return u?tt(o,fe):[]}function pd(o,u){var h=o==null?0:o.length;return h?(u=u===t?1:xe(u),tt(o,u)):[]}function hd(o){for(var u=-1,h=o==null?0:o.length,_={};++u<h;){var S=o[u];_[S[0]]=S[1]}return _}function ni(o){return o&&o.length?o[0]:t}function vd(o,u,h){var _=o==null?0:o.length;if(!_)return-1;var S=h==null?0:xe(h);return S<0&&(S=Je(_+S,0)),pn(o,u,S)}function md(o){var u=o==null?0:o.length;return u?St(o,0,-1):[]}var gd=Ne(function(o){var u=qe(o,ka);return u.length&&u[0]===o[0]?ha(u):[]}),_d=Ne(function(o){var u=wt(o),h=qe(o,ka);return u===wt(h)?u=t:h.pop(),h.length&&h[0]===o[0]?ha(h,_e(u,2)):[]}),yd=Ne(function(o){var u=wt(o),h=qe(o,ka);return u=typeof u=="function"?u:t,u&&h.pop(),h.length&&h[0]===o[0]?ha(h,t,u):[]});function bd(o,u){return o==null?"":mu.call(o,u)}function wt(o){var u=o==null?0:o.length;return u?o[u-1]:t}function Cd(o,u,h){var _=o==null?0:o.length;if(!_)return-1;var S=_;return h!==t&&(S=xe(h),S=S<0?Je(_+S,0):nt(S,_-1)),u===u?eu(o,u,S):Hn(o,Bs,S,!0)}function Sd(o,u){return o&&o.length?po(o,xe(u)):t}var wd=Ne(ri);function ri(o,u){return o&&o.length&&u&&u.length?_a(o,u):o}function kd(o,u,h){return o&&o.length&&u&&u.length?_a(o,u,_e(h,2)):o}function Ed(o,u,h){return o&&o.length&&u&&u.length?_a(o,u,t,h):o}var xd=Lt(function(o,u){var h=o==null?0:o.length,_=ca(o,u);return mo(o,qe(u,function(S){return Mt(S,h)?+S:S}).sort(xo)),_});function Vd(o,u){var h=[];if(!(o&&o.length))return h;var _=-1,S=[],N=o.length;for(u=_e(u,3);++_<N;){var $=o[_];u($,_,o)&&(h.push($),S.push(_))}return mo(o,S),h}function La(o){return o==null?o:bu.call(o)}function Nd(o,u,h){var _=o==null?0:o.length;return _?(h&&typeof h!="number"&&st(o,u,h)?(u=0,h=_):(u=u==null?0:xe(u),h=h===t?_:xe(h)),St(o,u,h)):[]}function Ad(o,u){return hr(o,u)}function Pd(o,u,h){return Ca(o,u,_e(h,2))}function $d(o,u){var h=o==null?0:o.length;if(h){var _=hr(o,u);if(_<h&&Nt(o[_],u))return _}return-1}function Td(o,u){return hr(o,u,!0)}function Od(o,u,h){return Ca(o,u,_e(h,2),!0)}function Dd(o,u){var h=o==null?0:o.length;if(h){var _=hr(o,u,!0)-1;if(Nt(o[_],u))return _}return-1}function Bd(o){return o&&o.length?_o(o):[]}function Id(o,u){return o&&o.length?_o(o,_e(u,2)):[]}function Rd(o){var u=o==null?0:o.length;return u?St(o,1,u):[]}function Ld(o,u,h){return o&&o.length?(u=h||u===t?1:xe(u),St(o,0,u<0?0:u)):[]}function Md(o,u,h){var _=o==null?0:o.length;return _?(u=h||u===t?1:xe(u),u=_-u,St(o,u<0?0:u,_)):[]}function Fd(o,u){return o&&o.length?vr(o,_e(u,3),!1,!0):[]}function Ud(o,u){return o&&o.length?vr(o,_e(u,3)):[]}var qd=Ne(function(o){return Jt(tt(o,1,He,!0))}),Gd=Ne(function(o){var u=wt(o);return He(u)&&(u=t),Jt(tt(o,1,He,!0),_e(u,2))}),Wd=Ne(function(o){var u=wt(o);return u=typeof u=="function"?u:t,Jt(tt(o,1,He,!0),t,u)});function Hd(o){return o&&o.length?Jt(o):[]}function jd(o,u){return o&&o.length?Jt(o,_e(u,2)):[]}function zd(o,u){return u=typeof u=="function"?u:t,o&&o.length?Jt(o,t,u):[]}function Ma(o){if(!(o&&o.length))return[];var u=0;return o=Ht(o,function(h){if(He(h))return u=Je(h.length,u),!0}),na(u,function(h){return qe(o,Zr(h))})}function ai(o,u){if(!(o&&o.length))return[];var h=Ma(o);return u==null?h:qe(h,function(_){return dt(u,t,_)})}var Kd=Ne(function(o,u){return He(o)?On(o,u):[]}),Yd=Ne(function(o){return wa(Ht(o,He))}),Jd=Ne(function(o){var u=wt(o);return He(u)&&(u=t),wa(Ht(o,He),_e(u,2))}),Qd=Ne(function(o){var u=wt(o);return u=typeof u=="function"?u:t,wa(Ht(o,He),t,u)}),Xd=Ne(Ma);function Zd(o,u){return So(o||[],u||[],Tn)}function ef(o,u){return So(o||[],u||[],In)}var tf=Ne(function(o){var u=o.length,h=u>1?o[u-1]:t;return h=typeof h=="function"?(o.pop(),h):t,ai(o,h)});function si(o){var u=k(o);return u.__chain__=!0,u}function nf(o,u){return u(o),o}function kr(o,u){return u(o)}var rf=Lt(function(o){var u=o.length,h=u?o[0]:0,_=this.__wrapped__,S=function(N){return ca(N,o)};return u>1||this.__actions__.length||!(_ instanceof Pe)||!Mt(h)?this.thru(S):(_=_.slice(h,+h+(u?1:0)),_.__actions__.push({func:kr,args:[S],thisArg:t}),new bt(_,this.__chain__).thru(function(N){return u&&!N.length&&N.push(t),N}))});function af(){return si(this)}function sf(){return new bt(this.value(),this.__chain__)}function of(){this.__values__===t&&(this.__values__=bi(this.value()));var o=this.__index__>=this.__values__.length,u=o?t:this.__values__[this.__index__++];return{done:o,value:u}}function lf(){return this}function uf(o){for(var u,h=this;h instanceof ur;){var _=Xo(h);_.__index__=0,_.__values__=t,u?S.__wrapped__=_:u=_;var S=_;h=h.__wrapped__}return S.__wrapped__=o,u}function cf(){var o=this.__wrapped__;if(o instanceof Pe){var u=o;return this.__actions__.length&&(u=new Pe(this)),u=u.reverse(),u.__actions__.push({func:kr,args:[La],thisArg:t}),new bt(u,this.__chain__)}return this.thru(La)}function df(){return Co(this.__wrapped__,this.__actions__)}var ff=mr(function(o,u,h){Re.call(o,h)?++o[h]:It(o,h,1)});function pf(o,u,h){var _=Ee(o)?Os:nc;return h&&st(o,u,h)&&(u=t),_(o,_e(u,3))}function hf(o,u){var h=Ee(o)?Ht:ro;return h(o,_e(u,3))}var vf=To(Zo),mf=To(ei);function gf(o,u){return tt(Er(o,u),1)}function _f(o,u){return tt(Er(o,u),fe)}function yf(o,u,h){return h=h===t?1:xe(h),tt(Er(o,u),h)}function oi(o,u){var h=Ee(o)?_t:Yt;return h(o,_e(u,3))}function ii(o,u){var h=Ee(o)?Rl:no;return h(o,_e(u,3))}var bf=mr(function(o,u,h){Re.call(o,h)?o[h].push(u):It(o,h,[u])});function Cf(o,u,h,_){o=lt(o)?o:En(o),h=h&&!_?xe(h):0;var S=o.length;return h<0&&(h=Je(S+h,0)),Pr(o)?h<=S&&o.indexOf(u,h)>-1:!!S&&pn(o,u,h)>-1}var Sf=Ne(function(o,u,h){var _=-1,S=typeof u=="function",N=lt(o)?W(o.length):[];return Yt(o,function($){N[++_]=S?dt(u,$,h):Dn($,u,h)}),N}),wf=mr(function(o,u,h){It(o,h,u)});function Er(o,u){var h=Ee(o)?qe:uo;return h(o,_e(u,3))}function kf(o,u,h,_){return o==null?[]:(Ee(u)||(u=u==null?[]:[u]),h=_?t:h,Ee(h)||(h=h==null?[]:[h]),ho(o,u,h))}var Ef=mr(function(o,u,h){o[h?0:1].push(u)},function(){return[[],[]]});function xf(o,u,h){var _=Ee(o)?Qr:Rs,S=arguments.length<3;return _(o,_e(u,4),h,S,Yt)}function Vf(o,u,h){var _=Ee(o)?Ll:Rs,S=arguments.length<3;return _(o,_e(u,4),h,S,no)}function Nf(o,u){var h=Ee(o)?Ht:ro;return h(o,Nr(_e(u,3)))}function Af(o){var u=Ee(o)?Xs:bc;return u(o)}function Pf(o,u,h){(h?st(o,u,h):u===t)?u=1:u=xe(u);var _=Ee(o)?Qu:Cc;return _(o,u)}function $f(o){var u=Ee(o)?Xu:wc;return u(o)}function Tf(o){if(o==null)return 0;if(lt(o))return Pr(o)?vn(o):o.length;var u=rt(o);return u==ye||u==De?o.size:ma(o).length}function Of(o,u,h){var _=Ee(o)?Xr:kc;return h&&st(o,u,h)&&(u=t),_(o,_e(u,3))}var Df=Ne(function(o,u){if(o==null)return[];var h=u.length;return h>1&&st(o,u[0],u[1])?u=[]:h>2&&st(u[0],u[1],u[2])&&(u=[u[0]]),ho(o,tt(u,1),[])}),xr=pu||function(){return et.Date.now()};function Bf(o,u){if(typeof u!="function")throw new yt(i);return o=xe(o),function(){if(--o<1)return u.apply(this,arguments)}}function li(o,u,h){return u=h?t:u,u=o&&u==null?o.length:u,Rt(o,I,t,t,t,t,u)}function ui(o,u){var h;if(typeof u!="function")throw new yt(i);return o=xe(o),function(){return--o>0&&(h=u.apply(this,arguments)),o<=1&&(u=t),h}}var Fa=Ne(function(o,u,h){var _=C;if(h.length){var S=zt(h,wn(Fa));_|=P}return Rt(o,_,u,h,S)}),ci=Ne(function(o,u,h){var _=C|w;if(h.length){var S=zt(h,wn(ci));_|=P}return Rt(u,_,o,h,S)});function di(o,u,h){u=h?t:u;var _=Rt(o,V,t,t,t,t,t,u);return _.placeholder=di.placeholder,_}function fi(o,u,h){u=h?t:u;var _=Rt(o,A,t,t,t,t,t,u);return _.placeholder=fi.placeholder,_}function hi(o,u,h){var _,S,N,$,D,F,Y=0,J=!1,X=!1,de=!0;if(typeof o!="function")throw new yt(i);u=kt(u)||0,Ge(h)&&(J=!!h.leading,X="maxWait"in h,N=X?Je(kt(h.maxWait)||0,u):N,de="trailing"in h?!!h.trailing:de);function ve(je){var At=_,qt=S;return _=S=t,Y=je,$=o.apply(qt,At),$}function be(je){return Y=je,D=Mn(Ae,u),J?ve(je):$}function Ve(je){var At=je-F,qt=je-Y,Oi=u-At;return X?nt(Oi,N-qt):Oi}function Ce(je){var At=je-F,qt=je-Y;return F===t||At>=u||At<0||X&&qt>=N}function Ae(){var je=xr();if(Ce(je))return $e(je);D=Mn(Ae,Ve(je))}function $e(je){return D=t,de&&_?ve(je):(_=S=t,$)}function vt(){D!==t&&wo(D),Y=0,_=F=S=D=t}function ot(){return D===t?$:$e(xr())}function mt(){var je=xr(),At=Ce(je);if(_=arguments,S=this,F=je,At){if(D===t)return be(F);if(X)return wo(D),D=Mn(Ae,u),ve(F)}return D===t&&(D=Mn(Ae,u)),$}return mt.cancel=vt,mt.flush=ot,mt}var If=Ne(function(o,u){return to(o,1,u)}),Rf=Ne(function(o,u,h){return to(o,kt(u)||0,h)});function Lf(o){return Rt(o,Z)}function Vr(o,u){if(typeof o!="function"||u!=null&&typeof u!="function")throw new yt(i);var h=function(){var _=arguments,S=u?u.apply(this,_):_[0],N=h.cache;if(N.has(S))return N.get(S);var $=o.apply(this,_);return h.cache=N.set(S,$)||N,$};return h.cache=new(Vr.Cache||Bt),h}Vr.Cache=Bt;function Nr(o){if(typeof o!="function")throw new yt(i);return function(){var u=arguments;switch(u.length){case 0:return!o.call(this);case 1:return!o.call(this,u[0]);case 2:return!o.call(this,u[0],u[1]);case 3:return!o.call(this,u[0],u[1],u[2])}return!o.apply(this,u)}}function Mf(o){return ui(2,o)}var Ff=Ec(function(o,u){u=u.length==1&&Ee(u[0])?qe(u[0],ft(_e())):qe(tt(u,1),ft(_e()));var h=u.length;return Ne(function(_){for(var S=-1,N=nt(_.length,h);++S<N;)_[S]=u[S].call(this,_[S]);return dt(o,this,_)})}),Ua=Ne(function(o,u){var h=zt(u,wn(Ua));return Rt(o,P,t,u,h)}),vi=Ne(function(o,u){var h=zt(u,wn(vi));return Rt(o,O,t,u,h)}),Uf=Lt(function(o,u){return Rt(o,R,t,t,t,u)});function qf(o,u){if(typeof o!="function")throw new yt(i);return u=u===t?u:xe(u),Ne(o,u)}function Gf(o,u){if(typeof o!="function")throw new yt(i);return u=u==null?0:Je(xe(u),0),Ne(function(h){var _=h[u],S=Xt(h,0,u);return _&&jt(S,_),dt(o,this,S)})}function Wf(o,u,h){var _=!0,S=!0;if(typeof o!="function")throw new yt(i);return Ge(h)&&(_="leading"in h?!!h.leading:_,S="trailing"in h?!!h.trailing:S),hi(o,u,{leading:_,maxWait:u,trailing:S})}function Hf(o){return li(o,1)}function jf(o,u){return Ua(Ea(u),o)}function zf(){if(!arguments.length)return[];var o=arguments[0];return Ee(o)?o:[o]}function Kf(o){return Ct(o,m)}function Yf(o,u){return u=typeof u=="function"?u:t,Ct(o,m,u)}function Jf(o){return Ct(o,p|m)}function Qf(o,u){return u=typeof u=="function"?u:t,Ct(o,p|m,u)}function Xf(o,u){return u==null||eo(o,u,Xe(u))}function Nt(o,u){return o===u||o!==o&&u!==u}var Zf=br(pa),ep=br(function(o,u){return o>=u}),cn=oo(function(){return arguments}())?oo:function(o){return We(o)&&Re.call(o,"callee")&&!js.call(o,"callee")},Ee=W.isArray,tp=Vs?ft(Vs):lc;function lt(o){return o!=null&&Ar(o.length)&&!Ft(o)}function He(o){return We(o)&<(o)}function np(o){return o===!0||o===!1||We(o)&&at(o)==le}var Zt=vu||Xa,rp=Ns?ft(Ns):uc;function ap(o){return We(o)&&o.nodeType===1&&!Fn(o)}function sp(o){if(o==null)return!0;if(lt(o)&&(Ee(o)||typeof o=="string"||typeof o.splice=="function"||Zt(o)||kn(o)||cn(o)))return!o.length;var u=rt(o);if(u==ye||u==De)return!o.size;if(Ln(o))return!ma(o).length;for(var h in o)if(Re.call(o,h))return!1;return!0}function op(o,u){return Bn(o,u)}function ip(o,u,h){h=typeof h=="function"?h:t;var _=h?h(o,u):t;return _===t?Bn(o,u,t,h):!!_}function qa(o){if(!We(o))return!1;var u=at(o);return u==ce||u==te||typeof o.message=="string"&&typeof o.name=="string"&&!Fn(o)}function lp(o){return typeof o=="number"&&Ks(o)}function Ft(o){if(!Ge(o))return!1;var u=at(o);return u==ge||u==Se||u==ee||u==H}function mi(o){return typeof o=="number"&&o==xe(o)}function Ar(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=T}function Ge(o){var u=typeof o;return o!=null&&(u=="object"||u=="function")}function We(o){return o!=null&&typeof o=="object"}var gi=As?ft(As):dc;function up(o,u){return o===u||va(o,u,Ta(u))}function cp(o,u,h){return h=typeof h=="function"?h:t,va(o,u,Ta(u),h)}function dp(o){return _i(o)&&o!=+o}function fp(o){if(Kc(o))throw new ke(s);return io(o)}function pp(o){return o===null}function hp(o){return o==null}function _i(o){return typeof o=="number"||We(o)&&at(o)==Te}function Fn(o){if(!We(o)||at(o)!=Ue)return!1;var u=nr(o);if(u===null)return!0;var h=Re.call(u,"constructor")&&u.constructor;return typeof h=="function"&&h instanceof h&&Jn.call(h)==uu}var Ga=Ps?ft(Ps):fc;function vp(o){return mi(o)&&o>=-9007199254740991&&o<=T}var yi=$s?ft($s):pc;function Pr(o){return typeof o=="string"||!Ee(o)&&We(o)&&at(o)==Ze}function ht(o){return typeof o=="symbol"||We(o)&&at(o)==Ke}var kn=Ts?ft(Ts):hc;function mp(o){return o===t}function gp(o){return We(o)&&rt(o)==Pt}function _p(o){return We(o)&&at(o)==en}var yp=br(ga),bp=br(function(o,u){return o<=u});function bi(o){if(!o)return[];if(lt(o))return Pr(o)?xt(o):it(o);if(Vn&&o[Vn])return Ql(o[Vn]());var u=rt(o),h=u==ye?aa:u==De?jn:En;return h(o)}function Ut(o){if(!o)return o===0?o:0;if(o=kt(o),o===fe||o===-1/0){var u=o<0?-1:1;return u*M}return o===o?o:0}function xe(o){var u=Ut(o),h=u%1;return u===u?h?u-h:u:0}function Ci(o){return o?sn(xe(o),0,ne):0}function kt(o){if(typeof o=="number")return o;if(ht(o))return G;if(Ge(o)){var u=typeof o.valueOf=="function"?o.valueOf():o;o=Ge(u)?u+"":u}if(typeof o!="string")return o===0?o:+o;o=Ls(o);var h=el.test(o);return h||nl.test(o)?Dl(o.slice(2),h?2:8):Zi.test(o)?G:+o}function Si(o){return Tt(o,ut(o))}function Cp(o){return o?sn(xe(o),-9007199254740991,T):o===0?o:0}function Ie(o){return o==null?"":pt(o)}var Sp=Cn(function(o,u){if(Ln(u)||lt(u)){Tt(u,Xe(u),o);return}for(var h in u)Re.call(u,h)&&Tn(o,h,u[h])}),wi=Cn(function(o,u){Tt(u,ut(u),o)}),$r=Cn(function(o,u,h,_){Tt(u,ut(u),o,_)}),wp=Cn(function(o,u,h,_){Tt(u,Xe(u),o,_)}),kp=Lt(ca);function Ep(o,u){var h=bn(o);return u==null?h:Zs(h,u)}var xp=Ne(function(o,u){o=Le(o);var h=-1,_=u.length,S=_>2?u[2]:t;for(S&&st(u[0],u[1],S)&&(_=1);++h<_;)for(var N=u[h],$=ut(N),D=-1,F=$.length;++D<F;){var Y=$[D],J=o[Y];(J===t||Nt(J,gn[Y])&&!Re.call(o,Y))&&(o[Y]=N[Y])}return o}),Vp=Ne(function(o){return o.push(t,Mo),dt(ki,t,o)});function Np(o,u){return Ds(o,_e(u,3),$t)}function Ap(o,u){return Ds(o,_e(u,3),fa)}function Pp(o,u){return o==null?o:da(o,_e(u,3),ut)}function $p(o,u){return o==null?o:ao(o,_e(u,3),ut)}function Tp(o,u){return o&&$t(o,_e(u,3))}function Op(o,u){return o&&fa(o,_e(u,3))}function Dp(o){return o==null?[]:fr(o,Xe(o))}function Bp(o){return o==null?[]:fr(o,ut(o))}function Wa(o,u,h){var _=o==null?t:on(o,u);return _===t?h:_}function Ip(o,u){return o!=null&&qo(o,u,ac)}function Ha(o,u){return o!=null&&qo(o,u,sc)}var Rp=Do(function(o,u,h){u!=null&&typeof u.toString!="function"&&(u=Qn.call(u)),o[u]=h},za(ct)),Lp=Do(function(o,u,h){u!=null&&typeof u.toString!="function"&&(u=Qn.call(u)),Re.call(o,u)?o[u].push(h):o[u]=[h]},_e),Mp=Ne(Dn);function Xe(o){return lt(o)?Qs(o):ma(o)}function ut(o){return lt(o)?Qs(o,!0):vc(o)}function Fp(o,u){var h={};return u=_e(u,3),$t(o,function(_,S,N){It(h,u(_,S,N),_)}),h}function Up(o,u){var h={};return u=_e(u,3),$t(o,function(_,S,N){It(h,S,u(_,S,N))}),h}var qp=Cn(function(o,u,h){pr(o,u,h)}),ki=Cn(function(o,u,h,_){pr(o,u,h,_)}),Gp=Lt(function(o,u){var h={};if(o==null)return h;var _=!1;u=qe(u,function(N){return N=Qt(N,o),_||(_=N.length>1),N}),Tt(o,Pa(o),h),_&&(h=Ct(h,p|v|m,Ic));for(var S=u.length;S--;)Sa(h,u[S]);return h});function Wp(o,u){return Ei(o,Nr(_e(u)))}var Hp=Lt(function(o,u){return o==null?{}:gc(o,u)});function Ei(o,u){if(o==null)return{};var h=qe(Pa(o),function(_){return[_]});return u=_e(u),vo(o,h,function(_,S){return u(_,S[0])})}function jp(o,u,h){u=Qt(u,o);var _=-1,S=u.length;for(S||(S=1,o=t);++_<S;){var N=o==null?t:o[Ot(u[_])];N===t&&(_=S,N=h),o=Ft(N)?N.call(o):N}return o}function zp(o,u,h){return o==null?o:In(o,u,h)}function Kp(o,u,h,_){return _=typeof _=="function"?_:t,o==null?o:In(o,u,h,_)}var xi=Ro(Xe),Vi=Ro(ut);function Yp(o,u,h){var _=Ee(o),S=_||Zt(o)||kn(o);if(u=_e(u,4),h==null){var N=o&&o.constructor;S?h=_?new N:[]:Ge(o)?h=Ft(N)?bn(nr(o)):{}:h={}}return(S?_t:$t)(o,function($,D,F){return u(h,$,D,F)}),h}function Jp(o,u){return o==null?!0:Sa(o,u)}function Qp(o,u,h){return o==null?o:bo(o,u,Ea(h))}function Xp(o,u,h,_){return _=typeof _=="function"?_:t,o==null?o:bo(o,u,Ea(h),_)}function En(o){return o==null?[]:ra(o,Xe(o))}function Zp(o){return o==null?[]:ra(o,ut(o))}function eh(o,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),sn(kt(o),u,h)}function th(o,u,h){return u=Ut(u),h===t?(h=u,u=0):h=Ut(h),o=kt(o),oc(o,u,h)}function nh(o,u,h){if(h&&typeof h!="boolean"&&st(o,u,h)&&(u=h=t),h===t&&(typeof u=="boolean"?(h=u,u=t):typeof o=="boolean"&&(h=o,o=t)),o===t&&u===t?(o=0,u=1):(o=Ut(o),u===t?(u=o,o=0):u=Ut(u)),o>u){var _=o;o=u,u=_}if(h||o%1||u%1){var S=Ys();return nt(o+S*(u-o+Ol("1e-"+((S+"").length-1))),u)}return ya(o,u)}var rh=Sn(function(o,u,h){return u=u.toLowerCase(),o+(h?Ni(u):u)});function Ni(o){return ja(Ie(o).toLowerCase())}function Ai(o){return o=Ie(o),o&&o.replace(al,jl).replace(wl,"")}function ah(o,u,h){o=Ie(o),u=pt(u);var _=o.length;h=h===t?_:sn(xe(h),0,_);var S=h;return h-=u.length,h>=0&&o.slice(h,S)==u}function sh(o){return o=Ie(o),o&&Li.test(o)?o.replace(es,zl):o}function oh(o){return o=Ie(o),o&&Wi.test(o)?o.replace(Ur,"\\$&"):o}var ih=Sn(function(o,u,h){return o+(h?"-":"")+u.toLowerCase()}),lh=Sn(function(o,u,h){return o+(h?" ":"")+u.toLowerCase()}),uh=$o("toLowerCase");function ch(o,u,h){o=Ie(o),u=xe(u);var _=u?vn(o):0;if(!u||_>=u)return o;var S=(u-_)/2;return yr(or(S),h)+o+yr(sr(S),h)}function dh(o,u,h){o=Ie(o),u=xe(u);var _=u?vn(o):0;return u&&_<u?o+yr(u-_,h):o}function fh(o,u,h){o=Ie(o),u=xe(u);var _=u?vn(o):0;return u&&_<u?yr(u-_,h)+o:o}function ph(o,u,h){return h||u==null?u=0:u&&(u=+u),yu(Ie(o).replace(qr,""),u||0)}function hh(o,u,h){return(h?st(o,u,h):u===t)?u=1:u=xe(u),ba(Ie(o),u)}function vh(){var o=arguments,u=Ie(o[0]);return o.length<3?u:u.replace(o[1],o[2])}var mh=Sn(function(o,u,h){return o+(h?"_":"")+u.toLowerCase()});function gh(o,u,h){return h&&typeof h!="number"&&st(o,u,h)&&(u=h=t),h=h===t?ne:h>>>0,h?(o=Ie(o),o&&(typeof u=="string"||u!=null&&!Ga(u))&&(u=pt(u),!u&&hn(o))?Xt(xt(o),0,h):o.split(u,h)):[]}var _h=Sn(function(o,u,h){return o+(h?" ":"")+ja(u)});function yh(o,u,h){return o=Ie(o),h=h==null?0:sn(xe(h),0,o.length),u=pt(u),o.slice(h,h+u.length)==u}function bh(o,u,h){var _=k.templateSettings;h&&st(o,u,h)&&(u=t),o=Ie(o),u=$r({},u,_,Lo);var S=$r({},u.imports,_.imports,Lo),N=Xe(S),$=ra(S,N),D,F,Y=0,J=u.interpolate||Un,X="__p += '",de=sa((u.escape||Un).source+"|"+J.source+"|"+(J===ts?Xi:Un).source+"|"+(u.evaluate||Un).source+"|$","g"),ve="//# sourceURL="+(Re.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Nl+"]")+`
|
|
11
|
+
`;o.replace(de,function(Ce,Ae,$e,vt,ot,mt){return $e||($e=vt),X+=o.slice(Y,mt).replace(sl,Kl),Ae&&(D=!0,X+=`' +
|
|
12
12
|
__e(`+Ae+`) +
|
|
13
13
|
'`),ot&&(F=!0,X+=`';
|
|
14
14
|
`+ot+`;
|
|
15
|
-
__p += '`)
|
|
16
|
-
((__t = (
|
|
15
|
+
__p += '`),$e&&(X+=`' +
|
|
16
|
+
((__t = (`+$e+`)) == null ? '' : __t) +
|
|
17
17
|
'`),Y=mt+Ce.length,Ce}),X+=`';
|
|
18
|
-
`;var be=
|
|
18
|
+
`;var be=Re.call(u,"variable")&&u.variable;if(!be)X=`with (obj) {
|
|
19
19
|
`+X+`
|
|
20
20
|
}
|
|
21
21
|
`;else if(Ji.test(be))throw new ke(l);X=(F?X.replace(Di,""):X).replace(Bi,"$1").replace(Ii,"$1;"),X="function("+(be||"obj")+`) {
|
|
@@ -24,16 +24,16 @@ __p += '`),Pe&&(X+=`' +
|
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+X+`return __p
|
|
27
|
-
}`;var Ve=Pi(function(){return Be(N,ve+"return "+X).apply(t,P)});if(Ve.source=X,qa(Ve))throw Ve;return Ve}function Ch(o){return Ie(o).toLowerCase()}function Sh(o){return Ie(o).toUpperCase()}function wh(o,u,h){if(o=Ie(o),o&&(h||u===t))return Rs(o);if(!o||!(u=pt(u)))return o;var _=xt(o),S=xt(u),N=Ms(_,S),P=Fs(_,S)+1;return Xt(_,N,P).join("")}function kh(o,u,h){if(o=Ie(o),o&&(h||u===t))return o.slice(0,qs(o)+1);if(!o||!(u=pt(u)))return o;var _=xt(o),S=Fs(_,xt(u))+1;return Xt(_,0,S).join("")}function Eh(o,u,h){if(o=Ie(o),o&&(h||u===t))return o.replace(qr,"");if(!o||!(u=pt(u)))return o;var _=xt(o),S=Ms(_,xt(u));return Xt(_,S).join("")}function xh(o,u){var h=se,_=z;if(Ge(u)){var S="separator"in u?u.separator:S;h="length"in u?xe(u.length):h,_="omission"in u?pt(u.omission):_}o=Ie(o);var N=o.length;if(hn(o)){var P=xt(o);N=P.length}if(h>=N)return o;var D=h-vn(_);if(D<1)return _;var F=P?Xt(P,0,D).join(""):o.slice(0,D);if(S===t)return F+_;if(P&&(D+=F.length-D),Ga(S)){if(o.slice(D).search(S)){var Y,J=F;for(S.global||(S=sa(S.source,Ie(ns.exec(S))+"g")),S.lastIndex=0;Y=S.exec(J);)var X=Y.index;F=F.slice(0,X===t?D:X)}}else if(o.indexOf(pt(S),D)!=D){var de=F.lastIndexOf(S);de>-1&&(F=F.slice(0,de))}return F+_}function Vh(o){return o=Ie(o),o&&Li.test(o)?o.replace(Za,tu):o}var Nh=Sn(function(o,u,h){return o+(h?" ":"")+u.toUpperCase()}),ja=Po("toUpperCase");function $i(o,u,h){return o=Ie(o),u=h?t:u,u===t?Jl(o)?au(o):Ul(o):o.match(u)||[]}var Pi=Ne(function(o,u){try{return dt(o,t,u)}catch(h){return qa(h)?h:new ke(h)}}),Ah=Rt(function(o,u){return _t(u,function(h){h=Ot(h),It(o,h,Fa(o[h],o))}),o});function $h(o){var u=o==null?0:o.length,h=_e();return o=u?qe(o,function(_){if(typeof _[1]!="function")throw new yt(i);return[h(_[0]),_[1]]}):[],Ne(function(_){for(var S=-1;++S<u;){var N=o[S];if(dt(N[0],this,_))return dt(N[1],this,_)}})}function Ph(o){return tc(Ct(o,p))}function za(o){return function(){return o}}function Th(o,u){return o==null||o!==o?u:o}var Oh=Oo(),Dh=Oo(!0);function ct(o){return o}function Ka(o){return lo(typeof o=="function"?o:Ct(o,p))}function Bh(o){return co(Ct(o,p))}function Ih(o,u){return fo(o,Ct(u,p))}var Lh=Ne(function(o,u){return function(h){return Dn(h,o,u)}}),Rh=Ne(function(o,u){return function(h){return Dn(o,h,u)}});function Ya(o,u,h){var _=Xe(u),S=fr(u,_);h==null&&!(Ge(u)&&(S.length||!_.length))&&(h=u,u=o,o=this,S=fr(u,Xe(u)));var N=!(Ge(h)&&"chain"in h)||!!h.chain,P=Ft(o);return _t(S,function(D){var F=u[D];o[D]=F,P&&(o.prototype[D]=function(){var Y=this.__chain__;if(N||Y){var J=o(this.__wrapped__),X=J.__actions__=it(this.__actions__);return X.push({func:F,args:arguments,thisArg:o}),J.__chain__=Y,J}return F.apply(o,jt([this.value()],arguments))})}),o}function Mh(){return et._===this&&(et._=cu),this}function Ja(){}function Fh(o){return o=xe(o),Ne(function(u){return po(u,o)})}var Uh=Va(qe),qh=Va(Os),Gh=Va(Xr);function Ti(o){return Da(o)?Zr(Ot(o)):_c(o)}function Wh(o){return function(u){return o==null?t:on(o,u)}}var Hh=Bo(),jh=Bo(!0);function Qa(){return[]}function Xa(){return!1}function zh(){return{}}function Kh(){return""}function Yh(){return!0}function Jh(o,u){if(o=xe(o),o<1||o>T)return[];var h=ne,_=nt(o,ne);u=_e(u),o-=ne;for(var S=na(_,u);++h<o;)u(h);return S}function Qh(o){return Ee(o)?qe(o,Ot):ht(o)?[o]:it(Qo(Ie(o)))}function Xh(o){var u=++lu;return Ie(o)+u}var Zh=_r(function(o,u){return o+u},0),ev=Na("ceil"),tv=_r(function(o,u){return o/u},1),nv=Na("floor");function rv(o){return o&&o.length?dr(o,ct,pa):t}function av(o,u){return o&&o.length?dr(o,_e(u,2),pa):t}function sv(o){return Is(o,ct)}function ov(o,u){return Is(o,_e(u,2))}function iv(o){return o&&o.length?dr(o,ct,ga):t}function lv(o,u){return o&&o.length?dr(o,_e(u,2),ga):t}var uv=_r(function(o,u){return o*u},1),cv=Na("round"),dv=_r(function(o,u){return o-u},0);function fv(o){return o&&o.length?ta(o,ct):0}function pv(o,u){return o&&o.length?ta(o,_e(u,2)):0}return k.after=Bf,k.ary=li,k.assign=Sp,k.assignIn=wi,k.assignInWith=Pr,k.assignWith=wp,k.at=kp,k.before=ui,k.bind=Fa,k.bindAll=Ah,k.bindKey=ci,k.castArray=zf,k.chain=si,k.chunk=td,k.compact=nd,k.concat=rd,k.cond=$h,k.conforms=Ph,k.constant=za,k.countBy=ff,k.create=Ep,k.curry=di,k.curryRight=fi,k.debounce=hi,k.defaults=xp,k.defaultsDeep=Vp,k.defer=If,k.delay=Lf,k.difference=ad,k.differenceBy=sd,k.differenceWith=od,k.drop=id,k.dropRight=ld,k.dropRightWhile=ud,k.dropWhile=cd,k.fill=dd,k.filter=hf,k.flatMap=gf,k.flatMapDeep=_f,k.flatMapDepth=yf,k.flatten=ti,k.flattenDeep=fd,k.flattenDepth=pd,k.flip=Rf,k.flow=Oh,k.flowRight=Dh,k.fromPairs=hd,k.functions=Dp,k.functionsIn=Bp,k.groupBy=bf,k.initial=md,k.intersection=gd,k.intersectionBy=_d,k.intersectionWith=yd,k.invert=Lp,k.invertBy=Rp,k.invokeMap=Sf,k.iteratee=Ka,k.keyBy=wf,k.keys=Xe,k.keysIn=ut,k.map=Er,k.mapKeys=Fp,k.mapValues=Up,k.matches=Bh,k.matchesProperty=Ih,k.memoize=Vr,k.merge=qp,k.mergeWith=ki,k.method=Lh,k.methodOf=Rh,k.mixin=Ya,k.negate=Nr,k.nthArg=Fh,k.omit=Gp,k.omitBy=Wp,k.once=Mf,k.orderBy=kf,k.over=Uh,k.overArgs=Ff,k.overEvery=qh,k.overSome=Gh,k.partial=Ua,k.partialRight=vi,k.partition=Ef,k.pick=Hp,k.pickBy=Ei,k.property=Ti,k.propertyOf=Wh,k.pull=wd,k.pullAll=ri,k.pullAllBy=kd,k.pullAllWith=Ed,k.pullAt=xd,k.range=Hh,k.rangeRight=jh,k.rearg=Uf,k.reject=Nf,k.remove=Vd,k.rest=qf,k.reverse=Ra,k.sampleSize=$f,k.set=zp,k.setWith=Kp,k.shuffle=Pf,k.slice=Nd,k.sortBy=Df,k.sortedUniq=Bd,k.sortedUniqBy=Id,k.split=gh,k.spread=Gf,k.tail=Ld,k.take=Rd,k.takeRight=Md,k.takeRightWhile=Fd,k.takeWhile=Ud,k.tap=nf,k.throttle=Wf,k.thru=kr,k.toArray=bi,k.toPairs=xi,k.toPairsIn=Vi,k.toPath=Qh,k.toPlainObject=Si,k.transform=Yp,k.unary=Hf,k.union=qd,k.unionBy=Gd,k.unionWith=Wd,k.uniq=Hd,k.uniqBy=jd,k.uniqWith=zd,k.unset=Jp,k.unzip=Ma,k.unzipWith=ai,k.update=Qp,k.updateWith=Xp,k.values=En,k.valuesIn=Zp,k.without=Kd,k.words=$i,k.wrap=jf,k.xor=Yd,k.xorBy=Jd,k.xorWith=Qd,k.zip=Xd,k.zipObject=Zd,k.zipObjectDeep=ef,k.zipWith=tf,k.entries=xi,k.entriesIn=Vi,k.extend=wi,k.extendWith=Pr,Ya(k,k),k.add=Zh,k.attempt=Pi,k.camelCase=rh,k.capitalize=Ni,k.ceil=ev,k.clamp=eh,k.clone=Kf,k.cloneDeep=Jf,k.cloneDeepWith=Qf,k.cloneWith=Yf,k.conformsTo=Xf,k.deburr=Ai,k.defaultTo=Th,k.divide=tv,k.endsWith=ah,k.eq=Nt,k.escape=sh,k.escapeRegExp=oh,k.every=pf,k.find=vf,k.findIndex=Zo,k.findKey=Np,k.findLast=mf,k.findLastIndex=ei,k.findLastKey=Ap,k.floor=nv,k.forEach=oi,k.forEachRight=ii,k.forIn=$p,k.forInRight=Pp,k.forOwn=Tp,k.forOwnRight=Op,k.get=Wa,k.gt=Zf,k.gte=ep,k.has=Ip,k.hasIn=Ha,k.head=ni,k.identity=ct,k.includes=Cf,k.indexOf=vd,k.inRange=th,k.invoke=Mp,k.isArguments=cn,k.isArray=Ee,k.isArrayBuffer=tp,k.isArrayLike=lt,k.isArrayLikeObject=He,k.isBoolean=np,k.isBuffer=Zt,k.isDate=rp,k.isElement=ap,k.isEmpty=sp,k.isEqual=op,k.isEqualWith=ip,k.isError=qa,k.isFinite=lp,k.isFunction=Ft,k.isInteger=mi,k.isLength=Ar,k.isMap=gi,k.isMatch=up,k.isMatchWith=cp,k.isNaN=dp,k.isNative=fp,k.isNil=hp,k.isNull=pp,k.isNumber=_i,k.isObject=Ge,k.isObjectLike=We,k.isPlainObject=Fn,k.isRegExp=Ga,k.isSafeInteger=vp,k.isSet=yi,k.isString=$r,k.isSymbol=ht,k.isTypedArray=kn,k.isUndefined=mp,k.isWeakMap=gp,k.isWeakSet=_p,k.join=bd,k.kebabCase=ih,k.last=wt,k.lastIndexOf=Cd,k.lowerCase=lh,k.lowerFirst=uh,k.lt=yp,k.lte=bp,k.max=rv,k.maxBy=av,k.mean=sv,k.meanBy=ov,k.min=iv,k.minBy=lv,k.stubArray=Qa,k.stubFalse=Xa,k.stubObject=zh,k.stubString=Kh,k.stubTrue=Yh,k.multiply=uv,k.nth=Sd,k.noConflict=Mh,k.noop=Ja,k.now=xr,k.pad=ch,k.padEnd=dh,k.padStart=fh,k.parseInt=ph,k.random=nh,k.reduce=xf,k.reduceRight=Vf,k.repeat=hh,k.replace=vh,k.result=jp,k.round=cv,k.runInContext=R,k.sample=Af,k.size=Tf,k.snakeCase=mh,k.some=Of,k.sortedIndex=Ad,k.sortedIndexBy=$d,k.sortedIndexOf=Pd,k.sortedLastIndex=Td,k.sortedLastIndexBy=Od,k.sortedLastIndexOf=Dd,k.startCase=_h,k.startsWith=yh,k.subtract=dv,k.sum=fv,k.sumBy=pv,k.template=bh,k.times=Jh,k.toFinite=Ut,k.toInteger=xe,k.toLength=Ci,k.toLower=Ch,k.toNumber=kt,k.toSafeInteger=Cp,k.toString=Ie,k.toUpper=Sh,k.trim=wh,k.trimEnd=kh,k.trimStart=Eh,k.truncate=xh,k.unescape=Vh,k.uniqueId=Xh,k.upperCase=Nh,k.upperFirst=ja,k.each=oi,k.eachRight=ii,k.first=ni,Ya(k,function(){var o={};return Pt(k,function(u,h){Le.call(k.prototype,h)||(o[h]=u)}),o}(),{chain:!1}),k.VERSION=r,_t(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){k[o].placeholder=k}),_t(["drop","take"],function(o,u){$e.prototype[o]=function(h){h=h===t?1:Je(xe(h),0);var _=this.__filtered__&&!u?new $e(this):this.clone();return _.__filtered__?_.__takeCount__=nt(h,_.__takeCount__):_.__views__.push({size:nt(h,ne),type:o+(_.__dir__<0?"Right":"")}),_},$e.prototype[o+"Right"]=function(h){return this.reverse()[o](h).reverse()}}),_t(["filter","map","takeWhile"],function(o,u){var h=u+1,_=h==ae||h==me;$e.prototype[o]=function(S){var N=this.clone();return N.__iteratees__.push({iteratee:_e(S,3),type:h}),N.__filtered__=N.__filtered__||_,N}}),_t(["head","last"],function(o,u){var h="take"+(u?"Right":"");$e.prototype[o]=function(){return this[h](1).value()[0]}}),_t(["initial","tail"],function(o,u){var h="drop"+(u?"":"Right");$e.prototype[o]=function(){return this.__filtered__?new $e(this):this[h](1)}}),$e.prototype.compact=function(){return this.filter(ct)},$e.prototype.find=function(o){return this.filter(o).head()},$e.prototype.findLast=function(o){return this.reverse().find(o)},$e.prototype.invokeMap=Ne(function(o,u){return typeof o=="function"?new $e(this):this.map(function(h){return Dn(h,o,u)})}),$e.prototype.reject=function(o){return this.filter(Nr(_e(o)))},$e.prototype.slice=function(o,u){o=xe(o);var h=this;return h.__filtered__&&(o>0||u<0)?new $e(h):(o<0?h=h.takeRight(-o):o&&(h=h.drop(o)),u!==t&&(u=xe(u),h=u<0?h.dropRight(-u):h.take(u-o)),h)},$e.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},$e.prototype.toArray=function(){return this.take(ne)},Pt($e.prototype,function(o,u){var h=/^(?:filter|find|map|reject)|While$/.test(u),_=/^(?:head|last)$/.test(u),S=k[_?"take"+(u=="last"?"Right":""):u],N=_||/^find/.test(u);S&&(k.prototype[u]=function(){var P=this.__wrapped__,D=_?[1]:arguments,F=P instanceof $e,Y=D[0],J=F||Ee(P),X=function(Ae){var Pe=S.apply(k,jt([Ae],D));return _&&de?Pe[0]:Pe};J&&h&&typeof Y=="function"&&Y.length!=1&&(F=J=!1);var de=this.__chain__,ve=!!this.__actions__.length,be=N&&!de,Ve=F&&!ve;if(!N&&J){P=Ve?P:new $e(this);var Ce=o.apply(P,D);return Ce.__actions__.push({func:kr,args:[X],thisArg:t}),new bt(Ce,de)}return be&&Ve?o.apply(this,D):(Ce=this.thru(X),be?_?Ce.value()[0]:Ce.value():Ce)})}),_t(["pop","push","shift","sort","splice","unshift"],function(o){var u=zn[o],h=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",_=/^(?:pop|shift)$/.test(o);k.prototype[o]=function(){var S=arguments;if(_&&!this.__chain__){var N=this.value();return u.apply(Ee(N)?N:[],S)}return this[h](function(P){return u.apply(Ee(P)?P:[],S)})}}),Pt($e.prototype,function(o,u){var h=k[u];if(h){var _=h.name+"";Le.call(yn,_)||(yn[_]=[]),yn[_].push({name:u,func:h})}}),yn[gr(t,w).name]=[{name:"wrapper",func:t}],$e.prototype.clone=xu,$e.prototype.reverse=Vu,$e.prototype.value=Nu,k.prototype.at=rf,k.prototype.chain=af,k.prototype.commit=sf,k.prototype.next=of,k.prototype.plant=uf,k.prototype.reverse=cf,k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=df,k.prototype.first=k.prototype.head,Vn&&(k.prototype[Vn]=lf),k},mn=su();tn?((tn.exports=mn)._=mn,Kr._=mn):et._=mn}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;const _sfc_main$2l={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$2a(e,n,t,r,a,s){return vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(s.type),{class:vue.normalizeClass(["vs-heading",s.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",s.subHeadingClass])},[vue.renderSlot(e.$slots,"sub-heading")],2)):vue.createCommentVNode("",!0)]),_:3},8,["class"])}const VsHeading=_export_sfc(_sfc_main$2l,[["render",_sfc_render$2a]]),_sfc_main$2k={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$29(e,n,t,r,a,s){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",s.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(s.toggleAccordionBtn),onTogglePanel:s.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",s.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",s.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$2k,[["render",_sfc_render$29]]),_sfc_main$2j={name:"VsAddress",status:"prototype",release:"0.1.0",components:{VsIcon}},_hoisted_1$1M={class:"vs-address","data-test":"vs-address"},_hoisted_2$1b={class:"vs-address__address-box"};function _sfc_render$28(e,n,t,r,a,s){const i=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1M,[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$2j,[["render",_sfc_render$28]]),_sfc_main$2i={name:"VsAlert",status:"prototype",release:"0.1.0",components:{VsIcon}},_hoisted_1$1L={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$H={class:"vs-alert__content"};function _sfc_render$27(e,n,t,r,a,s){const i=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1L,[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$H,[vue.renderSlot(e.$slots,"default")])])])}const Alert=_export_sfc(_sfc_main$2i,[["render",_sfc_render$27]]),_sfc_main$2h={name:"VsCol",status:"prototype",release:"0.1.0",components:{BCol:bootstrapVueNext.BCol}};function _sfc_render$26(e,n,t,r,a,s){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$2h,[["render",_sfc_render$26]]),_sfc_main$2g={name:"VsRow",status:"prototype",release:"0.0.1"};function _sfc_render$25(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("div",vue.mergeProps({class:"row"},e.$attrs),[vue.renderSlot(e.$slots,"default")],16)}const VsRow=_export_sfc(_sfc_main$2g,[["render",_sfc_render$25]]),_sfc_main$2f={name:"VsContainer",status:"prototype",release:"0.1.0",components:{BContainer:bootstrapVueNext.BContainer}};function _sfc_render$24(e,n,t,r,a,s){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$2f,[["render",_sfc_render$24]]),_sfc_main$2e={name:"VsRichTextWrapper",status:"prototype",release:"0.0.1",props:{variant:{type:String,default:"normal",validator:e=>e.match(/(normal|lead)/)}}};function _sfc_render$23(e,n,t,r,a,s){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$2e,[["render",_sfc_render$23]]),_sfc_main$2d={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$1K=["id"],_hoisted_2$19={class:"vs-article__content"};function _sfc_render$22(e,n,t,r,a,s){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$1K)]),_: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$2d,[["render",_sfc_render$22]]),_sfc_main$2c={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$21(e,n,t,r,a,s){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",s.sidebarAlignClass]),"data-test":"vs-article-section"},[vue.createVNode(c,null,{default:vue.withCtx(()=>[s.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:s.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$2c,[["render",_sfc_render$21]]),_sfc_main$2b={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$20(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-article-sidebar",s.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$2b,[["render",_sfc_render$20]]),_hoisted_1$1J={class:"vs-back-to-top","data-test":"vs-back-to-top"},_sfc_main$2a={__name:"BackToTop",props:{buttonText:{type:String,required:!0},offset:{type:Number,default:100}},setup(e){const n=e,t=vue.ref(!1),r=()=>{const s=document.documentElement;(window.scrollY||s.scrollTop)-(s.clientTop||0)>n.offset?t.value=!0:t.value=!1},a=s=>{window.scroll({top:0,behavior:"smooth"}),s.target.blur()};return window.addEventListener("scroll",r),(s,i)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1J,[t.value?(vue.openBlock(),vue.createBlock(VsButton,{key:0,icon:"arrow-up","icon-only":"",variant:"secondary",onClick:a},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(n.buttonText),1)]),_:1})):vue.createCommentVNode("",!0)]))}},_hoisted_1$1I={class:"vs-badge","data-test":"vs-badge"},_sfc_main$29={__name:"VsBadge",setup(e){return(n,t)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1I,[vue.createVNode(vue.unref(bootstrapVueNext.BBadge),null,{default:vue.withCtx(()=>[vue.renderSlot(n.$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,n,t,r=!1){let a="";if(a=`${e}=${n};`,a+="path=/;",t&&!r){const s=new Date;s.setFullYear(s.getFullYear()+1),a+=`expires=${s};`}document.cookie=a}}},_sfc_main$28={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,n,t,r,a,s){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:s.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$28,[["render",_sfc_render$1$]]),_sfc_main$27={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={class:"vs-blog-details__date"},_hoisted_4$G={class:"vs-blog-details__read-time"};function _sfc_render$1_(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1G,[vue.createElementVNode("span",_hoisted_2$17,[vue.createTextVNode(vue.toDisplayString(t.blogAuthor)+" ",1),n[0]||(n[0]=vue.createElementVNode("span",{class:"vs-blog-details__divider"},"·",-1)),vue.createElementVNode("span",_hoisted_3$U,vue.toDisplayString(t.blogPublishDate),1)]),vue.createElementVNode("span",_hoisted_4$G,vue.toDisplayString(t.blogReadTime),1)])}const BlogDetails=_export_sfc(_sfc_main$27,[["render",_sfc_render$1_]]),_sfc_main$26={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$1Z(e,n,t,r,a,s){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$26,[["render",_sfc_render$1Z]]),_sfc_main$25={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$1Y(e,n,t,r,a,s){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$25,[["render",_sfc_render$1Y]]),_sfc_main$24={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 n=e.target.value;this.$emit("toggleChanged",n)},addTabClass(){this.groupTabbedInto=!0},removeTabClass(e){e.target.tagName!=="INPUT"&&(this.groupTabbedInto=!1)}}};function _sfc_render$1X(e,n,t,r,a,s){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":n[2]||(n[2]=p=>a.selected=p),"aria-describedby":f,name:"radios-btn-default",buttons:"",onChange:s.toggleChange,onFocusout:s.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:n[0]||(n[0]=vue.withKeys((...v)=>s.addTabClass&&s.addTabClass(...v),["tab"])),"onFocus`out":n[1]||(n[1]=(...v)=>s.removeTabClass&&s.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$24,[["render",_sfc_render$1X]]),srcSetMixin={computed:{fullSrcSet(){return`
|
|
27
|
+
}`;var Ve=$i(function(){return Be(N,ve+"return "+X).apply(t,$)});if(Ve.source=X,qa(Ve))throw Ve;return Ve}function Ch(o){return Ie(o).toLowerCase()}function Sh(o){return Ie(o).toUpperCase()}function wh(o,u,h){if(o=Ie(o),o&&(h||u===t))return Ls(o);if(!o||!(u=pt(u)))return o;var _=xt(o),S=xt(u),N=Ms(_,S),$=Fs(_,S)+1;return Xt(_,N,$).join("")}function kh(o,u,h){if(o=Ie(o),o&&(h||u===t))return o.slice(0,qs(o)+1);if(!o||!(u=pt(u)))return o;var _=xt(o),S=Fs(_,xt(u))+1;return Xt(_,0,S).join("")}function Eh(o,u,h){if(o=Ie(o),o&&(h||u===t))return o.replace(qr,"");if(!o||!(u=pt(u)))return o;var _=xt(o),S=Ms(_,xt(u));return Xt(_,S).join("")}function xh(o,u){var h=se,_=z;if(Ge(u)){var S="separator"in u?u.separator:S;h="length"in u?xe(u.length):h,_="omission"in u?pt(u.omission):_}o=Ie(o);var N=o.length;if(hn(o)){var $=xt(o);N=$.length}if(h>=N)return o;var D=h-vn(_);if(D<1)return _;var F=$?Xt($,0,D).join(""):o.slice(0,D);if(S===t)return F+_;if($&&(D+=F.length-D),Ga(S)){if(o.slice(D).search(S)){var Y,J=F;for(S.global||(S=sa(S.source,Ie(ns.exec(S))+"g")),S.lastIndex=0;Y=S.exec(J);)var X=Y.index;F=F.slice(0,X===t?D:X)}}else if(o.indexOf(pt(S),D)!=D){var de=F.lastIndexOf(S);de>-1&&(F=F.slice(0,de))}return F+_}function Vh(o){return o=Ie(o),o&&Ri.test(o)?o.replace(Za,tu):o}var Nh=Sn(function(o,u,h){return o+(h?" ":"")+u.toUpperCase()}),ja=$o("toUpperCase");function Pi(o,u,h){return o=Ie(o),u=h?t:u,u===t?Jl(o)?au(o):Ul(o):o.match(u)||[]}var $i=Ne(function(o,u){try{return dt(o,t,u)}catch(h){return qa(h)?h:new ke(h)}}),Ah=Lt(function(o,u){return _t(u,function(h){h=Ot(h),It(o,h,Fa(o[h],o))}),o});function Ph(o){var u=o==null?0:o.length,h=_e();return o=u?qe(o,function(_){if(typeof _[1]!="function")throw new yt(i);return[h(_[0]),_[1]]}):[],Ne(function(_){for(var S=-1;++S<u;){var N=o[S];if(dt(N[0],this,_))return dt(N[1],this,_)}})}function $h(o){return tc(Ct(o,p))}function za(o){return function(){return o}}function Th(o,u){return o==null||o!==o?u:o}var Oh=Oo(),Dh=Oo(!0);function ct(o){return o}function Ka(o){return lo(typeof o=="function"?o:Ct(o,p))}function Bh(o){return co(Ct(o,p))}function Ih(o,u){return fo(o,Ct(u,p))}var Rh=Ne(function(o,u){return function(h){return Dn(h,o,u)}}),Lh=Ne(function(o,u){return function(h){return Dn(o,h,u)}});function Ya(o,u,h){var _=Xe(u),S=fr(u,_);h==null&&!(Ge(u)&&(S.length||!_.length))&&(h=u,u=o,o=this,S=fr(u,Xe(u)));var N=!(Ge(h)&&"chain"in h)||!!h.chain,$=Ft(o);return _t(S,function(D){var F=u[D];o[D]=F,$&&(o.prototype[D]=function(){var Y=this.__chain__;if(N||Y){var J=o(this.__wrapped__),X=J.__actions__=it(this.__actions__);return X.push({func:F,args:arguments,thisArg:o}),J.__chain__=Y,J}return F.apply(o,jt([this.value()],arguments))})}),o}function Mh(){return et._===this&&(et._=cu),this}function Ja(){}function Fh(o){return o=xe(o),Ne(function(u){return po(u,o)})}var Uh=Va(qe),qh=Va(Os),Gh=Va(Xr);function Ti(o){return Da(o)?Zr(Ot(o)):_c(o)}function Wh(o){return function(u){return o==null?t:on(o,u)}}var Hh=Bo(),jh=Bo(!0);function Qa(){return[]}function Xa(){return!1}function zh(){return{}}function Kh(){return""}function Yh(){return!0}function Jh(o,u){if(o=xe(o),o<1||o>T)return[];var h=ne,_=nt(o,ne);u=_e(u),o-=ne;for(var S=na(_,u);++h<o;)u(h);return S}function Qh(o){return Ee(o)?qe(o,Ot):ht(o)?[o]:it(Qo(Ie(o)))}function Xh(o){var u=++lu;return Ie(o)+u}var Zh=_r(function(o,u){return o+u},0),ev=Na("ceil"),tv=_r(function(o,u){return o/u},1),nv=Na("floor");function rv(o){return o&&o.length?dr(o,ct,pa):t}function av(o,u){return o&&o.length?dr(o,_e(u,2),pa):t}function sv(o){return Is(o,ct)}function ov(o,u){return Is(o,_e(u,2))}function iv(o){return o&&o.length?dr(o,ct,ga):t}function lv(o,u){return o&&o.length?dr(o,_e(u,2),ga):t}var uv=_r(function(o,u){return o*u},1),cv=Na("round"),dv=_r(function(o,u){return o-u},0);function fv(o){return o&&o.length?ta(o,ct):0}function pv(o,u){return o&&o.length?ta(o,_e(u,2)):0}return k.after=Bf,k.ary=li,k.assign=Sp,k.assignIn=wi,k.assignInWith=$r,k.assignWith=wp,k.at=kp,k.before=ui,k.bind=Fa,k.bindAll=Ah,k.bindKey=ci,k.castArray=zf,k.chain=si,k.chunk=td,k.compact=nd,k.concat=rd,k.cond=Ph,k.conforms=$h,k.constant=za,k.countBy=ff,k.create=Ep,k.curry=di,k.curryRight=fi,k.debounce=hi,k.defaults=xp,k.defaultsDeep=Vp,k.defer=If,k.delay=Rf,k.difference=ad,k.differenceBy=sd,k.differenceWith=od,k.drop=id,k.dropRight=ld,k.dropRightWhile=ud,k.dropWhile=cd,k.fill=dd,k.filter=hf,k.flatMap=gf,k.flatMapDeep=_f,k.flatMapDepth=yf,k.flatten=ti,k.flattenDeep=fd,k.flattenDepth=pd,k.flip=Lf,k.flow=Oh,k.flowRight=Dh,k.fromPairs=hd,k.functions=Dp,k.functionsIn=Bp,k.groupBy=bf,k.initial=md,k.intersection=gd,k.intersectionBy=_d,k.intersectionWith=yd,k.invert=Rp,k.invertBy=Lp,k.invokeMap=Sf,k.iteratee=Ka,k.keyBy=wf,k.keys=Xe,k.keysIn=ut,k.map=Er,k.mapKeys=Fp,k.mapValues=Up,k.matches=Bh,k.matchesProperty=Ih,k.memoize=Vr,k.merge=qp,k.mergeWith=ki,k.method=Rh,k.methodOf=Lh,k.mixin=Ya,k.negate=Nr,k.nthArg=Fh,k.omit=Gp,k.omitBy=Wp,k.once=Mf,k.orderBy=kf,k.over=Uh,k.overArgs=Ff,k.overEvery=qh,k.overSome=Gh,k.partial=Ua,k.partialRight=vi,k.partition=Ef,k.pick=Hp,k.pickBy=Ei,k.property=Ti,k.propertyOf=Wh,k.pull=wd,k.pullAll=ri,k.pullAllBy=kd,k.pullAllWith=Ed,k.pullAt=xd,k.range=Hh,k.rangeRight=jh,k.rearg=Uf,k.reject=Nf,k.remove=Vd,k.rest=qf,k.reverse=La,k.sampleSize=Pf,k.set=zp,k.setWith=Kp,k.shuffle=$f,k.slice=Nd,k.sortBy=Df,k.sortedUniq=Bd,k.sortedUniqBy=Id,k.split=gh,k.spread=Gf,k.tail=Rd,k.take=Ld,k.takeRight=Md,k.takeRightWhile=Fd,k.takeWhile=Ud,k.tap=nf,k.throttle=Wf,k.thru=kr,k.toArray=bi,k.toPairs=xi,k.toPairsIn=Vi,k.toPath=Qh,k.toPlainObject=Si,k.transform=Yp,k.unary=Hf,k.union=qd,k.unionBy=Gd,k.unionWith=Wd,k.uniq=Hd,k.uniqBy=jd,k.uniqWith=zd,k.unset=Jp,k.unzip=Ma,k.unzipWith=ai,k.update=Qp,k.updateWith=Xp,k.values=En,k.valuesIn=Zp,k.without=Kd,k.words=Pi,k.wrap=jf,k.xor=Yd,k.xorBy=Jd,k.xorWith=Qd,k.zip=Xd,k.zipObject=Zd,k.zipObjectDeep=ef,k.zipWith=tf,k.entries=xi,k.entriesIn=Vi,k.extend=wi,k.extendWith=$r,Ya(k,k),k.add=Zh,k.attempt=$i,k.camelCase=rh,k.capitalize=Ni,k.ceil=ev,k.clamp=eh,k.clone=Kf,k.cloneDeep=Jf,k.cloneDeepWith=Qf,k.cloneWith=Yf,k.conformsTo=Xf,k.deburr=Ai,k.defaultTo=Th,k.divide=tv,k.endsWith=ah,k.eq=Nt,k.escape=sh,k.escapeRegExp=oh,k.every=pf,k.find=vf,k.findIndex=Zo,k.findKey=Np,k.findLast=mf,k.findLastIndex=ei,k.findLastKey=Ap,k.floor=nv,k.forEach=oi,k.forEachRight=ii,k.forIn=Pp,k.forInRight=$p,k.forOwn=Tp,k.forOwnRight=Op,k.get=Wa,k.gt=Zf,k.gte=ep,k.has=Ip,k.hasIn=Ha,k.head=ni,k.identity=ct,k.includes=Cf,k.indexOf=vd,k.inRange=th,k.invoke=Mp,k.isArguments=cn,k.isArray=Ee,k.isArrayBuffer=tp,k.isArrayLike=lt,k.isArrayLikeObject=He,k.isBoolean=np,k.isBuffer=Zt,k.isDate=rp,k.isElement=ap,k.isEmpty=sp,k.isEqual=op,k.isEqualWith=ip,k.isError=qa,k.isFinite=lp,k.isFunction=Ft,k.isInteger=mi,k.isLength=Ar,k.isMap=gi,k.isMatch=up,k.isMatchWith=cp,k.isNaN=dp,k.isNative=fp,k.isNil=hp,k.isNull=pp,k.isNumber=_i,k.isObject=Ge,k.isObjectLike=We,k.isPlainObject=Fn,k.isRegExp=Ga,k.isSafeInteger=vp,k.isSet=yi,k.isString=Pr,k.isSymbol=ht,k.isTypedArray=kn,k.isUndefined=mp,k.isWeakMap=gp,k.isWeakSet=_p,k.join=bd,k.kebabCase=ih,k.last=wt,k.lastIndexOf=Cd,k.lowerCase=lh,k.lowerFirst=uh,k.lt=yp,k.lte=bp,k.max=rv,k.maxBy=av,k.mean=sv,k.meanBy=ov,k.min=iv,k.minBy=lv,k.stubArray=Qa,k.stubFalse=Xa,k.stubObject=zh,k.stubString=Kh,k.stubTrue=Yh,k.multiply=uv,k.nth=Sd,k.noConflict=Mh,k.noop=Ja,k.now=xr,k.pad=ch,k.padEnd=dh,k.padStart=fh,k.parseInt=ph,k.random=nh,k.reduce=xf,k.reduceRight=Vf,k.repeat=hh,k.replace=vh,k.result=jp,k.round=cv,k.runInContext=L,k.sample=Af,k.size=Tf,k.snakeCase=mh,k.some=Of,k.sortedIndex=Ad,k.sortedIndexBy=Pd,k.sortedIndexOf=$d,k.sortedLastIndex=Td,k.sortedLastIndexBy=Od,k.sortedLastIndexOf=Dd,k.startCase=_h,k.startsWith=yh,k.subtract=dv,k.sum=fv,k.sumBy=pv,k.template=bh,k.times=Jh,k.toFinite=Ut,k.toInteger=xe,k.toLength=Ci,k.toLower=Ch,k.toNumber=kt,k.toSafeInteger=Cp,k.toString=Ie,k.toUpper=Sh,k.trim=wh,k.trimEnd=kh,k.trimStart=Eh,k.truncate=xh,k.unescape=Vh,k.uniqueId=Xh,k.upperCase=Nh,k.upperFirst=ja,k.each=oi,k.eachRight=ii,k.first=ni,Ya(k,function(){var o={};return $t(k,function(u,h){Re.call(k.prototype,h)||(o[h]=u)}),o}(),{chain:!1}),k.VERSION=r,_t(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){k[o].placeholder=k}),_t(["drop","take"],function(o,u){Pe.prototype[o]=function(h){h=h===t?1:Je(xe(h),0);var _=this.__filtered__&&!u?new Pe(this):this.clone();return _.__filtered__?_.__takeCount__=nt(h,_.__takeCount__):_.__views__.push({size:nt(h,ne),type:o+(_.__dir__<0?"Right":"")}),_},Pe.prototype[o+"Right"]=function(h){return this.reverse()[o](h).reverse()}}),_t(["filter","map","takeWhile"],function(o,u){var h=u+1,_=h==ae||h==me;Pe.prototype[o]=function(S){var N=this.clone();return N.__iteratees__.push({iteratee:_e(S,3),type:h}),N.__filtered__=N.__filtered__||_,N}}),_t(["head","last"],function(o,u){var h="take"+(u?"Right":"");Pe.prototype[o]=function(){return this[h](1).value()[0]}}),_t(["initial","tail"],function(o,u){var h="drop"+(u?"":"Right");Pe.prototype[o]=function(){return this.__filtered__?new Pe(this):this[h](1)}}),Pe.prototype.compact=function(){return this.filter(ct)},Pe.prototype.find=function(o){return this.filter(o).head()},Pe.prototype.findLast=function(o){return this.reverse().find(o)},Pe.prototype.invokeMap=Ne(function(o,u){return typeof o=="function"?new Pe(this):this.map(function(h){return Dn(h,o,u)})}),Pe.prototype.reject=function(o){return this.filter(Nr(_e(o)))},Pe.prototype.slice=function(o,u){o=xe(o);var h=this;return h.__filtered__&&(o>0||u<0)?new Pe(h):(o<0?h=h.takeRight(-o):o&&(h=h.drop(o)),u!==t&&(u=xe(u),h=u<0?h.dropRight(-u):h.take(u-o)),h)},Pe.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Pe.prototype.toArray=function(){return this.take(ne)},$t(Pe.prototype,function(o,u){var h=/^(?:filter|find|map|reject)|While$/.test(u),_=/^(?:head|last)$/.test(u),S=k[_?"take"+(u=="last"?"Right":""):u],N=_||/^find/.test(u);S&&(k.prototype[u]=function(){var $=this.__wrapped__,D=_?[1]:arguments,F=$ instanceof Pe,Y=D[0],J=F||Ee($),X=function(Ae){var $e=S.apply(k,jt([Ae],D));return _&&de?$e[0]:$e};J&&h&&typeof Y=="function"&&Y.length!=1&&(F=J=!1);var de=this.__chain__,ve=!!this.__actions__.length,be=N&&!de,Ve=F&&!ve;if(!N&&J){$=Ve?$:new Pe(this);var Ce=o.apply($,D);return Ce.__actions__.push({func:kr,args:[X],thisArg:t}),new bt(Ce,de)}return be&&Ve?o.apply(this,D):(Ce=this.thru(X),be?_?Ce.value()[0]:Ce.value():Ce)})}),_t(["pop","push","shift","sort","splice","unshift"],function(o){var u=zn[o],h=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",_=/^(?:pop|shift)$/.test(o);k.prototype[o]=function(){var S=arguments;if(_&&!this.__chain__){var N=this.value();return u.apply(Ee(N)?N:[],S)}return this[h](function($){return u.apply(Ee($)?$:[],S)})}}),$t(Pe.prototype,function(o,u){var h=k[u];if(h){var _=h.name+"";Re.call(yn,_)||(yn[_]=[]),yn[_].push({name:u,func:h})}}),yn[gr(t,w).name]=[{name:"wrapper",func:t}],Pe.prototype.clone=xu,Pe.prototype.reverse=Vu,Pe.prototype.value=Nu,k.prototype.at=rf,k.prototype.chain=af,k.prototype.commit=sf,k.prototype.next=of,k.prototype.plant=uf,k.prototype.reverse=cf,k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=df,k.prototype.first=k.prototype.head,Vn&&(k.prototype[Vn]=lf),k},mn=su();tn?((tn.exports=mn)._=mn,Kr._=mn):et._=mn}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;const _sfc_main$2l={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$2a(e,n,t,r,a,s){return vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(s.type),{class:vue.normalizeClass(["vs-heading",s.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",s.subHeadingClass])},[vue.renderSlot(e.$slots,"sub-heading")],2)):vue.createCommentVNode("",!0)]),_:3},8,["class"])}const VsHeading=_export_sfc(_sfc_main$2l,[["render",_sfc_render$2a]]),_sfc_main$2k={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$29(e,n,t,r,a,s){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",s.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(s.toggleAccordionBtn),onTogglePanel:s.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",s.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",s.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$2k,[["render",_sfc_render$29]]),_sfc_main$2j={name:"VsAddress",status:"prototype",release:"0.1.0",components:{VsIcon}},_hoisted_1$1M={class:"vs-address","data-test":"vs-address"},_hoisted_2$1b={class:"vs-address__address-box"};function _sfc_render$28(e,n,t,r,a,s){const i=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1M,[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$2j,[["render",_sfc_render$28]]),_sfc_main$2i={name:"VsAlert",status:"prototype",release:"0.1.0",components:{VsIcon}},_hoisted_1$1L={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$H={class:"vs-alert__content"};function _sfc_render$27(e,n,t,r,a,s){const i=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1L,[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$H,[vue.renderSlot(e.$slots,"default")])])])}const Alert=_export_sfc(_sfc_main$2i,[["render",_sfc_render$27]]),_sfc_main$2h={name:"VsCol",status:"prototype",release:"0.1.0",components:{BCol:bootstrapVueNext.BCol}};function _sfc_render$26(e,n,t,r,a,s){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$2h,[["render",_sfc_render$26]]),_sfc_main$2g={name:"VsRow",status:"prototype",release:"0.0.1"};function _sfc_render$25(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("div",vue.mergeProps({class:"row"},e.$attrs),[vue.renderSlot(e.$slots,"default")],16)}const VsRow=_export_sfc(_sfc_main$2g,[["render",_sfc_render$25]]),_sfc_main$2f={name:"VsContainer",status:"prototype",release:"0.1.0",components:{BContainer:bootstrapVueNext.BContainer}};function _sfc_render$24(e,n,t,r,a,s){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$2f,[["render",_sfc_render$24]]),_sfc_main$2e={name:"VsRichTextWrapper",status:"prototype",release:"0.0.1",props:{variant:{type:String,default:"normal",validator:e=>e.match(/(normal|lead)/)}}};function _sfc_render$23(e,n,t,r,a,s){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$2e,[["render",_sfc_render$23]]),_sfc_main$2d={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$1K=["id"],_hoisted_2$19={class:"vs-article__content"};function _sfc_render$22(e,n,t,r,a,s){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$1K)]),_: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$2d,[["render",_sfc_render$22]]),_sfc_main$2c={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$21(e,n,t,r,a,s){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",s.sidebarAlignClass]),"data-test":"vs-article-section"},[vue.createVNode(c,null,{default:vue.withCtx(()=>[s.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:s.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$2c,[["render",_sfc_render$21]]),_sfc_main$2b={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$20(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-article-sidebar",s.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$2b,[["render",_sfc_render$20]]),_hoisted_1$1J={class:"vs-back-to-top","data-test":"vs-back-to-top"},_sfc_main$2a={__name:"BackToTop",props:{buttonText:{type:String,required:!0},offset:{type:Number,default:100}},setup(e){const n=e,t=vue.ref(!1),r=()=>{const s=document.documentElement;(window.scrollY||s.scrollTop)-(s.clientTop||0)>n.offset?t.value=!0:t.value=!1},a=s=>{window.scroll({top:0,behavior:"smooth"}),s.target.blur()};return window.addEventListener("scroll",r),(s,i)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1J,[t.value?(vue.openBlock(),vue.createBlock(VsButton,{key:0,icon:"arrow-up","icon-only":"",variant:"secondary",onClick:a},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(n.buttonText),1)]),_:1})):vue.createCommentVNode("",!0)]))}},_hoisted_1$1I={class:"vs-badge","data-test":"vs-badge"},_sfc_main$29={__name:"VsBadge",setup(e){return(n,t)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1I,[vue.createVNode(vue.unref(bootstrapVueNext.BBadge),null,{default:vue.withCtx(()=>[vue.renderSlot(n.$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,n,t,r=!1){let a="";if(a=`${e}=${n};`,a+="path=/;",t&&!r){const s=new Date;s.setFullYear(s.getFullYear()+1),a+=`expires=${s};`}document.cookie=a}}},_sfc_main$28={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,n,t,r,a,s){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:"warning",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:s.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$28,[["render",_sfc_render$1$]]),_sfc_main$27={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={class:"vs-blog-details__date"},_hoisted_4$G={class:"vs-blog-details__read-time"};function _sfc_render$1_(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1G,[vue.createElementVNode("span",_hoisted_2$17,[vue.createTextVNode(vue.toDisplayString(t.blogAuthor)+" ",1),n[0]||(n[0]=vue.createElementVNode("span",{class:"vs-blog-details__divider"},"·",-1)),vue.createElementVNode("span",_hoisted_3$U,vue.toDisplayString(t.blogPublishDate),1)]),vue.createElementVNode("span",_hoisted_4$G,vue.toDisplayString(t.blogReadTime),1)])}const BlogDetails=_export_sfc(_sfc_main$27,[["render",_sfc_render$1_]]),_sfc_main$26={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$1Z(e,n,t,r,a,s){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$26,[["render",_sfc_render$1Z]]),_sfc_main$25={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$1Y(e,n,t,r,a,s){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$25,[["render",_sfc_render$1Y]]),_sfc_main$24={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 n=e.target.value;this.$emit("toggleChanged",n)},addTabClass(){this.groupTabbedInto=!0},removeTabClass(e){e.target.tagName!=="INPUT"&&(this.groupTabbedInto=!1)}}};function _sfc_render$1X(e,n,t,r,a,s){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":n[2]||(n[2]=p=>a.selected=p),"aria-describedby":f,name:"radios-btn-default",buttons:"",onChange:s.toggleChange,onFocusout:s.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:n[0]||(n[0]=vue.withKeys((...v)=>s.addTabClass&&s.addTabClass(...v),["tab"])),"onFocus`out":n[1]||(n[1]=(...v)=>s.removeTabClass&&s.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$24,[["render",_sfc_render$1X]]),srcSetMixin={computed:{fullSrcSet(){return`
|
|
28
28
|
${this.specificImgSize("xs")} 300w,
|
|
29
29
|
${this.specificImgSize("sm")} 600w,
|
|
30
30
|
${this.specificImgSize("md")} 1200w,
|
|
31
31
|
${this.specificImgSize("lg")} 2048w`}},methods:{specificImgSize(e){if(!this.src)return"";let n="?";return this.src.includes("?")&&(n="&"),`${this.src}${n}size=${e}`}}},_sfc_main$23={name:"VsImg",status:"prototype",release:"0.0.1",components:{BImg:bootstrapVueNext.BImg,VsIcon},mixins:[srcSetMixin],props:{src:{type:String,required:!0},lowResImage:{type:String,default:null},alt:{type:String,default:""},fluid:{type:Boolean,default:!1},fluidGrow:{type:Boolean,default:!1},useGenericLqip:{type:Boolean,default:!1},useLazyLoading:{type:Boolean,default:!0}},computed:{imgStyle(){return this.useGenericLqip?null:{backgroundImage:`url(${this.specificImgSize("xxs")})`}}}};function _sfc_render$1W(e,n,t,r,a,s){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("BImg");return vue.openBlock(),vue.createBlock(l,vue.mergeProps(e.$attrs,{src:t.src,alt:t.alt,fluid:t.fluid,"fluid-grow":t.fluidGrow,loading:t.useLazyLoading?"lazy":"eager",style:s.imgStyle,class:["low-res-img",t.useGenericLqip?"generic-lqip":""],srcset:e.$attrs.srcset?e.$attrs.srcset:e.fullSrcSet,"low-res-image":e.specificImgSize("xxs"),sizes:"(min-width: 768px) 75vw, 100vw"}),{default:vue.withCtx(()=>[vue.createVNode(i,{name:"user",size:"lg"}),vue.renderSlot(e.$slots,"default")]),_:3},16,["src","alt","fluid","fluid-grow","loading","style","class","srcset","low-res-image"])}const VsImg=_export_sfc(_sfc_main$23,[["render",_sfc_render$1W]]),products=[{key:"accommodation",text:"Accommodation",value:"acco"},{key:"eventsAndFestivals",text:"Events & Festivals",value:"even"},{key:"foodAndDrink",text:"Food & Drink",value:"cate"},{key:"thingsToDo",text:"Things to do",value:"acti,attr,reta"},{key:"tours",text:"Tours",value:"tour"}],paths={acco:"accommodation","acti,attr,reta":"see-do",cate:"food-drink",even:"events",tour:"tours"},monthsEnglish=[{label:"January",value:"january"},{label:"February",value:"february"},{label:"March",value:"march"},{label:"April",value:"april"},{label:"May",value:"may"},{label:"June",value:"june"},{label:"July",value:"july"},{label:"August",value:"august"},{label:"September",value:"september"},{label:"October",value:"october"},{label:"November",value:"november"},{label:"December",value:"december"}],dmoUrls=["visitabdn.com","wildaboutargyll.co.uk","ayrshireandarran.com","visitarran.com","dundee.com/visit","visitangus.com","edinburgh.org","visiteastlothian.org","visitwestlothian.co.uk","visitmidlothian.co.uk","welcometofife.com","visitglasgow.com","visitlanarkshire.com","discoverinverclyde.com","paisley.is","west-dunbarton.gov.uk/leisure-parks-events/tourism-and-visitor-attractions","eastdunbarton.gov.uk/residents/tourism-visited-exploreed/places-visit-east-dunbartonshire","visitinvernesslochness.com","nairnscotland.co.uk","outdoorcapital.co.uk","westhighlandpeninsulas.com/uk","roadtotheisles.com","discoverglencoe.scot","visitcairngorms.com","badenochstorylands.com","grantownonline.com","northcoast500.com","venture-north.co.uk","discoverassynt.co.uk","nwhgeopark.com","visitwester-ross.com","wrb.scot","visitdornoch.com","easterrosspeninsula.com","black-isle.info","myskyetime.com","morayspeyside.com","yourstirling.com","visitfalkirk.com","discoverclackmannanshire.com","lochlomond-trossachs.org","accessforthvalley.com","orkney.com","visitouterhebrides.co.uk","highlandperthshire.org","perthcityandtowns.co.uk","scotlandstartshere.com","shetland.org/visit","peoplemakeglasgow.com"];let currentURL="";typeof window<"u"&&(currentURL=window.location.href);const dmoAnalyticsLogic=e=>{let n=!1;const t=()=>!!currentURL.includes("/info"),r=s=>t()?{dmo_referral:s}:{type:"CMS referral",product:"Unclassified",dmo_referral:s};return(()=>{let s={};return e.srcElement.localName==="a"&&dmoUrls.forEach(i=>{e.target.href.includes(i)&&(n=!0,s=r("True"))}),n||(s=r("False")),s})()},_sfc_main$22={name:"VsLink",status:"prototype",release:"0.0.2",components:{VsIcon},mixins:[dataLayerMixin],props:{href:{type:String,default:null},type:{type:String,default:"default",validator:e=>e.match(/(default|external|internal|download)/)},variant:{type:String,default:"primary",validator:e=>e.match(/(primary|on-dark)/)},iconSize:{type:String,default:"xxs",validator:e=>e.match(/(xxs|xs|sm|md|lg|xl)/)},disabled:{type:Boolean,default:!1},dataLayerValue:{type:String,default:null}},computed:{variantClass(){return`vs-link--variant-${this.variant}`}},methods:{clickHandler(e){e.preventDefault(),this.dataLayerValue?this.createDataLayerObject(this.dataLayerValue,e,this.href):this.type==="external"?(this.createDataLayerObject("cmsReferral",{referral_location:e.target.href,dmo_referral:dmoAnalyticsLogic(e).dmo_referral}),this.createDataLayerObject("externalLinkDataEvent",e,this.href)):this.createDataLayerObject("internalLinkDataEvent",e,this.href),setTimeout(()=>{this.navigateToUrl()},500)},navigateToUrl(){this.href!=="#"&&this.href!==null&&(window.location.href=this.href)},keyHandler(e){(e.keyCode===13||e.keyCode===32)&&(e.preventDefault(),this.clickHandler(e))}}},_hoisted_1$1E=["href","download","disabled","tabindex"];function _sfc_render$1V(e,n,t,r,a,s){const i=vue.resolveComponent("VsIcon");return vue.openBlock(),vue.createElementBlock("a",vue.mergeProps({class:["vs-link",[`vs-link--variant-${t.variant}`]],href:t.href,target:"_self",download:t.type==="download"?"true":null,disabled:t.disabled,tabindex:t.disabled?"-1":"0"},e.$attrs,{onClick:n[0]||(n[0]=l=>s.clickHandler(l)),onKeydown:n[1]||(n[1]=l=>s.keyHandler(l))}),[vue.renderSlot(e.$slots,"default"),t.type!=="default"?(vue.openBlock(),vue.createBlock(i,{key:0,name:`${t.type}-link`,variant:t.variant=="primary"?"primary":"inverse",size:t.iconSize,class:"ms-025 vs-link__icon"},null,8,["name","variant","size"])):vue.createCommentVNode("",!0)],16,_hoisted_1$1E)}const VsLink=_export_sfc(_sfc_main$22,[["render",_sfc_render$1V]]),_sfc_main$21={name:"VsCannedSearchProductCard",status:"prototype",release:"0.0.1",components:{VsImg,VsHeading,VsLink,VsCol},inject:["slideCols","visibleSlides"],provide(){return{slideVisible:this.isVisible}},props:{searchType:{type:String,default:""},imgSrc:{required:!0,type:String},title:{required:!0,type:String},inBodyDuration:{type:Object,default:null},description:{type:String,default:""},detailLink:{type:Object,required:!0},slideIndex:{type:String,required:!0}},computed:{modCardBody(){return this.searchType==="even"||this.searchType==="cate"?"card-body--short":""},useGenericLqip(){return this.searchType==="tour"}},methods:{isVisible(){const e=parseInt(this.slideIndex,10);return this.visibleSlides.indexOf(e)>=0}}},_hoisted_1$1D={class:"vs-product-card__image-container"},_hoisted_2$16={class:"vs-product-card__image-inner-container"},_hoisted_3$T={class:"vs-product-card__description"},_hoisted_4$F={key:0,class:"vs-product-card__description-inner"},_hoisted_5$t={class:"visually-hidden"},_hoisted_6$i={class:"vs-product-card__logos-container","data-chromatic":"ignore"};function _sfc_render$1U(e,n,t,r,a,s){const i=vue.resolveComponent("VsImg"),l=vue.resolveComponent("VsLink"),c=vue.resolveComponent("VsHeading"),d=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(d,{cols:s.slideCols.xs,sm:s.slideCols.sm,lg:s.slideCols.md,xl:s.slideCols.lg,class:"vs-carousel-slide__card","aria-disabled":!s.isVisible()},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["vs-product-card",s.isVisible()?"":"vs-product-card--disabled"]),"data-test":"vs-product-card"},[vue.createElementVNode("section",vue.mergeProps({class:"card"},e.$attrs),[vue.createElementVNode("div",_hoisted_1$1D,[vue.createElementVNode("div",_hoisted_2$16,[vue.createVNode(i,{src:t.imgSrc,alt:"",sizes:"(min-width: 768px) 50vw, 100vw","use-generic-lqip":s.useGenericLqip,class:"vs-product-card__img","data-test":"vs-product-card__img","data-chromatic":"ignore"},null,8,["src","use-generic-lqip"])]),vue.renderSlot(e.$slots,"vs-canned-search-badges")]),vue.createElementVNode("div",{class:vue.normalizeClass(["card-body",s.modCardBody])},[vue.createVNode(c,{level:"3","heading-style":"heading-xs",class:"card-title vs-product-card__title","data-test":"vs-product-card__title"},{default:vue.withCtx(()=>[vue.createVNode(l,{href:t.detailLink.link,class:"stretched-link vs-product-card__link","data-test":"vs-product-card__link",disabled:!s.isVisible()},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.title),1)]),_:1},8,["href","disabled"])]),_:1}),vue.renderSlot(e.$slots,"vs-canned-search-sub-heading"),vue.renderSlot(e.$slots,"vs-canned-search-star-rating"),vue.renderSlot(e.$slots,"vs-canned-search-categories"),vue.createElementVNode("div",_hoisted_3$T,[vue.renderSlot(e.$slots,"vs-canned-search-tour-info"),t.description?(vue.openBlock(),vue.createElementBlock("p",_hoisted_4$F,vue.toDisplayString(t.description),1)):vue.createCommentVNode("",!0),vue.createVNode(l,{href:t.detailLink.link,class:"vs-product-card__description-link",disabled:!s.isVisible()},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.detailLink.label)+" ",1),vue.createElementVNode("span",_hoisted_5$t,": "+vue.toDisplayString(t.title),1)]),_:1},8,["href","disabled"])])],2),vue.createElementVNode("div",_hoisted_6$i,[vue.renderSlot(e.$slots,"vs-canned-search-logos")])],16),vue.renderSlot(e.$slots,"vs-canned-search-summary")],2)]),_:3},8,["cols","sm","lg","xl","aria-disabled"])}const VsCannedSearchProductCard=_export_sfc(_sfc_main$21,[["render",_sfc_render$1U]]),_sfc_main$20={name:"VsCannedSearchStars",status:"prototype",release:"0.0.1",props:{min:{type:Number,default:null},max:{type:Number,default:null}}},_hoisted_1$1C={class:"vs-canned-search-stars","data-test":"vs-canned-search-stars"},_hoisted_2$15={key:0},_hoisted_3$S={key:1};function _sfc_render$1T(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1C,[t.min&&t.max&&t.min!==t.max?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$15,[n[0]||(n[0]=vue.createElementVNode("span",{class:"vs-canned-search-stars__star"}," ★ ",-1)),vue.createTextVNode(" "+vue.toDisplayString(t.min)+"-"+vue.toDisplayString(t.max),1)])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$S,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.min,i=>(vue.openBlock(),vue.createElementBlock("span",{key:i,class:"vs-canned-search-stars__star"}," ★ "))),128))]))])}const VsCannedSearchStars=_export_sfc(_sfc_main$20,[["render",_sfc_render$1T]]),_sfc_main$1$={name:"VsTooltip",status:"prototype",release:"0.0.1",components:{VsButton},directives:{"b-tooltip":bootstrapVueNext.vBTooltip},props:{title:{type:String,default:""},position:{type:String,default:"top",validator:e=>e.match(/(top|right|left|bottom)/)}}};function _sfc_render$1S(e,n,t,r,a,s){const i=vue.resolveComponent("VsButton"),l=vue.resolveDirective("b-tooltip");return vue.withDirectives((vue.openBlock(),vue.createBlock(i,vue.mergeProps(e.$attrs,{class:"vs-tooltip position-relative",title:t.title}),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16,["title"])),[[l,{placement:t.position}]])}const VsTooltip=_export_sfc(_sfc_main$1$,[["render",_sfc_render$1S]]),_sfc_main$1_={name:"VsCannedSearchLogos",status:"prototype",release:"0.0.1",components:{VsTooltip,VsImg},inject:["slideVisible"],props:{goodToGoLogo:{type:Object,default:null},safeTravelsLogo:{type:Object,default:null},awards:{type:Array,default:null},accessGuide:{type:Object,default:null}}},_hoisted_1$1B={class:"vs-canned-search-logos"};function _sfc_render$1R(e,n,t,r,a,s){const i=vue.resolveComponent("VsImg"),l=vue.resolveComponent("VsTooltip");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1B,[t.goodToGoLogo?(vue.openBlock(),vue.createBlock(l,{key:0,title:t.goodToGoLogo.name,href:"#",class:"p-0",variant:"transparent","data-test":"vs-canned-search-logos__good-to-go",disabled:!s.slideVisible(),tabindex:s.slideVisible()?"0":"-1"},{default:vue.withCtx(()=>[vue.createVNode(i,{alt:t.goodToGoLogo.name,src:t.goodToGoLogo.image,class:"vs-canned-search-logos__logo"},null,8,["alt","src"])]),_:1},8,["title","disabled","tabindex"])):vue.createCommentVNode("",!0),t.safeTravelsLogo?(vue.openBlock(),vue.createBlock(l,{key:1,title:t.safeTravelsLogo.name,href:"#",class:"p-0",variant:"transparent","data-test":"vs-canned-search-logos__safe-travels",disabled:!s.slideVisible(),tabindex:s.slideVisible()?"0":"-1"},{default:vue.withCtx(()=>[vue.createVNode(i,{alt:t.safeTravelsLogo.name,src:t.safeTravelsLogo.image,class:"vs-canned-search-logos__logo"},null,8,["alt","src"])]),_:1},8,["title","disabled","tabindex"])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.awards,c=>(vue.openBlock(),vue.createBlock(l,{title:c.name,key:c.id,href:"#",class:"p-0",variant:"transparent",disabled:!s.slideVisible(),tabindex:s.slideVisible()?"0":"-1"},{default:vue.withCtx(()=>[vue.createVNode(i,{src:c.image,alt:c.name,class:"vs-canned-search-logos__logo","data-test":"vs-canned-search-logos__award-logo"},null,8,["src","alt"])]),_:2},1032,["title","disabled","tabindex"]))),128)),t.accessGuide?(vue.openBlock(),vue.createBlock(l,{key:2,title:t.accessGuide.name,href:"#",variant:"transparent",class:"vs-canned-search-logos__access p-0","data-test":"vs-canned-search-logos__access-guide",disabled:!s.slideVisible(),tabindex:s.slideVisible()?"0":"-1"},{default:vue.withCtx(()=>[vue.createVNode(i,{src:t.accessGuide.image,alt:t.accessGuide.name,class:"vs-canned-search-logos__logo"},null,8,["src","alt"])]),_:1},8,["title","disabled","tabindex"])):vue.createCommentVNode("",!0)])}const VsCannedSearchLogos=_export_sfc(_sfc_main$1_,[["render",_sfc_render$1R]]),_sfc_main$1Z={name:"VsCannedSearchCategories",status:"prototype",release:"0.0.1",props:{categories:{type:Array,default:null}},computed:{transformedCategories(){return this.categories?this.categories.slice(0,3).map(e=>e.name).join(" | "):""}}},_hoisted_1$1A={class:"vs-canned-search-categories","data-test":"vs-canned-search-categories"};function _sfc_render$1Q(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1A,vue.toDisplayString(s.transformedCategories),1)}const VsCannedSearchCategories=_export_sfc(_sfc_main$1Z,[["render",_sfc_render$1Q]]),_sfc_main$1Y={name:"VsCannedSearchPrice",status:"prototype",release:"0.0.1",props:{price:{type:String,default:""},priceIntro:{type:String,default:""},priceOutro:{type:String,default:""}}},_hoisted_1$1z={class:"vs-canned-search-price"},_hoisted_2$14={key:0,class:"vs-canned-search-price__intro"},_hoisted_3$R={key:1,class:"vs-canned-search-price__main"},_hoisted_4$E={key:2,class:"vs-canned-search-price__outro"};function _sfc_render$1P(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1z,[t.priceIntro?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$14,vue.toDisplayString(t.priceIntro),1)):vue.createCommentVNode("",!0),t.price?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$R,vue.toDisplayString(t.price),1)):vue.createCommentVNode("",!0),t.priceOutro?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$E,vue.toDisplayString(t.priceOutro),1)):vue.createCommentVNode("",!0)])}const VsCannedSearchPrice=_export_sfc(_sfc_main$1Y,[["render",_sfc_render$1P]]),_sfc_main$1X={name:"VsCannedSearchDuration",status:"prototype",release:"0.0.1",props:{duration:{type:String,default:""},durationIntro:{type:String,default:""}}},_hoisted_1$1y={class:"vs-canned-search-duration"},_hoisted_2$13={key:0,class:"vs-canned-search-duration__intro"},_hoisted_3$Q={key:1,class:"vs-canned-search-duration__main"};function _sfc_render$1O(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1y,[t.durationIntro?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$13,vue.toDisplayString(t.durationIntro),1)):vue.createCommentVNode("",!0),t.duration?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$Q,vue.toDisplayString(t.duration),1)):vue.createCommentVNode("",!0)])}const VsCannedSearchDuration=_export_sfc(_sfc_main$1X,[["render",_sfc_render$1O]]),_sfc_main$1W={name:"VsCannedSearchSummaryBox",status:"prototype",release:"0.0.1",components:{VsContainer,VsRow,VsCol,VsLink},inject:["slideVisible"],props:{linkHref:{type:String,default:""},linkLabel:{type:String,default:""},linkType:{type:String,default:""},linkTitle:{type:String,default:""}}},_hoisted_1$1x=["disabled"],_hoisted_2$12={class:"visually-hidden"};function _sfc_render$1N(e,n,t,r,a,s){const i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsLink"),d=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("div",{class:"vs-canned-search-summary-box",disabled:!s.slideVisible()},[vue.createVNode(d,null,{default:vue.withCtx(()=>[e.$slots["vs-canned-search-summary-top"]&&e.$slots["vs-canned-search-summary-top"]()?(vue.openBlock(),vue.createBlock(l,{key:0},{default:vue.withCtx(()=>[vue.createVNode(i,{cols:"12",class:"vs-canned-search-summary-box__summary-item"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-summary-top")]),_:3})]),_:3})):vue.createCommentVNode("",!0),vue.createVNode(l,{class:"row--tall"},{default:vue.withCtx(()=>[e.$slots["vs-canned-search-summary-left"]&&e.$slots["vs-canned-search-summary-left"]()?(vue.openBlock(),vue.createBlock(i,{key:0,class:"vs-canned-search-summary-box__summary-item"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-summary-left")]),_:3})):vue.createCommentVNode("",!0),e.$slots["vs-canned-search-summary-centre"]&&e.$slots["vs-canned-search-summary-centre"]()?(vue.openBlock(),vue.createBlock(i,{key:1,class:"vs-canned-search-summary-box__summary-item"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-summary-centre")]),_:3})):vue.createCommentVNode("",!0),t.linkHref?(vue.openBlock(),vue.createBlock(i,{key:2,class:"vs-canned-search-summary-box__summary-item"},{default:vue.withCtx(()=>[vue.createVNode(c,{"data-test":"vs-canned-search-summary-box__link",href:t.linkHref,type:t.linkType.toLowerCase(),disabled:!s.slideVisible()},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.linkLabel)+" ",1),vue.createElementVNode("span",_hoisted_2$12,": "+vue.toDisplayString(t.linkTitle),1)]),_:1},8,["href","type","disabled"])]),_:1})):vue.createCommentVNode("",!0)]),_:3})]),_:3})],8,_hoisted_1$1x)}const VsCannedSearchSummaryBox=_export_sfc(_sfc_main$1W,[["render",_sfc_render$1N]]),_sfc_main$1V={name:"VsCannedSearchDates",status:"prototype",release:"0.0.1",props:{period:{type:Object,default:null},label:{type:String,default:""}},computed:{datePeriod(){return this.period&&this.period.startDay?this.period.endDay?`${this.period.startDay} - ${this.period.endDay}`:this.period.startDay:""}}},_hoisted_1$1w={class:"vs-canned-search-dates"},_hoisted_2$11={class:"vs-canned-search-dates__intro"},_hoisted_3$P={class:"vs-canned-search-dates__main"};function _sfc_render$1M(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1w,[vue.createElementVNode("div",_hoisted_2$11,vue.toDisplayString(t.label),1),vue.createElementVNode("div",_hoisted_3$P,vue.toDisplayString(s.datePeriod),1)])}const VsCannedSearchDates=_export_sfc(_sfc_main$1V,[["render",_sfc_render$1M]]),_sfc_main$1U={name:"VsCannedSearchBadges",status:"prototype",release:"0.0.1",props:{badgeOne:{type:String,default:""},multiBadgeOne:{type:Array,default:null},badgeTwo:{type:String,default:""},badgeThree:{type:String,default:""}},computed:{limitedMulti(){return this.multiBadgeOne?this.multiBadgeOne.slice(0,3):[]}}},_hoisted_1$1v={class:"vs-canned-search-badges"},_hoisted_2$10={key:0,class:"vs-canned-search-badges__badge vs-canned-search-badges__badge--category vs-canned-search-badges__badge--tr"},_hoisted_3$O={key:1,class:"vs-canned-search-badges__multi-badge-holder"},_hoisted_4$D={key:2,class:"vs-canned-search-badges__badge vs-canned-search-badges__badge--offer vs-canned-search-badges__badge--tr2"},_hoisted_5$s={key:3,class:"vs-canned-search-badges__badge vs-canned-search-badges__badge--open vs-canned-search-badges__badge--br"};function _sfc_render$1L(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1v,[t.badgeOne?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$10,vue.toDisplayString(t.badgeOne),1)):t.multiBadgeOne&&t.multiBadgeOne.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$O,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(s.limitedMulti,(i,l)=>(vue.openBlock(),vue.createElementBlock("div",{key:l,class:"vs-canned-search-badges__badge vs-canned-search-badges__badge--category vs-canned-search-badges__multi-badge"},vue.toDisplayString(i),1))),128))])):vue.createCommentVNode("",!0),t.badgeTwo?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$D,vue.toDisplayString(t.badgeTwo),1)):vue.createCommentVNode("",!0),t.badgeThree?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$s,vue.toDisplayString(t.badgeThree),1)):vue.createCommentVNode("",!0)])}const VsCannedSearchBadges=_export_sfc(_sfc_main$1U,[["render",_sfc_render$1L]]),_sfc_main$1T={name:"VsCannedSearchCuisines",status:"prototype",release:"0.0.1",props:{cuisines:{type:Array,default:null}}},_hoisted_1$1u={class:"vs-canned-search-cuisines","data-test":"vs-canned-search-cuisines"};function _sfc_render$1K(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1u,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(t.cuisines,(i,l)=>(vue.openBlock(),vue.createElementBlock("span",{class:"vs-canned-search-cuisines__cuisine",key:l},vue.toDisplayString(i.name),1))),128))])}const VsCannedSearchCuisines=_export_sfc(_sfc_main$1T,[["render",_sfc_render$1K]]),_sfc_main$1S={name:"VsCannedSearchSubHeading",status:"prototype",release:"0.0.1",components:{VsHeading},props:{subHeading:{type:String,default:""},lineLimit:{type:Number,default:null,validator:e=>[1,2].includes(e)}}};function _sfc_render$1J(e,n,t,r,a,s){const i=vue.resolveComponent("VsHeading");return t.subHeading?(vue.openBlock(),vue.createBlock(i,{key:0,level:"4","heading-style":"heading-xxs",class:vue.normalizeClass(["vs-canned-search-sub-heading",t.lineLimit?"vs-canned-search-sub-heading--lines-"+t.lineLimit:""]),"data-test":"vs-canned-search-sub-heading"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.subHeading),1)]),_:1},8,["class"])):vue.createCommentVNode("",!0)}const VsCannedSearchSubHeading=_export_sfc(_sfc_main$1S,[["render",_sfc_render$1J]]),_sfc_main$1R={name:"VsCannedSearchTourRuns",status:"prototype",release:"0.0.1",props:{label:{type:String,default:""},startDay:{type:String,default:""},endDay:{type:String,default:""}},computed:{formattedPeriod(){let e=`${this.label}: ${this.startDay}`;return this.endDay&&(e=`${e} - ${this.endDay}`),e}}},_hoisted_1$1t={class:"vs-canned-search-tour-runs"};function _sfc_render$1I(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("p",_hoisted_1$1t,vue.toDisplayString(s.formattedPeriod),1)}const VsCannedSearchTourRuns=_export_sfc(_sfc_main$1R,[["render",_sfc_render$1I]]),_sfc_main$1Q={name:"VsCannedSearchTourDeparts",status:"prototype",release:"0.0.1",props:{label:{type:String,default:null},origins:{type:Array,default:null}},computed:{transformedOrigins(){return this.origins?this.origins.map(e=>e.name).join(", "):""}}},_hoisted_1$1s={class:"vs-canned-search-tour-departs"},_hoisted_2$$={class:"vs-canned-search-tour-departs__label"};function _sfc_render$1H(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("p",_hoisted_1$1s,[vue.createElementVNode("span",_hoisted_2$$,vue.toDisplayString(t.label)+":",1),vue.createTextVNode(" "+vue.toDisplayString(s.transformedOrigins),1)])}const VsCannedSearchTourDeparts=_export_sfc(_sfc_main$1Q,[["render",_sfc_render$1H]]),_sfc_main$1P={name:"VsCarousel",status:"prototype",release:"0.0.1",components:{VsContainer,VsRow,VsCol,VsButton},provide(){const e={},n=this.activeSlides;return Object.keys(this.slidesPerPage).forEach(t=>{const r=12/this.slidesPerPage[t];e[t]=r}),{slideCols:e,visibleSlides:n}},props:{prevText:{type:String,default:"Previous slide"},nextText:{type:String,default:"Next slide"},slidesXs:{type:Number,default:1},slidesSm:{type:Number,default:2},slidesMd:{type:Number,default:3},slidesLg:{type:Number,default:4}},data(){return{totalSlides:null,currentPage:0,maxPages:1,nextDisabled:!1,prevDisabled:!0,currentWidth:"lg",activeSlides:[],remainderOffset:0,navigating:!1}},computed:{slidesPerPage(){const e={};return e.lg=this.slidesLg,e.md=this.slidesMd,e.sm=this.slidesSm,e.xs=this.slidesXs,e},trackOffset(){return this.remainderOffset?`-${(this.currentPage-1)*100+this.remainderOffset}%`:`-${this.currentPage*100}%`}},mounted(){window.addEventListener("resize",()=>{this.setActivePage(),this.sliderNavigate(null,this.currentPage)}),this.defineActiveSlides(),this.initNavigation()},methods:{defineActiveSlides(e){this.calcViewport(),this.activeSlides.length=0;const n=this.$refs.carousel.getElementsByClassName("vs-carousel-slide__card");let t=0;n.length>0&&Array.from(n).forEach((a,s)=>{const i=this.currentPage*this.slidesPerPage[this.currentWidth],l=parseInt(this.currentPage*this.slidesPerPage[this.currentWidth],10)+parseInt(this.slidesPerPage[this.currentWidth],10);e&&typeof e<"u"?s>=this.totalSlides-this.slidesPerPage[this.currentWidth]&&this.activeSlides.push(s):s>=i&&s<l&&this.activeSlides.push(s),t+=1}),this.totalSlides=t,this.maxPages=Math.ceil(t/this.slidesPerPage[this.currentWidth])},calcViewport(){window.matchMedia("(min-width: 1200px)").matches?this.currentWidth="lg":window.matchMedia("(min-width: 992px)").matches?this.currentWidth="md":window.matchMedia("(min-width: 576px)").matches?this.currentWidth="sm":this.currentWidth="xs"},setActivePage(){let e;this.currentWidth==="xs"&&this.slidesXs===1?e=this.currentPage+1:e=this.currentPage*this.slidesPerPage[this.currentWidth]+1,this.calcViewport();let n;this.currentWidth==="xs"&&this.slidesXs===1?n=e:n=Math.ceil(e/this.slidesPerPage[this.currentWidth]),this.currentPage=n-1,this.sliderNavigate(null,this.currentPage)},sliderNavigate(e,n){const t=this.activeSlides[0];if(e&&e.preventDefault(),this.navigating)return;this.navigating=!0,setTimeout(()=>{this.navigating=!1},250),n==="next"?this.currentPage+1<this.maxPages&&(this.currentPage+=1):n==="prev"?this.currentPage>0&&(this.currentPage-=1):this.currentPage=n,this.initNavigation();const r=this.slidesPerPage[this.currentWidth]*(this.currentPage+1);let a=!1;if(r>this.totalSlides?(this.remainderOffset=this.checkRemainder(r),a=!0):this.remainderOffset=0,this.defineActiveSlides(a),n==="next"){const s=this.getFirstActiveSlide();if(s){const i=s.querySelectorAll("a")[0];setTimeout(()=>{i.focus()},250)}}else if(n==="prev"&&this.currentPage>=0){const s=this.$refs.carousel.querySelectorAll(".card")[t-1];if(s){const i=s.querySelectorAll("a")[0];setTimeout(()=>{i.focus()},250)}}},getFirstActiveSlide(){return this.$refs.carousel.querySelectorAll(".card")[this.currentPage*this.slidesPerPage[this.currentWidth]]},getLastActiveSlide(){return this.$refs.carousel.querySelectorAll(".card")[this.currentPage*this.slidesPerPage[this.currentWidth]+this.slidesPerPage[this.currentWidth]-1]},initNavigation(){this.currentPage+1>=this.totalSlides/this.slidesPerPage[this.currentWidth]?this.nextDisabled=!0:this.nextDisabled=!1,this.currentPage>0?this.prevDisabled=!1:this.prevDisabled=!0},checkRemainder(e){const n=this.slidesPerPage[this.currentWidth]-(e-this.totalSlides);return 100/this.slidesPerPage[this.currentWidth]*n}}},_hoisted_1$1r={class:"vs-carousel","data-test":"vs-carousel",ref:"carousel"},_hoisted_2$_={class:"slider"},_hoisted_3$N={key:2,class:"vs-carousel__navigation"},_hoisted_4$C=["onClick","onKeypress","data-test"],_hoisted_5$r={class:"visually-hidden"},_hoisted_6$h={key:0,class:"vs-carousel__mobile-pagination-wrapper"},_hoisted_7$c={class:"vs-carousel__mobile-pagination","data-test":"vs-carousel__mobile-pagination"};function _sfc_render$1G(e,n,t,r,a,s){const i=vue.resolveComponent("VsButton"),l=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsCol"),d=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("section",_hoisted_1$1r,[vue.createVNode(d,null,{default:vue.withCtx(()=>[vue.createVNode(l,null,{default:vue.withCtx(()=>[vue.createVNode(c,{cols:"10",offset:"1",sm:"12","offset-sm":"0",class:"position-relative"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$_,[a.prevDisabled?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(i,{key:0,"icon-only":"",class:"vs-carousel__control vs-carousel__control--prev",onClick:n[0]||(n[0]=f=>s.sliderNavigate(f,"prev")),onKeypress:n[1]||(n[1]=f=>s.sliderNavigate(f,"prev",!0)),icon:"internal-link-back",ref:"prevButton"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.prevText),1)]),_:1},512)),vue.createVNode(l,{class:"vs-carousel__track",style:vue.normalizeStyle({transform:`translateX(${s.trackOffset})`})},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["style"]),a.nextDisabled?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(i,{key:1,"icon-only":"",class:"vs-carousel__control vs-carousel__control--next",onKeypress:n[2]||(n[2]=f=>s.sliderNavigate(f,"next",!0)),onClick:n[3]||(n[3]=f=>s.sliderNavigate(f,"next")),icon:"internal-link",ref:"nextButton"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.nextText),1)]),_:1},512)),a.totalSlides>s.slidesPerPage[a.currentWidth]?(vue.openBlock(),vue.createElementBlock("ul",_hoisted_3$N,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.maxPages,f=>(vue.openBlock(),vue.createElementBlock("li",{key:f},[vue.createElementVNode("button",{type:"button",class:vue.normalizeClass(["vs-carousel__navigation-item",f===a.currentPage+1?"vs-carousel__navigation-item--active":""]),onClick:vue.withModifiers(p=>s.sliderNavigate(p,f-1),["prevent"]),onKeypress:vue.withModifiers(p=>s.sliderNavigate(p,f-1,!0),["prevent"]),tabindex:"0","data-test":`vs-carousel__nav-${f}`},[vue.createElementVNode("span",_hoisted_5$r,[vue.renderSlot(e.$slots,"vs-carousel-navigate"),vue.createTextVNode(" "+vue.toDisplayString(f),1)])],42,_hoisted_4$C)]))),128))])):vue.createCommentVNode("",!0)]),a.totalSlides>s.slidesPerPage[a.currentWidth]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$h,[vue.createElementVNode("p",_hoisted_7$c,[vue.createTextVNode(vue.toDisplayString(a.currentPage+1)+" ",1),vue.renderSlot(e.$slots,"vs-carousel-of"),vue.createTextVNode(" "+vue.toDisplayString(a.totalSlides),1)])])):vue.createCommentVNode("",!0)]),_:3})]),_:3})]),_:3})],512)}const VsCarousel=_export_sfc(_sfc_main$1P,[["render",_sfc_render$1G]]),_sfc_main$1O={name:"VsModuleWrapper",status:"prototype",release:"0.0.1",components:{VsHeading,VsRichTextWrapper,VsContainer,VsRow,VsCol},props:{anchorId:{type:String,default:null},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)/)},theme:{type:String,default:"light",validator:e=>e.match(/(light|grey|neutral)/)}},computed:{sectionClasses(){return["vs-module-wrapper",`vs-module-wrapper--${this.theme}`,this.businessSupport?"vs-module-wrapper--left-align":null]},headingColumnSizes(){return{cols:this.businessSupport?12:10,offset:this.businessSupport?0:1,md:this.businessSupport?12:8,"offset-md":this.businessSupport?0:2}},IntroColumnSizes(){return{cols:12,sm:this.businessSupport?12:10,"offset-sm":this.businessSupport?0:1,md:this.businessSupport?12:8,"offset-md":this.businessSupport?0:2}}}};function _sfc_render$1F(e,n,t,r,a,s){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRichTextWrapper"),d=vue.resolveComponent("VsRow"),f=vue.resolveComponent("VsContainer");return vue.openBlock(),vue.createElementBlock("section",vue.mergeProps({class:s.sectionClasses,"data-test":"vs-module-wrapper"},e.$attrs),[e.$slots["vs-module-wrapper-heading"]&&e.$slots["vs-module-wrapper-heading"]||e.$slots["vs-module-wrapper-intro"]&&e.$slots["vs-module-wrapper-intro"]?(vue.openBlock(),vue.createBlock(f,{key:0},{default:vue.withCtx(()=>[vue.createVNode(d,null,{default:vue.withCtx(()=>[e.$slots["vs-module-wrapper-heading"]&&e.$slots["vs-module-wrapper-heading"]?(vue.openBlock(),vue.createBlock(l,vue.normalizeProps(vue.mergeProps({key:0},s.headingColumnSizes)),{default:vue.withCtx(()=>[vue.createVNode(i,{level:t.headingLevel,"heading-style":"heading-xl",class:"vs-module-wrapper__heading","data-test":"vs-module-wrapper__heading",id:t.anchorId},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-module-wrapper-heading")]),_:3},8,["level","id"])]),_:3},16)):vue.createCommentVNode("",!0),e.$slots["vs-module-wrapper-intro"]&&e.$slots["vs-module-wrapper-intro"]?(vue.openBlock(),vue.createBlock(l,vue.normalizeProps(vue.mergeProps({key:1},s.IntroColumnSizes)),{default:vue.withCtx(()=>[vue.createVNode(c,{class:"vs-module-wrapper__intro","data-test":"vs-module-wrapper__intro",variant:"lead"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-module-wrapper-intro")]),_:3})]),_:3},16)):vue.createCommentVNode("",!0)]),_:3})]),_:3})):vue.createCommentVNode("",!0),vue.renderSlot(e.$slots,"default")],16)}const VsModuleWrapper=_export_sfc(_sfc_main$1O,[["render",_sfc_render$1F]]);function bind$1(e,n){return function(){return e.apply(n,arguments)}}const{toString:toString$2}=Object.prototype,{getPrototypeOf}=Object,kindOf=(e=>n=>{const t=toString$2.call(n);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=e=>(e=e.toLowerCase(),n=>kindOf(n)===e),typeOfTest=e=>n=>typeof n===e,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&isFunction$3(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&isArrayBuffer(e.buffer),n}const isString=typeOfTest("string"),isFunction$3=typeOfTest("function"),isNumber=typeOfTest("number"),isObject$2=e=>e!==null&&typeof e=="object",isBoolean=e=>e===!0||e===!1,isPlainObject=e=>{if(kindOf(e)!=="object")return!1;const n=getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject$2(e)&&isFunction$3(e.pipe),isFormData=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||isFunction$3(e.append)&&((n=kindOf(e))==="formdata"||n==="object"&&isFunction$3(e.toString)&&e.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach$1(e,n,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),isArray(e))for(r=0,a=e.length;r<a;r++)n.call(null,e[r],r,e);else{const s=t?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let l;for(r=0;r<i;r++)l=s[r],n.call(null,e[l],l,e)}}function findKey(e,n){n=n.toLowerCase();const t=Object.keys(e);let r=t.length,a;for(;r-- >0;)if(a=t[r],n===a.toLowerCase())return a;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=e=>!isUndefined(e)&&e!==_global;function merge(){const{caseless:e}=isContextDefined(this)&&this||{},n={},t=(r,a)=>{const s=e&&findKey(n,a)||a;isPlainObject(n[s])&&isPlainObject(r)?n[s]=merge(n[s],r):isPlainObject(r)?n[s]=merge({},r):isArray(r)?n[s]=r.slice():n[s]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&forEach$1(arguments[r],t);return n}const extend$1=(e,n,t,{allOwnKeys:r}={})=>(forEach$1(n,(a,s)=>{t&&isFunction$3(a)?e[s]=bind$1(a,t):e[s]=a},{allOwnKeys:r}),e),stripBOM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),inherits=(e,n,t,r)=>{e.prototype=Object.create(n.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),t&&Object.assign(e.prototype,t)},toFlatObject=(e,n,t,r)=>{let a,s,i;const l={};if(n=n||{},e==null)return n;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)i=a[s],(!r||r(i,e,n))&&!l[i]&&(n[i]=e[i],l[i]=!0);e=t!==!1&&getPrototypeOf(e)}while(e&&(!t||t(e,n))&&e!==Object.prototype);return n},endsWith=(e,n,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=n.length;const r=e.indexOf(n,t);return r!==-1&&r===t},toArray=e=>{if(!e)return null;if(isArray(e))return e;let n=e.length;if(!isNumber(n))return null;const t=new Array(n);for(;n-- >0;)t[n]=e[n];return t},isTypedArray$1=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(e,n)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const s=a.value;n.call(e,s[0],s[1])}},matchAll=(e,n)=>{let t;const r=[];for(;(t=e.exec(n))!==null;)r.push(t);return r},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,a){return r.toUpperCase()+a}),hasOwnProperty$1=(({hasOwnProperty:e})=>(n,t)=>e.call(n,t))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(e,n)=>{const t=Object.getOwnPropertyDescriptors(e),r={};forEach$1(t,(a,s)=>{let i;(i=n(a,s,e))!==!1&&(r[s]=i||a)}),Object.defineProperties(e,r)},freezeMethods=e=>{reduceDescriptors(e,(n,t)=>{if(isFunction$3(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=e[t];if(isFunction$3(r)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},toObjectSet=(e,n)=>{const t={},r=a=>{a.forEach(s=>{t[s]=!0})};return isArray(e)?r(e):r(String(e).split(n)),t},noop=()=>{},toFiniteNumber=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(e=16,n=ALPHABET.ALPHA_DIGIT)=>{let t="";const{length:r}=n;for(;e--;)t+=n[Math.random()*r|0];return t};function isSpecCompliantForm(e){return!!(e&&isFunction$3(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const toJSONObject=e=>{const n=new Array(10),t=(r,a)=>{if(isObject$2(r)){if(n.indexOf(r)>=0)return;if(!("toJSON"in r)){n[a]=r;const s=isArray(r)?[]:{};return forEach$1(r,(i,l)=>{const c=t(i,a+1);!isUndefined(c)&&(s[l]=c)}),n[a]=void 0,s}}return r};return t(e,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=e=>e&&(isObject$2(e)||isFunction$3(e))&&isFunction$3(e.then)&&isFunction$3(e.catch),_setImmediate=((e,n)=>e?setImmediate:n?((t,r)=>(_global.addEventListener("message",({source:a,data:s})=>{a===_global&&s===t&&r.length&&r.shift()()},!1),a=>{r.push(a),_global.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",isFunction$3(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject:isObject$2,isPlainObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction:isFunction$3,isStream,isURLSearchParams,isTypedArray:isTypedArray$1,isFileList,forEach:forEach$1,merge,extend:extend$1,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty:hasOwnProperty$1,hasOwnProp:hasOwnProperty$1,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap};function AxiosError(e,n,t,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),t&&(this.config=t),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}utils$1.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{descriptors[e]={value:e}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(e,n,t,r,a,s)=>{const i=Object.create(prototype$1);return utils$1.toFlatObject(e,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),AxiosError.call(i,e.message,n,t,r,a),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const httpAdapter=null;function isVisitable(e){return utils$1.isPlainObject(e)||utils$1.isArray(e)}function removeBrackets(e){return utils$1.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,n,t){return e?e.concat(n).map(function(a,s){return a=removeBrackets(a),!t&&s?"["+a+"]":a}).join(t?".":""):n}function isFlatArray(e){return utils$1.isArray(e)&&!e.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(n){return/^is[A-Z]/.test(n)});function toFormData(e,n,t){if(!utils$1.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,t=utils$1.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,C){return!utils$1.isUndefined(C[b])});const r=t.metaTokens,a=t.visitor||f,s=t.dots,i=t.indexes,c=(t.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(n);if(!utils$1.isFunction(a))throw new TypeError("visitor must be a function");function d(g){if(g===null)return"";if(utils$1.isDate(g))return g.toISOString();if(!c&&utils$1.isBlob(g))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(g)||utils$1.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function f(g,b,C){let w=g;if(g&&!C&&typeof g=="object"){if(utils$1.endsWith(b,"{}"))b=r?b:b.slice(0,-2),g=JSON.stringify(g);else if(utils$1.isArray(g)&&isFlatArray(g)||(utils$1.isFileList(g)||utils$1.endsWith(b,"[]"))&&(w=utils$1.toArray(g)))return b=removeBrackets(b),w.forEach(function(V,A){!(utils$1.isUndefined(V)||V===null)&&n.append(i===!0?renderKey([b],A,s):i===null?b:b+"[]",d(V))}),!1}return isVisitable(g)?!0:(n.append(renderKey(C,b,s),d(g)),!1)}const p=[],v=Object.assign(predicates,{defaultVisitor:f,convertValue:d,isVisitable});function m(g,b){if(!utils$1.isUndefined(g)){if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+b.join("."));p.push(g),utils$1.forEach(g,function(w,E){(!(utils$1.isUndefined(w)||w===null)&&a.call(n,w,utils$1.isString(E)?E.trim():E,b,v))===!0&&m(w,b?b.concat(E):[E])}),p.pop()}}if(!utils$1.isObject(e))throw new TypeError("data must be an object");return m(e),n}function encode$1(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return n[r]})}function AxiosURLSearchParams(e,n){this._pairs=[],e&&toFormData(e,this,n)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(n,t){this._pairs.push([n,t])};prototype.toString=function(n){const t=n?function(r){return n.call(this,r,encode$1)}:encode$1;return this._pairs.map(function(a){return t(a[0])+"="+t(a[1])},"").join("&")};function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(e,n,t){if(!n)return e;const r=t&&t.encode||encode;utils$1.isFunction(t)&&(t={serialize:t});const a=t&&t.serialize;let s;if(a?s=a(n,t):s=utils$1.isURLSearchParams(n)?n.toString():new AxiosURLSearchParams(n,t).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class InterceptorManager{constructor(){this.handlers=[]}use(n,t,r){return this.handlers.push({fulfilled:n,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){utils$1.forEach(this.handlers,function(r){r!==null&&n(r)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(e,n){return toFormData(e,new platform.classes.URLSearchParams,Object.assign({visitor:function(t,r,a,s){return platform.isNode&&utils$1.isBuffer(t)?(this.append(r,t.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},n))}function parsePropPath(e){return utils$1.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function arrayToObject(e){const n={},t=Object.keys(e);let r;const a=t.length;let s;for(r=0;r<a;r++)s=t[r],n[s]=e[s];return n}function formDataToJSON(e){function n(t,r,a,s){let i=t[s++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=s>=t.length;return i=!i&&utils$1.isArray(a)?a.length:i,c?(utils$1.hasOwnProp(a,i)?a[i]=[a[i],r]:a[i]=r,!l):((!a[i]||!utils$1.isObject(a[i]))&&(a[i]=[]),n(t,r,a[i],s)&&utils$1.isArray(a[i])&&(a[i]=arrayToObject(a[i])),!l)}if(utils$1.isFormData(e)&&utils$1.isFunction(e.entries)){const t={};return utils$1.forEachEntry(e,(r,a)=>{n(parsePropPath(r),a,t,0)}),t}return null}function stringifySafely(e,n,t){if(utils$1.isString(e))try{return(n||JSON.parse)(e),utils$1.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const r=t.getContentType()||"",a=r.indexOf("application/json")>-1,s=utils$1.isObject(n);if(s&&utils$1.isHTMLForm(n)&&(n=new FormData(n)),utils$1.isFormData(n))return a?JSON.stringify(formDataToJSON(n)):n;if(utils$1.isArrayBuffer(n)||utils$1.isBuffer(n)||utils$1.isStream(n)||utils$1.isFile(n)||utils$1.isBlob(n)||utils$1.isReadableStream(n))return n;if(utils$1.isArrayBufferView(n))return n.buffer;if(utils$1.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let l;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(n,this.formSerializer).toString();if((l=utils$1.isFileList(n))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return toFormData(l?{"files[]":n}:n,c&&new c,this.formSerializer)}}return s||a?(t.setContentType("application/json",!1),stringifySafely(n)):n}],transformResponse:[function(n){const t=this.transitional||defaults.transitional,r=t&&t.forcedJSONParsing,a=this.responseType==="json";if(utils$1.isResponse(n)||utils$1.isReadableStream(n))return n;if(n&&utils$1.isString(n)&&(r&&!this.responseType||a)){const i=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(n)}catch(l){if(i)throw l.name==="SyntaxError"?AxiosError.from(l,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):l}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],e=>{defaults.headers[e]={}});const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=e=>{const n={};let t,r,a;return e&&e.split(`
|
|
32
32
|
`).forEach(function(i){a=i.indexOf(":"),t=i.substring(0,a).trim().toLowerCase(),r=i.substring(a+1).trim(),!(!t||n[t]&&ignoreDuplicateOf[t])&&(t==="set-cookie"?n[t]?n[t].push(r):n[t]=[r]:n[t]=n[t]?n[t]+", "+r:r)}),n},$internals=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return e===!1||e==null?e:utils$1.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const n=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(e);)n[r[1]]=r[2];return n}const isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,n,t,r,a){if(utils$1.isFunction(r))return r.call(this,n,t);if(a&&(n=t),!!utils$1.isString(n)){if(utils$1.isString(r))return n.indexOf(r)!==-1;if(utils$1.isRegExp(r))return r.test(n)}}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,t,r)=>t.toUpperCase()+r)}function buildAccessors(e,n){const t=utils$1.toCamelCase(" "+n);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+t,{value:function(a,s,i){return this[r].call(this,n,a,s,i)},configurable:!0})})}class AxiosHeaders{constructor(n){n&&this.set(n)}set(n,t,r){const a=this;function s(l,c,d){const f=normalizeHeader(c);if(!f)throw new Error("header name must be a non-empty string");const p=utils$1.findKey(a,f);(!p||a[p]===void 0||d===!0||d===void 0&&a[p]!==!1)&&(a[p||c]=normalizeValue(l))}const i=(l,c)=>utils$1.forEach(l,(d,f)=>s(d,f,c));if(utils$1.isPlainObject(n)||n instanceof this.constructor)i(n,t);else if(utils$1.isString(n)&&(n=n.trim())&&!isValidHeaderName(n))i(parseHeaders(n),t);else if(utils$1.isHeaders(n))for(const[l,c]of n.entries())s(c,l,r);else n!=null&&s(t,n,r);return this}get(n,t){if(n=normalizeHeader(n),n){const r=utils$1.findKey(this,n);if(r){const a=this[r];if(!t)return a;if(t===!0)return parseTokens(a);if(utils$1.isFunction(t))return t.call(this,a,r);if(utils$1.isRegExp(t))return t.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,t){if(n=normalizeHeader(n),n){const r=utils$1.findKey(this,n);return!!(r&&this[r]!==void 0&&(!t||matchHeaderValue(this,this[r],r,t)))}return!1}delete(n,t){const r=this;let a=!1;function s(i){if(i=normalizeHeader(i),i){const l=utils$1.findKey(r,i);l&&(!t||matchHeaderValue(r,r[l],l,t))&&(delete r[l],a=!0)}}return utils$1.isArray(n)?n.forEach(s):s(n),a}clear(n){const t=Object.keys(this);let r=t.length,a=!1;for(;r--;){const s=t[r];(!n||matchHeaderValue(this,this[s],s,n,!0))&&(delete this[s],a=!0)}return a}normalize(n){const t=this,r={};return utils$1.forEach(this,(a,s)=>{const i=utils$1.findKey(r,s);if(i){t[i]=normalizeValue(a),delete t[s];return}const l=n?formatHeader(s):String(s).trim();l!==s&&delete t[s],t[l]=normalizeValue(a),r[l]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const t=Object.create(null);return utils$1.forEach(this,(r,a)=>{r!=null&&r!==!1&&(t[a]=n&&utils$1.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,t])=>n+": "+t).join(`
|
|
33
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...t){const r=new this(n);return t.forEach(a=>r.set(a)),r}static accessor(n){const r=(this[$internals]=this[$internals]={accessors:{}}).accessors,a=this.prototype;function s(i){const l=normalizeHeader(i);r[l]||(buildAccessors(a,i),r[l]=!0)}return utils$1.isArray(n)?n.forEach(s):s(n),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:e},n)=>{let t=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(r){this[t]=r}}});utils$1.freezeMethods(AxiosHeaders);function transformData(e,n){const t=this||defaults,r=n||t,a=AxiosHeaders.from(r.headers);let s=r.data;return utils$1.forEach(e,function(l){s=l.call(t,s,a.normalize(),n?n.status:void 0)}),a.normalize(),s}function isCancel(e){return!!(e&&e.__CANCEL__)}function CanceledError(e,n,t){AxiosError.call(this,e??"canceled",AxiosError.ERR_CANCELED,n,t),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(e,n,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?e(t):n(new AxiosError("Request failed with status code "+t.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function parseProtocol(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function speedometer(e,n){e=e||10;const t=new Array(e),r=new Array(e);let a=0,s=0,i;return n=n!==void 0?n:1e3,function(c){const d=Date.now(),f=r[s];i||(i=d),t[a]=c,r[a]=d;let p=s,v=0;for(;p!==a;)v+=t[p++],p=p%e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),d-i<n)return;const m=f&&d-f;return m?Math.round(v*1e3/m):void 0}}function throttle(e,n){let t=0,r=1e3/n,a,s;const i=(d,f=Date.now())=>{t=f,a=null,s&&(clearTimeout(s),s=null),e.apply(null,d)};return[(...d)=>{const f=Date.now(),p=f-t;p>=r?i(d,f):(a=d,s||(s=setTimeout(()=>{s=null,i(a)},r-p)))},()=>a&&i(a)]}const progressEventReducer=(e,n,t=3)=>{let r=0;const a=speedometer(50,250);return throttle(s=>{const i=s.loaded,l=s.lengthComputable?s.total:void 0,c=i-r,d=a(c),f=i<=l;r=i;const p={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&f?(l-i)/d:void 0,event:s,lengthComputable:l!=null,[n?"download":"upload"]:!0};e(p)},t)},progressEventDecorator=(e,n)=>{const t=e!=null;return[r=>n[0]({lengthComputable:t,total:e,loaded:r}),n[1]]},asyncDecorator=e=>(...n)=>utils$1.asap(()=>e(...n)),isURLSameOrigin=platform.hasStandardBrowserEnv?((e,n)=>t=>(t=new URL(t,platform.origin),e.protocol===t.protocol&&e.host===t.host&&(n||e.port===t.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(e,n,t,r,a,s){const i=[e+"="+encodeURIComponent(n)];utils$1.isNumber(t)&&i.push("expires="+new Date(t).toGMTString()),utils$1.isString(r)&&i.push("path="+r),utils$1.isString(a)&&i.push("domain="+a),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function buildFullPath(e,n){return e&&!isAbsoluteURL(n)?combineURLs(e,n):n}const headersToObject=e=>e instanceof AxiosHeaders?{...e}:e;function mergeConfig(e,n){n=n||{};const t={};function r(d,f,p,v){return utils$1.isPlainObject(d)&&utils$1.isPlainObject(f)?utils$1.merge.call({caseless:v},d,f):utils$1.isPlainObject(f)?utils$1.merge({},f):utils$1.isArray(f)?f.slice():f}function a(d,f,p,v){if(utils$1.isUndefined(f)){if(!utils$1.isUndefined(d))return r(void 0,d,p,v)}else return r(d,f,p,v)}function s(d,f){if(!utils$1.isUndefined(f))return r(void 0,f)}function i(d,f){if(utils$1.isUndefined(f)){if(!utils$1.isUndefined(d))return r(void 0,d)}else return r(void 0,f)}function l(d,f,p){if(p in n)return r(d,f);if(p in e)return r(void 0,d)}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(d,f,p)=>a(headersToObject(d),headersToObject(f),p,!0)};return utils$1.forEach(Object.keys(Object.assign({},e,n)),function(f){const p=c[f]||a,v=p(e[f],n[f],f);utils$1.isUndefined(v)&&p!==l||(t[f]=v)}),t}const resolveConfig=e=>{const n=mergeConfig({},e);let{data:t,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:s,headers:i,auth:l}=n;n.headers=i=AxiosHeaders.from(i),n.url=buildURL(buildFullPath(n.baseURL,n.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(utils$1.isFormData(t)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[d,...f]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([d||"multipart/form-data",...f].join("; "))}}if(platform.hasStandardBrowserEnv&&(r&&utils$1.isFunction(r)&&(r=r(n)),r||r!==!1&&isURLSameOrigin(n.url))){const d=a&&s&&cookies.read(s);d&&i.set(a,d)}return n},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(e){return new Promise(function(t,r){const a=resolveConfig(e);let s=a.data;const i=AxiosHeaders.from(a.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=a,f,p,v,m,g;function b(){m&&m(),g&&g(),a.cancelToken&&a.cancelToken.unsubscribe(f),a.signal&&a.signal.removeEventListener("abort",f)}let C=new XMLHttpRequest;C.open(a.method.toUpperCase(),a.url,!0),C.timeout=a.timeout;function w(){if(!C)return;const V=AxiosHeaders.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),$={data:!l||l==="text"||l==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:V,config:e,request:C};settle(function(I){t(I),b()},function(I){r(I),b()},$),C=null}"onloadend"in C?C.onloadend=w:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(w)},C.onabort=function(){C&&(r(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,C)),C=null)},C.onerror=function(){r(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let A=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const $=a.transitional||transitionalDefaults;a.timeoutErrorMessage&&(A=a.timeoutErrorMessage),r(new AxiosError(A,$.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,C)),C=null},s===void 0&&i.setContentType(null),"setRequestHeader"in C&&utils$1.forEach(i.toJSON(),function(A,$){C.setRequestHeader($,A)}),utils$1.isUndefined(a.withCredentials)||(C.withCredentials=!!a.withCredentials),l&&l!=="json"&&(C.responseType=a.responseType),d&&([v,g]=progressEventReducer(d,!0),C.addEventListener("progress",v)),c&&C.upload&&([p,m]=progressEventReducer(c),C.upload.addEventListener("progress",p),C.upload.addEventListener("loadend",m)),(a.cancelToken||a.signal)&&(f=V=>{C&&(r(!V||V.type?new CanceledError(null,e,C):V),C.abort(),C=null)},a.cancelToken&&a.cancelToken.subscribe(f),a.signal&&(a.signal.aborted?f():a.signal.addEventListener("abort",f)));const E=parseProtocol(a.url);if(E&&platform.protocols.indexOf(E)===-1){r(new AxiosError("Unsupported protocol "+E+":",AxiosError.ERR_BAD_REQUEST,e));return}C.send(s||null)})},composeSignals=(e,n)=>{const{length:t}=e=e?e.filter(Boolean):[];if(n||t){let r=new AbortController,a;const s=function(d){if(!a){a=!0,l();const f=d instanceof Error?d:this.reason;r.abort(f instanceof AxiosError?f:new CanceledError(f instanceof Error?f.message:f))}};let i=n&&setTimeout(()=>{i=null,s(new AxiosError(`timeout ${n} of ms exceeded`,AxiosError.ETIMEDOUT))},n);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>utils$1.asap(l),c}},streamChunk=function*(e,n){let t=e.byteLength;if(t<n){yield e;return}let r=0,a;for(;r<t;)a=r+n,yield e.slice(r,a),r=a},readBytes=async function*(e,n){for await(const t of readStream(e))yield*streamChunk(t,n)},readStream=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const n=e.getReader();try{for(;;){const{done:t,value:r}=await n.read();if(t)break;yield r}}finally{await n.cancel()}},trackStream=(e,n,t,r)=>{const a=readBytes(e,n);let s=0,i,l=c=>{i||(i=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:f}=await a.next();if(d){l(),c.close();return}let p=f.byteLength;if(t){let v=s+=p;t(v)}c.enqueue(new Uint8Array(f))}catch(d){throw l(d),d}},cancel(c){return l(c),a.return()}},{highWaterMark:2})},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),test=(e,...n)=>{try{return!!e(...n)}catch{return!1}},supportsRequestStream=isReadableStreamSupported&&test(()=>{let e=!1;const n=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n}),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&test(()=>utils$1.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&(e=>e.body)};isFetchSupported&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!resolvers[n]&&(resolvers[n]=utils$1.isFunction(e[n])?t=>t[n]():(t,r)=>{throw new AxiosError(`Response type '${n}' is not supported`,AxiosError.ERR_NOT_SUPPORT,r)})})})(new Response);const getBodyLength=async e=>{if(e==null)return 0;if(utils$1.isBlob(e))return e.size;if(utils$1.isSpecCompliantForm(e))return(await new Request(platform.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(e)||utils$1.isArrayBuffer(e))return e.byteLength;if(utils$1.isURLSearchParams(e)&&(e=e+""),utils$1.isString(e))return(await encodeText(e)).byteLength},resolveBodyLength=async(e,n)=>{const t=utils$1.toFiniteNumber(e.getContentLength());return t??getBodyLength(n)},fetchAdapter=isFetchSupported&&(async e=>{let{url:n,method:t,data:r,signal:a,cancelToken:s,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:d,headers:f,withCredentials:p="same-origin",fetchOptions:v}=resolveConfig(e);d=d?(d+"").toLowerCase():"text";let m=composeSignals([a,s&&s.toAbortSignal()],i),g;const b=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let C;try{if(c&&supportsRequestStream&&t!=="get"&&t!=="head"&&(C=await resolveBodyLength(f,r))!==0){let $=new Request(n,{method:"POST",body:r,duplex:"half"}),O;if(utils$1.isFormData(r)&&(O=$.headers.get("content-type"))&&f.setContentType(O),$.body){const[I,L]=progressEventDecorator(C,progressEventReducer(asyncDecorator(c)));r=trackStream($.body,DEFAULT_CHUNK_SIZE,I,L)}}utils$1.isString(p)||(p=p?"include":"omit");const w="credentials"in Request.prototype;g=new Request(n,{...v,signal:m,method:t.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:w?p:void 0});let E=await fetch(g);const V=supportsResponseStream&&(d==="stream"||d==="response");if(supportsResponseStream&&(l||V&&b)){const $={};["status","statusText","headers"].forEach(Z=>{$[Z]=E[Z]});const O=utils$1.toFiniteNumber(E.headers.get("content-length")),[I,L]=l&&progressEventDecorator(O,progressEventReducer(asyncDecorator(l),!0))||[];E=new Response(trackStream(E.body,DEFAULT_CHUNK_SIZE,I,()=>{L&&L(),b&&b()}),$)}d=d||"text";let A=await resolvers[utils$1.findKey(resolvers,d)||"text"](E,e);return!V&&b&&b(),await new Promise(($,O)=>{settle($,O,{data:A,headers:AxiosHeaders.from(E.headers),status:E.status,statusText:E.statusText,config:e,request:g})})}catch(w){throw b&&b(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,g),{cause:w.cause||w}):AxiosError.from(w,w&&w.code,e,g)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const renderReason=e=>`- ${e}`,isResolvedHandle=e=>utils$1.isFunction(e)||e===null||e===!1,adapters={getAdapter:e=>{e=utils$1.isArray(e)?e:[e];const{length:n}=e;let t,r;const a={};for(let s=0;s<n;s++){t=e[s];let i;if(r=t,!isResolvedHandle(t)&&(r=knownAdapters[(i=String(t)).toLowerCase()],r===void 0))throw new AxiosError(`Unknown adapter '${i}'`);if(r)break;a[i||"#"+s]=r}if(!r){const s=Object.entries(a).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=n?s.length>1?`since :
|
|
33
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...t){const r=new this(n);return t.forEach(a=>r.set(a)),r}static accessor(n){const r=(this[$internals]=this[$internals]={accessors:{}}).accessors,a=this.prototype;function s(i){const l=normalizeHeader(i);r[l]||(buildAccessors(a,i),r[l]=!0)}return utils$1.isArray(n)?n.forEach(s):s(n),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:e},n)=>{let t=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(r){this[t]=r}}});utils$1.freezeMethods(AxiosHeaders);function transformData(e,n){const t=this||defaults,r=n||t,a=AxiosHeaders.from(r.headers);let s=r.data;return utils$1.forEach(e,function(l){s=l.call(t,s,a.normalize(),n?n.status:void 0)}),a.normalize(),s}function isCancel(e){return!!(e&&e.__CANCEL__)}function CanceledError(e,n,t){AxiosError.call(this,e??"canceled",AxiosError.ERR_CANCELED,n,t),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(e,n,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?e(t):n(new AxiosError("Request failed with status code "+t.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function parseProtocol(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function speedometer(e,n){e=e||10;const t=new Array(e),r=new Array(e);let a=0,s=0,i;return n=n!==void 0?n:1e3,function(c){const d=Date.now(),f=r[s];i||(i=d),t[a]=c,r[a]=d;let p=s,v=0;for(;p!==a;)v+=t[p++],p=p%e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),d-i<n)return;const m=f&&d-f;return m?Math.round(v*1e3/m):void 0}}function throttle(e,n){let t=0,r=1e3/n,a,s;const i=(d,f=Date.now())=>{t=f,a=null,s&&(clearTimeout(s),s=null),e.apply(null,d)};return[(...d)=>{const f=Date.now(),p=f-t;p>=r?i(d,f):(a=d,s||(s=setTimeout(()=>{s=null,i(a)},r-p)))},()=>a&&i(a)]}const progressEventReducer=(e,n,t=3)=>{let r=0;const a=speedometer(50,250);return throttle(s=>{const i=s.loaded,l=s.lengthComputable?s.total:void 0,c=i-r,d=a(c),f=i<=l;r=i;const p={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&f?(l-i)/d:void 0,event:s,lengthComputable:l!=null,[n?"download":"upload"]:!0};e(p)},t)},progressEventDecorator=(e,n)=>{const t=e!=null;return[r=>n[0]({lengthComputable:t,total:e,loaded:r}),n[1]]},asyncDecorator=e=>(...n)=>utils$1.asap(()=>e(...n)),isURLSameOrigin=platform.hasStandardBrowserEnv?((e,n)=>t=>(t=new URL(t,platform.origin),e.protocol===t.protocol&&e.host===t.host&&(n||e.port===t.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(e,n,t,r,a,s){const i=[e+"="+encodeURIComponent(n)];utils$1.isNumber(t)&&i.push("expires="+new Date(t).toGMTString()),utils$1.isString(r)&&i.push("path="+r),utils$1.isString(a)&&i.push("domain="+a),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function buildFullPath(e,n){return e&&!isAbsoluteURL(n)?combineURLs(e,n):n}const headersToObject=e=>e instanceof AxiosHeaders?{...e}:e;function mergeConfig(e,n){n=n||{};const t={};function r(d,f,p,v){return utils$1.isPlainObject(d)&&utils$1.isPlainObject(f)?utils$1.merge.call({caseless:v},d,f):utils$1.isPlainObject(f)?utils$1.merge({},f):utils$1.isArray(f)?f.slice():f}function a(d,f,p,v){if(utils$1.isUndefined(f)){if(!utils$1.isUndefined(d))return r(void 0,d,p,v)}else return r(d,f,p,v)}function s(d,f){if(!utils$1.isUndefined(f))return r(void 0,f)}function i(d,f){if(utils$1.isUndefined(f)){if(!utils$1.isUndefined(d))return r(void 0,d)}else return r(void 0,f)}function l(d,f,p){if(p in n)return r(d,f);if(p in e)return r(void 0,d)}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(d,f,p)=>a(headersToObject(d),headersToObject(f),p,!0)};return utils$1.forEach(Object.keys(Object.assign({},e,n)),function(f){const p=c[f]||a,v=p(e[f],n[f],f);utils$1.isUndefined(v)&&p!==l||(t[f]=v)}),t}const resolveConfig=e=>{const n=mergeConfig({},e);let{data:t,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:s,headers:i,auth:l}=n;n.headers=i=AxiosHeaders.from(i),n.url=buildURL(buildFullPath(n.baseURL,n.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(utils$1.isFormData(t)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[d,...f]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([d||"multipart/form-data",...f].join("; "))}}if(platform.hasStandardBrowserEnv&&(r&&utils$1.isFunction(r)&&(r=r(n)),r||r!==!1&&isURLSameOrigin(n.url))){const d=a&&s&&cookies.read(s);d&&i.set(a,d)}return n},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(e){return new Promise(function(t,r){const a=resolveConfig(e);let s=a.data;const i=AxiosHeaders.from(a.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=a,f,p,v,m,g;function b(){m&&m(),g&&g(),a.cancelToken&&a.cancelToken.unsubscribe(f),a.signal&&a.signal.removeEventListener("abort",f)}let C=new XMLHttpRequest;C.open(a.method.toUpperCase(),a.url,!0),C.timeout=a.timeout;function w(){if(!C)return;const V=AxiosHeaders.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),P={data:!l||l==="text"||l==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:V,config:e,request:C};settle(function(I){t(I),b()},function(I){r(I),b()},P),C=null}"onloadend"in C?C.onloadend=w:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(w)},C.onabort=function(){C&&(r(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,C)),C=null)},C.onerror=function(){r(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let A=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const P=a.transitional||transitionalDefaults;a.timeoutErrorMessage&&(A=a.timeoutErrorMessage),r(new AxiosError(A,P.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,C)),C=null},s===void 0&&i.setContentType(null),"setRequestHeader"in C&&utils$1.forEach(i.toJSON(),function(A,P){C.setRequestHeader(P,A)}),utils$1.isUndefined(a.withCredentials)||(C.withCredentials=!!a.withCredentials),l&&l!=="json"&&(C.responseType=a.responseType),d&&([v,g]=progressEventReducer(d,!0),C.addEventListener("progress",v)),c&&C.upload&&([p,m]=progressEventReducer(c),C.upload.addEventListener("progress",p),C.upload.addEventListener("loadend",m)),(a.cancelToken||a.signal)&&(f=V=>{C&&(r(!V||V.type?new CanceledError(null,e,C):V),C.abort(),C=null)},a.cancelToken&&a.cancelToken.subscribe(f),a.signal&&(a.signal.aborted?f():a.signal.addEventListener("abort",f)));const E=parseProtocol(a.url);if(E&&platform.protocols.indexOf(E)===-1){r(new AxiosError("Unsupported protocol "+E+":",AxiosError.ERR_BAD_REQUEST,e));return}C.send(s||null)})},composeSignals=(e,n)=>{const{length:t}=e=e?e.filter(Boolean):[];if(n||t){let r=new AbortController,a;const s=function(d){if(!a){a=!0,l();const f=d instanceof Error?d:this.reason;r.abort(f instanceof AxiosError?f:new CanceledError(f instanceof Error?f.message:f))}};let i=n&&setTimeout(()=>{i=null,s(new AxiosError(`timeout ${n} of ms exceeded`,AxiosError.ETIMEDOUT))},n);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>utils$1.asap(l),c}},streamChunk=function*(e,n){let t=e.byteLength;if(t<n){yield e;return}let r=0,a;for(;r<t;)a=r+n,yield e.slice(r,a),r=a},readBytes=async function*(e,n){for await(const t of readStream(e))yield*streamChunk(t,n)},readStream=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const n=e.getReader();try{for(;;){const{done:t,value:r}=await n.read();if(t)break;yield r}}finally{await n.cancel()}},trackStream=(e,n,t,r)=>{const a=readBytes(e,n);let s=0,i,l=c=>{i||(i=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:f}=await a.next();if(d){l(),c.close();return}let p=f.byteLength;if(t){let v=s+=p;t(v)}c.enqueue(new Uint8Array(f))}catch(d){throw l(d),d}},cancel(c){return l(c),a.return()}},{highWaterMark:2})},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),test=(e,...n)=>{try{return!!e(...n)}catch{return!1}},supportsRequestStream=isReadableStreamSupported&&test(()=>{let e=!1;const n=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n}),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&test(()=>utils$1.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&(e=>e.body)};isFetchSupported&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!resolvers[n]&&(resolvers[n]=utils$1.isFunction(e[n])?t=>t[n]():(t,r)=>{throw new AxiosError(`Response type '${n}' is not supported`,AxiosError.ERR_NOT_SUPPORT,r)})})})(new Response);const getBodyLength=async e=>{if(e==null)return 0;if(utils$1.isBlob(e))return e.size;if(utils$1.isSpecCompliantForm(e))return(await new Request(platform.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(e)||utils$1.isArrayBuffer(e))return e.byteLength;if(utils$1.isURLSearchParams(e)&&(e=e+""),utils$1.isString(e))return(await encodeText(e)).byteLength},resolveBodyLength=async(e,n)=>{const t=utils$1.toFiniteNumber(e.getContentLength());return t??getBodyLength(n)},fetchAdapter=isFetchSupported&&(async e=>{let{url:n,method:t,data:r,signal:a,cancelToken:s,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:d,headers:f,withCredentials:p="same-origin",fetchOptions:v}=resolveConfig(e);d=d?(d+"").toLowerCase():"text";let m=composeSignals([a,s&&s.toAbortSignal()],i),g;const b=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let C;try{if(c&&supportsRequestStream&&t!=="get"&&t!=="head"&&(C=await resolveBodyLength(f,r))!==0){let P=new Request(n,{method:"POST",body:r,duplex:"half"}),O;if(utils$1.isFormData(r)&&(O=P.headers.get("content-type"))&&f.setContentType(O),P.body){const[I,R]=progressEventDecorator(C,progressEventReducer(asyncDecorator(c)));r=trackStream(P.body,DEFAULT_CHUNK_SIZE,I,R)}}utils$1.isString(p)||(p=p?"include":"omit");const w="credentials"in Request.prototype;g=new Request(n,{...v,signal:m,method:t.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:w?p:void 0});let E=await fetch(g);const V=supportsResponseStream&&(d==="stream"||d==="response");if(supportsResponseStream&&(l||V&&b)){const P={};["status","statusText","headers"].forEach(Z=>{P[Z]=E[Z]});const O=utils$1.toFiniteNumber(E.headers.get("content-length")),[I,R]=l&&progressEventDecorator(O,progressEventReducer(asyncDecorator(l),!0))||[];E=new Response(trackStream(E.body,DEFAULT_CHUNK_SIZE,I,()=>{R&&R(),b&&b()}),P)}d=d||"text";let A=await resolvers[utils$1.findKey(resolvers,d)||"text"](E,e);return!V&&b&&b(),await new Promise((P,O)=>{settle(P,O,{data:A,headers:AxiosHeaders.from(E.headers),status:E.status,statusText:E.statusText,config:e,request:g})})}catch(w){throw b&&b(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,g),{cause:w.cause||w}):AxiosError.from(w,w&&w.code,e,g)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const renderReason=e=>`- ${e}`,isResolvedHandle=e=>utils$1.isFunction(e)||e===null||e===!1,adapters={getAdapter:e=>{e=utils$1.isArray(e)?e:[e];const{length:n}=e;let t,r;const a={};for(let s=0;s<n;s++){t=e[s];let i;if(r=t,!isResolvedHandle(t)&&(r=knownAdapters[(i=String(t)).toLowerCase()],r===void 0))throw new AxiosError(`Unknown adapter '${i}'`);if(r)break;a[i||"#"+s]=r}if(!r){const s=Object.entries(a).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=n?s.length>1?`since :
|
|
34
34
|
`+s.map(renderReason).join(`
|
|
35
35
|
`):" "+renderReason(s[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:knownAdapters};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError(null,e)}function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=AxiosHeaders.from(e.headers),e.data=transformData.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(e.adapter||defaults.adapter)(e).then(function(r){return throwIfCancellationRequested(e),r.data=transformData.call(e,e.transformResponse,r),r.headers=AxiosHeaders.from(r.headers),r},function(r){return isCancel(r)||(throwIfCancellationRequested(e),r&&r.response&&(r.response.data=transformData.call(e,e.transformResponse,r.response),r.response.headers=AxiosHeaders.from(r.response.headers))),Promise.reject(r)})}const VERSION="1.7.9",validators$1={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{validators$1[e]=function(r){return typeof r===e||"a"+(n<1?"n ":" ")+e}});const deprecatedWarnings={};validators$1.transitional=function(n,t,r){function a(s,i){return"[Axios v"+VERSION+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,l)=>{if(n===!1)throw new AxiosError(a(i," has been removed"+(t?" in "+t:"")),AxiosError.ERR_DEPRECATED);return t&&!deprecatedWarnings[i]&&(deprecatedWarnings[i]=!0,console.warn(a(i," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(s,i,l):!0}};validators$1.spelling=function(n){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${n}`),!0)};function assertOptions(e,n,t){if(typeof e!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const s=r[a],i=n[s];if(i){const l=e[s],c=l===void 0||i(l,s,e);if(c!==!0)throw new AxiosError("option "+s+" must be "+c,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new AxiosError("Unknown option "+s,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(n){this.defaults=n,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(n,t){try{return await this._request(n,t)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const s=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
36
|
-
`+s):r.stack=s}catch{}}throw r}}_request(n,t){typeof n=="string"?(t=t||{},t.url=n):t=n||{},t=mergeConfig(this.defaults,t);const{transitional:r,paramsSerializer:a,headers:s}=t;r!==void 0&&validator.assertOptions(r,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),a!=null&&(utils$1.isFunction(a)?t.paramsSerializer={serialize:a}:validator.assertOptions(a,{encode:validators.function,serialize:validators.function},!0)),validator.assertOptions(t,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=s&&utils$1.merge(s.common,s[t.method]);s&&utils$1.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),t.headers=AxiosHeaders.concat(i,s);const l=[];let c=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(t)===!1||(c=c&&b.synchronous,l.unshift(b.fulfilled,b.rejected))});const d=[];this.interceptors.response.forEach(function(b){d.push(b.fulfilled,b.rejected)});let f,p=0,v;if(!c){const g=[dispatchRequest.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,d),v=g.length,f=Promise.resolve(t);p<v;)f=f.then(g[p++],g[p++]);return f}v=l.length;let m=t;for(p=0;p<v;){const g=l[p++],b=l[p++];try{m=g(m)}catch(C){b.call(this,C);break}}try{f=dispatchRequest.call(this,m)}catch(g){return Promise.reject(g)}for(p=0,v=d.length;p<v;)f=f.then(d[p++],d[p++]);return f}getUri(n){n=mergeConfig(this.defaults,n);const t=buildFullPath(n.baseURL,n.url);return buildURL(t,n.params,n.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function(n){Axios.prototype[n]=function(t,r){return this.request(mergeConfig(r||{},{method:n,url:t,data:(r||{}).data}))}});utils$1.forEach(["post","put","patch"],function(n){function t(r){return function(s,i,l){return this.request(mergeConfig(l||{},{method:n,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Axios.prototype[n]=t(),Axios.prototype[n+"Form"]=t(!0)});class CancelToken{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});const r=this;this.promise.then(a=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](a);r._listeners=null}),this.promise.then=a=>{let s;const i=new Promise(l=>{r.subscribe(l),s=l}).then(a);return i.cancel=function(){r.unsubscribe(s)},i},n(function(s,i,l){r.reason||(r.reason=new CanceledError(s,i,l),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const t=this._listeners.indexOf(n);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const n=new AbortController,t=r=>{n.abort(r)};return this.subscribe(t),n.signal.unsubscribe=()=>this.unsubscribe(t),n.signal}static source(){let n;return{token:new CancelToken(function(a){n=a}),cancel:n}}}function spread(e){return function(t){return e.apply(null,t)}}function isAxiosError(e){return utils$1.isObject(e)&&e.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([e,n])=>{HttpStatusCode[n]=e});function createInstance(e){const n=new Axios(e),t=bind$1(Axios.prototype.request,n);return utils$1.extend(t,Axios.prototype,n,{allOwnKeys:!0}),utils$1.extend(t,n,null,{allOwnKeys:!0}),t.create=function(a){return createInstance(mergeConfig(e,a))},t}const axios=createInstance(defaults);axios.Axios=Axios;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(n){return Promise.all(n)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders;axios.formToJSON=e=>formDataToJSON(utils$1.isHTMLForm(e)?new FormData(e):e);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode;axios.default=axios;const _sfc_main$1N={name:"VsCannedSearch",status:"prototype",release:"0.0.1",components:{VsCannedSearchProductCard,VsCannedSearchStars,VsCannedSearchLogos,VsCannedSearchCategories,VsCannedSearchPrice,VsCannedSearchDuration,VsCannedSearchSummaryBox,VsCannedSearchDates,VsCannedSearchBadges,VsCannedSearchCuisines,VsCannedSearchSubHeading,VsCannedSearchTourRuns,VsCannedSearchTourDeparts,VsCarousel,VsContainer,VsRow,VsCol,VsModuleWrapper},props:{apiUrl:{type:String,default:""},searchType:{type:String,default:""},heading:{type:String,default:""},carouselNextText:{type:String,default:"Next slide"},carouselPreviousText:{type:String,default:"Previous slide"}},data(){return{products:[]}},computed:{showLogos(){for(let e=0;e<this.products.length;e++){const n=this.products[e];if(n.awards&&n.awards.length||n.accessGuide||n.covidInformation&&n.covidInformation.goodToGo||n.covidInformation&&n.covidInformation.safeTravels)return!0}return!1}},mounted(){this.apiUrl&&this.retrieveProducts()},methods:{retrieveProducts(){axios.get(this.apiUrl).then(e=>{this.products=e.data.data.products}).catch(()=>{this.products=[]})},fetchSubHeading(e){return this.searchType==="tour"?this.fetchCategoryStrings(e):this.fetchAddress(e)},fetchCategoryStrings(e){return e.category&&e.category.length?e.category.map(n=>n.name).join(", "):""},fetchAddress(e){return e.onlineEvent?e.onlineEvent:e.address?this.searchType==="even"?`${e.eventVenue}, ${e.address.city}`:`${e.address.city}, ${e.address.county}`:""},fetchBadgeOne(e){return this.searchType!=="tour"&&e.category&&e.category.length&&e.category[0]?e.category[0].name:null},fetchMultiBadgeOne(e){return this.searchType==="tour"&&e.tourVehicles&&e.tourVehicles.length?e.tourVehicles.map(n=>n.name):null},fetchBadgeThree(e){return e.covidInformation&&e.covidInformation.weAreOpen?e.covidInformation.weAreOpen:e.opening&&e.opening.nowOn?e.opening.nowOn:""}}},_hoisted_1$1q={class:"vs-canned-search","data-test":"vs-canned-search"};function _sfc_render$1E(e,n,t,r,a,s){const i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer"),d=vue.resolveComponent("VsCannedSearchTourRuns"),f=vue.resolveComponent("VsCannedSearchTourDeparts"),p=vue.resolveComponent("VsCannedSearchSubHeading"),v=vue.resolveComponent("VsCannedSearchStars"),m=vue.resolveComponent("VsCannedSearchCategories"),g=vue.resolveComponent("VsCannedSearchLogos"),b=vue.resolveComponent("VsCannedSearchBadges"),C=vue.resolveComponent("VsCannedSearchDates"),w=vue.resolveComponent("VsCannedSearchDuration"),E=vue.resolveComponent("VsCannedSearchPrice"),V=vue.resolveComponent("VsCannedSearchCuisines"),A=vue.resolveComponent("VsCannedSearchSummaryBox"),$=vue.resolveComponent("VsCannedSearchProductCard"),O=vue.resolveComponent("VsCarousel"),I=vue.resolveComponent("VsModuleWrapper");return vue.withDirectives((vue.openBlock(),vue.createBlock(I,null,vue.createSlots({default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1q,[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-canned-search__buttons"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-buttons")]),_:3})]),_:3})]),_:3}),a.products.length?(vue.openBlock(),vue.createBlock(O,{key:0,"next-text":t.carouselNextText,"prev-text":t.carouselPreviousText,"slides-xs":1,"slides-md":2,"slides-lg":3},{"vs-carousel-of":vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-of")]),default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.products,(L,Z)=>(vue.openBlock(),vue.createBlock($,{key:Z,"slide-index":""+Z,"img-src":L.images?L.images[0].mediaUrl:"",title:L.name,"detail-link":{link:L.productLink.link,label:L.productLink.label,type:L.productLink.type.toLowerCase()},description:L.description,"search-type":t.searchType},vue.createSlots({"vs-canned-search-sub-heading":vue.withCtx(()=>[vue.createVNode(p,{"sub-heading":s.fetchSubHeading(L),"line-limit":t.searchType==="tour"?1:2},null,8,["sub-heading","line-limit"])]),"vs-canned-search-badges":vue.withCtx(()=>[vue.createVNode(b,{"badge-one":s.fetchBadgeOne(L),"multi-badge-one":s.fetchMultiBadgeOne(L),"badge-two":L.offers,"badge-three":s.fetchBadgeThree(L)},null,8,["badge-one","multi-badge-one","badge-two","badge-three"])]),"vs-canned-search-summary":vue.withCtx(()=>[vue.createVNode(A,{"link-href":L.website.link,"link-type":L.website.type,"link-label":L.website.label,"link-title":L.name},vue.createSlots({"vs-canned-search-summary-left":vue.withCtx(()=>[t.searchType==="tour"&&L.tourLength?(vue.openBlock(),vue.createBlock(w,{key:0,"duration-intro":L.tourLength.label,duration:L.tourLength.value},null,8,["duration-intro","duration"])):L.price&&t.searchType!=="tour"?(vue.openBlock(),vue.createBlock(E,{key:1,"price-intro":L.price.priceLabel,price:L.price.price,"price-outro":L.price.priceBasis},null,8,["price-intro","price","price-outro"])):L.cuisines?(vue.openBlock(),vue.createBlock(V,{key:2,cuisines:L.cuisines},null,8,["cuisines"])):vue.createCommentVNode("",!0)]),_:2},[L.opening&&t.searchType!=="tour"?{name:"vs-canned-search-summary-top",fn:vue.withCtx(()=>[vue.createVNode(C,{period:L.opening.period,label:L.opening.period.label},null,8,["period","label"])]),key:"0"}:void 0,L.price&&t.searchType==="tour"?{name:"vs-canned-search-summary-centre",fn:vue.withCtx(()=>[vue.createVNode(E,{"price-intro":L.price.priceLabel,price:L.price.price,"price-outro":L.price.priceBasis},null,8,["price-intro","price","price-outro"])]),key:"1"}:void 0]),1032,["link-href","link-type","link-label","link-title"])]),_:2},[t.searchType==="tour"?{name:"vs-canned-search-tour-info",fn:vue.withCtx(()=>[vue.createElementVNode("div",null,[L.opening&&L.opening.period&&L.opening.period.startDay?(vue.openBlock(),vue.createBlock(d,{key:0,label:L.opening.period.label,"start-day":L.opening.period.startDay,"end-day":L.opening.period.endDay},null,8,["label","start-day","end-day"])):vue.createCommentVNode("",!0),L.tourOrigin&&L.tourOrigin.tourOrigin?(vue.openBlock(),vue.createBlock(f,{key:1,label:L.tourOrigin.label,origins:L.tourOrigin.tourOrigin},null,8,["label","origins"])):vue.createCommentVNode("",!0)])]),key:"0"}:void 0,L.grading?{name:"vs-canned-search-star-rating",fn:vue.withCtx(()=>[vue.createVNode(v,{min:L.grading.minStars,max:L.grading.maxStars},null,8,["min","max"])]),key:"1"}:void 0,L.locations?{name:"vs-canned-search-categories",fn:vue.withCtx(()=>[vue.createVNode(m,{categories:L.locations},null,8,["categories"])]),key:"2"}:void 0,s.showLogos?{name:"vs-canned-search-logos",fn:vue.withCtx(()=>[vue.createVNode(g,{"good-to-go-logo":L.covidInformation&&L.covidInformation.goodToGo?L.covidInformation.goodToGo:null,"safe-travels-logo":L.covidInformation&&L.covidInformation.safeTravels?L.covidInformation.safeTravels:null,"access-guide":L.accessGuide||null,awards:L.awards},null,8,["good-to-go-logo","safe-travels-logo","access-guide","awards"])]),key:"3"}:void 0]),1032,["slide-index","img-src","title","detail-link","description","search-type"]))),128))]),_:3},8,["next-text","prev-text"])):vue.createCommentVNode("",!0),e.$slots["vs-canned-search-credit"]?(vue.openBlock(),vue.createBlock(c,{key:1,class:"vs-canned-search__credit-container"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-credit")]),_:3})):vue.createCommentVNode("",!0)])]),_:2},[t.heading?{name:"vs-module-wrapper-heading",fn:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.heading),1)]),key:"0"}:void 0,e.$slots["vs-canned-search-intro"]?{name:"vs-module-wrapper-intro",fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-intro")]),key:"1"}:void 0]),1536)),[[vue.vShow,a.products.length]])}const CannedSearch=_export_sfc(_sfc_main$1N,[["render",_sfc_render$1E]]),font_weight_bold="700",font_weight_semi_bold="600",font_weight_normal="400",font_weight_light="300",icon_size_xxs="12px",icon_size_xs="16px",icon_size_sm="20px",icon_size_md="24px",icon_size_lg="30px",icon_size_xl="40px",opacity_100="1",opacity_50="0.5",opacity_0="0",duration_quickly=".08s",duration_base=".2s",duration_slowly=".5s",breakpoint_xl="1200px",breakpoint_md="768px",max_container_width_xl="1140px",breakpoint_sm="576px",breakpoint_lg="992px",breakpoint_xs="0",max_container_width_md="720px",max_container_width_sm="540px",max_container_width_lg="960px",max_container_width_xxl="1340px",breakpoint_xxl="1400px",letter_spacing_xxl="2px",letter_spacing_xl="1.4px",letter_spacing_l="1px",letter_spacing_m="0.5px",letter_spacing_s="-0.5px",letter_spacing_xs="-1px",border_radius_default="0.25rem",border_radius_xl="0.5rem",border_radius_lg="0.3rem",border_radius_sm="0.2rem",border_radius_pill="50rem",line_height_m="1.6",line_height_xl="2",line_height_s="1.3",line_height_xs="1",line_height_lead="1.55",line_height_standard="1.2",line_height_l="1.8",grid_columns="12",grid_gutter_width="24px",no_javascript="no-js",theme_dark="rgb(42, 40, 41)",theme_grey="rgb(239, 239, 239)",designTokens={"vs-color-background-primary":"rgb(255, 255, 255)","vs-color-background-secondary":"rgb(242, 242, 248)","vs-color-background-bold":"rgb(32, 15, 46)","vs-color-interaction-cta-subtle":"rgba(0, 0, 0, 0)","vs-color-background-brand":"rgb(91, 36, 135)","vs-color-background-inverse":"rgb(255, 255, 255)","vs-color-background-highlight":"rgb(168, 48, 140)","vs-color-background-information":"rgb(229, 229, 240)","vs-color-background-success":"rgb(3, 170, 70)","vs-color-background-warning":"rgb(253, 236, 83)","vs-color-background-error":"rgb(148, 15, 44)","vs-color-background-accent-heather-80":"rgb(51, 34, 93)","vs-color-background-accent-heather-30":"rgb(163, 163, 204)","vs-color-background-accent-tolsta-40":"rgb(20, 161, 158)","vs-color-background-accent-gorse-05":"rgb(255, 250, 153)","vs-color-border-primary":"rgb(233, 233, 233)","vs-color-border-secondary":"rgb(163, 163, 204)","vs-color-border-inverse":"rgb(255, 255, 255)","vs-color-border-input":"rgb(83, 83, 150)","vs-color-border-highlight":"rgb(168, 48, 140)","vs-color-border-success":"rgb(3, 170, 70)","vs-color-border-warning":"rgb(253, 236, 83)","vs-color-border-error":"rgb(148, 15, 44)","vs-color-border-disabled":"rgb(144, 144, 144)","vs-color-icon-primary":"rgb(32, 15, 46)","vs-color-icon-secondary":"rgb(96, 96, 96)","vs-color-icon-inverse":"rgb(255, 255, 255)","vs-color-icon-cta-on-light":"rgb(31, 73, 214)","vs-color-icon-highlight":"rgb(168, 48, 140)","vs-color-icon-success":"rgb(3, 170, 70)","vs-color-icon-warning":"rgb(253, 236, 83)","vs-color-icon-error":"rgb(148, 15, 44)","vs-color-icon-disabled":"rgb(144, 144, 144)","vs-color-icon-accent-saltire-30":"rgb(133, 173, 255)","vs-color-icon-ski-easy":"rgb(3, 135, 55)","vs-color-icon-ski-intermediate":"rgb(23, 53, 156)","vs-color-icon-ski-difficult":"rgb(194, 20, 58)","vs-color-icon-ski-very-difficult":"rgb(51, 51, 51)","vs-color-icon-ski-itineraries":"rgb(255, 173, 102)","vs-color-icon-ski-other":"rgb(163, 163, 204)","vs-color-icon-accent-loch-ness":"rgb(18, 43, 128)","vs-color-icon-accent-grey-02":"rgb(117, 109, 148)","vs-color-icon-accent-saltire":"rgb(31, 73, 214)","vs-color-icon-accent-bramble":"rgb(168, 48, 140)","vs-color-icon-accent-heather":"rgb(35, 1, 74)","vs-color-icon-accent-whisky":"rgb(241, 135, 1)","vs-color-icon-accent-cranachan":"rgb(255, 71, 111)","vs-color-icon-accent-buachaille":"rgb(255, 212, 0)","vs-color-interaction-focus":"rgb(51, 105, 255)","vs-color-interaction-focus-on-bold":"rgb(255, 250, 153)","vs-color-interaction-cta-primary":"rgb(31, 73, 214)","vs-color-interaction-cta-secondary":"rgb(255, 255, 255)","vs-color-interaction-cta-hover":"rgb(23, 53, 156)","vs-color-interaction-cta-pressed":"rgb(17, 40, 118)","vs-color-interaction-cta-disabled":"rgb(233, 233, 233)","vs-color-interaction-cta-subtle-hover":"rgb(214, 229, 255)","vs-color-interaction-cta-subtle-pressed":"rgb(51, 105, 255)","vs-color-interaction-link-primary":"rgb(31, 73, 214)","vs-color-interaction-link-active":"rgb(17, 40, 118)","vs-color-interaction-link-visited":"rgb(168, 48, 140)","vs-color-interaction-link-disabled":"rgb(144, 144, 144)","vs-color-interaction-link-visited-on-bold":"rgb(214, 229, 255)","vs-color-text-primary":"rgb(32, 15, 46)","vs-color-text-secondary":"rgb(96, 96, 96)","vs-color-text-tertiary":"rgb(83, 83, 150)","vs-color-text-inverse":"rgb(255, 255, 255)","vs-color-text-cta-on-light":"rgb(31, 73, 214)","vs-color-text-highlight":"rgb(168, 48, 140)","vs-color-text-brand":"rgb(91, 36, 135)","vs-color-text-error":"rgb(148, 15, 44)","vs-color-text-success":"rgb(3, 170, 70)","vs-color-text-disabled":"rgb(144, 144, 144)","vs-elevation-shadow-raised":"0px 1px 2px 0px rgba(0, 0, 0, 0.30), 0px 1px 3px 1px rgba(0, 0, 0, 0.15)","vs-elevation-shadow-overlay":"0px 1px 2px 0px rgba(0, 0, 0, 0.30), 0px 2px 6px 2px rgba(0, 0, 0, 0.15)","vs-elevation-surface":"#ffffff","vs-elevation-surface-section":"#F2F2F8","vs-elevation-surface-raised":"#ffffff","vs-elevation-surface-overlay":"#ffffff","font-size-1":"0.625rem","font-size-2":"0.75rem","font-size-3":"0.875rem","font-size-4":"1rem","font-size-5":"1.125rem","font-size-6":"1.25rem","font-size-7":"1.375rem","font-size-8":"1.5rem","font-size-9":"1.875rem","font-size-10":"2.5rem","font-size-body":"1rem","font-size-body-md":"1.125rem","font-size-lead":"1.125rem","font-size-lead-md":"1.25rem","font-size-teaser":"1rem",font_weight_bold,font_weight_semi_bold,font_weight_normal,font_weight_light,"font-family-sans-serif":"'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'","display-font-family":"'evelethclean-regular', sans-serif, $font-family-sans-serif",icon_size_xxs,icon_size_xs,icon_size_sm,icon_size_md,icon_size_lg,icon_size_xl,opacity_100,opacity_50,opacity_0,duration_quickly,duration_base,duration_slowly,breakpoint_xl,breakpoint_md,max_container_width_xl,breakpoint_sm,breakpoint_lg,breakpoint_xs,max_container_width_md,max_container_width_sm,max_container_width_lg,max_container_width_xxl,breakpoint_xxl,"vs-box-shadow-focus":"0 0 0 2px $vs-color-interaction-focus","vs-box-shadow-focus-on-dark":"0 0 0 2px $vs-color-interaction-focus-on-bold","display-l":"2.875rem","display-m":"2.5625rem","display-s":"2rem","display-xs":"1.4375rem","heading-xxl":"2.5625rem","heading-xl":"2.25rem","heading-l":"2rem","heading-m":"1.8125rem","heading-s":"1.625rem","heading-xs":"1.4375rem","heading-xxs":"1.25rem","sub-heading-l":"1.4375rem","sub-heading-m":"1.25rem","sub-heading-s":"1.125rem",letter_spacing_xxl,letter_spacing_xl,letter_spacing_l,letter_spacing_m,letter_spacing_s,letter_spacing_xs,border_radius_default,border_radius_xl,border_radius_lg,border_radius_sm,border_radius_pill,"spacer-0":"0","spacer-0125":"0.125rem","spacer-025":"0.25rem","spacer-050":"0.5rem","spacer-075":"0.75rem","spacer-100":"1rem","spacer-125":"1.25rem","spacer-150":"1.5rem","spacer-175":"1.75rem","spacer-200":"2rem","spacer-250":"2.5rem","spacer-300":"3rem","spacer-400":"4rem","spacer-500":"5rem","spacer-600":"6rem","spacer-700":"7rem",line_height_m,line_height_xl,line_height_s,"line-height-sub-heading":"1.3",line_height_xs,line_height_lead,line_height_standard,"line-height-body":"1.5","line-height-heading":"1.2",line_height_l,grid_columns,grid_gutter_width,no_javascript,theme_dark,theme_grey,"tracking-heading":"-0.01em","tracking-sub-heading":"0em","tracking-body":"0.01em"},_sfc_main$1M={name:"VsCaptionImageMap",status:"prototype",release:"0.0.1",props:{latitude:{type:String,default:""},longitude:{type:String,default:""},mapOutlineColor:{type:String,default:"#191919"},mapMarkerColor:{type:String,default:"#191919"}},data(){return{cornerCoordinates:{NE:61.3,NW:54.4,SE:-9.1,SW:.4},mapWidth:75,mapHeight:104}},computed:{positionY(){const e=Number(this.latitude);return Math.round(this.calculateAxisPosition(this.cornerCoordinates.NE,this.cornerCoordinates.NW,e,this.mapHeight))},positionX(){const e=Number(this.longitude);return Math.round(this.calculateAxisPosition(this.cornerCoordinates.SE,this.cornerCoordinates.SW,e,this.mapWidth))}},methods:{calculateAxisPosition(e,n,t,r){return(t-e)*r/(n-e)}}},_hoisted_1$1p=["width","height"],_hoisted_2$Z=["stroke"],_hoisted_3$M=["stroke"],_hoisted_4$B=["stroke"],_hoisted_5$q=["stroke"],_hoisted_6$g=["stroke"],_hoisted_7$b=["stroke"],_hoisted_8$4=["stroke"],_hoisted_9$4=["stroke"],_hoisted_10$4=["stroke"],_hoisted_11$3=["stroke"],_hoisted_12$3=["stroke"],_hoisted_13$3=["stroke"],_hoisted_14$2=["stroke"],_hoisted_15$2=["stroke"],_hoisted_16$2=["stroke"],_hoisted_17$2=["stroke"],_hoisted_18$1=["stroke"],_hoisted_19$1=["stroke"],_hoisted_20$1=["stroke"],_hoisted_21=["stroke"],_hoisted_22=["stroke"],_hoisted_23=["stroke"],_hoisted_24=["stroke"],_hoisted_25=["stroke"],_hoisted_26=["stroke"],_hoisted_27=["stroke"],_hoisted_28=["stroke"],_hoisted_29=["stroke"],_hoisted_30=["stroke"],_hoisted_31=["stroke"],_hoisted_32=["width","height"],_hoisted_33=["fill","cx","cy"];function _sfc_render$1D(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:a.mapWidth,height:a.mapHeight,viewBox:"0 0 76 105.9",class:"vs-caption-image-map","data-test":"vs-caption-image-map"},[vue.createElementVNode("path",{"data-test":"vs-caption-image-map__first-path",d:"M65.9965,9.0973l-.167.736.668.184Z",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_2$Z),vue.createElementVNode("path",{d:`M64.6595,9.4653l-.668,2.391,\r
|
|
36
|
+
`+s):r.stack=s}catch{}}throw r}}_request(n,t){typeof n=="string"?(t=t||{},t.url=n):t=n||{},t=mergeConfig(this.defaults,t);const{transitional:r,paramsSerializer:a,headers:s}=t;r!==void 0&&validator.assertOptions(r,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),a!=null&&(utils$1.isFunction(a)?t.paramsSerializer={serialize:a}:validator.assertOptions(a,{encode:validators.function,serialize:validators.function},!0)),validator.assertOptions(t,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=s&&utils$1.merge(s.common,s[t.method]);s&&utils$1.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),t.headers=AxiosHeaders.concat(i,s);const l=[];let c=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(t)===!1||(c=c&&b.synchronous,l.unshift(b.fulfilled,b.rejected))});const d=[];this.interceptors.response.forEach(function(b){d.push(b.fulfilled,b.rejected)});let f,p=0,v;if(!c){const g=[dispatchRequest.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,d),v=g.length,f=Promise.resolve(t);p<v;)f=f.then(g[p++],g[p++]);return f}v=l.length;let m=t;for(p=0;p<v;){const g=l[p++],b=l[p++];try{m=g(m)}catch(C){b.call(this,C);break}}try{f=dispatchRequest.call(this,m)}catch(g){return Promise.reject(g)}for(p=0,v=d.length;p<v;)f=f.then(d[p++],d[p++]);return f}getUri(n){n=mergeConfig(this.defaults,n);const t=buildFullPath(n.baseURL,n.url);return buildURL(t,n.params,n.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function(n){Axios.prototype[n]=function(t,r){return this.request(mergeConfig(r||{},{method:n,url:t,data:(r||{}).data}))}});utils$1.forEach(["post","put","patch"],function(n){function t(r){return function(s,i,l){return this.request(mergeConfig(l||{},{method:n,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Axios.prototype[n]=t(),Axios.prototype[n+"Form"]=t(!0)});class CancelToken{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});const r=this;this.promise.then(a=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](a);r._listeners=null}),this.promise.then=a=>{let s;const i=new Promise(l=>{r.subscribe(l),s=l}).then(a);return i.cancel=function(){r.unsubscribe(s)},i},n(function(s,i,l){r.reason||(r.reason=new CanceledError(s,i,l),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const t=this._listeners.indexOf(n);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const n=new AbortController,t=r=>{n.abort(r)};return this.subscribe(t),n.signal.unsubscribe=()=>this.unsubscribe(t),n.signal}static source(){let n;return{token:new CancelToken(function(a){n=a}),cancel:n}}}function spread(e){return function(t){return e.apply(null,t)}}function isAxiosError(e){return utils$1.isObject(e)&&e.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([e,n])=>{HttpStatusCode[n]=e});function createInstance(e){const n=new Axios(e),t=bind$1(Axios.prototype.request,n);return utils$1.extend(t,Axios.prototype,n,{allOwnKeys:!0}),utils$1.extend(t,n,null,{allOwnKeys:!0}),t.create=function(a){return createInstance(mergeConfig(e,a))},t}const axios=createInstance(defaults);axios.Axios=Axios;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(n){return Promise.all(n)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders;axios.formToJSON=e=>formDataToJSON(utils$1.isHTMLForm(e)?new FormData(e):e);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode;axios.default=axios;const _sfc_main$1N={name:"VsCannedSearch",status:"prototype",release:"0.0.1",components:{VsCannedSearchProductCard,VsCannedSearchStars,VsCannedSearchLogos,VsCannedSearchCategories,VsCannedSearchPrice,VsCannedSearchDuration,VsCannedSearchSummaryBox,VsCannedSearchDates,VsCannedSearchBadges,VsCannedSearchCuisines,VsCannedSearchSubHeading,VsCannedSearchTourRuns,VsCannedSearchTourDeparts,VsCarousel,VsContainer,VsRow,VsCol,VsModuleWrapper},props:{apiUrl:{type:String,default:""},searchType:{type:String,default:""},heading:{type:String,default:""},carouselNextText:{type:String,default:"Next slide"},carouselPreviousText:{type:String,default:"Previous slide"}},data(){return{products:[]}},computed:{showLogos(){for(let e=0;e<this.products.length;e++){const n=this.products[e];if(n.awards&&n.awards.length||n.accessGuide||n.covidInformation&&n.covidInformation.goodToGo||n.covidInformation&&n.covidInformation.safeTravels)return!0}return!1}},mounted(){this.apiUrl&&this.retrieveProducts()},methods:{retrieveProducts(){axios.get(this.apiUrl).then(e=>{this.products=e.data.data.products}).catch(()=>{this.products=[]})},fetchSubHeading(e){return this.searchType==="tour"?this.fetchCategoryStrings(e):this.fetchAddress(e)},fetchCategoryStrings(e){return e.category&&e.category.length?e.category.map(n=>n.name).join(", "):""},fetchAddress(e){return e.onlineEvent?e.onlineEvent:e.address?this.searchType==="even"?`${e.eventVenue}, ${e.address.city}`:`${e.address.city}, ${e.address.county}`:""},fetchBadgeOne(e){return this.searchType!=="tour"&&e.category&&e.category.length&&e.category[0]?e.category[0].name:null},fetchMultiBadgeOne(e){return this.searchType==="tour"&&e.tourVehicles&&e.tourVehicles.length?e.tourVehicles.map(n=>n.name):null},fetchBadgeThree(e){return e.covidInformation&&e.covidInformation.weAreOpen?e.covidInformation.weAreOpen:e.opening&&e.opening.nowOn?e.opening.nowOn:""}}},_hoisted_1$1q={class:"vs-canned-search","data-test":"vs-canned-search"};function _sfc_render$1E(e,n,t,r,a,s){const i=vue.resolveComponent("VsCol"),l=vue.resolveComponent("VsRow"),c=vue.resolveComponent("VsContainer"),d=vue.resolveComponent("VsCannedSearchTourRuns"),f=vue.resolveComponent("VsCannedSearchTourDeparts"),p=vue.resolveComponent("VsCannedSearchSubHeading"),v=vue.resolveComponent("VsCannedSearchStars"),m=vue.resolveComponent("VsCannedSearchCategories"),g=vue.resolveComponent("VsCannedSearchLogos"),b=vue.resolveComponent("VsCannedSearchBadges"),C=vue.resolveComponent("VsCannedSearchDates"),w=vue.resolveComponent("VsCannedSearchDuration"),E=vue.resolveComponent("VsCannedSearchPrice"),V=vue.resolveComponent("VsCannedSearchCuisines"),A=vue.resolveComponent("VsCannedSearchSummaryBox"),P=vue.resolveComponent("VsCannedSearchProductCard"),O=vue.resolveComponent("VsCarousel"),I=vue.resolveComponent("VsModuleWrapper");return vue.withDirectives((vue.openBlock(),vue.createBlock(I,null,vue.createSlots({default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1q,[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-canned-search__buttons"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-buttons")]),_:3})]),_:3})]),_:3}),a.products.length?(vue.openBlock(),vue.createBlock(O,{key:0,"next-text":t.carouselNextText,"prev-text":t.carouselPreviousText,"slides-xs":1,"slides-md":2,"slides-lg":3},{"vs-carousel-of":vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-of")]),default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.products,(R,Z)=>(vue.openBlock(),vue.createBlock(P,{key:Z,"slide-index":""+Z,"img-src":R.images?R.images[0].mediaUrl:"",title:R.name,"detail-link":{link:R.productLink.link,label:R.productLink.label,type:R.productLink.type.toLowerCase()},description:R.description,"search-type":t.searchType},vue.createSlots({"vs-canned-search-sub-heading":vue.withCtx(()=>[vue.createVNode(p,{"sub-heading":s.fetchSubHeading(R),"line-limit":t.searchType==="tour"?1:2},null,8,["sub-heading","line-limit"])]),"vs-canned-search-badges":vue.withCtx(()=>[vue.createVNode(b,{"badge-one":s.fetchBadgeOne(R),"multi-badge-one":s.fetchMultiBadgeOne(R),"badge-two":R.offers,"badge-three":s.fetchBadgeThree(R)},null,8,["badge-one","multi-badge-one","badge-two","badge-three"])]),"vs-canned-search-summary":vue.withCtx(()=>[vue.createVNode(A,{"link-href":R.website.link,"link-type":R.website.type,"link-label":R.website.label,"link-title":R.name},vue.createSlots({"vs-canned-search-summary-left":vue.withCtx(()=>[t.searchType==="tour"&&R.tourLength?(vue.openBlock(),vue.createBlock(w,{key:0,"duration-intro":R.tourLength.label,duration:R.tourLength.value},null,8,["duration-intro","duration"])):R.price&&t.searchType!=="tour"?(vue.openBlock(),vue.createBlock(E,{key:1,"price-intro":R.price.priceLabel,price:R.price.price,"price-outro":R.price.priceBasis},null,8,["price-intro","price","price-outro"])):R.cuisines?(vue.openBlock(),vue.createBlock(V,{key:2,cuisines:R.cuisines},null,8,["cuisines"])):vue.createCommentVNode("",!0)]),_:2},[R.opening&&t.searchType!=="tour"?{name:"vs-canned-search-summary-top",fn:vue.withCtx(()=>[vue.createVNode(C,{period:R.opening.period,label:R.opening.period.label},null,8,["period","label"])]),key:"0"}:void 0,R.price&&t.searchType==="tour"?{name:"vs-canned-search-summary-centre",fn:vue.withCtx(()=>[vue.createVNode(E,{"price-intro":R.price.priceLabel,price:R.price.price,"price-outro":R.price.priceBasis},null,8,["price-intro","price","price-outro"])]),key:"1"}:void 0]),1032,["link-href","link-type","link-label","link-title"])]),_:2},[t.searchType==="tour"?{name:"vs-canned-search-tour-info",fn:vue.withCtx(()=>[vue.createElementVNode("div",null,[R.opening&&R.opening.period&&R.opening.period.startDay?(vue.openBlock(),vue.createBlock(d,{key:0,label:R.opening.period.label,"start-day":R.opening.period.startDay,"end-day":R.opening.period.endDay},null,8,["label","start-day","end-day"])):vue.createCommentVNode("",!0),R.tourOrigin&&R.tourOrigin.tourOrigin?(vue.openBlock(),vue.createBlock(f,{key:1,label:R.tourOrigin.label,origins:R.tourOrigin.tourOrigin},null,8,["label","origins"])):vue.createCommentVNode("",!0)])]),key:"0"}:void 0,R.grading?{name:"vs-canned-search-star-rating",fn:vue.withCtx(()=>[vue.createVNode(v,{min:R.grading.minStars,max:R.grading.maxStars},null,8,["min","max"])]),key:"1"}:void 0,R.locations?{name:"vs-canned-search-categories",fn:vue.withCtx(()=>[vue.createVNode(m,{categories:R.locations},null,8,["categories"])]),key:"2"}:void 0,s.showLogos?{name:"vs-canned-search-logos",fn:vue.withCtx(()=>[vue.createVNode(g,{"good-to-go-logo":R.covidInformation&&R.covidInformation.goodToGo?R.covidInformation.goodToGo:null,"safe-travels-logo":R.covidInformation&&R.covidInformation.safeTravels?R.covidInformation.safeTravels:null,"access-guide":R.accessGuide||null,awards:R.awards},null,8,["good-to-go-logo","safe-travels-logo","access-guide","awards"])]),key:"3"}:void 0]),1032,["slide-index","img-src","title","detail-link","description","search-type"]))),128))]),_:3},8,["next-text","prev-text"])):vue.createCommentVNode("",!0),e.$slots["vs-canned-search-credit"]?(vue.openBlock(),vue.createBlock(c,{key:1,class:"vs-canned-search__credit-container"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-credit")]),_:3})):vue.createCommentVNode("",!0)])]),_:2},[t.heading?{name:"vs-module-wrapper-heading",fn:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.heading),1)]),key:"0"}:void 0,e.$slots["vs-canned-search-intro"]?{name:"vs-module-wrapper-intro",fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-canned-search-intro")]),key:"1"}:void 0]),1536)),[[vue.vShow,a.products.length]])}const CannedSearch=_export_sfc(_sfc_main$1N,[["render",_sfc_render$1E]]),font_weight_bold="700",font_weight_semi_bold="600",font_weight_normal="400",font_weight_light="300",icon_size_xxs="12px",icon_size_xs="16px",icon_size_sm="20px",icon_size_md="24px",icon_size_lg="30px",icon_size_xl="40px",opacity_100="1",opacity_50="0.5",opacity_0="0",duration_quickly=".08s",duration_base=".2s",duration_slowly=".5s",breakpoint_xl="1200px",breakpoint_md="768px",max_container_width_xl="1140px",breakpoint_sm="576px",breakpoint_lg="992px",breakpoint_xs="0",max_container_width_md="720px",max_container_width_sm="540px",max_container_width_lg="960px",max_container_width_xxl="1340px",breakpoint_xxl="1400px",letter_spacing_xxl="2px",letter_spacing_xl="1.4px",letter_spacing_l="1px",letter_spacing_m="0.5px",letter_spacing_s="-0.5px",letter_spacing_xs="-1px",border_radius_default="0.25rem",border_radius_xl="0.5rem",border_radius_lg="0.3rem",border_radius_sm="0.2rem",border_radius_pill="50rem",line_height_m="1.6",line_height_xl="2",line_height_s="1.3",line_height_xs="1",line_height_lead="1.55",line_height_standard="1.2",line_height_l="1.8",grid_columns="12",grid_gutter_width="24px",no_javascript="no-js",theme_dark="rgb(42, 40, 41)",theme_grey="rgb(239, 239, 239)",designTokens={"vs-color-background-primary":"rgb(255, 255, 255)","vs-color-background-secondary":"rgb(242, 242, 248)","vs-color-background-bold":"rgb(32, 15, 46)","vs-color-interaction-cta-subtle":"rgba(0, 0, 0, 0)","vs-color-background-brand":"rgb(91, 36, 135)","vs-color-background-inverse":"rgb(255, 255, 255)","vs-color-background-highlight":"rgb(168, 48, 140)","vs-color-background-information":"rgb(229, 229, 240)","vs-color-background-success":"rgb(3, 170, 70)","vs-color-background-warning":"rgb(253, 236, 83)","vs-color-background-error":"rgb(148, 15, 44)","vs-color-background-accent-heather-80":"rgb(51, 34, 93)","vs-color-background-accent-heather-30":"rgb(163, 163, 204)","vs-color-background-accent-tolsta-40":"rgb(20, 161, 158)","vs-color-background-accent-gorse-05":"rgb(255, 250, 153)","vs-color-border-primary":"rgb(233, 233, 233)","vs-color-border-secondary":"rgb(163, 163, 204)","vs-color-border-inverse":"rgb(255, 255, 255)","vs-color-border-input":"rgb(83, 83, 150)","vs-color-border-highlight":"rgb(168, 48, 140)","vs-color-border-success":"rgb(3, 170, 70)","vs-color-border-warning":"rgb(253, 236, 83)","vs-color-border-error":"rgb(148, 15, 44)","vs-color-border-disabled":"rgb(144, 144, 144)","vs-color-icon-primary":"rgb(32, 15, 46)","vs-color-icon-secondary":"rgb(96, 96, 96)","vs-color-icon-inverse":"rgb(255, 255, 255)","vs-color-icon-cta-on-light":"rgb(31, 73, 214)","vs-color-icon-highlight":"rgb(168, 48, 140)","vs-color-icon-success":"rgb(3, 170, 70)","vs-color-icon-warning":"rgb(253, 236, 83)","vs-color-icon-error":"rgb(148, 15, 44)","vs-color-icon-disabled":"rgb(144, 144, 144)","vs-color-icon-accent-saltire-30":"rgb(133, 173, 255)","vs-color-icon-ski-easy":"rgb(3, 135, 55)","vs-color-icon-ski-intermediate":"rgb(23, 53, 156)","vs-color-icon-ski-difficult":"rgb(194, 20, 58)","vs-color-icon-ski-very-difficult":"rgb(51, 51, 51)","vs-color-icon-ski-itineraries":"rgb(255, 173, 102)","vs-color-icon-ski-other":"rgb(163, 163, 204)","vs-color-icon-accent-loch-ness":"rgb(18, 43, 128)","vs-color-icon-accent-grey-02":"rgb(117, 109, 148)","vs-color-icon-accent-saltire":"rgb(31, 73, 214)","vs-color-icon-accent-bramble":"rgb(168, 48, 140)","vs-color-icon-accent-heather":"rgb(35, 1, 74)","vs-color-icon-accent-whisky":"rgb(241, 135, 1)","vs-color-icon-accent-cranachan":"rgb(255, 71, 111)","vs-color-icon-accent-buachaille":"rgb(255, 212, 0)","vs-color-interaction-focus":"rgb(51, 105, 255)","vs-color-interaction-focus-on-bold":"rgb(255, 250, 153)","vs-color-interaction-cta-primary":"rgb(31, 73, 214)","vs-color-interaction-cta-secondary":"rgb(255, 255, 255)","vs-color-interaction-cta-hover":"rgb(23, 53, 156)","vs-color-interaction-cta-pressed":"rgb(17, 40, 118)","vs-color-interaction-cta-disabled":"rgb(233, 233, 233)","vs-color-interaction-cta-subtle-hover":"rgb(214, 229, 255)","vs-color-interaction-cta-subtle-pressed":"rgb(51, 105, 255)","vs-color-interaction-link-primary":"rgb(31, 73, 214)","vs-color-interaction-link-active":"rgb(17, 40, 118)","vs-color-interaction-link-visited":"rgb(168, 48, 140)","vs-color-interaction-link-disabled":"rgb(144, 144, 144)","vs-color-interaction-link-visited-on-bold":"rgb(214, 229, 255)","vs-color-text-primary":"rgb(32, 15, 46)","vs-color-text-secondary":"rgb(96, 96, 96)","vs-color-text-tertiary":"rgb(83, 83, 150)","vs-color-text-inverse":"rgb(255, 255, 255)","vs-color-text-cta-on-light":"rgb(31, 73, 214)","vs-color-text-highlight":"rgb(168, 48, 140)","vs-color-text-brand":"rgb(91, 36, 135)","vs-color-text-error":"rgb(148, 15, 44)","vs-color-text-success":"rgb(3, 170, 70)","vs-color-text-disabled":"rgb(144, 144, 144)","vs-elevation-shadow-raised":"0px 1px 2px 0px rgba(0, 0, 0, 0.30), 0px 1px 3px 1px rgba(0, 0, 0, 0.15)","vs-elevation-shadow-overlay":"0px 1px 2px 0px rgba(0, 0, 0, 0.30), 0px 2px 6px 2px rgba(0, 0, 0, 0.15)","vs-elevation-surface":"#ffffff","vs-elevation-surface-section":"#F2F2F8","vs-elevation-surface-raised":"#ffffff","vs-elevation-surface-overlay":"#ffffff","font-size-1":"0.625rem","font-size-2":"0.75rem","font-size-3":"0.875rem","font-size-4":"1rem","font-size-5":"1.125rem","font-size-6":"1.25rem","font-size-7":"1.375rem","font-size-8":"1.5rem","font-size-9":"1.875rem","font-size-10":"2.5rem","font-size-body":"1rem","font-size-body-md":"1.125rem","font-size-lead":"1.125rem","font-size-lead-md":"1.25rem","font-size-teaser":"1rem",font_weight_bold,font_weight_semi_bold,font_weight_normal,font_weight_light,"font-family-sans-serif":"'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'","display-font-family":"'evelethclean-regular', sans-serif, $font-family-sans-serif",icon_size_xxs,icon_size_xs,icon_size_sm,icon_size_md,icon_size_lg,icon_size_xl,opacity_100,opacity_50,opacity_0,duration_quickly,duration_base,duration_slowly,breakpoint_xl,breakpoint_md,max_container_width_xl,breakpoint_sm,breakpoint_lg,breakpoint_xs,max_container_width_md,max_container_width_sm,max_container_width_lg,max_container_width_xxl,breakpoint_xxl,"vs-box-shadow-focus":"0 0 0 2px $vs-color-interaction-focus","vs-box-shadow-focus-on-dark":"0 0 0 2px $vs-color-interaction-focus-on-bold","display-l":"2.875rem","display-m":"2.5625rem","display-s":"2rem","display-xs":"1.4375rem","heading-xxl":"2.5625rem","heading-xl":"2.25rem","heading-l":"2rem","heading-m":"1.8125rem","heading-s":"1.625rem","heading-xs":"1.4375rem","heading-xxs":"1.25rem","sub-heading-l":"1.4375rem","sub-heading-m":"1.25rem","sub-heading-s":"1.125rem",letter_spacing_xxl,letter_spacing_xl,letter_spacing_l,letter_spacing_m,letter_spacing_s,letter_spacing_xs,border_radius_default,border_radius_xl,border_radius_lg,border_radius_sm,border_radius_pill,"spacer-0":"0","spacer-0125":"0.125rem","spacer-025":"0.25rem","spacer-050":"0.5rem","spacer-075":"0.75rem","spacer-100":"1rem","spacer-125":"1.25rem","spacer-150":"1.5rem","spacer-175":"1.75rem","spacer-200":"2rem","spacer-250":"2.5rem","spacer-300":"3rem","spacer-400":"4rem","spacer-500":"5rem","spacer-600":"6rem","spacer-700":"7rem",line_height_m,line_height_xl,line_height_s,"line-height-sub-heading":"1.3",line_height_xs,line_height_lead,line_height_standard,"line-height-body":"1.5","line-height-heading":"1.2",line_height_l,grid_columns,grid_gutter_width,no_javascript,theme_dark,theme_grey,"tracking-heading":"-0.01em","tracking-sub-heading":"0em","tracking-body":"0.01em"},_sfc_main$1M={name:"VsCaptionImageMap",status:"prototype",release:"0.0.1",props:{latitude:{type:String,default:""},longitude:{type:String,default:""},mapOutlineColor:{type:String,default:"#191919"},mapMarkerColor:{type:String,default:"#191919"}},data(){return{cornerCoordinates:{NE:61.3,NW:54.4,SE:-9.1,SW:.4},mapWidth:75,mapHeight:104}},computed:{positionY(){const e=Number(this.latitude);return Math.round(this.calculateAxisPosition(this.cornerCoordinates.NE,this.cornerCoordinates.NW,e,this.mapHeight))},positionX(){const e=Number(this.longitude);return Math.round(this.calculateAxisPosition(this.cornerCoordinates.SE,this.cornerCoordinates.SW,e,this.mapWidth))}},methods:{calculateAxisPosition(e,n,t,r){return(t-e)*r/(n-e)}}},_hoisted_1$1p=["width","height"],_hoisted_2$Z=["stroke"],_hoisted_3$M=["stroke"],_hoisted_4$B=["stroke"],_hoisted_5$q=["stroke"],_hoisted_6$g=["stroke"],_hoisted_7$b=["stroke"],_hoisted_8$4=["stroke"],_hoisted_9$4=["stroke"],_hoisted_10$4=["stroke"],_hoisted_11$3=["stroke"],_hoisted_12$3=["stroke"],_hoisted_13$3=["stroke"],_hoisted_14$2=["stroke"],_hoisted_15$2=["stroke"],_hoisted_16$2=["stroke"],_hoisted_17$2=["stroke"],_hoisted_18$1=["stroke"],_hoisted_19$1=["stroke"],_hoisted_20$1=["stroke"],_hoisted_21=["stroke"],_hoisted_22=["stroke"],_hoisted_23=["stroke"],_hoisted_24=["stroke"],_hoisted_25=["stroke"],_hoisted_26=["stroke"],_hoisted_27=["stroke"],_hoisted_28=["stroke"],_hoisted_29=["stroke"],_hoisted_30=["stroke"],_hoisted_31=["stroke"],_hoisted_32=["width","height"],_hoisted_33=["fill","cx","cy"];function _sfc_render$1D(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:a.mapWidth,height:a.mapHeight,viewBox:"0 0 76 105.9",class:"vs-caption-image-map","data-test":"vs-caption-image-map"},[vue.createElementVNode("path",{"data-test":"vs-caption-image-map__first-path",d:"M65.9965,9.0973l-.167.736.668.184Z",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_2$Z),vue.createElementVNode("path",{d:`M64.6595,9.4653l-.668,2.391,\r
|
|
37
37
|
1.169.368-.334-1.287C64.8265,\r
|
|
38
38
|
10.2013,65.1605,10.2013,64.6595,9.4653Z`,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_3$M),vue.createElementVNode("path",{d:"M66.1635,11.4883l1.336.184-.336-.736Z",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_4$B),vue.createElementVNode("path",{d:`M62.1546,11.3043l-1.5,1.1c.5.92.8349.736,\r
|
|
39
39
|
1.837.736l-.3341.368h-.173a1.6911,1.6911,0,0,0,1.336.92c-.668,\r
|
|
@@ -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:s.positionX,cy:s.positionY},null,8,_hoisted_33)],8,_hoisted_1$1p)}const VsCaptionImageMap=_export_sfc(_sfc_main$1M,[["render",_sfc_render$1D]]),_sfc_main$1L={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$A={class:"vs-caption__map-wrapper pt-075 pt-sm-050 pb-sm-050 mx-auto"};function _sfc_render$1C(e,n,t,r,a,s){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",s.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",[s.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"]),s.showMap&&s.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$A,[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$1L,[["render",_sfc_render$1C]]),_sfc_main$1K={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$1B(e,n,t,r,a,s){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-warning",s.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(s.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$1K,[["render",_sfc_render$1B]]),_sfc_main$1J={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$1A(e,n,t,r,a,s){const i=vue.resolveComponent("BProgressBar"),l=vue.resolveComponent("BProgress");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-progress-bar",s.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),s.interpolProgressLabel?(vue.openBlock(),vue.createElementBlock("p",{key:2,class:"vs-progress-bar__label",id:"progress-bar-"+a.compId},vue.toDisplayString(s.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$1J,[["render",_sfc_render$1A]]),_sfc_main$1I={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$z=["innerHTML"],_hoisted_5$p=["innerHTML"];function _sfc_render$1z(e,n,t,r,a,s){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(s.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:s.labelsMap.allTips},null,8,_hoisted_4$z)):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$1I,[["render",_sfc_render$1z]]);function _isPlaceholder(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function _curry1(e){return function n(t){return arguments.length===0||_isPlaceholder(t)?n:e.apply(this,arguments)}}function _curry2(e){return function n(t,r){switch(arguments.length){case 0:return n;case 1:return _isPlaceholder(t)?n:_curry1(function(a){return e(t,a)});default:return _isPlaceholder(t)&&_isPlaceholder(r)?n:_isPlaceholder(t)?_curry1(function(a){return e(a,r)}):_isPlaceholder(r)?_curry1(function(a){return e(t,a)}):e(t,r)}}}function _arity(e,n){switch(e){case 0:return function(){return n.apply(this,arguments)};case 1:return function(t){return n.apply(this,arguments)};case 2:return function(t,r){return n.apply(this,arguments)};case 3:return function(t,r,a){return n.apply(this,arguments)};case 4:return function(t,r,a,s){return n.apply(this,arguments)};case 5:return function(t,r,a,s,i){return n.apply(this,arguments)};case 6:return function(t,r,a,s,i,l){return n.apply(this,arguments)};case 7:return function(t,r,a,s,i,l,c){return n.apply(this,arguments)};case 8:return function(t,r,a,s,i,l,c,d){return n.apply(this,arguments)};case 9:return function(t,r,a,s,i,l,c,d,f){return n.apply(this,arguments)};case 10:return function(t,r,a,s,i,l,c,d,f,p){return n.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function _curryN(e,n,t){return function(){for(var r=[],a=0,s=e,i=0;i<n.length||a<arguments.length;){var l;i<n.length&&(!_isPlaceholder(n[i])||a>=arguments.length)?l=n[i]:(l=arguments[a],a+=1),r[i]=l,_isPlaceholder(l)||(s-=1),i+=1}return s<=0?t.apply(this,r):_arity(s,_curryN(e,r,t))}}var curryN=_curry2(function(n,t){return n===1?_curry1(t):_arity(n,_curryN(n,[],t))});function _curry3(e){return function n(t,r,a){switch(arguments.length){case 0:return n;case 1:return _isPlaceholder(t)?n:_curry2(function(s,i){return e(t,s,i)});case 2:return _isPlaceholder(t)&&_isPlaceholder(r)?n:_isPlaceholder(t)?_curry2(function(s,i){return e(s,r,i)}):_isPlaceholder(r)?_curry2(function(s,i){return e(t,s,i)}):_curry1(function(s){return e(t,r,s)});default:return _isPlaceholder(t)&&_isPlaceholder(r)&&_isPlaceholder(a)?n:_isPlaceholder(t)&&_isPlaceholder(r)?_curry2(function(s,i){return e(s,i,a)}):_isPlaceholder(t)&&_isPlaceholder(a)?_curry2(function(s,i){return e(s,r,i)}):_isPlaceholder(r)&&_isPlaceholder(a)?_curry2(function(s,i){return e(t,s,i)}):_isPlaceholder(t)?_curry1(function(s){return e(s,r,a)}):_isPlaceholder(r)?_curry1(function(s){return e(t,s,a)}):_isPlaceholder(a)?_curry1(function(s){return e(t,r,s)}):e(t,r,a)}}}var _isArray=Array.isArray||function(n){return n!=null&&n.length>=0&&Object.prototype.toString.call(n)==="[object Array]"};function _isTransformer(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function _dispatchable(e,n,t){return function(){if(arguments.length===0)return t();var r=arguments[arguments.length-1];if(!_isArray(r)){for(var a=0;a<e.length;){if(typeof r[e[a]]=="function")return r[e[a]].apply(r,Array.prototype.slice.call(arguments,0,-1));a+=1}if(_isTransformer(r)){var s=n.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(r)}}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,n){for(var t=0,r=n.length,a=Array(r);t<r;)a[t]=e(n[t]),t+=1;return a}function _isString(e){return Object.prototype.toString.call(e)==="[object String]"}var _isArrayLike=_curry1(function(n){return _isArray(n)?!0:!n||typeof n!="object"||_isString(n)?!1:n.length===0?!0:n.length>0?n.hasOwnProperty(0)&&n.hasOwnProperty(n.length-1):!1}),XWrap=function(){function e(n){this.f=n}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(n){return n},e.prototype["@@transducer/step"]=function(n,t){return this.f(n,t)},e}();function _xwrap(e){return new XWrap(e)}var bind=_curry2(function(n,t){return _arity(n.length,function(){return n.apply(t,arguments)})});function _arrayReduce(e,n,t){for(var r=0,a=t.length;r<a;){if(n=e["@@transducer/step"](n,t[r]),n&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}r+=1}return e["@@transducer/result"](n)}function _iterableReduce(e,n,t){for(var r=t.next();!r.done;){if(n=e["@@transducer/step"](n,r.value),n&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}r=t.next()}return e["@@transducer/result"](n)}function _methodReduce(e,n,t,r){return e["@@transducer/result"](t[r](bind(e["@@transducer/step"],e),n))}var symIterator=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _reduce(e,n,t){if(typeof e=="function"&&(e=_xwrap(e)),_isArrayLike(t))return _arrayReduce(e,n,t);if(typeof t["fantasy-land/reduce"]=="function")return _methodReduce(e,n,t,"fantasy-land/reduce");if(t[symIterator]!=null)return _iterableReduce(e,n,t[symIterator]());if(typeof t.next=="function")return _iterableReduce(e,n,t);if(typeof t.reduce=="function")return _methodReduce(e,n,t,"reduce");throw new TypeError("reduce: list must be array or iterable")}var XMap=function(){function e(n,t){this.xf=t,this.f=n}return e.prototype["@@transducer/init"]=_xfBase.init,e.prototype["@@transducer/result"]=_xfBase.result,e.prototype["@@transducer/step"]=function(n,t){return this.xf["@@transducer/step"](n,this.f(t))},e}(),_xmap=_curry2(function(n,t){return new XMap(n,t)});function _has(e,n){return Object.prototype.hasOwnProperty.call(n,e)}var toString$1=Object.prototype.toString,_isArguments=function(){return toString$1.call(arguments)==="[object Arguments]"?function(n){return toString$1.call(n)==="[object Arguments]"}:function(n){return _has("callee",n)}}(),hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug=function(){return arguments.propertyIsEnumerable("length")}(),contains=function(n,t){for(var r=0;r<n.length;){if(n[r]===t)return!0;r+=1}return!1},keys=_curry1(typeof Object.keys=="function"&&!hasArgsEnumBug?function(n){return Object(n)!==n?[]:Object.keys(n)}:function(n){if(Object(n)!==n)return[];var t,r,a=[],s=hasArgsEnumBug&&_isArguments(n);for(t in n)_has(t,n)&&(!s||t!=="length")&&(a[a.length]=t);if(hasEnumBug)for(r=nonEnumerableProps.length-1;r>=0;)t=nonEnumerableProps[r],_has(t,n)&&!contains(a,t)&&(a[a.length]=t),r-=1;return a}),map$1=_curry2(_dispatchable(["fantasy-land/map","map"],_xmap,function(n,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return curryN(t.length,function(){return n.call(this,t.apply(this,arguments))});case"[object Object]":return _reduce(function(r,a){return r[a]=n(t[a]),r},{},keys(t));default:return _map(n,t)}})),map$2=map$1,_isInteger=Number.isInteger||function(n){return n<<0===n},nth=_curry2(function(n,t){var r=n<0?t.length+n:n;return _isString(t)?t.charAt(r):t[r]}),nth$1=nth,prop=_curry2(function(n,t){if(t!=null)return _isInteger(n)?nth$1(n,t):t[n]}),prop$1=prop,reduce=_curry3(_reduce),reduce$1=reduce,values=_curry1(function(n){for(var t=keys(n),r=t.length,a=[],s=0;s<r;)a[s]=n[t[s]],s+=1;return a}),values$1=values;function _isFunction(e){var n=Object.prototype.toString.call(e);return n==="[object Function]"||n==="[object AsyncFunction]"||n==="[object GeneratorFunction]"||n==="[object AsyncGeneratorFunction]"}var type$1=_curry1(function(n){return n===null?"Null":n===void 0?"Undefined":Object.prototype.toString.call(n).slice(8,-1)});function _pipe(e,n){return function(){return n.call(this,e.apply(this,arguments))}}function _checkForMethod(e,n){return function(){var t=arguments.length;if(t===0)return n();var r=arguments[t-1];return _isArray(r)||typeof r[e]!="function"?n.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,t-1))}}var slice=_curry3(_checkForMethod("slice",function(n,t,r){return Array.prototype.slice.call(r,n,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 n=[],t;!(t=e.next()).done;)n.push(t.value);return n}function _includesWith(e,n,t){for(var r=0,a=t.length;r<a;){if(e(n,t[r]))return!0;r+=1}return!1}function _functionName(e){var n=String(e).match(/^function (\w*)/);return n==null?"":n[1]}function _objectIs(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}var _objectIs$1=typeof Object.is=="function"?Object.is:_objectIs;function _uniqContentEquals(e,n,t,r){var a=_arrayFromIterator(e),s=_arrayFromIterator(n);function i(l,c){return _equals(l,c,t.slice(),r.slice())}return!_includesWith(function(l,c){return!_includesWith(i,c,l)},s,a)}function _equals(e,n,t,r){if(_objectIs$1(e,n))return!0;var a=type$1(e);if(a!==type$1(n))return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof n["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](n)&&typeof n["fantasy-land/equals"]=="function"&&n["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof n.equals=="function")return typeof e.equals=="function"&&e.equals(n)&&typeof n.equals=="function"&&n.equals(e);switch(a){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&_functionName(e.constructor)==="Promise")return e===n;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof n&&_objectIs$1(e.valueOf(),n.valueOf())))return!1;break;case"Date":if(!_objectIs$1(e.valueOf(),n.valueOf()))return!1;break;case"Error":return e.name===n.name&&e.message===n.message;case"RegExp":if(!(e.source===n.source&&e.global===n.global&&e.ignoreCase===n.ignoreCase&&e.multiline===n.multiline&&e.sticky===n.sticky&&e.unicode===n.unicode))return!1;break}for(var s=t.length-1;s>=0;){if(t[s]===e)return r[s]===n;s-=1}switch(a){case"Map":return e.size!==n.size?!1:_uniqContentEquals(e.entries(),n.entries(),t.concat([e]),r.concat([n]));case"Set":return e.size!==n.size?!1:_uniqContentEquals(e.values(),n.values(),t.concat([e]),r.concat([n]));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(n).length)return!1;var l=t.concat([e]),c=r.concat([n]);for(s=i.length-1;s>=0;){var d=i[s];if(!(_has(d,n)&&_equals(n[d],e[d],l,c)))return!1;s-=1}return!0}var equals=_curry2(function(n,t){return _equals(n,t,[],[])});function _indexOf(e,n,t){var r,a;if(typeof e.indexOf=="function")switch(typeof n){case"number":if(n===0){for(r=1/n;t<e.length;){if(a=e[t],a===0&&1/a===r)return t;t+=1}return-1}else if(n!==n){for(;t<e.length;){if(a=e[t],typeof a=="number"&&a!==a)return t;t+=1}return-1}return e.indexOf(n,t);case"string":case"boolean":case"function":case"undefined":return e.indexOf(n,t);case"object":if(n===null)return e.indexOf(n,t)}for(;t<e.length;){if(equals(e[t],n))return t;t+=1}return-1}function _includes(e,n){return _indexOf(n,e,0)>=0}function _quote(e){var n=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'"'+n.replace(/"/g,'\\"')+'"'}var pad=function(n){return(n<10?"0":"")+n},_toISOString=typeof Date.prototype.toISOString=="function"?function(n){return n.toISOString()}:function(n){return n.getUTCFullYear()+"-"+pad(n.getUTCMonth()+1)+"-"+pad(n.getUTCDate())+"T"+pad(n.getUTCHours())+":"+pad(n.getUTCMinutes())+":"+pad(n.getUTCSeconds())+"."+(n.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function _complement(e){return function(){return!e.apply(this,arguments)}}function _filter(e,n){for(var t=0,r=n.length,a=[];t<r;)e(n[t])&&(a[a.length]=n[t]),t+=1;return a}function _isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}var XFilter=function(){function e(n,t){this.xf=t,this.f=n}return e.prototype["@@transducer/init"]=_xfBase.init,e.prototype["@@transducer/result"]=_xfBase.result,e.prototype["@@transducer/step"]=function(n,t){return this.f(t)?this.xf["@@transducer/step"](n,t):n},e}(),_xfilter=_curry2(function(n,t){return new XFilter(n,t)}),filter$1=_curry2(_dispatchable(["fantasy-land/filter","filter"],_xfilter,function(e,n){return _isObject(n)?_reduce(function(t,r){return e(n[r])&&(t[r]=n[r]),t},{},keys(n)):_filter(e,n)})),reject=_curry2(function(n,t){return filter$1(_complement(n),t)});function _toString(e,n){var t=function(i){var l=n.concat([e]);return _includes(i,l)?"<Circular>":_toString(i,l)},r=function(s,i){return _map(function(l){return _quote(l)+": "+t(s[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(r(e,reject(function(s){return/^\d+$/.test(s)},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"{"+r(e,keys(e)).join(", ")+"}"}}var toString=_curry1(function(n){return _toString(n,[])}),curry=_curry1(function(n){return curryN(n.length,n)}),curry$1=curry,invoker=_curry2(function(n,t){return curryN(n+1,function(){var r=arguments[n];if(r!=null&&_isFunction(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,n));throw new TypeError(toString(r)+' does not have a method named "'+t+'"')})}),invoker$1=invoker,is=_curry2(function(n,t){return t instanceof n||t!=null&&(t.constructor===n||n.name==="Object"&&typeof t=="object")}),is$1=is,join=invoker$1(1,"join"),join$1=join,mergeWithKey=_curry3(function(n,t,r){var a={},s;for(s in t)_has(s,t)&&(a[s]=_has(s,r)?n(s,t[s],r[s]):t[s]);for(s in r)_has(s,r)&&!_has(s,a)&&(a[s]=r[s]);return a}),mergeDeepWithKey=_curry3(function e(n,t,r){return mergeWithKey(function(a,s,i){return _isObject(s)&&_isObject(i)?e(n,s,i):n(a,s,i)},t,r)}),mergeDeepLeft=_curry2(function(n,t){return mergeDeepWithKey(function(r,a,s){return a},n,t)}),mergeDeepLeft$1=mergeDeepLeft,omit=_curry2(function(n,t){for(var r={},a={},s=0,i=n.length;s<i;)a[n[s]]=1,s+=1;for(var l in t)a.hasOwnProperty(l)||(r[l]=t[l]);return r}),omit$1=omit,pickBy=_curry2(function(n,t){var r={};for(var a in t)n(t[a],a,t)&&(r[a]=t[a]);return r}),pickBy$1=pickBy,split=invoker$1(1,"split"),split$1=split,toLower=invoker$1(0,"toLowerCase"),toLower$1=toLower,zipObj=_curry2(function(n,t){for(var r=0,a=Math.min(n.length,t.length),s={};r<a;)s[n[r]]=t[r],r+=1;return s}),zipObj$1=zipObj;pipe(toLower$1,split$1(" "),join$1("-"));const getCol=curry$1((e,n)=>is$1(Number)?map$2(t=>nth$1(e,t)||"",n).filter(t=>t!==""):map$2(prop$1(e),n)),mapKeys=(e,n)=>zipObj$1(map$2(e,keys(n)),values$1(n)),kebabize=e=>e.split("").map((n,t)=>n.toUpperCase()===n?`${t!==0?"-":""}${n.toLowerCase()}`:n).join("");function ascending$1(e,n){return e==null||n==null?NaN:e<n?-1:e>n?1:e>=n?0:NaN}function descending$1(e,n){return e==null||n==null?NaN:n<e?-1:n>e?1:n>=e?0:NaN}function bisector(e){let n,t,r;e.length!==2?(n=ascending$1,t=(l,c)=>ascending$1(e(l),c),r=(l,c)=>e(l)-c):(n=e===ascending$1||e===descending$1?e:zero$1,t=e,r=e);function a(l,c,d=0,f=l.length){if(d<f){if(n(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 s(l,c,d=0,f=l.length){if(d<f){if(n(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&&r(l[p-1],c)>-r(l[p],c)?p-1:p}return{left:a,center:i,right:s}}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,n){let t,r;for(const a of e)a!=null&&(t===void 0?a>=a&&(t=r=a):(t>a&&(t=a),r<a&&(r=a)));return[t,r]}class InternMap extends Map{constructor(n,t=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),n!=null)for(const[r,a]of n)this.set(r,a)}get(n){return super.get(intern_get(this,n))}has(n){return super.has(intern_get(this,n))}set(n,t){return super.set(intern_set(this,n),t)}delete(n){return super.delete(intern_delete(this,n))}}function intern_get({_intern:e,_key:n},t){const r=n(t);return e.has(r)?e.get(r):t}function intern_set({_intern:e,_key:n},t){const r=n(t);return e.has(r)?e.get(r):(e.set(r,t),t)}function intern_delete({_intern:e,_key:n},t){const r=n(t);return e.has(r)&&(t=e.get(r),e.delete(r)),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,n,t){const r=(n-e)/Math.max(0,t),a=Math.floor(Math.log10(r)),s=r/Math.pow(10,a),i=s>=e10?10:s>=e5?5:s>=e2?2:1;let l,c,d;return a<0?(d=Math.pow(10,-a)/i,l=Math.round(e*d),c=Math.round(n*d),l/d<e&&++l,c/d>n&&--c,d=-d):(d=Math.pow(10,a)*i,l=Math.round(e/d),c=Math.round(n/d),l*d<e&&++l,c*d>n&&--c),c<l&&.5<=t&&t<2?tickSpec(e,n,t*2):[l,c,d]}function ticks(e,n,t){if(n=+n,e=+e,t=+t,!(t>0))return[];if(e===n)return[e];const r=n<e,[a,s,i]=r?tickSpec(n,e,t):tickSpec(e,n,t);if(!(s>=a))return[];const l=s-a+1,c=new Array(l);if(r)if(i<0)for(let d=0;d<l;++d)c[d]=(s-d)/-i;else for(let d=0;d<l;++d)c[d]=(s-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,n,t){return n=+n,e=+e,t=+t,tickSpec(e,n,t)[2]}function tickStep(e,n,t){n=+n,e=+e,t=+t;const r=n<e,a=r?tickIncrement(n,e,t):tickIncrement(e,n,t);return(r?-1:1)*(a<0?1/-a:a)}function max$1(e,n){let t;if(n===void 0)for(const r of e)r!=null&&(t<r||t===void 0&&r>=r)&&(t=r);else{let r=-1;for(let a of e)(a=n(a,++r,e))!=null&&(t<a||t===void 0&&a>=a)&&(t=a)}return t}function min$1(e,n){let t;if(n===void 0)for(const r of e)r!=null&&(t>r||t===void 0&&r>=r)&&(t=r);else{let r=-1;for(let a of e)(a=n(a,++r,e))!=null&&(t>a||t===void 0&&a>=a)&&(t=a)}return t}function range$1(e,n,t){e=+e,n=+n,t=(a=arguments.length)<2?(n=e,e=0,1):a<3?1:+t;for(var r=-1,a=Math.max(0,Math.ceil((n-e)/t))|0,s=new Array(a);++r<a;)s[r]=e+r*t;return s}function initRange(e,n){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(n).domain(e);break}return this}function initInterpolator(e,n){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof n=="function"?this.interpolator(n):this.range(n);break}}return this}const implicit=Symbol("implicit");function ordinal(){var e=new InternMap,n=[],t=[],r=implicit;function a(s){let i=e.get(s);if(i===void 0){if(r!==implicit)return r;e.set(s,i=n.push(s)-1)}return t[i%t.length]}return a.domain=function(s){if(!arguments.length)return n.slice();n=[],e=new InternMap;for(const i of s)e.has(i)||e.set(i,n.push(i)-1);return a},a.range=function(s){return arguments.length?(t=Array.from(s),a):t.slice()},a.unknown=function(s){return arguments.length?(r=s,a):r},a.copy=function(){return ordinal(n,t).unknown(r)},initRange.apply(a,arguments),a}function band(){var e=ordinal().unknown(void 0),n=e.domain,t=e.range,r=0,a=1,s,i,l=!1,c=0,d=0,f=.5;delete e.unknown;function p(){var v=n().length,m=a<r,g=m?a:r,b=m?r:a;s=(b-g)/Math.max(1,v-c+d*2),l&&(s=Math.floor(s)),g+=(b-g-s*(v-c))*f,i=s*(1-c),l&&(g=Math.round(g),i=Math.round(i));var C=range$1(v).map(function(w){return g+s*w});return t(m?C.reverse():C)}return e.domain=function(v){return arguments.length?(n(v),p()):n()},e.range=function(v){return arguments.length?([r,a]=v,r=+r,a=+a,p()):[r,a]},e.rangeRound=function(v){return[r,a]=v,r=+r,a=+a,l=!0,p()},e.bandwidth=function(){return i},e.step=function(){return s},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(n(),[r,a]).round(l).paddingInner(c).paddingOuter(d).align(f)},initRange.apply(p(),arguments)}function define(e,n,t){e.prototype=n.prototype=t,t.constructor=e}function extend(e,n){var t=Object.create(e.prototype);for(var r in n)t[r]=n[r];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 n,t;return e=(e+"").trim().toLowerCase(),(n=reHex.exec(e))?(t=n[1].length,n=parseInt(n[1],16),t===6?rgbn(n):t===3?new Rgb(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):t===8?rgba(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):t===4?rgba(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=reRgbInteger.exec(e))?new Rgb(n[1],n[2],n[3],1):(n=reRgbPercent.exec(e))?new Rgb(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=reRgbaInteger.exec(e))?rgba(n[1],n[2],n[3],n[4]):(n=reRgbaPercent.exec(e))?rgba(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=reHslPercent.exec(e))?hsla(n[1],n[2]/100,n[3]/100,1):(n=reHslaPercent.exec(e))?hsla(n[1],n[2]/100,n[3]/100,n[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,n,t,r){return r<=0&&(e=n=t=NaN),new Rgb(e,n,t,r)}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,n,t,r){return arguments.length===1?rgbConvert(e):new Rgb(e,n,t,r??1)}function Rgb(e,n,t,r){this.r=+e,this.g=+n,this.b=+t,this.opacity=+r}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,n,t,r){return r<=0?e=n=t=NaN:t<=0||t>=1?e=n=NaN:n<=0&&(e=NaN),new Hsl(e,n,t,r)}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 n=e.r/255,t=e.g/255,r=e.b/255,a=Math.min(n,t,r),s=Math.max(n,t,r),i=NaN,l=s-a,c=(s+a)/2;return l?(n===s?i=(t-r)/l+(t<r)*6:t===s?i=(r-n)/l+2:i=(n-t)/l+4,l/=c<.5?s+a:2-s-a,i*=60):l=c>0&&c<1?0:i,new Hsl(i,l,c,e.opacity)}function hsl(e,n,t,r){return arguments.length===1?hslConvert(e):new Hsl(e,n,t,r??1)}function Hsl(e,n,t,r){this.h=+e,this.s=+n,this.l=+t,this.opacity=+r}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,n=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,r=t+(t<.5?t:1-t)*n,a=2*t-r;return new Rgb(hsl2rgb(e>=240?e-240:e+120,a,r),hsl2rgb(e,a,r),hsl2rgb(e<120?e+240:e-120,a,r),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,n,t){return(e<60?n+(t-n)*e/60:e<180?t:e<240?n+(t-n)*(240-e)/60:n)*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 n=rgb2lrgb(e.r),t=rgb2lrgb(e.g),r=rgb2lrgb(e.b),a=xyz2lab((.2225045*n+.7168786*t+.0606169*r)/Yn),s,i;return n===t&&t===r?s=i=a:(s=xyz2lab((.4360747*n+.3850649*t+.1430804*r)/Xn),i=xyz2lab((.0139322*n+.0971045*t+.7141733*r)/Zn)),new Lab(116*a-16,500*(s-a),200*(a-i),e.opacity)}function lab(e,n,t,r){return arguments.length===1?labConvert(e):new Lab(e,n,t,r??1)}function Lab(e,n,t,r){this.l=+e,this.a=+n,this.b=+t,this.opacity=+r}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,n=isNaN(this.a)?e:e+this.a/500,t=isNaN(this.b)?e:e-this.b/200;return n=Xn*lab2xyz(n),e=Yn*lab2xyz(e),t=Zn*lab2xyz(t),new Rgb(lrgb2rgb(3.1338561*n-1.6168667*e-.4906146*t),lrgb2rgb(-.9787684*n+1.9161415*e+.033454*t),lrgb2rgb(.0719453*n-.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 n=Math.atan2(e.b,e.a)*degrees;return new Hcl(n<0?n+360:n,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function hcl$1(e,n,t,r){return arguments.length===1?hclConvert(e):new Hcl(e,n,t,r??1)}function Hcl(e,n,t,r){this.h=+e,this.c=+n,this.l=+t,this.opacity=+r}function hcl2lab(e){if(isNaN(e.h))return new Lab(e.l,0,0,e.opacity);var n=e.h*radians;return new Lab(e.l,Math.cos(n)*e.c,Math.sin(n)*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,n){return function(t){return e+t*n}}function exponential(e,n,t){return e=Math.pow(e,t),n=Math.pow(n,t)-e,t=1/t,function(r){return Math.pow(e+r*n,t)}}function hue(e,n){var t=n-e;return t?linear$1(e,t>180||t<-180?t-360*Math.round(t/360):t):constant$3(isNaN(e)?n:e)}function gamma(e){return(e=+e)==1?nogamma:function(n,t){return t-n?exponential(n,t,e):constant$3(isNaN(n)?t:n)}}function nogamma(e,n){var t=n-e;return t?linear$1(e,t):constant$3(isNaN(e)?n:e)}var rgb=function e(n){var t=gamma(n);function r(a,s){var i=t((a=rgb$1(a)).r,(s=rgb$1(s)).r),l=t(a.g,s.g),c=t(a.b,s.b),d=nogamma(a.opacity,s.opacity);return function(f){return a.r=i(f),a.g=l(f),a.b=c(f),a.opacity=d(f),a+""}}return r.gamma=e,r}(1);function numberArray(e,n){n||(n=[]);var t=e?Math.min(n.length,e.length):0,r=n.slice(),a;return function(s){for(a=0;a<t;++a)r[a]=e[a]*(1-s)+n[a]*s;return r}}function isNumberArray(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function genericArray(e,n){var t=n?n.length:0,r=e?Math.min(t,e.length):0,a=new Array(r),s=new Array(t),i;for(i=0;i<r;++i)a[i]=interpolate(e[i],n[i]);for(;i<t;++i)s[i]=n[i];return function(l){for(i=0;i<r;++i)s[i]=a[i](l);return s}}function date(e,n){var t=new Date;return e=+e,n=+n,function(r){return t.setTime(e*(1-r)+n*r),t}}function interpolateNumber(e,n){return e=+e,n=+n,function(t){return e*(1-t)+n*t}}function object(e,n){var t={},r={},a;(e===null||typeof e!="object")&&(e={}),(n===null||typeof n!="object")&&(n={});for(a in n)a in e?t[a]=interpolate(e[a],n[a]):r[a]=n[a];return function(s){for(a in t)r[a]=t[a](s);return r}}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(n){return e(n)+""}}function string$1(e,n){var t=reA.lastIndex=reB.lastIndex=0,r,a,s,i=-1,l=[],c=[];for(e=e+"",n=n+"";(r=reA.exec(e))&&(a=reB.exec(n));)(s=a.index)>t&&(s=n.slice(t,s),l[i]?l[i]+=s:l[++i]=s),(r=r[0])===(a=a[0])?l[i]?l[i]+=a:l[++i]=a:(l[++i]=null,c.push({i,x:interpolateNumber(r,a)})),t=reB.lastIndex;return t<n.length&&(s=n.slice(t),l[i]?l[i]+=s:l[++i]=s),l.length<2?c[0]?one(c[0].x):zero(n):(n=c.length,function(d){for(var f=0,p;f<n;++f)l[(p=c[f]).i]=p.x(d);return l.join("")})}function interpolate(e,n){var t=typeof n,r;return n==null||t==="boolean"?constant$3(n):(t==="number"?interpolateNumber:t==="string"?(r=color(n))?(n=r,rgb):string$1:n instanceof color?rgb:n instanceof Date?date:isNumberArray(n)?numberArray:Array.isArray(n)?genericArray:typeof n.valueOf!="function"&&typeof n.toString!="function"||isNaN(n)?object:interpolateNumber)(e,n)}function interpolateRound(e,n){return e=+e,n=+n,function(t){return Math.round(e*(1-t)+n*t)}}function hcl(e){return function(n,t){var r=e((n=hcl$1(n)).h,(t=hcl$1(t)).h),a=nogamma(n.c,t.c),s=nogamma(n.l,t.l),i=nogamma(n.opacity,t.opacity);return function(l){return n.h=r(l),n.c=a(l),n.l=s(l),n.opacity=i(l),n+""}}}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,n){return(n-=e=+e)?function(t){return(t-e)/n}:constants$2(isNaN(n)?NaN:.5)}function clamper(e,n){var t;return e>n&&(t=e,e=n,n=t),function(r){return Math.max(e,Math.min(n,r))}}function bimap(e,n,t){var r=e[0],a=e[1],s=n[0],i=n[1];return a<r?(r=normalize$1(a,r),s=t(i,s)):(r=normalize$1(r,a),s=t(s,i)),function(l){return s(r(l))}}function polymap(e,n,t){var r=Math.min(e.length,n.length)-1,a=new Array(r),s=new Array(r),i=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),n=n.slice().reverse());++i<r;)a[i]=normalize$1(e[i],e[i+1]),s[i]=t(n[i],n[i+1]);return function(l){var c=bisectRight(e,l,1,r)-1;return s[c](a[c](l))}}function copy$1(e,n){return n.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function transformer$1(){var e=unit,n=unit,t=interpolate,r,a,s,i=identity$3,l,c,d;function f(){var v=Math.min(e.length,n.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)?s:(c||(c=l(e.map(r),n,t)))(r(i(v)))}return p.invert=function(v){return i(a((d||(d=l(n,e.map(r),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?(n=Array.from(v),f()):n.slice()},p.rangeRound=function(v){return n=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?(s=v,p):s},function(v,m){return r=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,n){if((t=(e=n?e.toExponential(n-1):e.toExponential()).indexOf("e"))<0)return null;var t,r=e.slice(0,t);return[r.length>1?r[0]+r.slice(2):r,+e.slice(t+1)]}function exponent(e){return e=formatDecimalParts(Math.abs(e)),e?e[1]:NaN}function formatGroup(e,n){return function(t,r){for(var a=t.length,s=[],i=0,l=e[0],c=0;a>0&&l>0&&(c+l+1>r&&(l=Math.max(1,r-c)),s.push(t.substring(a-=l,a+l)),!((c+=l+1)>r));)l=e[i=(i+1)%e.length];return s.reverse().join(n)}}function formatNumerals(e){return function(n){return n.replace(/[0-9]/g,function(t){return e[+t]})}}var re=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(e){if(!(n=re.exec(e)))throw new Error("invalid format: "+e);var n;return new FormatSpecifier({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[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 n=e.length,t=1,r=-1,a;t<n;++t)switch(e[t]){case".":r=a=t;break;case"0":r===0&&(r=t),a=t;break;default:if(!+e[t])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var prefixExponent;function formatPrefixAuto(e,n){var t=formatDecimalParts(e,n);if(!t)return e+"";var r=t[0],a=t[1],s=a-(prefixExponent=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,i=r.length;return s===i?r:s>i?r+new Array(s-i+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+formatDecimalParts(e,Math.max(0,n+s-1))[0]}function formatRounded(e,n){var t=formatDecimalParts(e,n);if(!t)return e+"";var r=t[0],a=t[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}var formatTypes={"%":(e,n)=>(e*100).toFixed(n),b:e=>Math.round(e).toString(2),c:e=>e+"",d:formatDecimal,e:(e,n)=>e.toExponential(n),f:(e,n)=>e.toFixed(n),g:(e,n)=>e.toPrecision(n),o:e=>Math.round(e).toString(8),p:(e,n)=>formatRounded(e*100,n),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 n=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]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",s=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,b=p.symbol,C=p.zero,w=p.width,E=p.comma,V=p.precision,A=p.trim,$=p.type;$==="n"?(E=!0,$="g"):formatTypes[$]||(V===void 0&&(V=12),A=!0,$="g"),(C||v==="0"&&m==="=")&&(C=!0,v="0",m="=");var O=b==="$"?t:b==="#"&&/[boxX]/.test($)?"0"+$.toLowerCase():"",I=b==="$"?r:/[%p]/.test($)?i:"",L=formatTypes[$],Z=/[defgprs%]/.test($);V=V===void 0?6:/[gprs]/.test($)?Math.max(1,Math.min(21,V)):Math.max(0,Math.min(20,V));function se(z){var ie=O,Q=I,ae,we,me;if($==="c")Q=L(z)+Q,z="";else{z=+z;var fe=z<0||1/z<0;if(z=isNaN(z)?c:L(Math.abs(z),V),A&&(z=formatTrim(z)),fe&&+z==0&&g!=="+"&&(fe=!1),ie=(fe?g==="("?g:l:g==="-"||g==="("?"":g)+ie,Q=($==="s"?prefixes[8+prefixExponent/3]:"")+Q+(fe&&g==="("?")":""),Z){for(ae=-1,we=z.length;++ae<we;)if(me=z.charCodeAt(ae),48>me||me>57){Q=(me===46?a+z.slice(ae+1):z.slice(ae))+Q,z=z.slice(0,ae);break}}}E&&!C&&(z=n(z,1/0));var T=ie.length+z.length+Q.length,M=T<w?new Array(w-T+1).join(v):"";switch(E&&C&&(z=n(M+z,M.length?w-Q.length:1/0),M=""),m){case"<":z=ie+z+Q+M;break;case"=":z=ie+M+z+Q;break;case"^":z=M.slice(0,T=M.length>>1)+ie+z+Q+M.slice(T);break;default:z=M+ie+z+Q;break}return s(z)}return se.toString=function(){return p+""},se}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,b=Math.pow(10,-g),C=prefixes[8+g/3];return function(w){return m(b*w)+C}}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,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(exponent(n)/3)))*3-exponent(Math.abs(e)))}function precisionRound(e,n){return e=Math.abs(e),n=Math.abs(n)-e,Math.max(0,exponent(n)-exponent(e))+1}function tickFormat(e,n,t,r){var a=tickStep(e,n,t),s;switch(r=formatSpecifier(r??",f"),r.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(n));return r.precision==null&&!isNaN(s=precisionPrefix(a,i))&&(r.precision=s),formatPrefix(r,i)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=precisionRound(a,Math.max(Math.abs(e),Math.abs(n))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=precisionFixed(a))&&(r.precision=s-(r.type==="%")*2);break}}return format(r)}function linearish(e){var n=e.domain;return e.ticks=function(t){var r=n();return ticks(r[0],r[r.length-1],t??10)},e.tickFormat=function(t,r){var a=n();return tickFormat(a[0],a[a.length-1],t??10,r)},e.nice=function(t){t==null&&(t=10);var r=n(),a=0,s=r.length-1,i=r[a],l=r[s],c,d,f=10;for(l<i&&(d=i,i=l,l=d,d=a,a=s,s=d);f-- >0;){if(d=tickIncrement(i,l,t),d===c)return r[a]=i,r[s]=l,n(r);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,n=1,t,r,a,s,i=identity$3,l=!1,c;function d(p){return p==null||isNaN(p=+p)?c:i(a===0?.5:(p=(s(p)-t)*a,l?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([e,n]=p,t=s(e=+e),r=s(n=+n),a=t===r?0:1/(r-t),d):[e,n]},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 s=p,t=p(e),r=p(n),a=t===r?0:1/(r-t),d}}function copy(e,n){return n.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,n,t){const r=this.config.type==="band"?this.categoryDomain(e,t):this.numericDomain(e,n,t);this.scale=this.scale.copy().domain(r)}map(e){return e.map(n=>this.mapOne(n))}mapOne(e){const{type:n}=this.config;return n==="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,n){const t=n.reduce((r,a)=>r.concat(getCol(a,e)),[]);return Array.from(new Set(t))}numericDomain(data,stackedData,keys){const{domain}=this.config,values=keys.reduce((e,n)=>e.concat(getCol(n,data)),[]),valueMax=max$1(stackedData,e=>max$1(e,n=>max$1(n)))||0,valueMin=min$1(stackedData,e=>min$1(e,n=>min$1(n)))||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:s.positionX,cy:s.positionY},null,8,_hoisted_33)],8,_hoisted_1$1p)}const VsCaptionImageMap=_export_sfc(_sfc_main$1M,[["render",_sfc_render$1D]]),_sfc_main$1L={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$A={class:"vs-caption__map-wrapper pt-075 pt-sm-050 pb-sm-050 mx-auto"};function _sfc_render$1C(e,n,t,r,a,s){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",s.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",[s.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"]),s.showMap&&s.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$A,[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$1L,[["render",_sfc_render$1C]]),_sfc_main$1K={name:"VsWarning",status:"prototype",release:"0.1.0",components:{VsIcon,VsButton},props:{icon:{type:String,default:"warning"},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$1B(e,n,t,r,a,s){const i=vue.resolveComponent("VsIcon"),l=vue.resolveComponent("VsButton");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-warning",s.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(s.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$1K,[["render",_sfc_render$1B]]),_sfc_main$1J={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$1A(e,n,t,r,a,s){const i=vue.resolveComponent("BProgressBar"),l=vue.resolveComponent("BProgress");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-progress-bar",s.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),s.interpolProgressLabel?(vue.openBlock(),vue.createElementBlock("p",{key:2,class:"vs-progress-bar__label",id:"progress-bar-"+a.compId},vue.toDisplayString(s.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$1J,[["render",_sfc_render$1A]]),_sfc_main$1I={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$z=["innerHTML"],_hoisted_5$p=["innerHTML"];function _sfc_render$1z(e,n,t,r,a,s){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(s.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:s.labelsMap.allTips},null,8,_hoisted_4$z)):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$1I,[["render",_sfc_render$1z]]);function _isPlaceholder(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function _curry1(e){return function n(t){return arguments.length===0||_isPlaceholder(t)?n:e.apply(this,arguments)}}function _curry2(e){return function n(t,r){switch(arguments.length){case 0:return n;case 1:return _isPlaceholder(t)?n:_curry1(function(a){return e(t,a)});default:return _isPlaceholder(t)&&_isPlaceholder(r)?n:_isPlaceholder(t)?_curry1(function(a){return e(a,r)}):_isPlaceholder(r)?_curry1(function(a){return e(t,a)}):e(t,r)}}}function _arity(e,n){switch(e){case 0:return function(){return n.apply(this,arguments)};case 1:return function(t){return n.apply(this,arguments)};case 2:return function(t,r){return n.apply(this,arguments)};case 3:return function(t,r,a){return n.apply(this,arguments)};case 4:return function(t,r,a,s){return n.apply(this,arguments)};case 5:return function(t,r,a,s,i){return n.apply(this,arguments)};case 6:return function(t,r,a,s,i,l){return n.apply(this,arguments)};case 7:return function(t,r,a,s,i,l,c){return n.apply(this,arguments)};case 8:return function(t,r,a,s,i,l,c,d){return n.apply(this,arguments)};case 9:return function(t,r,a,s,i,l,c,d,f){return n.apply(this,arguments)};case 10:return function(t,r,a,s,i,l,c,d,f,p){return n.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function _curryN(e,n,t){return function(){for(var r=[],a=0,s=e,i=0;i<n.length||a<arguments.length;){var l;i<n.length&&(!_isPlaceholder(n[i])||a>=arguments.length)?l=n[i]:(l=arguments[a],a+=1),r[i]=l,_isPlaceholder(l)||(s-=1),i+=1}return s<=0?t.apply(this,r):_arity(s,_curryN(e,r,t))}}var curryN=_curry2(function(n,t){return n===1?_curry1(t):_arity(n,_curryN(n,[],t))});function _curry3(e){return function n(t,r,a){switch(arguments.length){case 0:return n;case 1:return _isPlaceholder(t)?n:_curry2(function(s,i){return e(t,s,i)});case 2:return _isPlaceholder(t)&&_isPlaceholder(r)?n:_isPlaceholder(t)?_curry2(function(s,i){return e(s,r,i)}):_isPlaceholder(r)?_curry2(function(s,i){return e(t,s,i)}):_curry1(function(s){return e(t,r,s)});default:return _isPlaceholder(t)&&_isPlaceholder(r)&&_isPlaceholder(a)?n:_isPlaceholder(t)&&_isPlaceholder(r)?_curry2(function(s,i){return e(s,i,a)}):_isPlaceholder(t)&&_isPlaceholder(a)?_curry2(function(s,i){return e(s,r,i)}):_isPlaceholder(r)&&_isPlaceholder(a)?_curry2(function(s,i){return e(t,s,i)}):_isPlaceholder(t)?_curry1(function(s){return e(s,r,a)}):_isPlaceholder(r)?_curry1(function(s){return e(t,s,a)}):_isPlaceholder(a)?_curry1(function(s){return e(t,r,s)}):e(t,r,a)}}}var _isArray=Array.isArray||function(n){return n!=null&&n.length>=0&&Object.prototype.toString.call(n)==="[object Array]"};function _isTransformer(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function _dispatchable(e,n,t){return function(){if(arguments.length===0)return t();var r=arguments[arguments.length-1];if(!_isArray(r)){for(var a=0;a<e.length;){if(typeof r[e[a]]=="function")return r[e[a]].apply(r,Array.prototype.slice.call(arguments,0,-1));a+=1}if(_isTransformer(r)){var s=n.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(r)}}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,n){for(var t=0,r=n.length,a=Array(r);t<r;)a[t]=e(n[t]),t+=1;return a}function _isString(e){return Object.prototype.toString.call(e)==="[object String]"}var _isArrayLike=_curry1(function(n){return _isArray(n)?!0:!n||typeof n!="object"||_isString(n)?!1:n.length===0?!0:n.length>0?n.hasOwnProperty(0)&&n.hasOwnProperty(n.length-1):!1}),XWrap=function(){function e(n){this.f=n}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(n){return n},e.prototype["@@transducer/step"]=function(n,t){return this.f(n,t)},e}();function _xwrap(e){return new XWrap(e)}var bind=_curry2(function(n,t){return _arity(n.length,function(){return n.apply(t,arguments)})});function _arrayReduce(e,n,t){for(var r=0,a=t.length;r<a;){if(n=e["@@transducer/step"](n,t[r]),n&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}r+=1}return e["@@transducer/result"](n)}function _iterableReduce(e,n,t){for(var r=t.next();!r.done;){if(n=e["@@transducer/step"](n,r.value),n&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}r=t.next()}return e["@@transducer/result"](n)}function _methodReduce(e,n,t,r){return e["@@transducer/result"](t[r](bind(e["@@transducer/step"],e),n))}var symIterator=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function _reduce(e,n,t){if(typeof e=="function"&&(e=_xwrap(e)),_isArrayLike(t))return _arrayReduce(e,n,t);if(typeof t["fantasy-land/reduce"]=="function")return _methodReduce(e,n,t,"fantasy-land/reduce");if(t[symIterator]!=null)return _iterableReduce(e,n,t[symIterator]());if(typeof t.next=="function")return _iterableReduce(e,n,t);if(typeof t.reduce=="function")return _methodReduce(e,n,t,"reduce");throw new TypeError("reduce: list must be array or iterable")}var XMap=function(){function e(n,t){this.xf=t,this.f=n}return e.prototype["@@transducer/init"]=_xfBase.init,e.prototype["@@transducer/result"]=_xfBase.result,e.prototype["@@transducer/step"]=function(n,t){return this.xf["@@transducer/step"](n,this.f(t))},e}(),_xmap=_curry2(function(n,t){return new XMap(n,t)});function _has(e,n){return Object.prototype.hasOwnProperty.call(n,e)}var toString$1=Object.prototype.toString,_isArguments=function(){return toString$1.call(arguments)==="[object Arguments]"?function(n){return toString$1.call(n)==="[object Arguments]"}:function(n){return _has("callee",n)}}(),hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug=function(){return arguments.propertyIsEnumerable("length")}(),contains=function(n,t){for(var r=0;r<n.length;){if(n[r]===t)return!0;r+=1}return!1},keys=_curry1(typeof Object.keys=="function"&&!hasArgsEnumBug?function(n){return Object(n)!==n?[]:Object.keys(n)}:function(n){if(Object(n)!==n)return[];var t,r,a=[],s=hasArgsEnumBug&&_isArguments(n);for(t in n)_has(t,n)&&(!s||t!=="length")&&(a[a.length]=t);if(hasEnumBug)for(r=nonEnumerableProps.length-1;r>=0;)t=nonEnumerableProps[r],_has(t,n)&&!contains(a,t)&&(a[a.length]=t),r-=1;return a}),map$1=_curry2(_dispatchable(["fantasy-land/map","map"],_xmap,function(n,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return curryN(t.length,function(){return n.call(this,t.apply(this,arguments))});case"[object Object]":return _reduce(function(r,a){return r[a]=n(t[a]),r},{},keys(t));default:return _map(n,t)}})),map$2=map$1,_isInteger=Number.isInteger||function(n){return n<<0===n},nth=_curry2(function(n,t){var r=n<0?t.length+n:n;return _isString(t)?t.charAt(r):t[r]}),nth$1=nth,prop=_curry2(function(n,t){if(t!=null)return _isInteger(n)?nth$1(n,t):t[n]}),prop$1=prop,reduce=_curry3(_reduce),reduce$1=reduce,values=_curry1(function(n){for(var t=keys(n),r=t.length,a=[],s=0;s<r;)a[s]=n[t[s]],s+=1;return a}),values$1=values;function _isFunction(e){var n=Object.prototype.toString.call(e);return n==="[object Function]"||n==="[object AsyncFunction]"||n==="[object GeneratorFunction]"||n==="[object AsyncGeneratorFunction]"}var type$1=_curry1(function(n){return n===null?"Null":n===void 0?"Undefined":Object.prototype.toString.call(n).slice(8,-1)});function _pipe(e,n){return function(){return n.call(this,e.apply(this,arguments))}}function _checkForMethod(e,n){return function(){var t=arguments.length;if(t===0)return n();var r=arguments[t-1];return _isArray(r)||typeof r[e]!="function"?n.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,t-1))}}var slice=_curry3(_checkForMethod("slice",function(n,t,r){return Array.prototype.slice.call(r,n,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 n=[],t;!(t=e.next()).done;)n.push(t.value);return n}function _includesWith(e,n,t){for(var r=0,a=t.length;r<a;){if(e(n,t[r]))return!0;r+=1}return!1}function _functionName(e){var n=String(e).match(/^function (\w*)/);return n==null?"":n[1]}function _objectIs(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}var _objectIs$1=typeof Object.is=="function"?Object.is:_objectIs;function _uniqContentEquals(e,n,t,r){var a=_arrayFromIterator(e),s=_arrayFromIterator(n);function i(l,c){return _equals(l,c,t.slice(),r.slice())}return!_includesWith(function(l,c){return!_includesWith(i,c,l)},s,a)}function _equals(e,n,t,r){if(_objectIs$1(e,n))return!0;var a=type$1(e);if(a!==type$1(n))return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof n["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](n)&&typeof n["fantasy-land/equals"]=="function"&&n["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof n.equals=="function")return typeof e.equals=="function"&&e.equals(n)&&typeof n.equals=="function"&&n.equals(e);switch(a){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&_functionName(e.constructor)==="Promise")return e===n;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof n&&_objectIs$1(e.valueOf(),n.valueOf())))return!1;break;case"Date":if(!_objectIs$1(e.valueOf(),n.valueOf()))return!1;break;case"Error":return e.name===n.name&&e.message===n.message;case"RegExp":if(!(e.source===n.source&&e.global===n.global&&e.ignoreCase===n.ignoreCase&&e.multiline===n.multiline&&e.sticky===n.sticky&&e.unicode===n.unicode))return!1;break}for(var s=t.length-1;s>=0;){if(t[s]===e)return r[s]===n;s-=1}switch(a){case"Map":return e.size!==n.size?!1:_uniqContentEquals(e.entries(),n.entries(),t.concat([e]),r.concat([n]));case"Set":return e.size!==n.size?!1:_uniqContentEquals(e.values(),n.values(),t.concat([e]),r.concat([n]));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(n).length)return!1;var l=t.concat([e]),c=r.concat([n]);for(s=i.length-1;s>=0;){var d=i[s];if(!(_has(d,n)&&_equals(n[d],e[d],l,c)))return!1;s-=1}return!0}var equals=_curry2(function(n,t){return _equals(n,t,[],[])});function _indexOf(e,n,t){var r,a;if(typeof e.indexOf=="function")switch(typeof n){case"number":if(n===0){for(r=1/n;t<e.length;){if(a=e[t],a===0&&1/a===r)return t;t+=1}return-1}else if(n!==n){for(;t<e.length;){if(a=e[t],typeof a=="number"&&a!==a)return t;t+=1}return-1}return e.indexOf(n,t);case"string":case"boolean":case"function":case"undefined":return e.indexOf(n,t);case"object":if(n===null)return e.indexOf(n,t)}for(;t<e.length;){if(equals(e[t],n))return t;t+=1}return-1}function _includes(e,n){return _indexOf(n,e,0)>=0}function _quote(e){var n=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'"'+n.replace(/"/g,'\\"')+'"'}var pad=function(n){return(n<10?"0":"")+n},_toISOString=typeof Date.prototype.toISOString=="function"?function(n){return n.toISOString()}:function(n){return n.getUTCFullYear()+"-"+pad(n.getUTCMonth()+1)+"-"+pad(n.getUTCDate())+"T"+pad(n.getUTCHours())+":"+pad(n.getUTCMinutes())+":"+pad(n.getUTCSeconds())+"."+(n.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function _complement(e){return function(){return!e.apply(this,arguments)}}function _filter(e,n){for(var t=0,r=n.length,a=[];t<r;)e(n[t])&&(a[a.length]=n[t]),t+=1;return a}function _isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}var XFilter=function(){function e(n,t){this.xf=t,this.f=n}return e.prototype["@@transducer/init"]=_xfBase.init,e.prototype["@@transducer/result"]=_xfBase.result,e.prototype["@@transducer/step"]=function(n,t){return this.f(t)?this.xf["@@transducer/step"](n,t):n},e}(),_xfilter=_curry2(function(n,t){return new XFilter(n,t)}),filter$1=_curry2(_dispatchable(["fantasy-land/filter","filter"],_xfilter,function(e,n){return _isObject(n)?_reduce(function(t,r){return e(n[r])&&(t[r]=n[r]),t},{},keys(n)):_filter(e,n)})),reject=_curry2(function(n,t){return filter$1(_complement(n),t)});function _toString(e,n){var t=function(i){var l=n.concat([e]);return _includes(i,l)?"<Circular>":_toString(i,l)},r=function(s,i){return _map(function(l){return _quote(l)+": "+t(s[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(r(e,reject(function(s){return/^\d+$/.test(s)},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"{"+r(e,keys(e)).join(", ")+"}"}}var toString=_curry1(function(n){return _toString(n,[])}),curry=_curry1(function(n){return curryN(n.length,n)}),curry$1=curry,invoker=_curry2(function(n,t){return curryN(n+1,function(){var r=arguments[n];if(r!=null&&_isFunction(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,n));throw new TypeError(toString(r)+' does not have a method named "'+t+'"')})}),invoker$1=invoker,is=_curry2(function(n,t){return t instanceof n||t!=null&&(t.constructor===n||n.name==="Object"&&typeof t=="object")}),is$1=is,join=invoker$1(1,"join"),join$1=join,mergeWithKey=_curry3(function(n,t,r){var a={},s;for(s in t)_has(s,t)&&(a[s]=_has(s,r)?n(s,t[s],r[s]):t[s]);for(s in r)_has(s,r)&&!_has(s,a)&&(a[s]=r[s]);return a}),mergeDeepWithKey=_curry3(function e(n,t,r){return mergeWithKey(function(a,s,i){return _isObject(s)&&_isObject(i)?e(n,s,i):n(a,s,i)},t,r)}),mergeDeepLeft=_curry2(function(n,t){return mergeDeepWithKey(function(r,a,s){return a},n,t)}),mergeDeepLeft$1=mergeDeepLeft,omit=_curry2(function(n,t){for(var r={},a={},s=0,i=n.length;s<i;)a[n[s]]=1,s+=1;for(var l in t)a.hasOwnProperty(l)||(r[l]=t[l]);return r}),omit$1=omit,pickBy=_curry2(function(n,t){var r={};for(var a in t)n(t[a],a,t)&&(r[a]=t[a]);return r}),pickBy$1=pickBy,split=invoker$1(1,"split"),split$1=split,toLower=invoker$1(0,"toLowerCase"),toLower$1=toLower,zipObj=_curry2(function(n,t){for(var r=0,a=Math.min(n.length,t.length),s={};r<a;)s[n[r]]=t[r],r+=1;return s}),zipObj$1=zipObj;pipe(toLower$1,split$1(" "),join$1("-"));const getCol=curry$1((e,n)=>is$1(Number)?map$2(t=>nth$1(e,t)||"",n).filter(t=>t!==""):map$2(prop$1(e),n)),mapKeys=(e,n)=>zipObj$1(map$2(e,keys(n)),values$1(n)),kebabize=e=>e.split("").map((n,t)=>n.toUpperCase()===n?`${t!==0?"-":""}${n.toLowerCase()}`:n).join("");function ascending$1(e,n){return e==null||n==null?NaN:e<n?-1:e>n?1:e>=n?0:NaN}function descending$1(e,n){return e==null||n==null?NaN:n<e?-1:n>e?1:n>=e?0:NaN}function bisector(e){let n,t,r;e.length!==2?(n=ascending$1,t=(l,c)=>ascending$1(e(l),c),r=(l,c)=>e(l)-c):(n=e===ascending$1||e===descending$1?e:zero$1,t=e,r=e);function a(l,c,d=0,f=l.length){if(d<f){if(n(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 s(l,c,d=0,f=l.length){if(d<f){if(n(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&&r(l[p-1],c)>-r(l[p],c)?p-1:p}return{left:a,center:i,right:s}}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,n){let t,r;for(const a of e)a!=null&&(t===void 0?a>=a&&(t=r=a):(t>a&&(t=a),r<a&&(r=a)));return[t,r]}class InternMap extends Map{constructor(n,t=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),n!=null)for(const[r,a]of n)this.set(r,a)}get(n){return super.get(intern_get(this,n))}has(n){return super.has(intern_get(this,n))}set(n,t){return super.set(intern_set(this,n),t)}delete(n){return super.delete(intern_delete(this,n))}}function intern_get({_intern:e,_key:n},t){const r=n(t);return e.has(r)?e.get(r):t}function intern_set({_intern:e,_key:n},t){const r=n(t);return e.has(r)?e.get(r):(e.set(r,t),t)}function intern_delete({_intern:e,_key:n},t){const r=n(t);return e.has(r)&&(t=e.get(r),e.delete(r)),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,n,t){const r=(n-e)/Math.max(0,t),a=Math.floor(Math.log10(r)),s=r/Math.pow(10,a),i=s>=e10?10:s>=e5?5:s>=e2?2:1;let l,c,d;return a<0?(d=Math.pow(10,-a)/i,l=Math.round(e*d),c=Math.round(n*d),l/d<e&&++l,c/d>n&&--c,d=-d):(d=Math.pow(10,a)*i,l=Math.round(e/d),c=Math.round(n/d),l*d<e&&++l,c*d>n&&--c),c<l&&.5<=t&&t<2?tickSpec(e,n,t*2):[l,c,d]}function ticks(e,n,t){if(n=+n,e=+e,t=+t,!(t>0))return[];if(e===n)return[e];const r=n<e,[a,s,i]=r?tickSpec(n,e,t):tickSpec(e,n,t);if(!(s>=a))return[];const l=s-a+1,c=new Array(l);if(r)if(i<0)for(let d=0;d<l;++d)c[d]=(s-d)/-i;else for(let d=0;d<l;++d)c[d]=(s-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,n,t){return n=+n,e=+e,t=+t,tickSpec(e,n,t)[2]}function tickStep(e,n,t){n=+n,e=+e,t=+t;const r=n<e,a=r?tickIncrement(n,e,t):tickIncrement(e,n,t);return(r?-1:1)*(a<0?1/-a:a)}function max$1(e,n){let t;if(n===void 0)for(const r of e)r!=null&&(t<r||t===void 0&&r>=r)&&(t=r);else{let r=-1;for(let a of e)(a=n(a,++r,e))!=null&&(t<a||t===void 0&&a>=a)&&(t=a)}return t}function min$1(e,n){let t;if(n===void 0)for(const r of e)r!=null&&(t>r||t===void 0&&r>=r)&&(t=r);else{let r=-1;for(let a of e)(a=n(a,++r,e))!=null&&(t>a||t===void 0&&a>=a)&&(t=a)}return t}function range$1(e,n,t){e=+e,n=+n,t=(a=arguments.length)<2?(n=e,e=0,1):a<3?1:+t;for(var r=-1,a=Math.max(0,Math.ceil((n-e)/t))|0,s=new Array(a);++r<a;)s[r]=e+r*t;return s}function initRange(e,n){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(n).domain(e);break}return this}function initInterpolator(e,n){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof n=="function"?this.interpolator(n):this.range(n);break}}return this}const implicit=Symbol("implicit");function ordinal(){var e=new InternMap,n=[],t=[],r=implicit;function a(s){let i=e.get(s);if(i===void 0){if(r!==implicit)return r;e.set(s,i=n.push(s)-1)}return t[i%t.length]}return a.domain=function(s){if(!arguments.length)return n.slice();n=[],e=new InternMap;for(const i of s)e.has(i)||e.set(i,n.push(i)-1);return a},a.range=function(s){return arguments.length?(t=Array.from(s),a):t.slice()},a.unknown=function(s){return arguments.length?(r=s,a):r},a.copy=function(){return ordinal(n,t).unknown(r)},initRange.apply(a,arguments),a}function band(){var e=ordinal().unknown(void 0),n=e.domain,t=e.range,r=0,a=1,s,i,l=!1,c=0,d=0,f=.5;delete e.unknown;function p(){var v=n().length,m=a<r,g=m?a:r,b=m?r:a;s=(b-g)/Math.max(1,v-c+d*2),l&&(s=Math.floor(s)),g+=(b-g-s*(v-c))*f,i=s*(1-c),l&&(g=Math.round(g),i=Math.round(i));var C=range$1(v).map(function(w){return g+s*w});return t(m?C.reverse():C)}return e.domain=function(v){return arguments.length?(n(v),p()):n()},e.range=function(v){return arguments.length?([r,a]=v,r=+r,a=+a,p()):[r,a]},e.rangeRound=function(v){return[r,a]=v,r=+r,a=+a,l=!0,p()},e.bandwidth=function(){return i},e.step=function(){return s},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(n(),[r,a]).round(l).paddingInner(c).paddingOuter(d).align(f)},initRange.apply(p(),arguments)}function define(e,n,t){e.prototype=n.prototype=t,t.constructor=e}function extend(e,n){var t=Object.create(e.prototype);for(var r in n)t[r]=n[r];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 n,t;return e=(e+"").trim().toLowerCase(),(n=reHex.exec(e))?(t=n[1].length,n=parseInt(n[1],16),t===6?rgbn(n):t===3?new Rgb(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):t===8?rgba(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):t===4?rgba(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=reRgbInteger.exec(e))?new Rgb(n[1],n[2],n[3],1):(n=reRgbPercent.exec(e))?new Rgb(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=reRgbaInteger.exec(e))?rgba(n[1],n[2],n[3],n[4]):(n=reRgbaPercent.exec(e))?rgba(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=reHslPercent.exec(e))?hsla(n[1],n[2]/100,n[3]/100,1):(n=reHslaPercent.exec(e))?hsla(n[1],n[2]/100,n[3]/100,n[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,n,t,r){return r<=0&&(e=n=t=NaN),new Rgb(e,n,t,r)}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,n,t,r){return arguments.length===1?rgbConvert(e):new Rgb(e,n,t,r??1)}function Rgb(e,n,t,r){this.r=+e,this.g=+n,this.b=+t,this.opacity=+r}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,n,t,r){return r<=0?e=n=t=NaN:t<=0||t>=1?e=n=NaN:n<=0&&(e=NaN),new Hsl(e,n,t,r)}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 n=e.r/255,t=e.g/255,r=e.b/255,a=Math.min(n,t,r),s=Math.max(n,t,r),i=NaN,l=s-a,c=(s+a)/2;return l?(n===s?i=(t-r)/l+(t<r)*6:t===s?i=(r-n)/l+2:i=(n-t)/l+4,l/=c<.5?s+a:2-s-a,i*=60):l=c>0&&c<1?0:i,new Hsl(i,l,c,e.opacity)}function hsl(e,n,t,r){return arguments.length===1?hslConvert(e):new Hsl(e,n,t,r??1)}function Hsl(e,n,t,r){this.h=+e,this.s=+n,this.l=+t,this.opacity=+r}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,n=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,r=t+(t<.5?t:1-t)*n,a=2*t-r;return new Rgb(hsl2rgb(e>=240?e-240:e+120,a,r),hsl2rgb(e,a,r),hsl2rgb(e<120?e+240:e-120,a,r),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,n,t){return(e<60?n+(t-n)*e/60:e<180?t:e<240?n+(t-n)*(240-e)/60:n)*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 n=rgb2lrgb(e.r),t=rgb2lrgb(e.g),r=rgb2lrgb(e.b),a=xyz2lab((.2225045*n+.7168786*t+.0606169*r)/Yn),s,i;return n===t&&t===r?s=i=a:(s=xyz2lab((.4360747*n+.3850649*t+.1430804*r)/Xn),i=xyz2lab((.0139322*n+.0971045*t+.7141733*r)/Zn)),new Lab(116*a-16,500*(s-a),200*(a-i),e.opacity)}function lab(e,n,t,r){return arguments.length===1?labConvert(e):new Lab(e,n,t,r??1)}function Lab(e,n,t,r){this.l=+e,this.a=+n,this.b=+t,this.opacity=+r}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,n=isNaN(this.a)?e:e+this.a/500,t=isNaN(this.b)?e:e-this.b/200;return n=Xn*lab2xyz(n),e=Yn*lab2xyz(e),t=Zn*lab2xyz(t),new Rgb(lrgb2rgb(3.1338561*n-1.6168667*e-.4906146*t),lrgb2rgb(-.9787684*n+1.9161415*e+.033454*t),lrgb2rgb(.0719453*n-.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 n=Math.atan2(e.b,e.a)*degrees;return new Hcl(n<0?n+360:n,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function hcl$1(e,n,t,r){return arguments.length===1?hclConvert(e):new Hcl(e,n,t,r??1)}function Hcl(e,n,t,r){this.h=+e,this.c=+n,this.l=+t,this.opacity=+r}function hcl2lab(e){if(isNaN(e.h))return new Lab(e.l,0,0,e.opacity);var n=e.h*radians;return new Lab(e.l,Math.cos(n)*e.c,Math.sin(n)*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,n){return function(t){return e+t*n}}function exponential(e,n,t){return e=Math.pow(e,t),n=Math.pow(n,t)-e,t=1/t,function(r){return Math.pow(e+r*n,t)}}function hue(e,n){var t=n-e;return t?linear$1(e,t>180||t<-180?t-360*Math.round(t/360):t):constant$3(isNaN(e)?n:e)}function gamma(e){return(e=+e)==1?nogamma:function(n,t){return t-n?exponential(n,t,e):constant$3(isNaN(n)?t:n)}}function nogamma(e,n){var t=n-e;return t?linear$1(e,t):constant$3(isNaN(e)?n:e)}var rgb=function e(n){var t=gamma(n);function r(a,s){var i=t((a=rgb$1(a)).r,(s=rgb$1(s)).r),l=t(a.g,s.g),c=t(a.b,s.b),d=nogamma(a.opacity,s.opacity);return function(f){return a.r=i(f),a.g=l(f),a.b=c(f),a.opacity=d(f),a+""}}return r.gamma=e,r}(1);function numberArray(e,n){n||(n=[]);var t=e?Math.min(n.length,e.length):0,r=n.slice(),a;return function(s){for(a=0;a<t;++a)r[a]=e[a]*(1-s)+n[a]*s;return r}}function isNumberArray(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function genericArray(e,n){var t=n?n.length:0,r=e?Math.min(t,e.length):0,a=new Array(r),s=new Array(t),i;for(i=0;i<r;++i)a[i]=interpolate(e[i],n[i]);for(;i<t;++i)s[i]=n[i];return function(l){for(i=0;i<r;++i)s[i]=a[i](l);return s}}function date(e,n){var t=new Date;return e=+e,n=+n,function(r){return t.setTime(e*(1-r)+n*r),t}}function interpolateNumber(e,n){return e=+e,n=+n,function(t){return e*(1-t)+n*t}}function object(e,n){var t={},r={},a;(e===null||typeof e!="object")&&(e={}),(n===null||typeof n!="object")&&(n={});for(a in n)a in e?t[a]=interpolate(e[a],n[a]):r[a]=n[a];return function(s){for(a in t)r[a]=t[a](s);return r}}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(n){return e(n)+""}}function string$1(e,n){var t=reA.lastIndex=reB.lastIndex=0,r,a,s,i=-1,l=[],c=[];for(e=e+"",n=n+"";(r=reA.exec(e))&&(a=reB.exec(n));)(s=a.index)>t&&(s=n.slice(t,s),l[i]?l[i]+=s:l[++i]=s),(r=r[0])===(a=a[0])?l[i]?l[i]+=a:l[++i]=a:(l[++i]=null,c.push({i,x:interpolateNumber(r,a)})),t=reB.lastIndex;return t<n.length&&(s=n.slice(t),l[i]?l[i]+=s:l[++i]=s),l.length<2?c[0]?one(c[0].x):zero(n):(n=c.length,function(d){for(var f=0,p;f<n;++f)l[(p=c[f]).i]=p.x(d);return l.join("")})}function interpolate(e,n){var t=typeof n,r;return n==null||t==="boolean"?constant$3(n):(t==="number"?interpolateNumber:t==="string"?(r=color(n))?(n=r,rgb):string$1:n instanceof color?rgb:n instanceof Date?date:isNumberArray(n)?numberArray:Array.isArray(n)?genericArray:typeof n.valueOf!="function"&&typeof n.toString!="function"||isNaN(n)?object:interpolateNumber)(e,n)}function interpolateRound(e,n){return e=+e,n=+n,function(t){return Math.round(e*(1-t)+n*t)}}function hcl(e){return function(n,t){var r=e((n=hcl$1(n)).h,(t=hcl$1(t)).h),a=nogamma(n.c,t.c),s=nogamma(n.l,t.l),i=nogamma(n.opacity,t.opacity);return function(l){return n.h=r(l),n.c=a(l),n.l=s(l),n.opacity=i(l),n+""}}}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,n){return(n-=e=+e)?function(t){return(t-e)/n}:constants$2(isNaN(n)?NaN:.5)}function clamper(e,n){var t;return e>n&&(t=e,e=n,n=t),function(r){return Math.max(e,Math.min(n,r))}}function bimap(e,n,t){var r=e[0],a=e[1],s=n[0],i=n[1];return a<r?(r=normalize$1(a,r),s=t(i,s)):(r=normalize$1(r,a),s=t(s,i)),function(l){return s(r(l))}}function polymap(e,n,t){var r=Math.min(e.length,n.length)-1,a=new Array(r),s=new Array(r),i=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),n=n.slice().reverse());++i<r;)a[i]=normalize$1(e[i],e[i+1]),s[i]=t(n[i],n[i+1]);return function(l){var c=bisectRight(e,l,1,r)-1;return s[c](a[c](l))}}function copy$1(e,n){return n.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function transformer$1(){var e=unit,n=unit,t=interpolate,r,a,s,i=identity$3,l,c,d;function f(){var v=Math.min(e.length,n.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)?s:(c||(c=l(e.map(r),n,t)))(r(i(v)))}return p.invert=function(v){return i(a((d||(d=l(n,e.map(r),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?(n=Array.from(v),f()):n.slice()},p.rangeRound=function(v){return n=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?(s=v,p):s},function(v,m){return r=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,n){if((t=(e=n?e.toExponential(n-1):e.toExponential()).indexOf("e"))<0)return null;var t,r=e.slice(0,t);return[r.length>1?r[0]+r.slice(2):r,+e.slice(t+1)]}function exponent(e){return e=formatDecimalParts(Math.abs(e)),e?e[1]:NaN}function formatGroup(e,n){return function(t,r){for(var a=t.length,s=[],i=0,l=e[0],c=0;a>0&&l>0&&(c+l+1>r&&(l=Math.max(1,r-c)),s.push(t.substring(a-=l,a+l)),!((c+=l+1)>r));)l=e[i=(i+1)%e.length];return s.reverse().join(n)}}function formatNumerals(e){return function(n){return n.replace(/[0-9]/g,function(t){return e[+t]})}}var re=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(e){if(!(n=re.exec(e)))throw new Error("invalid format: "+e);var n;return new FormatSpecifier({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[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 n=e.length,t=1,r=-1,a;t<n;++t)switch(e[t]){case".":r=a=t;break;case"0":r===0&&(r=t),a=t;break;default:if(!+e[t])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var prefixExponent;function formatPrefixAuto(e,n){var t=formatDecimalParts(e,n);if(!t)return e+"";var r=t[0],a=t[1],s=a-(prefixExponent=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,i=r.length;return s===i?r:s>i?r+new Array(s-i+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+formatDecimalParts(e,Math.max(0,n+s-1))[0]}function formatRounded(e,n){var t=formatDecimalParts(e,n);if(!t)return e+"";var r=t[0],a=t[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}var formatTypes={"%":(e,n)=>(e*100).toFixed(n),b:e=>Math.round(e).toString(2),c:e=>e+"",d:formatDecimal,e:(e,n)=>e.toExponential(n),f:(e,n)=>e.toFixed(n),g:(e,n)=>e.toPrecision(n),o:e=>Math.round(e).toString(8),p:(e,n)=>formatRounded(e*100,n),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 n=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]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",s=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,b=p.symbol,C=p.zero,w=p.width,E=p.comma,V=p.precision,A=p.trim,P=p.type;P==="n"?(E=!0,P="g"):formatTypes[P]||(V===void 0&&(V=12),A=!0,P="g"),(C||v==="0"&&m==="=")&&(C=!0,v="0",m="=");var O=b==="$"?t:b==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",I=b==="$"?r:/[%p]/.test(P)?i:"",R=formatTypes[P],Z=/[defgprs%]/.test(P);V=V===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,V)):Math.max(0,Math.min(20,V));function se(z){var ie=O,Q=I,ae,we,me;if(P==="c")Q=R(z)+Q,z="";else{z=+z;var fe=z<0||1/z<0;if(z=isNaN(z)?c:R(Math.abs(z),V),A&&(z=formatTrim(z)),fe&&+z==0&&g!=="+"&&(fe=!1),ie=(fe?g==="("?g:l:g==="-"||g==="("?"":g)+ie,Q=(P==="s"?prefixes[8+prefixExponent/3]:"")+Q+(fe&&g==="("?")":""),Z){for(ae=-1,we=z.length;++ae<we;)if(me=z.charCodeAt(ae),48>me||me>57){Q=(me===46?a+z.slice(ae+1):z.slice(ae))+Q,z=z.slice(0,ae);break}}}E&&!C&&(z=n(z,1/0));var T=ie.length+z.length+Q.length,M=T<w?new Array(w-T+1).join(v):"";switch(E&&C&&(z=n(M+z,M.length?w-Q.length:1/0),M=""),m){case"<":z=ie+z+Q+M;break;case"=":z=ie+M+z+Q;break;case"^":z=M.slice(0,T=M.length>>1)+ie+z+Q+M.slice(T);break;default:z=M+ie+z+Q;break}return s(z)}return se.toString=function(){return p+""},se}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,b=Math.pow(10,-g),C=prefixes[8+g/3];return function(w){return m(b*w)+C}}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,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(exponent(n)/3)))*3-exponent(Math.abs(e)))}function precisionRound(e,n){return e=Math.abs(e),n=Math.abs(n)-e,Math.max(0,exponent(n)-exponent(e))+1}function tickFormat(e,n,t,r){var a=tickStep(e,n,t),s;switch(r=formatSpecifier(r??",f"),r.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(n));return r.precision==null&&!isNaN(s=precisionPrefix(a,i))&&(r.precision=s),formatPrefix(r,i)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=precisionRound(a,Math.max(Math.abs(e),Math.abs(n))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=precisionFixed(a))&&(r.precision=s-(r.type==="%")*2);break}}return format(r)}function linearish(e){var n=e.domain;return e.ticks=function(t){var r=n();return ticks(r[0],r[r.length-1],t??10)},e.tickFormat=function(t,r){var a=n();return tickFormat(a[0],a[a.length-1],t??10,r)},e.nice=function(t){t==null&&(t=10);var r=n(),a=0,s=r.length-1,i=r[a],l=r[s],c,d,f=10;for(l<i&&(d=i,i=l,l=d,d=a,a=s,s=d);f-- >0;){if(d=tickIncrement(i,l,t),d===c)return r[a]=i,r[s]=l,n(r);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,n=1,t,r,a,s,i=identity$3,l=!1,c;function d(p){return p==null||isNaN(p=+p)?c:i(a===0?.5:(p=(s(p)-t)*a,l?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([e,n]=p,t=s(e=+e),r=s(n=+n),a=t===r?0:1/(r-t),d):[e,n]},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 s=p,t=p(e),r=p(n),a=t===r?0:1/(r-t),d}}function copy(e,n){return n.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,n,t){const r=this.config.type==="band"?this.categoryDomain(e,t):this.numericDomain(e,n,t);this.scale=this.scale.copy().domain(r)}map(e){return e.map(n=>this.mapOne(n))}mapOne(e){const{type:n}=this.config;return n==="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,n){const t=n.reduce((r,a)=>r.concat(getCol(a,e)),[]);return Array.from(new Set(t))}numericDomain(data,stackedData,keys){const{domain}=this.config,values=keys.reduce((e,n)=>e.concat(getCol(n,data)),[]),valueMax=max$1(stackedData,e=>max$1(e,n=>max$1(n)))||0,valueMin=min$1(stackedData,e=>min$1(e,n=>min$1(n)))||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(n){this.config=n,this.primary=new Scale(n.primary),this.secondary=new Scale(n.secondary)}changeConfig(n){this.config=n,this.primary.changeConfig(n.primary),this.secondary.changeConfig(n.secondary)}updateRange(n,t){t==="horizontal"?(this.primary.updateRange([n.x,n.width]),this.secondary.updateRange([n.height,n.y])):t==="vertical"&&(this.primary.updateRange([n.y,n.height]),this.secondary.updateRange([n.x,n.width]))}updateDomain(n,t,r){this.primary.updateDomain(n,t,getCol(0,r)),this.secondary.updateDomain(n,t,getCol(1,r))}}function constant$2(e){return function(){return e}}const abs$1=Math.abs,atan2=Math.atan2,cos=Math.cos,max$2=Math.max,min$2=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 n=1,t=e.length;n<t;++n)this._+=arguments[n]+e[n]}function appendRound(e){let n=Math.floor(e);if(!(n>=0))throw new Error(`invalid digits: ${e}`);if(n>15)return append;const t=10**n;return function(r){this._+=r[0];for(let a=1,s=r.length;a<s;++a)this._+=Math.round(arguments[a]*t)/t+r[a]}}class Path{constructor(n){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=n==null?append:appendRound(n)}moveTo(n,t){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(n,t){this._append`L${this._x1=+n},${this._y1=+t}`}quadraticCurveTo(n,t,r,a){this._append`Q${+n},${+t},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(n,t,r,a,s,i){this._append`C${+n},${+t},${+r},${+a},${this._x1=+s},${this._y1=+i}`}arcTo(n,t,r,a,s){if(n=+n,t=+t,r=+r,a=+a,s=+s,s<0)throw new Error(`negative radius: ${s}`);let i=this._x1,l=this._y1,c=r-n,d=a-t,f=i-n,p=l-t,v=f*f+p*p;if(this._x1===null)this._append`M${this._x1=n},${this._y1=t}`;else if(v>epsilon$1)if(!(Math.abs(p*c-d*f)>epsilon$1)||!s)this._append`L${this._x1=n},${this._y1=t}`;else{let m=r-i,g=a-l,b=c*c+d*d,C=m*m+g*g,w=Math.sqrt(b),E=Math.sqrt(v),V=s*Math.tan((pi-Math.acos((b+v-C)/(2*w*E)))/2),A=V/E,$=V/w;Math.abs(A-1)>epsilon$1&&this._append`L${n+A*f},${t+A*p}`,this._append`A${s},${s},0,0,${+(p*m>f*g)},${this._x1=n+$*c},${this._y1=t+$*d}`}}arc(n,t,r,a,s,i){if(n=+n,t=+t,r=+r,i=!!i,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(a),c=r*Math.sin(a),d=n+l,f=t+c,p=1^i,v=i?a-s:s-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}`,r&&(v<0&&(v=v%tau+tau),v>tauEpsilon?this._append`A${r},${r},0,1,${p},${n-l},${t-c}A${r},${r},0,1,${p},${this._x1=d},${this._y1=f}`:v>epsilon$1&&this._append`A${r},${r},0,${+(v>=pi)},${p},${this._x1=n+r*Math.cos(s)},${this._y1=t+r*Math.sin(s)}`)}rect(n,t,r,a){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+t}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function withPath(e){let n=3;return e.digits=function(t){if(!arguments.length)return n;if(t==null)n=null;else{const r=Math.floor(t);if(!(r>=0))throw new RangeError(`invalid digits: ${t}`);n=r}return e},()=>new Path(n)}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,n,t,r,a,s,i,l){var c=t-e,d=r-n,f=i-a,p=l-s,v=p*c-f*d;if(!(v*v<epsilon$2))return v=(f*(n-s)-p*(e-a))/v,[e+v*c,n+v*d]}function cornerTangents(e,n,t,r,a,s,i){var l=e-t,c=n-r,d=(i?s:-s)/sqrt(l*l+c*c),f=d*c,p=-d*l,v=e+f,m=n+p,g=t+f,b=r+p,C=(v+g)/2,w=(m+b)/2,E=g-v,V=b-m,A=E*E+V*V,$=a-s,O=v*b-g*m,I=(V<0?-1:1)*sqrt(max$2(0,$*$*A-O*O)),L=(O*V-E*I)/A,Z=(-O*E-V*I)/A,se=(O*V+E*I)/A,z=(-O*E+V*I)/A,ie=L-C,Q=Z-w,ae=se-C,we=z-w;return ie*ie+Q*Q>ae*ae+we*we&&(L=se,Z=z),{cx:L,cy:Z,x01:-f,y01:-p,x11:L*(a/$-1),y11:Z*(a/$-1)}}function arc(){var e=arcInnerRadius,n=arcOuterRadius,t=constant$2(0),r=null,a=arcStartAngle,s=arcEndAngle,i=arcPadAngle,l=null,c=withPath(d);function d(){var f,p,v=+e.apply(this,arguments),m=+n.apply(this,arguments),g=a.apply(this,arguments)-halfPi,b=s.apply(this,arguments)-halfPi,C=abs$1(b-g),w=b>g;if(l||(l=f=c()),m<v&&(p=m,m=v,v=p),!(m>epsilon$2))l.moveTo(0,0);else if(C>tau$1-epsilon$2)l.moveTo(m*cos(g),m*sin(g)),l.arc(0,0,m,g,b,!w),v>epsilon$2&&(l.moveTo(v*cos(b),v*sin(b)),l.arc(0,0,v,b,g,w));else{var E=g,V=b,A=g,$=b,O=C,I=C,L=i.apply(this,arguments)/2,Z=L>epsilon$2&&(r?+r.apply(this,arguments):sqrt(v*v+m*m)),se=min$2(abs$1(m-v)/2,+t.apply(this,arguments)),z=se,ie=se,Q,ae;if(Z>epsilon$2){var we=asin(Z/v*sin(L)),me=asin(Z/m*sin(L));(O-=we*2)>epsilon$2?(we*=w?1:-1,A+=we,$-=we):(O=0,A=$=(g+b)/2),(I-=me*2)>epsilon$2?(me*=w?1:-1,E+=me,V-=me):(I=0,E=V=(g+b)/2)}var fe=m*cos(E),T=m*sin(E),M=v*cos($),G=v*sin($);if(se>epsilon$2){var ne=m*cos(V),he=m*sin(V),B=v*cos(A),U=v*sin(A),q;if(C<pi$1)if(q=intersect(fe,T,B,U,ne,he,M,G)){var oe=fe-q[0],ee=T-q[1],le=ne-q[0],ue=he-q[1],te=1/sin(acos((oe*le+ee*ue)/(sqrt(oe*oe+ee*ee)*sqrt(le*le+ue*ue)))/2),ce=sqrt(q[0]*q[0]+q[1]*q[1]);z=min$2(se,(v-ce)/(te-1)),ie=min$2(se,(m-ce)/(te+1))}else z=ie=0}I>epsilon$2?ie>epsilon$2?(Q=cornerTangents(B,U,fe,T,m,ie,w),ae=cornerTangents(ne,he,M,G,m,ie,w),l.moveTo(Q.cx+Q.x01,Q.cy+Q.y01),ie<se?l.arc(Q.cx,Q.cy,ie,atan2(Q.y01,Q.x01),atan2(ae.y01,ae.x01),!w):(l.arc(Q.cx,Q.cy,ie,atan2(Q.y01,Q.x01),atan2(Q.y11,Q.x11),!w),l.arc(0,0,m,atan2(Q.cy+Q.y11,Q.cx+Q.x11),atan2(ae.cy+ae.y11,ae.cx+ae.x11),!w),l.arc(ae.cx,ae.cy,ie,atan2(ae.y11,ae.x11),atan2(ae.y01,ae.x01),!w))):(l.moveTo(fe,T),l.arc(0,0,m,E,V,!w)):l.moveTo(fe,T),!(v>epsilon$2)||!(O>epsilon$2)?l.lineTo(M,G):z>epsilon$2?(Q=cornerTangents(M,G,ne,he,v,-z,w),ae=cornerTangents(fe,T,B,U,v,-z,w),l.lineTo(Q.cx+Q.x01,Q.cy+Q.y01),z<se?l.arc(Q.cx,Q.cy,z,atan2(Q.y01,Q.x01),atan2(ae.y01,ae.x01),!w):(l.arc(Q.cx,Q.cy,z,atan2(Q.y01,Q.x01),atan2(Q.y11,Q.x11),!w),l.arc(0,0,v,atan2(Q.cy+Q.y11,Q.cx+Q.x11),atan2(ae.cy+ae.y11,ae.cx+ae.x11),w),l.arc(ae.cx,ae.cy,z,atan2(ae.y11,ae.x11),atan2(ae.y01,ae.x01),!w))):l.arc(0,0,v,$,A,w)}if(l.closePath(),f)return l=null,f+""||null}return d.centroid=function(){var f=(+e.apply(this,arguments)+ +n.apply(this,arguments))/2,p=(+a.apply(this,arguments)+ +s.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?(n=typeof f=="function"?f:constant$2(+f),d):n},d.cornerRadius=function(f){return arguments.length?(t=typeof f=="function"?f:constant$2(+f),d):t},d.padRadius=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:constant$2(+f),d):r},d.startAngle=function(f){return arguments.length?(a=typeof f=="function"?f:constant$2(+f),d):a},d.endAngle=function(f){return arguments.length?(s=typeof f=="function"?f:constant$2(+f),d):s},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,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:this._context.lineTo(e,n);break}}};function curveLinear(e){return new Linear(e)}function x(e){return e[0]}function y(e){return e[1]}function line(e,n){var t=constant$2(!0),r=null,a=curveLinear,s=null,i=withPath(l);e=typeof e=="function"?e:e===void 0?x:constant$2(e),n=typeof n=="function"?n:n===void 0?y:constant$2(n);function l(c){var d,f=(c=array$1(c)).length,p,v=!1,m;for(r==null&&(s=a(m=i())),d=0;d<=f;++d)!(d<f&&t(p=c[d],d,c))===v&&((v=!v)?s.lineStart():s.lineEnd()),v&&s.point(+e(p,d,c),+n(p,d,c));if(m)return s=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?(n=typeof c=="function"?c:constant$2(+c),l):n},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,r!=null&&(s=a(r)),l):a},l.context=function(c){return arguments.length?(c==null?r=s=null:s=a(r=c),l):r},l}function area(e,n,t){var r=null,a=constant$2(!0),s=null,i=curveLinear,l=null,c=withPath(d);e=typeof e=="function"?e:e===void 0?x:constant$2(+e),n=typeof n=="function"?n:constant$2(n===void 0?0:+n),t=typeof t=="function"?t:t===void 0?y:constant$2(+t);function d(p){var v,m,g,b=(p=array$1(p)).length,C,w=!1,E,V=new Array(b),A=new Array(b);for(s==null&&(l=i(E=c())),v=0;v<=b;++v){if(!(v<b&&a(C=p[v],v,p))===w)if(w=!w)m=v,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),g=v-1;g>=m;--g)l.point(V[g],A[g]);l.lineEnd(),l.areaEnd()}w&&(V[v]=+e(C,v,p),A[v]=+n(C,v,p),l.point(r?+r(C,v,p):V[v],t?+t(C,v,p):A[v]))}if(E)return l=null,E+""||null}function f(){return line().defined(a).curve(i).context(s)}return d.x=function(p){return arguments.length?(e=typeof p=="function"?p:constant$2(+p),r=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?(r=p==null?null:typeof p=="function"?p:constant$2(+p),d):r},d.y=function(p){return arguments.length?(n=typeof p=="function"?p:constant$2(+p),t=null,d):n},d.y0=function(p){return arguments.length?(n=typeof p=="function"?p:constant$2(+p),d):n},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(n)},d.lineY1=function(){return f().x(e).y(t)},d.lineX1=function(){return f().x(r).y(n)},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,s!=null&&(l=i(s)),d):i},d.context=function(p){return arguments.length?(p==null?s=l=null:l=i(s=p),d):s},d}function descending(e,n){return n<e?-1:n>e?1:n>=e?0:NaN}function identity$1(e){return e}function pie(){var e=identity$1,n=descending,t=null,r=constant$2(0),a=constant$2(tau$1),s=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),b=+r.apply(this,arguments),C=Math.min(tau$1,Math.max(-tau$1,a.apply(this,arguments)-b)),w,E=Math.min(Math.abs(C)/d,s.apply(this,arguments)),V=E*(C<0?-1:1),A;for(c=0;c<d;++c)(A=g[m[c]=c]=+e(l[c],c,l))>0&&(v+=A);for(n!=null?m.sort(function($,O){return n(g[$],g[O])}):t!=null&&m.sort(function($,O){return t(l[$],l[O])}),c=0,p=v?(C-d*V)/v:0;c<d;++c,b=w)f=m[c],A=g[f],w=b+(A>0?A*p:0)+V,g[f]={data:l[f],index:c,value:A,startAngle:b,endAngle:w,padAngle:E};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?(n=l,t=null,i):n},i.sort=function(l){return arguments.length?(t=l,n=null,i):t},i.startAngle=function(l){return arguments.length?(r=typeof l=="function"?l:constant$2(+l),i):r},i.endAngle=function(l){return arguments.length?(a=typeof l=="function"?l:constant$2(+l),i):a},i.padAngle=function(l){return arguments.length?(s=typeof l=="function"?l:constant$2(+l),i):s},i}function sign$1(e){return e<0?-1:1}function slope3(e,n,t){var r=e._x1-e._x0,a=n-e._x1,s=(e._y1-e._y0)/(r||a<0&&-0),i=(t-e._y1)/(a||r<0&&-0),l=(s*a+i*r)/(r+a);return(sign$1(s)+sign$1(i))*Math.min(Math.abs(s),Math.abs(i),.5*Math.abs(l))||0}function slope2(e,n){var t=e._x1-e._x0;return t?(3*(e._y1-e._y0)/t-n)/2:n}function point(e,n,t){var r=e._x0,a=e._y0,s=e._x1,i=e._y1,l=(s-r)/3;e._context.bezierCurveTo(r+l,a+l*n,s-l,i-l*t,s,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,n){var t=NaN;if(e=+e,n=+n,!(e===this._x1&&n===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;break;case 2:this._point=3,point(this,slope2(this,t=slope3(this,e,n)),t);break;default:point(this,this._t0,t=slope3(this,e,n));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=n,this._t0=t}}};function MonotoneY(e){this._context=new ReflectContext(e)}(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(e,n){MonotoneX.prototype.point.call(this,n,e)};function ReflectContext(e){this._context=e}ReflectContext.prototype={moveTo:function(e,n){this._context.moveTo(n,e)},closePath:function(){this._context.closePath()},lineTo:function(e,n){this._context.lineTo(n,e)},bezierCurveTo:function(e,n,t,r,a,s){this._context.bezierCurveTo(n,e,r,t,s,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,n=this._y,t=e.length;if(t)if(this._line?this._context.lineTo(e[0],n[0]):this._context.moveTo(e[0],n[0]),t===2)this._context.lineTo(e[1],n[1]);else for(var r=controlPoints(e),a=controlPoints(n),s=0,i=1;i<t;++s,++i)this._context.bezierCurveTo(r[0][s],a[0][s],r[1][s],a[1][s],e[i],n[i]);(this._line||this._line!==0&&t===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,n){this._x.push(+e),this._y.push(+n)}};function controlPoints(e){var n,t=e.length-1,r,a=new Array(t),s=new Array(t),i=new Array(t);for(a[0]=0,s[0]=2,i[0]=e[0]+2*e[1],n=1;n<t-1;++n)a[n]=1,s[n]=4,i[n]=4*e[n]+2*e[n+1];for(a[t-1]=2,s[t-1]=7,i[t-1]=8*e[t-1]+e[t],n=1;n<t;++n)r=a[n]/s[n-1],s[n]-=r,i[n]-=r*i[n-1];for(a[t-1]=i[t-1]/s[t-1],n=t-2;n>=0;--n)a[n]=(i[n]-a[n+1])/s[n];for(s[t-1]=(e[t]+a[t-1])/2,n=0;n<t-1;++n)s[n]=2*e[n+1]-a[n+1];return[a,s]}function curveNatural(e){return new Natural(e)}function Step(e,n){this._context=e,this._t=n}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,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(e,n);else{var t=this._x*(1-this._t)+e*this._t;this._context.lineTo(t,this._y),this._context.lineTo(t,n)}break}}this._x=e,this._y=n}};function curveStep(e){return new Step(e,.5)}function stepAfter(e){return new Step(e,1)}function none$1(e,n){if((i=e.length)>1)for(var t=1,r,a,s=e[n[0]],i,l=s.length;t<i;++t)for(a=s,s=e[n[t]],r=0;r<l;++r)s[r][1]+=s[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function stackOrderNone(e){for(var n=e.length,t=new Array(n);--n>=0;)t[n]=n;return t}function stackValue(e,n){return e[n]}function stackSeries(e){const n=[];return n.key=e,n}function stack(){var e=constant$2([]),n=stackOrderNone,t=none$1,r=stackValue;function a(s){var i=Array.from(e.apply(this,arguments),stackSeries),l,c=i.length,d=-1,f;for(const p of s)for(l=0,++d;l<c;++l)(i[l][d]=[0,+r(p,i[l].key,d,s)]).data=p;for(l=0,f=array$1(n(i));l<c;++l)i[f[l]].index=l;return t(i,f),i}return a.keys=function(s){return arguments.length?(e=typeof s=="function"?s:constant$2(Array.from(s)),a):e},a.value=function(s){return arguments.length?(r=typeof s=="function"?s:constant$2(+s),a):r},a.order=function(s){return arguments.length?(n=s==null?stackOrderNone:typeof s=="function"?s:constant$2(Array.from(s)),a):n},a.offset=function(s){return arguments.length?(t=s??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(n,t){this.data=n,this.layers=[],this.config=mergeDeepLeft$1(pickBy$1(r=>r!==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:n,size:t}=this.config,r=this.config.axisSpace;return this.config.axis.primary.hide&&(r.y=0),this.config.axis.secondary.hide&&(r.x=0),{x:n.left+r.x,y:n.top,width:t.width-n.right,height:t.height-n.bottom-r.y}}getStackedData(n){return stack().keys(n).order(stackOrderNone)(this.data)}changeData(n){this.data=n,this.update("data")}changeConfig(n){this.config=mergeDeepLeft$1(pickBy$1(t=>t!==void 0,n),this.config),this.scales.changeConfig(this.config.axis),this.update("config")}addLayer(n){this.layers.push(n),this.update("layers")}removeLayer(n){this.layers=this.layers.filter(t=>t.id!==n),this.update("layers")}getLayers(n){return n?this.layers.filter(t=>t.type===n):this.layers}getData(n){return n.reduce((t,r)=>t.concat(getCol(r,this.data)),[])}getKeys(n=-1,t=null){const r=this.layers.filter(a=>t?a.type===t:!0).map(a=>a.dataKeys);return n===-1?r:getCol(n,r)}getStackedKeys(n=-1,t=null){const r=this.layers.filter(a=>t?a.type===t&&a.props.stacked:a.props.stacked).map(a=>a.dataKeys);return n===-1?r:getCol(n,r)}update(n){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 n=e+="",t=n.indexOf(":");return t>=0&&(n=e.slice(0,t))!=="xmlns"&&(e=e.slice(t+1)),namespaces.hasOwnProperty(n)?{space:namespaces[n],local:e}:e}function creatorInherit(e){return function(){var n=this.ownerDocument,t=this.namespaceURI;return t===xhtml&&n.documentElement.namespaceURI===xhtml?n.createElement(e):n.createElementNS(t,e)}}function creatorFixed(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function creator(e){var n=namespace(e);return(n.local?creatorFixed:creatorInherit)(n)}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 n=this._groups,t=n.length,r=new Array(t),a=0;a<t;++a)for(var s=n[a],i=s.length,l=r[a]=new Array(i),c,d,f=0;f<i;++f)(c=s[f])&&(d=e.call(c,c.__data__,f,s))&&("__data__"in c&&(d.__data__=c.__data__),l[f]=d);return new Selection(r,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 n=this._groups,t=n.length,r=[],a=[],s=0;s<t;++s)for(var i=n[s],l=i.length,c,d=0;d<l;++d)(c=i[d])&&(r.push(e.call(c,c.__data__,d,i)),a.push(c));return new Selection(r,a)}function matcher(e){return function(){return this.matches(e)}}function childMatcher(e){return function(n){return n.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 n=this._groups,t=n.length,r=new Array(t),a=0;a<t;++a)for(var s=n[a],i=s.length,l=r[a]=[],c,d=0;d<i;++d)(c=s[d])&&e.call(c,c.__data__,d,s)&&l.push(c);return new Selection(r,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,n){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=n}EnterNode.prototype={constructor:EnterNode,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,n){return this._parent.insertBefore(e,n)},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,n,t,r,a,s){for(var i=0,l,c=n.length,d=s.length;i<d;++i)(l=n[i])?(l.__data__=s[i],r[i]=l):t[i]=new EnterNode(e,s[i]);for(;i<c;++i)(l=n[i])&&(a[i]=l)}function bindKey(e,n,t,r,a,s,i){var l,c,d=new Map,f=n.length,p=s.length,v=new Array(f),m;for(l=0;l<f;++l)(c=n[l])&&(v[l]=m=i.call(c,c.__data__,l,n)+"",d.has(m)?a[l]=c:d.set(m,c));for(l=0;l<p;++l)m=i.call(e,s[l],l,s)+"",(c=d.get(m))?(r[l]=c,c.__data__=s[l],d.delete(m)):t[l]=new EnterNode(e,s[l]);for(l=0;l<f;++l)(c=n[l])&&d.get(v[l])===c&&(a[l]=c)}function datum(e){return e.__data__}function selection_data(e,n){if(!arguments.length)return Array.from(this,datum);var t=n?bindKey:bindIndex,r=this._parents,a=this._groups;typeof e!="function"&&(e=constant$1(e));for(var s=a.length,i=new Array(s),l=new Array(s),c=new Array(s),d=0;d<s;++d){var f=r[d],p=a[d],v=p.length,m=arraylike(e.call(f,f&&f.__data__,d,r)),g=m.length,b=l[d]=new Array(g),C=i[d]=new Array(g),w=c[d]=new Array(v);t(f,p,b,C,w,m,n);for(var E=0,V=0,A,$;E<g;++E)if(A=b[E]){for(E>=V&&(V=E+1);!($=C[V])&&++V<g;);A._next=$||null}}return i=new Selection(i,r),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,n,t){var r=this.enter(),a=this,s=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),n!=null&&(a=n(a),a&&(a=a.selection())),t==null?s.remove():t(s),r&&a?r.merge(a).order():a}function selection_merge(e){for(var n=e.selection?e.selection():e,t=this._groups,r=n._groups,a=t.length,s=r.length,i=Math.min(a,s),l=new Array(a),c=0;c<i;++c)for(var d=t[c],f=r[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,n=-1,t=e.length;++n<t;)for(var r=e[n],a=r.length-1,s=r[a],i;--a>=0;)(i=r[a])&&(s&&i.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(i,s),s=i);return this}function selection_sort(e){e||(e=ascending);function n(p,v){return p&&v?e(p.__data__,v.__data__):!p-!v}for(var t=this._groups,r=t.length,a=new Array(r),s=0;s<r;++s){for(var i=t[s],l=i.length,c=a[s]=new Array(l),d,f=0;f<l;++f)(d=i[f])&&(c[f]=d);c.sort(n)}return new Selection(a,this._parents).order()}function ascending(e,n){return e<n?-1:e>n?1:e>=n?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,n=0,t=e.length;n<t;++n)for(var r=e[n],a=0,s=r.length;a<s;++a){var i=r[a];if(i)return i}return null}function selection_size(){let e=0;for(const n of this)++e;return e}function selection_empty(){return!this.node()}function selection_each(e){for(var n=this._groups,t=0,r=n.length;t<r;++t)for(var a=n[t],s=0,i=a.length,l;s<i;++s)(l=a[s])&&e.call(l,l.__data__,s,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,n){return function(){this.setAttribute(e,n)}}function attrConstantNS(e,n){return function(){this.setAttributeNS(e.space,e.local,n)}}function attrFunction(e,n){return function(){var t=n.apply(this,arguments);t==null?this.removeAttribute(e):this.setAttribute(e,t)}}function attrFunctionNS(e,n){return function(){var t=n.apply(this,arguments);t==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}}function selection_attr(e,n){var t=namespace(e);if(arguments.length<2){var r=this.node();return t.local?r.getAttributeNS(t.space,t.local):r.getAttribute(t)}return this.each((n==null?t.local?attrRemoveNS:attrRemove:typeof n=="function"?t.local?attrFunctionNS:attrFunction:t.local?attrConstantNS:attrConstant)(t,n))}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,n,t){return function(){this.style.setProperty(e,n,t)}}function styleFunction(e,n,t){return function(){var r=n.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,t)}}function selection_style(e,n,t){return arguments.length>1?this.each((n==null?styleRemove:typeof n=="function"?styleFunction:styleConstant)(e,n,t??"")):styleValue(this.node(),e)}function styleValue(e,n){return e.style.getPropertyValue(n)||defaultView(e).getComputedStyle(e,null).getPropertyValue(n)}function propertyRemove(e){return function(){delete this[e]}}function propertyConstant(e,n){return function(){this[e]=n}}function propertyFunction(e,n){return function(){var t=n.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function selection_property(e,n){return arguments.length>1?this.each((n==null?propertyRemove:typeof n=="function"?propertyFunction:propertyConstant)(e,n)):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 n=this._names.indexOf(e);n<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var n=this._names.indexOf(e);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function classedAdd(e,n){for(var t=classList(e),r=-1,a=n.length;++r<a;)t.add(n[r])}function classedRemove(e,n){for(var t=classList(e),r=-1,a=n.length;++r<a;)t.remove(n[r])}function classedTrue(e){return function(){classedAdd(this,e)}}function classedFalse(e){return function(){classedRemove(this,e)}}function classedFunction(e,n){return function(){(n.apply(this,arguments)?classedAdd:classedRemove)(this,e)}}function selection_classed(e,n){var t=classArray(e+"");if(arguments.length<2){for(var r=classList(this.node()),a=-1,s=t.length;++a<s;)if(!r.contains(t[a]))return!1;return!0}return this.each((typeof n=="function"?classedFunction:n?classedTrue:classedFalse)(t,n))}function textRemove(){this.textContent=""}function textConstant(e){return function(){this.textContent=e}}function textFunction(e){return function(){var n=e.apply(this,arguments);this.textContent=n??""}}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 n=e.apply(this,arguments);this.innerHTML=n??""}}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 n=typeof e=="function"?e:creator(e);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function constantNull(){return null}function selection_insert(e,n){var t=typeof e=="function"?e:creator(e),r=n==null?constantNull:typeof n=="function"?n:selector(n);return this.select(function(){return this.insertBefore(t.apply(this,arguments),r.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),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function selection_cloneDeep(){var e=this.cloneNode(!0),n=this.parentNode;return n?n.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(n){e.call(this,n,this.__data__)}}function parseTypenames(e){return e.trim().split(/^|\s+/).map(function(n){var t="",r=n.indexOf(".");return r>=0&&(t=n.slice(r+1),n=n.slice(0,r)),{type:n,name:t}})}function onRemove(e){return function(){var n=this.__on;if(n){for(var t=0,r=-1,a=n.length,s;t<a;++t)s=n[t],(!e.type||s.type===e.type)&&s.name===e.name?this.removeEventListener(s.type,s.listener,s.options):n[++r]=s;++r?n.length=r:delete this.__on}}}function onAdd(e,n,t){return function(){var r=this.__on,a,s=contextListener(n);if(r){for(var i=0,l=r.length;i<l;++i)if((a=r[i]).type===e.type&&a.name===e.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=s,a.options=t),a.value=n;return}}this.addEventListener(e.type,s,t),a={type:e.type,name:e.name,value:n,listener:s,options:t},r?r.push(a):this.__on=[a]}}function selection_on(e,n,t){var r=parseTypenames(e+""),a,s=r.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<s;++a)if((i=r[a]).type===f.type&&i.name===f.name)return f.value}return}for(l=n?onAdd:onRemove,a=0;a<s;++a)this.each(l(r[a],n,t));return this}function dispatchEvent(e,n,t){var r=defaultView(e),a=r.CustomEvent;typeof a=="function"?a=new a(n,t):(a=r.document.createEvent("Event"),t?(a.initEvent(n,t.bubbles,t.cancelable),a.detail=t.detail):a.initEvent(n,!1,!1)),e.dispatchEvent(a)}function dispatchConstant(e,n){return function(){return dispatchEvent(this,e,n)}}function dispatchFunction(e,n){return function(){return dispatchEvent(this,e,n.apply(this,arguments))}}function selection_dispatch(e,n){return this.each((typeof n=="function"?dispatchFunction:dispatchConstant)(e,n))}function*selection_iterator(){for(var e=this._groups,n=0,t=e.length;n<t;++n)for(var r=e[n],a=0,s=r.length,i;a<s;++a)(i=r[a])&&(yield i)}var root=[null];function Selection(e,n){this._groups=e,this._parents=n}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 n;for(;n=e.sourceEvent;)e=n;return e}function pointer(e,n){if(e=sourceEvent(e),n===void 0&&(n=e.currentTarget),n){var t=n.ownerSVGElement||n;if(t.createSVGPoint){var r=t.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(n.getScreenCTM().inverse()),[r.x,r.y]}if(n.getBoundingClientRect){var a=n.getBoundingClientRect();return[e.clientX-a.left-n.clientLeft,e.clientY-a.top-n.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 n=>+e(n)}function center(e,n){return n=Math.max(0,e.bandwidth()-n*2)/2,e.round()&&(n=Math.round(n)),t=>+e(t)+n}function entering(){return!this.__axis}function axis(e,n){var t=[],r=null,a=null,s=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=r??(n.ticks?n.ticks.apply(n,t):n.domain()),b=a??(n.tickFormat?n.tickFormat.apply(n,t):identity),C=Math.max(s,0)+l,w=n.range(),E=+w[0]+c,V=+w[w.length-1]+c,A=(n.bandwidth?center:number)(n.copy(),c),$=m.selection?m.selection():m,O=$.selectAll(".domain").data([null]),I=$.selectAll(".tick").data(g,n).order(),L=I.exit(),Z=I.enter().append("g").attr("class","tick"),se=I.select("line"),z=I.select("text");O=O.merge(O.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),I=I.merge(Z),se=se.merge(Z.append("line").attr("stroke","currentColor").attr(f+"2",d*s)),z=z.merge(Z.append("text").attr("fill","currentColor").attr(f,d*C).attr("dy",e===top?"0em":e===bottom?"0.71em":"0.32em")),m!==$&&(O=O.transition(m),I=I.transition(m),se=se.transition(m),z=z.transition(m),L=L.transition(m).attr("opacity",epsilon).attr("transform",function(ie){return isFinite(ie=A(ie))?p(ie+c):this.getAttribute("transform")}),Z.attr("opacity",epsilon).attr("transform",function(ie){var Q=this.parentNode.__axis;return p((Q&&isFinite(Q=Q(ie))?Q:A(ie))+c)})),L.remove(),O.attr("d",e===left||e===right?i?"M"+d*i+","+E+"H"+c+"V"+V+"H"+d*i:"M"+c+","+E+"V"+V:i?"M"+E+","+d*i+"V"+c+"H"+V+"V"+d*i:"M"+E+","+c+"H"+V),I.attr("opacity",1).attr("transform",function(ie){return p(A(ie)+c)}),se.attr(f+"2",d*s),z.attr(f,d*C).text(b),$.filter(entering).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===right?"start":e===left?"end":"middle"),$.each(function(){this.__axis=A})}return v.scale=function(m){return arguments.length?(n=m,v):n},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?(r=m==null?null:Array.from(m),v):r&&r.slice()},v.tickFormat=function(m){return arguments.length?(a=m,v):a},v.tickSize=function(m){return arguments.length?(s=i=+m,v):s},v.tickSizeInner=function(m){return arguments.length?(s=+m,v):s},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,n={stacked:!1,type:"line"})=>{const t=vue.ref([]),r=useChart(),{stacked:a,type:s}=n;function i(c,d){const{primary:f,secondary:p}=r.scales;return r.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)):r.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=r.getStackedKeys(1,s),[d,f]=e,v=r.getStackedData(a?c:[e[1]]).find(m=>m.key===f);v&&(t.value=i(d,v))}return vue.watch(r.updates,()=>{l()},{immediate:!0}),{points:t}},useMouse=()=>vue.inject("chartMouse",{index:-1,position:{x:0,y:0},hover:!1}),useBars=(e,n={maxWidth:-1,gap:5,stacked:!1,type:"bar"})=>{const t=vue.ref([]),r=useChart(),{stacked:a,type:s,gap:i}=n;function l(){const{primary:m,secondary:g}=r.scales,b=m.type==="band"?m:g,C=m.type==="band"?g:m;return{bandScale:b,linearScale:C}}function c(){if(a)return 0;const g=r.getLayers(s).findIndex(b=>b.dataKeys.join(",")===e.join(","));return g>-1?g:0}function d(){const{bandScale:m}=l(),g=n.maxWidth>-1?Math.min(m.bandwidth()-i,n.maxWidth):m.bandwidth()-i,b=r.getLayers(s);return b.length>0&&!a?g/b.length:g}function f(){if(a)return 0;const{bandScale:m}=l(),g=m.bandwidth()-i,b=r.getLayers(s).length*d();return(g-b)/2}function p(m,g){const{bandScale:b,linearScale:C}=l(),w=c(),E=d(),V=f();return g.map(A=>{const $={x:0,y:0,width:0,height:0,props:{values:[...A],data:A.data}},O=b.scale(A.data[m]),[I,L]=C.map(A);return r.config.direction==="horizontal"?($.y=Math.min(I,L),$.height=Math.abs(I-L),$.x=V+O+w*E+i/2,$.width=E):r.config.direction==="vertical"&&($.x=Math.min(I,L),$.width=Math.abs(I-L),$.y=V+O+w*E+i/2,$.height=E),$})}function v(){const m=a?r.getStackedKeys(1,s):[e[1]],[g,b]=e,w=r.getStackedData(m).find(E=>E.key===b);w&&(t.value=p(g,w))}return vue.watch(r.updates,()=>{v()}),{bars:t}},useTooltip=()=>{const e=useMouse(),n=useChart(),t=vue.computed(()=>e.hover),r=vue.ref({x:0,y:0}),a=vue.ref({});return vue.watch(e,()=>{const{primary:s}=n.scales,i=n.getKeys(0),l=n.getData(i),[c]=s.map([l[e.index]]);c&&(n.config.direction==="horizontal"?r.value={x:c,y:e.position.y}:n.config.direction==="vertical"?r.value={x:e.position.x,y:c}:r.value={x:e.position.x,y:e.position.y});const d=n.data[e.index];d&&(a.value=Object.assign(Object.assign({},d),{idx:e.index}))}),{position:r,payload:a,show:t}},useResize=e=>{const n=vue.ref(0),t=vue.ref(0);let r=null,a=null;function s(l,c){n.value=l,t.value=c,a&&a()}function i(l){a=l}return vue.onMounted(()=>{r=new window.ResizeObserver(l=>{const c=l[0].contentRect.width,d=l[0].contentRect.height;s(c,d)}),r.observe(e.value)}),vue.onUnmounted(()=>{r.disconnect()}),{width:n,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 n=vue.ref(),t=useChart(),r=vue.computed(()=>e.position==="bottom"?axisBottom:axisLeft),a=vue.ref(t.canvas),s={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,s),p=r.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(n.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:n,canvas:a}}});const _hoisted_1$b$1=["transform"],_hoisted_2$8$1=["transform"];function render$d(e,n,t,r,a,s){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 n=vue.ref(null),t=vue.ref(),r=vue.ref(),a=vue.reactive({x:40,y:20}),s=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",s),vue.provide("chartMouse",d),vue.watch(()=>e.data,()=>{s&&s.changeData(e.data)},{immediate:!0}),vue.watch(()=>e.config,()=>{s&&s.changeConfig(e.config)}),vue.watch(()=>[Object.assign({},a),e.direction,e.size,e.margin,e.axis],()=>{s&&s.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)r.value&&g.target===r.value.$el?a.y=g.contentRect.height:t.value&&g.target===t.value.$el&&(a.x=g.contentRect.width)});vue.onMounted(()=>{r.value&&f.observe(r.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}=s.scales,b=s.getKeys(0),C=s.getData(b);if(s.config.direction==="horizontal")if(g.type==="band"){const w=g.bandwidth(),E=d.position.x-s.canvas.x;d.index=Math.round((E+w/2)/w)-1}else d.index=bisectCenter(C,g.scale.invert(d.position.x));else if(s.config.direction==="vertical")if(g.type==="band"){const w=g.bandwidth(),E=d.position.y-s.canvas.y;d.index=Math.round((E+w/2)/w)-1}else d.index=bisectCenter(C,g.scale.invert(d.position.y))}return{axBottomEl:r,axLeftEl:t,chartEl:n,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,n,t,r,a,s){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:n[0]||(n[0]=(...l)=>e.onMouseMove&&e.onMouseMove(...l)),onPointerleave:n[1]||(n[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,n){n===void 0&&(n={});var t=n.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t==="top"&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var css_248z$1=`
|
|
138
|
+
`);return[yMin,yMax]}}class Scales{constructor(n){this.config=n,this.primary=new Scale(n.primary),this.secondary=new Scale(n.secondary)}changeConfig(n){this.config=n,this.primary.changeConfig(n.primary),this.secondary.changeConfig(n.secondary)}updateRange(n,t){t==="horizontal"?(this.primary.updateRange([n.x,n.width]),this.secondary.updateRange([n.height,n.y])):t==="vertical"&&(this.primary.updateRange([n.y,n.height]),this.secondary.updateRange([n.x,n.width]))}updateDomain(n,t,r){this.primary.updateDomain(n,t,getCol(0,r)),this.secondary.updateDomain(n,t,getCol(1,r))}}function constant$2(e){return function(){return e}}const abs$1=Math.abs,atan2=Math.atan2,cos=Math.cos,max$2=Math.max,min$2=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 n=1,t=e.length;n<t;++n)this._+=arguments[n]+e[n]}function appendRound(e){let n=Math.floor(e);if(!(n>=0))throw new Error(`invalid digits: ${e}`);if(n>15)return append;const t=10**n;return function(r){this._+=r[0];for(let a=1,s=r.length;a<s;++a)this._+=Math.round(arguments[a]*t)/t+r[a]}}class Path{constructor(n){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=n==null?append:appendRound(n)}moveTo(n,t){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(n,t){this._append`L${this._x1=+n},${this._y1=+t}`}quadraticCurveTo(n,t,r,a){this._append`Q${+n},${+t},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(n,t,r,a,s,i){this._append`C${+n},${+t},${+r},${+a},${this._x1=+s},${this._y1=+i}`}arcTo(n,t,r,a,s){if(n=+n,t=+t,r=+r,a=+a,s=+s,s<0)throw new Error(`negative radius: ${s}`);let i=this._x1,l=this._y1,c=r-n,d=a-t,f=i-n,p=l-t,v=f*f+p*p;if(this._x1===null)this._append`M${this._x1=n},${this._y1=t}`;else if(v>epsilon$1)if(!(Math.abs(p*c-d*f)>epsilon$1)||!s)this._append`L${this._x1=n},${this._y1=t}`;else{let m=r-i,g=a-l,b=c*c+d*d,C=m*m+g*g,w=Math.sqrt(b),E=Math.sqrt(v),V=s*Math.tan((pi-Math.acos((b+v-C)/(2*w*E)))/2),A=V/E,P=V/w;Math.abs(A-1)>epsilon$1&&this._append`L${n+A*f},${t+A*p}`,this._append`A${s},${s},0,0,${+(p*m>f*g)},${this._x1=n+P*c},${this._y1=t+P*d}`}}arc(n,t,r,a,s,i){if(n=+n,t=+t,r=+r,i=!!i,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(a),c=r*Math.sin(a),d=n+l,f=t+c,p=1^i,v=i?a-s:s-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}`,r&&(v<0&&(v=v%tau+tau),v>tauEpsilon?this._append`A${r},${r},0,1,${p},${n-l},${t-c}A${r},${r},0,1,${p},${this._x1=d},${this._y1=f}`:v>epsilon$1&&this._append`A${r},${r},0,${+(v>=pi)},${p},${this._x1=n+r*Math.cos(s)},${this._y1=t+r*Math.sin(s)}`)}rect(n,t,r,a){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+t}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function withPath(e){let n=3;return e.digits=function(t){if(!arguments.length)return n;if(t==null)n=null;else{const r=Math.floor(t);if(!(r>=0))throw new RangeError(`invalid digits: ${t}`);n=r}return e},()=>new Path(n)}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,n,t,r,a,s,i,l){var c=t-e,d=r-n,f=i-a,p=l-s,v=p*c-f*d;if(!(v*v<epsilon$2))return v=(f*(n-s)-p*(e-a))/v,[e+v*c,n+v*d]}function cornerTangents(e,n,t,r,a,s,i){var l=e-t,c=n-r,d=(i?s:-s)/sqrt(l*l+c*c),f=d*c,p=-d*l,v=e+f,m=n+p,g=t+f,b=r+p,C=(v+g)/2,w=(m+b)/2,E=g-v,V=b-m,A=E*E+V*V,P=a-s,O=v*b-g*m,I=(V<0?-1:1)*sqrt(max$2(0,P*P*A-O*O)),R=(O*V-E*I)/A,Z=(-O*E-V*I)/A,se=(O*V+E*I)/A,z=(-O*E+V*I)/A,ie=R-C,Q=Z-w,ae=se-C,we=z-w;return ie*ie+Q*Q>ae*ae+we*we&&(R=se,Z=z),{cx:R,cy:Z,x01:-f,y01:-p,x11:R*(a/P-1),y11:Z*(a/P-1)}}function arc(){var e=arcInnerRadius,n=arcOuterRadius,t=constant$2(0),r=null,a=arcStartAngle,s=arcEndAngle,i=arcPadAngle,l=null,c=withPath(d);function d(){var f,p,v=+e.apply(this,arguments),m=+n.apply(this,arguments),g=a.apply(this,arguments)-halfPi,b=s.apply(this,arguments)-halfPi,C=abs$1(b-g),w=b>g;if(l||(l=f=c()),m<v&&(p=m,m=v,v=p),!(m>epsilon$2))l.moveTo(0,0);else if(C>tau$1-epsilon$2)l.moveTo(m*cos(g),m*sin(g)),l.arc(0,0,m,g,b,!w),v>epsilon$2&&(l.moveTo(v*cos(b),v*sin(b)),l.arc(0,0,v,b,g,w));else{var E=g,V=b,A=g,P=b,O=C,I=C,R=i.apply(this,arguments)/2,Z=R>epsilon$2&&(r?+r.apply(this,arguments):sqrt(v*v+m*m)),se=min$2(abs$1(m-v)/2,+t.apply(this,arguments)),z=se,ie=se,Q,ae;if(Z>epsilon$2){var we=asin(Z/v*sin(R)),me=asin(Z/m*sin(R));(O-=we*2)>epsilon$2?(we*=w?1:-1,A+=we,P-=we):(O=0,A=P=(g+b)/2),(I-=me*2)>epsilon$2?(me*=w?1:-1,E+=me,V-=me):(I=0,E=V=(g+b)/2)}var fe=m*cos(E),T=m*sin(E),M=v*cos(P),G=v*sin(P);if(se>epsilon$2){var ne=m*cos(V),he=m*sin(V),B=v*cos(A),U=v*sin(A),q;if(C<pi$1)if(q=intersect(fe,T,B,U,ne,he,M,G)){var oe=fe-q[0],ee=T-q[1],le=ne-q[0],ue=he-q[1],te=1/sin(acos((oe*le+ee*ue)/(sqrt(oe*oe+ee*ee)*sqrt(le*le+ue*ue)))/2),ce=sqrt(q[0]*q[0]+q[1]*q[1]);z=min$2(se,(v-ce)/(te-1)),ie=min$2(se,(m-ce)/(te+1))}else z=ie=0}I>epsilon$2?ie>epsilon$2?(Q=cornerTangents(B,U,fe,T,m,ie,w),ae=cornerTangents(ne,he,M,G,m,ie,w),l.moveTo(Q.cx+Q.x01,Q.cy+Q.y01),ie<se?l.arc(Q.cx,Q.cy,ie,atan2(Q.y01,Q.x01),atan2(ae.y01,ae.x01),!w):(l.arc(Q.cx,Q.cy,ie,atan2(Q.y01,Q.x01),atan2(Q.y11,Q.x11),!w),l.arc(0,0,m,atan2(Q.cy+Q.y11,Q.cx+Q.x11),atan2(ae.cy+ae.y11,ae.cx+ae.x11),!w),l.arc(ae.cx,ae.cy,ie,atan2(ae.y11,ae.x11),atan2(ae.y01,ae.x01),!w))):(l.moveTo(fe,T),l.arc(0,0,m,E,V,!w)):l.moveTo(fe,T),!(v>epsilon$2)||!(O>epsilon$2)?l.lineTo(M,G):z>epsilon$2?(Q=cornerTangents(M,G,ne,he,v,-z,w),ae=cornerTangents(fe,T,B,U,v,-z,w),l.lineTo(Q.cx+Q.x01,Q.cy+Q.y01),z<se?l.arc(Q.cx,Q.cy,z,atan2(Q.y01,Q.x01),atan2(ae.y01,ae.x01),!w):(l.arc(Q.cx,Q.cy,z,atan2(Q.y01,Q.x01),atan2(Q.y11,Q.x11),!w),l.arc(0,0,v,atan2(Q.cy+Q.y11,Q.cx+Q.x11),atan2(ae.cy+ae.y11,ae.cx+ae.x11),w),l.arc(ae.cx,ae.cy,z,atan2(ae.y11,ae.x11),atan2(ae.y01,ae.x01),!w))):l.arc(0,0,v,P,A,w)}if(l.closePath(),f)return l=null,f+""||null}return d.centroid=function(){var f=(+e.apply(this,arguments)+ +n.apply(this,arguments))/2,p=(+a.apply(this,arguments)+ +s.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?(n=typeof f=="function"?f:constant$2(+f),d):n},d.cornerRadius=function(f){return arguments.length?(t=typeof f=="function"?f:constant$2(+f),d):t},d.padRadius=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:constant$2(+f),d):r},d.startAngle=function(f){return arguments.length?(a=typeof f=="function"?f:constant$2(+f),d):a},d.endAngle=function(f){return arguments.length?(s=typeof f=="function"?f:constant$2(+f),d):s},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,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:this._context.lineTo(e,n);break}}};function curveLinear(e){return new Linear(e)}function x(e){return e[0]}function y(e){return e[1]}function line(e,n){var t=constant$2(!0),r=null,a=curveLinear,s=null,i=withPath(l);e=typeof e=="function"?e:e===void 0?x:constant$2(e),n=typeof n=="function"?n:n===void 0?y:constant$2(n);function l(c){var d,f=(c=array$1(c)).length,p,v=!1,m;for(r==null&&(s=a(m=i())),d=0;d<=f;++d)!(d<f&&t(p=c[d],d,c))===v&&((v=!v)?s.lineStart():s.lineEnd()),v&&s.point(+e(p,d,c),+n(p,d,c));if(m)return s=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?(n=typeof c=="function"?c:constant$2(+c),l):n},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,r!=null&&(s=a(r)),l):a},l.context=function(c){return arguments.length?(c==null?r=s=null:s=a(r=c),l):r},l}function area(e,n,t){var r=null,a=constant$2(!0),s=null,i=curveLinear,l=null,c=withPath(d);e=typeof e=="function"?e:e===void 0?x:constant$2(+e),n=typeof n=="function"?n:constant$2(n===void 0?0:+n),t=typeof t=="function"?t:t===void 0?y:constant$2(+t);function d(p){var v,m,g,b=(p=array$1(p)).length,C,w=!1,E,V=new Array(b),A=new Array(b);for(s==null&&(l=i(E=c())),v=0;v<=b;++v){if(!(v<b&&a(C=p[v],v,p))===w)if(w=!w)m=v,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),g=v-1;g>=m;--g)l.point(V[g],A[g]);l.lineEnd(),l.areaEnd()}w&&(V[v]=+e(C,v,p),A[v]=+n(C,v,p),l.point(r?+r(C,v,p):V[v],t?+t(C,v,p):A[v]))}if(E)return l=null,E+""||null}function f(){return line().defined(a).curve(i).context(s)}return d.x=function(p){return arguments.length?(e=typeof p=="function"?p:constant$2(+p),r=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?(r=p==null?null:typeof p=="function"?p:constant$2(+p),d):r},d.y=function(p){return arguments.length?(n=typeof p=="function"?p:constant$2(+p),t=null,d):n},d.y0=function(p){return arguments.length?(n=typeof p=="function"?p:constant$2(+p),d):n},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(n)},d.lineY1=function(){return f().x(e).y(t)},d.lineX1=function(){return f().x(r).y(n)},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,s!=null&&(l=i(s)),d):i},d.context=function(p){return arguments.length?(p==null?s=l=null:l=i(s=p),d):s},d}function descending(e,n){return n<e?-1:n>e?1:n>=e?0:NaN}function identity$1(e){return e}function pie(){var e=identity$1,n=descending,t=null,r=constant$2(0),a=constant$2(tau$1),s=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),b=+r.apply(this,arguments),C=Math.min(tau$1,Math.max(-tau$1,a.apply(this,arguments)-b)),w,E=Math.min(Math.abs(C)/d,s.apply(this,arguments)),V=E*(C<0?-1:1),A;for(c=0;c<d;++c)(A=g[m[c]=c]=+e(l[c],c,l))>0&&(v+=A);for(n!=null?m.sort(function(P,O){return n(g[P],g[O])}):t!=null&&m.sort(function(P,O){return t(l[P],l[O])}),c=0,p=v?(C-d*V)/v:0;c<d;++c,b=w)f=m[c],A=g[f],w=b+(A>0?A*p:0)+V,g[f]={data:l[f],index:c,value:A,startAngle:b,endAngle:w,padAngle:E};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?(n=l,t=null,i):n},i.sort=function(l){return arguments.length?(t=l,n=null,i):t},i.startAngle=function(l){return arguments.length?(r=typeof l=="function"?l:constant$2(+l),i):r},i.endAngle=function(l){return arguments.length?(a=typeof l=="function"?l:constant$2(+l),i):a},i.padAngle=function(l){return arguments.length?(s=typeof l=="function"?l:constant$2(+l),i):s},i}function sign$1(e){return e<0?-1:1}function slope3(e,n,t){var r=e._x1-e._x0,a=n-e._x1,s=(e._y1-e._y0)/(r||a<0&&-0),i=(t-e._y1)/(a||r<0&&-0),l=(s*a+i*r)/(r+a);return(sign$1(s)+sign$1(i))*Math.min(Math.abs(s),Math.abs(i),.5*Math.abs(l))||0}function slope2(e,n){var t=e._x1-e._x0;return t?(3*(e._y1-e._y0)/t-n)/2:n}function point(e,n,t){var r=e._x0,a=e._y0,s=e._x1,i=e._y1,l=(s-r)/3;e._context.bezierCurveTo(r+l,a+l*n,s-l,i-l*t,s,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,n){var t=NaN;if(e=+e,n=+n,!(e===this._x1&&n===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;break;case 2:this._point=3,point(this,slope2(this,t=slope3(this,e,n)),t);break;default:point(this,this._t0,t=slope3(this,e,n));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=n,this._t0=t}}};function MonotoneY(e){this._context=new ReflectContext(e)}(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(e,n){MonotoneX.prototype.point.call(this,n,e)};function ReflectContext(e){this._context=e}ReflectContext.prototype={moveTo:function(e,n){this._context.moveTo(n,e)},closePath:function(){this._context.closePath()},lineTo:function(e,n){this._context.lineTo(n,e)},bezierCurveTo:function(e,n,t,r,a,s){this._context.bezierCurveTo(n,e,r,t,s,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,n=this._y,t=e.length;if(t)if(this._line?this._context.lineTo(e[0],n[0]):this._context.moveTo(e[0],n[0]),t===2)this._context.lineTo(e[1],n[1]);else for(var r=controlPoints(e),a=controlPoints(n),s=0,i=1;i<t;++s,++i)this._context.bezierCurveTo(r[0][s],a[0][s],r[1][s],a[1][s],e[i],n[i]);(this._line||this._line!==0&&t===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,n){this._x.push(+e),this._y.push(+n)}};function controlPoints(e){var n,t=e.length-1,r,a=new Array(t),s=new Array(t),i=new Array(t);for(a[0]=0,s[0]=2,i[0]=e[0]+2*e[1],n=1;n<t-1;++n)a[n]=1,s[n]=4,i[n]=4*e[n]+2*e[n+1];for(a[t-1]=2,s[t-1]=7,i[t-1]=8*e[t-1]+e[t],n=1;n<t;++n)r=a[n]/s[n-1],s[n]-=r,i[n]-=r*i[n-1];for(a[t-1]=i[t-1]/s[t-1],n=t-2;n>=0;--n)a[n]=(i[n]-a[n+1])/s[n];for(s[t-1]=(e[t]+a[t-1])/2,n=0;n<t-1;++n)s[n]=2*e[n+1]-a[n+1];return[a,s]}function curveNatural(e){return new Natural(e)}function Step(e,n){this._context=e,this._t=n}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,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(e,n);else{var t=this._x*(1-this._t)+e*this._t;this._context.lineTo(t,this._y),this._context.lineTo(t,n)}break}}this._x=e,this._y=n}};function curveStep(e){return new Step(e,.5)}function stepAfter(e){return new Step(e,1)}function none$1(e,n){if((i=e.length)>1)for(var t=1,r,a,s=e[n[0]],i,l=s.length;t<i;++t)for(a=s,s=e[n[t]],r=0;r<l;++r)s[r][1]+=s[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function stackOrderNone(e){for(var n=e.length,t=new Array(n);--n>=0;)t[n]=n;return t}function stackValue(e,n){return e[n]}function stackSeries(e){const n=[];return n.key=e,n}function stack(){var e=constant$2([]),n=stackOrderNone,t=none$1,r=stackValue;function a(s){var i=Array.from(e.apply(this,arguments),stackSeries),l,c=i.length,d=-1,f;for(const p of s)for(l=0,++d;l<c;++l)(i[l][d]=[0,+r(p,i[l].key,d,s)]).data=p;for(l=0,f=array$1(n(i));l<c;++l)i[f[l]].index=l;return t(i,f),i}return a.keys=function(s){return arguments.length?(e=typeof s=="function"?s:constant$2(Array.from(s)),a):e},a.value=function(s){return arguments.length?(r=typeof s=="function"?s:constant$2(+s),a):r},a.order=function(s){return arguments.length?(n=s==null?stackOrderNone:typeof s=="function"?s:constant$2(Array.from(s)),a):n},a.offset=function(s){return arguments.length?(t=s??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(n,t){this.data=n,this.layers=[],this.config=mergeDeepLeft$1(pickBy$1(r=>r!==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:n,size:t}=this.config,r=this.config.axisSpace;return this.config.axis.primary.hide&&(r.y=0),this.config.axis.secondary.hide&&(r.x=0),{x:n.left+r.x,y:n.top,width:t.width-n.right,height:t.height-n.bottom-r.y}}getStackedData(n){return stack().keys(n).order(stackOrderNone)(this.data)}changeData(n){this.data=n,this.update("data")}changeConfig(n){this.config=mergeDeepLeft$1(pickBy$1(t=>t!==void 0,n),this.config),this.scales.changeConfig(this.config.axis),this.update("config")}addLayer(n){this.layers.push(n),this.update("layers")}removeLayer(n){this.layers=this.layers.filter(t=>t.id!==n),this.update("layers")}getLayers(n){return n?this.layers.filter(t=>t.type===n):this.layers}getData(n){return n.reduce((t,r)=>t.concat(getCol(r,this.data)),[])}getKeys(n=-1,t=null){const r=this.layers.filter(a=>t?a.type===t:!0).map(a=>a.dataKeys);return n===-1?r:getCol(n,r)}getStackedKeys(n=-1,t=null){const r=this.layers.filter(a=>t?a.type===t&&a.props.stacked:a.props.stacked).map(a=>a.dataKeys);return n===-1?r:getCol(n,r)}update(n){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 n=e+="",t=n.indexOf(":");return t>=0&&(n=e.slice(0,t))!=="xmlns"&&(e=e.slice(t+1)),namespaces.hasOwnProperty(n)?{space:namespaces[n],local:e}:e}function creatorInherit(e){return function(){var n=this.ownerDocument,t=this.namespaceURI;return t===xhtml&&n.documentElement.namespaceURI===xhtml?n.createElement(e):n.createElementNS(t,e)}}function creatorFixed(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function creator(e){var n=namespace(e);return(n.local?creatorFixed:creatorInherit)(n)}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 n=this._groups,t=n.length,r=new Array(t),a=0;a<t;++a)for(var s=n[a],i=s.length,l=r[a]=new Array(i),c,d,f=0;f<i;++f)(c=s[f])&&(d=e.call(c,c.__data__,f,s))&&("__data__"in c&&(d.__data__=c.__data__),l[f]=d);return new Selection(r,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 n=this._groups,t=n.length,r=[],a=[],s=0;s<t;++s)for(var i=n[s],l=i.length,c,d=0;d<l;++d)(c=i[d])&&(r.push(e.call(c,c.__data__,d,i)),a.push(c));return new Selection(r,a)}function matcher(e){return function(){return this.matches(e)}}function childMatcher(e){return function(n){return n.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 n=this._groups,t=n.length,r=new Array(t),a=0;a<t;++a)for(var s=n[a],i=s.length,l=r[a]=[],c,d=0;d<i;++d)(c=s[d])&&e.call(c,c.__data__,d,s)&&l.push(c);return new Selection(r,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,n){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=n}EnterNode.prototype={constructor:EnterNode,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,n){return this._parent.insertBefore(e,n)},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,n,t,r,a,s){for(var i=0,l,c=n.length,d=s.length;i<d;++i)(l=n[i])?(l.__data__=s[i],r[i]=l):t[i]=new EnterNode(e,s[i]);for(;i<c;++i)(l=n[i])&&(a[i]=l)}function bindKey(e,n,t,r,a,s,i){var l,c,d=new Map,f=n.length,p=s.length,v=new Array(f),m;for(l=0;l<f;++l)(c=n[l])&&(v[l]=m=i.call(c,c.__data__,l,n)+"",d.has(m)?a[l]=c:d.set(m,c));for(l=0;l<p;++l)m=i.call(e,s[l],l,s)+"",(c=d.get(m))?(r[l]=c,c.__data__=s[l],d.delete(m)):t[l]=new EnterNode(e,s[l]);for(l=0;l<f;++l)(c=n[l])&&d.get(v[l])===c&&(a[l]=c)}function datum(e){return e.__data__}function selection_data(e,n){if(!arguments.length)return Array.from(this,datum);var t=n?bindKey:bindIndex,r=this._parents,a=this._groups;typeof e!="function"&&(e=constant$1(e));for(var s=a.length,i=new Array(s),l=new Array(s),c=new Array(s),d=0;d<s;++d){var f=r[d],p=a[d],v=p.length,m=arraylike(e.call(f,f&&f.__data__,d,r)),g=m.length,b=l[d]=new Array(g),C=i[d]=new Array(g),w=c[d]=new Array(v);t(f,p,b,C,w,m,n);for(var E=0,V=0,A,P;E<g;++E)if(A=b[E]){for(E>=V&&(V=E+1);!(P=C[V])&&++V<g;);A._next=P||null}}return i=new Selection(i,r),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,n,t){var r=this.enter(),a=this,s=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),n!=null&&(a=n(a),a&&(a=a.selection())),t==null?s.remove():t(s),r&&a?r.merge(a).order():a}function selection_merge(e){for(var n=e.selection?e.selection():e,t=this._groups,r=n._groups,a=t.length,s=r.length,i=Math.min(a,s),l=new Array(a),c=0;c<i;++c)for(var d=t[c],f=r[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,n=-1,t=e.length;++n<t;)for(var r=e[n],a=r.length-1,s=r[a],i;--a>=0;)(i=r[a])&&(s&&i.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(i,s),s=i);return this}function selection_sort(e){e||(e=ascending);function n(p,v){return p&&v?e(p.__data__,v.__data__):!p-!v}for(var t=this._groups,r=t.length,a=new Array(r),s=0;s<r;++s){for(var i=t[s],l=i.length,c=a[s]=new Array(l),d,f=0;f<l;++f)(d=i[f])&&(c[f]=d);c.sort(n)}return new Selection(a,this._parents).order()}function ascending(e,n){return e<n?-1:e>n?1:e>=n?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,n=0,t=e.length;n<t;++n)for(var r=e[n],a=0,s=r.length;a<s;++a){var i=r[a];if(i)return i}return null}function selection_size(){let e=0;for(const n of this)++e;return e}function selection_empty(){return!this.node()}function selection_each(e){for(var n=this._groups,t=0,r=n.length;t<r;++t)for(var a=n[t],s=0,i=a.length,l;s<i;++s)(l=a[s])&&e.call(l,l.__data__,s,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,n){return function(){this.setAttribute(e,n)}}function attrConstantNS(e,n){return function(){this.setAttributeNS(e.space,e.local,n)}}function attrFunction(e,n){return function(){var t=n.apply(this,arguments);t==null?this.removeAttribute(e):this.setAttribute(e,t)}}function attrFunctionNS(e,n){return function(){var t=n.apply(this,arguments);t==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}}function selection_attr(e,n){var t=namespace(e);if(arguments.length<2){var r=this.node();return t.local?r.getAttributeNS(t.space,t.local):r.getAttribute(t)}return this.each((n==null?t.local?attrRemoveNS:attrRemove:typeof n=="function"?t.local?attrFunctionNS:attrFunction:t.local?attrConstantNS:attrConstant)(t,n))}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,n,t){return function(){this.style.setProperty(e,n,t)}}function styleFunction(e,n,t){return function(){var r=n.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,t)}}function selection_style(e,n,t){return arguments.length>1?this.each((n==null?styleRemove:typeof n=="function"?styleFunction:styleConstant)(e,n,t??"")):styleValue(this.node(),e)}function styleValue(e,n){return e.style.getPropertyValue(n)||defaultView(e).getComputedStyle(e,null).getPropertyValue(n)}function propertyRemove(e){return function(){delete this[e]}}function propertyConstant(e,n){return function(){this[e]=n}}function propertyFunction(e,n){return function(){var t=n.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function selection_property(e,n){return arguments.length>1?this.each((n==null?propertyRemove:typeof n=="function"?propertyFunction:propertyConstant)(e,n)):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 n=this._names.indexOf(e);n<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var n=this._names.indexOf(e);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function classedAdd(e,n){for(var t=classList(e),r=-1,a=n.length;++r<a;)t.add(n[r])}function classedRemove(e,n){for(var t=classList(e),r=-1,a=n.length;++r<a;)t.remove(n[r])}function classedTrue(e){return function(){classedAdd(this,e)}}function classedFalse(e){return function(){classedRemove(this,e)}}function classedFunction(e,n){return function(){(n.apply(this,arguments)?classedAdd:classedRemove)(this,e)}}function selection_classed(e,n){var t=classArray(e+"");if(arguments.length<2){for(var r=classList(this.node()),a=-1,s=t.length;++a<s;)if(!r.contains(t[a]))return!1;return!0}return this.each((typeof n=="function"?classedFunction:n?classedTrue:classedFalse)(t,n))}function textRemove(){this.textContent=""}function textConstant(e){return function(){this.textContent=e}}function textFunction(e){return function(){var n=e.apply(this,arguments);this.textContent=n??""}}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 n=e.apply(this,arguments);this.innerHTML=n??""}}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 n=typeof e=="function"?e:creator(e);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function constantNull(){return null}function selection_insert(e,n){var t=typeof e=="function"?e:creator(e),r=n==null?constantNull:typeof n=="function"?n:selector(n);return this.select(function(){return this.insertBefore(t.apply(this,arguments),r.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),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function selection_cloneDeep(){var e=this.cloneNode(!0),n=this.parentNode;return n?n.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(n){e.call(this,n,this.__data__)}}function parseTypenames(e){return e.trim().split(/^|\s+/).map(function(n){var t="",r=n.indexOf(".");return r>=0&&(t=n.slice(r+1),n=n.slice(0,r)),{type:n,name:t}})}function onRemove(e){return function(){var n=this.__on;if(n){for(var t=0,r=-1,a=n.length,s;t<a;++t)s=n[t],(!e.type||s.type===e.type)&&s.name===e.name?this.removeEventListener(s.type,s.listener,s.options):n[++r]=s;++r?n.length=r:delete this.__on}}}function onAdd(e,n,t){return function(){var r=this.__on,a,s=contextListener(n);if(r){for(var i=0,l=r.length;i<l;++i)if((a=r[i]).type===e.type&&a.name===e.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=s,a.options=t),a.value=n;return}}this.addEventListener(e.type,s,t),a={type:e.type,name:e.name,value:n,listener:s,options:t},r?r.push(a):this.__on=[a]}}function selection_on(e,n,t){var r=parseTypenames(e+""),a,s=r.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<s;++a)if((i=r[a]).type===f.type&&i.name===f.name)return f.value}return}for(l=n?onAdd:onRemove,a=0;a<s;++a)this.each(l(r[a],n,t));return this}function dispatchEvent(e,n,t){var r=defaultView(e),a=r.CustomEvent;typeof a=="function"?a=new a(n,t):(a=r.document.createEvent("Event"),t?(a.initEvent(n,t.bubbles,t.cancelable),a.detail=t.detail):a.initEvent(n,!1,!1)),e.dispatchEvent(a)}function dispatchConstant(e,n){return function(){return dispatchEvent(this,e,n)}}function dispatchFunction(e,n){return function(){return dispatchEvent(this,e,n.apply(this,arguments))}}function selection_dispatch(e,n){return this.each((typeof n=="function"?dispatchFunction:dispatchConstant)(e,n))}function*selection_iterator(){for(var e=this._groups,n=0,t=e.length;n<t;++n)for(var r=e[n],a=0,s=r.length,i;a<s;++a)(i=r[a])&&(yield i)}var root=[null];function Selection(e,n){this._groups=e,this._parents=n}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 n;for(;n=e.sourceEvent;)e=n;return e}function pointer(e,n){if(e=sourceEvent(e),n===void 0&&(n=e.currentTarget),n){var t=n.ownerSVGElement||n;if(t.createSVGPoint){var r=t.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(n.getScreenCTM().inverse()),[r.x,r.y]}if(n.getBoundingClientRect){var a=n.getBoundingClientRect();return[e.clientX-a.left-n.clientLeft,e.clientY-a.top-n.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 n=>+e(n)}function center(e,n){return n=Math.max(0,e.bandwidth()-n*2)/2,e.round()&&(n=Math.round(n)),t=>+e(t)+n}function entering(){return!this.__axis}function axis(e,n){var t=[],r=null,a=null,s=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=r??(n.ticks?n.ticks.apply(n,t):n.domain()),b=a??(n.tickFormat?n.tickFormat.apply(n,t):identity),C=Math.max(s,0)+l,w=n.range(),E=+w[0]+c,V=+w[w.length-1]+c,A=(n.bandwidth?center:number)(n.copy(),c),P=m.selection?m.selection():m,O=P.selectAll(".domain").data([null]),I=P.selectAll(".tick").data(g,n).order(),R=I.exit(),Z=I.enter().append("g").attr("class","tick"),se=I.select("line"),z=I.select("text");O=O.merge(O.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),I=I.merge(Z),se=se.merge(Z.append("line").attr("stroke","currentColor").attr(f+"2",d*s)),z=z.merge(Z.append("text").attr("fill","currentColor").attr(f,d*C).attr("dy",e===top?"0em":e===bottom?"0.71em":"0.32em")),m!==P&&(O=O.transition(m),I=I.transition(m),se=se.transition(m),z=z.transition(m),R=R.transition(m).attr("opacity",epsilon).attr("transform",function(ie){return isFinite(ie=A(ie))?p(ie+c):this.getAttribute("transform")}),Z.attr("opacity",epsilon).attr("transform",function(ie){var Q=this.parentNode.__axis;return p((Q&&isFinite(Q=Q(ie))?Q:A(ie))+c)})),R.remove(),O.attr("d",e===left||e===right?i?"M"+d*i+","+E+"H"+c+"V"+V+"H"+d*i:"M"+c+","+E+"V"+V:i?"M"+E+","+d*i+"V"+c+"H"+V+"V"+d*i:"M"+E+","+c+"H"+V),I.attr("opacity",1).attr("transform",function(ie){return p(A(ie)+c)}),se.attr(f+"2",d*s),z.attr(f,d*C).text(b),P.filter(entering).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===right?"start":e===left?"end":"middle"),P.each(function(){this.__axis=A})}return v.scale=function(m){return arguments.length?(n=m,v):n},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?(r=m==null?null:Array.from(m),v):r&&r.slice()},v.tickFormat=function(m){return arguments.length?(a=m,v):a},v.tickSize=function(m){return arguments.length?(s=i=+m,v):s},v.tickSizeInner=function(m){return arguments.length?(s=+m,v):s},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,n={stacked:!1,type:"line"})=>{const t=vue.ref([]),r=useChart(),{stacked:a,type:s}=n;function i(c,d){const{primary:f,secondary:p}=r.scales;return r.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)):r.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=r.getStackedKeys(1,s),[d,f]=e,v=r.getStackedData(a?c:[e[1]]).find(m=>m.key===f);v&&(t.value=i(d,v))}return vue.watch(r.updates,()=>{l()},{immediate:!0}),{points:t}},useMouse=()=>vue.inject("chartMouse",{index:-1,position:{x:0,y:0},hover:!1}),useBars=(e,n={maxWidth:-1,gap:5,stacked:!1,type:"bar"})=>{const t=vue.ref([]),r=useChart(),{stacked:a,type:s,gap:i}=n;function l(){const{primary:m,secondary:g}=r.scales,b=m.type==="band"?m:g,C=m.type==="band"?g:m;return{bandScale:b,linearScale:C}}function c(){if(a)return 0;const g=r.getLayers(s).findIndex(b=>b.dataKeys.join(",")===e.join(","));return g>-1?g:0}function d(){const{bandScale:m}=l(),g=n.maxWidth>-1?Math.min(m.bandwidth()-i,n.maxWidth):m.bandwidth()-i,b=r.getLayers(s);return b.length>0&&!a?g/b.length:g}function f(){if(a)return 0;const{bandScale:m}=l(),g=m.bandwidth()-i,b=r.getLayers(s).length*d();return(g-b)/2}function p(m,g){const{bandScale:b,linearScale:C}=l(),w=c(),E=d(),V=f();return g.map(A=>{const P={x:0,y:0,width:0,height:0,props:{values:[...A],data:A.data}},O=b.scale(A.data[m]),[I,R]=C.map(A);return r.config.direction==="horizontal"?(P.y=Math.min(I,R),P.height=Math.abs(I-R),P.x=V+O+w*E+i/2,P.width=E):r.config.direction==="vertical"&&(P.x=Math.min(I,R),P.width=Math.abs(I-R),P.y=V+O+w*E+i/2,P.height=E),P})}function v(){const m=a?r.getStackedKeys(1,s):[e[1]],[g,b]=e,w=r.getStackedData(m).find(E=>E.key===b);w&&(t.value=p(g,w))}return vue.watch(r.updates,()=>{v()}),{bars:t}},useTooltip=()=>{const e=useMouse(),n=useChart(),t=vue.computed(()=>e.hover),r=vue.ref({x:0,y:0}),a=vue.ref({});return vue.watch(e,()=>{const{primary:s}=n.scales,i=n.getKeys(0),l=n.getData(i),[c]=s.map([l[e.index]]);c&&(n.config.direction==="horizontal"?r.value={x:c,y:e.position.y}:n.config.direction==="vertical"?r.value={x:e.position.x,y:c}:r.value={x:e.position.x,y:e.position.y});const d=n.data[e.index];d&&(a.value=Object.assign(Object.assign({},d),{idx:e.index}))}),{position:r,payload:a,show:t}},useResize=e=>{const n=vue.ref(0),t=vue.ref(0);let r=null,a=null;function s(l,c){n.value=l,t.value=c,a&&a()}function i(l){a=l}return vue.onMounted(()=>{r=new window.ResizeObserver(l=>{const c=l[0].contentRect.width,d=l[0].contentRect.height;s(c,d)}),r.observe(e.value)}),vue.onUnmounted(()=>{r.disconnect()}),{width:n,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 n=vue.ref(),t=useChart(),r=vue.computed(()=>e.position==="bottom"?axisBottom:axisLeft),a=vue.ref(t.canvas),s={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,s),p=r.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(n.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:n,canvas:a}}});const _hoisted_1$b$1=["transform"],_hoisted_2$8$1=["transform"];function render$d(e,n,t,r,a,s){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 n=vue.ref(null),t=vue.ref(),r=vue.ref(),a=vue.reactive({x:40,y:20}),s=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",s),vue.provide("chartMouse",d),vue.watch(()=>e.data,()=>{s&&s.changeData(e.data)},{immediate:!0}),vue.watch(()=>e.config,()=>{s&&s.changeConfig(e.config)}),vue.watch(()=>[Object.assign({},a),e.direction,e.size,e.margin,e.axis],()=>{s&&s.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)r.value&&g.target===r.value.$el?a.y=g.contentRect.height:t.value&&g.target===t.value.$el&&(a.x=g.contentRect.width)});vue.onMounted(()=>{r.value&&f.observe(r.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}=s.scales,b=s.getKeys(0),C=s.getData(b);if(s.config.direction==="horizontal")if(g.type==="band"){const w=g.bandwidth(),E=d.position.x-s.canvas.x;d.index=Math.round((E+w/2)/w)-1}else d.index=bisectCenter(C,g.scale.invert(d.position.x));else if(s.config.direction==="vertical")if(g.type==="band"){const w=g.bandwidth(),E=d.position.y-s.canvas.y;d.index=Math.round((E+w/2)/w)-1}else d.index=bisectCenter(C,g.scale.invert(d.position.y))}return{axBottomEl:r,axLeftEl:t,chartEl:n,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,n,t,r,a,s){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:n[0]||(n[0]=(...l)=>e.onMouseMove&&e.onMouseMove(...l)),onPointerleave:n[1]||(n[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,n){n===void 0&&(n={});var t=n.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t==="top"&&r.firstChild?r.insertBefore(a,r.firstChild):r.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,7 +182,7 @@ 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,n,t,r,a,s){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 n=useChart(),t=vue.ref(0),r=vue.ref("horizontal"),a=vue.ref({});return vue.watch(n.updates,()=>{e.value!==void 0&&(t.value=n.scales.secondary.scale(e.value)),a.value=n.canvas,r.value=n.config.direction},{immediate:!0}),vue.watch(()=>e.value,()=>{t.value=n.scales.secondary.scale(e.value)},{immediate:!0}),{y:t,canvas:a,direction:r}}});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,n,t,r,a,s){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 n=0,t=e.children,r=t&&t.length;if(!r)n=1;else for(;--r>=0;)n+=t[r].value;e.value=n}function node_count(){return this.eachAfter(count)}function node_each(e,n){let t=-1;for(const r of this)e.call(n,r,++t,this);return this}function node_eachBefore(e,n){for(var t=this,r=[t],a,s,i=-1;t=r.pop();)if(e.call(n,t,++i,this),a=t.children)for(s=a.length-1;s>=0;--s)r.push(a[s]);return this}function node_eachAfter(e,n){for(var t=this,r=[t],a=[],s,i,l,c=-1;t=r.pop();)if(a.push(t),s=t.children)for(i=0,l=s.length;i<l;++i)r.push(s[i]);for(;t=a.pop();)e.call(n,t,++c,this);return this}function node_find(e,n){let t=-1;for(const r of this)if(e.call(n,r,++t,this))return r}function node_sum(e){return this.eachAfter(function(n){for(var t=+e(n.data)||0,r=n.children,a=r&&r.length;--a>=0;)t+=r[a].value;n.value=t})}function node_sort(e){return this.eachBefore(function(n){n.children&&n.children.sort(e)})}function node_path(e){for(var n=this,t=leastCommonAncestor(n,e),r=[n];n!==t;)n=n.parent,r.push(n);for(var a=r.length;e!==t;)r.splice(a,0,e),e=e.parent;return r}function leastCommonAncestor(e,n){if(e===n)return e;var t=e.ancestors(),r=n.ancestors(),a=null;for(e=t.pop(),n=r.pop();e===n;)a=e,e=t.pop(),n=r.pop();return a}function node_ancestors(){for(var e=this,n=[e];e=e.parent;)n.push(e);return n}function node_descendants(){return Array.from(this)}function node_leaves(){var e=[];return this.eachBefore(function(n){n.children||e.push(n)}),e}function node_links(){var e=this,n=[];return e.each(function(t){t!==e&&n.push({source:t.parent,target:t})}),n}function*node_iterator(){var e=this,n,t=[e],r,a,s;do for(n=t.reverse(),t=[];e=n.pop();)if(yield e,r=e.children)for(a=0,s=r.length;a<s;++a)t.push(r[a]);while(t.length)}function hierarchy(e,n){e instanceof Map?(e=[void 0,e],n===void 0&&(n=mapChildren)):n===void 0&&(n=objectChildren);for(var t=new Node$2(e),r,a=[t],s,i,l,c;r=a.pop();)if((i=n(r.data))&&(c=(i=Array.from(i)).length))for(r.children=i,l=c-1;l>=0;--l)a.push(s=i[l]=new Node$2(i[l])),s.parent=r,s.depth=r.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 n=0;do e.height=n;while((e=e.parent)&&e.height<++n)}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,n,t,r,a){for(var s=e.children,i,l=-1,c=s.length,d=e.value&&(r-n)/e.value;++l<c;)i=s[l],i.y0=t,i.y1=a,i.x0=n,i.x1=n+=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,n=defaultParentId,t;function r(a){var s=Array.from(a),i=e,l=n,c,d,f,p,v,m,g,b,C=new Map;if(t!=null){const w=s.map((A,$)=>normalize(t(A,$,a))),E=w.map(parentof),V=new Set(w).add("");for(const A of E)V.has(A)||(V.add(A),w.push(A),E.push(parentof(A)),s.push(imputed));i=(A,$)=>w[$],l=(A,$)=>E[$]}for(f=0,c=s.length;f<c;++f)d=s[f],m=s[f]=new Node$2(d),(g=i(d,f,a))!=null&&(g+="")&&(b=m.id=g,C.set(b,C.has(b)?ambiguous:m)),(g=l(d,f,a))!=null&&(g+="")&&(m.parent=g);for(f=0;f<c;++f)if(m=s[f],g=m.parent){if(v=C.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 w=s.length-1;w>=0&&(m=s[w],m.data===imputed);--w)m.data=null}if(p.parent=preroot,p.eachBefore(function(w){w.depth=w.parent.depth+1,--c}).eachBefore(computeHeight),p.parent=null,c>0)throw new Error("cycle");return p}return r.id=function(a){return arguments.length?(e=optional(a),r):e},r.parentId=function(a){return arguments.length?(n=optional(a),r):n},r.path=function(a){return arguments.length?(t=optional(a),r):t},r}function normalize(e){e=`${e}`;let n=e.length;return slash(e,n-1)&&!slash(e,n-2)&&(e=e.slice(0,-1)),e[0]==="/"?e:`/${e}`}function parentof(e){let n=e.length;if(n<2)return"";for(;--n>1&&!slash(e,n););return e.slice(0,n)}function slash(e,n){if(e[n]==="/"){let t=0;for(;n>0&&e[--n]==="\\";)++t;if(!(t&1))return!0}return!1}function treemapSlice(e,n,t,r,a){for(var s=e.children,i,l=-1,c=s.length,d=e.value&&(a-t)/e.value;++l<c;)i=s[l],i.x0=n,i.x1=r,i.y0=t,i.y1=t+=i.value*d}var phi=(1+Math.sqrt(5))/2;function squarifyRatio(e,n,t,r,a,s){for(var i=[],l=n.children,c,d,f=0,p=0,v=l.length,m,g,b=n.value,C,w,E,V,A,$,O;f<v;){m=a-t,g=s-r;do C=l[p++].value;while(!C&&p<v);for(w=E=C,$=Math.max(g/m,m/g)/(b*e),O=C*C*$,A=Math.max(E/O,O/w);p<v;++p){if(C+=d=l[p].value,d<w&&(w=d),d>E&&(E=d),O=C*C*$,V=Math.max(E/O,O/w),V>A){C-=d;break}A=V}i.push(c={value:C,dice:m<g,children:l.slice(f,p)}),c.dice?treemapDice(c,t,r,a,b?r+=g*C/b:s):treemapSlice(c,t,r,b?t+=m*C/b:a,s),b-=C,f=p}return i}var squarify=function e(n){function t(r,a,s,i,l){squarifyRatio(n,r,a,s,i,l)}return t.ratio=function(r){return e((r=+r)>1?r:1)},t}(phi);function treemap(){var e=squarify,n=!1,t=1,r=1,a=[0],s=constantZero,i=constantZero,l=constantZero,c=constantZero,d=constantZero;function f(v){return v.x0=v.y0=0,v.x1=t,v.y1=r,v.eachBefore(p),a=[0],n&&v.eachBefore(roundNode),v}function p(v){var m=a[v.depth],g=v.x0+m,b=v.y0+m,C=v.x1-m,w=v.y1-m;C<g&&(g=C=(g+C)/2),w<b&&(b=w=(b+w)/2),v.x0=g,v.y0=b,v.x1=C,v.y1=w,v.children&&(m=a[v.depth+1]=s(v)/2,g+=d(v)-m,b+=i(v)-m,C-=l(v)-m,w-=c(v)-m,C<g&&(g=C=(g+C)/2),w<b&&(b=w=(b+w)/2),e(v,g,b,C,w))}return f.round=function(v){return arguments.length?(n=!!v,f):n},f.size=function(v){return arguments.length?(t=+v[0],r=+v[1],f):[t,r]},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?(s=typeof v=="function"?v:constant(+v),f):s},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 n=vue.ref(null),t=vue.ref(e.data),r=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}),s=vue.ref([]);function i(){const m=extent(t.value.map(C=>C[e.dataKeys[1]])),g=linear().domain(m).range([0,100]).nice(),b=sequential().domain(m).interpolator(e.colorFn());return{x:g,y:b}}function l(){const{y:m}=i();return c(t.value).leaves().map((b,C)=>({idx:C,x0:a.value.x+b.x0,x1:a.value.x+b.x1,y0:a.value.y+b.y0,y1:a.value.y+b.y1,width:b.x1-b.x0,height:b.y1-b.y0,data:b.data,color:m(b.value)}))}function c(m){const{x:g}=i(),b=treemap().size([a.value.width-a.value.x,a.value.height-a.value.y]).padding(e.padding),w=stratify().id(E=>E.name).parentId(E=>E.parent)([{name:"root"}].concat(m.map(E=>({name:E[e.dataKeys[0]],value:E[e.dataKeys[1]],parent:"root"}))));return w.sum(E=>g(E.value)),b(w),w}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){r.value=m}function v(){r.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},s.value=l()},{immediate:!0}),{el:n,rectangles:s,selected:r,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$y=["transform","onMouseover"],_hoisted_5$o=["width","height"],_hoisted_6$f={x:10,y:20,"font-size":"15px",fill:"white","font-weight":"bold"};function render$1(e,n,t,r,a,s){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:n[0]||(n[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$f,vue.toDisplayString(i.data.name),1)])])],42,_hoisted_4$y))),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(),n=useMouse(),t=vue.ref({x:0,y:0,width:0,height:0}),r=vue.ref("horizontal"),a=vue.ref({x:0,y:0,width:0,height:0});return vue.watch(e.updates,()=>{a.value=e.canvas,r.value=e.config.direction},{immediate:!0}),vue.watch(n,()=>{if(e.bandScale){const s=e.getData(e.getKeys(0)),[i]=e.bandScale.map([s[n.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:r,mouse:n}}});const _hoisted_1$1k={key:0,class:"layer-hover-bar"},_hoisted_2$U=["x","y","width","height"];function render(e,n,t,r,a,s){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$1H={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 n=0;n<this.comparisonReplacements.length;n++)e=e.replace(this.comparisonReplacements[n].repl,(this.totalKilos/this.comparisonReplacements[n].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$x=["innerHTML"],_hoisted_5$n={class:"vs-carbon-calculator-results__unicorn-icon-container"},_hoisted_6$e={class:"vs-carbon-calculator-results__unicorn-content"};function _sfc_render$1y(e,n,t,r,a,s){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(s.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(s.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(s.labelsMap.kgsOf),1)])])]),_:1}),vue.createVNode(l,{cols:"12",md:"6",class:"vs-carbon-calculator-results__comparison"},{default:vue.withCtx(()=>[vue.createElementVNode("p",{innerHTML:s.interpolComparison},null,8,_hoisted_4$x)]),_:1})]),_:1})]),_:1}),s.totalPerDay<=s.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$e,[vue.createVNode(i,{level:"3","heading-style":"heading-xs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(s.labelsMap.perDayCongratulations),1)]),_:1}),vue.createElementVNode("p",null,vue.toDisplayString(s.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(s.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:s.chartData,margin:s.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$1H,[["render",_sfc_render$1y]]),_sfc_main$1G={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$w={class:"font-weight-bold"};function _sfc_render$1x(e,n,t,r,a,s){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(s.labelsMap.soFar),1),vue.createElementVNode("p",null,[vue.createElementVNode("span",_hoisted_4$w,vue.toDisplayString(t.totalKilos.toLocaleString(t.language,{minimumFractionDigits:3})),1),vue.createTextVNode(" "+vue.toDisplayString(s.labelsMap.kgsOf),1)])])])}const VsCarbonCalculatorRunningTotal=_export_sfc(_sfc_main$1G,[["render",_sfc_render$1x]]),_sfc_main$1F={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$1w(e,n,t,r,a,s){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(s.labelsMap.introHeading),1)]),_:1}),vue.createElementVNode("p",null,vue.toDisplayString(s.labelsMap.introContent),1)])}const VsCarbonCalculatorIntro=_export_sfc(_sfc_main$1F,[["render",_sfc_render$1w]]);function ownKeys$1(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r)}return t}function _objectSpread2$1(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ownKeys$1(Object(t),!0).forEach(function(r){_defineProperty$2(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys$1(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _defineProperty$2(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function unwrapObj(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=vue.unref(e[r])),t),{})}function isFunction$2(e){return typeof e=="function"}function isProxy(e){return vue.isReactive(e)||vue.isReadonly(e)}function get$1(e,n,t){let r=e;const a=n.split(".");for(let s=0;s<a.length;s++){if(!r[a[s]])return t;r=r[a[s]]}return r}function gatherBooleanGroupProperties(e,n,t){return vue.computed(()=>e.some(r=>get$1(n,r,{[t]:!1})[t]))}function gatherArrayGroupProperties(e,n,t){return vue.computed(()=>e.reduce((r,a)=>{const s=get$1(n,a,{[t]:!1})[t]||[];return r.concat(s)},[]))}function callRule(e,n,t,r){return e.call(r,vue.unref(n),vue.unref(t),r)}function normalizeValidatorResponse(e){return e.$valid!==void 0?!e.$valid:!e}function createAsyncResult(e,n,t,r,a,s,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(!!r.value),g=vue.ref(0);t.value=!1;const b=vue.watch([n,r].concat(d,v),()=>{if(l&&!r.value||c&&!p.value&&!t.value)return;let C;try{C=callRule(e,n,f,i)}catch(w){C=Promise.reject(w)}g.value++,t.value=!!g.value,m.value=!1,Promise.resolve(C).then(w=>{g.value--,t.value=!!g.value,s.value=w,m.value=normalizeValidatorResponse(w)}).catch(w=>{g.value--,t.value=!!g.value,s.value=w,m.value=!0})},{immediate:!0,deep:typeof n=="object"});return{$invalid:m,$unwatch:b}}function createSyncResult(e,n,t,r,a,s,i,l){let{$lazy:c,$rewardEarly:d}=r;const f=()=>({}),p=vue.computed(()=>{if(c&&!t.value||d&&!l.value)return!1;let v=!0;try{const m=callRule(e,n,i,s);a.value=m,v=normalizeValidatorResponse(m)}catch(m){a.value=m}return v});return{$unwatch:f,$invalid:p}}function createValidatorResult(e,n,t,r,a,s,i,l,c,d,f){const p=vue.ref(!1),v=e.$params||{},m=vue.ref(null);let g,b;e.$async?{$invalid:g,$unwatch:b}=createAsyncResult(e.$validator,n,p,t,r,m,a,e.$watchTargets,c,d,f):{$invalid:g,$unwatch:b}=createSyncResult(e.$validator,n,t,r,m,a,c,d);const C=e.$message;return{$message:isFunction$2(C)?vue.computed(()=>C(unwrapObj({$pending:p,$invalid:g,$params:unwrapObj(v),$model:n,$response:m,$validator:s,$propertyPath:l,$property:i}))):C||"",$params:v,$pending:p,$invalid:g,$response:m,$unwatch:b}}function sortValidations(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=vue.unref(e),t=Object.keys(n),r={},a={},s={};let i=null;return t.forEach(l=>{const c=n[l];switch(!0){case isFunction$2(c.$validator):r[l]=c;break;case isFunction$2(c):r[l]={$validator:c};break;case l==="$validationGroups":i=c;break;case l.startsWith("$"):s[l]=c;break;default:a[l]=c}}),{rules:r,nestedValidators:a,config:s,validationGroups:i}}const ROOT_PATH="__root";function createValidationResults(e,n,t,r,a,s,i,l,c){const d=Object.keys(e),f=r.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(b=>{g[b]=createValidatorResult(e[b],n,g.$dirty,s,i,b,t,a,c,v,m)}),g.$externalResults=vue.computed(()=>l.value?[].concat(l.value).map((b,C)=>({$propertyPath:a,$property:t,$validator:"$externalResults",$uid:`${a}-externalResult-${C}`,$message:b,$params:{},$response:null,$pending:!1})):[]),g.$invalid=vue.computed(()=>{const b=d.some(C=>vue.unref(g[C].$invalid));return v.value=b,!!g.$externalResults.value.length||b}),g.$pending=vue.computed(()=>d.some(b=>vue.unref(g[b].$pending))),g.$error=vue.computed(()=>g.$dirty.value?g.$pending.value||g.$invalid.value:!1),g.$silentErrors=vue.computed(()=>d.filter(b=>vue.unref(g[b].$invalid)).map(b=>{const C=g[b];return vue.reactive({$propertyPath:a,$property:t,$validator:b,$uid:`${a}-${b}`,$message:C.$message,$params:C.$params,$response:C.$response,$pending:C.$pending})}).concat(g.$externalResults.value)),g.$errors=vue.computed(()=>g.$dirty.value?g.$silentErrors.value:[]),g.$unwatch=()=>d.forEach(b=>{g[b].$unwatch()}),g.$commit=()=>{v.value=!0,m.value=Date.now()},r.set(a,e,g),g):(f&&r.set(a,e,g),g)}function collectNestedValidationResults(e,n,t,r,a,s,i){const l=Object.keys(e);return l.length?l.reduce((c,d)=>(c[d]=setValidations({validations:e[d],state:n,key:d,parentKey:t,resultsCache:r,globalConfig:a,instance:s,externalResults:i}),c),{}):{}}function createMetaFields(e,n,t){const r=vue.computed(()=>[n,t].filter(g=>g).reduce((g,b)=>g.concat(Object.values(vue.unref(b))),[])),a=vue.computed({get(){return e.$dirty.value||(r.value.length?r.value.every(g=>g.$dirty):!1)},set(g){e.$dirty.value=g}}),s=vue.computed(()=>{const g=vue.unref(e.$silentErrors)||[],b=r.value.filter(C=>(vue.unref(C).$silentErrors||[]).length).reduce((C,w)=>C.concat(...w.$silentErrors),[]);return g.concat(b)}),i=vue.computed(()=>{const g=vue.unref(e.$errors)||[],b=r.value.filter(C=>(vue.unref(C).$errors||[]).length).reduce((C,w)=>C.concat(...w.$errors),[]);return g.concat(b)}),l=vue.computed(()=>r.value.some(g=>g.$invalid)||vue.unref(e.$invalid)||!1),c=vue.computed(()=>r.value.some(g=>vue.unref(g.$pending))||vue.unref(e.$pending)||!1),d=vue.computed(()=>r.value.some(g=>g.$dirty)||r.value.some(g=>g.$anyDirty)||a.value),f=vue.computed(()=>a.value?c.value||l.value:!1),p=()=>{e.$touch(),r.value.forEach(g=>{g.$touch()})},v=()=>{e.$commit(),r.value.forEach(g=>{g.$commit()})},m=()=>{e.$reset(),r.value.forEach(g=>{g.$reset()})};return r.value.length&&r.value.every(g=>g.$dirty)&&p(),{$dirty:a,$errors:i,$invalid:l,$anyDirty:d,$error:f,$pending:c,$touch:p,$reset:m,$silentErrors:s,$commit:v}}function setValidations(e){let{validations:n,state:t,key:r,parentKey:a,childResults:s,resultsCache:i,globalConfig:l={},instance:c,externalResults:d}=e;const f=a?`${a}.${r}`:r,{rules:p,nestedValidators:v,config:m,validationGroups:g}=sortValidations(n),b=_objectSpread2$1(_objectSpread2$1({},l),m),C=r?vue.computed(()=>{const G=vue.unref(t);return G?vue.unref(G[r]):void 0}):t,w=_objectSpread2$1({},vue.unref(d)||{}),E=vue.computed(()=>{const G=vue.unref(d);return r?G?vue.unref(G[r]):void 0:G}),V=createValidationResults(p,C,r,i,f,b,c,E,t),A=collectNestedValidationResults(v,C,f,i,b,c,E),$={};g&&Object.entries(g).forEach(G=>{let[ne,he]=G;$[ne]={$invalid:gatherBooleanGroupProperties(he,A,"$invalid"),$error:gatherBooleanGroupProperties(he,A,"$error"),$pending:gatherBooleanGroupProperties(he,A,"$pending"),$errors:gatherArrayGroupProperties(he,A,"$errors"),$silentErrors:gatherArrayGroupProperties(he,A,"$silentErrors")}});const{$dirty:O,$errors:I,$invalid:L,$anyDirty:Z,$error:se,$pending:z,$touch:ie,$reset:Q,$silentErrors:ae,$commit:we}=createMetaFields(V,A,s),me=r?vue.computed({get:()=>vue.unref(C),set:G=>{O.value=!0;const ne=vue.unref(t),he=vue.unref(d);he&&(he[r]=w[r]),vue.isRef(ne[r])?ne[r].value=G:ne[r]=G}}):null;r&&b.$autoDirty&&vue.watch(C,()=>{O.value||ie();const G=vue.unref(d);G&&(G[r]=w[r])},{flush:"sync"});async function fe(){return ie(),b.$rewardEarly&&(we(),await vue.nextTick()),await vue.nextTick(),new Promise(G=>{if(!z.value)return G(!L.value);const ne=vue.watch(z,()=>{G(!L.value),ne()})})}function T(G){return(s.value||{})[G]}function M(){vue.isRef(d)?d.value=w:Object.keys(w).length===0?Object.keys(d).forEach(G=>{delete d[G]}):Object.assign(d,w)}return vue.reactive(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},V),{},{$model:me,$dirty:O,$error:se,$errors:I,$invalid:L,$anyDirty:Z,$pending:z,$touch:ie,$reset:Q,$path:f||ROOT_PATH,$silentErrors:ae,$validate:fe,$commit:we},s&&{$getResultsForChild:T,$clearExternalResults:M,$validationGroups:$}),A))}class ResultsStorage{constructor(){this.storage=new Map}set(n,t,r){this.storage.set(n,{rules:t,result:r})}checkRulesValidity(n,t,r){const a=Object.keys(r),s=Object.keys(t);return s.length!==a.length||!s.every(l=>a.includes(l))?!1:s.every(l=>t[l].$params?Object.keys(t[l].$params).every(c=>vue.unref(r[l].$params[c])===vue.unref(t[l].$params[c])):!0)}get(n,t){const r=this.storage.get(n);if(!r)return;const{rules:a,result:s}=r,i=this.checkRulesValidity(n,t,a),l=s.$unwatch?s.$unwatch:()=>({});return i?s:{$dirty:s.$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:n,instance:t}=e;const r={},a=vue.ref([]),s=vue.computed(()=>a.value.reduce((f,p)=>(f[p]=vue.unref(r[p]),f),{}));function i(f,p){let{$registerAs:v,$scope:m,$stopPropagation:g}=p;g||n===CollectFlag.COLLECT_NONE||m===CollectFlag.COLLECT_NONE||n!==CollectFlag.COLLECT_ALL&&n!==m||(r[v]=f,a.value.push(v))}t.__vuelidateInjectInstances=[].concat(t.__vuelidateInjectInstances||[],i);function l(f){a.value=a.value.filter(p=>p!==f),delete r[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:s,sendValidationResultsToParent:c,removeValidationResultsFromParent:d}}function ComputedProxyFactory(e){return new Proxy(e,{get(n,t){return typeof n[t]=="object"?ComputedProxyFactory(n[t]):vue.computed(()=>n[t])}})}let uid=0;function useVuelidate(e,n){var t;let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(r=e,e=void 0,n=void 0);let{$registerAs:a,$scope:s=CollectFlag.COLLECT_ALL,$stopPropagation:i,$externalResults:l,currentVueInstance:c}=r;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:b}=d?nestedValidations({$scope:s,instance:d}):{childResults:vue.ref({})};if(!e&&f.validations){const C=f.validations;n=vue.ref({}),vue.onBeforeMount(()=>{n.value=d,vue.watch(()=>isFunction$2(C)?C.call(n.value,new ComputedProxyFactory(n.value)):C,w=>{p.value=setValidations({validations:w,state:n,childResults:m,resultsCache:v,globalConfig:r,instance:d,externalResults:l||d.vuelidateExternalResults})},{immediate:!0})}),r=f.validationsConfig||r}else{const C=vue.isRef(e)||isProxy(e)?e:vue.reactive(e||{});vue.watch(C,w=>{p.value=setValidations({validations:w,state:n,childResults:m,resultsCache:v,globalConfig:r,instance:d??{},externalResults:l})},{immediate:!0})}return d&&(g.forEach(C=>C(p,{$registerAs:a,$scope:s,$stopPropagation:i})),vue.onBeforeUnmount(()=>b.forEach(C=>C(a)))),vue.computed(()=>_objectSpread2$1(_objectSpread2$1({},vue.unref(p.value)),m.value))}function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r)}return t}function _objectSpread2(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty$1(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _defineProperty$1(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=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,n){if(!isObject$1(e))throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);if(!isObject$1(n)&&!isFunction$1(n))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const t=normalizeValidatorObject(n);return t.$params=_objectSpread2(_objectSpread2({},t.$params||{}),e),t}function withMessage(e,n){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(n)&&!isFunction$1(n))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const t=normalizeValidatorObject(n);return t.$message=e,t}function withAsync(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const t=normalizeValidatorObject(e);return _objectSpread2(_objectSpread2({},t),{},{$async:!0,$watchTargets:n})}function forEach(e){return{$validator(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return vue.unref(n).reduce((s,i,l)=>{const c=Object.entries(i).reduce((d,f)=>{let[p,v]=f;const m=e[p]||{},g=Object.entries(m).reduce((b,C)=>{let[w,E]=C;const A=unwrapNormalizedValidator(E).call(this,v,i,l,...r),$=unwrapValidatorResponse(A);if(b.$data[w]=A,b.$data.$invalid=!$||!!b.$data.$invalid,b.$data.$error=b.$data.$invalid,!$){let O=E.$message||"";const I=E.$params||{};typeof O=="function"&&(O=O({$pending:!1,$invalid:!$,$params:I,$model:v,$response:A})),b.$errors.push({$property:p,$message:O,$params:I,$response:A,$model:v,$pending:!1,$validator:w})}return{$valid:b.$valid&&$,$data:b.$data,$errors:b.$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:s.$valid&&c.$valid,$data:s.$data.concat(c.$data),$errors:s.$errors.concat(c.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:n=>{let{$response:t}=n;return t?t.$errors.map(r=>Object.values(r).map(a=>a.map(s=>s.$message)).reduce((a,s)=>a.concat(s),[])):[]}}}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 n 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,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return r=>(r=vue.unref(r),!req(r)||n.every(a=>(a.lastIndex=0,a.test(r))))}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 n=>!req(n)||len(n)<=vue.unref(e)}function maxLength(e){return{$validator:maxLength$1(e),$message:n=>{let{$params:t}=n;return`The maximum length allowed is ${t.max}`},$params:{max:e,type:"maxLength"}}}function minLength$1(e){return n=>!req(n)||len(n)>=vue.unref(e)}function minLength(e){return{$validator:minLength$1(e),$message:n=>{let{$params:t}=n;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[n,t]of Object.entries(this.validationRules))n==="required"?e={...e,required}:n==="email"?e={...e,email}:n==="minLength"?e={...e,minLength:minLength(t)}:n==="maxLength"?e={...e,maxLength:maxLength(t)}:n==="invalidVal"?e={...e,noInvalid:()=>this.inputVal.indexOf(this.validationRules.invalidVal)===-1}:n==="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(r=>{r.$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,n)=>{e==="required"&&this.errorsList.splice(n,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$1E={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":"",n=`vs-input--${this.fieldName}`;return`${e} ${n}`},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$v=["id"];function _sfc_render$1v(e,n,t,r,a,s){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:s.validateErrors,onChange:s.validateErrors,onFocus:s.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=>s.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$v)):vue.createCommentVNode("",!0)])}const VsRadioButton=_export_sfc(_sfc_main$1E,[["render",_sfc_render$1v]]),_sfc_main$1D={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":"",n=`vs-input--${this.fieldName}`;return`${e} ${n}`},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$u={class:"visually-hidden"},_hoisted_5$m={class:"visually-hidden"};function _sfc_render$1u(e,n,t,r,a,s){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$u,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:s.decrementValue},{default:vue.withCtx(()=>n[2]||(n[2]=[vue.createTextVNode(" Remove 1 ")])),_:1},8,["disabled","onClick"]),vue.createVNode(l,{ref:"input",type:"Number",class:vue.normalizeClass(["vs-number-input",s.elementClass]),modelValue:a.inputVal,"onUpdate:modelValue":n[0]||(n[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:s.controlBlurred,onChange:s.validateErrors,onFocus:s.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:s.incrementValue},{default:vue.withCtx(()=>n[3]||(n[3]=[vue.createTextVNode(" Add 1 ")])),_:1},8,["disabled","onClick"]),s.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:n[1]||(n[1]=vue.withModifiers(c=>s.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$1D,[["render",_sfc_render$1u]]),_sfc_main$1C={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$1t(e,n,t,r,a,s){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:s.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:s.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$1C,[["render",_sfc_render$1t]]),_sfc_main$1B={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:n}=this;Object.assign(this.$data,this.initialState()),this.$data.formData=e,this.$data.repeatableStages=n,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(n=>{this.form[n.name]="",n.conditional&&(this.conditionalFields[n.name]=!1)}),this.repeatableStages={},e.data.repeatableStages)for(let n=0;n<e.data.repeatableStages.length;n++)this.repeatableStages[e.data.repeatableStages[n]]={generations:0}})},getMessagingData(e,n){return Object.keys(this.messagingData).length>0?this.messagingData[n][e]:e==="validation"?{}:""},getQuestionLabel(e,n){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-${n+1}.question`]?this.labelsMap[`question-${n+1}.question`]:""},getQuestionHint(e,n){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-${n+1}.hint`]?this.labelsMap[`question-${n+1}.hint`]:""},getQuestionOptions(e,n){let t;if(e.isClone?t=e.originalNumber:t=n,e.element==="radio"){const{options:r}=e;for(let a=0;a<r.length;a++)r[a].text=this.labelsMap[`question-${t+1}.option-${a+1}`];return r}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,n){const t=this.errorFields.indexOf(e);t!==-1?(!n||n.length<1)&&this.errorFields.splice(t,1):n&&n.length>0&&this.errorFields.push(e)},getRadioValue(e,n){if(!n)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 r=t.values[n];if(t.multiplyByNumber)return r*t.multiplyByNumber;if(t.multiplyByAnswer){let a=this.form[t.multiplyByAnswer.question]||0;return a=Math.max(a,t.multiplyByAnswer.minimum),r*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),r*a}return r},getNumberValue(e,n){if(!n)return 0;let t;for(let r=0;r<this.formData.fields.length;r++)this.formData.fields[r].name===e&&(t=this.formData.fields[r]);if(t.multiplyByNumber)return parseInt(n,10)*t.multiplyByNumber;if(t.multiplyByAnswer){const r=this.form[t.multiplyByAnswer.question]||0;return parseInt(n,10)*r}if(t.multiplyByValue&&e!==t.multiplyByValue){const r=this.getNumberValue(t.multiplyByValue.question,this.form[t.multiplyByValue.question]);return parseInt(n,10)*r}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 n=this.formData.fields[e];switch(n.stage){case 1:case 3:this.transportKilos+=this.getFieldValue(n);break;case 2:this.accommodationKilos+=this.getFieldValue(n);break;case 4:this.foodKilos+=this.getFieldValue(n);break}}this.totalKilos=this.transportKilos+this.accommodationKilos+this.foodKilos},checkConditionalFields(){Object.keys(this.conditionalFields).forEach(e=>{const n=this.formData.fields.find(r=>r.name===e);let t=!0;Object.keys(n.conditional).forEach(r=>{const a=n.conditional[r];Array.isArray(a)?a.indexOf(this.form[r])===-1&&(t=!1):this.form[r]!==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 n=this.formData.fields[e];n.element==="radio"&&!this.form[n.name]?this.answerSet=!1:n.element==="number"&&!this.form[n.name]&&(this.form[n.name]=n.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 n=this.repeatableStages[this.activeStage].generations+1;for(let t=0;t<this.formData.fields.length;t++){const r=this.formData.fields[t];if(r.stage===this.activeStage&&!r.isClone){const a=JSON.parse(JSON.stringify(r));a.isClone=!0;const s=`${r.name}${n}`;a.name=s,a.originalNumber=t,this.form[s]="",this.formData.fields.push(a)}}this.repeatableStages[this.activeStage].generations=n}}},_hoisted_1$1d={class:"vs-carbon-calculator__wrapper"},_hoisted_2$P={key:1};function _sfc_render$1s(e,n,t,r,a,s){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"),b=vue.resolveComponent("VsRow"),C=vue.resolveComponent("VsContainer"),w=vue.resolveComponent("VsWarning");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1d,[vue.createVNode(C,{class:"vs-carbon-calculator","data-test":"vs-carbon-calculator"},{default:vue.withCtx(()=>[e.formData&&e.formData.fields?(vue.openBlock(),vue.createBlock(b,{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,[s.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(s.currentCategory),1)]),_:1})):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.formData.fields,(E,V)=>vue.withDirectives((vue.openBlock(),vue.createBlock(d,{ref_for:!0,ref:"questions",tabindex:"0",key:E.name,label:s.getQuestionLabel(E,V),"label-for":E.name,hint:s.getQuestionHint(E,V),"field-class":s.conditionalElementClass(E.name),"field-type":E.element,"field-name":E.name,options:s.getQuestionOptions(E,V),minimum:E.element==="number"?E.validation.min:0,maximum:E.element==="number"?E.validation.max:0,onUpdateFieldData:s.updateFieldData},null,8,["label","label-for","hint","field-class","field-type","field-name","options","minimum","maximum","onUpdateFieldData"])),[[vue.vShow,E.stage===e.activeStage]])),128))],512),[[vue.vShow,e.activeStage<=e.formData.fields.length]])])])):vue.createCommentVNode("",!0),s.isRepeatable(e.activeStage)?(vue.openBlock(),vue.createBlock(f,{key:2,class:"my-100",variant:"secondary",icon:"plus",onClick:n[0]||(n[0]=E=>s.duplicateCurrentStage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(s.activeStageRepeatable),1)]),_:1})):vue.createCommentVNode("",!0),s.currentTip?(vue.openBlock(),vue.createBlock(p,{key:3,tip:s.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":s.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:n[1]||(n[1]=E=>s.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:n[2]||(n[2]=E=>s.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:n[3]||(n[3]=E=>s.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:n[4]||(n[4]=E=>s.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:n[5]||(n[5]=E=>s.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(w,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.noJsMessage),1)]),_:1})])}const CarbonCalculator=_export_sfc(_sfc_main$1B,[["render",_sfc_render$1s]]),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$1A={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)/)},businessSupport:{type:Boolean,default:!1},isHomePage:{type:Boolean,default:!1}},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$t={key:3,class:"vs-stretched-link-card__badges","data-test":"vs-stretched-link-card__badges"};function _sfc_render$1r(e,n,t,r,a,s){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",s.stretchedLinkCardClasses]),"data-test":"vs-stretched-link-card",onClick:n[0]||(n[0]=(...p)=>s.emitShowModal&&s.emitShowModal(...p)),onKeypress:n[1]||(n[1]=(...p)=>s.emitShowModal&&s.emitShowModal(...p))},[s.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(s.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(s.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",s.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),s.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(s.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(s.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),s.showWarning!=="full"?(vue.openBlock(),vue.createElementBlock("div",{key:4,class:vue.normalizeClass(["card-body",t.videoId?"position-relative":""])},[t.videoId&&s.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:s.emitShowModal},{default:vue.withCtx(()=>[t.videoBtnText?(vue.openBlock(),vue.createElementBlock("span",_hoisted_1$1c,vue.toDisplayString(s.formattedVideoBtnText),1)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(s.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.businessSupport&&t.type==="video"?vue.renderSlot(e.$slots,"stretched-card-header",{key:1}):(vue.openBlock(),vue.createBlock(d,{key:2,href:t.link,type:t.businessSupport&&t.isHomePage?"default":t.type,class:vue.normalizeClass(["stretched-link",t.disabled?"stretched-link--disabled":""]),variant:s.theme==="dark"?"on-dark":"primary","data-test":"vs-stretched-link",disabled:t.disabled,tabindex:(t.videoId||t.disabled)&&!t.businessSupport?"-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$t,[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$1A,[["render",_sfc_render$1r]]),_sfc_main$1z={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$s={class:"vs-stretched-link-panels__days"},_hoisted_5$l={class:"vs-stretched-link-panels__panel","data-test":"vs-stretched-link-panel"},_hoisted_6$d={"data-test":"vs-stretched-link-panel__icon"};function _sfc_render$1q(e,n,t,r,a,s){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$s,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$d,vue.toDisplayString(t.transportName),1)])])}const VsStretchedLinkPanels=_export_sfc(_sfc_main$1z,[["render",_sfc_render$1q]]),_sfc_main$1y={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 n=parseInt(e,10);return this.visibleSlides.indexOf(n)>=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$1p(e,n,t,r,a,s){const i=vue.resolveComponent("VsStretchedLinkPanels"),l=vue.resolveComponent("VsStretchedLinkCard"),c=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(c,{cols:s.slideCols.xs,sm:s.slideCols.sm,lg:s.slideCols.md,xl:s.slideCols.lg,"data-test":"vs-carousel-slide","aria-disabled":!s.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([s.isVisible(t.slideIndex)?"vs-carousel-slide__card--active":"vs-carousel-slide__card--disabled","vs-carousel-slide__card"]),disabled:!s.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$1y,[["render",_sfc_render$1p]]),_sfc_main$1x={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$r={class:"visually-hidden"},_hoisted_5$k={class:"vs-checkbox__label"};function _sfc_render$1o(e,n,t,r,a,s){const i=vue.resolveComponent("BFormCheckbox");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-checkbox",s.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$r,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":n[0]||(n[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$1x,[["render",_sfc_render$1o]]),useCookiesStore=pinia.defineStore("cookies",()=>{const e=vue.ref([]),n=vue.ref(!1);function t(a){e.value=[],a.forEach(s=>{e.value.push(s)})}function r(a){n.value=a}return{allowedCookies:e,cookiesTestRun:n,setCookieArray:t,setTestRun:r}});function hashCode(){return Math.random().toString(36).substring(7)}class OneTrustVS{constructor(){Gt(this,"init",()=>{window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach)});Gt(this,"instaOT",(n,t,r,a,s=null)=>{console.log("insta");let i=this;this.checkThirdPartyLibrary("OneTrust",()=>{this.onetrustCookieCheck(n,l=>{if(l)i.setIframeSrc();else if(a){console.log("fallback",r),console.log("container",a);let c=Array.from(r.classList)[0],d;a.length>1?a.forEach((f,p)=>{d=a[p].querySelector(`.${c}`),d||i.showOneTrustFallback(n,t,r,a[p],s)}):(d=a.querySelector(`.${c}`),d||i.showOneTrustFallback(n,t,r,a,s))}}),window.OneTrust.OnConsentChanged(function(){i.onetrustCookieCheck(n,l=>{l&&(window.OneTrustEventBus.dispatchEvent("otCategory-approved"),i.hideOneTrustFallback(n),i.setIframeSrc())})})})});Gt(this,"showOneTrustFallback",(n,t,r,a,s=null)=>{console.log("showfallback");let i={visible:!1,fallback:r};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-${n}`),this.fallbacks.push({id:d.id,cat:n,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-${n}`),s?a.insertBefore(l,a.childNodes[s]):a.appendChild(l),this.fallbacks.push({id:l.id,cat:n}),i.visible=!0,this.setFBButtonListener(l)}});Gt(this,"onetrustCookieCheck",(n,t)=>{if(typeof window<"u")return t(window.OnetrustActiveGroups.includes(n))});Gt(this,"hideOneTrustFallback",n=>{this.fallbacks.map(r=>{if(r.cat===n&&document.getElementById(r.id)){document.getElementById(r.id).style.display="none";return}});const t=document.querySelectorAll(`.vscookies-${n}`);t.size>0&&t.map(r=>{r.style.display="none"})});Gt(this,"checkThirdPartyLibrary",(n,t)=>{let r=500,a=this;window.setTimeout(function(){window[n]?t(window[n]):a.checkThirdPartyLibrary(n,t)},r)});Gt(this,"setFBButtonListener",n=>{n.querySelector("#ot-sdk-btn").addEventListener("click",function(){window.OneTrust.ToggleInfoDisplay()})});Gt(this,"setIframeSrc",()=>{let n=document.querySelectorAll('iframe[data-src]:not([data-src=""])');n&&n.forEach(t=>{t.src=t.dataset.src,t.removeAttribute("data-src")})});this.fallbacks=[]}}let cookieStore=null;const _sfc_main$1w={data(){return{oneTrust:new OneTrustVS,activeGroups:""}},watch:{activeGroups(){const n=this.activeGroups.split(",").filter(t=>t!=="");cookieStore&&(cookieStore.setCookieArray(n),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$1n(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("span",_hoisted_1$18)}const CookieChecker=_export_sfc(_sfc_main$1w,[["render",_sfc_render$1n]]),_sfc_main$1v={name:"VsDescriptionList",status:"prototype",release:"0.0.1",provide(){return{inline:vue.computed(()=>this.inline)}},props:{inline:{type:Boolean,default:!1}}};function _sfc_render$1m(e,n,t,r,a,s){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$1v,[["render",_sfc_render$1m]]),_sfc_main$1u={name:"VsDescriptionListItem",status:"prototype",release:"0.0.1",components:{VsCol},inject:["inline"],props:{title:{type:Boolean,default:!1}}};function _sfc_render$1l(e,n,t,r,a,s){const i=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(i,{tag:t.title?"dt":"dd",class:vue.normalizeClass({"list-inline-item":s.inline,"vs-description-list__detail":!t.title,"vs-description-list__detail--styled":!s.inline&&!t.title,"vs-description-list__term":t.title,"vs-description-list__term--styled":!s.inline&&t.title})},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["tag","class"])}const DescriptionListItem=_export_sfc(_sfc_main$1u,[["render",_sfc_render$1l],["__scopeId","data-v-66ca0ac6"]]),_sfc_main$1t={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$1k(e,n,t,r,a,s){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(s.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$1t,[["render",_sfc_render$1k]]),_sfc_main$1s={name:"VsDropdownItem",status:"prototype",release:"0.0.1",components:{BDropdownItem:bootstrapVueNext.BDropdownItem}};function _sfc_render$1j(e,n,t,r,a,s){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$1s,[["render",_sfc_render$1j]]),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(n=>{this.cookiesSet.indexOf(n)===-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$1r={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$1i(e,n,t,r,a,s){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"]()&&!s.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),s.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(s.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$1r,[["render",_sfc_render$1i]]);function createHydrationCleanup(){let e=[];return{cleanup:()=>{e=e.filter(r=>(r(),!1))},onCleanup:r=>{e.push(r)}}}function createHydrationPromise(e){let n=()=>{};const t=new Promise(a=>{n=()=>{e(),a()}});return{promise:t,resolvePromise:n,onResolvedPromise:a=>{t.then(a)}}}function trackDepsOnRender(e){const n=e.effect.fn,t=e.render;e.render=(...r)=>{e.effect.fn=()=>t(...r);const a=e.effect.run();return e.effect.fn=n,e.render=t,a}}const isFunction=e=>typeof e=="function",isObject=e=>e!==null&&typeof e=="object";function traverseChildren(e,n){if(vue.isVNode(e)&&(n(e),e.children!==null)){if(Array.isArray(e.children)){e.children.forEach(t=>traverseChildren(t,n));return}isObject(e.children)&&Object.keys(e.children).forEach(t=>{if(!isFunction(e.children[t]))return;const r=e.children[t]();if(Array.isArray(r)){r.forEach(a=>traverseChildren(a,n));return}traverseChildren(r,n)})}}function isAsyncWrapper(e){var n,t;return((n=e.type)==null?void 0:n.__asyncLoader)&&((t=e.type)==null?void 0:t.name)==="AsyncComponentWrapper"}function waitForAsyncComponents({subTree:e},n){const t=[];if(traverseChildren(e,r=>{isAsyncWrapper(r)&&t.push(r.type.__asyncLoader())}),t.length>0){Promise.all(t).then(n);return}n()}function ensureParentHasSubTreeEl(e){if(!e||!e.subTree)return;const n=e.subTree.el,t=e.u;e.u===null&&(e.u=[]),e.u.push(()=>{e.subTree.el===null&&(e.subTree.el=n),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 n=e.vnode.el!==null;if(e.vnode.type.__isLazilyHydrated=!0,!n)return{willPerformHydration:n,onHydrated:()=>{}};const{cleanup:t,onCleanup:r}=createHydrationCleanup(),{promise:a,resolvePromise:s,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:n,hydrate:s,onHydrated:l,onCleanup:r}}function useHydrateWhenIdle({willPerformHydration:e,hydrate:n,onCleanup:t},r=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)){n();return}const a=requestIdleCallback(()=>{n()},{timeout:r});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:n}){if(!e||e.el===null)return[];if(isElement(e.el))return[e.el];const t=[];if(n&&isFragmentStart(n.el)&&isFragmentEnd(n.anchor)){let r=e.el.nextSibling;for(;r;){if(r&&isElement(r)&&t.push(r),r===n.anchor)return t;r=r.nextSibling}}return t}function useHydrateOnInteraction({willPerformHydration:e,hydrate:n,onCleanup:t},r=["focus"]){if(!e)return;const a=vue.getCurrentInstance();if(!a||a.isMounted)throw new Error("useHydrateOnInteraction must be called from the setup method.");const s=vue.unref(r);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)){n();return}if(v===l)return;v=v.parentElement}return}i.forEach(v=>{p.includes(v)&&n()})};s.forEach(f=>{l.addEventListener(f,d,c)}),t(()=>{s.forEach(f=>{l.removeEventListener(f,d,c)})})})}function useHydrateWhenTriggered({willPerformHydration:e,hydrate:n,onCleanup:t},r){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(r)?r:()=>r,s=>{s&&n()},{immediate:!0});t(a)}const observers=new Map;function createHydrationObserver(e){const n=typeof IntersectionObserver<"u";if(!n)return{supported:n};const t=JSON.stringify(e);if(observers.has(t))return{supported:n,observer:observers.get(t)};const r=new IntersectionObserver(a=>{a.forEach(s=>{!(s.isIntersecting||s.intersectionRatio>0)||!s.target.hydrate||s.target.hydrate()})},e);return observers.set(t,r),{supported:n,observer:r}}function useHydrateWhenVisible({willPerformHydration:e,hydrate:n,onCleanup:t},r){if(!e)return;const a=vue.getCurrentInstance();if(!a||a.isMounted)throw new Error("useHydrateWhenVisible must be called from the setup method.");const{supported:s,observer:i}=createHydrationObserver(r);if(!s){n();return}vue.onMounted(()=>{const l=getRootElements(a);l.forEach(c=>{c.hydrate=n,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:n,emit:t}){const r=useLazyHydration();if(!r.willPerformHydration)return()=>normalizeSlot(n.default());if(r.onHydrated(()=>t("hydrated")),e.whenIdle&&useHydrateWhenIdle(r,e.whenIdle!==!0?e.whenIdle:void 0),e.whenVisible&&useHydrateWhenVisible(r,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(r,a)}return e.whenTriggered!==void 0&&useHydrateWhenTriggered(r,vue.toRef(e,"whenTriggered")),()=>normalizeSlot(n.default())}}),LazyHydrationWrapper$1=vue.markRaw(LazyHydrationWrapper),_sfc_main$1q={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$1h(e,n,t,r,a,s){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$1q,[["render",_sfc_render$1h]]),_sfc_main$1p={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$1g(e,n,t,r,a,s){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$1p,[["render",_sfc_render$1g]]),_sfc_main$1o={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$1f(e,n,t,r,a,s){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":s.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$1o,[["render",_sfc_render$1f]]),_sfc_main$1n={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$1e(e,n,t,r,a,s){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$1n,[["render",_sfc_render$1e]]),_sfc_main$1m={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$1d(e,n,t,r,a,s){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$1m,[["render",_sfc_render$1d]]),_sfc_main$1l={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$1c(e,n,t,r,a,s){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$1l,[["render",_sfc_render$1c]]),_sfc_main$1k={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$1b(e,n,t,r,a,s){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$1k,[["render",_sfc_render$1b]]),_sfc_main$1j={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$1a(e,n,t,r,a,s){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$1j,[["render",_sfc_render$1a]]);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 n(t){return t&&t.__esModule?t:{default:t}}e.exports=n,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 n(){return e.exports=n=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var s in a)({}).hasOwnProperty.call(a,s)&&(t[s]=a[s])}return t},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(null,arguments)}e.exports=n,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 n(t,r){if(t==null)return{};var a={};for(var s in t)if({}.hasOwnProperty.call(t,s)){if(r.includes(s))continue;a[s]=t[s]}return a}e.exports=n,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(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.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(n,t){n.super_=t,n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:inherits_browser$1.exports=function(n,t){n.super_=t;var r=function(){};r.prototype=t.prototype,n.prototype=new r,n.prototype.constructor=n}),inherits_browser$1.exports}var hasRequiredUtil$1;function requireUtil$1(){return hasRequiredUtil$1||(hasRequiredUtil$1=1,function(e){var n={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LfqqfcZAAAAACbkbPaHRZTIFpKZGAPZBDkwBKhe",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_15348_CWGUUHKPCRTIGFCZ",COLORTERM:"truecolor",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"2HR07S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EXEPATH:"C:\\Program Files\\Git\\bin",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",GIT_ASKPASS:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\duncan.sanderson",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\duncan.sanderson",HOSTNAME:"2HR07S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LANG:"en_US.UTF-8",LOCALAPPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE_ENV:"production",NODE_PATH:"C:\\Users\\duncan.sanderson\\AppData\\npm",npm_config_user_agent:"yarn/4.3.1 npm/? node/v18.19.1 win32 x64",npm_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579\\node",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.7.1",NUMBER_OF_PROCESSORS:"8",OneDrive:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",OneDriveCommercial:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin",ORIGINAL_TEMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",PATH:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-274ceb4d;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-4df2ce3c;C:\\Users\\duncan.sanderson\\.volta\\bin;C:\\Users\\duncan.sanderson\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",ProgramData:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",PYTHON:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_AGENT_PID:"1838",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SSH_AUTH_SOCK:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp/ssh-uR4B1I3vN93q/agent.1837",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TERM:"xterm-256color",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.96.2",TMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"duncan.sanderson",USERPROFILE:"C:\\Users\\duncan.sanderson",VOLTA_HOME:"C:/Users/duncan.sanderson/.volta",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",VSCODE_GIT_ASKPASS_MAIN:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-4a2d75133c-sock",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/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(T){if(!A(T)){for(var M=[],G=0;G<arguments.length;G++)M.push(s(arguments[G]));return M.join(" ")}for(var G=1,ne=arguments,he=ne.length,B=String(T).replace(t,function(q){if(q==="%%")return"%";if(G>=he)return q;switch(q){case"%s":return String(ne[G++]);case"%d":return Number(ne[G++]);case"%j":try{return JSON.stringify(ne[G++])}catch{return"[Circular]"}default:return q}}),U=ne[G];G<he;U=ne[++G])w(U)||!L(U)?B+=" "+U:B+=" "+s(U);return B},e.deprecate=function(T,M){if(O(commonjsGlobal.process))return function(){return e.deprecate(T,M).apply(this,arguments)};if(process.noDeprecation===!0)return T;var G=!1;function ne(){if(!G){if(process.throwDeprecation)throw new Error(M);process.traceDeprecation?console.trace(M):console.error(M),G=!0}return T.apply(this,arguments)}return ne};var r={},a;e.debuglog=function(T){if(O(a)&&(a=n.NODE_DEBUG||""),T=T.toUpperCase(),!r[T])if(new RegExp("\\b"+T+"\\b","i").test(a)){var M=process.pid;r[T]=function(){var G=e.format.apply(e,arguments);console.error("%s %d: %s",T,M,G)}}else r[T]=function(){};return r[T]};function s(T,M){var G={seen:[],stylize:l};return arguments.length>=3&&(G.depth=arguments[2]),arguments.length>=4&&(G.colors=arguments[3]),C(M)?G.showHidden=M:M&&e._extend(G,M),O(G.showHidden)&&(G.showHidden=!1),O(G.depth)&&(G.depth=2),O(G.colors)&&(G.colors=!1),O(G.customInspect)&&(G.customInspect=!0),G.colors&&(G.stylize=i),d(G,T,G.depth)}e.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function i(T,M){var G=s.styles[M];return G?"\x1B["+s.colors[G][0]+"m"+T+"\x1B["+s.colors[G][1]+"m":T}function l(T,M){return T}function c(T){var M={};return T.forEach(function(G,ne){M[G]=!0}),M}function d(T,M,G){if(T.customInspect&&M&&z(M.inspect)&&M.inspect!==e.inspect&&!(M.constructor&&M.constructor.prototype===M)){var ne=M.inspect(G,T);return A(ne)||(ne=d(T,ne,G)),ne}var he=f(T,M);if(he)return he;var B=Object.keys(M),U=c(B);if(T.showHidden&&(B=Object.getOwnPropertyNames(M)),se(M)&&(B.indexOf("message")>=0||B.indexOf("description")>=0))return p(M);if(B.length===0){if(z(M)){var q=M.name?": "+M.name:"";return T.stylize("[Function"+q+"]","special")}if(I(M))return T.stylize(RegExp.prototype.toString.call(M),"regexp");if(Z(M))return T.stylize(Date.prototype.toString.call(M),"date");if(se(M))return p(M)}var oe="",ee=!1,le=["{","}"];if(b(M)&&(ee=!0,le=["[","]"]),z(M)){var ue=M.name?": "+M.name:"";oe=" [Function"+ue+"]"}if(I(M)&&(oe=" "+RegExp.prototype.toString.call(M)),Z(M)&&(oe=" "+Date.prototype.toUTCString.call(M)),se(M)&&(oe=" "+p(M)),B.length===0&&(!ee||M.length==0))return le[0]+oe+le[1];if(G<0)return I(M)?T.stylize(RegExp.prototype.toString.call(M),"regexp"):T.stylize("[Object]","special");T.seen.push(M);var te;return ee?te=v(T,M,G,U,B):te=B.map(function(ce){return m(T,M,G,U,ce,ee)}),T.seen.pop(),g(te,oe,le)}function f(T,M){if(O(M))return T.stylize("undefined","undefined");if(A(M)){var G="'"+JSON.stringify(M).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return T.stylize(G,"string")}if(V(M))return T.stylize(""+M,"number");if(C(M))return T.stylize(""+M,"boolean");if(w(M))return T.stylize("null","null")}function p(T){return"["+Error.prototype.toString.call(T)+"]"}function v(T,M,G,ne,he){for(var B=[],U=0,q=M.length;U<q;++U)fe(M,String(U))?B.push(m(T,M,G,ne,String(U),!0)):B.push("");return he.forEach(function(oe){oe.match(/^\d+$/)||B.push(m(T,M,G,ne,oe,!0))}),B}function m(T,M,G,ne,he,B){var U,q,oe;if(oe=Object.getOwnPropertyDescriptor(M,he)||{value:M[he]},oe.get?oe.set?q=T.stylize("[Getter/Setter]","special"):q=T.stylize("[Getter]","special"):oe.set&&(q=T.stylize("[Setter]","special")),fe(ne,he)||(U="["+he+"]"),q||(T.seen.indexOf(oe.value)<0?(w(G)?q=d(T,oe.value,null):q=d(T,oe.value,G-1),q.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,n,t,r,a,s){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 n=useChart(),t=vue.ref(0),r=vue.ref("horizontal"),a=vue.ref({});return vue.watch(n.updates,()=>{e.value!==void 0&&(t.value=n.scales.secondary.scale(e.value)),a.value=n.canvas,r.value=n.config.direction},{immediate:!0}),vue.watch(()=>e.value,()=>{t.value=n.scales.secondary.scale(e.value)},{immediate:!0}),{y:t,canvas:a,direction:r}}});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,n,t,r,a,s){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 n=0,t=e.children,r=t&&t.length;if(!r)n=1;else for(;--r>=0;)n+=t[r].value;e.value=n}function node_count(){return this.eachAfter(count)}function node_each(e,n){let t=-1;for(const r of this)e.call(n,r,++t,this);return this}function node_eachBefore(e,n){for(var t=this,r=[t],a,s,i=-1;t=r.pop();)if(e.call(n,t,++i,this),a=t.children)for(s=a.length-1;s>=0;--s)r.push(a[s]);return this}function node_eachAfter(e,n){for(var t=this,r=[t],a=[],s,i,l,c=-1;t=r.pop();)if(a.push(t),s=t.children)for(i=0,l=s.length;i<l;++i)r.push(s[i]);for(;t=a.pop();)e.call(n,t,++c,this);return this}function node_find(e,n){let t=-1;for(const r of this)if(e.call(n,r,++t,this))return r}function node_sum(e){return this.eachAfter(function(n){for(var t=+e(n.data)||0,r=n.children,a=r&&r.length;--a>=0;)t+=r[a].value;n.value=t})}function node_sort(e){return this.eachBefore(function(n){n.children&&n.children.sort(e)})}function node_path(e){for(var n=this,t=leastCommonAncestor(n,e),r=[n];n!==t;)n=n.parent,r.push(n);for(var a=r.length;e!==t;)r.splice(a,0,e),e=e.parent;return r}function leastCommonAncestor(e,n){if(e===n)return e;var t=e.ancestors(),r=n.ancestors(),a=null;for(e=t.pop(),n=r.pop();e===n;)a=e,e=t.pop(),n=r.pop();return a}function node_ancestors(){for(var e=this,n=[e];e=e.parent;)n.push(e);return n}function node_descendants(){return Array.from(this)}function node_leaves(){var e=[];return this.eachBefore(function(n){n.children||e.push(n)}),e}function node_links(){var e=this,n=[];return e.each(function(t){t!==e&&n.push({source:t.parent,target:t})}),n}function*node_iterator(){var e=this,n,t=[e],r,a,s;do for(n=t.reverse(),t=[];e=n.pop();)if(yield e,r=e.children)for(a=0,s=r.length;a<s;++a)t.push(r[a]);while(t.length)}function hierarchy(e,n){e instanceof Map?(e=[void 0,e],n===void 0&&(n=mapChildren)):n===void 0&&(n=objectChildren);for(var t=new Node$2(e),r,a=[t],s,i,l,c;r=a.pop();)if((i=n(r.data))&&(c=(i=Array.from(i)).length))for(r.children=i,l=c-1;l>=0;--l)a.push(s=i[l]=new Node$2(i[l])),s.parent=r,s.depth=r.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 n=0;do e.height=n;while((e=e.parent)&&e.height<++n)}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,n,t,r,a){for(var s=e.children,i,l=-1,c=s.length,d=e.value&&(r-n)/e.value;++l<c;)i=s[l],i.y0=t,i.y1=a,i.x0=n,i.x1=n+=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,n=defaultParentId,t;function r(a){var s=Array.from(a),i=e,l=n,c,d,f,p,v,m,g,b,C=new Map;if(t!=null){const w=s.map((A,P)=>normalize(t(A,P,a))),E=w.map(parentof),V=new Set(w).add("");for(const A of E)V.has(A)||(V.add(A),w.push(A),E.push(parentof(A)),s.push(imputed));i=(A,P)=>w[P],l=(A,P)=>E[P]}for(f=0,c=s.length;f<c;++f)d=s[f],m=s[f]=new Node$2(d),(g=i(d,f,a))!=null&&(g+="")&&(b=m.id=g,C.set(b,C.has(b)?ambiguous:m)),(g=l(d,f,a))!=null&&(g+="")&&(m.parent=g);for(f=0;f<c;++f)if(m=s[f],g=m.parent){if(v=C.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 w=s.length-1;w>=0&&(m=s[w],m.data===imputed);--w)m.data=null}if(p.parent=preroot,p.eachBefore(function(w){w.depth=w.parent.depth+1,--c}).eachBefore(computeHeight),p.parent=null,c>0)throw new Error("cycle");return p}return r.id=function(a){return arguments.length?(e=optional(a),r):e},r.parentId=function(a){return arguments.length?(n=optional(a),r):n},r.path=function(a){return arguments.length?(t=optional(a),r):t},r}function normalize(e){e=`${e}`;let n=e.length;return slash(e,n-1)&&!slash(e,n-2)&&(e=e.slice(0,-1)),e[0]==="/"?e:`/${e}`}function parentof(e){let n=e.length;if(n<2)return"";for(;--n>1&&!slash(e,n););return e.slice(0,n)}function slash(e,n){if(e[n]==="/"){let t=0;for(;n>0&&e[--n]==="\\";)++t;if(!(t&1))return!0}return!1}function treemapSlice(e,n,t,r,a){for(var s=e.children,i,l=-1,c=s.length,d=e.value&&(a-t)/e.value;++l<c;)i=s[l],i.x0=n,i.x1=r,i.y0=t,i.y1=t+=i.value*d}var phi=(1+Math.sqrt(5))/2;function squarifyRatio(e,n,t,r,a,s){for(var i=[],l=n.children,c,d,f=0,p=0,v=l.length,m,g,b=n.value,C,w,E,V,A,P,O;f<v;){m=a-t,g=s-r;do C=l[p++].value;while(!C&&p<v);for(w=E=C,P=Math.max(g/m,m/g)/(b*e),O=C*C*P,A=Math.max(E/O,O/w);p<v;++p){if(C+=d=l[p].value,d<w&&(w=d),d>E&&(E=d),O=C*C*P,V=Math.max(E/O,O/w),V>A){C-=d;break}A=V}i.push(c={value:C,dice:m<g,children:l.slice(f,p)}),c.dice?treemapDice(c,t,r,a,b?r+=g*C/b:s):treemapSlice(c,t,r,b?t+=m*C/b:a,s),b-=C,f=p}return i}var squarify=function e(n){function t(r,a,s,i,l){squarifyRatio(n,r,a,s,i,l)}return t.ratio=function(r){return e((r=+r)>1?r:1)},t}(phi);function treemap(){var e=squarify,n=!1,t=1,r=1,a=[0],s=constantZero,i=constantZero,l=constantZero,c=constantZero,d=constantZero;function f(v){return v.x0=v.y0=0,v.x1=t,v.y1=r,v.eachBefore(p),a=[0],n&&v.eachBefore(roundNode),v}function p(v){var m=a[v.depth],g=v.x0+m,b=v.y0+m,C=v.x1-m,w=v.y1-m;C<g&&(g=C=(g+C)/2),w<b&&(b=w=(b+w)/2),v.x0=g,v.y0=b,v.x1=C,v.y1=w,v.children&&(m=a[v.depth+1]=s(v)/2,g+=d(v)-m,b+=i(v)-m,C-=l(v)-m,w-=c(v)-m,C<g&&(g=C=(g+C)/2),w<b&&(b=w=(b+w)/2),e(v,g,b,C,w))}return f.round=function(v){return arguments.length?(n=!!v,f):n},f.size=function(v){return arguments.length?(t=+v[0],r=+v[1],f):[t,r]},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?(s=typeof v=="function"?v:constant(+v),f):s},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 n=vue.ref(null),t=vue.ref(e.data),r=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}),s=vue.ref([]);function i(){const m=extent(t.value.map(C=>C[e.dataKeys[1]])),g=linear().domain(m).range([0,100]).nice(),b=sequential().domain(m).interpolator(e.colorFn());return{x:g,y:b}}function l(){const{y:m}=i();return c(t.value).leaves().map((b,C)=>({idx:C,x0:a.value.x+b.x0,x1:a.value.x+b.x1,y0:a.value.y+b.y0,y1:a.value.y+b.y1,width:b.x1-b.x0,height:b.y1-b.y0,data:b.data,color:m(b.value)}))}function c(m){const{x:g}=i(),b=treemap().size([a.value.width-a.value.x,a.value.height-a.value.y]).padding(e.padding),w=stratify().id(E=>E.name).parentId(E=>E.parent)([{name:"root"}].concat(m.map(E=>({name:E[e.dataKeys[0]],value:E[e.dataKeys[1]],parent:"root"}))));return w.sum(E=>g(E.value)),b(w),w}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){r.value=m}function v(){r.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},s.value=l()},{immediate:!0}),{el:n,rectangles:s,selected:r,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$y=["transform","onMouseover"],_hoisted_5$o=["width","height"],_hoisted_6$f={x:10,y:20,"font-size":"15px",fill:"white","font-weight":"bold"};function render$1(e,n,t,r,a,s){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:n[0]||(n[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$f,vue.toDisplayString(i.data.name),1)])])],42,_hoisted_4$y))),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(),n=useMouse(),t=vue.ref({x:0,y:0,width:0,height:0}),r=vue.ref("horizontal"),a=vue.ref({x:0,y:0,width:0,height:0});return vue.watch(e.updates,()=>{a.value=e.canvas,r.value=e.config.direction},{immediate:!0}),vue.watch(n,()=>{if(e.bandScale){const s=e.getData(e.getKeys(0)),[i]=e.bandScale.map([s[n.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:r,mouse:n}}});const _hoisted_1$1k={key:0,class:"layer-hover-bar"},_hoisted_2$U=["x","y","width","height"];function render(e,n,t,r,a,s){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$1H={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 n=0;n<this.comparisonReplacements.length;n++)e=e.replace(this.comparisonReplacements[n].repl,(this.totalKilos/this.comparisonReplacements[n].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$x=["innerHTML"],_hoisted_5$n={class:"vs-carbon-calculator-results__unicorn-icon-container"},_hoisted_6$e={class:"vs-carbon-calculator-results__unicorn-content"};function _sfc_render$1y(e,n,t,r,a,s){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(s.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(s.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(s.labelsMap.kgsOf),1)])])]),_:1}),vue.createVNode(l,{cols:"12",md:"6",class:"vs-carbon-calculator-results__comparison"},{default:vue.withCtx(()=>[vue.createElementVNode("p",{innerHTML:s.interpolComparison},null,8,_hoisted_4$x)]),_:1})]),_:1})]),_:1}),s.totalPerDay<=s.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$e,[vue.createVNode(i,{level:"3","heading-style":"heading-xs"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(s.labelsMap.perDayCongratulations),1)]),_:1}),vue.createElementVNode("p",null,vue.toDisplayString(s.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(s.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:s.chartData,margin:s.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$1H,[["render",_sfc_render$1y]]),_sfc_main$1G={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$w={class:"font-weight-bold"};function _sfc_render$1x(e,n,t,r,a,s){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(s.labelsMap.soFar),1),vue.createElementVNode("p",null,[vue.createElementVNode("span",_hoisted_4$w,vue.toDisplayString(t.totalKilos.toLocaleString(t.language,{minimumFractionDigits:3})),1),vue.createTextVNode(" "+vue.toDisplayString(s.labelsMap.kgsOf),1)])])])}const VsCarbonCalculatorRunningTotal=_export_sfc(_sfc_main$1G,[["render",_sfc_render$1x]]),_sfc_main$1F={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$1w(e,n,t,r,a,s){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(s.labelsMap.introHeading),1)]),_:1}),vue.createElementVNode("p",null,vue.toDisplayString(s.labelsMap.introContent),1)])}const VsCarbonCalculatorIntro=_export_sfc(_sfc_main$1F,[["render",_sfc_render$1w]]);function ownKeys$1(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r)}return t}function _objectSpread2$1(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ownKeys$1(Object(t),!0).forEach(function(r){_defineProperty$2(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys$1(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _defineProperty$2(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function unwrapObj(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=vue.unref(e[r])),t),{})}function isFunction$2(e){return typeof e=="function"}function isProxy(e){return vue.isReactive(e)||vue.isReadonly(e)}function get$1(e,n,t){let r=e;const a=n.split(".");for(let s=0;s<a.length;s++){if(!r[a[s]])return t;r=r[a[s]]}return r}function gatherBooleanGroupProperties(e,n,t){return vue.computed(()=>e.some(r=>get$1(n,r,{[t]:!1})[t]))}function gatherArrayGroupProperties(e,n,t){return vue.computed(()=>e.reduce((r,a)=>{const s=get$1(n,a,{[t]:!1})[t]||[];return r.concat(s)},[]))}function callRule(e,n,t,r){return e.call(r,vue.unref(n),vue.unref(t),r)}function normalizeValidatorResponse(e){return e.$valid!==void 0?!e.$valid:!e}function createAsyncResult(e,n,t,r,a,s,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(!!r.value),g=vue.ref(0);t.value=!1;const b=vue.watch([n,r].concat(d,v),()=>{if(l&&!r.value||c&&!p.value&&!t.value)return;let C;try{C=callRule(e,n,f,i)}catch(w){C=Promise.reject(w)}g.value++,t.value=!!g.value,m.value=!1,Promise.resolve(C).then(w=>{g.value--,t.value=!!g.value,s.value=w,m.value=normalizeValidatorResponse(w)}).catch(w=>{g.value--,t.value=!!g.value,s.value=w,m.value=!0})},{immediate:!0,deep:typeof n=="object"});return{$invalid:m,$unwatch:b}}function createSyncResult(e,n,t,r,a,s,i,l){let{$lazy:c,$rewardEarly:d}=r;const f=()=>({}),p=vue.computed(()=>{if(c&&!t.value||d&&!l.value)return!1;let v=!0;try{const m=callRule(e,n,i,s);a.value=m,v=normalizeValidatorResponse(m)}catch(m){a.value=m}return v});return{$unwatch:f,$invalid:p}}function createValidatorResult(e,n,t,r,a,s,i,l,c,d,f){const p=vue.ref(!1),v=e.$params||{},m=vue.ref(null);let g,b;e.$async?{$invalid:g,$unwatch:b}=createAsyncResult(e.$validator,n,p,t,r,m,a,e.$watchTargets,c,d,f):{$invalid:g,$unwatch:b}=createSyncResult(e.$validator,n,t,r,m,a,c,d);const C=e.$message;return{$message:isFunction$2(C)?vue.computed(()=>C(unwrapObj({$pending:p,$invalid:g,$params:unwrapObj(v),$model:n,$response:m,$validator:s,$propertyPath:l,$property:i}))):C||"",$params:v,$pending:p,$invalid:g,$response:m,$unwatch:b}}function sortValidations(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=vue.unref(e),t=Object.keys(n),r={},a={},s={};let i=null;return t.forEach(l=>{const c=n[l];switch(!0){case isFunction$2(c.$validator):r[l]=c;break;case isFunction$2(c):r[l]={$validator:c};break;case l==="$validationGroups":i=c;break;case l.startsWith("$"):s[l]=c;break;default:a[l]=c}}),{rules:r,nestedValidators:a,config:s,validationGroups:i}}const ROOT_PATH="__root";function createValidationResults(e,n,t,r,a,s,i,l,c){const d=Object.keys(e),f=r.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(b=>{g[b]=createValidatorResult(e[b],n,g.$dirty,s,i,b,t,a,c,v,m)}),g.$externalResults=vue.computed(()=>l.value?[].concat(l.value).map((b,C)=>({$propertyPath:a,$property:t,$validator:"$externalResults",$uid:`${a}-externalResult-${C}`,$message:b,$params:{},$response:null,$pending:!1})):[]),g.$invalid=vue.computed(()=>{const b=d.some(C=>vue.unref(g[C].$invalid));return v.value=b,!!g.$externalResults.value.length||b}),g.$pending=vue.computed(()=>d.some(b=>vue.unref(g[b].$pending))),g.$error=vue.computed(()=>g.$dirty.value?g.$pending.value||g.$invalid.value:!1),g.$silentErrors=vue.computed(()=>d.filter(b=>vue.unref(g[b].$invalid)).map(b=>{const C=g[b];return vue.reactive({$propertyPath:a,$property:t,$validator:b,$uid:`${a}-${b}`,$message:C.$message,$params:C.$params,$response:C.$response,$pending:C.$pending})}).concat(g.$externalResults.value)),g.$errors=vue.computed(()=>g.$dirty.value?g.$silentErrors.value:[]),g.$unwatch=()=>d.forEach(b=>{g[b].$unwatch()}),g.$commit=()=>{v.value=!0,m.value=Date.now()},r.set(a,e,g),g):(f&&r.set(a,e,g),g)}function collectNestedValidationResults(e,n,t,r,a,s,i){const l=Object.keys(e);return l.length?l.reduce((c,d)=>(c[d]=setValidations({validations:e[d],state:n,key:d,parentKey:t,resultsCache:r,globalConfig:a,instance:s,externalResults:i}),c),{}):{}}function createMetaFields(e,n,t){const r=vue.computed(()=>[n,t].filter(g=>g).reduce((g,b)=>g.concat(Object.values(vue.unref(b))),[])),a=vue.computed({get(){return e.$dirty.value||(r.value.length?r.value.every(g=>g.$dirty):!1)},set(g){e.$dirty.value=g}}),s=vue.computed(()=>{const g=vue.unref(e.$silentErrors)||[],b=r.value.filter(C=>(vue.unref(C).$silentErrors||[]).length).reduce((C,w)=>C.concat(...w.$silentErrors),[]);return g.concat(b)}),i=vue.computed(()=>{const g=vue.unref(e.$errors)||[],b=r.value.filter(C=>(vue.unref(C).$errors||[]).length).reduce((C,w)=>C.concat(...w.$errors),[]);return g.concat(b)}),l=vue.computed(()=>r.value.some(g=>g.$invalid)||vue.unref(e.$invalid)||!1),c=vue.computed(()=>r.value.some(g=>vue.unref(g.$pending))||vue.unref(e.$pending)||!1),d=vue.computed(()=>r.value.some(g=>g.$dirty)||r.value.some(g=>g.$anyDirty)||a.value),f=vue.computed(()=>a.value?c.value||l.value:!1),p=()=>{e.$touch(),r.value.forEach(g=>{g.$touch()})},v=()=>{e.$commit(),r.value.forEach(g=>{g.$commit()})},m=()=>{e.$reset(),r.value.forEach(g=>{g.$reset()})};return r.value.length&&r.value.every(g=>g.$dirty)&&p(),{$dirty:a,$errors:i,$invalid:l,$anyDirty:d,$error:f,$pending:c,$touch:p,$reset:m,$silentErrors:s,$commit:v}}function setValidations(e){let{validations:n,state:t,key:r,parentKey:a,childResults:s,resultsCache:i,globalConfig:l={},instance:c,externalResults:d}=e;const f=a?`${a}.${r}`:r,{rules:p,nestedValidators:v,config:m,validationGroups:g}=sortValidations(n),b=_objectSpread2$1(_objectSpread2$1({},l),m),C=r?vue.computed(()=>{const G=vue.unref(t);return G?vue.unref(G[r]):void 0}):t,w=_objectSpread2$1({},vue.unref(d)||{}),E=vue.computed(()=>{const G=vue.unref(d);return r?G?vue.unref(G[r]):void 0:G}),V=createValidationResults(p,C,r,i,f,b,c,E,t),A=collectNestedValidationResults(v,C,f,i,b,c,E),P={};g&&Object.entries(g).forEach(G=>{let[ne,he]=G;P[ne]={$invalid:gatherBooleanGroupProperties(he,A,"$invalid"),$error:gatherBooleanGroupProperties(he,A,"$error"),$pending:gatherBooleanGroupProperties(he,A,"$pending"),$errors:gatherArrayGroupProperties(he,A,"$errors"),$silentErrors:gatherArrayGroupProperties(he,A,"$silentErrors")}});const{$dirty:O,$errors:I,$invalid:R,$anyDirty:Z,$error:se,$pending:z,$touch:ie,$reset:Q,$silentErrors:ae,$commit:we}=createMetaFields(V,A,s),me=r?vue.computed({get:()=>vue.unref(C),set:G=>{O.value=!0;const ne=vue.unref(t),he=vue.unref(d);he&&(he[r]=w[r]),vue.isRef(ne[r])?ne[r].value=G:ne[r]=G}}):null;r&&b.$autoDirty&&vue.watch(C,()=>{O.value||ie();const G=vue.unref(d);G&&(G[r]=w[r])},{flush:"sync"});async function fe(){return ie(),b.$rewardEarly&&(we(),await vue.nextTick()),await vue.nextTick(),new Promise(G=>{if(!z.value)return G(!R.value);const ne=vue.watch(z,()=>{G(!R.value),ne()})})}function T(G){return(s.value||{})[G]}function M(){vue.isRef(d)?d.value=w:Object.keys(w).length===0?Object.keys(d).forEach(G=>{delete d[G]}):Object.assign(d,w)}return vue.reactive(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},V),{},{$model:me,$dirty:O,$error:se,$errors:I,$invalid:R,$anyDirty:Z,$pending:z,$touch:ie,$reset:Q,$path:f||ROOT_PATH,$silentErrors:ae,$validate:fe,$commit:we},s&&{$getResultsForChild:T,$clearExternalResults:M,$validationGroups:P}),A))}class ResultsStorage{constructor(){this.storage=new Map}set(n,t,r){this.storage.set(n,{rules:t,result:r})}checkRulesValidity(n,t,r){const a=Object.keys(r),s=Object.keys(t);return s.length!==a.length||!s.every(l=>a.includes(l))?!1:s.every(l=>t[l].$params?Object.keys(t[l].$params).every(c=>vue.unref(r[l].$params[c])===vue.unref(t[l].$params[c])):!0)}get(n,t){const r=this.storage.get(n);if(!r)return;const{rules:a,result:s}=r,i=this.checkRulesValidity(n,t,a),l=s.$unwatch?s.$unwatch:()=>({});return i?s:{$dirty:s.$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:n,instance:t}=e;const r={},a=vue.ref([]),s=vue.computed(()=>a.value.reduce((f,p)=>(f[p]=vue.unref(r[p]),f),{}));function i(f,p){let{$registerAs:v,$scope:m,$stopPropagation:g}=p;g||n===CollectFlag.COLLECT_NONE||m===CollectFlag.COLLECT_NONE||n!==CollectFlag.COLLECT_ALL&&n!==m||(r[v]=f,a.value.push(v))}t.__vuelidateInjectInstances=[].concat(t.__vuelidateInjectInstances||[],i);function l(f){a.value=a.value.filter(p=>p!==f),delete r[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:s,sendValidationResultsToParent:c,removeValidationResultsFromParent:d}}function ComputedProxyFactory(e){return new Proxy(e,{get(n,t){return typeof n[t]=="object"?ComputedProxyFactory(n[t]):vue.computed(()=>n[t])}})}let uid=0;function useVuelidate(e,n){var t;let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(r=e,e=void 0,n=void 0);let{$registerAs:a,$scope:s=CollectFlag.COLLECT_ALL,$stopPropagation:i,$externalResults:l,currentVueInstance:c}=r;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:b}=d?nestedValidations({$scope:s,instance:d}):{childResults:vue.ref({})};if(!e&&f.validations){const C=f.validations;n=vue.ref({}),vue.onBeforeMount(()=>{n.value=d,vue.watch(()=>isFunction$2(C)?C.call(n.value,new ComputedProxyFactory(n.value)):C,w=>{p.value=setValidations({validations:w,state:n,childResults:m,resultsCache:v,globalConfig:r,instance:d,externalResults:l||d.vuelidateExternalResults})},{immediate:!0})}),r=f.validationsConfig||r}else{const C=vue.isRef(e)||isProxy(e)?e:vue.reactive(e||{});vue.watch(C,w=>{p.value=setValidations({validations:w,state:n,childResults:m,resultsCache:v,globalConfig:r,instance:d??{},externalResults:l})},{immediate:!0})}return d&&(g.forEach(C=>C(p,{$registerAs:a,$scope:s,$stopPropagation:i})),vue.onBeforeUnmount(()=>b.forEach(C=>C(a)))),vue.computed(()=>_objectSpread2$1(_objectSpread2$1({},vue.unref(p.value)),m.value))}function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r)}return t}function _objectSpread2(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty$1(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _defineProperty$1(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=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,n){if(!isObject$1(e))throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);if(!isObject$1(n)&&!isFunction$1(n))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const t=normalizeValidatorObject(n);return t.$params=_objectSpread2(_objectSpread2({},t.$params||{}),e),t}function withMessage(e,n){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(n)&&!isFunction$1(n))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const t=normalizeValidatorObject(n);return t.$message=e,t}function withAsync(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const t=normalizeValidatorObject(e);return _objectSpread2(_objectSpread2({},t),{},{$async:!0,$watchTargets:n})}function forEach(e){return{$validator(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return vue.unref(n).reduce((s,i,l)=>{const c=Object.entries(i).reduce((d,f)=>{let[p,v]=f;const m=e[p]||{},g=Object.entries(m).reduce((b,C)=>{let[w,E]=C;const A=unwrapNormalizedValidator(E).call(this,v,i,l,...r),P=unwrapValidatorResponse(A);if(b.$data[w]=A,b.$data.$invalid=!P||!!b.$data.$invalid,b.$data.$error=b.$data.$invalid,!P){let O=E.$message||"";const I=E.$params||{};typeof O=="function"&&(O=O({$pending:!1,$invalid:!P,$params:I,$model:v,$response:A})),b.$errors.push({$property:p,$message:O,$params:I,$response:A,$model:v,$pending:!1,$validator:w})}return{$valid:b.$valid&&P,$data:b.$data,$errors:b.$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:s.$valid&&c.$valid,$data:s.$data.concat(c.$data),$errors:s.$errors.concat(c.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:n=>{let{$response:t}=n;return t?t.$errors.map(r=>Object.values(r).map(a=>a.map(s=>s.$message)).reduce((a,s)=>a.concat(s),[])):[]}}}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 n 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,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return r=>(r=vue.unref(r),!req(r)||n.every(a=>(a.lastIndex=0,a.test(r))))}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 n=>!req(n)||len(n)<=vue.unref(e)}function maxLength(e){return{$validator:maxLength$1(e),$message:n=>{let{$params:t}=n;return`The maximum length allowed is ${t.max}`},$params:{max:e,type:"maxLength"}}}function minLength$1(e){return n=>!req(n)||len(n)>=vue.unref(e)}function minLength(e){return{$validator:minLength$1(e),$message:n=>{let{$params:t}=n;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[n,t]of Object.entries(this.validationRules))n==="required"?e={...e,required}:n==="email"?e={...e,email}:n==="minLength"?e={...e,minLength:minLength(t)}:n==="maxLength"?e={...e,maxLength:maxLength(t)}:n==="invalidVal"?e={...e,noInvalid:()=>this.inputVal.indexOf(this.validationRules.invalidVal)===-1}:n==="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(r=>{r.$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,n)=>{e==="required"&&this.errorsList.splice(n,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$1E={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":"",n=`vs-input--${this.fieldName}`;return`${e} ${n}`},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$v=["id"];function _sfc_render$1v(e,n,t,r,a,s){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:s.validateErrors,onChange:s.validateErrors,onFocus:s.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=>s.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$v)):vue.createCommentVNode("",!0)])}const VsRadioButton=_export_sfc(_sfc_main$1E,[["render",_sfc_render$1v]]),_sfc_main$1D={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":"",n=`vs-input--${this.fieldName}`;return`${e} ${n}`},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$u={class:"visually-hidden"},_hoisted_5$m={class:"visually-hidden"};function _sfc_render$1u(e,n,t,r,a,s){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$u,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:s.decrementValue},{default:vue.withCtx(()=>n[2]||(n[2]=[vue.createTextVNode(" Remove 1 ")])),_:1},8,["disabled","onClick"]),vue.createVNode(l,{ref:"input",type:"Number",class:vue.normalizeClass(["vs-number-input",s.elementClass]),modelValue:a.inputVal,"onUpdate:modelValue":n[0]||(n[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:s.controlBlurred,onChange:s.validateErrors,onFocus:s.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:s.incrementValue},{default:vue.withCtx(()=>n[3]||(n[3]=[vue.createTextVNode(" Add 1 ")])),_:1},8,["disabled","onClick"]),s.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:n[1]||(n[1]=vue.withModifiers(c=>s.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$1D,[["render",_sfc_render$1u]]),_sfc_main$1C={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$1t(e,n,t,r,a,s){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:s.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:s.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$1C,[["render",_sfc_render$1t]]),_sfc_main$1B={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:n}=this;Object.assign(this.$data,this.initialState()),this.$data.formData=e,this.$data.repeatableStages=n,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(n=>{this.form[n.name]="",n.conditional&&(this.conditionalFields[n.name]=!1)}),this.repeatableStages={},e.data.repeatableStages)for(let n=0;n<e.data.repeatableStages.length;n++)this.repeatableStages[e.data.repeatableStages[n]]={generations:0}})},getMessagingData(e,n){return Object.keys(this.messagingData).length>0?this.messagingData[n][e]:e==="validation"?{}:""},getQuestionLabel(e,n){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-${n+1}.question`]?this.labelsMap[`question-${n+1}.question`]:""},getQuestionHint(e,n){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-${n+1}.hint`]?this.labelsMap[`question-${n+1}.hint`]:""},getQuestionOptions(e,n){let t;if(e.isClone?t=e.originalNumber:t=n,e.element==="radio"){const{options:r}=e;for(let a=0;a<r.length;a++)r[a].text=this.labelsMap[`question-${t+1}.option-${a+1}`];return r}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,n){const t=this.errorFields.indexOf(e);t!==-1?(!n||n.length<1)&&this.errorFields.splice(t,1):n&&n.length>0&&this.errorFields.push(e)},getRadioValue(e,n){if(!n)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 r=t.values[n];if(t.multiplyByNumber)return r*t.multiplyByNumber;if(t.multiplyByAnswer){let a=this.form[t.multiplyByAnswer.question]||0;return a=Math.max(a,t.multiplyByAnswer.minimum),r*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),r*a}return r},getNumberValue(e,n){if(!n)return 0;let t;for(let r=0;r<this.formData.fields.length;r++)this.formData.fields[r].name===e&&(t=this.formData.fields[r]);if(t.multiplyByNumber)return parseInt(n,10)*t.multiplyByNumber;if(t.multiplyByAnswer){const r=this.form[t.multiplyByAnswer.question]||0;return parseInt(n,10)*r}if(t.multiplyByValue&&e!==t.multiplyByValue){const r=this.getNumberValue(t.multiplyByValue.question,this.form[t.multiplyByValue.question]);return parseInt(n,10)*r}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 n=this.formData.fields[e];switch(n.stage){case 1:case 3:this.transportKilos+=this.getFieldValue(n);break;case 2:this.accommodationKilos+=this.getFieldValue(n);break;case 4:this.foodKilos+=this.getFieldValue(n);break}}this.totalKilos=this.transportKilos+this.accommodationKilos+this.foodKilos},checkConditionalFields(){Object.keys(this.conditionalFields).forEach(e=>{const n=this.formData.fields.find(r=>r.name===e);let t=!0;Object.keys(n.conditional).forEach(r=>{const a=n.conditional[r];Array.isArray(a)?a.indexOf(this.form[r])===-1&&(t=!1):this.form[r]!==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 n=this.formData.fields[e];n.element==="radio"&&!this.form[n.name]?this.answerSet=!1:n.element==="number"&&!this.form[n.name]&&(this.form[n.name]=n.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 n=this.repeatableStages[this.activeStage].generations+1;for(let t=0;t<this.formData.fields.length;t++){const r=this.formData.fields[t];if(r.stage===this.activeStage&&!r.isClone){const a=JSON.parse(JSON.stringify(r));a.isClone=!0;const s=`${r.name}${n}`;a.name=s,a.originalNumber=t,this.form[s]="",this.formData.fields.push(a)}}this.repeatableStages[this.activeStage].generations=n}}},_hoisted_1$1d={class:"vs-carbon-calculator__wrapper"},_hoisted_2$P={key:1};function _sfc_render$1s(e,n,t,r,a,s){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"),b=vue.resolveComponent("VsRow"),C=vue.resolveComponent("VsContainer"),w=vue.resolveComponent("VsWarning");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1d,[vue.createVNode(C,{class:"vs-carbon-calculator","data-test":"vs-carbon-calculator"},{default:vue.withCtx(()=>[e.formData&&e.formData.fields?(vue.openBlock(),vue.createBlock(b,{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,[s.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(s.currentCategory),1)]),_:1})):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.formData.fields,(E,V)=>vue.withDirectives((vue.openBlock(),vue.createBlock(d,{ref_for:!0,ref:"questions",tabindex:"0",key:E.name,label:s.getQuestionLabel(E,V),"label-for":E.name,hint:s.getQuestionHint(E,V),"field-class":s.conditionalElementClass(E.name),"field-type":E.element,"field-name":E.name,options:s.getQuestionOptions(E,V),minimum:E.element==="number"?E.validation.min:0,maximum:E.element==="number"?E.validation.max:0,onUpdateFieldData:s.updateFieldData},null,8,["label","label-for","hint","field-class","field-type","field-name","options","minimum","maximum","onUpdateFieldData"])),[[vue.vShow,E.stage===e.activeStage]])),128))],512),[[vue.vShow,e.activeStage<=e.formData.fields.length]])])])):vue.createCommentVNode("",!0),s.isRepeatable(e.activeStage)?(vue.openBlock(),vue.createBlock(f,{key:2,class:"my-100",variant:"secondary",icon:"plus",onClick:n[0]||(n[0]=E=>s.duplicateCurrentStage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(s.activeStageRepeatable),1)]),_:1})):vue.createCommentVNode("",!0),s.currentTip?(vue.openBlock(),vue.createBlock(p,{key:3,tip:s.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":s.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:n[1]||(n[1]=E=>s.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:n[2]||(n[2]=E=>s.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:n[3]||(n[3]=E=>s.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:n[4]||(n[4]=E=>s.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:n[5]||(n[5]=E=>s.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(w,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.labelsMap.noJsMessage),1)]),_:1})])}const CarbonCalculator=_export_sfc(_sfc_main$1B,[["render",_sfc_render$1s]]),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$1A={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)/)},businessSupport:{type:Boolean,default:!1},isHomePage:{type:Boolean,default:!1}},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$t={key:3,class:"vs-stretched-link-card__badges","data-test":"vs-stretched-link-card__badges"};function _sfc_render$1r(e,n,t,r,a,s){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",s.stretchedLinkCardClasses]),"data-test":"vs-stretched-link-card",onClick:n[0]||(n[0]=(...p)=>s.emitShowModal&&s.emitShowModal(...p)),onKeypress:n[1]||(n[1]=(...p)=>s.emitShowModal&&s.emitShowModal(...p))},[s.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(s.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(s.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",s.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),s.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(s.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(s.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),s.showWarning!=="full"?(vue.openBlock(),vue.createElementBlock("div",{key:4,class:vue.normalizeClass(["card-body",t.videoId?"position-relative":""])},[t.videoId&&s.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:s.emitShowModal},{default:vue.withCtx(()=>[t.videoBtnText?(vue.openBlock(),vue.createElementBlock("span",_hoisted_1$1c,vue.toDisplayString(s.formattedVideoBtnText),1)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(s.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.businessSupport&&t.type==="video"?vue.renderSlot(e.$slots,"stretched-card-header",{key:1}):(vue.openBlock(),vue.createBlock(d,{key:2,href:t.link,type:t.businessSupport&&t.isHomePage?"default":t.type,class:vue.normalizeClass(["stretched-link",t.disabled?"stretched-link--disabled":""]),variant:s.theme==="dark"?"on-dark":"primary","data-test":"vs-stretched-link",disabled:t.disabled,tabindex:(t.videoId||t.disabled)&&!t.businessSupport?"-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$t,[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$1A,[["render",_sfc_render$1r]]),_sfc_main$1z={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$s={class:"vs-stretched-link-panels__days"},_hoisted_5$l={class:"vs-stretched-link-panels__panel","data-test":"vs-stretched-link-panel"},_hoisted_6$d={"data-test":"vs-stretched-link-panel__icon"};function _sfc_render$1q(e,n,t,r,a,s){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$s,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$d,vue.toDisplayString(t.transportName),1)])])}const VsStretchedLinkPanels=_export_sfc(_sfc_main$1z,[["render",_sfc_render$1q]]),_sfc_main$1y={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 n=parseInt(e,10);return this.visibleSlides.indexOf(n)>=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$1p(e,n,t,r,a,s){const i=vue.resolveComponent("VsStretchedLinkPanels"),l=vue.resolveComponent("VsStretchedLinkCard"),c=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(c,{cols:s.slideCols.xs,sm:s.slideCols.sm,lg:s.slideCols.md,xl:s.slideCols.lg,"data-test":"vs-carousel-slide","aria-disabled":!s.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([s.isVisible(t.slideIndex)?"vs-carousel-slide__card--active":"vs-carousel-slide__card--disabled","vs-carousel-slide__card"]),disabled:!s.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$1y,[["render",_sfc_render$1p]]),_sfc_main$1x={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$r={class:"visually-hidden"},_hoisted_5$k={class:"vs-checkbox__label"};function _sfc_render$1o(e,n,t,r,a,s){const i=vue.resolveComponent("BFormCheckbox");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-checkbox",s.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$r,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":n[0]||(n[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$1x,[["render",_sfc_render$1o]]),useCookiesStore=pinia.defineStore("cookies",()=>{const e=vue.ref([]),n=vue.ref(!1);function t(a){e.value=[],a.forEach(s=>{e.value.push(s)})}function r(a){n.value=a}return{allowedCookies:e,cookiesTestRun:n,setCookieArray:t,setTestRun:r}});function hashCode(){return Math.random().toString(36).substring(7)}class OneTrustVS{constructor(){Gt(this,"init",()=>{window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach)});Gt(this,"instaOT",(n,t,r,a,s=null)=>{console.log("insta");let i=this;this.checkThirdPartyLibrary("OneTrust",()=>{this.onetrustCookieCheck(n,l=>{if(l)i.setIframeSrc();else if(a){console.log("fallback",r),console.log("container",a);let c=Array.from(r.classList)[0],d;a.length>1?a.forEach((f,p)=>{d=a[p].querySelector(`.${c}`),d||i.showOneTrustFallback(n,t,r,a[p],s)}):(d=a.querySelector(`.${c}`),d||i.showOneTrustFallback(n,t,r,a,s))}}),window.OneTrust.OnConsentChanged(function(){i.onetrustCookieCheck(n,l=>{l&&(window.OneTrustEventBus.dispatchEvent("otCategory-approved"),i.hideOneTrustFallback(n),i.setIframeSrc())})})})});Gt(this,"showOneTrustFallback",(n,t,r,a,s=null)=>{console.log("showfallback");let i={visible:!1,fallback:r};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-${n}`),this.fallbacks.push({id:d.id,cat:n,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-${n}`),s?a.insertBefore(l,a.childNodes[s]):a.appendChild(l),this.fallbacks.push({id:l.id,cat:n}),i.visible=!0,this.setFBButtonListener(l)}});Gt(this,"onetrustCookieCheck",(n,t)=>{if(typeof window<"u")return t(window.OnetrustActiveGroups.includes(n))});Gt(this,"hideOneTrustFallback",n=>{this.fallbacks.map(r=>{if(r.cat===n&&document.getElementById(r.id)){document.getElementById(r.id).style.display="none";return}});const t=document.querySelectorAll(`.vscookies-${n}`);t.size>0&&t.map(r=>{r.style.display="none"})});Gt(this,"checkThirdPartyLibrary",(n,t)=>{let r=500,a=this;window.setTimeout(function(){window[n]?t(window[n]):a.checkThirdPartyLibrary(n,t)},r)});Gt(this,"setFBButtonListener",n=>{n.querySelector("#ot-sdk-btn").addEventListener("click",function(){window.OneTrust.ToggleInfoDisplay()})});Gt(this,"setIframeSrc",()=>{let n=document.querySelectorAll('iframe[data-src]:not([data-src=""])');n&&n.forEach(t=>{t.src=t.dataset.src,t.removeAttribute("data-src")})});this.fallbacks=[]}}let cookieStore=null;const _sfc_main$1w={data(){return{oneTrust:new OneTrustVS,activeGroups:""}},watch:{activeGroups(){const n=this.activeGroups.split(",").filter(t=>t!=="");cookieStore&&(cookieStore.setCookieArray(n),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$1n(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("span",_hoisted_1$18)}const CookieChecker=_export_sfc(_sfc_main$1w,[["render",_sfc_render$1n]]),_sfc_main$1v={name:"VsDescriptionList",status:"prototype",release:"0.0.1",provide(){return{inline:vue.computed(()=>this.inline)}},props:{inline:{type:Boolean,default:!1}}};function _sfc_render$1m(e,n,t,r,a,s){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$1v,[["render",_sfc_render$1m]]),_sfc_main$1u={name:"VsDescriptionListItem",status:"prototype",release:"0.0.1",components:{VsCol},inject:["inline"],props:{title:{type:Boolean,default:!1}}};function _sfc_render$1l(e,n,t,r,a,s){const i=vue.resolveComponent("VsCol");return vue.openBlock(),vue.createBlock(i,{tag:t.title?"dt":"dd",class:vue.normalizeClass({"list-inline-item":s.inline,"vs-description-list__detail":!t.title,"vs-description-list__detail--styled":!s.inline&&!t.title,"vs-description-list__term":t.title,"vs-description-list__term--styled":!s.inline&&t.title})},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["tag","class"])}const DescriptionListItem=_export_sfc(_sfc_main$1u,[["render",_sfc_render$1l],["__scopeId","data-v-66ca0ac6"]]),_sfc_main$1t={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$1k(e,n,t,r,a,s){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(s.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$1t,[["render",_sfc_render$1k]]),_sfc_main$1s={name:"VsDropdownItem",status:"prototype",release:"0.0.1",components:{BDropdownItem:bootstrapVueNext.BDropdownItem}};function _sfc_render$1j(e,n,t,r,a,s){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$1s,[["render",_sfc_render$1j]]),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(n=>{this.cookiesSet.indexOf(n)===-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$1r={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$1i(e,n,t,r,a,s){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"]()&&!s.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),s.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(s.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$1r,[["render",_sfc_render$1i]]);function createHydrationCleanup(){let e=[];return{cleanup:()=>{e=e.filter(r=>(r(),!1))},onCleanup:r=>{e.push(r)}}}function createHydrationPromise(e){let n=()=>{};const t=new Promise(a=>{n=()=>{e(),a()}});return{promise:t,resolvePromise:n,onResolvedPromise:a=>{t.then(a)}}}function trackDepsOnRender(e){const n=e.effect.fn,t=e.render;e.render=(...r)=>{e.effect.fn=()=>t(...r);const a=e.effect.run();return e.effect.fn=n,e.render=t,a}}const isFunction=e=>typeof e=="function",isObject=e=>e!==null&&typeof e=="object";function traverseChildren(e,n){if(vue.isVNode(e)&&(n(e),e.children!==null)){if(Array.isArray(e.children)){e.children.forEach(t=>traverseChildren(t,n));return}isObject(e.children)&&Object.keys(e.children).forEach(t=>{if(!isFunction(e.children[t]))return;const r=e.children[t]();if(Array.isArray(r)){r.forEach(a=>traverseChildren(a,n));return}traverseChildren(r,n)})}}function isAsyncWrapper(e){var n,t;return((n=e.type)==null?void 0:n.__asyncLoader)&&((t=e.type)==null?void 0:t.name)==="AsyncComponentWrapper"}function waitForAsyncComponents({subTree:e},n){const t=[];if(traverseChildren(e,r=>{isAsyncWrapper(r)&&t.push(r.type.__asyncLoader())}),t.length>0){Promise.all(t).then(n);return}n()}function ensureParentHasSubTreeEl(e){if(!e||!e.subTree)return;const n=e.subTree.el,t=e.u;e.u===null&&(e.u=[]),e.u.push(()=>{e.subTree.el===null&&(e.subTree.el=n),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 n=e.vnode.el!==null;if(e.vnode.type.__isLazilyHydrated=!0,!n)return{willPerformHydration:n,onHydrated:()=>{}};const{cleanup:t,onCleanup:r}=createHydrationCleanup(),{promise:a,resolvePromise:s,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:n,hydrate:s,onHydrated:l,onCleanup:r}}function useHydrateWhenIdle({willPerformHydration:e,hydrate:n,onCleanup:t},r=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)){n();return}const a=requestIdleCallback(()=>{n()},{timeout:r});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:n}){if(!e||e.el===null)return[];if(isElement(e.el))return[e.el];const t=[];if(n&&isFragmentStart(n.el)&&isFragmentEnd(n.anchor)){let r=e.el.nextSibling;for(;r;){if(r&&isElement(r)&&t.push(r),r===n.anchor)return t;r=r.nextSibling}}return t}function useHydrateOnInteraction({willPerformHydration:e,hydrate:n,onCleanup:t},r=["focus"]){if(!e)return;const a=vue.getCurrentInstance();if(!a||a.isMounted)throw new Error("useHydrateOnInteraction must be called from the setup method.");const s=vue.unref(r);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)){n();return}if(v===l)return;v=v.parentElement}return}i.forEach(v=>{p.includes(v)&&n()})};s.forEach(f=>{l.addEventListener(f,d,c)}),t(()=>{s.forEach(f=>{l.removeEventListener(f,d,c)})})})}function useHydrateWhenTriggered({willPerformHydration:e,hydrate:n,onCleanup:t},r){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(r)?r:()=>r,s=>{s&&n()},{immediate:!0});t(a)}const observers=new Map;function createHydrationObserver(e){const n=typeof IntersectionObserver<"u";if(!n)return{supported:n};const t=JSON.stringify(e);if(observers.has(t))return{supported:n,observer:observers.get(t)};const r=new IntersectionObserver(a=>{a.forEach(s=>{!(s.isIntersecting||s.intersectionRatio>0)||!s.target.hydrate||s.target.hydrate()})},e);return observers.set(t,r),{supported:n,observer:r}}function useHydrateWhenVisible({willPerformHydration:e,hydrate:n,onCleanup:t},r){if(!e)return;const a=vue.getCurrentInstance();if(!a||a.isMounted)throw new Error("useHydrateWhenVisible must be called from the setup method.");const{supported:s,observer:i}=createHydrationObserver(r);if(!s){n();return}vue.onMounted(()=>{const l=getRootElements(a);l.forEach(c=>{c.hydrate=n,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:n,emit:t}){const r=useLazyHydration();if(!r.willPerformHydration)return()=>normalizeSlot(n.default());if(r.onHydrated(()=>t("hydrated")),e.whenIdle&&useHydrateWhenIdle(r,e.whenIdle!==!0?e.whenIdle:void 0),e.whenVisible&&useHydrateWhenVisible(r,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(r,a)}return e.whenTriggered!==void 0&&useHydrateWhenTriggered(r,vue.toRef(e,"whenTriggered")),()=>normalizeSlot(n.default())}}),LazyHydrationWrapper$1=vue.markRaw(LazyHydrationWrapper),_sfc_main$1q={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$1h(e,n,t,r,a,s){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$1q,[["render",_sfc_render$1h]]),_sfc_main$1p={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$1g(e,n,t,r,a,s){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$1p,[["render",_sfc_render$1g]]),_sfc_main$1o={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$1f(e,n,t,r,a,s){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":s.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$1o,[["render",_sfc_render$1f]]),_sfc_main$1n={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$1e(e,n,t,r,a,s){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$1n,[["render",_sfc_render$1e]]),_sfc_main$1m={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$1d(e,n,t,r,a,s){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$1m,[["render",_sfc_render$1d]]),_sfc_main$1l={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$1c(e,n,t,r,a,s){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$1l,[["render",_sfc_render$1c]]),_sfc_main$1k={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$1b(e,n,t,r,a,s){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$1k,[["render",_sfc_render$1b]]),_sfc_main$1j={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$1a(e,n,t,r,a,s){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$1j,[["render",_sfc_render$1a]]);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 n(t){return t&&t.__esModule?t:{default:t}}e.exports=n,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 n(){return e.exports=n=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var s in a)({}).hasOwnProperty.call(a,s)&&(t[s]=a[s])}return t},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(null,arguments)}e.exports=n,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 n(t,r){if(t==null)return{};var a={};for(var s in t)if({}.hasOwnProperty.call(t,s)){if(r.includes(s))continue;a[s]=t[s]}return a}e.exports=n,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(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.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(n,t){n.super_=t,n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:inherits_browser$1.exports=function(n,t){n.super_=t;var r=function(){};r.prototype=t.prototype,n.prototype=new r,n.prototype.constructor=n}),inherits_browser$1.exports}var hasRequiredUtil$1;function requireUtil$1(){return hasRequiredUtil$1||(hasRequiredUtil$1=1,function(e){var n={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LfqqfcZAAAAACbkbPaHRZTIFpKZGAPZBDkwBKhe",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_29464_PXQWZGIBRNUKUSQG",COLORTERM:"truecolor",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"2HR07S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EXEPATH:"C:\\Program Files\\Git\\bin",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",GIT_ASKPASS:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\duncan.sanderson",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\duncan.sanderson",HOSTNAME:"2HR07S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LANG:"en_US.UTF-8",LOCALAPPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE_ENV:"production",NODE_PATH:"C:\\Users\\duncan.sanderson\\AppData\\npm",npm_config_user_agent:"yarn/4.3.1 npm/? node/v18.19.1 win32 x64",npm_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a\\node",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.7.2",NUMBER_OF_PROCESSORS:"8",OneDrive:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",OneDriveCommercial:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin",ORIGINAL_TEMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",PATH:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-75c6f032;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-5dadc7c5;C:\\Users\\duncan.sanderson\\.volta\\bin;C:\\Users\\duncan.sanderson\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",ProgramData:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",PYTHON:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_AGENT_PID:"972",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SSH_AUTH_SOCK:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp/ssh-zzwbzPFLwOHn/agent.971",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TERM:"xterm-256color",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.96.2",TMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"duncan.sanderson",USERPROFILE:"C:\\Users\\duncan.sanderson",VOLTA_HOME:"C:/Users/duncan.sanderson/.volta",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",VSCODE_GIT_ASKPASS_MAIN:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-4a2d75133c-sock",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/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(T){if(!A(T)){for(var M=[],G=0;G<arguments.length;G++)M.push(s(arguments[G]));return M.join(" ")}for(var G=1,ne=arguments,he=ne.length,B=String(T).replace(t,function(q){if(q==="%%")return"%";if(G>=he)return q;switch(q){case"%s":return String(ne[G++]);case"%d":return Number(ne[G++]);case"%j":try{return JSON.stringify(ne[G++])}catch{return"[Circular]"}default:return q}}),U=ne[G];G<he;U=ne[++G])w(U)||!R(U)?B+=" "+U:B+=" "+s(U);return B},e.deprecate=function(T,M){if(O(commonjsGlobal.process))return function(){return e.deprecate(T,M).apply(this,arguments)};if(process.noDeprecation===!0)return T;var G=!1;function ne(){if(!G){if(process.throwDeprecation)throw new Error(M);process.traceDeprecation?console.trace(M):console.error(M),G=!0}return T.apply(this,arguments)}return ne};var r={},a;e.debuglog=function(T){if(O(a)&&(a=n.NODE_DEBUG||""),T=T.toUpperCase(),!r[T])if(new RegExp("\\b"+T+"\\b","i").test(a)){var M=process.pid;r[T]=function(){var G=e.format.apply(e,arguments);console.error("%s %d: %s",T,M,G)}}else r[T]=function(){};return r[T]};function s(T,M){var G={seen:[],stylize:l};return arguments.length>=3&&(G.depth=arguments[2]),arguments.length>=4&&(G.colors=arguments[3]),C(M)?G.showHidden=M:M&&e._extend(G,M),O(G.showHidden)&&(G.showHidden=!1),O(G.depth)&&(G.depth=2),O(G.colors)&&(G.colors=!1),O(G.customInspect)&&(G.customInspect=!0),G.colors&&(G.stylize=i),d(G,T,G.depth)}e.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function i(T,M){var G=s.styles[M];return G?"\x1B["+s.colors[G][0]+"m"+T+"\x1B["+s.colors[G][1]+"m":T}function l(T,M){return T}function c(T){var M={};return T.forEach(function(G,ne){M[G]=!0}),M}function d(T,M,G){if(T.customInspect&&M&&z(M.inspect)&&M.inspect!==e.inspect&&!(M.constructor&&M.constructor.prototype===M)){var ne=M.inspect(G,T);return A(ne)||(ne=d(T,ne,G)),ne}var he=f(T,M);if(he)return he;var B=Object.keys(M),U=c(B);if(T.showHidden&&(B=Object.getOwnPropertyNames(M)),se(M)&&(B.indexOf("message")>=0||B.indexOf("description")>=0))return p(M);if(B.length===0){if(z(M)){var q=M.name?": "+M.name:"";return T.stylize("[Function"+q+"]","special")}if(I(M))return T.stylize(RegExp.prototype.toString.call(M),"regexp");if(Z(M))return T.stylize(Date.prototype.toString.call(M),"date");if(se(M))return p(M)}var oe="",ee=!1,le=["{","}"];if(b(M)&&(ee=!0,le=["[","]"]),z(M)){var ue=M.name?": "+M.name:"";oe=" [Function"+ue+"]"}if(I(M)&&(oe=" "+RegExp.prototype.toString.call(M)),Z(M)&&(oe=" "+Date.prototype.toUTCString.call(M)),se(M)&&(oe=" "+p(M)),B.length===0&&(!ee||M.length==0))return le[0]+oe+le[1];if(G<0)return I(M)?T.stylize(RegExp.prototype.toString.call(M),"regexp"):T.stylize("[Object]","special");T.seen.push(M);var te;return ee?te=v(T,M,G,U,B):te=B.map(function(ce){return m(T,M,G,U,ce,ee)}),T.seen.pop(),g(te,oe,le)}function f(T,M){if(O(M))return T.stylize("undefined","undefined");if(A(M)){var G="'"+JSON.stringify(M).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return T.stylize(G,"string")}if(V(M))return T.stylize(""+M,"number");if(C(M))return T.stylize(""+M,"boolean");if(w(M))return T.stylize("null","null")}function p(T){return"["+Error.prototype.toString.call(T)+"]"}function v(T,M,G,ne,he){for(var B=[],U=0,q=M.length;U<q;++U)fe(M,String(U))?B.push(m(T,M,G,ne,String(U),!0)):B.push("");return he.forEach(function(oe){oe.match(/^\d+$/)||B.push(m(T,M,G,ne,oe,!0))}),B}function m(T,M,G,ne,he,B){var U,q,oe;if(oe=Object.getOwnPropertyDescriptor(M,he)||{value:M[he]},oe.get?oe.set?q=T.stylize("[Getter/Setter]","special"):q=T.stylize("[Getter]","special"):oe.set&&(q=T.stylize("[Setter]","special")),fe(ne,he)||(U="["+he+"]"),q||(T.seen.indexOf(oe.value)<0?(w(G)?q=d(T,oe.value,null):q=d(T,oe.value,G-1),q.indexOf(`
|
|
186
186
|
`)>-1&&(B?q=q.split(`
|
|
187
187
|
`).map(function(ee){return" "+ee}).join(`
|
|
188
188
|
`).substr(2):q=`
|
|
@@ -191,24 +191,24 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
191
191
|
`))):q=T.stylize("[Circular]","special")),O(U)){if(B&&he.match(/^\d+$/))return q;U=JSON.stringify(""+he),U.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(U=U.substr(1,U.length-2),U=T.stylize(U,"name")):(U=U.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),U=T.stylize(U,"string"))}return U+": "+q}function g(T,M,G){var ne=T.reduce(function(he,B){return B.indexOf(`
|
|
192
192
|
`)>=0,he+B.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ne>60?G[0]+(M===""?"":M+`
|
|
193
193
|
`)+" "+T.join(`,
|
|
194
|
-
`)+" "+G[1]:G[0]+M+" "+T.join(", ")+" "+G[1]}function b(T){return Array.isArray(T)}e.isArray=b;function C(T){return typeof T=="boolean"}e.isBoolean=C;function w(T){return T===null}e.isNull=w;function E(T){return T==null}e.isNullOrUndefined=E;function V(T){return typeof T=="number"}e.isNumber=V;function A(T){return typeof T=="string"}e.isString=A;function $(T){return typeof T=="symbol"}e.isSymbol=$;function O(T){return T===void 0}e.isUndefined=O;function I(T){return L(T)&&Q(T)==="[object RegExp]"}e.isRegExp=I;function L(T){return typeof T=="object"&&T!==null}e.isObject=L;function Z(T){return L(T)&&Q(T)==="[object Date]"}e.isDate=Z;function se(T){return L(T)&&(Q(T)==="[object Error]"||T instanceof Error)}e.isError=se;function z(T){return typeof T=="function"}e.isFunction=z;function ie(T){return T===null||typeof T=="boolean"||typeof T=="number"||typeof T=="string"||typeof T=="symbol"||typeof T>"u"}e.isPrimitive=ie,e.isBuffer=requireIsBufferBrowser$1();function Q(T){return Object.prototype.toString.call(T)}function ae(T){return T<10?"0"+T.toString(10):T.toString(10)}var we=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function me(){var T=new Date,M=[ae(T.getHours()),ae(T.getMinutes()),ae(T.getSeconds())].join(":");return[T.getDate(),we[T.getMonth()],M].join(" ")}e.log=function(){console.log("%s - %s",me(),e.format.apply(e,arguments))},e.inherits=requireInherits_browser$1(),e._extend=function(T,M){if(!M||!L(M))return T;for(var G=Object.keys(M),ne=G.length;ne--;)T[G[ne]]=M[G[ne]];return T};function fe(T,M){return Object.prototype.hasOwnProperty.call(T,M)}}(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:"6LfqqfcZAAAAACbkbPaHRZTIFpKZGAPZBDkwBKhe",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_15348_CWGUUHKPCRTIGFCZ",COLORTERM:"truecolor",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"2HR07S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EXEPATH:"C:\\Program Files\\Git\\bin",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",GIT_ASKPASS:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\duncan.sanderson",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\duncan.sanderson",HOSTNAME:"2HR07S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LANG:"en_US.UTF-8",LOCALAPPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE_ENV:"production",NODE_PATH:"C:\\Users\\duncan.sanderson\\AppData\\npm",npm_config_user_agent:"yarn/4.3.1 npm/? node/v18.19.1 win32 x64",npm_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579\\node",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.7.1",NUMBER_OF_PROCESSORS:"8",OneDrive:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",OneDriveCommercial:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin",ORIGINAL_TEMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",PATH:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-274ceb4d;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-4df2ce3c;C:\\Users\\duncan.sanderson\\.volta\\bin;C:\\Users\\duncan.sanderson\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",ProgramData:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",PYTHON:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_AGENT_PID:"1838",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SSH_AUTH_SOCK:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp/ssh-uR4B1I3vN93q/agent.1837",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TERM:"xterm-256color",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.96.2",TMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"duncan.sanderson",USERPROFILE:"C:\\Users\\duncan.sanderson",VOLTA_HOME:"C:/Users/duncan.sanderson/.volta",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",VSCODE_GIT_ASKPASS_MAIN:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-4a2d75133c-sock",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/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"},n=requireUtil$1();function t(m,g){for(var b=[],C=0;C<m.length;C++){var w=m[C];!w||w==="."||(w===".."?b.length&&b[b.length-1]!==".."?b.pop():g&&b.push(".."):b.push(w))}return b}function r(m){for(var g=m.length-1,b=0;b<=g&&!m[b];b++);for(var C=g;C>=0&&!m[C];C--);return b===0&&C===g?m:b>C?[]:m.slice(b,C+1)}var a=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,s=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,i={};function l(m){var g=a.exec(m),b=(g[1]||"")+(g[2]||""),C=g[3]||"",w=s.exec(C),E=w[1],V=w[2],A=w[3];return[b,E,V,A]}function c(m){var g=a.exec(m),b=g[1]||"",C=!!b&&b[1]!==":";return{device:b,isUnc:C,isAbsolute:C||!!g[2],tail:g[3]}}function d(m){return"\\\\"+m.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}i.resolve=function(){for(var m="",g="",b=!1,C=arguments.length-1;C>=-1;C--){var w;if(C>=0?w=arguments[C]:m?(w=e["="+m],(!w||w.substr(0,3).toLowerCase()!==m.toLowerCase()+"\\")&&(w=m+"\\")):w=process.cwd(),n.isString(w)){if(!w)continue}else throw new TypeError("Arguments to path.resolve must be strings");var E=c(w),V=E.device,A=E.isUnc,$=E.isAbsolute,O=E.tail;if(!(V&&m&&V.toLowerCase()!==m.toLowerCase())&&(m||(m=V),b||(g=O+"\\"+g,b=$),m&&b))break}return A&&(m=d(m)),g=t(g.split(/[\\\/]+/),!b).join("\\"),m+(b?"\\":"")+g||"."},i.normalize=function(m){var g=c(m),b=g.device,C=g.isUnc,w=g.isAbsolute,E=g.tail,V=/[\\\/]$/.test(E);return E=t(E.split(/[\\\/]+/),!w).join("\\"),!E&&!w&&(E="."),E&&V&&(E+="\\"),C&&(b=d(b)),b+(w?"\\":"")+E},i.isAbsolute=function(m){return c(m).isAbsolute},i.join=function(){for(var m=[],g=0;g<arguments.length;g++){var b=arguments[g];if(!n.isString(b))throw new TypeError("Arguments to path.join must be strings");b&&m.push(b)}var C=m.join("\\");return/^[\\\/]{2}[^\\\/]/.test(m[0])||(C=C.replace(/^[\\\/]{2,}/,"\\")),i.normalize(C)},i.relative=function(m,g){m=i.resolve(m),g=i.resolve(g);for(var b=m.toLowerCase(),C=g.toLowerCase(),w=r(g.split("\\")),E=r(b.split("\\")),V=r(C.split("\\")),A=Math.min(E.length,V.length),$=A,O=0;O<A;O++)if(E[O]!==V[O]){$=O;break}if($==0)return g;for(var I=[],O=$;O<E.length;O++)I.push("..");return I=I.concat(w.slice($)),I.join("\\")},i._makeLong=function(m){if(!n.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),b=g[0],C=g[1];return!b&&!C?".":(C&&(C=C.substr(0,C.length-1)),b+C)},i.basename=function(m,g){var b=l(m)[2];return g&&b.substr(-1*g.length)===g&&(b=b.substr(0,b.length-g.length)),b},i.extname=function(m){return l(m)[3]},i.format=function(m){if(!n.isObject(m))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof m);var g=m.root||"";if(!n.isString(g))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof m.root);var b=m.dir,C=m.base||"";return b?b[b.length-1]===i.sep?b+C:b+i.sep+C:C},i.parse=function(m){if(!n.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,b=arguments.length-1;b>=-1&&!g;b--){var C=b>=0?arguments[b]:process.cwd();if(n.isString(C)){if(!C)continue}else throw new TypeError("Arguments to path.resolve must be strings");m=C+"/"+m,g=C[0]==="/"}return m=t(m.split("/"),!g).join("/"),(g?"/":"")+m||"."},p.normalize=function(m){var g=p.isAbsolute(m),b=m&&m[m.length-1]==="/";return m=t(m.split("/"),!g).join("/"),!m&&!g&&(m="."),m&&b&&(m+="/"),(g?"/":"")+m},p.isAbsolute=function(m){return m.charAt(0)==="/"},p.join=function(){for(var m="",g=0;g<arguments.length;g++){var b=arguments[g];if(!n.isString(b))throw new TypeError("Arguments to path.join must be strings");b&&(m?m+="/"+b:m+=b)}return p.normalize(m)},p.relative=function(m,g){m=p.resolve(m).substr(1),g=p.resolve(g).substr(1);for(var b=r(m.split("/")),C=r(g.split("/")),w=Math.min(b.length,C.length),E=w,V=0;V<w;V++)if(b[V]!==C[V]){E=V;break}for(var A=[],V=E;V<b.length;V++)A.push("..");return A=A.concat(C.slice(E)),A.join("/")},p._makeLong=function(m){return m},p.dirname=function(m){var g=v(m),b=g[0],C=g[1];return!b&&!C?".":(C&&(C=C.substr(0,C.length-1)),b+C)},p.basename=function(m,g){var b=v(m)[2];return g&&b.substr(-1*g.length)===g&&(b=b.substr(0,b.length-g.length)),b},p.extname=function(m){return v(m)[3]},p.format=function(m){if(!n.isObject(m))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof m);var g=m.root||"";if(!n.isString(g))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof m.root);var b=m.dir?m.dir+p.sep:"",C=m.base||"";return b+C},p.parse=function(m){if(!n.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:"6LfqqfcZAAAAACbkbPaHRZTIFpKZGAPZBDkwBKhe",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_15348_CWGUUHKPCRTIGFCZ",COLORTERM:"truecolor",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"2HR07S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EXEPATH:"C:\\Program Files\\Git\\bin",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",GIT_ASKPASS:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\duncan.sanderson",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\duncan.sanderson",HOSTNAME:"2HR07S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LANG:"en_US.UTF-8",LOCALAPPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE_ENV:"production",NODE_PATH:"C:\\Users\\duncan.sanderson\\AppData\\npm",npm_config_user_agent:"yarn/4.3.1 npm/? node/v18.19.1 win32 x64",npm_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579\\node",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.7.1",NUMBER_OF_PROCESSORS:"8",OneDrive:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",OneDriveCommercial:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin",ORIGINAL_TEMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",PATH:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-274ceb4d;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-4df2ce3c;C:\\Users\\duncan.sanderson\\.volta\\bin;C:\\Users\\duncan.sanderson\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",ProgramData:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",PYTHON:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_AGENT_PID:"1838",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SSH_AUTH_SOCK:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp/ssh-uR4B1I3vN93q/agent.1837",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TERM:"xterm-256color",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.96.2",TMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"duncan.sanderson",USERPROFILE:"C:\\Users\\duncan.sanderson",VOLTA_HOME:"C:/Users/duncan.sanderson/.volta",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",VSCODE_GIT_ASKPASS_MAIN:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-4a2d75133c-sock",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/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"},n=require$$0$1;return homedir=n.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,r){return r};var n=new Error().stack;return Error.prepareStackTrace=e,n[2].getFileName()}),caller}var pathParse={exports:{}},hasRequiredPathParse;function requirePathParse(){if(hasRequiredPathParse)return pathParse.exports;hasRequiredPathParse=1;var e=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,n={};function t(i){return e.exec(i).slice(1)}n.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 r=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,a={};function s(i){return r.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=s(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=n.parse,pathParse.exports.posix=a.parse,pathParse.exports.win32=n.parse,pathParse.exports}var nodeModulesPaths,hasRequiredNodeModulesPaths;function requireNodeModulesPaths(){if(hasRequiredNodeModulesPaths)return nodeModulesPaths;hasRequiredNodeModulesPaths=1;var e=requirePath(),n=e.parse||requirePathParse(),t=function(a,s){var i="/";/^([A-Za-z]:)/.test(a)?i="":/^\\\\/.test(a)&&(i="\\\\");for(var l=[a],c=n(a);c.dir!==l[l.length-1];)l.push(c.dir),c=n(c.dir);return l.reduce(function(d,f){return d.concat(s.map(function(p){return e.resolve(i,f,p)}))},[])};return nodeModulesPaths=function(a,s,i){var l=s&&s.moduleDirectory?[].concat(s.moduleDirectory):["node_modules"];if(s&&typeof s.paths=="function")return s.paths(i,a,function(){return t(a,l)},s);var c=t(a,l);return s&&s.paths?c.concat(s.paths):c},nodeModulesPaths}var normalizeOptions,hasRequiredNormalizeOptions;function requireNormalizeOptions(){if(hasRequiredNormalizeOptions)return normalizeOptions;hasRequiredNormalizeOptions=1;var e={node:"18.19.1",acorn:"8.10.0",ada:"2.7.2",ares:"1.20.1",base64:"0.5.0",brotli:"1.0.9",cjs_module_lexer:"1.2.2",cldr:"43.1",icu:"73.2",llhttp:"6.1.0",modules:"108",napi:"9",nghttp2:"1.57.0",nghttp3:"0.7.0",ngtcp2:"0.8.1",openssl:"3.0.13+quic",simdutf:"3.2.18",tz:"2023c",undici:"5.28.3",unicode:"15.0",uv:"1.44.2",uvwasi:"0.0.19",v8:"10.2.154.26-node.28",zlib:"1.2.13.1-motley"};const n=requirePath();return normalizeOptions=function(t,r){if(r=r||{},r.forceNodeResolution||!e.pnp)return r;const{findPnpApi:a}=require$$0$1,s=(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=n.join(v,"/"));const g=a(v);if(g===null)return;let b;try{b=g.resolveToUnqualified(`${m[1]}/package.json`,v,{considerBuiltins:!1})}catch{return null}if(b===null)throw new Error(`Assertion failed: The resolution thinks that "${m[1]}" is a Node builtin`);const C=n.dirname(b),w=typeof m[2]<"u"?n.join(C,m[2]):C;return{packagePath:C,unqualifiedPath:w}},i=(p,v)=>{for(let m=0;m<v.length;m++){const g=s(p,v[m]);if(g||m===v.length-1)return g}return null},l=Array.isArray(r.paths)?r.paths:[],c=(p,v,m,g)=>{const b=[v].concat(l),C=i(p,b);return C==null?m():[C.unqualifiedPath]},d=(p,v,m,g)=>{const b=[v].concat(l),C=i(p,b);if(C==null)return m().concat(l);let w=n.dirname(C.packagePath);return p.match(/^@[^/]+\//)&&(w=n.dirname(w)),[w]};let f=!1;return r.__skipPackageIterator||(r.packageIterator=function(p,v,m,g){f=!0;try{return c(p,v,m,g)}finally{f=!1}}),r.paths=function(p,v,m,g){return f?m().concat(l):d(p,v,m)},r},normalizeOptions}var implementation,hasRequiredImplementation;function requireImplementation(){if(hasRequiredImplementation)return implementation;hasRequiredImplementation=1;var e="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,t=Math.max,r="[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},s=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"||n.apply(d)!==r)throw new TypeError(e+d);for(var f=s(arguments,1),p,v=function(){if(this instanceof p){var w=d.apply(this,a(f,arguments));return Object(w)===w?w:this}return d.apply(c,a(f,arguments))},m=t(0,d.length-f.length),g=[],b=0;b<m;b++)g[b]="$"+b;if(p=Function("binder","return function ("+i(g,",")+"){ return binder.apply(this,arguments); }")(v),d.prototype){var C=function(){};C.prototype=d.prototype,p.prototype=new C,C.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,n=Object.prototype.hasOwnProperty,t=requireFunctionBind();return hasown=t.call(e,n),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"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:smalloc$1,"node:sqlite":[">= 22.13 && < 23",">= 23.4"],_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"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","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:"18.19.1",acorn:"8.10.0",ada:"2.7.2",ares:"1.20.1",base64:"0.5.0",brotli:"1.0.9",cjs_module_lexer:"1.2.2",cldr:"43.1",icu:"73.2",llhttp:"6.1.0",modules:"108",napi:"9",nghttp2:"1.57.0",nghttp3:"0.7.0",ngtcp2:"0.8.1",openssl:"3.0.13+quic",simdutf:"3.2.18",tz:"2023c",undici:"5.28.3",unicode:"15.0",uv:"1.44.2",uvwasi:"0.0.19",v8:"10.2.154.26-node.28",zlib:"1.2.13.1-motley"},n=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 r(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.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(r(c,l[d]))return!0;return!1}return r(c,l)}var s=require$$1$1;return isCoreModule=function(l,c){return n(s,l)&&a(c,s[l])},isCoreModule}var async,hasRequiredAsync;function requireAsync(){if(hasRequiredAsync)return async;hasRequiredAsync=1;var e=require$$0$1,n=requireHomedir(),t=requirePath(),r=requireCaller(),a=requireNodeModulesPaths(),s=requireNormalizeOptions(),i=requireIsCoreModule(),l=e.realpath,c=n(),d=function(){return[t.join(c,".node_modules"),t.join(c,".node_libraries")]},f=function(w,E){e.stat(w,function(V,A){return V?V.code==="ENOENT"||V.code==="ENOTDIR"?E(null,!1):E(V):E(null,A.isFile()||A.isFIFO())})},p=function(w,E){e.stat(w,function(V,A){return V?V.code==="ENOENT"||V.code==="ENOTDIR"?E(null,!1):E(V):E(null,A.isDirectory())})},v=function(w,E){l(w,function(V,A){V&&V.code!=="ENOENT"?E(V):E(null,V?w:A)})},m=function(w,E,V,A){V&&V.preserveSymlinks===!1?w(E,A):A(null,E)},g=function(w,E,V){w(E,function(A,$){if(A)V(A);else try{var O=JSON.parse($);V(null,O)}catch{V(null)}})},b=function(w,E,V){for(var A=a(E,V,w),$=0;$<A.length;$++)A[$]=t.join(A[$],w);return A};return async=function(w,E,V){var A=V,$=E;if(typeof E=="function"&&(A=$,$={}),typeof w!="string"){var O=new TypeError("Path must be a string.");return process.nextTick(function(){A(O)})}$=s(w,$);var I=$.isFile||f,L=$.isDirectory||p,Z=$.readFile||e.readFile,se=$.realpath||v,z=$.readPackage||g;if($.readFile&&$.readPackage){var ie=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){A(ie)})}var Q=$.packageIterator,ae=$.extensions||[".js"],we=$.includeCoreModules!==!1,me=$.basedir||t.dirname(r()),fe=$.filename||me;$.paths=$.paths||d();var T=t.resolve(me);m(se,T,$,function(ee,le){ee?A(ee):G(le)});var M;function G(ee){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(w))M=t.resolve(ee,w),(w==="."||w===".."||w.slice(-1)==="/")&&(M+="/"),/\/$/.test(w)&&M===ee?U(M,$.package,ne):he(M,$.package,ne);else{if(we&&i(w))return A(null,w);oe(w,ee,function(le,ue,te){if(le)A(le);else{if(ue)return m(se,ue,$,function(ge,Se){ge?A(ge):A(null,Se,te)});var ce=new Error("Cannot find module '"+w+"' from '"+fe+"'");ce.code="MODULE_NOT_FOUND",A(ce)}})}}function ne(ee,le,ue){ee?A(ee):le?A(null,le,ue):U(M,function(te,ce,ge){if(te)A(te);else if(ce)m(se,ce,$,function(ye,Te){ye?A(ye):A(null,Te,ge)});else{var Se=new Error("Cannot find module '"+w+"' from '"+fe+"'");Se.code="MODULE_NOT_FOUND",A(Se)}})}function he(ee,le,ue){var te=le,ce=ue;typeof te=="function"&&(ce=te,te=void 0);var ge=[""].concat(ae);Se(ge,ee,te);function Se(ye,Te,Oe){if(ye.length===0)return ce(null,void 0,Oe);var Ue=Te+ye[0],ze=Oe;ze?H(null,ze):B(t.dirname(Ue),H);function H(De,Ze,Ke){if(ze=Ze,De)return ce(De);if(Ke&&ze&&$.pathFilter){var Et=t.relative(Ke,Ue),$t=Et.slice(0,Et.length-ye[0].length),en=$.pathFilter(ze,Te,$t);if(en)return Se([""].concat(ae.slice()),t.resolve(Ke,en),ze)}I(Ue,Qe)}function Qe(De,Ze){if(De)return ce(De);if(Ze)return ce(null,Ue,ze);Se(ye.slice(1),Te,ze)}}}function B(ee,le){if(ee===""||ee==="/"||/^\w:[/\\]*$/.test(ee)||/[/\\]node_modules[/\\]*$/.test(ee))return le(null);m(se,ee,$,function(ue,te){if(ue)return B(t.dirname(ee),le);var ce=t.join(te,"package.json");I(ce,function(ge,Se){if(!Se)return B(t.dirname(ee),le);z(Z,ce,function(ye,Te){ye&&le(ye);var Oe=Te;Oe&&$.packageFilter&&(Oe=$.packageFilter(Oe,ce)),le(null,Oe,ee)})})})}function U(ee,le,ue){var te=ue,ce=le;typeof ce=="function"&&(te=ce,ce=$.package),m(se,ee,$,function(ge,Se){if(ge)return te(ge);var ye=t.join(Se,"package.json");I(ye,function(Te,Oe){if(Te)return te(Te);if(!Oe)return he(t.join(ee,"index"),ce,te);z(Z,ye,function(Ue,ze){if(Ue)return te(Ue);var H=ze;if(H&&$.packageFilter&&(H=$.packageFilter(H,ye)),H&&H.main){if(typeof H.main!="string"){var Qe=new TypeError("package “"+H.name+"” `main` must be a string");return Qe.code="INVALID_PACKAGE_MAIN",te(Qe)}(H.main==="."||H.main==="./")&&(H.main="index"),he(t.resolve(ee,H.main),H,function(De,Ze,Ke){if(De)return te(De);if(Ze)return te(null,Ze,Ke);if(!Ke)return he(t.join(ee,"index"),Ke,te);var Et=t.resolve(ee,Ke.main);U(Et,Ke,function($t,en,Wt){if($t)return te($t);if(en)return te(null,en,Wt);he(t.join(ee,"index"),Wt,te)})});return}he(t.join(ee,"/index"),H,te)})})})}function q(ee,le){if(le.length===0)return ee(null,void 0);var ue=le[0];L(t.dirname(ue),te);function te(Se,ye){if(Se)return ee(Se);if(!ye)return q(ee,le.slice(1));he(ue,$.package,ce)}function ce(Se,ye,Te){if(Se)return ee(Se);if(ye)return ee(null,ye,Te);U(ue,$.package,ge)}function ge(Se,ye,Te){if(Se)return ee(Se);if(ye)return ee(null,ye,Te);q(ee,le.slice(1))}}function oe(ee,le,ue){var te=function(){return b(ee,le,$)};q(ue,Q?Q(ee,le,te,$):te())}},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"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc,"node:sqlite":">= 23.4",_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"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","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(),n=require$$1,t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=e(r));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(),n=require$$0$1,t=requirePath(),r=requireHomedir(),a=requireCaller(),s=requireNodeModulesPaths(),i=requireNormalizeOptions(),l=n.realpathSync,c=r(),d=function(){return[t.join(c,".node_modules"),t.join(c,".node_libraries")]},f=function(w){try{var E=n.statSync(w,{throwIfNoEntry:!1})}catch(V){if(V&&(V.code==="ENOENT"||V.code==="ENOTDIR"))return!1;throw V}return!!E&&(E.isFile()||E.isFIFO())},p=function(w){try{var E=n.statSync(w,{throwIfNoEntry:!1})}catch(V){if(V&&(V.code==="ENOENT"||V.code==="ENOTDIR"))return!1;throw V}return!!E&&E.isDirectory()},v=function(w){try{return l(w)}catch(E){if(E.code!=="ENOENT")throw E}return w},m=function(w,E,V){return V&&V.preserveSymlinks===!1?w(E):E},g=function(w,E){var V=w(E);try{var A=JSON.parse(V);return A}catch{}},b=function(w,E,V){for(var A=s(E,V,w),$=0;$<A.length;$++)A[$]=t.join(A[$],w);return A};return sync=function(w,E){if(typeof w!="string")throw new TypeError("Path must be a string.");var V=i(w,E),A=V.isFile||f,$=V.readFileSync||n.readFileSync,O=V.isDirectory||p,I=V.realpathSync||v,L=V.readPackageSync||g;if(V.readFileSync&&V.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var Z=V.packageIterator,se=V.extensions||[".js"],z=V.includeCoreModules!==!1,ie=V.basedir||t.dirname(a()),Q=V.filename||ie;V.paths=V.paths||d();var ae=m(I,t.resolve(ie),V);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(w)){var we=t.resolve(ae,w);(w==="."||w===".."||w.slice(-1)==="/")&&(we+="/");var me=M(we)||ne(we);if(me)return m(I,me,V)}else{if(z&&e(w))return w;var fe=he(w,ae);if(fe)return m(I,fe,V)}var T=new Error("Cannot find module '"+w+"' from '"+Q+"'");throw T.code="MODULE_NOT_FOUND",T;function M(B){var U=G(t.dirname(B));if(U&&U.dir&&U.pkg&&V.pathFilter){var q=t.relative(U.dir,B),oe=V.pathFilter(U.pkg,B,q);oe&&(B=t.resolve(U.dir,oe))}if(A(B))return B;for(var ee=0;ee<se.length;ee++){var le=B+se[ee];if(A(le))return le}}function G(B){if(!(B===""||B==="/")&&!/^\w:[/\\]*$/.test(B)&&!/[/\\]node_modules[/\\]*$/.test(B)){var U=t.join(m(I,B,V),"package.json");if(!A(U))return G(t.dirname(B));var q=L($,U);return q&&V.packageFilter&&(q=V.packageFilter(q,B)),{pkg:q,dir:B}}}function ne(B){var U=t.join(m(I,B,V),"/package.json");if(A(U)){try{var q=L($,U)}catch{}if(q&&V.packageFilter&&(q=V.packageFilter(q,B)),q&&q.main){if(typeof q.main!="string"){var oe=new TypeError("package “"+q.name+"” `main` must be a string");throw oe.code="INVALID_PACKAGE_MAIN",oe}(q.main==="."||q.main==="./")&&(q.main="index");try{var ee=M(t.resolve(B,q.main));if(ee)return ee;var le=ne(t.resolve(B,q.main));if(le)return le}catch{}}}return M(t.join(B,"/index"))}function he(B,U){for(var q=function(){return b(B,U,V)},oe=Z?Z(B,U,q,V):q(),ee=0;ee<oe.length;ee++){var le=oe[ee];if(O(t.dirname(le))){var ue=M(le);if(ue)return ue;var te=ne(le);if(te)return te}}}},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(),n=require$$0$1,t=require$$0$1,r=(a,s,i)=>{if(typeof a!="string")throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof a}\``);if(typeof s!="string")throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof s}\``);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=()=>n._resolveFilename(s,{id:l,filename:l,paths:n._nodeModulePaths(a)});if(i)try{return c()}catch{return null}return c()};return resolveFrom.exports=(a,s)=>r(a,s),resolveFrom.exports.silent=(a,s)=>r(a,s,!0),resolveFrom.exports}var callsites={exports:{}},hasRequiredCallsites;function requireCallsites(){if(hasRequiredCallsites)return callsites.exports;hasRequiredCallsites=1;const e=()=>{const n=Error.prepareStackTrace;Error.prepareStackTrace=(r,a)=>a;const t=new Error().stack.slice(1);return Error.prepareStackTrace=n,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=n=>{const t=e();if(!n)return t[2].getFileName();let r=!1;t.shift();for(const a of t){const s=a.getFileName();if(typeof s=="string"){if(s===n){r=!0;continue}if(s!=="module.js"&&r&&s!==n)return s}}},parentModule}var importFresh,hasRequiredImportFresh;function requireImportFresh(){if(hasRequiredImportFresh)return importFresh;hasRequiredImportFresh=1;const e=requirePath(),n=requireResolveFrom(),t=requireParentModule();return importFresh=r=>{if(typeof r!="string")throw new TypeError("Expected a string");const a=t(__filename),s=a?e.dirname(a):__dirname,i=n(s,r),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 n={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var a=42;n[t]=a;for(var s in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var i=Object.getOwnPropertySymbols(n);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(n,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(n,t);if(l.value!==a||l.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 esObjectAtoms,hasRequiredEsObjectAtoms;function requireEsObjectAtoms(){return hasRequiredEsObjectAtoms||(hasRequiredEsObjectAtoms=1,esObjectAtoms=Object),esObjectAtoms}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 abs,hasRequiredAbs;function requireAbs(){return hasRequiredAbs||(hasRequiredAbs=1,abs=Math.abs),abs}var floor,hasRequiredFloor;function requireFloor(){return hasRequiredFloor||(hasRequiredFloor=1,floor=Math.floor),floor}var max,hasRequiredMax;function requireMax(){return hasRequiredMax||(hasRequiredMax=1,max=Math.max),max}var min,hasRequiredMin;function requireMin(){return hasRequiredMin||(hasRequiredMin=1,min=Math.min),min}var pow,hasRequiredPow;function requirePow(){return hasRequiredPow||(hasRequiredPow=1,pow=Math.pow),pow}var round,hasRequiredRound;function requireRound(){return hasRequiredRound||(hasRequiredRound=1,round=Math.round),round}var _isNaN,hasRequired_isNaN;function require_isNaN(){return hasRequired_isNaN||(hasRequired_isNaN=1,_isNaN=Number.isNaN||function(n){return n!==n}),_isNaN}var sign,hasRequiredSign;function requireSign(){if(hasRequiredSign)return sign;hasRequiredSign=1;var e=require_isNaN();return sign=function(t){return e(t)||t===0?t:t<0?-1:1},sign}var gOPD,hasRequiredGOPD;function requireGOPD(){return hasRequiredGOPD||(hasRequiredGOPD=1,gOPD=Object.getOwnPropertyDescriptor),gOPD}var gopd,hasRequiredGopd;function requireGopd(){if(hasRequiredGopd)return gopd;hasRequiredGopd=1;var e=requireGOPD();if(e)try{e([],"length")}catch{e=null}return gopd=e,gopd}var esDefineProperty,hasRequiredEsDefineProperty;function requireEsDefineProperty(){if(hasRequiredEsDefineProperty)return esDefineProperty;hasRequiredEsDefineProperty=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return esDefineProperty=e,esDefineProperty}var hasSymbols,hasRequiredHasSymbols;function requireHasSymbols(){if(hasRequiredHasSymbols)return hasSymbols;hasRequiredHasSymbols=1;var e=typeof Symbol<"u"&&Symbol,n=requireShams$1();return hasSymbols=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()},hasSymbols}var Reflect_getPrototypeOf,hasRequiredReflect_getPrototypeOf;function requireReflect_getPrototypeOf(){return hasRequiredReflect_getPrototypeOf||(hasRequiredReflect_getPrototypeOf=1,Reflect_getPrototypeOf=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Reflect_getPrototypeOf}var Object_getPrototypeOf,hasRequiredObject_getPrototypeOf;function requireObject_getPrototypeOf(){if(hasRequiredObject_getPrototypeOf)return Object_getPrototypeOf;hasRequiredObject_getPrototypeOf=1;var e=requireEsObjectAtoms();return Object_getPrototypeOf=e.getPrototypeOf||null,Object_getPrototypeOf}var functionCall,hasRequiredFunctionCall;function requireFunctionCall(){return hasRequiredFunctionCall||(hasRequiredFunctionCall=1,functionCall=Function.prototype.call),functionCall}var functionApply,hasRequiredFunctionApply;function requireFunctionApply(){return hasRequiredFunctionApply||(hasRequiredFunctionApply=1,functionApply=Function.prototype.apply),functionApply}var reflectApply,hasRequiredReflectApply;function requireReflectApply(){return hasRequiredReflectApply||(hasRequiredReflectApply=1,reflectApply=typeof Reflect<"u"&&Reflect&&Reflect.apply),reflectApply}var actualApply,hasRequiredActualApply;function requireActualApply(){if(hasRequiredActualApply)return actualApply;hasRequiredActualApply=1;var e=requireFunctionBind(),n=requireFunctionApply(),t=requireFunctionCall(),r=requireReflectApply();return actualApply=r||e.call(t,n),actualApply}var callBindApplyHelpers,hasRequiredCallBindApplyHelpers;function requireCallBindApplyHelpers(){if(hasRequiredCallBindApplyHelpers)return callBindApplyHelpers;hasRequiredCallBindApplyHelpers=1;var e=requireFunctionBind(),n=requireType(),t=requireFunctionCall(),r=requireActualApply();return callBindApplyHelpers=function(s){if(s.length<1||typeof s[0]!="function")throw new n("a function is required");return r(e,t,s)},callBindApplyHelpers}var get,hasRequiredGet;function requireGet(){if(hasRequiredGet)return get;hasRequiredGet=1;var e=requireCallBindApplyHelpers(),n=requireGopd(),t;try{t=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var r=!!t&&n&&n(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;return get=r&&typeof r.get=="function"?e([r.get]):typeof s=="function"?function(l){return s(l==null?l:a(l))}:!1,get}var getProto,hasRequiredGetProto;function requireGetProto(){if(hasRequiredGetProto)return getProto;hasRequiredGetProto=1;var e=requireReflect_getPrototypeOf(),n=requireObject_getPrototypeOf(),t=requireGet();return getProto=e?function(a){return e(a)}:n?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return n(a)}:t?function(a){return t(a)}:null,getProto}var getIntrinsic,hasRequiredGetIntrinsic;function requireGetIntrinsic(){if(hasRequiredGetIntrinsic)return getIntrinsic;hasRequiredGetIntrinsic=1;var e,n=requireEsObjectAtoms(),t=requireEsErrors(),r=require_eval(),a=requireRange(),s=requireRef(),i=requireSyntax(),l=requireType(),c=requireUri(),d=requireAbs(),f=requireFloor(),p=requireMax(),v=requireMin(),m=requirePow(),g=requireRound(),b=requireSign(),C=Function,w=function(ue){try{return C('"use strict"; return ('+ue+").constructor;")()}catch{}},E=requireGopd(),V=requireEsDefineProperty(),A=function(){throw new l},$=E?function(){try{return arguments.callee,A}catch{try{return E(arguments,"callee").get}catch{return A}}}():A,O=requireHasSymbols()(),I=requireGetProto(),L=requireObject_getPrototypeOf(),Z=requireReflect_getPrototypeOf(),se=requireFunctionApply(),z=requireFunctionCall(),ie={},Q=typeof Uint8Array>"u"||!I?e:I(Uint8Array),ae={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":O&&I?I([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":ie,"%AsyncGenerator%":ie,"%AsyncGeneratorFunction%":ie,"%AsyncIteratorPrototype%":ie,"%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%":t,"%eval%":eval,"%EvalError%":r,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":C,"%GeneratorFunction%":ie,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&I?I(I([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!O||!I?e:I(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!O||!I?e:I(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&I?I(""[Symbol.iterator]()):e,"%Symbol%":O?Symbol:e,"%SyntaxError%":i,"%ThrowTypeError%":$,"%TypedArray%":Q,"%TypeError%":l,"%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%":c,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":z,"%Function.prototype.apply%":se,"%Object.defineProperty%":V,"%Object.getPrototypeOf%":L,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":v,"%Math.pow%":m,"%Math.round%":g,"%Math.sign%":b,"%Reflect.getPrototypeOf%":Z};if(I)try{null.error}catch(ue){var we=I(I(ue));ae["%Error.prototype%"]=we}var me=function ue(te){var ce;if(te==="%AsyncFunction%")ce=w("async function () {}");else if(te==="%GeneratorFunction%")ce=w("function* () {}");else if(te==="%AsyncGeneratorFunction%")ce=w("async function* () {}");else if(te==="%AsyncGenerator%"){var ge=ue("%AsyncGeneratorFunction%");ge&&(ce=ge.prototype)}else if(te==="%AsyncIteratorPrototype%"){var Se=ue("%AsyncGenerator%");Se&&I&&(ce=I(Se.prototype))}return ae[te]=ce,ce},fe={__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"]},T=requireFunctionBind(),M=requireHasown(),G=T.call(z,Array.prototype.concat),ne=T.call(se,Array.prototype.splice),he=T.call(z,String.prototype.replace),B=T.call(z,String.prototype.slice),U=T.call(z,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,oe=/\\(\\)?/g,ee=function(te){var ce=B(te,0,1),ge=B(te,-1);if(ce==="%"&&ge!=="%")throw new i("invalid intrinsic syntax, expected closing `%`");if(ge==="%"&&ce!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var Se=[];return he(te,q,function(ye,Te,Oe,Ue){Se[Se.length]=Oe?he(Ue,oe,"$1"):Te||ye}),Se},le=function(te,ce){var ge=te,Se;if(M(fe,ge)&&(Se=fe[ge],ge="%"+Se[0]+"%"),M(ae,ge)){var ye=ae[ge];if(ye===ie&&(ye=me(ge)),typeof ye>"u"&&!ce)throw new l("intrinsic "+te+" exists, but is not available. Please file an issue!");return{alias:Se,name:ge,value:ye}}throw new i("intrinsic "+te+" does not exist!")};return getIntrinsic=function(te,ce){if(typeof te!="string"||te.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ce!="boolean")throw new l('"allowMissing" argument must be a boolean');if(U(/^%?[^%]*%?$/,te)===null)throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ge=ee(te),Se=ge.length>0?ge[0]:"",ye=le("%"+Se+"%",ce),Te=ye.name,Oe=ye.value,Ue=!1,ze=ye.alias;ze&&(Se=ze[0],ne(ge,G([0,1],ze)));for(var H=1,Qe=!0;H<ge.length;H+=1){var De=ge[H],Ze=B(De,0,1),Ke=B(De,-1);if((Ze==='"'||Ze==="'"||Ze==="`"||Ke==='"'||Ke==="'"||Ke==="`")&&Ze!==Ke)throw new i("property names with quotes must have matching quotes");if((De==="constructor"||!Qe)&&(Ue=!0),Se+="."+De,Te="%"+Se+"%",M(ae,Te))Oe=ae[Te];else if(Oe!=null){if(!(De in Oe)){if(!ce)throw new l("base intrinsic for "+te+" exists, but the property is not available.");return}if(E&&H+1>=ge.length){var Et=E(Oe,De);Qe=!!Et,Qe&&"get"in Et&&!("originalValue"in Et.get)?Oe=Et.get:Oe=Oe[De]}else Qe=M(Oe,De),Oe=Oe[De];Qe&&!Ue&&(ae[Te]=Oe)}}return Oe},getIntrinsic}var callBound,hasRequiredCallBound;function requireCallBound(){if(hasRequiredCallBound)return callBound;hasRequiredCallBound=1;var e=requireGetIntrinsic(),n=requireCallBindApplyHelpers(),t=n([e("%String.prototype.indexOf%")]);return callBound=function(a,s){var i=e(a,!!s);return typeof i=="function"&&t(a,".prototype.")>-1?n([i]):i},callBound}var isArguments,hasRequiredIsArguments;function requireIsArguments(){if(hasRequiredIsArguments)return isArguments;hasRequiredIsArguments=1;var e=requireShams()(),n=requireCallBound(),t=n("Object.prototype.toString"),r=function(l){return e&&l&&typeof l=="object"&&Symbol.toStringTag in l?!1:t(l)==="[object Arguments]"},a=function(l){return r(l)?!0:l!==null&&typeof l=="object"&&"length"in l&&typeof l.length=="number"&&l.length>=0&&t(l)!=="[object Array]"&&"callee"in l&&t(l.callee)==="[object Function]"},s=function(){return r(arguments)}();return r.isLegacyArguments=a,isArguments=s?r:a,isArguments}var isRegex,hasRequiredIsRegex;function requireIsRegex(){if(hasRequiredIsRegex)return isRegex;hasRequiredIsRegex=1;var e=requireCallBound(),n=requireShams()(),t=requireHasown(),r=requireGopd(),a;if(n){var s=e("RegExp.prototype.exec"),i={},l=function(){throw i},c={toString:l,valueOf:l};typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=l),a=function(v){if(!v||typeof v!="object")return!1;var m=r(v,"lastIndex"),g=m&&t(m,"value");if(!g)return!1;try{s(v,c)}catch(b){return b===i}}}else{var d=e("Object.prototype.toString"),f="[object RegExp]";a=function(v){return!v||typeof v!="object"&&typeof v!="function"?!1:d(v)===f}}return isRegex=a,isRegex}var safeRegexTest,hasRequiredSafeRegexTest;function requireSafeRegexTest(){if(hasRequiredSafeRegexTest)return safeRegexTest;hasRequiredSafeRegexTest=1;var e=requireCallBound(),n=requireIsRegex(),t=e("RegExp.prototype.exec"),r=requireType();return safeRegexTest=function(s){if(!n(s))throw new r("`regex` must be a RegExp");return function(l){return t(s,l)!==null}},safeRegexTest}var isGeneratorFunction,hasRequiredIsGeneratorFunction;function requireIsGeneratorFunction(){if(hasRequiredIsGeneratorFunction)return isGeneratorFunction;hasRequiredIsGeneratorFunction=1;var e=requireCallBound(),n=requireSafeRegexTest(),t=n(/^\s*(?:function)?\*/),r=requireShams()(),a=requireGetProto(),s=e("Object.prototype.toString"),i=e("Function.prototype.toString"),l=function(){if(!r)return!1;try{return Function("return function*() {}")()}catch{}},c;return isGeneratorFunction=function(f){if(typeof f!="function")return!1;if(t(i(f)))return!0;if(!r){var p=s(f);return p==="[object GeneratorFunction]"}if(!a)return!1;if(typeof c>"u"){var v=l();c=v?a(v):!1}return a(f)===c},isGeneratorFunction}var isCallable,hasRequiredIsCallable;function requireIsCallable(){if(hasRequiredIsCallable)return isCallable;hasRequiredIsCallable=1;var e=Function.prototype.toString,n=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,t,r;if(typeof n=="function"&&typeof Object.defineProperty=="function")try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},n(function(){throw 42},null,t)}catch(E){E!==r&&(n=null)}else n=null;var a=/^\s*class\b/,s=function(V){try{var A=e.call(V);return a.test(A)}catch{return!1}},i=function(V){try{return s(V)?!1:(e.call(V),!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,b=!(0 in[,]),C=function(){return!1};if(typeof document=="object"){var w=document.all;l.call(w)===l.call(document.all)&&(C=function(V){if((b||!V)&&(typeof V>"u"||typeof V=="object"))try{var A=l.call(V);return(A===p||A===v||A===m||A===c)&&V("")==null}catch{}return!1})}return isCallable=n?function(V){if(C(V))return!0;if(!V||typeof V!="function"&&typeof V!="object")return!1;try{n(V,null,t)}catch(A){if(A!==r)return!1}return!s(V)&&i(V)}:function(V){if(C(V))return!0;if(!V||typeof V!="function"&&typeof V!="object")return!1;if(g)return i(V);if(s(V))return!1;var A=l.call(V);return A!==d&&A!==f&&!/^\[object HTML/.test(A)?!1:i(V)},isCallable}var forEach_1,hasRequiredForEach;function requireForEach(){if(hasRequiredForEach)return forEach_1;hasRequiredForEach=1;var e=requireIsCallable(),n=Object.prototype.toString,t=Object.prototype.hasOwnProperty,r=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)},s=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),n.call(c)==="[object Array]"?r(c,d,p):typeof c=="string"?a(c,d,p):s(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(),n=typeof globalThis>"u"?commonjsGlobal:globalThis;return availableTypedArrays=function(){for(var r=[],a=0;a<e.length;a++)typeof n[e[a]]=="function"&&(r[r.length]=e[a]);return r},availableTypedArrays}var callBind={exports:{}},defineDataProperty,hasRequiredDefineDataProperty;function requireDefineDataProperty(){if(hasRequiredDefineDataProperty)return defineDataProperty;hasRequiredDefineDataProperty=1;var e=requireEsDefineProperty(),n=requireSyntax(),t=requireType(),r=requireGopd();return defineDataProperty=function(s,i,l){if(!s||typeof s!="object"&&typeof s!="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=!!r&&r(s,i);if(e)e(s,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)s[i]=l;else throw new n("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(),n=function(){return!!e};return n.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},hasPropertyDescriptors_1=n,hasPropertyDescriptors_1}var setFunctionLength,hasRequiredSetFunctionLength;function requireSetFunctionLength(){if(hasRequiredSetFunctionLength)return setFunctionLength;hasRequiredSetFunctionLength=1;var e=requireGetIntrinsic(),n=requireDefineDataProperty(),t=requireHasPropertyDescriptors()(),r=requireGopd(),a=requireType(),s=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||s(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&&r){var v=r(l,"length");v&&!v.configurable&&(f=!1),v&&!v.writable&&(p=!1)}return(f||p||!d)&&(t?n(l,"length",c,!0,!0):n(l,"length",c)),l},setFunctionLength}var applyBind,hasRequiredApplyBind;function requireApplyBind(){if(hasRequiredApplyBind)return applyBind;hasRequiredApplyBind=1;var e=requireFunctionBind(),n=requireFunctionApply(),t=requireActualApply();return applyBind=function(){return t(e,n,arguments)},applyBind}var hasRequiredCallBind;function requireCallBind(){return hasRequiredCallBind||(hasRequiredCallBind=1,function(e){var n=requireSetFunctionLength(),t=requireEsDefineProperty(),r=requireCallBindApplyHelpers(),a=requireApplyBind();e.exports=function(i){var l=r(arguments),c=i.length-(arguments.length-1);return n(l,1+(c>0?c:0),!0)},t?t(e.exports,"apply",{value:a}):e.exports.apply=a}(callBind)),callBind.exports}var whichTypedArray,hasRequiredWhichTypedArray;function requireWhichTypedArray(){if(hasRequiredWhichTypedArray)return whichTypedArray;hasRequiredWhichTypedArray=1;var e=requireForEach(),n=requireAvailableTypedArrays(),t=requireCallBind(),r=requireCallBound(),a=requireGopd(),s=r("Object.prototype.toString"),i=requireShams()(),l=typeof globalThis>"u"?commonjsGlobal:globalThis,c=n(),d=r("String.prototype.slice"),f=Object.getPrototypeOf,p=r("Array.prototype.indexOf",!0)||function(C,w){for(var E=0;E<C.length;E+=1)if(C[E]===w)return E;return-1},v={__proto__:null};i&&a&&f?e(c,function(b){var C=new l[b];if(Symbol.toStringTag in C){var w=f(C),E=a(w,Symbol.toStringTag);if(!E){var V=f(w);E=a(V,Symbol.toStringTag)}v["$"+b]=t(E.get)}}):e(c,function(b){var C=new l[b],w=C.slice||C.set;w&&(v["$"+b]=t(w))});var m=function(C){var w=!1;return e(v,function(E,V){if(!w)try{"$"+E(C)===V&&(w=d(V,1))}catch{}}),w},g=function(C){var w=!1;return e(v,function(E,V){if(!w)try{E(C),w=d(V,1)}catch{}}),w};return whichTypedArray=function(C){if(!C||typeof C!="object")return!1;if(!i){var w=d(s(C),8,-1);return p(c,w)>-1?w:w!=="Object"?!1:g(C)}return a?m(C):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 n=requireIsArguments(),t=requireIsGeneratorFunction(),r=requireWhichTypedArray(),a=requireIsTypedArray();function s(H){return H.call.bind(H)}var i=typeof BigInt<"u",l=typeof Symbol<"u",c=s(Object.prototype.toString),d=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(i)var v=s(BigInt.prototype.valueOf);if(l)var m=s(Symbol.prototype.valueOf);function g(H,Qe){if(typeof H!="object")return!1;try{return Qe(H),!0}catch{return!1}}e.isArgumentsObject=n,e.isGeneratorFunction=t,e.isTypedArray=a;function b(H){return typeof Promise<"u"&&H instanceof Promise||H!==null&&typeof H=="object"&&typeof H.then=="function"&&typeof H.catch=="function"}e.isPromise=b;function C(H){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(H):a(H)||B(H)}e.isArrayBufferView=C;function w(H){return r(H)==="Uint8Array"}e.isUint8Array=w;function E(H){return r(H)==="Uint8ClampedArray"}e.isUint8ClampedArray=E;function V(H){return r(H)==="Uint16Array"}e.isUint16Array=V;function A(H){return r(H)==="Uint32Array"}e.isUint32Array=A;function $(H){return r(H)==="Int8Array"}e.isInt8Array=$;function O(H){return r(H)==="Int16Array"}e.isInt16Array=O;function I(H){return r(H)==="Int32Array"}e.isInt32Array=I;function L(H){return r(H)==="Float32Array"}e.isFloat32Array=L;function Z(H){return r(H)==="Float64Array"}e.isFloat64Array=Z;function se(H){return r(H)==="BigInt64Array"}e.isBigInt64Array=se;function z(H){return r(H)==="BigUint64Array"}e.isBigUint64Array=z;function ie(H){return c(H)==="[object Map]"}ie.working=typeof Map<"u"&&ie(new Map);function Q(H){return typeof Map>"u"?!1:ie.working?ie(H):H instanceof Map}e.isMap=Q;function ae(H){return c(H)==="[object Set]"}ae.working=typeof Set<"u"&&ae(new Set);function we(H){return typeof Set>"u"?!1:ae.working?ae(H):H instanceof Set}e.isSet=we;function me(H){return c(H)==="[object WeakMap]"}me.working=typeof WeakMap<"u"&&me(new WeakMap);function fe(H){return typeof WeakMap>"u"?!1:me.working?me(H):H instanceof WeakMap}e.isWeakMap=fe;function T(H){return c(H)==="[object WeakSet]"}T.working=typeof WeakSet<"u"&&T(new WeakSet);function M(H){return T(H)}e.isWeakSet=M;function G(H){return c(H)==="[object ArrayBuffer]"}G.working=typeof ArrayBuffer<"u"&&G(new ArrayBuffer);function ne(H){return typeof ArrayBuffer>"u"?!1:G.working?G(H):H instanceof ArrayBuffer}e.isArrayBuffer=ne;function he(H){return c(H)==="[object DataView]"}he.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&he(new DataView(new ArrayBuffer(1),0,1));function B(H){return typeof DataView>"u"?!1:he.working?he(H):H instanceof DataView}e.isDataView=B;var U=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function q(H){return c(H)==="[object SharedArrayBuffer]"}function oe(H){return typeof U>"u"?!1:(typeof q.working>"u"&&(q.working=q(new U)),q.working?q(H):H instanceof U)}e.isSharedArrayBuffer=oe;function ee(H){return c(H)==="[object AsyncFunction]"}e.isAsyncFunction=ee;function le(H){return c(H)==="[object Map Iterator]"}e.isMapIterator=le;function ue(H){return c(H)==="[object Set Iterator]"}e.isSetIterator=ue;function te(H){return c(H)==="[object Generator]"}e.isGeneratorObject=te;function ce(H){return c(H)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ce;function ge(H){return g(H,d)}e.isNumberObject=ge;function Se(H){return g(H,f)}e.isStringObject=Se;function ye(H){return g(H,p)}e.isBooleanObject=ye;function Te(H){return i&&g(H,v)}e.isBigIntObject=Te;function Oe(H){return l&&g(H,m)}e.isSymbolObject=Oe;function Ue(H){return ge(H)||Se(H)||ye(H)||Te(H)||Oe(H)}e.isBoxedPrimitive=Ue;function ze(H){return typeof Uint8Array<"u"&&(ne(H)||oe(H))}e.isAnyArrayBuffer=ze,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(H){Object.defineProperty(e,H,{enumerable:!1,value:function(){throw new Error(H+" is not supported in userland")}})})}(types)),types}var isBufferBrowser,hasRequiredIsBufferBrowser;function requireIsBufferBrowser(){return hasRequiredIsBufferBrowser||(hasRequiredIsBufferBrowser=1,isBufferBrowser=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.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(n,t){t&&(n.super_=t,n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(n,t){if(t){n.super_=t;var r=function(){};r.prototype=t.prototype,n.prototype=new r,n.prototype.constructor=n}}),inherits_browser.exports}var hasRequiredUtil;function requireUtil(){return hasRequiredUtil||(hasRequiredUtil=1,function(e){var n={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LfqqfcZAAAAACbkbPaHRZTIFpKZGAPZBDkwBKhe",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_15348_CWGUUHKPCRTIGFCZ",COLORTERM:"truecolor",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"2HR07S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EXEPATH:"C:\\Program Files\\Git\\bin",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",GIT_ASKPASS:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\duncan.sanderson",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\duncan.sanderson",HOSTNAME:"2HR07S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LANG:"en_US.UTF-8",LOCALAPPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE_ENV:"production",NODE_PATH:"C:\\Users\\duncan.sanderson\\AppData\\npm",npm_config_user_agent:"yarn/4.3.1 npm/? node/v18.19.1 win32 x64",npm_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579\\node",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.7.1",NUMBER_OF_PROCESSORS:"8",OneDrive:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",OneDriveCommercial:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin",ORIGINAL_TEMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",PATH:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-274ceb4d;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-4df2ce3c;C:\\Users\\duncan.sanderson\\.volta\\bin;C:\\Users\\duncan.sanderson\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",ProgramData:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",PYTHON:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_AGENT_PID:"1838",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SSH_AUTH_SOCK:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp/ssh-uR4B1I3vN93q/agent.1837",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TERM:"xterm-256color",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.96.2",TMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"duncan.sanderson",USERPROFILE:"C:\\Users\\duncan.sanderson",VOLTA_HOME:"C:/Users/duncan.sanderson/.volta",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",VSCODE_GIT_ASKPASS_MAIN:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-4a2d75133c-sock",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/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(U){for(var q=Object.keys(U),oe={},ee=0;ee<q.length;ee++)oe[q[ee]]=Object.getOwnPropertyDescriptor(U,q[ee]);return oe},r=/%[sdj%]/g;e.format=function(B){if(!O(B)){for(var U=[],q=0;q<arguments.length;q++)U.push(l(arguments[q]));return U.join(" ")}for(var q=1,oe=arguments,ee=oe.length,le=String(B).replace(r,function(te){if(te==="%%")return"%";if(q>=ee)return te;switch(te){case"%s":return String(oe[q++]);case"%d":return Number(oe[q++]);case"%j":try{return JSON.stringify(oe[q++])}catch{return"[Circular]"}default:return te}}),ue=oe[q];q<ee;ue=oe[++q])V(ue)||!se(ue)?le+=" "+ue:le+=" "+l(ue);return le},e.deprecate=function(B,U){if(typeof process<"u"&&process.noDeprecation===!0)return B;if(typeof process>"u")return function(){return e.deprecate(B,U).apply(this,arguments)};var q=!1;function oe(){if(!q){if(process.throwDeprecation)throw new Error(U);process.traceDeprecation?console.trace(U):console.error(U),q=!0}return B.apply(this,arguments)}return oe};var a={},s=/^$/;if(n.NODE_DEBUG){var i=n.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+i+"$","i")}e.debuglog=function(B){if(B=B.toUpperCase(),!a[B])if(s.test(B)){var U=process.pid;a[B]=function(){var q=e.format.apply(e,arguments);console.error("%s %d: %s",B,U,q)}}else a[B]=function(){};return a[B]};function l(B,U){var q={seen:[],stylize:d};return arguments.length>=3&&(q.depth=arguments[2]),arguments.length>=4&&(q.colors=arguments[3]),E(U)?q.showHidden=U:U&&e._extend(q,U),L(q.showHidden)&&(q.showHidden=!1),L(q.depth)&&(q.depth=2),L(q.colors)&&(q.colors=!1),L(q.customInspect)&&(q.customInspect=!0),q.colors&&(q.stylize=c),p(q,B,q.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(B,U){var q=l.styles[U];return q?"\x1B["+l.colors[q][0]+"m"+B+"\x1B["+l.colors[q][1]+"m":B}function d(B,U){return B}function f(B){var U={};return B.forEach(function(q,oe){U[q]=!0}),U}function p(B,U,q){if(B.customInspect&&U&&Q(U.inspect)&&U.inspect!==e.inspect&&!(U.constructor&&U.constructor.prototype===U)){var oe=U.inspect(q,B);return O(oe)||(oe=p(B,oe,q)),oe}var ee=v(B,U);if(ee)return ee;var le=Object.keys(U),ue=f(le);if(B.showHidden&&(le=Object.getOwnPropertyNames(U)),ie(U)&&(le.indexOf("message")>=0||le.indexOf("description")>=0))return m(U);if(le.length===0){if(Q(U)){var te=U.name?": "+U.name:"";return B.stylize("[Function"+te+"]","special")}if(Z(U))return B.stylize(RegExp.prototype.toString.call(U),"regexp");if(z(U))return B.stylize(Date.prototype.toString.call(U),"date");if(ie(U))return m(U)}var ce="",ge=!1,Se=["{","}"];if(w(U)&&(ge=!0,Se=["[","]"]),Q(U)){var ye=U.name?": "+U.name:"";ce=" [Function"+ye+"]"}if(Z(U)&&(ce=" "+RegExp.prototype.toString.call(U)),z(U)&&(ce=" "+Date.prototype.toUTCString.call(U)),ie(U)&&(ce=" "+m(U)),le.length===0&&(!ge||U.length==0))return Se[0]+ce+Se[1];if(q<0)return Z(U)?B.stylize(RegExp.prototype.toString.call(U),"regexp"):B.stylize("[Object]","special");B.seen.push(U);var Te;return ge?Te=g(B,U,q,ue,le):Te=le.map(function(Oe){return b(B,U,q,ue,Oe,ge)}),B.seen.pop(),C(Te,ce,Se)}function v(B,U){if(L(U))return B.stylize("undefined","undefined");if(O(U)){var q="'"+JSON.stringify(U).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return B.stylize(q,"string")}if($(U))return B.stylize(""+U,"number");if(E(U))return B.stylize(""+U,"boolean");if(V(U))return B.stylize("null","null")}function m(B){return"["+Error.prototype.toString.call(B)+"]"}function g(B,U,q,oe,ee){for(var le=[],ue=0,te=U.length;ue<te;++ue)M(U,String(ue))?le.push(b(B,U,q,oe,String(ue),!0)):le.push("");return ee.forEach(function(ce){ce.match(/^\d+$/)||le.push(b(B,U,q,oe,ce,!0))}),le}function b(B,U,q,oe,ee,le){var ue,te,ce;if(ce=Object.getOwnPropertyDescriptor(U,ee)||{value:U[ee]},ce.get?ce.set?te=B.stylize("[Getter/Setter]","special"):te=B.stylize("[Getter]","special"):ce.set&&(te=B.stylize("[Setter]","special")),M(oe,ee)||(ue="["+ee+"]"),te||(B.seen.indexOf(ce.value)<0?(V(q)?te=p(B,ce.value,null):te=p(B,ce.value,q-1),te.indexOf(`
|
|
194
|
+
`)+" "+G[1]:G[0]+M+" "+T.join(", ")+" "+G[1]}function b(T){return Array.isArray(T)}e.isArray=b;function C(T){return typeof T=="boolean"}e.isBoolean=C;function w(T){return T===null}e.isNull=w;function E(T){return T==null}e.isNullOrUndefined=E;function V(T){return typeof T=="number"}e.isNumber=V;function A(T){return typeof T=="string"}e.isString=A;function P(T){return typeof T=="symbol"}e.isSymbol=P;function O(T){return T===void 0}e.isUndefined=O;function I(T){return R(T)&&Q(T)==="[object RegExp]"}e.isRegExp=I;function R(T){return typeof T=="object"&&T!==null}e.isObject=R;function Z(T){return R(T)&&Q(T)==="[object Date]"}e.isDate=Z;function se(T){return R(T)&&(Q(T)==="[object Error]"||T instanceof Error)}e.isError=se;function z(T){return typeof T=="function"}e.isFunction=z;function ie(T){return T===null||typeof T=="boolean"||typeof T=="number"||typeof T=="string"||typeof T=="symbol"||typeof T>"u"}e.isPrimitive=ie,e.isBuffer=requireIsBufferBrowser$1();function Q(T){return Object.prototype.toString.call(T)}function ae(T){return T<10?"0"+T.toString(10):T.toString(10)}var we=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function me(){var T=new Date,M=[ae(T.getHours()),ae(T.getMinutes()),ae(T.getSeconds())].join(":");return[T.getDate(),we[T.getMonth()],M].join(" ")}e.log=function(){console.log("%s - %s",me(),e.format.apply(e,arguments))},e.inherits=requireInherits_browser$1(),e._extend=function(T,M){if(!M||!R(M))return T;for(var G=Object.keys(M),ne=G.length;ne--;)T[G[ne]]=M[G[ne]];return T};function fe(T,M){return Object.prototype.hasOwnProperty.call(T,M)}}(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:"6LfqqfcZAAAAACbkbPaHRZTIFpKZGAPZBDkwBKhe",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_29464_PXQWZGIBRNUKUSQG",COLORTERM:"truecolor",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"2HR07S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EXEPATH:"C:\\Program Files\\Git\\bin",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",GIT_ASKPASS:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\duncan.sanderson",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\duncan.sanderson",HOSTNAME:"2HR07S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LANG:"en_US.UTF-8",LOCALAPPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE_ENV:"production",NODE_PATH:"C:\\Users\\duncan.sanderson\\AppData\\npm",npm_config_user_agent:"yarn/4.3.1 npm/? node/v18.19.1 win32 x64",npm_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a\\node",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.7.2",NUMBER_OF_PROCESSORS:"8",OneDrive:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",OneDriveCommercial:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin",ORIGINAL_TEMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",PATH:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-75c6f032;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-5dadc7c5;C:\\Users\\duncan.sanderson\\.volta\\bin;C:\\Users\\duncan.sanderson\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",ProgramData:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",PYTHON:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_AGENT_PID:"972",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SSH_AUTH_SOCK:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp/ssh-zzwbzPFLwOHn/agent.971",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TERM:"xterm-256color",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.96.2",TMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"duncan.sanderson",USERPROFILE:"C:\\Users\\duncan.sanderson",VOLTA_HOME:"C:/Users/duncan.sanderson/.volta",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",VSCODE_GIT_ASKPASS_MAIN:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-4a2d75133c-sock",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/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"},n=requireUtil$1();function t(m,g){for(var b=[],C=0;C<m.length;C++){var w=m[C];!w||w==="."||(w===".."?b.length&&b[b.length-1]!==".."?b.pop():g&&b.push(".."):b.push(w))}return b}function r(m){for(var g=m.length-1,b=0;b<=g&&!m[b];b++);for(var C=g;C>=0&&!m[C];C--);return b===0&&C===g?m:b>C?[]:m.slice(b,C+1)}var a=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,s=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,i={};function l(m){var g=a.exec(m),b=(g[1]||"")+(g[2]||""),C=g[3]||"",w=s.exec(C),E=w[1],V=w[2],A=w[3];return[b,E,V,A]}function c(m){var g=a.exec(m),b=g[1]||"",C=!!b&&b[1]!==":";return{device:b,isUnc:C,isAbsolute:C||!!g[2],tail:g[3]}}function d(m){return"\\\\"+m.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}i.resolve=function(){for(var m="",g="",b=!1,C=arguments.length-1;C>=-1;C--){var w;if(C>=0?w=arguments[C]:m?(w=e["="+m],(!w||w.substr(0,3).toLowerCase()!==m.toLowerCase()+"\\")&&(w=m+"\\")):w=process.cwd(),n.isString(w)){if(!w)continue}else throw new TypeError("Arguments to path.resolve must be strings");var E=c(w),V=E.device,A=E.isUnc,P=E.isAbsolute,O=E.tail;if(!(V&&m&&V.toLowerCase()!==m.toLowerCase())&&(m||(m=V),b||(g=O+"\\"+g,b=P),m&&b))break}return A&&(m=d(m)),g=t(g.split(/[\\\/]+/),!b).join("\\"),m+(b?"\\":"")+g||"."},i.normalize=function(m){var g=c(m),b=g.device,C=g.isUnc,w=g.isAbsolute,E=g.tail,V=/[\\\/]$/.test(E);return E=t(E.split(/[\\\/]+/),!w).join("\\"),!E&&!w&&(E="."),E&&V&&(E+="\\"),C&&(b=d(b)),b+(w?"\\":"")+E},i.isAbsolute=function(m){return c(m).isAbsolute},i.join=function(){for(var m=[],g=0;g<arguments.length;g++){var b=arguments[g];if(!n.isString(b))throw new TypeError("Arguments to path.join must be strings");b&&m.push(b)}var C=m.join("\\");return/^[\\\/]{2}[^\\\/]/.test(m[0])||(C=C.replace(/^[\\\/]{2,}/,"\\")),i.normalize(C)},i.relative=function(m,g){m=i.resolve(m),g=i.resolve(g);for(var b=m.toLowerCase(),C=g.toLowerCase(),w=r(g.split("\\")),E=r(b.split("\\")),V=r(C.split("\\")),A=Math.min(E.length,V.length),P=A,O=0;O<A;O++)if(E[O]!==V[O]){P=O;break}if(P==0)return g;for(var I=[],O=P;O<E.length;O++)I.push("..");return I=I.concat(w.slice(P)),I.join("\\")},i._makeLong=function(m){if(!n.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),b=g[0],C=g[1];return!b&&!C?".":(C&&(C=C.substr(0,C.length-1)),b+C)},i.basename=function(m,g){var b=l(m)[2];return g&&b.substr(-1*g.length)===g&&(b=b.substr(0,b.length-g.length)),b},i.extname=function(m){return l(m)[3]},i.format=function(m){if(!n.isObject(m))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof m);var g=m.root||"";if(!n.isString(g))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof m.root);var b=m.dir,C=m.base||"";return b?b[b.length-1]===i.sep?b+C:b+i.sep+C:C},i.parse=function(m){if(!n.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,b=arguments.length-1;b>=-1&&!g;b--){var C=b>=0?arguments[b]:process.cwd();if(n.isString(C)){if(!C)continue}else throw new TypeError("Arguments to path.resolve must be strings");m=C+"/"+m,g=C[0]==="/"}return m=t(m.split("/"),!g).join("/"),(g?"/":"")+m||"."},p.normalize=function(m){var g=p.isAbsolute(m),b=m&&m[m.length-1]==="/";return m=t(m.split("/"),!g).join("/"),!m&&!g&&(m="."),m&&b&&(m+="/"),(g?"/":"")+m},p.isAbsolute=function(m){return m.charAt(0)==="/"},p.join=function(){for(var m="",g=0;g<arguments.length;g++){var b=arguments[g];if(!n.isString(b))throw new TypeError("Arguments to path.join must be strings");b&&(m?m+="/"+b:m+=b)}return p.normalize(m)},p.relative=function(m,g){m=p.resolve(m).substr(1),g=p.resolve(g).substr(1);for(var b=r(m.split("/")),C=r(g.split("/")),w=Math.min(b.length,C.length),E=w,V=0;V<w;V++)if(b[V]!==C[V]){E=V;break}for(var A=[],V=E;V<b.length;V++)A.push("..");return A=A.concat(C.slice(E)),A.join("/")},p._makeLong=function(m){return m},p.dirname=function(m){var g=v(m),b=g[0],C=g[1];return!b&&!C?".":(C&&(C=C.substr(0,C.length-1)),b+C)},p.basename=function(m,g){var b=v(m)[2];return g&&b.substr(-1*g.length)===g&&(b=b.substr(0,b.length-g.length)),b},p.extname=function(m){return v(m)[3]},p.format=function(m){if(!n.isObject(m))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof m);var g=m.root||"";if(!n.isString(g))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof m.root);var b=m.dir?m.dir+p.sep:"",C=m.base||"";return b+C},p.parse=function(m){if(!n.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:"6LfqqfcZAAAAACbkbPaHRZTIFpKZGAPZBDkwBKhe",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_29464_PXQWZGIBRNUKUSQG",COLORTERM:"truecolor",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"2HR07S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EXEPATH:"C:\\Program Files\\Git\\bin",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",GIT_ASKPASS:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\duncan.sanderson",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\duncan.sanderson",HOSTNAME:"2HR07S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LANG:"en_US.UTF-8",LOCALAPPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE_ENV:"production",NODE_PATH:"C:\\Users\\duncan.sanderson\\AppData\\npm",npm_config_user_agent:"yarn/4.3.1 npm/? node/v18.19.1 win32 x64",npm_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a\\node",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.7.2",NUMBER_OF_PROCESSORS:"8",OneDrive:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",OneDriveCommercial:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin",ORIGINAL_TEMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",PATH:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-75c6f032;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-5dadc7c5;C:\\Users\\duncan.sanderson\\.volta\\bin;C:\\Users\\duncan.sanderson\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",ProgramData:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",PYTHON:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_AGENT_PID:"972",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SSH_AUTH_SOCK:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp/ssh-zzwbzPFLwOHn/agent.971",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TERM:"xterm-256color",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.96.2",TMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"duncan.sanderson",USERPROFILE:"C:\\Users\\duncan.sanderson",VOLTA_HOME:"C:/Users/duncan.sanderson/.volta",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",VSCODE_GIT_ASKPASS_MAIN:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-4a2d75133c-sock",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/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"},n=require$$0$1;return homedir=n.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,r){return r};var n=new Error().stack;return Error.prepareStackTrace=e,n[2].getFileName()}),caller}var pathParse={exports:{}},hasRequiredPathParse;function requirePathParse(){if(hasRequiredPathParse)return pathParse.exports;hasRequiredPathParse=1;var e=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,n={};function t(i){return e.exec(i).slice(1)}n.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 r=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,a={};function s(i){return r.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=s(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=n.parse,pathParse.exports.posix=a.parse,pathParse.exports.win32=n.parse,pathParse.exports}var nodeModulesPaths,hasRequiredNodeModulesPaths;function requireNodeModulesPaths(){if(hasRequiredNodeModulesPaths)return nodeModulesPaths;hasRequiredNodeModulesPaths=1;var e=requirePath(),n=e.parse||requirePathParse(),t=function(a,s){var i="/";/^([A-Za-z]:)/.test(a)?i="":/^\\\\/.test(a)&&(i="\\\\");for(var l=[a],c=n(a);c.dir!==l[l.length-1];)l.push(c.dir),c=n(c.dir);return l.reduce(function(d,f){return d.concat(s.map(function(p){return e.resolve(i,f,p)}))},[])};return nodeModulesPaths=function(a,s,i){var l=s&&s.moduleDirectory?[].concat(s.moduleDirectory):["node_modules"];if(s&&typeof s.paths=="function")return s.paths(i,a,function(){return t(a,l)},s);var c=t(a,l);return s&&s.paths?c.concat(s.paths):c},nodeModulesPaths}var normalizeOptions,hasRequiredNormalizeOptions;function requireNormalizeOptions(){if(hasRequiredNormalizeOptions)return normalizeOptions;hasRequiredNormalizeOptions=1;var e={node:"18.19.1",acorn:"8.10.0",ada:"2.7.2",ares:"1.20.1",base64:"0.5.0",brotli:"1.0.9",cjs_module_lexer:"1.2.2",cldr:"43.1",icu:"73.2",llhttp:"6.1.0",modules:"108",napi:"9",nghttp2:"1.57.0",nghttp3:"0.7.0",ngtcp2:"0.8.1",openssl:"3.0.13+quic",simdutf:"3.2.18",tz:"2023c",undici:"5.28.3",unicode:"15.0",uv:"1.44.2",uvwasi:"0.0.19",v8:"10.2.154.26-node.28",zlib:"1.2.13.1-motley"};const n=requirePath();return normalizeOptions=function(t,r){if(r=r||{},r.forceNodeResolution||!e.pnp)return r;const{findPnpApi:a}=require$$0$1,s=(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=n.join(v,"/"));const g=a(v);if(g===null)return;let b;try{b=g.resolveToUnqualified(`${m[1]}/package.json`,v,{considerBuiltins:!1})}catch{return null}if(b===null)throw new Error(`Assertion failed: The resolution thinks that "${m[1]}" is a Node builtin`);const C=n.dirname(b),w=typeof m[2]<"u"?n.join(C,m[2]):C;return{packagePath:C,unqualifiedPath:w}},i=(p,v)=>{for(let m=0;m<v.length;m++){const g=s(p,v[m]);if(g||m===v.length-1)return g}return null},l=Array.isArray(r.paths)?r.paths:[],c=(p,v,m,g)=>{const b=[v].concat(l),C=i(p,b);return C==null?m():[C.unqualifiedPath]},d=(p,v,m,g)=>{const b=[v].concat(l),C=i(p,b);if(C==null)return m().concat(l);let w=n.dirname(C.packagePath);return p.match(/^@[^/]+\//)&&(w=n.dirname(w)),[w]};let f=!1;return r.__skipPackageIterator||(r.packageIterator=function(p,v,m,g){f=!0;try{return c(p,v,m,g)}finally{f=!1}}),r.paths=function(p,v,m,g){return f?m().concat(l):d(p,v,m)},r},normalizeOptions}var implementation,hasRequiredImplementation;function requireImplementation(){if(hasRequiredImplementation)return implementation;hasRequiredImplementation=1;var e="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,t=Math.max,r="[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},s=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"||n.apply(d)!==r)throw new TypeError(e+d);for(var f=s(arguments,1),p,v=function(){if(this instanceof p){var w=d.apply(this,a(f,arguments));return Object(w)===w?w:this}return d.apply(c,a(f,arguments))},m=t(0,d.length-f.length),g=[],b=0;b<m;b++)g[b]="$"+b;if(p=Function("binder","return function ("+i(g,",")+"){ return binder.apply(this,arguments); }")(v),d.prototype){var C=function(){};C.prototype=d.prototype,p.prototype=new C,C.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,n=Object.prototype.hasOwnProperty,t=requireFunctionBind();return hasown=t.call(e,n),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"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:smalloc$1,"node:sqlite":[">= 22.13 && < 23",">= 23.4"],_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"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","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:"18.19.1",acorn:"8.10.0",ada:"2.7.2",ares:"1.20.1",base64:"0.5.0",brotli:"1.0.9",cjs_module_lexer:"1.2.2",cldr:"43.1",icu:"73.2",llhttp:"6.1.0",modules:"108",napi:"9",nghttp2:"1.57.0",nghttp3:"0.7.0",ngtcp2:"0.8.1",openssl:"3.0.13+quic",simdutf:"3.2.18",tz:"2023c",undici:"5.28.3",unicode:"15.0",uv:"1.44.2",uvwasi:"0.0.19",v8:"10.2.154.26-node.28",zlib:"1.2.13.1-motley"},n=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 r(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.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(r(c,l[d]))return!0;return!1}return r(c,l)}var s=require$$1$1;return isCoreModule=function(l,c){return n(s,l)&&a(c,s[l])},isCoreModule}var async,hasRequiredAsync;function requireAsync(){if(hasRequiredAsync)return async;hasRequiredAsync=1;var e=require$$0$1,n=requireHomedir(),t=requirePath(),r=requireCaller(),a=requireNodeModulesPaths(),s=requireNormalizeOptions(),i=requireIsCoreModule(),l=e.realpath,c=n(),d=function(){return[t.join(c,".node_modules"),t.join(c,".node_libraries")]},f=function(w,E){e.stat(w,function(V,A){return V?V.code==="ENOENT"||V.code==="ENOTDIR"?E(null,!1):E(V):E(null,A.isFile()||A.isFIFO())})},p=function(w,E){e.stat(w,function(V,A){return V?V.code==="ENOENT"||V.code==="ENOTDIR"?E(null,!1):E(V):E(null,A.isDirectory())})},v=function(w,E){l(w,function(V,A){V&&V.code!=="ENOENT"?E(V):E(null,V?w:A)})},m=function(w,E,V,A){V&&V.preserveSymlinks===!1?w(E,A):A(null,E)},g=function(w,E,V){w(E,function(A,P){if(A)V(A);else try{var O=JSON.parse(P);V(null,O)}catch{V(null)}})},b=function(w,E,V){for(var A=a(E,V,w),P=0;P<A.length;P++)A[P]=t.join(A[P],w);return A};return async=function(w,E,V){var A=V,P=E;if(typeof E=="function"&&(A=P,P={}),typeof w!="string"){var O=new TypeError("Path must be a string.");return process.nextTick(function(){A(O)})}P=s(w,P);var I=P.isFile||f,R=P.isDirectory||p,Z=P.readFile||e.readFile,se=P.realpath||v,z=P.readPackage||g;if(P.readFile&&P.readPackage){var ie=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){A(ie)})}var Q=P.packageIterator,ae=P.extensions||[".js"],we=P.includeCoreModules!==!1,me=P.basedir||t.dirname(r()),fe=P.filename||me;P.paths=P.paths||d();var T=t.resolve(me);m(se,T,P,function(ee,le){ee?A(ee):G(le)});var M;function G(ee){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(w))M=t.resolve(ee,w),(w==="."||w===".."||w.slice(-1)==="/")&&(M+="/"),/\/$/.test(w)&&M===ee?U(M,P.package,ne):he(M,P.package,ne);else{if(we&&i(w))return A(null,w);oe(w,ee,function(le,ue,te){if(le)A(le);else{if(ue)return m(se,ue,P,function(ge,Se){ge?A(ge):A(null,Se,te)});var ce=new Error("Cannot find module '"+w+"' from '"+fe+"'");ce.code="MODULE_NOT_FOUND",A(ce)}})}}function ne(ee,le,ue){ee?A(ee):le?A(null,le,ue):U(M,function(te,ce,ge){if(te)A(te);else if(ce)m(se,ce,P,function(ye,Te){ye?A(ye):A(null,Te,ge)});else{var Se=new Error("Cannot find module '"+w+"' from '"+fe+"'");Se.code="MODULE_NOT_FOUND",A(Se)}})}function he(ee,le,ue){var te=le,ce=ue;typeof te=="function"&&(ce=te,te=void 0);var ge=[""].concat(ae);Se(ge,ee,te);function Se(ye,Te,Oe){if(ye.length===0)return ce(null,void 0,Oe);var Ue=Te+ye[0],ze=Oe;ze?H(null,ze):B(t.dirname(Ue),H);function H(De,Ze,Ke){if(ze=Ze,De)return ce(De);if(Ke&&ze&&P.pathFilter){var Et=t.relative(Ke,Ue),Pt=Et.slice(0,Et.length-ye[0].length),en=P.pathFilter(ze,Te,Pt);if(en)return Se([""].concat(ae.slice()),t.resolve(Ke,en),ze)}I(Ue,Qe)}function Qe(De,Ze){if(De)return ce(De);if(Ze)return ce(null,Ue,ze);Se(ye.slice(1),Te,ze)}}}function B(ee,le){if(ee===""||ee==="/"||/^\w:[/\\]*$/.test(ee)||/[/\\]node_modules[/\\]*$/.test(ee))return le(null);m(se,ee,P,function(ue,te){if(ue)return B(t.dirname(ee),le);var ce=t.join(te,"package.json");I(ce,function(ge,Se){if(!Se)return B(t.dirname(ee),le);z(Z,ce,function(ye,Te){ye&&le(ye);var Oe=Te;Oe&&P.packageFilter&&(Oe=P.packageFilter(Oe,ce)),le(null,Oe,ee)})})})}function U(ee,le,ue){var te=ue,ce=le;typeof ce=="function"&&(te=ce,ce=P.package),m(se,ee,P,function(ge,Se){if(ge)return te(ge);var ye=t.join(Se,"package.json");I(ye,function(Te,Oe){if(Te)return te(Te);if(!Oe)return he(t.join(ee,"index"),ce,te);z(Z,ye,function(Ue,ze){if(Ue)return te(Ue);var H=ze;if(H&&P.packageFilter&&(H=P.packageFilter(H,ye)),H&&H.main){if(typeof H.main!="string"){var Qe=new TypeError("package “"+H.name+"” `main` must be a string");return Qe.code="INVALID_PACKAGE_MAIN",te(Qe)}(H.main==="."||H.main==="./")&&(H.main="index"),he(t.resolve(ee,H.main),H,function(De,Ze,Ke){if(De)return te(De);if(Ze)return te(null,Ze,Ke);if(!Ke)return he(t.join(ee,"index"),Ke,te);var Et=t.resolve(ee,Ke.main);U(Et,Ke,function(Pt,en,Wt){if(Pt)return te(Pt);if(en)return te(null,en,Wt);he(t.join(ee,"index"),Wt,te)})});return}he(t.join(ee,"/index"),H,te)})})})}function q(ee,le){if(le.length===0)return ee(null,void 0);var ue=le[0];R(t.dirname(ue),te);function te(Se,ye){if(Se)return ee(Se);if(!ye)return q(ee,le.slice(1));he(ue,P.package,ce)}function ce(Se,ye,Te){if(Se)return ee(Se);if(ye)return ee(null,ye,Te);U(ue,P.package,ge)}function ge(Se,ye,Te){if(Se)return ee(Se);if(ye)return ee(null,ye,Te);q(ee,le.slice(1))}}function oe(ee,le,ue){var te=function(){return b(ee,le,P)};q(ue,Q?Q(ee,le,te,P):te())}},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"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc,"node:sqlite":">= 23.4",_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"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","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(),n=require$$1,t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=e(r));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(),n=require$$0$1,t=requirePath(),r=requireHomedir(),a=requireCaller(),s=requireNodeModulesPaths(),i=requireNormalizeOptions(),l=n.realpathSync,c=r(),d=function(){return[t.join(c,".node_modules"),t.join(c,".node_libraries")]},f=function(w){try{var E=n.statSync(w,{throwIfNoEntry:!1})}catch(V){if(V&&(V.code==="ENOENT"||V.code==="ENOTDIR"))return!1;throw V}return!!E&&(E.isFile()||E.isFIFO())},p=function(w){try{var E=n.statSync(w,{throwIfNoEntry:!1})}catch(V){if(V&&(V.code==="ENOENT"||V.code==="ENOTDIR"))return!1;throw V}return!!E&&E.isDirectory()},v=function(w){try{return l(w)}catch(E){if(E.code!=="ENOENT")throw E}return w},m=function(w,E,V){return V&&V.preserveSymlinks===!1?w(E):E},g=function(w,E){var V=w(E);try{var A=JSON.parse(V);return A}catch{}},b=function(w,E,V){for(var A=s(E,V,w),P=0;P<A.length;P++)A[P]=t.join(A[P],w);return A};return sync=function(w,E){if(typeof w!="string")throw new TypeError("Path must be a string.");var V=i(w,E),A=V.isFile||f,P=V.readFileSync||n.readFileSync,O=V.isDirectory||p,I=V.realpathSync||v,R=V.readPackageSync||g;if(V.readFileSync&&V.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var Z=V.packageIterator,se=V.extensions||[".js"],z=V.includeCoreModules!==!1,ie=V.basedir||t.dirname(a()),Q=V.filename||ie;V.paths=V.paths||d();var ae=m(I,t.resolve(ie),V);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(w)){var we=t.resolve(ae,w);(w==="."||w===".."||w.slice(-1)==="/")&&(we+="/");var me=M(we)||ne(we);if(me)return m(I,me,V)}else{if(z&&e(w))return w;var fe=he(w,ae);if(fe)return m(I,fe,V)}var T=new Error("Cannot find module '"+w+"' from '"+Q+"'");throw T.code="MODULE_NOT_FOUND",T;function M(B){var U=G(t.dirname(B));if(U&&U.dir&&U.pkg&&V.pathFilter){var q=t.relative(U.dir,B),oe=V.pathFilter(U.pkg,B,q);oe&&(B=t.resolve(U.dir,oe))}if(A(B))return B;for(var ee=0;ee<se.length;ee++){var le=B+se[ee];if(A(le))return le}}function G(B){if(!(B===""||B==="/")&&!/^\w:[/\\]*$/.test(B)&&!/[/\\]node_modules[/\\]*$/.test(B)){var U=t.join(m(I,B,V),"package.json");if(!A(U))return G(t.dirname(B));var q=R(P,U);return q&&V.packageFilter&&(q=V.packageFilter(q,B)),{pkg:q,dir:B}}}function ne(B){var U=t.join(m(I,B,V),"/package.json");if(A(U)){try{var q=R(P,U)}catch{}if(q&&V.packageFilter&&(q=V.packageFilter(q,B)),q&&q.main){if(typeof q.main!="string"){var oe=new TypeError("package “"+q.name+"” `main` must be a string");throw oe.code="INVALID_PACKAGE_MAIN",oe}(q.main==="."||q.main==="./")&&(q.main="index");try{var ee=M(t.resolve(B,q.main));if(ee)return ee;var le=ne(t.resolve(B,q.main));if(le)return le}catch{}}}return M(t.join(B,"/index"))}function he(B,U){for(var q=function(){return b(B,U,V)},oe=Z?Z(B,U,q,V):q(),ee=0;ee<oe.length;ee++){var le=oe[ee];if(O(t.dirname(le))){var ue=M(le);if(ue)return ue;var te=ne(le);if(te)return te}}}},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(),n=require$$0$1,t=require$$0$1,r=(a,s,i)=>{if(typeof a!="string")throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof a}\``);if(typeof s!="string")throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof s}\``);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=()=>n._resolveFilename(s,{id:l,filename:l,paths:n._nodeModulePaths(a)});if(i)try{return c()}catch{return null}return c()};return resolveFrom.exports=(a,s)=>r(a,s),resolveFrom.exports.silent=(a,s)=>r(a,s,!0),resolveFrom.exports}var callsites={exports:{}},hasRequiredCallsites;function requireCallsites(){if(hasRequiredCallsites)return callsites.exports;hasRequiredCallsites=1;const e=()=>{const n=Error.prepareStackTrace;Error.prepareStackTrace=(r,a)=>a;const t=new Error().stack.slice(1);return Error.prepareStackTrace=n,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=n=>{const t=e();if(!n)return t[2].getFileName();let r=!1;t.shift();for(const a of t){const s=a.getFileName();if(typeof s=="string"){if(s===n){r=!0;continue}if(s!=="module.js"&&r&&s!==n)return s}}},parentModule}var importFresh,hasRequiredImportFresh;function requireImportFresh(){if(hasRequiredImportFresh)return importFresh;hasRequiredImportFresh=1;const e=requirePath(),n=requireResolveFrom(),t=requireParentModule();return importFresh=r=>{if(typeof r!="string")throw new TypeError("Expected a string");const a=t(__filename),s=a?e.dirname(a):__dirname,i=n(s,r),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 n={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var a=42;n[t]=a;for(var s in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var i=Object.getOwnPropertySymbols(n);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(n,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(n,t);if(l.value!==a||l.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 esObjectAtoms,hasRequiredEsObjectAtoms;function requireEsObjectAtoms(){return hasRequiredEsObjectAtoms||(hasRequiredEsObjectAtoms=1,esObjectAtoms=Object),esObjectAtoms}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 abs,hasRequiredAbs;function requireAbs(){return hasRequiredAbs||(hasRequiredAbs=1,abs=Math.abs),abs}var floor,hasRequiredFloor;function requireFloor(){return hasRequiredFloor||(hasRequiredFloor=1,floor=Math.floor),floor}var max,hasRequiredMax;function requireMax(){return hasRequiredMax||(hasRequiredMax=1,max=Math.max),max}var min,hasRequiredMin;function requireMin(){return hasRequiredMin||(hasRequiredMin=1,min=Math.min),min}var pow,hasRequiredPow;function requirePow(){return hasRequiredPow||(hasRequiredPow=1,pow=Math.pow),pow}var round,hasRequiredRound;function requireRound(){return hasRequiredRound||(hasRequiredRound=1,round=Math.round),round}var _isNaN,hasRequired_isNaN;function require_isNaN(){return hasRequired_isNaN||(hasRequired_isNaN=1,_isNaN=Number.isNaN||function(n){return n!==n}),_isNaN}var sign,hasRequiredSign;function requireSign(){if(hasRequiredSign)return sign;hasRequiredSign=1;var e=require_isNaN();return sign=function(t){return e(t)||t===0?t:t<0?-1:1},sign}var gOPD,hasRequiredGOPD;function requireGOPD(){return hasRequiredGOPD||(hasRequiredGOPD=1,gOPD=Object.getOwnPropertyDescriptor),gOPD}var gopd,hasRequiredGopd;function requireGopd(){if(hasRequiredGopd)return gopd;hasRequiredGopd=1;var e=requireGOPD();if(e)try{e([],"length")}catch{e=null}return gopd=e,gopd}var esDefineProperty,hasRequiredEsDefineProperty;function requireEsDefineProperty(){if(hasRequiredEsDefineProperty)return esDefineProperty;hasRequiredEsDefineProperty=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return esDefineProperty=e,esDefineProperty}var hasSymbols,hasRequiredHasSymbols;function requireHasSymbols(){if(hasRequiredHasSymbols)return hasSymbols;hasRequiredHasSymbols=1;var e=typeof Symbol<"u"&&Symbol,n=requireShams$1();return hasSymbols=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()},hasSymbols}var Reflect_getPrototypeOf,hasRequiredReflect_getPrototypeOf;function requireReflect_getPrototypeOf(){return hasRequiredReflect_getPrototypeOf||(hasRequiredReflect_getPrototypeOf=1,Reflect_getPrototypeOf=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Reflect_getPrototypeOf}var Object_getPrototypeOf,hasRequiredObject_getPrototypeOf;function requireObject_getPrototypeOf(){if(hasRequiredObject_getPrototypeOf)return Object_getPrototypeOf;hasRequiredObject_getPrototypeOf=1;var e=requireEsObjectAtoms();return Object_getPrototypeOf=e.getPrototypeOf||null,Object_getPrototypeOf}var functionCall,hasRequiredFunctionCall;function requireFunctionCall(){return hasRequiredFunctionCall||(hasRequiredFunctionCall=1,functionCall=Function.prototype.call),functionCall}var functionApply,hasRequiredFunctionApply;function requireFunctionApply(){return hasRequiredFunctionApply||(hasRequiredFunctionApply=1,functionApply=Function.prototype.apply),functionApply}var reflectApply,hasRequiredReflectApply;function requireReflectApply(){return hasRequiredReflectApply||(hasRequiredReflectApply=1,reflectApply=typeof Reflect<"u"&&Reflect&&Reflect.apply),reflectApply}var actualApply,hasRequiredActualApply;function requireActualApply(){if(hasRequiredActualApply)return actualApply;hasRequiredActualApply=1;var e=requireFunctionBind(),n=requireFunctionApply(),t=requireFunctionCall(),r=requireReflectApply();return actualApply=r||e.call(t,n),actualApply}var callBindApplyHelpers,hasRequiredCallBindApplyHelpers;function requireCallBindApplyHelpers(){if(hasRequiredCallBindApplyHelpers)return callBindApplyHelpers;hasRequiredCallBindApplyHelpers=1;var e=requireFunctionBind(),n=requireType(),t=requireFunctionCall(),r=requireActualApply();return callBindApplyHelpers=function(s){if(s.length<1||typeof s[0]!="function")throw new n("a function is required");return r(e,t,s)},callBindApplyHelpers}var get,hasRequiredGet;function requireGet(){if(hasRequiredGet)return get;hasRequiredGet=1;var e=requireCallBindApplyHelpers(),n=requireGopd(),t;try{t=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var r=!!t&&n&&n(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;return get=r&&typeof r.get=="function"?e([r.get]):typeof s=="function"?function(l){return s(l==null?l:a(l))}:!1,get}var getProto,hasRequiredGetProto;function requireGetProto(){if(hasRequiredGetProto)return getProto;hasRequiredGetProto=1;var e=requireReflect_getPrototypeOf(),n=requireObject_getPrototypeOf(),t=requireGet();return getProto=e?function(a){return e(a)}:n?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return n(a)}:t?function(a){return t(a)}:null,getProto}var getIntrinsic,hasRequiredGetIntrinsic;function requireGetIntrinsic(){if(hasRequiredGetIntrinsic)return getIntrinsic;hasRequiredGetIntrinsic=1;var e,n=requireEsObjectAtoms(),t=requireEsErrors(),r=require_eval(),a=requireRange(),s=requireRef(),i=requireSyntax(),l=requireType(),c=requireUri(),d=requireAbs(),f=requireFloor(),p=requireMax(),v=requireMin(),m=requirePow(),g=requireRound(),b=requireSign(),C=Function,w=function(ue){try{return C('"use strict"; return ('+ue+").constructor;")()}catch{}},E=requireGopd(),V=requireEsDefineProperty(),A=function(){throw new l},P=E?function(){try{return arguments.callee,A}catch{try{return E(arguments,"callee").get}catch{return A}}}():A,O=requireHasSymbols()(),I=requireGetProto(),R=requireObject_getPrototypeOf(),Z=requireReflect_getPrototypeOf(),se=requireFunctionApply(),z=requireFunctionCall(),ie={},Q=typeof Uint8Array>"u"||!I?e:I(Uint8Array),ae={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":O&&I?I([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":ie,"%AsyncGenerator%":ie,"%AsyncGeneratorFunction%":ie,"%AsyncIteratorPrototype%":ie,"%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%":t,"%eval%":eval,"%EvalError%":r,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":C,"%GeneratorFunction%":ie,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&I?I(I([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!O||!I?e:I(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!O||!I?e:I(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&I?I(""[Symbol.iterator]()):e,"%Symbol%":O?Symbol:e,"%SyntaxError%":i,"%ThrowTypeError%":P,"%TypedArray%":Q,"%TypeError%":l,"%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%":c,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":z,"%Function.prototype.apply%":se,"%Object.defineProperty%":V,"%Object.getPrototypeOf%":R,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":v,"%Math.pow%":m,"%Math.round%":g,"%Math.sign%":b,"%Reflect.getPrototypeOf%":Z};if(I)try{null.error}catch(ue){var we=I(I(ue));ae["%Error.prototype%"]=we}var me=function ue(te){var ce;if(te==="%AsyncFunction%")ce=w("async function () {}");else if(te==="%GeneratorFunction%")ce=w("function* () {}");else if(te==="%AsyncGeneratorFunction%")ce=w("async function* () {}");else if(te==="%AsyncGenerator%"){var ge=ue("%AsyncGeneratorFunction%");ge&&(ce=ge.prototype)}else if(te==="%AsyncIteratorPrototype%"){var Se=ue("%AsyncGenerator%");Se&&I&&(ce=I(Se.prototype))}return ae[te]=ce,ce},fe={__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"]},T=requireFunctionBind(),M=requireHasown(),G=T.call(z,Array.prototype.concat),ne=T.call(se,Array.prototype.splice),he=T.call(z,String.prototype.replace),B=T.call(z,String.prototype.slice),U=T.call(z,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,oe=/\\(\\)?/g,ee=function(te){var ce=B(te,0,1),ge=B(te,-1);if(ce==="%"&&ge!=="%")throw new i("invalid intrinsic syntax, expected closing `%`");if(ge==="%"&&ce!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var Se=[];return he(te,q,function(ye,Te,Oe,Ue){Se[Se.length]=Oe?he(Ue,oe,"$1"):Te||ye}),Se},le=function(te,ce){var ge=te,Se;if(M(fe,ge)&&(Se=fe[ge],ge="%"+Se[0]+"%"),M(ae,ge)){var ye=ae[ge];if(ye===ie&&(ye=me(ge)),typeof ye>"u"&&!ce)throw new l("intrinsic "+te+" exists, but is not available. Please file an issue!");return{alias:Se,name:ge,value:ye}}throw new i("intrinsic "+te+" does not exist!")};return getIntrinsic=function(te,ce){if(typeof te!="string"||te.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ce!="boolean")throw new l('"allowMissing" argument must be a boolean');if(U(/^%?[^%]*%?$/,te)===null)throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ge=ee(te),Se=ge.length>0?ge[0]:"",ye=le("%"+Se+"%",ce),Te=ye.name,Oe=ye.value,Ue=!1,ze=ye.alias;ze&&(Se=ze[0],ne(ge,G([0,1],ze)));for(var H=1,Qe=!0;H<ge.length;H+=1){var De=ge[H],Ze=B(De,0,1),Ke=B(De,-1);if((Ze==='"'||Ze==="'"||Ze==="`"||Ke==='"'||Ke==="'"||Ke==="`")&&Ze!==Ke)throw new i("property names with quotes must have matching quotes");if((De==="constructor"||!Qe)&&(Ue=!0),Se+="."+De,Te="%"+Se+"%",M(ae,Te))Oe=ae[Te];else if(Oe!=null){if(!(De in Oe)){if(!ce)throw new l("base intrinsic for "+te+" exists, but the property is not available.");return}if(E&&H+1>=ge.length){var Et=E(Oe,De);Qe=!!Et,Qe&&"get"in Et&&!("originalValue"in Et.get)?Oe=Et.get:Oe=Oe[De]}else Qe=M(Oe,De),Oe=Oe[De];Qe&&!Ue&&(ae[Te]=Oe)}}return Oe},getIntrinsic}var callBound,hasRequiredCallBound;function requireCallBound(){if(hasRequiredCallBound)return callBound;hasRequiredCallBound=1;var e=requireGetIntrinsic(),n=requireCallBindApplyHelpers(),t=n([e("%String.prototype.indexOf%")]);return callBound=function(a,s){var i=e(a,!!s);return typeof i=="function"&&t(a,".prototype.")>-1?n([i]):i},callBound}var isArguments,hasRequiredIsArguments;function requireIsArguments(){if(hasRequiredIsArguments)return isArguments;hasRequiredIsArguments=1;var e=requireShams()(),n=requireCallBound(),t=n("Object.prototype.toString"),r=function(l){return e&&l&&typeof l=="object"&&Symbol.toStringTag in l?!1:t(l)==="[object Arguments]"},a=function(l){return r(l)?!0:l!==null&&typeof l=="object"&&"length"in l&&typeof l.length=="number"&&l.length>=0&&t(l)!=="[object Array]"&&"callee"in l&&t(l.callee)==="[object Function]"},s=function(){return r(arguments)}();return r.isLegacyArguments=a,isArguments=s?r:a,isArguments}var isRegex,hasRequiredIsRegex;function requireIsRegex(){if(hasRequiredIsRegex)return isRegex;hasRequiredIsRegex=1;var e=requireCallBound(),n=requireShams()(),t=requireHasown(),r=requireGopd(),a;if(n){var s=e("RegExp.prototype.exec"),i={},l=function(){throw i},c={toString:l,valueOf:l};typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=l),a=function(v){if(!v||typeof v!="object")return!1;var m=r(v,"lastIndex"),g=m&&t(m,"value");if(!g)return!1;try{s(v,c)}catch(b){return b===i}}}else{var d=e("Object.prototype.toString"),f="[object RegExp]";a=function(v){return!v||typeof v!="object"&&typeof v!="function"?!1:d(v)===f}}return isRegex=a,isRegex}var safeRegexTest,hasRequiredSafeRegexTest;function requireSafeRegexTest(){if(hasRequiredSafeRegexTest)return safeRegexTest;hasRequiredSafeRegexTest=1;var e=requireCallBound(),n=requireIsRegex(),t=e("RegExp.prototype.exec"),r=requireType();return safeRegexTest=function(s){if(!n(s))throw new r("`regex` must be a RegExp");return function(l){return t(s,l)!==null}},safeRegexTest}var isGeneratorFunction,hasRequiredIsGeneratorFunction;function requireIsGeneratorFunction(){if(hasRequiredIsGeneratorFunction)return isGeneratorFunction;hasRequiredIsGeneratorFunction=1;var e=requireCallBound(),n=requireSafeRegexTest(),t=n(/^\s*(?:function)?\*/),r=requireShams()(),a=requireGetProto(),s=e("Object.prototype.toString"),i=e("Function.prototype.toString"),l=function(){if(!r)return!1;try{return Function("return function*() {}")()}catch{}},c;return isGeneratorFunction=function(f){if(typeof f!="function")return!1;if(t(i(f)))return!0;if(!r){var p=s(f);return p==="[object GeneratorFunction]"}if(!a)return!1;if(typeof c>"u"){var v=l();c=v?a(v):!1}return a(f)===c},isGeneratorFunction}var isCallable,hasRequiredIsCallable;function requireIsCallable(){if(hasRequiredIsCallable)return isCallable;hasRequiredIsCallable=1;var e=Function.prototype.toString,n=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,t,r;if(typeof n=="function"&&typeof Object.defineProperty=="function")try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},n(function(){throw 42},null,t)}catch(E){E!==r&&(n=null)}else n=null;var a=/^\s*class\b/,s=function(V){try{var A=e.call(V);return a.test(A)}catch{return!1}},i=function(V){try{return s(V)?!1:(e.call(V),!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,b=!(0 in[,]),C=function(){return!1};if(typeof document=="object"){var w=document.all;l.call(w)===l.call(document.all)&&(C=function(V){if((b||!V)&&(typeof V>"u"||typeof V=="object"))try{var A=l.call(V);return(A===p||A===v||A===m||A===c)&&V("")==null}catch{}return!1})}return isCallable=n?function(V){if(C(V))return!0;if(!V||typeof V!="function"&&typeof V!="object")return!1;try{n(V,null,t)}catch(A){if(A!==r)return!1}return!s(V)&&i(V)}:function(V){if(C(V))return!0;if(!V||typeof V!="function"&&typeof V!="object")return!1;if(g)return i(V);if(s(V))return!1;var A=l.call(V);return A!==d&&A!==f&&!/^\[object HTML/.test(A)?!1:i(V)},isCallable}var forEach_1,hasRequiredForEach;function requireForEach(){if(hasRequiredForEach)return forEach_1;hasRequiredForEach=1;var e=requireIsCallable(),n=Object.prototype.toString,t=Object.prototype.hasOwnProperty,r=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)},s=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),n.call(c)==="[object Array]"?r(c,d,p):typeof c=="string"?a(c,d,p):s(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(),n=typeof globalThis>"u"?commonjsGlobal:globalThis;return availableTypedArrays=function(){for(var r=[],a=0;a<e.length;a++)typeof n[e[a]]=="function"&&(r[r.length]=e[a]);return r},availableTypedArrays}var callBind={exports:{}},defineDataProperty,hasRequiredDefineDataProperty;function requireDefineDataProperty(){if(hasRequiredDefineDataProperty)return defineDataProperty;hasRequiredDefineDataProperty=1;var e=requireEsDefineProperty(),n=requireSyntax(),t=requireType(),r=requireGopd();return defineDataProperty=function(s,i,l){if(!s||typeof s!="object"&&typeof s!="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=!!r&&r(s,i);if(e)e(s,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)s[i]=l;else throw new n("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(),n=function(){return!!e};return n.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},hasPropertyDescriptors_1=n,hasPropertyDescriptors_1}var setFunctionLength,hasRequiredSetFunctionLength;function requireSetFunctionLength(){if(hasRequiredSetFunctionLength)return setFunctionLength;hasRequiredSetFunctionLength=1;var e=requireGetIntrinsic(),n=requireDefineDataProperty(),t=requireHasPropertyDescriptors()(),r=requireGopd(),a=requireType(),s=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||s(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&&r){var v=r(l,"length");v&&!v.configurable&&(f=!1),v&&!v.writable&&(p=!1)}return(f||p||!d)&&(t?n(l,"length",c,!0,!0):n(l,"length",c)),l},setFunctionLength}var applyBind,hasRequiredApplyBind;function requireApplyBind(){if(hasRequiredApplyBind)return applyBind;hasRequiredApplyBind=1;var e=requireFunctionBind(),n=requireFunctionApply(),t=requireActualApply();return applyBind=function(){return t(e,n,arguments)},applyBind}var hasRequiredCallBind;function requireCallBind(){return hasRequiredCallBind||(hasRequiredCallBind=1,function(e){var n=requireSetFunctionLength(),t=requireEsDefineProperty(),r=requireCallBindApplyHelpers(),a=requireApplyBind();e.exports=function(i){var l=r(arguments),c=i.length-(arguments.length-1);return n(l,1+(c>0?c:0),!0)},t?t(e.exports,"apply",{value:a}):e.exports.apply=a}(callBind)),callBind.exports}var whichTypedArray,hasRequiredWhichTypedArray;function requireWhichTypedArray(){if(hasRequiredWhichTypedArray)return whichTypedArray;hasRequiredWhichTypedArray=1;var e=requireForEach(),n=requireAvailableTypedArrays(),t=requireCallBind(),r=requireCallBound(),a=requireGopd(),s=r("Object.prototype.toString"),i=requireShams()(),l=typeof globalThis>"u"?commonjsGlobal:globalThis,c=n(),d=r("String.prototype.slice"),f=Object.getPrototypeOf,p=r("Array.prototype.indexOf",!0)||function(C,w){for(var E=0;E<C.length;E+=1)if(C[E]===w)return E;return-1},v={__proto__:null};i&&a&&f?e(c,function(b){var C=new l[b];if(Symbol.toStringTag in C){var w=f(C),E=a(w,Symbol.toStringTag);if(!E){var V=f(w);E=a(V,Symbol.toStringTag)}v["$"+b]=t(E.get)}}):e(c,function(b){var C=new l[b],w=C.slice||C.set;w&&(v["$"+b]=t(w))});var m=function(C){var w=!1;return e(v,function(E,V){if(!w)try{"$"+E(C)===V&&(w=d(V,1))}catch{}}),w},g=function(C){var w=!1;return e(v,function(E,V){if(!w)try{E(C),w=d(V,1)}catch{}}),w};return whichTypedArray=function(C){if(!C||typeof C!="object")return!1;if(!i){var w=d(s(C),8,-1);return p(c,w)>-1?w:w!=="Object"?!1:g(C)}return a?m(C):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 n=requireIsArguments(),t=requireIsGeneratorFunction(),r=requireWhichTypedArray(),a=requireIsTypedArray();function s(H){return H.call.bind(H)}var i=typeof BigInt<"u",l=typeof Symbol<"u",c=s(Object.prototype.toString),d=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(i)var v=s(BigInt.prototype.valueOf);if(l)var m=s(Symbol.prototype.valueOf);function g(H,Qe){if(typeof H!="object")return!1;try{return Qe(H),!0}catch{return!1}}e.isArgumentsObject=n,e.isGeneratorFunction=t,e.isTypedArray=a;function b(H){return typeof Promise<"u"&&H instanceof Promise||H!==null&&typeof H=="object"&&typeof H.then=="function"&&typeof H.catch=="function"}e.isPromise=b;function C(H){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(H):a(H)||B(H)}e.isArrayBufferView=C;function w(H){return r(H)==="Uint8Array"}e.isUint8Array=w;function E(H){return r(H)==="Uint8ClampedArray"}e.isUint8ClampedArray=E;function V(H){return r(H)==="Uint16Array"}e.isUint16Array=V;function A(H){return r(H)==="Uint32Array"}e.isUint32Array=A;function P(H){return r(H)==="Int8Array"}e.isInt8Array=P;function O(H){return r(H)==="Int16Array"}e.isInt16Array=O;function I(H){return r(H)==="Int32Array"}e.isInt32Array=I;function R(H){return r(H)==="Float32Array"}e.isFloat32Array=R;function Z(H){return r(H)==="Float64Array"}e.isFloat64Array=Z;function se(H){return r(H)==="BigInt64Array"}e.isBigInt64Array=se;function z(H){return r(H)==="BigUint64Array"}e.isBigUint64Array=z;function ie(H){return c(H)==="[object Map]"}ie.working=typeof Map<"u"&&ie(new Map);function Q(H){return typeof Map>"u"?!1:ie.working?ie(H):H instanceof Map}e.isMap=Q;function ae(H){return c(H)==="[object Set]"}ae.working=typeof Set<"u"&&ae(new Set);function we(H){return typeof Set>"u"?!1:ae.working?ae(H):H instanceof Set}e.isSet=we;function me(H){return c(H)==="[object WeakMap]"}me.working=typeof WeakMap<"u"&&me(new WeakMap);function fe(H){return typeof WeakMap>"u"?!1:me.working?me(H):H instanceof WeakMap}e.isWeakMap=fe;function T(H){return c(H)==="[object WeakSet]"}T.working=typeof WeakSet<"u"&&T(new WeakSet);function M(H){return T(H)}e.isWeakSet=M;function G(H){return c(H)==="[object ArrayBuffer]"}G.working=typeof ArrayBuffer<"u"&&G(new ArrayBuffer);function ne(H){return typeof ArrayBuffer>"u"?!1:G.working?G(H):H instanceof ArrayBuffer}e.isArrayBuffer=ne;function he(H){return c(H)==="[object DataView]"}he.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&he(new DataView(new ArrayBuffer(1),0,1));function B(H){return typeof DataView>"u"?!1:he.working?he(H):H instanceof DataView}e.isDataView=B;var U=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function q(H){return c(H)==="[object SharedArrayBuffer]"}function oe(H){return typeof U>"u"?!1:(typeof q.working>"u"&&(q.working=q(new U)),q.working?q(H):H instanceof U)}e.isSharedArrayBuffer=oe;function ee(H){return c(H)==="[object AsyncFunction]"}e.isAsyncFunction=ee;function le(H){return c(H)==="[object Map Iterator]"}e.isMapIterator=le;function ue(H){return c(H)==="[object Set Iterator]"}e.isSetIterator=ue;function te(H){return c(H)==="[object Generator]"}e.isGeneratorObject=te;function ce(H){return c(H)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ce;function ge(H){return g(H,d)}e.isNumberObject=ge;function Se(H){return g(H,f)}e.isStringObject=Se;function ye(H){return g(H,p)}e.isBooleanObject=ye;function Te(H){return i&&g(H,v)}e.isBigIntObject=Te;function Oe(H){return l&&g(H,m)}e.isSymbolObject=Oe;function Ue(H){return ge(H)||Se(H)||ye(H)||Te(H)||Oe(H)}e.isBoxedPrimitive=Ue;function ze(H){return typeof Uint8Array<"u"&&(ne(H)||oe(H))}e.isAnyArrayBuffer=ze,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(H){Object.defineProperty(e,H,{enumerable:!1,value:function(){throw new Error(H+" is not supported in userland")}})})}(types)),types}var isBufferBrowser,hasRequiredIsBufferBrowser;function requireIsBufferBrowser(){return hasRequiredIsBufferBrowser||(hasRequiredIsBufferBrowser=1,isBufferBrowser=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.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(n,t){t&&(n.super_=t,n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(n,t){if(t){n.super_=t;var r=function(){};r.prototype=t.prototype,n.prototype=new r,n.prototype.constructor=n}}),inherits_browser.exports}var hasRequiredUtil;function requireUtil(){return hasRequiredUtil||(hasRequiredUtil=1,function(e){var n={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LfqqfcZAAAAACbkbPaHRZTIFpKZGAPZBDkwBKhe",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_29464_PXQWZGIBRNUKUSQG",COLORTERM:"truecolor",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"2HR07S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EXEPATH:"C:\\Program Files\\Git\\bin",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",GIT_ASKPASS:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\duncan.sanderson",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\duncan.sanderson",HOSTNAME:"2HR07S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LANG:"en_US.UTF-8",LOCALAPPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE_ENV:"production",NODE_PATH:"C:\\Users\\duncan.sanderson\\AppData\\npm",npm_config_user_agent:"yarn/4.3.1 npm/? node/v18.19.1 win32 x64",npm_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a\\node",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.7.2",NUMBER_OF_PROCESSORS:"8",OneDrive:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",OneDriveCommercial:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin",ORIGINAL_TEMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",PATH:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-75c6f032;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-5dadc7c5;C:\\Users\\duncan.sanderson\\.volta\\bin;C:\\Users\\duncan.sanderson\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",ProgramData:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",PYTHON:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_AGENT_PID:"972",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SSH_AUTH_SOCK:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp/ssh-zzwbzPFLwOHn/agent.971",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TERM:"xterm-256color",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.96.2",TMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"duncan.sanderson",USERPROFILE:"C:\\Users\\duncan.sanderson",VOLTA_HOME:"C:/Users/duncan.sanderson/.volta",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",VSCODE_GIT_ASKPASS_MAIN:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-4a2d75133c-sock",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/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(U){for(var q=Object.keys(U),oe={},ee=0;ee<q.length;ee++)oe[q[ee]]=Object.getOwnPropertyDescriptor(U,q[ee]);return oe},r=/%[sdj%]/g;e.format=function(B){if(!O(B)){for(var U=[],q=0;q<arguments.length;q++)U.push(l(arguments[q]));return U.join(" ")}for(var q=1,oe=arguments,ee=oe.length,le=String(B).replace(r,function(te){if(te==="%%")return"%";if(q>=ee)return te;switch(te){case"%s":return String(oe[q++]);case"%d":return Number(oe[q++]);case"%j":try{return JSON.stringify(oe[q++])}catch{return"[Circular]"}default:return te}}),ue=oe[q];q<ee;ue=oe[++q])V(ue)||!se(ue)?le+=" "+ue:le+=" "+l(ue);return le},e.deprecate=function(B,U){if(typeof process<"u"&&process.noDeprecation===!0)return B;if(typeof process>"u")return function(){return e.deprecate(B,U).apply(this,arguments)};var q=!1;function oe(){if(!q){if(process.throwDeprecation)throw new Error(U);process.traceDeprecation?console.trace(U):console.error(U),q=!0}return B.apply(this,arguments)}return oe};var a={},s=/^$/;if(n.NODE_DEBUG){var i=n.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+i+"$","i")}e.debuglog=function(B){if(B=B.toUpperCase(),!a[B])if(s.test(B)){var U=process.pid;a[B]=function(){var q=e.format.apply(e,arguments);console.error("%s %d: %s",B,U,q)}}else a[B]=function(){};return a[B]};function l(B,U){var q={seen:[],stylize:d};return arguments.length>=3&&(q.depth=arguments[2]),arguments.length>=4&&(q.colors=arguments[3]),E(U)?q.showHidden=U:U&&e._extend(q,U),R(q.showHidden)&&(q.showHidden=!1),R(q.depth)&&(q.depth=2),R(q.colors)&&(q.colors=!1),R(q.customInspect)&&(q.customInspect=!0),q.colors&&(q.stylize=c),p(q,B,q.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(B,U){var q=l.styles[U];return q?"\x1B["+l.colors[q][0]+"m"+B+"\x1B["+l.colors[q][1]+"m":B}function d(B,U){return B}function f(B){var U={};return B.forEach(function(q,oe){U[q]=!0}),U}function p(B,U,q){if(B.customInspect&&U&&Q(U.inspect)&&U.inspect!==e.inspect&&!(U.constructor&&U.constructor.prototype===U)){var oe=U.inspect(q,B);return O(oe)||(oe=p(B,oe,q)),oe}var ee=v(B,U);if(ee)return ee;var le=Object.keys(U),ue=f(le);if(B.showHidden&&(le=Object.getOwnPropertyNames(U)),ie(U)&&(le.indexOf("message")>=0||le.indexOf("description")>=0))return m(U);if(le.length===0){if(Q(U)){var te=U.name?": "+U.name:"";return B.stylize("[Function"+te+"]","special")}if(Z(U))return B.stylize(RegExp.prototype.toString.call(U),"regexp");if(z(U))return B.stylize(Date.prototype.toString.call(U),"date");if(ie(U))return m(U)}var ce="",ge=!1,Se=["{","}"];if(w(U)&&(ge=!0,Se=["[","]"]),Q(U)){var ye=U.name?": "+U.name:"";ce=" [Function"+ye+"]"}if(Z(U)&&(ce=" "+RegExp.prototype.toString.call(U)),z(U)&&(ce=" "+Date.prototype.toUTCString.call(U)),ie(U)&&(ce=" "+m(U)),le.length===0&&(!ge||U.length==0))return Se[0]+ce+Se[1];if(q<0)return Z(U)?B.stylize(RegExp.prototype.toString.call(U),"regexp"):B.stylize("[Object]","special");B.seen.push(U);var Te;return ge?Te=g(B,U,q,ue,le):Te=le.map(function(Oe){return b(B,U,q,ue,Oe,ge)}),B.seen.pop(),C(Te,ce,Se)}function v(B,U){if(R(U))return B.stylize("undefined","undefined");if(O(U)){var q="'"+JSON.stringify(U).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return B.stylize(q,"string")}if(P(U))return B.stylize(""+U,"number");if(E(U))return B.stylize(""+U,"boolean");if(V(U))return B.stylize("null","null")}function m(B){return"["+Error.prototype.toString.call(B)+"]"}function g(B,U,q,oe,ee){for(var le=[],ue=0,te=U.length;ue<te;++ue)M(U,String(ue))?le.push(b(B,U,q,oe,String(ue),!0)):le.push("");return ee.forEach(function(ce){ce.match(/^\d+$/)||le.push(b(B,U,q,oe,ce,!0))}),le}function b(B,U,q,oe,ee,le){var ue,te,ce;if(ce=Object.getOwnPropertyDescriptor(U,ee)||{value:U[ee]},ce.get?ce.set?te=B.stylize("[Getter/Setter]","special"):te=B.stylize("[Getter]","special"):ce.set&&(te=B.stylize("[Setter]","special")),M(oe,ee)||(ue="["+ee+"]"),te||(B.seen.indexOf(ce.value)<0?(V(q)?te=p(B,ce.value,null):te=p(B,ce.value,q-1),te.indexOf(`
|
|
195
195
|
`)>-1&&(le?te=te.split(`
|
|
196
196
|
`).map(function(ge){return" "+ge}).join(`
|
|
197
197
|
`).slice(2):te=`
|
|
198
198
|
`+te.split(`
|
|
199
199
|
`).map(function(ge){return" "+ge}).join(`
|
|
200
|
-
`))):te=B.stylize("[Circular]","special")),
|
|
200
|
+
`))):te=B.stylize("[Circular]","special")),R(ue)){if(le&&ee.match(/^\d+$/))return te;ue=JSON.stringify(""+ee),ue.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ue=ue.slice(1,-1),ue=B.stylize(ue,"name")):(ue=ue.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ue=B.stylize(ue,"string"))}return ue+": "+te}function C(B,U,q){var oe=B.reduce(function(ee,le){return le.indexOf(`
|
|
201
201
|
`)>=0,ee+le.replace(/\u001b\[\d\d?m/g,"").length+1},0);return oe>60?q[0]+(U===""?"":U+`
|
|
202
202
|
`)+" "+B.join(`,
|
|
203
|
-
`)+" "+q[1]:q[0]+U+" "+B.join(", ")+" "+q[1]}e.types=requireTypes();function w(B){return Array.isArray(B)}e.isArray=w;function E(B){return typeof B=="boolean"}e.isBoolean=E;function V(B){return B===null}e.isNull=V;function A(B){return B==null}e.isNullOrUndefined=A;function
|
|
203
|
+
`)+" "+q[1]:q[0]+U+" "+B.join(", ")+" "+q[1]}e.types=requireTypes();function w(B){return Array.isArray(B)}e.isArray=w;function E(B){return typeof B=="boolean"}e.isBoolean=E;function V(B){return B===null}e.isNull=V;function A(B){return B==null}e.isNullOrUndefined=A;function P(B){return typeof B=="number"}e.isNumber=P;function O(B){return typeof B=="string"}e.isString=O;function I(B){return typeof B=="symbol"}e.isSymbol=I;function R(B){return B===void 0}e.isUndefined=R;function Z(B){return se(B)&&we(B)==="[object RegExp]"}e.isRegExp=Z,e.types.isRegExp=Z;function se(B){return typeof B=="object"&&B!==null}e.isObject=se;function z(B){return se(B)&&we(B)==="[object Date]"}e.isDate=z,e.types.isDate=z;function ie(B){return se(B)&&(we(B)==="[object Error]"||B instanceof Error)}e.isError=ie,e.types.isNativeError=ie;function Q(B){return typeof B=="function"}e.isFunction=Q;function ae(B){return B===null||typeof B=="boolean"||typeof B=="number"||typeof B=="string"||typeof B=="symbol"||typeof B>"u"}e.isPrimitive=ae,e.isBuffer=requireIsBufferBrowser();function we(B){return Object.prototype.toString.call(B)}function me(B){return B<10?"0"+B.toString(10):B.toString(10)}var fe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(){var B=new Date,U=[me(B.getHours()),me(B.getMinutes()),me(B.getSeconds())].join(":");return[B.getDate(),fe[B.getMonth()],U].join(" ")}e.log=function(){console.log("%s - %s",T(),e.format.apply(e,arguments))},e.inherits=requireInherits_browser(),e._extend=function(B,U){if(!U||!se(U))return B;for(var q=Object.keys(U),oe=q.length;oe--;)B[q[oe]]=U[q[oe]];return B};function M(B,U){return Object.prototype.hasOwnProperty.call(B,U)}var G=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(U){if(typeof U!="function")throw new TypeError('The "original" argument must be of type Function');if(G&&U[G]){var q=U[G];if(typeof q!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(q,G,{value:q,enumerable:!1,writable:!1,configurable:!0}),q}function q(){for(var oe,ee,le=new Promise(function(ce,ge){oe=ce,ee=ge}),ue=[],te=0;te<arguments.length;te++)ue.push(arguments[te]);ue.push(function(ce,ge){ce?ee(ce):oe(ge)});try{U.apply(this,ue)}catch(ce){ee(ce)}return le}return Object.setPrototypeOf(q,Object.getPrototypeOf(U)),G&&Object.defineProperty(q,G,{value:q,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(q,t(U))},e.promisify.custom=G;function ne(B,U){if(!B){var q=new Error("Promise was rejected with a falsy value");q.reason=B,B=q}return U(B)}function he(B){if(typeof B!="function")throw new TypeError('The "original" argument must be of type Function');function U(){for(var q=[],oe=0;oe<arguments.length;oe++)q.push(arguments[oe]);var ee=q.pop();if(typeof ee!="function")throw new TypeError("The last argument must be of type Function");var le=this,ue=function(){return ee.apply(le,arguments)};B.apply(this,q).then(function(te){process.nextTick(ue.bind(null,null,te))},function(te){process.nextTick(ne.bind(null,te,ue))})}return Object.setPrototypeOf(U,Object.getPrototypeOf(B)),Object.defineProperties(U,t(B)),U}e.callbackify=he}(util)),util}var isArrayish,hasRequiredIsArrayish;function requireIsArrayish(){return hasRequiredIsArrayish||(hasRequiredIsArrayish=1,isArrayish=function(n){return n?n instanceof Array||Array.isArray(n)||n.length>=0&&n.splice instanceof Function:!1}),isArrayish}var errorEx_1,hasRequiredErrorEx;function requireErrorEx(){if(hasRequiredErrorEx)return errorEx_1;hasRequiredErrorEx=1;var e=requireUtil(),n=requireIsArrayish(),t=function(a,s){(!a||a.constructor!==String)&&(s=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 s)if(s.hasOwnProperty(g)){var b=s[g];"message"in b&&(m=b.message(this[g],m)||m,n(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 b in s)if(s.hasOwnProperty(b)){var C=s[b];if("line"in C){var w=C.line(this[b]);w&&m.splice(g++,0," "+w)}"stack"in C&&C.stack(this[b],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(r,a){return{message:function(s,i){return s=s||a,s&&(i[0]+=" "+r.replace("%s",s.toString())),i}}},t.line=function(r,a){return{line:function(s){return s=s||a,s?r.replace("%s",s.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},n=(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 b=m<=p?0:m-p,C=m+p>=f.length?f.length:m+p,w=(b===0?"":"...")+f.slice(b,C)+(C===f.length?"":"...");return{message:g+` while parsing ${f===w?"":"near "}${JSON.stringify(w)}`,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=n(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 r=Symbol.for("indent"),a=Symbol.for("newline"),s=/^\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(s)||[,"",""],b=JSON.parse(v,f);return b&&typeof b=="object"&&(b[a]=m,b[r]=g),b}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 n=`
|
|
207
|
-
`,t="\r",r=function(){function a(s){this.string=s;for(var i=[0],l=0;l<s.length;)switch(s[l]){case n:l+=n.length,i.push(l);break;case t:l+=t.length,s[l]===n&&(l+=n.length),i.push(l);break;default:l++;break}this.offsets=i}return a.prototype.locationForIndex=function(s){if(s<0||s>this.string.length)return null;for(var i=0,l=this.offsets;l[i+1]<=s;)i++;var c=s-l[i];return{line:i,column:c}},a.prototype.indexForLocation=function(s){var i=s.line,l=s.column;return i<0||i>=this.offsets.length||l<0||l>this.lengthOfLine(i)?null:this.offsets[i]+l},a.prototype.lengthOfLine=function(s){var i=this.offsets[s],l=s===this.offsets.length-1?this.string.length:this.offsets[s+1];return l-i},a}();e.LinesAndColumns=r,e.default=r}(build)),build}var lib$1={},picocolors_browser={exports:{}},hasRequiredPicocolors_browser;function requirePicocolors_browser(){if(hasRequiredPicocolors_browser)return picocolors_browser.exports;hasRequiredPicocolors_browser=1;var e=String,n=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,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return picocolors_browser.exports=n(),picocolors_browser.exports.createColors=n,picocolors_browser.exports}var 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 n={type:"invalid",value:e[0],closed:void 0};return e[1]?(n.type="string",n.closed=!!(e[3]||e[4])):e[5]?n.type="comment":e[6]?(n.type="comment",n.closed=!!e[7]):e[8]?n.type="regex":e[9]?n.type="number":e[10]?n.type="name":e[11]?n.type="punctuator":e[12]&&(n.type="whitespace"),n}),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ヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",n="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const t=new RegExp("["+e+"]"),r=new RegExp("["+e+n+"]");e=n=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,4,51,13,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,39,27,10,22,251,41,7,1,17,2,60,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,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,200,32,32,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,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,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,229,29,3,0,496,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],s=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,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,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,343,9,54,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,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,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,245,1,2,9,726,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&&r.test(String.fromCharCode(f)):i(f,a)||i(f,s)}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=s;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"]},n=new Set(e.keyword),t=new Set(e.strict),r=new Set(e.strictBind);function a(d,f){return f&&d==="await"||d==="enum"}function s(d,f){return a(d,f)||t.has(d)}function i(d){return r.has(d)}function l(d,f){return s(d,f)||i(d)}function c(d){return n.has(d)}return keyword}var hasRequiredLib$1;function requireLib$1(){return hasRequiredLib$1||(hasRequiredLib$1=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return n.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return n.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return n.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 n=requireIdentifier(),t=requireKeyword()}(lib)),lib}var hasRequiredLib;function requireLib(){if(hasRequiredLib)return lib$1;hasRequiredLib=1;var e={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LfqqfcZAAAAACbkbPaHRZTIFpKZGAPZBDkwBKhe",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_15348_CWGUUHKPCRTIGFCZ",COLORTERM:"truecolor",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"2HR07S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EXEPATH:"C:\\Program Files\\Git\\bin",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",GIT_ASKPASS:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\duncan.sanderson",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\duncan.sanderson",HOSTNAME:"2HR07S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LANG:"en_US.UTF-8",LOCALAPPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE_ENV:"production",NODE_PATH:"C:\\Users\\duncan.sanderson\\AppData\\npm",npm_config_user_agent:"yarn/4.3.1 npm/? node/v18.19.1 win32 x64",npm_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579\\node",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.7.1",NUMBER_OF_PROCESSORS:"8",OneDrive:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",OneDriveCommercial:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin",ORIGINAL_TEMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",PATH:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-274ceb4d;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-4df2ce3c;C:\\Users\\duncan.sanderson\\.volta\\bin;C:\\Users\\duncan.sanderson\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",ProgramData:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",PYTHON:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_AGENT_PID:"1838",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SSH_AUTH_SOCK:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp/ssh-uR4B1I3vN93q/agent.1837",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TERM:"xterm-256color",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.96.2",TMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"duncan.sanderson",USERPROFILE:"C:\\Users\\duncan.sanderson",VOLTA_HOME:"C:/Users/duncan.sanderson/.volta",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",VSCODE_GIT_ASKPASS_MAIN:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-4a2d75133c-sock",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/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});var n=requirePicocolors_browser(),t=requireJsTokens(),r=requireLib$1();function a(){return typeof process=="object"&&(e.FORCE_COLOR==="0"||e.FORCE_COLOR==="false")?!1:n.isColorSupported}const s=(A,$)=>O=>A($(O));function i(A){return{keyword:A.cyan,capitalized:A.yellow,jsxIdentifier:A.yellow,punctuator:A.yellow,number:A.magenta,string:A.green,regex:A.magenta,comment:A.gray,invalid:s(s(A.white,A.bgRed),A.bold),gutter:A.gray,marker:s(A.red,A.bold),message:s(A.red,A.bold),reset:A.reset}}const l=i(n.createColors(!0)),c=i(n.createColors(!1));function d(A){return A?l:c}const f=new Set(["as","async","from","get","of","set"]),p=/\r\n|[\n\r\u2028\u2029]/,v=/^[()[\]{}]$/;let m;{const A=/^[a-z][\w-]*$/i,$=function(O,I,L){if(O.type==="name"){if(r.isKeyword(O.value)||r.isStrictReservedWord(O.value,!0)||f.has(O.value))return"keyword";if(A.test(O.value)&&(L[I-1]==="<"||L.slice(I-2,I)==="</"))return"jsxIdentifier";if(O.value[0]!==O.value[0].toLowerCase())return"capitalized"}return O.type==="punctuator"&&v.test(O.value)?"bracket":O.type==="invalid"&&(O.value==="@"||O.value==="#")?"punctuator":O.type};m=function*(O){let I;for(;I=t.default.exec(O);){const L=t.matchToToken(I);yield{type:$(L,I.index,O),value:L.value}}}}function g(A){if(A==="")return"";const $=d(!0);let O="";for(const{type:I,value:L}of m(A))I in $?O+=L.split(p).map(Z=>$[I](Z)).join(`
|
|
208
|
-
`):O+=
|
|
209
|
-
`,
|
|
207
|
+
`,t="\r",r=function(){function a(s){this.string=s;for(var i=[0],l=0;l<s.length;)switch(s[l]){case n:l+=n.length,i.push(l);break;case t:l+=t.length,s[l]===n&&(l+=n.length),i.push(l);break;default:l++;break}this.offsets=i}return a.prototype.locationForIndex=function(s){if(s<0||s>this.string.length)return null;for(var i=0,l=this.offsets;l[i+1]<=s;)i++;var c=s-l[i];return{line:i,column:c}},a.prototype.indexForLocation=function(s){var i=s.line,l=s.column;return i<0||i>=this.offsets.length||l<0||l>this.lengthOfLine(i)?null:this.offsets[i]+l},a.prototype.lengthOfLine=function(s){var i=this.offsets[s],l=s===this.offsets.length-1?this.string.length:this.offsets[s+1];return l-i},a}();e.LinesAndColumns=r,e.default=r}(build)),build}var lib$1={},picocolors_browser={exports:{}},hasRequiredPicocolors_browser;function requirePicocolors_browser(){if(hasRequiredPicocolors_browser)return picocolors_browser.exports;hasRequiredPicocolors_browser=1;var e=String,n=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,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return picocolors_browser.exports=n(),picocolors_browser.exports.createColors=n,picocolors_browser.exports}var 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 n={type:"invalid",value:e[0],closed:void 0};return e[1]?(n.type="string",n.closed=!!(e[3]||e[4])):e[5]?n.type="comment":e[6]?(n.type="comment",n.closed=!!e[7]):e[8]?n.type="regex":e[9]?n.type="number":e[10]?n.type="name":e[11]?n.type="punctuator":e[12]&&(n.type="whitespace"),n}),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ヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",n="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const t=new RegExp("["+e+"]"),r=new RegExp("["+e+n+"]");e=n=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,4,51,13,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,39,27,10,22,251,41,7,1,17,2,60,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,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,200,32,32,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,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,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,229,29,3,0,496,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],s=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,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,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,343,9,54,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,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,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,245,1,2,9,726,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&&r.test(String.fromCharCode(f)):i(f,a)||i(f,s)}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=s;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"]},n=new Set(e.keyword),t=new Set(e.strict),r=new Set(e.strictBind);function a(d,f){return f&&d==="await"||d==="enum"}function s(d,f){return a(d,f)||t.has(d)}function i(d){return r.has(d)}function l(d,f){return s(d,f)||i(d)}function c(d){return n.has(d)}return keyword}var hasRequiredLib$1;function requireLib$1(){return hasRequiredLib$1||(hasRequiredLib$1=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return n.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return n.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return n.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 n=requireIdentifier(),t=requireKeyword()}(lib)),lib}var hasRequiredLib;function requireLib(){if(hasRequiredLib)return lib$1;hasRequiredLib=1;var e={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LfqqfcZAAAAACbkbPaHRZTIFpKZGAPZBDkwBKhe",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_29464_PXQWZGIBRNUKUSQG",COLORTERM:"truecolor",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"2HR07S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EXEPATH:"C:\\Program Files\\Git\\bin",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",GIT_ASKPASS:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\duncan.sanderson",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\duncan.sanderson",HOSTNAME:"2HR07S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LANG:"en_US.UTF-8",LOCALAPPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE_ENV:"production",NODE_PATH:"C:\\Users\\duncan.sanderson\\AppData\\npm",npm_config_user_agent:"yarn/4.3.1 npm/? node/v18.19.1 win32 x64",npm_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a\\node",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.7.2",NUMBER_OF_PROCESSORS:"8",OneDrive:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",OneDriveCommercial:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin",ORIGINAL_TEMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",PATH:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-75c6f032;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-5dadc7c5;C:\\Users\\duncan.sanderson\\.volta\\bin;C:\\Users\\duncan.sanderson\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",ProgramData:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",PYTHON:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_AGENT_PID:"972",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SSH_AUTH_SOCK:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp/ssh-zzwbzPFLwOHn/agent.971",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TERM:"xterm-256color",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.96.2",TMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"duncan.sanderson",USERPROFILE:"C:\\Users\\duncan.sanderson",VOLTA_HOME:"C:/Users/duncan.sanderson/.volta",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",VSCODE_GIT_ASKPASS_MAIN:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-4a2d75133c-sock",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/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});var n=requirePicocolors_browser(),t=requireJsTokens(),r=requireLib$1();function a(){return typeof process=="object"&&(e.FORCE_COLOR==="0"||e.FORCE_COLOR==="false")?!1:n.isColorSupported}const s=(A,P)=>O=>A(P(O));function i(A){return{keyword:A.cyan,capitalized:A.yellow,jsxIdentifier:A.yellow,punctuator:A.yellow,number:A.magenta,string:A.green,regex:A.magenta,comment:A.gray,invalid:s(s(A.white,A.bgRed),A.bold),gutter:A.gray,marker:s(A.red,A.bold),message:s(A.red,A.bold),reset:A.reset}}const l=i(n.createColors(!0)),c=i(n.createColors(!1));function d(A){return A?l:c}const f=new Set(["as","async","from","get","of","set"]),p=/\r\n|[\n\r\u2028\u2029]/,v=/^[()[\]{}]$/;let m;{const A=/^[a-z][\w-]*$/i,P=function(O,I,R){if(O.type==="name"){if(r.isKeyword(O.value)||r.isStrictReservedWord(O.value,!0)||f.has(O.value))return"keyword";if(A.test(O.value)&&(R[I-1]==="<"||R.slice(I-2,I)==="</"))return"jsxIdentifier";if(O.value[0]!==O.value[0].toLowerCase())return"capitalized"}return O.type==="punctuator"&&v.test(O.value)?"bracket":O.type==="invalid"&&(O.value==="@"||O.value==="#")?"punctuator":O.type};m=function*(O){let I;for(;I=t.default.exec(O);){const R=t.matchToToken(I);yield{type:P(R,I.index,O),value:R.value}}}}function g(A){if(A==="")return"";const P=d(!0);let O="";for(const{type:I,value:R}of m(A))I in P?O+=R.split(p).map(Z=>P[I](Z)).join(`
|
|
208
|
+
`):O+=R;return O}let b=!1;const C=/\r\n|[\n\r\u2028\u2029]/;function w(A,P,O){const I=Object.assign({column:0,line:-1},A.start),R=Object.assign({},I,A.end),{linesAbove:Z=2,linesBelow:se=3}=O||{},z=I.line,ie=I.column,Q=R.line,ae=R.column;let we=Math.max(z-(Z+1),0),me=Math.min(P.length,Q+se);z===-1&&(we=0),Q===-1&&(me=P.length);const fe=Q-z,T={};if(fe)for(let M=0;M<=fe;M++){const G=M+z;if(!ie)T[G]=!0;else if(M===0){const ne=P[G-1].length;T[G]=[ie,ne-ie+1]}else if(M===fe)T[G]=[0,ae];else{const ne=P[G-M].length;T[G]=[0,ne]}}else ie===ae?ie?T[z]=[ie,0]:T[z]=!0:T[z]=[ie,ae-ie];return{start:we,end:me,markerLines:T}}function E(A,P,O={}){const I=O.forceColor||a()&&O.highlightCode,R=d(I),Z=A.split(C),{start:se,end:z,markerLines:ie}=w(P,Z,O),Q=P.start&&typeof P.start.column=="number",ae=String(z).length;let me=(I?g(A):A).split(C,z).slice(se,z).map((fe,T)=>{const M=se+1+T,ne=` ${` ${M}`.slice(-ae)} |`,he=ie[M],B=!ie[M+1];if(he){let U="";if(Array.isArray(he)){const q=fe.slice(0,Math.max(he[0]-1,0)).replace(/[^\t]/g," "),oe=he[1]||1;U=[`
|
|
209
|
+
`,R.gutter(ne.replace(/\d/g," "))," ",q,R.marker("^").repeat(oe)].join(""),B&&O.message&&(U+=" "+R.message(O.message))}return[R.marker(">"),R.gutter(ne),fe.length>0?` ${fe}`:"",U].join("")}else return` ${R.gutter(ne)}${fe.length>0?` ${fe}`:""}`}).join(`
|
|
210
210
|
`);return O.message&&!Q&&(me=`${" ".repeat(ae+1)}${O.message}
|
|
211
|
-
${me}`),I?
|
|
211
|
+
${me}`),I?R.reset(me):me}function V(A,P,O,I={}){if(!b){b=!0;const Z="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(Z,"DeprecationWarning");else{const se=new Error(Z);se.name="DeprecationWarning",console.warn(new Error(Z))}}return O=Math.max(O,0),E(A,{start:{column:O,line:P}},I)}return lib$1.codeFrameColumns=E,lib$1.default=V,lib$1.highlight=g,lib$1}var parseJson_1,hasRequiredParseJson;function requireParseJson(){if(hasRequiredParseJson)return parseJson_1;hasRequiredParseJson=1;const e=requireErrorEx(),n=requireJsonParseEvenBetterErrors(),{default:t}=requireBuild(),{codeFrameColumns:r}=requireLib(),a=e("JSONError",{fileName:e.append("in %s"),codeFrame:e.append(`
|
|
212
212
|
|
|
213
213
|
%s
|
|
214
214
|
`)}),s=(i,l,c)=>{typeof l=="string"&&(c=l,l=null);try{try{return JSON.parse(i,l)}catch(d){throw n(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),b=r(i,{start:{line:g.line+1,column:g.column+1}},{highlightCode:!0});p.codeFrame=b}throw p}};return s.JSONError=a,parseJson_1=s,parseJson_1}function _typeof(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(n){return typeof n}:_typeof=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof(e)}function _classCallCheck(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,n,t){return n&&_defineProperties(e.prototype,n),t&&_defineProperties(e,t),e}function _defineProperty(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function _inherits(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&_setPrototypeOf(e,n)}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(e)}function _setPrototypeOf(e,n){return _setPrototypeOf=Object.setPrototypeOf||function(r,a){return r.__proto__=a,r},_setPrototypeOf(e,n)}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,n,t){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(a,s,i){var l=[null];l.push.apply(l,s);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 n=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(r){if(r===null||!_isNativeFunction(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(r))return n.get(r);n.set(r,a)}function a(){return _construct(r,arguments,_getPrototypeOf(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(a,r)},_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,n){return n&&(typeof n=="object"||typeof n=="function")?n:_assertThisInitialized(e)}function _createSuper(e){var n=_isNativeReflectConstruct();return function(){var r=_getPrototypeOf(e),a;if(n){var s=_getPrototypeOf(this).constructor;a=Reflect.construct(r,arguments,s)}else a=r.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _superPropBase(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&(e=_getPrototypeOf(e),e!==null););return e}function _get(e,n,t){return typeof Reflect<"u"&&Reflect.get?_get=Reflect.get:_get=function(a,s,i){var l=_superPropBase(a,s);if(l){var c=Object.getOwnPropertyDescriptor(l,s);return c.get?c.get.call(i):c.value}},_get(e,n,t||e)}function _slicedToArray(e,n){return _arrayWithHoles(e)||_iterableToArrayLimit(e,n)||_unsupportedIterableToArray(e,n)||_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,n){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var t=[],r=!0,a=!1,s=void 0;try{for(var i=e[Symbol.iterator](),l;!(r=(l=i.next()).done)&&(t.push(l.value),!(n&&t.length===n));r=!0);}catch(c){a=!0,s=c}finally{try{!r&&i.return!=null&&i.return()}finally{if(a)throw s}}return t}}function _unsupportedIterableToArray(e,n){if(e){if(typeof e=="string")return _arrayLikeToArray(e,n);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,n)}}function _arrayLikeToArray(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
@@ -242,7 +242,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
242
242
|
`))}delete this.source}}}]),t}(_wrapNativeSuper(Error)),YAMLReferenceError=function(e){_inherits(t,e);var n=_createSuper(t);function t(r,a){return _classCallCheck(this,t),n.call(this,"YAMLReferenceError",r,a)}return t}(YAMLError),YAMLSemanticError=function(e){_inherits(t,e);var n=_createSuper(t);function t(r,a){return _classCallCheck(this,t),n.call(this,"YAMLSemanticError",r,a)}return t}(YAMLError),YAMLSyntaxError=function(e){_inherits(t,e);var n=_createSuper(t);function t(r,a){return _classCallCheck(this,t),n.call(this,"YAMLSyntaxError",r,a)}return t}(YAMLError),YAMLWarning=function(e){_inherits(t,e);var n=_createSuper(t);function t(r,a){return _classCallCheck(this,t),n.call(this,"YAMLWarning",r,a)}return t}(YAMLError),PlainValue=function(e){_inherits(t,e);var n=_createSuper(t);function t(){return _classCallCheck(this,t),n.apply(this,arguments)}return _createClass(t,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;for(var a=this.valueRange,s=a.start,i=a.end,l=this.context.src,c=l[i-1];s<i&&(c===`
|
|
243
243
|
`||c===" "||c===" ");)c=l[--i-1];for(var d="",f=s;f<i;++f){var p=l[f];if(p===`
|
|
244
244
|
`){var v=Node$1.foldNewline(l,f,-1),m=v.fold,g=v.offset;d+=m,f=g}else if(p===" "||p===" "){for(var b=f,C=l[f+1];f<i&&(C===" "||C===" ");)f+=1,C=l[f+1];C!==`
|
|
245
|
-
`&&(d+=f>b?l.slice(b,f+1):p)}else d+=p}var w=l[s];switch(w){case" ":{var E="Plain value cannot start with a tab character",V=[new YAMLSemanticError(this,E)];return{errors:V,str:d}}case"@":case"`":{var A="Plain value cannot start with reserved character ".concat(w)
|
|
245
|
+
`&&(d+=f>b?l.slice(b,f+1):p)}else d+=p}var w=l[s];switch(w){case" ":{var E="Plain value cannot start with a tab character",V=[new YAMLSemanticError(this,E)];return{errors:V,str:d}}case"@":case"`":{var A="Plain value cannot start with reserved character ".concat(w),P=[new YAMLSemanticError(this,A)];return{errors:P,str:d}}default:return d}}},{key:"parseBlockValue",value:function(a){for(var s=this.context,i=s.indent,l=s.inFlow,c=s.src,d=a,f=a,p=c[d];p===`
|
|
246
246
|
`&&!Node$1.atDocumentBoundary(c,d+1);p=c[d]){var v=Node$1.endOfBlockIndent(c,i,d+1);if(v===null||c[v]==="#")break;c[v]===`
|
|
247
247
|
`?d=v:(f=t.endOfLine(c,v,l),d=f)}return this.valueRange.isEmpty()&&(this.valueRange.start=a),this.valueRange.end=f,f}},{key:"parse",value:function(a,s){this.context=a;var i=a.inFlow,l=a.src,c=s,d=l[c];return d&&d!=="#"&&d!==`
|
|
248
248
|
`&&(c=t.endOfLine(l,s,i)),this.valueRange=new Range(s,c),c=Node$1.endOfWhiteSpace(l,c),c=this.parseComment(c),(!this.hasComment||this.valueRange.isEmpty())&&(c=this.parseBlockValue(c)),c}}],[{key:"endOfLine",value:function(a,s,i){for(var l=a[s],c=s;l&&l!==`
|
|
@@ -253,7 +253,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
253
253
|
`||v==="#";){if(m&&v===`
|
|
254
254
|
`&&!g){var b=new BlankLine;if(p=b.parse({src:l},p),this.valueRange.end=p,p>=l.length){v=null;break}this.items.push(b),p-=1}else if(v==="#"){if(p<c+f&&!t.nextContentHasIndent(l,p,f))return p;var C=new Comment;if(p=C.parse({indent:f,lineStart:c,src:l},p),this.items.push(C),this.valueRange.end=p,p>=l.length){v=null;break}}if(c=p+1,p=Node$1.endOfIndent(l,c),Node$1.atBlank(l,p)){var w=Node$1.endOfWhiteSpace(l,p),E=l[w];(!E||E===`
|
|
255
255
|
`||E==="#")&&(p=w)}v=l[p],m=!0}if(!v)break;if(p!==c+f&&(m||v!==":")){if(p<c+f){c>s&&(p=c);break}else if(!this.error){var V="All collection items must start at the same column";this.error=new YAMLSyntaxError(this,V)}}if(d.type===Type.SEQ_ITEM){if(v!=="-"){c>s&&(p=c);break}}else if(v==="-"&&!this.error){var A=l[p+1];if(!A||A===`
|
|
256
|
-
`||A===" "||A===" "){var
|
|
256
|
+
`||A===" "||A===" "){var P="A collection cannot be both a mapping and a sequence";this.error=new YAMLSyntaxError(this,P)}}var O=i({atLineStart:m,inCollection:!0,indent:f,lineStart:c,parent:this},p);if(!O)return p;if(this.items.push(O),this.valueRange.end=O.valueRange.end,p=Node$1.normalizeOffset(l,O.range.end),v=l[p],m=!1,g=O.includesTrailingLines,v){for(var I=p-1,R=l[I];R===" "||R===" ";)R=l[--I];R===`
|
|
257
257
|
`&&(c=I+1,m=!0)}var Z=grabCollectionEndComments(O);Z&&Array.prototype.push.apply(this.items,Z)}return p}},{key:"setOrigRanges",value:function(a,s){return s=_get(_getPrototypeOf(t.prototype),"setOrigRanges",this).call(this,a,s),this.items.forEach(function(i){s=i.setOrigRanges(a,s)}),s}},{key:"toString",value:function(){var a=this.context.src,s=this.items,i=this.range,l=this.value;if(l!=null)return l;for(var c=a.slice(i.start,s[0].range.start)+String(s[0]),d=1;d<s.length;++d){var f=s[d],p=f.context,v=p.atLineStart,m=p.indent;if(v)for(var g=0;g<m;++g)c+=" ";c+=String(f)}return Node$1.addStringTerminator(a,i.end,c)}}],[{key:"nextContentHasIndent",value:function(a,s,i){var l=Node$1.endOfLine(a,s)+1;s=Node$1.endOfWhiteSpace(a,l);var c=a[s];return c?s>=l+i?!0:c!=="#"&&c!==`
|
|
258
258
|
`?!1:t.nextContentHasIndent(a,s,i):!1}}]),t}(Node$1),Directive=function(e){_inherits(t,e);var n=_createSuper(t);function t(){var r;return _classCallCheck(this,t),r=n.call(this,Type.DIRECTIVE),r.name=null,r}return _createClass(t,[{key:"parameters",get:function(){var a=this.rawValue;return a?a.trim().split(/[ \t]+/):[]}},{key:"parseName",value:function(a){for(var s=this.context.src,i=a,l=s[i];l&&l!==`
|
|
259
259
|
`&&l!==" "&&l!==" ";)l=s[i+=1];return this.name=s.slice(a,i),i}},{key:"parseParameters",value:function(a){for(var s=this.context.src,i=a,l=s[i];l&&l!==`
|
|
@@ -266,11 +266,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
266
266
|
`),l}}],[{key:"startCommentOrEndBlankLine",value:function(a,s){var i=Node$1.endOfWhiteSpace(a,s),l=a[i];return l==="#"||l===`
|
|
267
267
|
`?i:s}}]),t}(Node$1),Alias$1=function(e){_inherits(t,e);var n=_createSuper(t);function t(){return _classCallCheck(this,t),n.apply(this,arguments)}return _createClass(t,[{key:"parse",value:function(a,s){this.context=a;var i=a.src,l=Node$1.endOfIdentifier(i,s+1);return this.valueRange=new Range(s+1,l),l=Node$1.endOfWhiteSpace(i,l),l=this.parseComment(l),l}}]),t}(Node$1),Chomp={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},BlockValue=function(e){_inherits(t,e);var n=_createSuper(t);function t(r,a){var s;return _classCallCheck(this,t),s=n.call(this,r,a),s.blockIndent=null,s.chomping=Chomp.CLIP,s.header=null,s}return _createClass(t,[{key:"includesTrailingLines",get:function(){return this.chomping===Chomp.KEEP}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var a=this.valueRange,s=a.start,i=a.end,l=this.context,c=l.indent,d=l.src;if(this.valueRange.isEmpty())return"";for(var f=null,p=d[i-1];p===`
|
|
268
268
|
`||p===" "||p===" ";){if(i-=1,i<=s){if(this.chomping===Chomp.KEEP)break;return""}p===`
|
|
269
|
-
`&&(f=i),p=d[i-1]}var v=i+1;f&&(this.chomping===Chomp.KEEP?(v=f,i=this.valueRange.end):i=f);for(var m=c+this.blockIndent,g=this.type===Type.BLOCK_FOLDED,b=!0,C="",w="",E=!1,V=s;V<i;++V){for(var A=0;A<m&&d[V]===" ";++A)V+=1;var
|
|
269
|
+
`&&(f=i),p=d[i-1]}var v=i+1;f&&(this.chomping===Chomp.KEEP?(v=f,i=this.valueRange.end):i=f);for(var m=c+this.blockIndent,g=this.type===Type.BLOCK_FOLDED,b=!0,C="",w="",E=!1,V=s;V<i;++V){for(var A=0;A<m&&d[V]===" ";++A)V+=1;var P=d[V];if(P===`
|
|
270
270
|
`)w===`
|
|
271
271
|
`?C+=`
|
|
272
272
|
`:w=`
|
|
273
|
-
`;else{var O=Node$1.endOfLine(d,V),I=d.slice(V,O);V=O,g&&(
|
|
273
|
+
`;else{var O=Node$1.endOfLine(d,V),I=d.slice(V,O);V=O,g&&(P===" "||P===" ")&&V<v?(w===" "?w=`
|
|
274
274
|
`:!E&&!b&&w===`
|
|
275
275
|
`&&(w=`
|
|
276
276
|
|
|
@@ -302,27 +302,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
302
302
|
`)},t}function addCommentBefore(e,n,t){if(!t)return e;var r=t.replace(/[\s\S]^/gm,"$&".concat(n,"#"));return"#".concat(r,`
|
|
303
303
|
`).concat(n).concat(e)}function addComment(e,n,t){return t?t.indexOf(`
|
|
304
304
|
`)===-1?"".concat(e," #").concat(t):"".concat(e,`
|
|
305
|
-
`)+t.replace(/^/gm,"".concat(n||"","#")):e}var Node=function e(){_classCallCheck(this,e)};function toJSON(e,n,t){if(Array.isArray(e))return e.map(function(s,i){return toJSON(s,String(i),t)});if(e&&typeof e.toJSON=="function"){var r=t&&t.anchors&&t.anchors.get(e);r&&(t.onCreate=function(s){r.res=s,delete t.onCreate});var a=e.toJSON(n,t);return r&&t.onCreate&&t.onCreate(a),a}return(!t||!t.keep)&&typeof e=="bigint"?Number(e):e}var Scalar=function(e){_inherits(t,e);var n=_createSuper(t);function t(r){var a;return _classCallCheck(this,t),a=n.call(this),a.value=r,a}return _createClass(t,[{key:"toJSON",value:function(a,s){return s&&s.keep?this.value:toJSON(this.value,a,s)}},{key:"toString",value:function(){return String(this.value)}}]),t}(Node);function collectionFromPath(e,n,t){for(var r=t,a=n.length-1;a>=0;--a){var s=n[a];if(Number.isInteger(s)&&s>=0){var i=[];i[s]=r,r=i}else{var l={};Object.defineProperty(l,s,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=l}}return e.createNode(r,!1)}var isEmptyPath=function e(n){return n==null||_typeof(n)==="object"&&n[Symbol.iterator]().next().done},Collection=function(e){_inherits(t,e);var n=_createSuper(t);function t(r){var a;return _classCallCheck(this,t),a=n.call(this),_defineProperty(_assertThisInitialized(a),"items",[]),a.schema=r,a}return _createClass(t,[{key:"addIn",value:function(a,s){if(isEmptyPath(a))this.add(s);else{var i=_toArray(a),l=i[0],c=i.slice(1),d=this.get(l,!0);if(d instanceof t)d.addIn(c,s);else if(d===void 0&&this.schema)this.set(l,collectionFromPath(this.schema,c,s));else throw new Error("Expected YAML collection at ".concat(l,". Remaining path: ").concat(c))}}},{key:"deleteIn",value:function(a){var s=_toArray(a),i=s[0],l=s.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,s){var i=_toArray(a),l=i[0],c=i.slice(1),d=this.get(l,!0);return c.length===0?!s&&d instanceof Scalar?d.value:d:d instanceof t?d.getIn(c,s):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every(function(a){if(!a||a.type!=="PAIR")return!1;var s=a.value;return s==null||s instanceof Scalar&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}},{key:"hasIn",value:function(a){var s=_toArray(a),i=s[0],l=s.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,s){var i=_toArray(a),l=i[0],c=i.slice(1);if(c.length===0)this.set(l,s);else{var d=this.get(l,!0);if(d instanceof t)d.setIn(c,s);else if(d===void 0&&this.schema)this.set(l,collectionFromPath(this.schema,c,s));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,s,i,l){var c=this,d=s.blockItem,f=s.flowChars,p=s.isMap,v=s.itemIndent,m=a,g=m.indent,b=m.indentStep,C=m.stringify,w=this.type===Type.FLOW_MAP||this.type===Type.FLOW_SEQ||a.inFlow;w&&(v+=b);var E=p&&this.hasAllNullValues();a=Object.assign({},a,{allNullValues:E,indent:v,inFlow:w,type:null});var V=!1,A=!1
|
|
306
|
-
`)&&(A=!0),w&&M<c.items.length-1&&(ne+=","),ne=addComment(ne,v,G),V&&(G||w)&&(V=!1),fe.push({type:"item",str:ne}),fe},[]),O;if(
|
|
305
|
+
`)+t.replace(/^/gm,"".concat(n||"","#")):e}var Node=function e(){_classCallCheck(this,e)};function toJSON(e,n,t){if(Array.isArray(e))return e.map(function(s,i){return toJSON(s,String(i),t)});if(e&&typeof e.toJSON=="function"){var r=t&&t.anchors&&t.anchors.get(e);r&&(t.onCreate=function(s){r.res=s,delete t.onCreate});var a=e.toJSON(n,t);return r&&t.onCreate&&t.onCreate(a),a}return(!t||!t.keep)&&typeof e=="bigint"?Number(e):e}var Scalar=function(e){_inherits(t,e);var n=_createSuper(t);function t(r){var a;return _classCallCheck(this,t),a=n.call(this),a.value=r,a}return _createClass(t,[{key:"toJSON",value:function(a,s){return s&&s.keep?this.value:toJSON(this.value,a,s)}},{key:"toString",value:function(){return String(this.value)}}]),t}(Node);function collectionFromPath(e,n,t){for(var r=t,a=n.length-1;a>=0;--a){var s=n[a];if(Number.isInteger(s)&&s>=0){var i=[];i[s]=r,r=i}else{var l={};Object.defineProperty(l,s,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=l}}return e.createNode(r,!1)}var isEmptyPath=function e(n){return n==null||_typeof(n)==="object"&&n[Symbol.iterator]().next().done},Collection=function(e){_inherits(t,e);var n=_createSuper(t);function t(r){var a;return _classCallCheck(this,t),a=n.call(this),_defineProperty(_assertThisInitialized(a),"items",[]),a.schema=r,a}return _createClass(t,[{key:"addIn",value:function(a,s){if(isEmptyPath(a))this.add(s);else{var i=_toArray(a),l=i[0],c=i.slice(1),d=this.get(l,!0);if(d instanceof t)d.addIn(c,s);else if(d===void 0&&this.schema)this.set(l,collectionFromPath(this.schema,c,s));else throw new Error("Expected YAML collection at ".concat(l,". Remaining path: ").concat(c))}}},{key:"deleteIn",value:function(a){var s=_toArray(a),i=s[0],l=s.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,s){var i=_toArray(a),l=i[0],c=i.slice(1),d=this.get(l,!0);return c.length===0?!s&&d instanceof Scalar?d.value:d:d instanceof t?d.getIn(c,s):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every(function(a){if(!a||a.type!=="PAIR")return!1;var s=a.value;return s==null||s instanceof Scalar&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}},{key:"hasIn",value:function(a){var s=_toArray(a),i=s[0],l=s.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,s){var i=_toArray(a),l=i[0],c=i.slice(1);if(c.length===0)this.set(l,s);else{var d=this.get(l,!0);if(d instanceof t)d.setIn(c,s);else if(d===void 0&&this.schema)this.set(l,collectionFromPath(this.schema,c,s));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,s,i,l){var c=this,d=s.blockItem,f=s.flowChars,p=s.isMap,v=s.itemIndent,m=a,g=m.indent,b=m.indentStep,C=m.stringify,w=this.type===Type.FLOW_MAP||this.type===Type.FLOW_SEQ||a.inFlow;w&&(v+=b);var E=p&&this.hasAllNullValues();a=Object.assign({},a,{allNullValues:E,indent:v,inFlow:w,type:null});var V=!1,A=!1,P=this.items.reduce(function(fe,T,M){var G;T&&(!V&&T.spaceBefore&&fe.push({type:"comment",str:""}),T.commentBefore&&T.commentBefore.match(/^.*$/gm).forEach(function(he){fe.push({type:"comment",str:"#".concat(he)})}),T.comment&&(G=T.comment),w&&(!V&&T.spaceBefore||T.commentBefore||T.comment||T.key&&(T.key.commentBefore||T.key.comment)||T.value&&(T.value.commentBefore||T.value.comment))&&(A=!0)),V=!1;var ne=C(T,a,function(){return G=null},function(){return V=!0});return w&&!A&&ne.includes(`
|
|
306
|
+
`)&&(A=!0),w&&M<c.items.length-1&&(ne+=","),ne=addComment(ne,v,G),V&&(G||w)&&(V=!1),fe.push({type:"item",str:ne}),fe},[]),O;if(P.length===0)O=f.start+f.end;else if(w){var I=f.start,R=f.end,Z=P.map(function(fe){return fe.str});if(A||Z.reduce(function(fe,T){return fe+T.length+2},2)>t.maxFlowStringSingleLineLength){O=I;var se=_createForOfIteratorHelper(Z),z;try{for(se.s();!(z=se.n()).done;){var ie=z.value;O+=ie?`
|
|
307
307
|
`.concat(b).concat(g).concat(ie):`
|
|
308
308
|
`}}catch(fe){se.e(fe)}finally{se.f()}O+=`
|
|
309
|
-
`.concat(g).concat(
|
|
309
|
+
`.concat(g).concat(R)}else O="".concat(I," ").concat(Z.join(" ")," ").concat(R)}else{var Q=P.map(d);O=Q.shift();var ae=_createForOfIteratorHelper(Q),we;try{for(ae.s();!(we=ae.n()).done;){var me=we.value;O+=me?`
|
|
310
310
|
`.concat(g).concat(me):`
|
|
311
311
|
`}}catch(fe){ae.e(fe)}finally{ae.f()}}return this.comment?(O+=`
|
|
312
|
-
`+this.comment.replace(/^/gm,"".concat(g,"#")),i&&i()):V&&l&&l(),O}}]),t}(Node);_defineProperty(Collection,"maxFlowStringSingleLineLength",60);function asItemIndex(e){var n=e instanceof Scalar?e.value:e;return n&&typeof n=="string"&&(n=Number(n)),Number.isInteger(n)&&n>=0?n:null}var YAMLSeq=function(e){_inherits(t,e);var n=_createSuper(t);function t(){return _classCallCheck(this,t),n.apply(this,arguments)}return _createClass(t,[{key:"add",value:function(a){this.items.push(a)}},{key:"delete",value:function(a){var s=asItemIndex(a);if(typeof s!="number")return!1;var i=this.items.splice(s,1);return i.length>0}},{key:"get",value:function(a,s){var i=asItemIndex(a);if(typeof i=="number"){var l=this.items[i];return!s&&l instanceof Scalar?l.value:l}}},{key:"has",value:function(a){var s=asItemIndex(a);return typeof s=="number"&&s<this.items.length}},{key:"set",value:function(a,s){var i=asItemIndex(a);if(typeof i!="number")throw new Error("Expected a valid index, not ".concat(a,"."));this.items[i]=s}},{key:"toJSON",value:function(a,s){var i=[];s&&s.onCreate&&s.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++),s))}}catch(p){c.e(p)}finally{c.f()}return i}},{key:"toString",value:function(a,s,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||"")+" "},s,i):JSON.stringify(this)}}]),t}(Collection),stringifyKey=function e(n,t,r){return t===null?"":_typeof(t)!=="object"?String(t):n instanceof Node&&r&&r.doc?n.toString({anchors:Object.create(null),doc:r.doc,indent:"",indentStep:r.indentStep,inFlow:!0,inStringifyKey:!0,stringify:r.stringify}):JSON.stringify(t)},Pair=function(e){_inherits(t,e);var n=_createSuper(t);function t(r){var a,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return _classCallCheck(this,t),a=n.call(this),a.key=r,a.value=s,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 s="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(s)}}},{key:"addToJSMap",value:function(a,s){var i=toJSON(this.key,"",a);if(s instanceof Map){var l=toJSON(this.value,i,a);s.set(i,l)}else if(s instanceof Set)s.add(i);else{var c=stringifyKey(this.key,i,a),d=toJSON(this.value,c,a);c in s?Object.defineProperty(s,c,{value:d,writable:!0,enumerable:!0,configurable:!0}):s[c]=d}return s}},{key:"toJSON",value:function(a,s){var i=s&&s.mapAsMap?new Map:{};return this.addToJSMap(s,i)}},{key:"toString",value:function(a,s,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 b=!f&&(!p||m||(p instanceof Node?p instanceof Collection||p.type===Type.BLOCK_FOLDED||p.type===Type.BLOCK_LITERAL:_typeof(p)==="object")),C=a,w=C.doc,E=C.indent,V=C.indentStep,A=C.stringify;a=Object.assign({},a,{implicitKey:!b,indent:E+V});var
|
|
313
|
-
`).concat(E,":"):"".concat(O,":"),this.comment&&(O=addComment(O,a.indent,this.comment),s&&s());var I="",
|
|
312
|
+
`+this.comment.replace(/^/gm,"".concat(g,"#")),i&&i()):V&&l&&l(),O}}]),t}(Node);_defineProperty(Collection,"maxFlowStringSingleLineLength",60);function asItemIndex(e){var n=e instanceof Scalar?e.value:e;return n&&typeof n=="string"&&(n=Number(n)),Number.isInteger(n)&&n>=0?n:null}var YAMLSeq=function(e){_inherits(t,e);var n=_createSuper(t);function t(){return _classCallCheck(this,t),n.apply(this,arguments)}return _createClass(t,[{key:"add",value:function(a){this.items.push(a)}},{key:"delete",value:function(a){var s=asItemIndex(a);if(typeof s!="number")return!1;var i=this.items.splice(s,1);return i.length>0}},{key:"get",value:function(a,s){var i=asItemIndex(a);if(typeof i=="number"){var l=this.items[i];return!s&&l instanceof Scalar?l.value:l}}},{key:"has",value:function(a){var s=asItemIndex(a);return typeof s=="number"&&s<this.items.length}},{key:"set",value:function(a,s){var i=asItemIndex(a);if(typeof i!="number")throw new Error("Expected a valid index, not ".concat(a,"."));this.items[i]=s}},{key:"toJSON",value:function(a,s){var i=[];s&&s.onCreate&&s.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++),s))}}catch(p){c.e(p)}finally{c.f()}return i}},{key:"toString",value:function(a,s,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||"")+" "},s,i):JSON.stringify(this)}}]),t}(Collection),stringifyKey=function e(n,t,r){return t===null?"":_typeof(t)!=="object"?String(t):n instanceof Node&&r&&r.doc?n.toString({anchors:Object.create(null),doc:r.doc,indent:"",indentStep:r.indentStep,inFlow:!0,inStringifyKey:!0,stringify:r.stringify}):JSON.stringify(t)},Pair=function(e){_inherits(t,e);var n=_createSuper(t);function t(r){var a,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return _classCallCheck(this,t),a=n.call(this),a.key=r,a.value=s,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 s="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(s)}}},{key:"addToJSMap",value:function(a,s){var i=toJSON(this.key,"",a);if(s instanceof Map){var l=toJSON(this.value,i,a);s.set(i,l)}else if(s instanceof Set)s.add(i);else{var c=stringifyKey(this.key,i,a),d=toJSON(this.value,c,a);c in s?Object.defineProperty(s,c,{value:d,writable:!0,enumerable:!0,configurable:!0}):s[c]=d}return s}},{key:"toJSON",value:function(a,s){var i=s&&s.mapAsMap?new Map:{};return this.addToJSMap(s,i)}},{key:"toString",value:function(a,s,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 b=!f&&(!p||m||(p instanceof Node?p instanceof Collection||p.type===Type.BLOCK_FOLDED||p.type===Type.BLOCK_LITERAL:_typeof(p)==="object")),C=a,w=C.doc,E=C.indent,V=C.indentStep,A=C.stringify;a=Object.assign({},a,{implicitKey:!b,indent:E+V});var P=!1,O=A(p,a,function(){return m=null},function(){return P=!0});if(O=addComment(O,a.indent,m),!b&&O.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");b=!0}if(a.allNullValues&&!f)return this.comment?(O=addComment(O,a.indent,this.comment),s&&s()):P&&!m&&i&&i(),a.inFlow&&!b?O:"? ".concat(O);O=b?"? ".concat(O,`
|
|
313
|
+
`).concat(E,":"):"".concat(O,":"),this.comment&&(O=addComment(O,a.indent,this.comment),s&&s());var I="",R=null;if(v instanceof Node){if(v.spaceBefore&&(I=`
|
|
314
314
|
`),v.commentBefore){var Z=v.commentBefore.replace(/^/gm,"".concat(a.indent,"#"));I+=`
|
|
315
|
-
`.concat(Z)}
|
|
315
|
+
`.concat(Z)}R=v.comment}else v&&_typeof(v)==="object"&&(v=w.schema.createNode(v,!0));a.implicitKey=!1,!b&&!this.comment&&v instanceof Scalar&&(a.indentAtStart=O.length+1),P=!1,!d&&c>=2&&!a.inFlow&&!b&&v instanceof YAMLSeq&&v.type!==Type.FLOW_SEQ&&!v.tag&&!w.anchors.getName(v)&&(a.indent=a.indent.substr(2));var se=A(v,a,function(){return R=null},function(){return P=!0}),z=" ";if(I||this.comment)z="".concat(I,`
|
|
316
316
|
`).concat(a.indent);else if(!b&&v instanceof Collection){var ie=se[0]==="["||se[0]==="{";(!ie||se.includes(`
|
|
317
317
|
`))&&(z=`
|
|
318
318
|
`.concat(a.indent))}else se[0]===`
|
|
319
|
-
`&&(z="");return
|
|
320
|
-
`);r=n[t+1]}return t};function foldFlowLines(e,n,t,r){var a=r.indentAtStart,s=r.lineWidth,i=s===void 0?80:s,l=r.minContentWidth,c=l===void 0?20:l,d=r.onFold,f=r.onOverflow;if(!i||i<0)return e;var p=Math.max(1+c,1+i-n.length);if(e.length<=p)return e;var v=[],m={},g=i-n.length;typeof a=="number"&&(a>i-Math.max(2,c)?v.push(0):g=i-a);var b=void 0,C=void 0,w=!1,E=-1,V=-1,A=-1;t===FOLD_BLOCK&&(E=consumeMoreIndentedLines(e,E),E!==-1&&(g=E+p));for(var
|
|
321
|
-
`)t===FOLD_BLOCK&&(E=consumeMoreIndentedLines(e,E)),g=E+p,b=void 0;else{if(
|
|
319
|
+
`&&(z="");return P&&!R&&i&&i(),addComment(O+z+se,a.indent,R)}}]),t}(Node);_defineProperty(Pair,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var getAliasCount=function e(n,t){if(n instanceof Alias){var r=t.get(n.source);return r.count*r.aliasCount}else if(n instanceof Collection){var a=0,s=_createForOfIteratorHelper(n.items),i;try{for(s.s();!(i=s.n()).done;){var l=i.value,c=e(l,t);c>a&&(a=c)}}catch(p){s.e(p)}finally{s.f()}return a}else if(n instanceof Pair){var d=e(n.key,t),f=e(n.value,t);return Math.max(d,f)}return 1},Alias=function(e){_inherits(t,e);var n=_createSuper(t);function t(r){var a;return _classCallCheck(this,t),a=n.call(this),a.source=r,a.type=Type.ALIAS,a}return _createClass(t,[{key:"tag",set:function(a){throw new Error("Alias nodes cannot have tags")}},{key:"toJSON",value:function(a,s){if(!s)return toJSON(this.source,a,s);var i=s.anchors,l=s.maxAliasCount,c=i.get(this.source);if(!c||c.res===void 0){var d="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new YAMLReferenceError(this.cstNode,d):new ReferenceError(d)}if(l>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=getAliasCount(this.source,i)),c.count*c.aliasCount>l)){var f="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new YAMLReferenceError(this.cstNode,f):new ReferenceError(f)}return c.res}},{key:"toString",value:function(a){return t.stringify(this,a)}}],[{key:"stringify",value:function(a,s){var i=a.range,l=a.source,c=s.anchors,d=s.doc,f=s.implicitKey,p=s.inStringifyKey,v=Object.keys(c).find(function(g){return c[g]===l});if(!v&&p&&(v=d.anchors.getName(l)||d.anchors.newName()),v)return"*".concat(v).concat(f?" ":"");var m=d.anchors.getName(l)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(m," [").concat(i,"]"))}}]),t}(Node);_defineProperty(Alias,"default",!0);function findPair(e,n){var t=n instanceof Scalar?n.value:n,r=_createForOfIteratorHelper(e),a;try{for(r.s();!(a=r.n()).done;){var s=a.value;if(s instanceof Pair&&(s.key===n||s.key===t||s.key&&s.key.value===t))return s}}catch(i){r.e(i)}finally{r.f()}}var YAMLMap=function(e){_inherits(t,e);var n=_createSuper(t);function t(){return _classCallCheck(this,t),n.apply(this,arguments)}return _createClass(t,[{key:"add",value:function(a,s){a?a instanceof Pair||(a=new Pair(a.key||a,a.value)):a=new Pair(a);var i=findPair(this.items,a.key),l=this.schema&&this.schema.sortMapEntries;if(i)if(s)i.value=a.value;else throw new Error("Key ".concat(a.key," already set"));else if(l){var c=this.items.findIndex(function(d){return l(a,d)<0});c===-1?this.items.push(a):this.items.splice(c,0,a)}else this.items.push(a)}},{key:"delete",value:function(a){var s=findPair(this.items,a);if(!s)return!1;var i=this.items.splice(this.items.indexOf(s),1);return i.length>0}},{key:"get",value:function(a,s){var i=findPair(this.items,a),l=i&&i.value;return!s&&l instanceof Scalar?l.value:l}},{key:"has",value:function(a){return!!findPair(this.items,a)}},{key:"set",value:function(a,s){this.add(new Pair(a,s),!0)}},{key:"toJSON",value:function(a,s,i){var l=i?new i:s&&s.mapAsMap?new Map:{};s&&s.onCreate&&s.onCreate(l);var c=_createForOfIteratorHelper(this.items),d;try{for(c.s();!(d=c.n()).done;){var f=d.value;f.addToJSMap(s,l)}}catch(p){c.e(p)}finally{c.f()}return l}},{key:"toString",value:function(a,s,i){if(!a)return JSON.stringify(this);var l=_createForOfIteratorHelper(this.items),c;try{for(l.s();!(c=l.n()).done;){var d=c.value;if(!(d instanceof Pair))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(d)," instead"))}}catch(f){l.e(f)}finally{l.f()}return _get(_getPrototypeOf(t.prototype),"toString",this).call(this,a,{blockItem:function(p){return p.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:a.indent||""},s,i)}}]),t}(Collection),MERGE_KEY="<<",Merge=function(e){_inherits(t,e);var n=_createSuper(t);function t(r){var a;if(_classCallCheck(this,t),r instanceof Pair){var s=r.value;s instanceof YAMLSeq||(s=new YAMLSeq,s.items.push(r.value),s.range=r.value.range),a=n.call(this,r.key,s),a.range=r.range}else a=n.call(this,new Scalar(MERGE_KEY),new YAMLSeq);return a.type=Pair.Type.MERGE_PAIR,_possibleConstructorReturn(a)}return _createClass(t,[{key:"addToJSMap",value:function(a,s){var i=_createForOfIteratorHelper(this.value.items),l;try{for(i.s();!(l=i.n()).done;){var c=l.value.source;if(!(c instanceof YAMLMap))throw new Error("Merge sources must be maps");var d=c.toJSON(null,a,Map),f=_createForOfIteratorHelper(d),p;try{for(f.s();!(p=f.n()).done;){var v=_slicedToArray(p.value,2),m=v[0],g=v[1];s instanceof Map?s.has(m)||s.set(m,g):s instanceof Set?s.add(m):Object.prototype.hasOwnProperty.call(s,m)||Object.defineProperty(s,m,{value:g,writable:!0,enumerable:!0,configurable:!0})}}catch(b){f.e(b)}finally{f.f()}}}catch(b){i.e(b)}finally{i.f()}return s}},{key:"toString",value:function(a,s){var i=this.value;if(i.items.length>1)return _get(_getPrototypeOf(t.prototype),"toString",this).call(this,a,s);this.value=i.items[0];var l=_get(_getPrototypeOf(t.prototype),"toString",this).call(this,a,s);return this.value=i,l}}]),t}(Pair),binaryOptions={defaultType:Type.BLOCK_LITERAL,lineWidth:76},boolOptions={trueStr:"true",falseStr:"false"},intOptions={asBigInt:!1},nullOptions={nullStr:"null"},strOptions={defaultType:Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function resolveScalar(e,n,t){var r=_createForOfIteratorHelper(n),a;try{for(r.s();!(a=r.n()).done;){var s=a.value,i=s.format,l=s.test,c=s.resolve;if(l){var d=e.match(l);if(d){var f=c.apply(null,d);return f instanceof Scalar||(f=new Scalar(f)),i&&(f.format=i),f}}}}catch(p){r.e(p)}finally{r.f()}return t&&(e=t(e)),new Scalar(e)}var FOLD_FLOW="flow",FOLD_BLOCK="block",FOLD_QUOTED="quoted",consumeMoreIndentedLines=function e(n,t){for(var r=n[t+1];r===" "||r===" ";){do r=n[t+=1];while(r&&r!==`
|
|
320
|
+
`);r=n[t+1]}return t};function foldFlowLines(e,n,t,r){var a=r.indentAtStart,s=r.lineWidth,i=s===void 0?80:s,l=r.minContentWidth,c=l===void 0?20:l,d=r.onFold,f=r.onOverflow;if(!i||i<0)return e;var p=Math.max(1+c,1+i-n.length);if(e.length<=p)return e;var v=[],m={},g=i-n.length;typeof a=="number"&&(a>i-Math.max(2,c)?v.push(0):g=i-a);var b=void 0,C=void 0,w=!1,E=-1,V=-1,A=-1;t===FOLD_BLOCK&&(E=consumeMoreIndentedLines(e,E),E!==-1&&(g=E+p));for(var P;P=e[E+=1];){if(t===FOLD_QUOTED&&P==="\\"){switch(V=E,e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}A=E}if(P===`
|
|
321
|
+
`)t===FOLD_BLOCK&&(E=consumeMoreIndentedLines(e,E)),g=E+p,b=void 0;else{if(P===" "&&C&&C!==" "&&C!==`
|
|
322
322
|
`&&C!==" "){var O=e[E+1];O&&O!==" "&&O!==`
|
|
323
|
-
`&&O!==" "&&(b=E)}if(E>=g)if(b)v.push(b),g=b+p,b=void 0;else if(t===FOLD_QUOTED){for(;C===" "||C===" ";)C
|
|
324
|
-
`.concat(n).concat(e.slice(0,z)):(t===FOLD_QUOTED&&m[se]&&(
|
|
325
|
-
`.concat(n).concat(e.slice(se+1,z)))}return
|
|
323
|
+
`&&O!==" "&&(b=E)}if(E>=g)if(b)v.push(b),g=b+p,b=void 0;else if(t===FOLD_QUOTED){for(;C===" "||C===" ";)C=P,P=e[E+=1],w=!0;var I=E>A+1?E-2:V-1;if(m[I])return e;v.push(I),m[I]=!0,g=I+p,b=void 0}else w=!0}C=P}if(w&&f&&f(),v.length===0)return e;d&&d();for(var R=e.slice(0,v[0]),Z=0;Z<v.length;++Z){var se=v[Z],z=v[Z+1]||e.length;se===0?R=`
|
|
324
|
+
`.concat(n).concat(e.slice(0,z)):(t===FOLD_QUOTED&&m[se]&&(R+="".concat(e[se],"\\")),R+=`
|
|
325
|
+
`.concat(n).concat(e.slice(se+1,z)))}return R}var getFoldOptions=function e(n){var t=n.indentAtStart;return t?Object.assign({indentAtStart:t},strOptions.fold):strOptions.fold},containsDocumentMarker=function e(n){return/^(%|---|\.\.\.)/m.test(n)};function lineLengthOverLimit(e,n,t){if(!n||n<0)return!1;var r=n-t,a=e.length;if(a<=r)return!1;for(var s=0,i=0;s<a;++s)if(e[s]===`
|
|
326
326
|
`){if(s-i>r)return!0;if(i=s+1,a-i<=r)return!1}return!0}function doubleQuotedString(e,n){var t=n.implicitKey,r=strOptions.doubleQuoted,a=r.jsonEncoding,s=r.minMultiLineLength,i=JSON.stringify(e);if(a)return i;for(var l=n.indent||(containsDocumentMarker(e)?" ":""),c="",d=0,f=0,p=i[f];p;p=i[++f])if(p===" "&&i[f+1]==="\\"&&i[f+2]==="n"&&(c+=i.slice(d,f)+"\\ ",f+=1,d=f,p="\\"),p==="\\")switch(i[f+1]){case"u":{c+=i.slice(d,f);var v=i.substr(f+2,4);switch(v){case"0000":c+="\\0";break;case"0007":c+="\\a";break;case"000b":c+="\\v";break;case"001b":c+="\\e";break;case"0085":c+="\\N";break;case"00a0":c+="\\_";break;case"2028":c+="\\L";break;case"2029":c+="\\P";break;default:v.substr(0,2)==="00"?c+="\\x"+v.substr(2):c+=i.substr(f,6)}f+=5,d=f+1}break;case"n":if(t||i[f+2]==='"'||i.length<s)f+=1;else{for(c+=i.slice(d,f)+`
|
|
327
327
|
|
|
328
328
|
`;i[f+2]==="\\"&&i[f+3]==="n"&&i[f+4]!=='"';)c+=`
|
|
@@ -347,7 +347,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\
|
|
|
347
347
|
`);v&&(f.comment=f.comment?"".concat(f.comment,`
|
|
348
348
|
`).concat(v):v)}return n.resolved=f}function resolveMap(e,n){if(n.type!==Type.MAP&&n.type!==Type.FLOW_MAP){var t="A ".concat(n.type," node cannot be resolved as a mapping");return e.errors.push(new YAMLSyntaxError(n,t)),null}var r=n.type===Type.FLOW_MAP?resolveFlowMapItems(e,n):resolveBlockMapItems(e,n),a=r.comments,s=r.items,i=new YAMLMap;i.items=s,resolveComments(i,a);for(var l=!1,c=0;c<s.length;++c){var d=s[c].key;if(d instanceof Collection&&(l=!0),e.schema.merge&&d&&d.value===MERGE_KEY){s[c]=new Merge(s[c]);var f=s[c].value.items,p=null;f.some(function(C){if(C instanceof Alias){var w=C.source.type;return w===Type.MAP||w===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(n,p))}else for(var v=c+1;v<s.length;++v){var m=s[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(n,g));break}}}if(l&&!e.options.mapAsMap){var b="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(n,b))}return n.resolved=i,i}var valueHasPairComment=function e(n){var t=n.context,r=t.lineStart,a=t.node,s=t.src,i=n.props;if(i.length===0)return!1;var l=i[0].start;if(a&&l>a.valueRange.start||s[l]!==Char.COMMENT)return!1;for(var c=r;c<l;++c)if(s[c]===`
|
|
349
349
|
`)return!1;return!0};function resolvePairComment(e,n){if(valueHasPairComment(e)){var t=e.getPropValue(0,Char.COMMENT,!0),r=!1,a=n.value.commentBefore;if(a&&a.startsWith(t))n.value.commentBefore=a.substr(t.length+1),r=!0;else{var s=n.value.comment;!e.node&&s&&s.startsWith(t)&&(n.value.comment=s.substr(t.length+1),r=!0)}r&&(n.comment=t)}}function resolveBlockMapItems(e,n){for(var t=[],r=[],a=void 0,s=null,i=0;i<n.items.length;++i){var l=n.items[i];switch(l.type){case Type.BLANK_LINE:t.push({afterKey:!!a,before:r.length});break;case Type.COMMENT:t.push({afterKey:!!a,before:r.length,comment:l.comment});break;case Type.MAP_KEY:a!==void 0&&r.push(new Pair(a)),l.error&&e.errors.push(l.error),a=resolveNode(e,l.node),s=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),r.push(v),a&&typeof s=="number"&&l.range.start>s+1024&&e.errors.push(getLongKeyError(n,a)),a=void 0,s=null}break;default:a!==void 0&&r.push(new Pair(a)),a=resolveNode(e,l),s=l.range.start,l.error&&e.errors.push(l.error);e:for(var m=i+1;;++m){var g=n.items[m];switch(g&&g.type){case Type.BLANK_LINE:case Type.COMMENT:continue e;case Type.MAP_VALUE:break e;default:{var b="Implicit map keys need to be followed by map values";e.errors.push(new YAMLSemanticError(l,b));break e}}}if(l.valueRangeContainsNewline){var C="Implicit map keys need to be on a single line";e.errors.push(new YAMLSemanticError(l,C))}}}return a!==void 0&&r.push(new Pair(a)),{comments:t,items:r}}function resolveFlowMapItems(e,n){for(var t=[],r=[],a=void 0,s=!1,i="{",l=0;l<n.items.length;++l){var c=n.items[l];if(typeof c.char=="string"){var d=c.char,f=c.offset;if(d==="?"&&a===void 0&&!s){s=!0,i=":";continue}if(d===":"){if(a===void 0&&(a=null),i===":"){i=",";continue}}else if(s&&(a===void 0&&d!==","&&(a=null),s=!1),a!==void 0&&(r.push(new Pair(a)),a=void 0,d===",")){i=":";continue}if(d==="}"){if(l===n.items.length-1)continue}else if(d===i){i=":";continue}var p="Flow map contains an unexpected ".concat(d),v=new YAMLSyntaxError(n,p);v.offset=f,e.errors.push(v)}else c.type===Type.BLANK_LINE?t.push({afterKey:!!a,before:r.length}):c.type===Type.COMMENT?(checkFlowCommentSpace(e.errors,c),t.push({afterKey:!!a,before:r.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")),r.push(new Pair(a,resolveNode(e,c))),a=void 0,s=!1)}return checkFlowCollectionEnd(e.errors,n),a!==void 0&&r.push(new Pair(a)),{comments:t,items:r}}function resolveSeq(e,n){if(n.type!==Type.SEQ&&n.type!==Type.FLOW_SEQ){var t="A ".concat(n.type," node cannot be resolved as a sequence");return e.errors.push(new YAMLSyntaxError(n,t)),null}var r=n.type===Type.FLOW_SEQ?resolveFlowSeqItems(e,n):resolveBlockSeqItems(e,n),a=r.comments,s=r.items,i=new YAMLSeq;if(i.items=s,resolveComments(i,a),!e.options.mapAsMap&&s.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(n,l))}return n.resolved=i,i}function resolveBlockSeqItems(e,n){for(var t=[],r=[],a=0;a<n.items.length;++a){var s=n.items[a];switch(s.type){case Type.BLANK_LINE:t.push({before:r.length});break;case Type.COMMENT:t.push({comment:s.comment,before:r.length});break;case Type.SEQ_ITEM:if(s.error&&e.errors.push(s.error),r.push(resolveNode(e,s.node)),s.hasProps){var i="Sequence items cannot have tags or anchors before the - indicator";e.errors.push(new YAMLSemanticError(s,i))}break;default:s.error&&e.errors.push(s.error),e.errors.push(new YAMLSyntaxError(s,"Unexpected ".concat(s.type," node in sequence")))}}return{comments:t,items:r}}function resolveFlowSeqItems(e,n){for(var t=[],r=[],a=!1,s=void 0,i=null,l="[",c=null,d=0;d<n.items.length;++d){var f=n.items[d];if(typeof f.char=="string"){var p=f.char,v=f.offset;if(p!==":"&&(a||s!==void 0)&&(a&&s===void 0&&(s=l?r.pop():null),r.push(new Pair(s)),a=!1,s=void 0,i=null),p===l)l=null;else if(!l&&p==="?")a=!0;else if(l!=="["&&p===":"&&s===void 0){if(l===","){if(s=r.pop(),s instanceof Pair){var m="Chaining flow sequence pairs is invalid",g=new YAMLSemanticError(n,m);g.offset=v,e.errors.push(g)}if(!a&&typeof i=="number"){var b=f.range?f.range.start:f.offset;b>i+1024&&e.errors.push(getLongKeyError(n,s));for(var C=c.context.src,w=i;w<b;++w)if(C[w]===`
|
|
350
|
-
`){var E="Implicit keys of flow sequence pairs need to be on a single line";e.errors.push(new YAMLSemanticError(c,E));break}}}else s=null;i=null,a=!1,l=null}else if(l==="["||p!=="]"||d<n.items.length-1){var V="Flow sequence contains an unexpected ".concat(p),A=new YAMLSyntaxError(n,V);A.offset=v,e.errors.push(A)}}else if(f.type===Type.BLANK_LINE)t.push({before:r.length});else if(f.type===Type.COMMENT)checkFlowCommentSpace(e.errors,f),t.push({comment:f.comment,before:r.length});else{if(l){var $="Expected a ".concat(l," in flow sequence");e.errors.push(new YAMLSemanticError(f,$))}var O=resolveNode(e,f);s===void 0?(r.push(O),c=f):(r.push(new Pair(s,O)),s=void 0),i=f.range.start,l=","}}return checkFlowCollectionEnd(e.errors,n),s!==void 0&&r.push(new Pair(s)),{comments:t,items:r}}var define_process_env_default$1={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LfqqfcZAAAAACbkbPaHRZTIFpKZGAPZBDkwBKhe",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_15348_CWGUUHKPCRTIGFCZ",COLORTERM:"truecolor",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"2HR07S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EXEPATH:"C:\\Program Files\\Git\\bin",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",GIT_ASKPASS:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\duncan.sanderson",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\duncan.sanderson",HOSTNAME:"2HR07S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LANG:"en_US.UTF-8",LOCALAPPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE_ENV:"production",NODE_PATH:"C:\\Users\\duncan.sanderson\\AppData\\npm",npm_config_user_agent:"yarn/4.3.1 npm/? node/v18.19.1 win32 x64",npm_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579\\node",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.7.1",NUMBER_OF_PROCESSORS:"8",OneDrive:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",OneDriveCommercial:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin",ORIGINAL_TEMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",PATH:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-274ceb4d;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-4df2ce3c;C:\\Users\\duncan.sanderson\\.volta\\bin;C:\\Users\\duncan.sanderson\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",ProgramData:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",PYTHON:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_AGENT_PID:"1838",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SSH_AUTH_SOCK:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp/ssh-uR4B1I3vN93q/agent.1837",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TERM:"xterm-256color",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.96.2",TMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"duncan.sanderson",USERPROFILE:"C:\\Users\\duncan.sanderson",VOLTA_HOME:"C:/Users/duncan.sanderson/.volta",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",VSCODE_GIT_ASKPASS_MAIN:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-4a2d75133c-sock",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/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(n){return n instanceof Uint8Array},default:!1,tag:"tag:yaml.org,2002:binary",resolve:function e(n,t){var r=resolveString(n,t);if(typeof Buffer=="function")return Buffer.from(r,"base64");if(typeof atob=="function"){for(var a=atob(r.replace(/[\n\r]/g,"")),s=new Uint8Array(a.length),i=0;i<a.length;++i)s[i]=a.charCodeAt(i);return s}else{var l="This environment does not support reading binary tags; either Buffer or atob is required";return n.errors.push(new YAMLReferenceError(t,l)),null}},options:binaryOptions,stringify:function e(n,t,r,a){var s=n.comment,i=n.type,l=n.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,b=0;g<v;++g,b+=p)m[g]=c.substr(b,p);l=m.join(i===Type.BLOCK_LITERAL?`
|
|
350
|
+
`){var E="Implicit keys of flow sequence pairs need to be on a single line";e.errors.push(new YAMLSemanticError(c,E));break}}}else s=null;i=null,a=!1,l=null}else if(l==="["||p!=="]"||d<n.items.length-1){var V="Flow sequence contains an unexpected ".concat(p),A=new YAMLSyntaxError(n,V);A.offset=v,e.errors.push(A)}}else if(f.type===Type.BLANK_LINE)t.push({before:r.length});else if(f.type===Type.COMMENT)checkFlowCommentSpace(e.errors,f),t.push({comment:f.comment,before:r.length});else{if(l){var P="Expected a ".concat(l," in flow sequence");e.errors.push(new YAMLSemanticError(f,P))}var O=resolveNode(e,f);s===void 0?(r.push(O),c=f):(r.push(new Pair(s,O)),s=void 0),i=f.range.start,l=","}}return checkFlowCollectionEnd(e.errors,n),s!==void 0&&r.push(new Pair(s)),{comments:t,items:r}}var define_process_env_default$1={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LfqqfcZAAAAACbkbPaHRZTIFpKZGAPZBDkwBKhe",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_29464_PXQWZGIBRNUKUSQG",COLORTERM:"truecolor",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"2HR07S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EXEPATH:"C:\\Program Files\\Git\\bin",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",GIT_ASKPASS:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\duncan.sanderson",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\duncan.sanderson",HOSTNAME:"2HR07S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LANG:"en_US.UTF-8",LOCALAPPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE_ENV:"production",NODE_PATH:"C:\\Users\\duncan.sanderson\\AppData\\npm",npm_config_user_agent:"yarn/4.3.1 npm/? node/v18.19.1 win32 x64",npm_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a\\node",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.7.2",NUMBER_OF_PROCESSORS:"8",OneDrive:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",OneDriveCommercial:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin",ORIGINAL_TEMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",PATH:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-75c6f032;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-5dadc7c5;C:\\Users\\duncan.sanderson\\.volta\\bin;C:\\Users\\duncan.sanderson\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",ProgramData:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",PYTHON:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_AGENT_PID:"972",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SSH_AUTH_SOCK:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp/ssh-zzwbzPFLwOHn/agent.971",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TERM:"xterm-256color",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.96.2",TMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"duncan.sanderson",USERPROFILE:"C:\\Users\\duncan.sanderson",VOLTA_HOME:"C:/Users/duncan.sanderson/.volta",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",VSCODE_GIT_ASKPASS_MAIN:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-4a2d75133c-sock",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/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(n){return n instanceof Uint8Array},default:!1,tag:"tag:yaml.org,2002:binary",resolve:function e(n,t){var r=resolveString(n,t);if(typeof Buffer=="function")return Buffer.from(r,"base64");if(typeof atob=="function"){for(var a=atob(r.replace(/[\n\r]/g,"")),s=new Uint8Array(a.length),i=0;i<a.length;++i)s[i]=a.charCodeAt(i);return s}else{var l="This environment does not support reading binary tags; either Buffer or atob is required";return n.errors.push(new YAMLReferenceError(t,l)),null}},options:binaryOptions,stringify:function e(n,t,r,a){var s=n.comment,i=n.type,l=n.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,b=0;g<v;++g,b+=p)m[g]=c.substr(b,p);l=m.join(i===Type.BLOCK_LITERAL?`
|
|
351
351
|
`:" ")}return stringifyString({comment:s,type:i,value:l},t,r,a)}};function parsePairs(e,n){for(var t=resolveSeq(e,n),r=0;r<t.items.length;++r){var a=t.items[r];if(!(a instanceof Pair)){if(a instanceof YAMLMap){if(a.items.length>1){var s="Each pair must have its own sequence indicator";throw new YAMLSemanticError(n,s)}var i=a.items[0]||new Pair;a.commentBefore&&(i.commentBefore=i.commentBefore?"".concat(a.commentBefore,`
|
|
352
352
|
`).concat(i.commentBefore):a.commentBefore),a.comment&&(i.comment=i.comment?"".concat(a.comment,`
|
|
353
353
|
`).concat(i.comment):a.comment),a=i}t.items[r]=a instanceof Pair?a:new Pair(a)}}return t}function createPairs(e,n,t){var r=new YAMLSeq(e);r.tag="tag:yaml.org,2002:pairs";var a=_createForOfIteratorHelper(n),s;try{for(a.s();!(s=a.n()).done;){var i=s.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);r.items.push(f)}}catch(p){a.e(p)}finally{a.f()}return r}var pairs={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:parsePairs,createNode:createPairs},YAMLOMap=function(e){_inherits(t,e);var n=_createSuper(t);function t(){var r;return _classCallCheck(this,t),r=n.call(this),_defineProperty(_assertThisInitialized(r),"add",YAMLMap.prototype.add.bind(_assertThisInitialized(r))),_defineProperty(_assertThisInitialized(r),"delete",YAMLMap.prototype.delete.bind(_assertThisInitialized(r))),_defineProperty(_assertThisInitialized(r),"get",YAMLMap.prototype.get.bind(_assertThisInitialized(r))),_defineProperty(_assertThisInitialized(r),"has",YAMLMap.prototype.has.bind(_assertThisInitialized(r))),_defineProperty(_assertThisInitialized(r),"set",YAMLMap.prototype.set.bind(_assertThisInitialized(r))),r.tag=t.tag,r}return _createClass(t,[{key:"toJSON",value:function(a,s){var i=new Map;s&&s.onCreate&&s.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,"",s),p=toJSON(d.value,f,s)):f=toJSON(d,"",s),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,n){var t=parsePairs(e,n),r=[],a=_createForOfIteratorHelper(t.items),s;try{for(a.s();!(s=a.n()).done;){var i=s.value.key;if(i instanceof Scalar)if(r.includes(i.value)){var l="Ordered maps must not include duplicate keys";throw new YAMLSemanticError(n,l)}else r.push(i.value)}}catch(c){a.e(c)}finally{a.f()}return Object.assign(new YAMLOMap,t)}function createOMap(e,n,t){var r=createPairs(e,n,t),a=new YAMLOMap;return a.items=r.items,a}var omap={identify:function e(n){return n instanceof Map},nodeClass:YAMLOMap,default:!1,tag:"tag:yaml.org,2002:omap",resolve:parseOMap,createNode:createOMap},YAMLSet=function(e){_inherits(t,e);var n=_createSuper(t);function t(){var r;return _classCallCheck(this,t),r=n.call(this),r.tag=t.tag,r}return _createClass(t,[{key:"add",value:function(a){var s=a instanceof Pair?a:new Pair(a),i=findPair(this.items,s.key);i||this.items.push(s)}},{key:"get",value:function(a,s){var i=findPair(this.items,a);return!s&&i instanceof Pair?i.key instanceof Scalar?i.key.value:i.key:i}},{key:"set",value:function(a,s){if(typeof s!="boolean")throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(_typeof(s)));var i=findPair(this.items,a);i&&!s?this.items.splice(this.items.indexOf(i),1):!i&&s&&this.items.push(new Pair(a))}},{key:"toJSON",value:function(a,s){return _get(_getPrototypeOf(t.prototype),"toJSON",this).call(this,a,s,Set)}},{key:"toString",value:function(a,s,i){if(!a)return JSON.stringify(this);if(this.hasAllNullValues())return _get(_getPrototypeOf(t.prototype),"toString",this).call(this,a,s,i);throw new Error("Set items must all have null values")}}]),t}(YAMLMap);_defineProperty(YAMLSet,"tag","tag:yaml.org,2002:set");function parseSet(e,n){var t=resolveMap(e,n);if(!t.hasAllNullValues())throw new YAMLSemanticError(n,"Set items must all have null values");return Object.assign(new YAMLSet,t)}function createSet(e,n,t){var r=new YAMLSet,a=_createForOfIteratorHelper(n),s;try{for(a.s();!(s=a.n()).done;){var i=s.value;r.items.push(e.createPair(i,null,t))}}catch(l){a.e(l)}finally{a.f()}return r}var set={identify:function e(n){return n instanceof Set},nodeClass:YAMLSet,default:!1,tag:"tag:yaml.org,2002:set",resolve:parseSet,createNode:createSet},parseSexagesimal=function e(n,t){var r=t.split(":").reduce(function(a,s){return a*60+Number(s)},0);return n==="-"?-r:r},stringifySexagesimal=function e(n){var t=n.value;if(isNaN(t)||!isFinite(t))return stringifyNumber(t);var r="";t<0&&(r="-",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))),r+a.map(function(s){return s<10?"0"+String(s):String(s)}).join(":").replace(/000000\d*$/,"")},intTime={identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function e(n,t,r){return parseSexagesimal(t,r.replace(/_/g,""))},stringify:stringifySexagesimal},floatTime={identify:function e(n){return typeof n=="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(n,t,r){return parseSexagesimal(t,r.replace(/_/g,""))},stringify:stringifySexagesimal},timestamp={identify:function e(n){return n 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(n,t,r,a,s,i,l,c,d){c&&(c=(c+"00").substr(1,3));var f=Date.UTC(t,r-1,a,s||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(n){var t=n.value;return t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function shouldWarn(e){var n=typeof process<"u"&&define_process_env_default$1||{};return e?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!n.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!n.YAML_SILENCE_WARNINGS}function warn(e,n){if(shouldWarn(!1)){var t=typeof process<"u"&&process.emitWarning;t?t(e,n):console.warn(n?"".concat(n,": ").concat(e):e)}}var warned={};function warnOptionDeprecation(e,n){if(!warned[e]&&shouldWarn(!0)){warned[e]=!0;var t="The option '".concat(e,"' will be removed in a future release");t+=", use '".concat(n,"' instead."),warn(t,"DeprecationWarning")}}function createMap(e,n,t){var r=new YAMLMap(e);if(n instanceof Map){var a=_createForOfIteratorHelper(n),s;try{for(a.s();!(s=a.n()).done;){var i=_slicedToArray(s.value,2),l=i[0],c=i[1];r.items.push(e.createPair(l,c,t))}}catch(v){a.e(v)}finally{a.f()}}else if(n&&_typeof(n)==="object")for(var d=0,f=Object.keys(n);d<f.length;d++){var p=f[d];r.items.push(e.createPair(p,n[p],t))}return typeof e.sortMapEntries=="function"&&r.items.sort(e.sortMapEntries),r}var map={createNode:createMap,default:!0,nodeClass:YAMLMap,tag:"tag:yaml.org,2002:map",resolve:resolveMap};function createSeq(e,n,t){var r=new YAMLSeq(e);if(n&&n[Symbol.iterator]){var a=_createForOfIteratorHelper(n),s;try{for(a.s();!(s=a.n()).done;){var i=s.value,l=e.createNode(i,t.wrapScalars,null,t);r.items.push(l)}}catch(c){a.e(c)}finally{a.f()}}return r}var seq={createNode:createSeq,default:!0,nodeClass:YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:resolveSeq},string={identify:function e(n){return typeof n=="string"},default:!0,tag:"tag:yaml.org,2002:str",resolve:resolveString,stringify:function e(n,t,r,a){return t=Object.assign({actualString:!0},t),stringifyString(n,t,r,a)},options:strOptions},failsafe=[map,seq,string],intIdentify$2=function e(n){return typeof n=="bigint"||Number.isInteger(n)},intResolve$1=function e(n,t,r){return intOptions.asBigInt?BigInt(n):parseInt(t,r)};function intStringify$1(e,n,t){var r=e.value;return intIdentify$2(r)&&r>=0?t+r.toString(n):stringifyNumber(e)}var nullObj={identify:function e(n){return n==null},createNode:function e(n,t,r){return r.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(n){return typeof n=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:function e(n){return n[0]==="t"||n[0]==="T"},options:boolOptions,stringify:function e(n){var t=n.value;return t?boolOptions.trueStr:boolOptions.falseStr}},octObj={identify:function e(n){return intIdentify$2(n)&&n>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:function e(n,t){return intResolve$1(n,t,8)},options:intOptions,stringify:function e(n){return intStringify$1(n,8,"0o")}},intObj={identify:intIdentify$2,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function e(n){return intResolve$1(n,n,10)},options:intOptions,stringify:stringifyNumber},hexObj={identify:function e(n){return intIdentify$2(n)&&n>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:function e(n,t){return intResolve$1(n,t,16)},options:intOptions,stringify:function e(n){return intStringify$1(n,16,"0x")}},nanObj={identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function e(n,t){return t?NaN:n[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:stringifyNumber},expObj={identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:function e(n){return parseFloat(n)},stringify:function e(n){var t=n.value;return Number(t).toExponential()}},floatObj={identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve:function e(n,t,r){var a=t||r,s=new Scalar(parseFloat(n));return a&&a[a.length-1]==="0"&&(s.minFractionDigits=a.length),s},stringify:stringifyNumber},core=failsafe.concat([nullObj,boolObj,octObj,intObj,hexObj,nanObj,expObj,floatObj]),intIdentify$1=function e(n){return typeof n=="bigint"||Number.isInteger(n)},stringifyJSON=function e(n){var t=n.value;return JSON.stringify(t)},json=[map,seq,{identify:function e(n){return typeof n=="string"},default:!0,tag:"tag:yaml.org,2002:str",resolve:resolveString,stringify:stringifyJSON},{identify:function e(n){return n==null},createNode:function e(n,t,r){return r.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(n){return typeof n=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:function e(n){return n==="true"},stringify:stringifyJSON},{identify:intIdentify$1,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:function e(n){return intOptions.asBigInt?BigInt(n):parseInt(n,10)},stringify:function e(n){var t=n.value;return intIdentify$1(t)?t.toString():JSON.stringify(t)}},{identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:function e(n){return parseFloat(n)},stringify:stringifyJSON}];json.scalarFallback=function(e){throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var boolStringify=function e(n){var t=n.value;return t?boolOptions.trueStr:boolOptions.falseStr},intIdentify=function e(n){return typeof n=="bigint"||Number.isInteger(n)};function intResolve(e,n,t){var r=n.replace(/_/g,"");if(intOptions.asBigInt){switch(t){case 2:r="0b".concat(r);break;case 8:r="0o".concat(r);break;case 16:r="0x".concat(r);break}var a=BigInt(r);return e==="-"?BigInt(-1)*a:a}var s=parseInt(r,t);return e==="-"?-1*s:s}function intStringify(e,n,t){var r=e.value;if(intIdentify(r)){var a=r.toString(n);return r<0?"-"+t+a.substr(1):t+a}return stringifyNumber(e)}var yaml11=failsafe.concat([{identify:function e(n){return n==null},createNode:function e(n,t,r){return r.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(n){return typeof n=="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(n){return typeof n=="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(n,t,r){return intResolve(t,r,2)},stringify:function e(n){return intStringify(n,2,"0b")}},{identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:function e(n,t,r){return intResolve(t,r,8)},stringify:function e(n){return intStringify(n,8,"0")}},{identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:function e(n,t,r){return intResolve(t,r,10)},stringify:stringifyNumber},{identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:function e(n,t,r){return intResolve(t,r,16)},stringify:function e(n){return intStringify(n,16,"0x")}},{identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function e(n,t){return t?NaN:n[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:stringifyNumber},{identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:function e(n){return parseFloat(n.replace(/_/g,""))},stringify:function e(n){var t=n.value;return Number(t).toExponential()}},{identify:function e(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve:function e(n,t){var r=new Scalar(parseFloat(n.replace(/_/g,"")));if(t){var a=t.replace(/_/g,"");a[a.length-1]==="0"&&(r.minFractionDigits=a.length)}return r},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,n,t){if(n){var r=t.filter(function(s){return s.tag===n}),a=r.find(function(s){return!s.format})||r[0];if(!a)throw new Error("Tag ".concat(n," not found"));return a}return t.find(function(s){return(s.identify&&s.identify(e)||s.class&&e instanceof s.class)&&!s.format})}function createNode$1(e,n,t){if(e instanceof Node)return e;var r=t.defaultPrefix,a=t.onTagObj,s=t.prevObjects,i=t.schema,l=t.wrapScalars;n&&n.startsWith("!!")&&(n=r+n.slice(2));var c=findTagObject(e,n,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"&&s){var f=s.get(e);if(f){var p=new Alias(f);return t.aliasNodes.push(p),p}d.value=e,s.set(e,d)}return d.node=c.createNode?c.createNode(t.schema,e,t):l?new Scalar(e):e,n&&d.node instanceof Node&&(d.node.tag=n),d.node}function getSchemaTags(e,n,t,r){var a=e[r.replace(/\W/g,"")];if(!a){var s=Object.keys(e).map(function(m){return JSON.stringify(m)}).join(", ");throw new Error('Unknown schema "'.concat(r,'"; use one of ').concat(s))}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=n[f];if(!p){var v=Object.keys(n).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(n,t){return n.key<t.key?-1:n.key>t.key?1:0},Schema=function(){function e(n){var t=n.customTags,r=n.merge,a=n.schema,s=n.sortMapEntries,i=n.tags;_classCallCheck(this,e),this.merge=!!r,this.name=a,this.sortMapEntries=s===!0?sortMapEntriesByKey:s||null,!t&&i&&warnOptionDeprecation("tags","customTags"),this.tags=getSchemaTags(schemas,tags,t||i,a)}return _createClass(e,[{key:"createNode",value:function(t,r,a,s){var i={defaultPrefix:e.defaultPrefix,schema:this,wrapScalars:r},l=s?Object.assign(s,i):i;return createNode$1(t,a,l)}},{key:"createPair",value:function(t,r,a){a||(a={wrapScalars:!0});var s=this.createNode(t,a.wrapScalars,null,a),i=this.createNode(r,a.wrapScalars,null,a);return new Pair(s,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,n){if((e.version||e.options.version)==="1.0"){var t=n.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(t)return"!"+t[1];var r=n.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return r?"!".concat(r[1],"/").concat(r[2]):"!".concat(n.replace(/^tag:/,""))}var a=e.tagPrefixes.find(function(l){return n.indexOf(l.prefix)===0});if(!a){var s=e.getDefaults().tagPrefixes;a=s&&s.find(function(l){return n.indexOf(l.prefix)===0})}if(!a)return n[0]==="!"?n:"!<".concat(n,">");var i=n.substr(a.prefix.length).replace(/[!,[\]{}]/g,function(l){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[l]});return a.handle+i}function getTagObject(e,n){if(n instanceof Alias)return Alias;if(n.tag){var t=e.filter(function(l){return l.tag===n.tag});if(t.length>0)return t.find(function(l){return l.format===n.format})||t[0]}var r,a;if(n instanceof Scalar){a=n.value;var s=e.filter(function(l){return l.identify&&l.identify(a)||l.class&&a instanceof l.class});r=s.find(function(l){return l.format===n.format})||s.find(function(l){return!l.format})}else a=n,r=e.find(function(l){return l.nodeClass&&a instanceof l.nodeClass});if(!r){var i=a&&a.constructor?a.constructor.name:_typeof(a);throw new Error("Tag not resolved for ".concat(i," value"))}return r}function stringifyProps(e,n,t){var r=t.anchors,a=t.doc,s=[],i=a.anchors.getName(e);return i&&(r[i]=e,s.push("&".concat(i))),e.tag?s.push(stringifyTag(a,e.tag)):n.default||s.push(stringifyTag(a,n.tag)),s.join(" ")}function stringify$1(e,n,t,r){var a=n.doc,s=a.anchors,i=a.schema,l;if(!(e instanceof Node)){var c={aliasNodes:[],onTagObj:function(C){return l=C},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=s.getName(p.source);v||(v=s.newName(),s.map[v]=p.source)}}catch(b){d.e(b)}finally{d.f()}}if(e instanceof Pair)return e.toString(n,t,r);l||(l=getTagObject(i.tags,e));var m=stringifyProps(e,l,n);m.length>0&&(n.indentAtStart=(n.indentAtStart||0)+m.length+1);var g=typeof l.stringify=="function"?l.stringify(e,n,t,r):e instanceof Scalar?stringifyString(e,n,t,r):e.toString(n,t,r);return m?e instanceof Scalar||g[0]==="{"||g[0]==="["?"".concat(m," ").concat(g):"".concat(m,`
|
|
@@ -361,7 +361,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\
|
|
|
361
361
|
`)+`
|
|
362
362
|
`}}]),e}();_defineProperty(Document$1,"defaults",documentOptions);function createNode(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=arguments.length>2?arguments[2]:void 0;t===void 0&&typeof n=="string"&&(t=n,n=!0);var r=Object.assign({},Document$1.defaults[defaultOptions.version],defaultOptions),a=new Schema(r);return a.createNode(e,n,t)}var Document=function(e){_inherits(t,e);var n=_createSuper(t);function t(r){return _classCallCheck(this,t),n.call(this,Object.assign({},defaultOptions,r))}return t}(Document$1);function parseAllDocuments(e,n){var t=[],r,a=_createForOfIteratorHelper(parse$1(e)),s;try{for(a.s();!(s=a.n()).done;){var i=s.value,l=new Document(n);l.parse(i,r),t.push(l),r=l}}catch(c){a.e(c)}finally{a.f()}return t}function parseDocument(e,n){var t=parse$1(e),r=new Document(n).parse(t[0]);if(t.length>1){var a="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new YAMLSemanticError(t[1],a))}return r}function parse(e,n){var t=parseDocument(e,n);if(t.warnings.forEach(function(r){return warn(r)}),t.errors.length>0)throw t.errors[0];return t.toJSON()}function stringify(e,n){var t=new Document(n);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 n=function(c){return e===void 0&&(e=requireImportFresh()),e(c)};let t;const r=function(c,d){t===void 0&&(t=requireParseJson());try{return t(d)}catch(f){throw f.message=`JSON Error in ${c}:
|
|
363
363
|
${f.message}`,f}};let a;const i={loadJs:n,loadJson:r,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}:
|
|
364
|
-
${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(n,t){return typeof t=="string"&&Object.prototype.hasOwnProperty.call(n,t)?n[t]:(typeof t=="string"?t.split("."):t).reduce((a,s)=>a===void 0?a:a[s],n)}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=r(requirePath()),n=requireLoaders(),t=requireGetPropertyByPath();function r(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=s(c);return f===c||c===this.config.stopDir?null:f}loadPackageProp(c,d){const f=n.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 s(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=r,readFile.readFileSync=a;var e=n(require$$0$1);function n(s){return s&&s.__esModule?s:{default:s}}async function t(s,i){return new Promise((l,c)=>{e.default.readFile(s,i,(d,f)=>{if(d){c(d);return}l(f)})})}async function r(s,i={}){const l=i.throwNotFound===!0;try{return await t(s,"utf8")}catch(c){if(l===!1&&c.code==="ENOENT")return null;throw c}}function a(s,i={}){const l=i.throwNotFound===!0;try{return e.default.readFileSync(s,"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=n;async function e(t,r,a){const s=t.get(r);if(s!==void 0)return s;const i=await a();return t.set(r,i),i}function n(t,r,a){const s=t.get(r);if(s!==void 0)return s;const i=a();return t.set(r,i),i}return cacheWrapper}var getDirectory={},pathType={},hasRequiredPathType;function requirePathType(){if(hasRequiredPathType)return pathType;hasRequiredPathType=1;const{promisify:e}=requireUtil(),n=require$$0$1;async function t(a,s,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return(await e(n[a])(i))[s]()}catch(l){if(l.code==="ENOENT")return!1;throw l}}function r(a,s,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return n[a](i)[s]()}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=r.bind(null,"statSync","isFile"),pathType.isDirectorySync=r.bind(null,"statSync","isDirectory"),pathType.isSymlinkSync=r.bind(null,"lstatSync","isSymbolicLink"),pathType}var hasRequiredGetDirectory;function requireGetDirectory(){if(hasRequiredGetDirectory)return getDirectory;hasRequiredGetDirectory=1,Object.defineProperty(getDirectory,"__esModule",{value:!0}),getDirectory.getDirectory=r,getDirectory.getDirectorySync=a;var e=t(requirePath()),n=requirePathType();function t(s){return s&&s.__esModule?s:{default:s}}async function r(s){return await(0,n.isDirectory)(s)===!0?s:e.default.dirname(s)}function a(s){return(0,n.isDirectorySync)(s)===!0?s:e.default.dirname(s)}return getDirectory}var hasRequiredExplorer;function requireExplorer(){if(hasRequiredExplorer)return Explorer;hasRequiredExplorer=1,Object.defineProperty(Explorer,"__esModule",{value:!0}),Explorer.Explorer=void 0;var e=s(requirePath()),n=requireExplorerBase(),t=requireReadFile(),r=requireCacheWrapper(),a=requireGetDirectory();function s(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 n.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,r.cacheWrapper)(this.searchCache,f,p):p()}async searchDirectory(d){var f=!0,p=!1,v;try{for(var m=i(this.config.searchPlaces),g,b;g=await m.next(),f=g.done,b=await g.value,!f;f=!0){const C=b,w=await this.loadSearchPlace(d,C);if(this.shouldSearchStopWithResult(w)===!0)return w}}catch(C){p=!0,v=C}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,r.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=s(requirePath()),n=requireExplorerBase(),t=requireReadFile(),r=requireCacheWrapper(),a=requireGetDirectory();function s(l){return l&&l.__esModule?l:{default:l}}let i=class extends n.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,r.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,r.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=s,dist$2.cosmiconfigSync=i,dist$2.defaultLoaders=void 0;var e=a(require$$0$1),n=requireExplorer(),t=requireExplorerSync(),r=requireLoaders();function a(f){return f&&f.__esModule?f:{default:f}}function s(f,p={}){const v=c(f,p),m=new n.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":r.loaders.loadJs,".json":r.loaders.loadJson,".yaml":r.loaders.loadYaml,".yml":r.loaders.loadYaml,noExt:r.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 n=interopRequireDefaultExports,t=n(require_extends()),r=n(requireObjectWithoutPropertiesLoose());const a=requirePath(),s=requireResolve(),i=/[./]macro(\.js)?$/,l=$=>i.test($);class c extends Error{constructor(O){super(O),this.name="MacroError",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack||(this.stack=new Error(O).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($,O={}){if(O.configName==="options")throw new Error('You cannot use the configName "options". It is reserved for babel-plugin-macros.');return I.isBabelMacro=!0,I.options=O,I;function I(L){const{source:Z,isBabelMacrosCall:se}=L;if(!se)throw new c(`The macro you imported from "${Z}" 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 $(L)}}function v($,O){return s.sync($,{basedir:O,paths:[a.resolve(__dirname,"../../")]})}function m($,O={}){let{require:I=commonjsRequire,resolvePath:L=v,isMacrosName:Z=l}=O,se=(0,r.default)(O,["require","resolvePath","isMacrosName"]);function z(ie){const Q=I(ie);return Q&&Q.__esModule&&Q.default?Q.default:Q}return{name:"macros",visitor:{Program(ie,Q){ie.traverse({ImportDeclaration(ae){if(!V(ae,{node:{source:{value:M=>Z(M)}}}))return;const me=ae.node.specifiers.map(M=>({localName:M.local.name,importedName:M.type==="ImportDefaultSpecifier"?"default":M.imported.name})),fe=ae.node.source.value,T=g({path:ae,imports:me,source:fe,state:Q,babel:$,interopRequire:z,resolvePath:L,options:se});(!T||!T.keepImports)&&ae.remove()},VariableDeclaration(ae){const we=me=>V(me,{node:{init:{callee:{type:"Identifier",name:"require"},arguments:fe=>fe.length===1&&Z(fe[0].value)}}});ae.get("declarations").filter(we).forEach(me=>{const fe=me.node.id.name?[{localName:me.node.id.name,importedName:"default"}]:me.node.id.properties.map(ne=>({localName:ne.value.name,importedName:ne.key.name})),T=me.get("init"),M=T.node.arguments[0].value,G=g({path:T,imports:fe,source:M,state:Q,babel:$,interopRequire:z,resolvePath:L,options:se});(!G||!G.keepImports)&&me.remove()})}})}}}}function g({path:$,imports:O,source:I,state:L,babel:Z,interopRequire:se,resolvePath:z,options:ie}){const{file:{opts:{filename:Q=""}}}=L;let ae=!1;const we=O.reduce((ne,{importedName:he,localName:B})=>{const U=$.scope.getBinding(B);return ne[he]=U.referencePaths,ae=ae||!!ne[he].length,ne},{}),me=I.indexOf(".")===0,fe=z(I,a.dirname(E(Q))),T=se(fe);if(!T.isBabelMacro)throw new Error(`The macro imported from "${I}" 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 M=w(T,Q,I,ie);let G;try{L.file.scope.path.traverse({Identifier(){}}),G=T({references:we,source:I,state:L,babel:Z,config:M,isBabelMacrosCall:!0})}catch(ne){throw ne.name==="MacroError"||(ne.message=`${I}: ${ne.message}`,me||(ne.message=`${ne.message} Learn more: https://www.npmjs.com/package/${I.replace(/^((?:@[^/]+\/)?[^/]+).*/,"$1")}`)),ne}return G}function b($,O){try{const I=f().search(O);if(I)return{options:I.config[$],path:I.filepath}}catch(I){return{error:I}}return{}}function C($,O){if(O.hasOwnProperty($))if(O[$]&&typeof O[$]!="object")console.error(`The macro plugin options' ${$} property was not an object or null.`);else return{options:O[$]};return{}}function w($,O,I,L){const{configName:Z}=$.options;if(Z){const se=b(Z,O),z=C(Z,L);if(z.options===void 0&&se.options===void 0&&se.error!==void 0)throw console.error(`There was an error trying to load the config "${Z}" for the macro imported from "${I}. Please see the error thrown for more information.`),se.error;if(se.options!==void 0&&z.options!==void 0&&typeof se.options!="object")throw new Error(`${se.path} specified a ${Z} config of type ${typeof z.options}, but the the macros plugin's options.${Z} did contain an object. Both configs must contain objects for their options to be mergeable.`);return(0,t.default)({},z.options,{},se.options)}}function E($){return a.isAbsolute($)?$:a.join(process.cwd(),$)}function V($,O){return $&&O&&Object.keys(O).every(I=>{const L=O[I],Z=$[I];return typeof L=="function"?L(Z):A(L)?L===Z:V(Z,L)})}function A($){return $==null||/^[sbn]/.test(typeof $)}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:n,babel:{types:t}}){e.default.forEach(r=>r.parentPath.replaceWith(t.callExpression(t.identifier("require.context"),[...r.parent.arguments])))}var requireContext_macro=createMacro(requireContext);const requireContext$1=getDefaultExportFromCjs(requireContext_macro),__vite_import_meta_env__={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__){files=Object.assign({"../assets/svg/brandscotland-logo.svg":()=>Promise.resolve().then(()=>require("./brandscotland-logo-BbDMkgti.js")).then(n=>n.default),"../assets/svg/cookie-coo.svg":()=>Promise.resolve().then(()=>require("./cookie-coo-Bc1O8aR_.js")).then(n=>n.default),"../assets/svg/highland-cow.svg":()=>Promise.resolve().then(()=>require("./highland-cow-DlMGnebG.js")).then(n=>n.default),"../assets/svg/iCentre.svg":()=>Promise.resolve().then(()=>require("./iCentre-BnLcpIw8.js")).then(n=>n.default),"../assets/svg/icons/docs/deprecated.svg":()=>Promise.resolve().then(()=>require("./deprecated-BJ2e68Yo.js")).then(n=>n.default),"../assets/svg/icons/docs/prototype.svg":()=>Promise.resolve().then(()=>require("./prototype-DQocvgQh.js")).then(n=>n.default),"../assets/svg/icons/docs/ready.svg":()=>Promise.resolve().then(()=>require("./ready-D9pdKFkx.js")).then(n=>n.default),"../assets/svg/icons/docs/review.svg":()=>Promise.resolve().then(()=>require("./review-7L3On10m.js")).then(n=>n.default),"../assets/svg/icons/instagram-filled.svg":()=>Promise.resolve().then(()=>require("./instagram-filled-CvF3WA5q.js")).then(n=>n.default),"../assets/svg/no-js-coo.svg":()=>Promise.resolve().then(()=>require("./no-js-coo-BEt1aICD.js")).then(n=>n.default),"../assets/svg/os-logo-maps-white.svg":()=>Promise.resolve().then(()=>require("./os-logo-maps-white-BTtf_Eki.js")).then(n=>n.default),"../assets/svg/os-logo-maps.svg":()=>Promise.resolve().then(()=>require("./os-logo-maps-QXAuept_.js")).then(n=>n.default),"../assets/svg/visitscotland-logo.svg":()=>Promise.resolve().then(()=>require("./visitscotland-logo-NoymCLtN.js")).then(n=>n.default)});const e={};for(const[n,t]of Object.entries(files)){const r=n.replace("../assets/svg",".");e[r]=t}files=e}else files=requireContext$1("../assets/svg?optimise",!0,/^\.\/.*\.svg$/);const output=files,_sfc_main$1i={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 n=lodashExports.first(this.svg.match(/<svg[^>]+.*?>/)).match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|[>"']))+.)["']?/g),t=lodashExports.fromPairs(lodashExports.map(n,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 n={};return this.fill&&(lodashExports.has(this.nativeAttrs,"style")?(n=this.nativeStyleAttrMap,n.fill=this.fill):n={fill:this.fill},e.style=lodashExports.join(lodashExports.map(lodashExports.toPairs(n),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$19(e,n,t,r,a,s){return a.svg?(vue.openBlock(),vue.createElementBlock("svg",vue.mergeProps({key:0},s.attributes,{innerHTML:s.children,focusable:"false"}),null,16,_hoisted_1$$)):vue.createCommentVNode("",!0)}const VsSvg=_export_sfc(_sfc_main$1i,[["render",_sfc_render$19]]),_sfc_main$1h={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$18(e,n,t,r,a,s){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$1h,[["render",_sfc_render$18]]),_sfc_main$1g={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$17(e,n,t,r,a,s){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(s.getCurrentYear)+" ",1),vue.renderSlot(e.$slots,"copyright")])]),_:3})]),_:3})]),_:3})])}const FooterCopyright=_export_sfc(_sfc_main$1g,[["render",_sfc_render$17]]),_sfc_main$1f={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$16(e,n,t,r,a,s){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$1f,[["render",_sfc_render$16]]),_sfc_main$1e={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$15(e,n,t,r,a,s){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$1e,[["render",_sfc_render$15]]),_sfc_main$1d={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$14(e,n,t,r,a,s){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$1d,[["render",_sfc_render$14]]),_sfc_main$1c={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$13(e,n,t,r,a,s){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$1c,[["render",_sfc_render$13]]),_sfc_main$1b={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"),n=this.cookieExists("googtrans");this.setCookie("vs_locale",this.localeCookie,!e),this.setCookie("googtrans",this.translationCookie,!n)}}};function _sfc_render$12(e,n,t,r,a,s){const i=vue.resolveComponent("VsDropdownItem");return vue.openBlock(),vue.createBlock(i,{class:"vs-global-menu__languages__item",href:t.languageLink,onClick:n[0]||(n[0]=l=>s.setLanguage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.languageName),1)]),_:1},8,["href"])}const GlobalMenuLanguageItem=_export_sfc(_sfc_main$1b,[["render",_sfc_render$12]]),_sfc_main$1a={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$q={key:0},_hoisted_5$j={key:1,class:"vs-hero-section__divider"};function _sfc_render$11(e,n,t,r,a,s){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(s.setInset),"data-test":"vs-hero-section__image-wrapper"},[t.src?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4$q,[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$1a,[["render",_sfc_render$11]]),_sfc_main$19={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$10(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("span",_hoisted_1$U)}const HtmlError=_export_sfc(_sfc_main$19,[["render",_sfc_render$10]]),_sfc_main$18={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$p={key:0,class:"vs-tourism-info__links-contained","data-test":"vs-tourism-info__embedded-links"};function _sfc_render$$(e,n,t,r,a,s){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$p,[vue.renderSlot(e.$slots,"tourism-info-links")])):vue.createCommentVNode("",!0)])]),_:3})):vue.createCommentVNode("",!0)]),_:3})]),_:3})])}const TourismInfo=_export_sfc(_sfc_main$18,[["render",_sfc_render$$]]),_sfc_main$17={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$_(e,n,t,r,a,s){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$17,[["render",_sfc_render$_]]),_sfc_main$16={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$Z(e,n,t,r,a,s){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$16,[["render",_sfc_render$Z]]),_sfc_main$15={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$Y(e,n,t,r,a,s){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:s.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$15,[["render",_sfc_render$Y]]),_sfc_main$14={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={class:"vs-video-caption__details"},_hoisted_4$o={class:"vs-video-caption__title"},_hoisted_5$i={class:"vs-video-caption__duration"},_hoisted_6$c={key:1,class:"vs-video-caption vs-video-caption--no-js vs-video-caption--warning","data-test":"video-caption-nojs"};function _sfc_render$X(e,n,t,r,a,s){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}`])},[s.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:s.emitShowModal},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.videoBtnText),1)]),_:1},8,["onClick"])]),t.withToggleBtn?(vue.openBlock(),vue.createBlock(l,{key:0,onToggleAction:s.emitToggle},{default:vue.withCtx(()=>n[0]||(n[0]=[vue.createElementVNode("span",{class:"visually-hidden"}," Toggle caption ",-1)])),_:1},8,["onToggleAction"])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_3$u,[vue.createElementVNode("p",_hoisted_4$o,[vue.renderSlot(e.$slots,"video-title")]),vue.createElementVNode("p",_hoisted_5$i,vue.toDisplayString(s.videoDetails.videoDurationMsg),1)])],2)):vue.createCommentVNode("",!0),s.noJsMessage?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$c,[vue.createVNode(c,{size:"small"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(s.noJsMessage),1)]),_:1})])):vue.createCommentVNode("",!0)],2)}const VsVideoCaption=_export_sfc(_sfc_main$14,[["render",_sfc_render$X]]),_sfc_main$13={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:{isSvg(){return this.imageSrc.endsWith(".svg")},imageWithCaptionClasses(){return{"vs-image-with-caption--closed-default":this.closedDefaultCaption,"vs-image-with-caption--hero":this.isHeroImage,"vs-image-with-caption--video":this.isVideo,"vs-image-with-caption--svg":this.isSvg}},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$W(e,n,t,r,a,s){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",s.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:s.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:s.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",s.captionWrapperClasses]),id:a.uniqueCaptionId},[vue.renderSlot(e.$slots,"img-caption")],10,_hoisted_3$t)])],2)}const ImageWithCaption=_export_sfc(_sfc_main$13,[["render",_sfc_render$W]]),_sfc_main$12={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 n;switch(e){case"firstName":n="given-name";break;case"lastName":n="family-name";break;case"Email":n="email";break;case"PostalCode":n="postal-code";break;default:n=this.autoComplete?"on":"off";break}return n},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$n={class:"visually-hidden"};function _sfc_render$V(e,n,t,r,a,s){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$n,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",s.elementClass]),modelValue:a.inputVal,"onUpdate:modelValue":n[0]||(n[0]=c=>a.inputVal=c),id:t.fieldName,name:t.name?t.name:t.fieldName,placeholder:t.placeholder,required:e.isRequired,autocomplete:s.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:s.validateErrors,onChange:s.validateErrors,onFocus:s.resetErrors},null,8,["type","modelValue","class","id","name","placeholder","required","autocomplete","v","aria-invalid","aria-describedby","maxlength","minlength","min","max","disabled","onBlur","onChange","onFocus"]),s.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:n[1]||(n[1]=vue.withModifiers(c=>s.clearInputAndFocus(),["prevent"]))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.clearButtonText),1)]),_:1})):vue.createCommentVNode("",!0)])}const VsInput=_export_sfc(_sfc_main$12,[["render",_sfc_render$V]]),_sfc_main$11={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(),n=e.top<=(window.innerHeight||document.documentElement.clientHeight),t=e.bottom<=(window.innerHeight||document.documentElement.clientHeight);this.withinItineraryMain=!!(n&&!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$m={key:0,class:"vs-itinerary__map-container","data-chromatic":"ignore"};function _sfc_render$U(e,n,t,r,a,s){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:n[0]||(n[0]=p=>s.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$m,[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$11,[["render",_sfc_render$U]]),_sfc_main$10={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$l={class:"vs-itinerary-day__sub-heading"},_hoisted_5$h=["id"],_hoisted_6$b={class:"vs-itinerary-day__intro-content"},_hoisted_7$9={class:"list-unstyled"};function _sfc_render$T(e,n,t,r,a,s){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$l,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$b,[vue.renderSlot(e.$slots,"day-transport"),vue.renderSlot(e.$slots,"day-introduction")]),vue.createElementVNode("ul",_hoisted_7$9,[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$10,[["render",_sfc_render$T]]),_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$k={class:"position-relative"},_hoisted_5$g={class:"map-marker__count","aria-hidden":"true","data-test":"vs-itinerary-stop-marker"},_hoisted_6$a={class:"vs-itinerary-stop__details-container","data-chromatic":"ignore"},_hoisted_7$8={key:0,class:"vs-itinerary-stop__address","data-test":"vs-itinerary-stop-address"};function _sfc_render$S(e,n,t,r,a,s){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$k,[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$a,[e.$slots["stop-address"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$8,[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$S]]),_sfc_main$_={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 n=this.currentDayData[0].state==="open"?this.openText:this.closedText;this.currentDayData[0].provisional?e=`${this.provisionalText} ${n.toLowerCase()} ${this.currentDayData[0].day}`:e=`${this.usualText} ${n.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,r)=>{e+=` ${t.startTime} ${this.toText} ${t.endTime}`,r+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,n=e.toLocaleTimeString("en-GB",{timeZone:"Europe/London"});this.ukDate=e.toLocaleDateString("en-GB",{timeZone:"Europe/London"});const t=n.substring(0,2),r=n.substring(3,6),a=e.getDay();this.currentTime.hours=parseInt(t,10),this.currentTime.minutes=parseInt(r,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)}`,n=new Date(this.parsedHours.period.startDay),t=new Date(this.parsedHours.period.endDay),r=new Date(e);r<t&&r>n?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 n=this.parsedHours.days.filter(t=>t.key===e);typeof n<"u"&&(this.currentDayData=n,this.compareTimes(this.currentTime,this.currentDayData,this.dayDataIndex))}},compareTimes(e,n,t){if(typeof n[t].startTime<"u"&&typeof n[t].endTime<"u"&&n[t].startTime.length>0&&n[t].endTime.length>0){const r=n[t].startTime,a=n[t].endTime,s=parseInt(r.substring(0,r.indexOf(":")),10),i=parseInt(r.substring(r.indexOf(":")+1,r.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);n[t].state==="closed"?this.openingMessage="closed":s>e.hours||s===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"&&n.length>t+1&&(this.dayDataIndex+=1,this.compareTimes(this.currentTime,this.currentDayData,this.dayDataIndex))}else n[t].state==="closed"&&(this.openingMessage="closed")},returnDayName(e){let n="";switch(e){case 1:n="monday";break;case 2:n="tuesday";break;case 3:n="wednesday";break;case 4:n="thursday";break;case 5:n="friday";break;case 6:n="saturday";break;case 7:n="sunday";break;default:n=""}return n},calculateClosingSoon(e,n){let t,r;return n<30?(t=e-1,r=60+(n-30)):(t=e,r=n-30),{hours:t,mins:r}},withinClosingSoonTime(e,n){return!(n.hours>e.hours||n.hours===e.hours&&n.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={key:1,"data-test":"vs-itinerary-stop-hours"},_hoisted_4$j={key:1,"data-test":"vs-stop-link"},_hoisted_5$f={key:2,"data-test":"vs-stop-charge-text"};function _sfc_render$R(e,n,t,r,a,s){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},[s.hoursMessage.length>0?(vue.openBlock(),vue.createElementBlock("p",_hoisted_2$x,[vue.createTextVNode(vue.toDisplayString(s.hoursMessage),1),n[0]||(n[0]=vue.createElementVNode("br",null,null,-1))])):vue.createCommentVNode("",!0),!a.closedLongTerm&&typeof a.currentDayData[0]<"u"&&typeof a.currentDayData[0].state<"u"&&s.provisionalMessage.length>0?(vue.openBlock(),vue.createElementBlock("p",_hoisted_3$o,vue.toDisplayString(s.provisionalMessage)+". ",1)):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),e.$slots["stop-link-text"]&&t.openingTimesLink!==null?(vue.openBlock(),vue.createElementBlock("p",_hoisted_4$j,[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_5$f,[vue.renderSlot(e.$slots,"stop-charge-text")])):vue.createCommentVNode("",!0)])])}const ItineraryStopInfo=_export_sfc(_sfc_main$_,[["render",_sfc_render$R]]),_sfc_main$Z={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$Q(e,n,t,r,a,s){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$Z,[["render",_sfc_render$Q]]),_sfc_main$Y={name:"VsItineraryBorderOverlapWrapper",status:"prototype",release:"0.0.1",components:{},props:{}},_hoisted_1$I={class:"vs-itinerary-border-overlap__wrapper d-flex d-sm-inline-flex flex-column justify-content-start border-left"};function _sfc_render$P(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$I,[vue.renderSlot(e.$slots,"default")])}const ItineraryBorderOverlapWrapper=_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$H=["data-test"],_hoisted_2$v={class:"link-list__list"};function _sfc_render$O(e,n,t,r,a,s){const i=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(s.classes),"data-test":s.dataTest},[vue.createElementVNode("nav",null,[s.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$H)}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$G={class:"link-list-item"};function _sfc_render$N(e,n,t,r,a,s){const i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$G,[vue.createVNode(i,{href:t.href,type:t.type=="video"?"default":t.type,role:t.type=="video"?"button":null,onClick:s.emitShowModal},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default"),t.type=="video"&&s.videoLoaded?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(" | "+vue.toDisplayString(t.videoDescriptor)+" "+vue.toDisplayString(s.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$F={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$i={class:"count__bg"},_hoisted_5$e={class:"count","aria-hidden":"true"};function _sfc_render$M(e,n,t,r,a,s){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRow");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$F,[vue.renderSlot(e.$slots,"hippo-details"),vue.createElementVNode("div",_hoisted_2$u,[vue.createElementVNode("div",_hoisted_3$m,[vue.createElementVNode("div",_hoisted_4$i,[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",[s.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}`:""}}};function _sfc_render$L(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-loading-spinner",s.spinnerClasses]),"data-test":"vs-loading-spinner"},n[0]||(n[0]=[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)]),2)}const VsLoadingSpinner=_export_sfc(_sfc_main$U,[["render",_sfc_render$L]]);var define_process_env_default={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LfqqfcZAAAAACbkbPaHRZTIFpKZGAPZBDkwBKhe",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_15348_CWGUUHKPCRTIGFCZ",COLORTERM:"truecolor",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"2HR07S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EXEPATH:"C:\\Program Files\\Git\\bin",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",GIT_ASKPASS:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\duncan.sanderson",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\duncan.sanderson",HOSTNAME:"2HR07S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LANG:"en_US.UTF-8",LOCALAPPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE_ENV:"production",NODE_PATH:"C:\\Users\\duncan.sanderson\\AppData\\npm",npm_config_user_agent:"yarn/4.3.1 npm/? node/v18.19.1 win32 x64",npm_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579\\node",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.7.1",NUMBER_OF_PROCESSORS:"8",OneDrive:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",OneDriveCommercial:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin",ORIGINAL_TEMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",PATH:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-274ceb4d;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-4df2ce3c;C:\\Users\\duncan.sanderson\\.volta\\bin;C:\\Users\\duncan.sanderson\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",ProgramData:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",PYTHON:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_AGENT_PID:"1838",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SSH_AUTH_SOCK:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp/ssh-uR4B1I3vN93q/agent.1837",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TERM:"xterm-256color",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.96.2",TMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"duncan.sanderson",USERPROFILE:"C:\\Users\\duncan.sanderson",VOLTA_HOME:"C:/Users/duncan.sanderson/.volta",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",VSCODE_GIT_ASKPASS_MAIN:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-4a2d75133c-sock",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/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[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 n;switch(e){case"Country":n="country-name";break;default:n="on";break}return n}},validations(){return this.rules}},_hoisted_1$E={class:"vs-select"},_hoisted_2$t=["id"],_hoisted_3$l=["id"],_hoisted_4$h={class:"visually-hidden"},_hoisted_5$d={class:"vs-select__container mt-050"};function _sfc_render$K(e,n,t,r,a,s){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$h,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":n[0]||(n[0]=l=>a.inputVal=l)},e.$attrs,{options:s.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",s.errorClass],required:e.isRequired,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,autocomplete:s.autocompleteValue(t.fieldName)}),null,16,["modelValue","options","name","id","onChange","onBlur","required","aria-invalid","aria-describedby","class","autocomplete"]),n[1]||(n[1]=vue.createElementVNode("span",{class:"vs-select__focus"},null,-1))])])}const VsSelect=_export_sfc(_sfc_main$T,[["render",_sfc_render$K]]);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},_extends.apply(this,arguments)}var defer=function e(){var n=!1,t=[],r=function(){if(!n){n=!0;for(var l=0,c=t.length;l<c;l++)t[l]()}},a=function(l){if(!n){t.push(l);return}l()},s={resolved:function(){return n},resolve:r,promise:{then:a}};return s},ownProp=Object.prototype.hasOwnProperty;function createRecaptcha(){var e=defer();return{notify:function(){e.resolve()},wait:function(){return e.promise},render:function(t,r,a){this.wait().then(function(){a(window.grecaptcha.render(t,r))})},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(n,t){var r=t.slots,a=t.emit,s=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(),n.loadRecaptchaScript&&!document.getElementById(n.recaptchaScriptId)){var f=document.createElement("script");f.id=n.recaptchaScriptId,f.src="https://"+n.recaptchaHost+"/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit&hl="+n.language,f.async=!0,f.defer=!0,document.head.appendChild(f)}var p=_extends({},n,{callback:l,"expired-callback":c,"error-callback":d}),v=s.value,m=r.default?v.children[0]:v;recaptcha.render(m,p,function(g){i.value=g,a("render",g)})}),{root:s,widgetId:i,reset:function(){recaptcha.reset(i.value)},execute:function(){recaptcha.execute(i.value)}}},render:function e(){var n=this.$slots.default,t;return typeof n=="function"?t=n():t=n,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 n=e[0].parentNode,t=document.querySelector('label[for="g-recaptcha-response"]'),r=document.createElement("label");r.setAttribute("for","g-recaptcha-response"),r.setAttribute("class","visually-hidden"),r.textContent=this.textareaLabel,t||n.insertBefore(r,e[0])}}}},_hoisted_1$D={class:"vs-recaptcha","aria-live":"assertive"},_hoisted_2$s={key:0,class:"error"};function _sfc_render$J(e,n,t,r,a,s){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:s.verified,onRender:s.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$g={class:"visually-hidden"};function _sfc_render$I(e,n,t,r,a,s){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$g,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",s.elementClass]),modelValue:a.inputVal,"onUpdate:modelValue":n[0]||(n[0]=l=>a.inputVal=l),id:t.fieldName,name:t.name?t.name:t.fieldName,placeholder:t.placeholder,required:e.isRequired,autocomplete:s.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:s.validateErrors,onChange:s.validateErrors,onFocus:s.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(n=>{this.form[n.name]="",n.conditional&&(this.conditionalFields[n.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,n){const t=this.getLanguageObj();let r="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].label)?r=t[e].label:r=this.formData.fields[n].label,this.showOptionalText(this.formData.fields[n])&&!this.isUndefined(this.getMessagingData("optional",this.language))&&(r=`${r} (${this.getMessagingData("optional",this.language)})`),r},getTranslatedLegend(e,n){const t=this.getLanguageObj();let r="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].descriptor)?r=t[e].descriptor:r=this.formData.fields[n].descriptor,r},getTranslatedInfo(e,n){const t=this.getLanguageObj();let r="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].info)?r=t[e].info:r=this.formData.fields[n].info,r},getTranslatedValidation(e,n){const t=this.getLanguageObj();let r;return this.language==="en"&&!this.isUndefined(this.formData.fields[n].validationMessages)?r=this.formData.fields[n].validationMessages:!this.isUndefined(t[e])&&!this.isUndefined(t[e].validationMessages)?r=t[e].validationMessages:this.language==="en"&&(r=this.formData.fields[n].validationMessages),r},getTranslatedOptions(e,n){const t=this.getLanguageObj();let r=[];return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined([e].options)?r=t[e].options:r=this.formData.fields[n].options,typeof r>"u"&&(r=[]),r},getTranslatedHint(e,n){const t=this.getLanguageObj();let r="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].hint)?r=t[e].hint:this.isUndefined(this.formData.fields[n].hint)?r="":r=this.formData.fields[n].hint,r},getTranslatedContent(e){let n;const t=this.getLanguageObj();return this.language==="en"&&!this.isUndefined(this.formData.content)&&!this.isUndefined(this.formData.content[e])?n=this.formData.content[e]:!this.isUndefined(t.content)&&!this.isUndefined(t.content[e])?n=t.content[e]:n=this.getMessagingData(e,this.language),n},getMessagingData(e,n){return Object.keys(this.messagingData).length>0?this.messagingData[n][e]:e==="validation"?{}:""},getHiddenFields(){return[...this.$el.querySelectorAll("input[type=hidden]")].map(this.parseBooleanStringsFromInputField).reduce((e,n)=>(e[n.name]=n.value,e),{})},parseBooleanStringsFromInputField(e){let n=e.value;return n==="true"?n=!0:n==="false"&&(n=!1),{name:e.name,value:n}},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,n){const t=this.errorFields.indexOf(e);t!==-1?(!n||n.length<1)&&this.errorFields.splice(t,1):n&&n.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 n(r){return r.validation&&r.validation.required}this.isTest||this.onRecaptchaVerify(),this.triggerValidate=!0;const t=this.formData.fields.filter(n);t.length===0?this.formIsInvalid=!1:t.forEach(r=>{if(!/\S/.test(this.form[r.name])){let a=!0;r.name in this.conditionalFields&&!this.conditionalFields[r.name]&&(a=!1),this.formIsInvalid=a}}),this.showErrorMessage=this.formIsInvalid,Object.entries(this.conditionalFields).forEach(([r,a])=>{a||(this.form[r]="")}),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 n=this.getHiddenFields();axios.post(this.submitUrl,{...this.form,...n,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]},{},()=>{},()=>{},!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 n=this.formData.fields.find(r=>r.name===e);let t=!0;Object.keys(n.conditional).forEach(r=>{const a=n.conditional[r];Array.isArray(a)?a.indexOf(this.form[r])===-1&&(t=!1):this.form[r]!==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={class:"vs-form__main-heading vs-heading vs-heading--heading-l float-none","data-test":"vs-form__main-heading"},_hoisted_3$j={key:0},_hoisted_4$f={"aria-live":"assertive"},_hoisted_5$c={key:0},_hoisted_6$9=["innerHTML"],_hoisted_7$7={key:2};function _sfc_render$H(e,n,t,r,a,s){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,[n[1]||(n[1]=vue.createElementVNode("form",{class:"d-none"},null,-1)),a.submitted?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("form",{key:0,onSubmit:n[0]||(n[0]=vue.withModifiers((...b)=>s.preSubmit&&s.preSubmit(...b),["prevent"]))},[vue.createElementVNode("fieldset",null,[vue.createElementVNode("legend",_hoisted_2$q,vue.toDisplayString(s.getTranslatedContent("heading")),1),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.formData.fields,(b,C)=>(vue.openBlock(),vue.createBlock(f,{key:b.name,label:s.needsLabel(b)?s.getTranslatedLabel(b.name,C):"","label-for":s.needsLabel(b)?b.name:"",class:vue.normalizeClass(s.conditionalElementClass(b.name))},{default:vue.withCtx(()=>[!s.isUndefined(b.descriptor)&&b.element==="checkbox"?(vue.openBlock(),vue.createElementBlock("legend",_hoisted_3$j,vue.toDisplayString(s.getTranslatedLegend(b.name,C)),1)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:vue.normalizeClass(s.conditionalElementClass(b.name))},[b.element==="input"?(vue.openBlock(),vue.createBlock(i,{key:0,ref_for:!0,ref:b.name,onStatusUpdate:s.updateFieldData,"field-name":b.name,type:b.type,"validation-rules":b.validation||{},"validation-messages":s.getTranslatedValidation(b.name,C)||{},"generic-validation":s.getMessagingData("validation",t.language),invalid:a.errorFields.indexOf(b.name)>-1,"trigger-validate":a.triggerValidate,"hint-text":s.getTranslatedHint(b.name,C),placeholder:b.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),b.element==="select"?(vue.openBlock(),vue.createBlock(l,{key:1,options:s.getTranslatedOptions(b.name,C),ref_for:!0,ref:b.name,onStatusUpdate:s.updateFieldData,"field-name":b.name,"validation-rules":b.validation||{},"validation-messages":s.getTranslatedValidation(b.name,C)||{},"generic-validation":s.getMessagingData("validation",t.language),invalid:a.errorFields.indexOf(b.name)>-1,"trigger-validate":a.triggerValidate,"country-list-url":t.countryListUrl,countries:b.countries,"hint-text":s.getTranslatedHint(b.name,C),"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),b.element==="checkbox"?(vue.openBlock(),vue.createBlock(c,{key:b.name,ref_for:!0,ref:b.name,name:b.name,value:b.value,label:s.getTranslatedLabel(b.name,C),onStatusUpdate:s.updateFieldData,"field-name":b.name,"validation-rules":b.validation||{},"validation-messages":s.getTranslatedValidation(b.name,C)||{},"generic-validation":s.getMessagingData("validation",t.language),invalid:a.errorFields.indexOf(b.name)>-1,"trigger-validate":a.triggerValidate,"optional-text":s.getMessagingData("optional",t.language),"hint-text":s.getTranslatedHint(b.name,C),"info-text":s.getTranslatedInfo(b.name,C),"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),b.element==="textarea"?(vue.openBlock(),vue.createBlock(d,{key:3,ref_for:!0,ref:b.name,onStatusUpdate:s.updateFieldData,"field-name":b.name,"validation-rules":b.validation||{},"validation-messages":s.getTranslatedValidation(b.name,C)||{},"generic-validation":s.getMessagingData("validation",t.language),invalid:a.errorFields.indexOf(b.name)>-1,"trigger-validate":a.triggerValidate,"hint-text":s.getTranslatedHint(b.name,C),placeholder:b.placeholder||"","re-alert-errors":a.reAlertErrors,rows:b.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:s.onRecaptchaVerify,"site-key":t.recaptchaKey,invalid:!a.recaptchaVerified&&a.showErrorMessage,language:t.language,"error-msg":s.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:s.preSubmit},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(s.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_4$f,[a.submitting?(vue.openBlock(),vue.createElementBlock("p",_hoisted_5$c,[vue.renderSlot(e.$slots,"submitting")])):vue.createCommentVNode("",!0),a.submitted?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[s.getTranslatedContent("successHeading")?(vue.openBlock(),vue.createBlock(g,{key:0,level:"2","heading-style":"heading-l"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(s.getTranslatedContent("successHeading")),1)]),_:1})):vue.createCommentVNode("",!0),vue.createElementVNode("p",{class:"vs-form__content",innerHTML:s.getTranslatedContent("successContent")},null,8,_hoisted_6$9)],64)):vue.createCommentVNode("",!0),a.submitError?(vue.openBlock(),vue.createElementBlock("p",_hoisted_7$7,[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,n,t,r,a,s){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:s.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 n={target:{text:e}};this.createDataLayerObject("menuNavigationDataEvent",n,null)}}},_hoisted_1$A={class:"mega-nav-mobile-menu","data-test":"vs-mega-nav-mobile-menu"};function _sfc_render$F(e,n,t,r,a,s){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,n,t,r,a,s){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:s.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$e={for:"site-search",class:"vs-site-search-form__label"},_hoisted_5$b={class:"visually-hidden"};function _sfc_render$D(e,n,t,r,a,s){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$e,[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:s.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:s.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:s.closeSearchForm,onKeydown:vue.withKeys(s.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,n){e.clickOutsideEvent=t=>{e===t.target||e.contains(t.target)||n.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 n=document.getElementsByClassName("vs-mega-nav__menu-mobile")[0];this.isOpen&&!n.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,n,t,r,a,s){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"),b=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:s.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:n[0]||(n[0]=C=>s.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})),[[b,s.closeMenu]]):vue.createCommentVNode("",!0)])]),_:3})]),_:3})]),_:3})]),vue.withDirectives(vue.createVNode(g,{onToggleAction:s.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 n={target:{text:this.$slots["button-content"]()[1].children[0].children}};this.createDataLayerObject("menuNavigationDataEvent",n,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$d={role:"menuitem"};function _sfc_render$B(e,n,t,r,a,s){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:n[0]||(n[0]=p=>s.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:s.closeMenu,onKeydown:vue.withKeys(s.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$d,[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:s.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={class:"vs-mega-nav-dropdown-container__columns-wrapper"},_hoisted_3$g={key:2,class:"vs-mega-nav-dropdown-container__featured-event","data-test":"vs-mega-nav-dropdown-container__featured-event"};function _sfc_render$A(e,n,t,r,a,s){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),n[0]||(n[0]=vue.createElementVNode("hr",{class:"vs-mega-nav-dropdown-container__divider"},null,-1))]),"dropdown-content":vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$m,[vue.renderSlot(e.$slots,"dropdown-content"),s.hasFeaturedItemLeft?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["vs-mega-nav-dropdown-container__featured vs-mega-nav-dropdown-container__featured--left",s.alignmentClass]),"data-test":"vs-mega-nav-dropdown-container__featured"},[vue.renderSlot(e.$slots,"nav-featured-item-left")],2)):vue.createCommentVNode("",!0),s.hasFeaturedItem?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["vs-mega-nav-dropdown-container__featured",s.alignmentClass]),"data-test":"vs-mega-nav-dropdown-container__featured"},[vue.renderSlot(e.$slots,"nav-featured-item")],2)):vue.createCommentVNode("",!0),s.hasFeaturedEvent?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$g,[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,n,t,r,a,s){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":s.listHeadingId},[t.listHeading?(vue.openBlock(),vue.createBlock(i,{key:0,class:"vs-mega-nav-list__heading",id:s.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,n,t,r,a,s){const i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",{class:vue.normalizeClass(["vs-mega-nav-list-item",s.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,n,t,r,a,s){const i=vue.resolveComponent("VsLink"),l=vue.resolveComponent("VsAccordionItem");return vue.openBlock(),vue.createBlock(l,{class:vue.normalizeClass(["vs-mega-nav-accordion-item",s.accordionItemClasses]),"data-test":"vs-mega-nav-accordion-item","data-unique-id":s.getUniqueId,"control-id":`vs-mega-nav-accordion-item-${s.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,n,t,r,a,s){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,n,t,r,a,s){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,n,t,r,a,s){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,n,t,r,a,s){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",s.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:""},businessSupport:{type:Boolean,default:!1},isHomePage:{type:Boolean,default:!1}},computed:{megalinkClass(){let e="";return this.theme&&(e+=`vs-megalink-link-list--${this.theme} `),this.isHomePage||(e+="vs-megalink-link-list--internal-page "),this.businessSupport&&(e+="vs-megalink-link-list--business-support "),e}}},_hoisted_1$r={class:"vs-megalink-link-list__title","data-test":"megalink-link-list__title"};function _sfc_render$s(e,n,t,r,a,s){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",s.megalinkClass]),"data-test":"vs-megalink-link-list"},[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","business-support":t.businessSupport,"is-home-page":t.isHomePage},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:vue.normalizeClass(t.businessSupport?"d-block":"vs-megalink-link-list__content"),"data-test":"megalink-link-list__content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-link-list-content")]),_:3},8,["class"])]),_: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,t.businessSupport&&!t.isHomePage?{name:"stretched-card-badges",fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-link-list-badges")]),key:"1"}:void 0]),1032,["link","type","img-src","img-alt","theme","video-id","video-btn-text","error-message","business-support","is-home-page"])],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,n,t,r,a,s){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",s.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,e.$slots["vs-multi-image-badges"]&&e.$slots["vs-multi-image-badges"]()?{name:"stretched-card-badges",fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-multi-image-badges")]),key:"1"}: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 n=e.querySelector("img");n.addEventListener("load",()=>{const t=n.clientHeight/2.5/n.clientWidth;this.negativeMargin=`${t*100}%`,this.imageHeight=`${n.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,n,t,r,a,s){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",s.singleImageClasses]),"data-test":"megalink-single-image",style:vue.normalizeStyle(s.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,n,t,r,a,s){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":n[0]||(n[0]=p=>a.show=p),onHidden:s.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:s.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,n,t,r,a,s){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",s.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"},s.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,n,t,r,a,s){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,n,t){setWindowObj();let r="";return Object.keys(VS$1).length>0&&(typeof t<"u"?r=VS$1.search_config.basic_config.search_module[t][e]:r=VS$1.search_config.basic_config.search_module[e]),r||n}function getProductName(e,n){setWindowObj();const t={};return Object.keys(VS$1).length>0&&Object.keys(VS$1.search_config.basic_config.productTypes).forEach(r=>{const a=VS$1.search_config.basic_config.productTypes[r];t[a.value]=a.text}),t[e]?t[e]:n}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,n=[];return Object.keys(e).forEach(r=>{n.push({key:e[r].value,text:e[r].text,value:e[r].value})}),n}async function getData(e){try{const{data:n}=await axios.get(e);return n}catch(n){console.error(`Axios error: ${n}`)}}var controls={arrowUpKey:38,arrowDownKey:40,escKey:27,enterKey:13};function isFn(e){return typeof e=="function"}function isControlledProp(e,n){return e[n]!==void 0}function hasKeyCode(e,n){return e===n.keyCode}function getItemIndex(e,n,t){return e!==void 0?e:t.length?t.indexOf(n):-1}function hasOwnProperty(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function getNextNonDisabledIndex(e,n,t,r,a){var s=r(n);if(!s||!s.hasAttribute("disabled"))return n;if(e>0)for(var i=n+1;i<t;i+=1){var l=r(i),c=l.hasAttribute("disabled");if(!c)return i}else for(var d=n-1;d>=0;d-=1)if(!r(d).hasAttribute("disabled"))return d;return a?e>0?getNextNonDisabledIndex(1,0,t,r,!1):getNextNonDisabledIndex(-1,t-1,t,r,!1):-1}function scrollToElement(e,n,t){var r=n.clientHeight,a=n.scrollTop,s=e.offsetHeight,i=e.offsetTop;if(i<a)t===0?n.scrollTop=0:n.scrollTop=i;else{var l=i+s,c=a+r;l>c&&(n.scrollTop=l-r)}}function getProps(e){return Object.assign({},e?{modelValue:{default:null}}:{value:{default:null}},{items:{type:Array,required:!0},itemToString:{type:Function,default:function(n){return n?String(n):""}},stateReducer:{type:Function,default:function(n,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,n){return{hovered:null,isOpen:!1,hoveredIndex:-1,selectedItem:e,inputValue:n(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(n){n===void 0&&(n={});var t=n.blur,r=n.input,a=n.keydown,s=n.keyup;return{blur:isFn(t)?t:this.onInputBlur,input:isFn(r)?r:this.onInput,keydown:isFn(a)?a:this.onInputKeyDown,keyup:isFn(s)?s:this.onInputKeyUp}},onInputKeyDown:function e(n){n.key==="Enter"&&this.isOpen?n.preventDefault():hasKeyCode(controls.arrowDownKey,n)&&!this.isOpen?(this.setState({isOpen:!0},InputKeyDownArrowDown),this.moveSelection(n)):this.moveSelection(n)},onInputKeyUp:function e(n){var t=controls.enterKey,r=controls.escKey;if(this.isOpen)if(hasKeyCode(t,n)){if(this.hoveredIndex>=0){n.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(r,n)&&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(n){var t=n.target?n.target.value:n;this.setState({inputValue:t,hovered:null,isOpen:!0},InputChange)}},itemPropsAndListeners={getItemEventListeners:function e(n){var t=this;n===void 0&&(n={});var r=n.index,a=n.disabled,s=n.item;s===void 0&&(s=void 0);var i=n.mousemove,l=n.mousedown,c=n.click;return a?{}:{mousemove:isFn(i)?i:function(){return t.onItemMouseMove(r,s)},mousedown:isFn(l)?l:this.onItemMouseDown,click:isFn(c)?c:function(){return t.onItemClick(s)}}},onItemMouseMove:function e(n,t){var r=getItemIndex(n,t,this.items);this.hoveredIndex!==r&&this.setState({hoveredIndex:r,hovered:t},ItemMouseMove)},onItemMouseDown:function e(n){n.preventDefault()},onItemClick:function e(n){this.setState({inputValue:this.itemToString(n),selectedItem:n,isOpen:!1,hoveredIndex:-1,hovered:null},ItemClick)},getItemProps:function e(n){n===void 0&&(n={});var t=n.index,r=n.disabled,a=n.item;a===void 0&&(a=void 0);var s=getItemIndex(t,a,this.items),i=this.getItemId(s);return{id:i,disabled:r?!0:void 0,role:"option","aria-selected":this.hoveredIndex===s||this.selectedItem===a?"true":"false"}}},menuPropsAndListeners={getMenuProps:function e(){return{id:this.computedMenuId,role:"listbox","aria-labelledby":this.computedLabelId}},getMenuEventListeners:function e(n){n===void 0&&(n={});var t=n.mouseleave,r=n.mousedown;return{mouseleave:isFn(t)?t:this.onMenuMouseLeave,mousedown:isFn(r)?r:this.onMenuMouseDown}},onMenuMouseLeave:function e(){this.setState({hoveredIndex:-1,hovered:null},MenuMouseLeave)},onMenuMouseDown:function e(n){n.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(n){this.setInputValue(this.itemToString(n))},reset:function e(){this.setState({selectedItem:null,inputValue:""},FunctionReset)},select:function e(n){this.setState({inputValue:this.itemToString(n),selectedItem:n,isOpen:!1,hoveredIndex:-1,hovered:null},FunctionSelectItem)},setHoveredItem:function e(n,t,r){n&&n!==this.hovered&&this.$emit("hover",n,r),this.hovered=n,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(n){return this.menuElement.querySelector("#"+this.getItemId(n))},scrollItemIntoView:function e(n){var t=this.getItemNodeFromIndex(n);scrollToElement(t,this.menuElement,n)},moveSelection:function e(n){var t=this,r=this.items.length;if(!(!this.isOpen||!r)){var a=hasKeyCode(controls.arrowDownKey,n),s=hasKeyCode(controls.arrowUpKey,n);if(a||s){n.preventDefault();var i=a*2-1,l=a?0:r-1,c=a?this.hoveredIndex<r-1:this.hoveredIndex>0,d=c?this.hoveredIndex+i:l,f=getNextNonDisabledIndex(i,d,r,this.getItemNodeFromIndex,this.circular);if(!this.circular&&(s&&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(n){this.inputValue!==n&&this.setState({inputValue:n},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,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(n){isControlledProp(this.$props,"modelValue")&&(this.inputValue=this.itemToString(n),this.selectedItem=n)}},beforeCreate,data:function e(){return getInitialData(this.modelValue,this.itemToString)},computed:Object.assign({},computed),methods:Object.assign({},{setState:function e(n,t){var r=this.$data,a=this.stateReducer(r,{changes:n,type:t}),s=hasOwnProperty(a,"selectedItem"),i=a.selectedItem!==r.selectedItem;s&&(this.$emit("select",a.selectedItem,t),i&&this.$emit("update:modelValue",a.selectedItem,t));var l={};for(var c in a)hasOwnProperty(a,c)&&r[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:n}){const t=e,r=n,a=vue.ref([]),s=vue.ref(t.options),i=v=>v?v[d.value]:"",l=v=>{s.value=t.options.filter(m=>m[d.value].toLowerCase().includes(v.toLowerCase()))},c=v=>{typeof t.trackBy<"u"?r("changeValue",v[t.trackBy]):r("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:s.value,onInputValueChange:l,onSelect:c},{default:vue.withCtx(({getInputProps:g,getInputEventListeners:b,hoveredIndex:C,isOpen:w,getMenuProps:E,getMenuEventListeners:V,getItemProps:A,getItemEventListeners:$,getComboboxProps:O,openMenu:I})=>[vue.createElementVNode("div",vue.mergeProps(O(),{class:"vs-autocomplete__list-wrapper"}),[vue.createElementVNode("input",vue.mergeProps({class:"vs-input form-control"},g(),vue.toHandlers(b(),!0),{placeholder:v.placeholder,onClick:L=>I()}),null,16,_hoisted_3$b),vue.createVNode(VsIcon,{name:"chevron-down",variant:"primary",size:"sm"}),vue.withDirectives(vue.createElementVNode("ul",vue.mergeProps(E(),vue.toHandlers(V(),!0),{class:"vs-autocomplete__list"}),[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(s.value,(L,Z)=>(vue.openBlock(),vue.createElementBlock("li",vue.mergeProps({key:L.id,ref_for:!0},A({item:L,index:Z}),vue.toHandlers($({item:L,index:Z}),!0),{class:["vs-autocomplete__list-item",{"vs-autocomplete__list-item--hover":C===Z}]}),vue.toDisplayString(L[d.value]),17))),128))],16),[[vue.vShow,w]])],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:n}){const t=e,r=n,a=vue.ref(0),s=vue.ref(!1),i=vue.ref(t.name),l=()=>{a.value>t.minValue&&(a.value--,s.value=!0,d("decrease"))},c=()=>{a.value<t.maxValue&&(a.value++,s.value=!0,d("increase"))},d=f=>{r("changeHandler",t.name,a.value,f,t.id)};return vue.onMounted(()=>{s.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(()=>p[2]||(p[2]=[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(()=>p[3]||(p[3]=[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:n}){const t=e,r=n,a=vue.ref(t.unitOptions.numberGroups.adults.count),s=vue.ref(t.unitOptions.numberGroups.children.count),i=vue.ref(t.unitOptions.numberGroups.infants.count),l=getLabelText("remove","Remove","guests_rooms"),c=vue.computed(()=>s.value+i.value),d=(p,v,m,g)=>{let b="";p.includes("children")&&(s.value=v,b="children"),p.includes("infants")&&(i.value=v,b="infants"),(p.includes("r1a")||p.includes("r2a")||p.includes("r3a")||p.includes("r4a")||p.includes("r5a"))&&(a.value=v,b="adults"),r("numberChange",m,b,g)},f=()=>{r("onRemove",i.value+s.value+a.value,i.value+s.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":s.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(s.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+s.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$6=["value","disabled"],adultDefaultCount=1,unitLimit=5,_sfc_main$s=vue.defineComponent({__name:"GuestSelector",props:{availability:{type:Boolean}},setup(e){const n=vue.getCurrentInstance(),t=getLabelText("add_room_label","Add a Room","guests_rooms"),r=getLabelText("save_changes","Save","guests_rooms"),a=vue.ref(2),s=getLabelText("guest","Guest","guests_rooms"),i=getLabelText("guests","Guests","guests_rooms"),l=vue.ref(!1),c=vue.ref(0),d=vue.ref([{id:`${n.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),b=()=>{g.value=!1},C=()=>{g.value=!g.value},w=()=>{if(d.value.length<unitLimit){const A={id:`${n.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 $=d.value.slice();$.push(A),d.value=$,f.value=$.length,l.value=!0,a.value=a.value+adultDefaultCount}},E=(A,$,O)=>{const I=d.value.findIndex(L=>L.id===O);d.value.splice(I,1),f.value=d.value.length,m.value=!0,a.value=a.value-A,c.value=c.value-$,d.value.length===1&&(l.value=!1)},V=(A,$,O)=>{a.value=A==="increase"?a.value+1:a.value-1,$!=="adults"&&(c.value=A==="increase"?c.value+1:c.value-1);const I=d.value.findIndex(L=>L.id===O);d.value[I].numberGroups[$].count=A==="increase"?d.value[I].numberGroups[$].count+1:d.value[I].numberGroups[$].count-1};return(A,$)=>(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(C,["prevent"]),disabled:!A.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),$[0]||($[0]=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(s)),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(b,["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,(O,I)=>(vue.openBlock(),vue.createBlock(_sfc_main$t,{key:O.id,name:"r"+(I+1),"show-remove-btn":l.value,"unit-label":vue.unref(getLabelText)("room","Room","guests_rooms")+" "+(I+1),"unit-options":O,"unit-removed":m.value,onNumberChange:V,onOnRemove:E},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(w,["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(b,["prevent"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(r)),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:!A.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:!A.availability},null,8,_hoisted_7$6)):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:n}){const t=e,r=n,a=vue.ref(t.value),s=vue.computed(()=>new Date().toISOString().split("T")[0]);return vue.watch(()=>t.value,i=>{a.value=i,r("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:s.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$5=["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:n}){const t=e,r=n,a=vue.ref(""),s=vue.ref(""),i=vue.computed(()=>!!a.value||!!s.value),l=vue.computed(()=>{const E=new Date(s.value),V=new Date(a.value),A=E.getTime()-V.getTime();return isNaN(A)?1:A/(1e3*3600*24)});function c(){a.value="",s.value=""}const d=E=>{const V=E.toLocaleString("default",{year:"numeric"}),A=E.toLocaleString("default",{month:"2-digit"}),$=E.toLocaleString("default",{day:"2-digit"});return`${V}-${A}-${$}`},f=vue.computed(()=>a.value===""?d(new Date):""),p=vue.computed(()=>{let E;if(a.value!==""){const V=new Date(a.value);V.setDate(V.getDate()+1),E=d(V)}else if(t.defaultDates){const V=new Date,A=new Date(V);A.setDate(A.getDate()+1),E=d(A)}return E}),v=vue.computed(()=>{let E;if(a.value===""){const V=new Date,A=new Date(V);A.setDate(A.getDate()+1),E=d(A)}else{const V=new Date,A=new Date(a.value);V.setDate(A.getDate()+1),E=d(V)}return E});function m(){const E=new Date(a.value);new Date(s.value)<=E&&(s.value="")}function g(){const E=!(!a.value&&!s.value);r("dateUpdated",E)}function b(){g(),m()}const C=vue.computed(()=>t.selectedProd==="acco"?"stay":"isostartdate"),w=vue.computed(()=>t.selectedProd==="acco"?"endDate":"isoenddate");return(E,V)=>(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===""&&s.value?f.value:a.value,name:C.value,id:"startDate",onChangeDate:V[0]||(V[0]=A=>{a.value=A,b()}),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&&s.value===""&&a.value?p.value:s.value,"min-date":v.value,name:w.value,id:"endDate",onChangeDate:V[1]||(V[1]=A=>{s.value=A,b()}),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$5)])])]))}}),_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$4={for:"prodtypes"},_hoisted_8$3={class:"product-search__in d-none d-md-block mt-100"},_hoisted_9$3={"aria-live":"polite"},_hoisted_10$3=["disabled","value"],_hoisted_11$2=["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,n){this.createDataLayerObject("productSearchDataEvent",{searchType:e,searchLocation:n.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 n=e,t=vue.ref(!1),r=vue.ref(),a=vue.ref([]);vue.ref(null);let s=vue.ref();s.value={id:"",key:"",name:"",type:""};const i=vue.ref("off"),l=vue.ref(!1),c=vue.computed(()=>{const T=typeof r.value>"u"?"see-do":r.value;return`/info/${paths[T]}`});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 T=n.defaultLocale.length>0?n.defaultLocale:getLocale();return T==="en"&&(T=""),T}),v=vue.computed(()=>{if(typeof window<"u"){let T=window.location.origin;return T.includes("localhost")?"https://www.visitscotland.com":T}return"https://www.visitscotland.com"}),m=vue.computed(()=>`${v.value}${p.value?"/"+p.value:""}${c.value}/search-results`),b="https://www.visitscotland.com/data/locations"+`?locale=${p.value}`,C=vue.ref([]),w="https://www.visitscotland.com/tms-api/v1/attractions",E=vue.ref([]),V="https://www.visitscotland.com/tms-api/v1/origins?active=1",A=vue.ref([]),$=vue.ref([]),O=()=>{const T=getProductTypes(),M=[];T.forEach(G=>{M.push(G)}),$.value=M},I=vue.computed(()=>t.value?[]:$.value.map(M=>({...M,text:getProductName(M.value,M.text)}))),L=async()=>{const T=await getData(b);T&&(C.value=T.data)},Z=async()=>{const T=await getData(V);T&&(A.value=T.data)},se=async()=>{const T=await getData(w);T&&(E.value=T.data)},z=(T,M)=>{M==="key"?s.value=C.value.find(G=>G.key===T):M==="id"?s.value=C.value.find(G=>G.id===T):s.value=C.value.find(G=>G.name===T.trim())},ie=T=>{const M=T.value;r.value=M,M==="tour"&&(Z(),se())},Q=()=>f[n.defaultLocale]||"",ae=()=>{t.value=!0,vue.nextTick(()=>{t.value=!1,n.defaultLocation!==""&&d&&z(n.defaultLocation,"id")})},we=vue.computed(()=>r.value!=="cate"&&r.value!=="acti,attr,reta"?"d-lg-flex":"");vue.onBeforeMount(async()=>{window.VS={};const T=document.createElement("script");T.async=!1,T.onload=ae,T.setAttribute("src",`https://www.visitscotland.com/${Q().localeUrl}/data/template/search.js`),document.head.appendChild(T)}),vue.onMounted(async()=>{L(),d.value=!0,r.value=n.defaultProd,r.value==="tour"&&(Z(),se()),O()});const me=T=>{i.value=T?"on":"off"},fe=T=>{l.value=!0;const M=T.currentTarget;setTimeout(function(){M.submit()},500)};return(T,M)=>{var G,ne,he,B,U,q;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(fe,["prevent"]),"accept-charset":"UTF-8","data-test":"psw-form"},[vue.createElementVNode("div",_hoisted_6$5,[vue.createElementVNode("label",_hoisted_7$4,vue.toDisplayString(vue.unref(getLabelText)("search_for","I'm looking for")),1),vue.createElementVNode("div",{class:vue.normalizeClass(we.value)},[vue.createVNode(VsSelect,{options:I.value,value:e.defaultProd,onUpdated:M[0]||(M[0]=oe=>ie(oe)),"field-name":"prodtypes"},null,8,["options","value"]),vue.createElementVNode("div",_hoisted_8$3,vue.toDisplayString(vue.unref(getLabelText)("in","in")),1)],2)]),vue.createElementVNode("div",_hoisted_9$3,[r.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:C.value,placeholder:vue.unref(getLabelText)("location_placeholder","Enter a location"),"track-by":"name",onChangeValue:M[1]||(M[1]=oe=>z(oe)),"default-val":vue.unref(s),"data-chromatic":"ignore"},null,8,["label","options","placeholder","default-val"])):vue.createCommentVNode("",!0),r.value!=="tour"?(vue.openBlock(),vue.createElementBlock("input",{key:1,type:"hidden",name:"locplace",disabled:((G=vue.unref(s))==null?void 0:G.type)==="POLYGON",value:((ne=vue.unref(s))==null?void 0:ne.key)||""},null,8,_hoisted_10$3)):vue.createCommentVNode("",!0),r.value!=="tour"?(vue.openBlock(),vue.createElementBlock("input",{key:2,type:"hidden",name:"locpoly",disabled:((he=vue.unref(s))==null?void 0:he.type)!=="POLYGON",value:((B=vue.unref(s))==null?void 0:B.key)||""},null,8,_hoisted_11$2)):vue.createCommentVNode("",!0),r.value!=="tour"?(vue.openBlock(),vue.createElementBlock("input",{key:3,type:"hidden",name:"locprox",value:((U=vue.unref(s))==null?void 0:U.type)==="DISTRICT"?1:0},null,8,_hoisted_12$2)):vue.createCommentVNode("",!0),r.value!=="tour"&&((q=vue.unref(s))==null?void 0:q.type)==="DISTRICT"?(vue.openBlock(),vue.createElementBlock("input",_hoisted_13$2)):vue.createCommentVNode("",!0),r.value==="even"||r.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:M[2]||(M[2]=oe=>me(oe)),"default-dates":l.value,"selected-prod":r.value},null,8,["start-label","end-label","default-dates","selected-prod"]),r.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),r.value==="acco"?(vue.openBlock(),vue.createBlock(_sfc_main$s,{key:1,availability:!0,id:"guest-selector"})):vue.createCommentVNode("",!0),r.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)]),r.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:A.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,oe=>(vue.openBlock(),vue.createElementBlock("input",{type:"hidden",name:"attractions[]",value:oe},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:M[3]||(M[3]=oe=>T.trackSubmit(r.value,typeof vue.unref(s)>"u"?"":vue.unref(s)))},{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,n,t,r,a,s){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={key:1,class:"vs-quote__author-container"},_hoisted_3$4={class:"vs-quote__content-container"},_hoisted_4$4={class:"vs-quote__content"},_hoisted_5$4={key:0,class:"vs-quote__author-name"},_hoisted_6$4={key:2,class:"vs-quote__quote-link"};function _sfc_render$l(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-quote",s.variantClass]),"data-test":"vs-quote"},[t.withBorder?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$e,n[0]||(n[0]=[vue.createElementVNode("span",{class:"vs-quote__speech-mark"},"“",-1)]))),s.hasAuthorImage?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$8,[vue.renderSlot(e.$slots,"quote-image")])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_3$4,[vue.createElementVNode("div",_hoisted_4$4,[vue.renderSlot(e.$slots,"quote-content")]),s.hasAuthorName?(vue.openBlock(),vue.createElementBlock("p",_hoisted_5$4,[vue.renderSlot(e.$slots,"quote-author-name")])):vue.createCommentVNode("",!0),s.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_6$4,[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,n,t,r,a,s){const i=vue.resolveComponent("BTableSimple");return vue.openBlock(),vue.createBlock(i,{class:"vs-table","data-test":"vs-table",small:"","caption-top":"",responsive:s.responsive,stacked:s.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,n,t,r,a,s){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,n,t,r,a,s){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,n,t,r,a,s){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,n,t,r,a,s){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,n,t,r,a,s){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,n,t,r,a,s){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(n=>{const t=this.cleanData(n.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 n={contact:e.contact,report:e.report};if(e.snowReport)n.lastUpdate=e.snowReport.lastupdate,n.lifts=e.lifts.sector.items,n.runs=e.runs.items,this.isCairngorms=!0;else if(n.lastUpdate=e.lastupdate,[n.lifts]=e.lift.sectors,n.lifts=n.lifts.lifts,e.run.areas){const t=e.run.areas.map(r=>r.runs).reduce((r,a)=>r.concat(a)).filter((r,a,s)=>a===s.findIndex(i=>i.name===r.name));n.runs=t}return n},processLastUpdate(e){const n=new Date(e.year,parseInt(e.month,10)-1,e.day),t={year:"numeric",month:"long",day:"numeric"},r=n.toLocaleDateString(this.locale,t);this.lastUpdate=`${e.hour24}:${e.minute} - ${r}`},processLifts(e){for(let n=0;n<e.length;n++)switch(e[n].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 n=0;n<e.length;n++)switch(e[n].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$1={"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,n,t,r,a,s){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"),b=vue.resolveComponent("VsTableBody"),C=vue.resolveComponent("VsTableFooter"),w=vue.resolveComponent("VsTable"),E=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(w,{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(b,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$1,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(C,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(E,{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(E,{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(n=>n.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(n=>{const t=this.cleanData(n.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 n={contact:e.contact,report:e.report};if(e.snowReport)n.lastUpdate=e.snowReport.lastupdate,n.lifts=e.lifts.sector.items,n.runs=e.runs.items,this.isCairngorms=!0;else if(n.lastUpdate=e.lastupdate,[n.lifts]=e.lift.sectors,n.lifts=n.lifts.lifts,e.run.areas){const t=e.run.areas.map(r=>r.runs).reduce((r,a)=>r.concat(a)).filter((r,a,s)=>a===s.findIndex(i=>i.name===r.name));n.runs=t}if(n.runs)for(let t=0;t<n.runs.length;t++)n.runs[t].difficulty===null&&(n.runs[t].difficulty="orange");return n},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 n=new Date(e.year,parseInt(e.month,10)-1,e.day),t={year:"numeric",month:"long",day:"numeric"},r=n.toLocaleDateString(this.locale,t);this.lastUpdate=`${e.hour24}:${e.minute} - ${r}`},processLifts(e){for(let n=0;n<e.length;n++)switch(e[n].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 n=0;n<e.length;n++){switch(e[n].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[n].difficulty&&this.runLevels[t].runs.push(e[n])}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=["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,n,t,r,a,s){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"),b=vue.resolveComponent("VsTableDataCell"),C=vue.resolveComponent("VsTableRow"),w=vue.resolveComponent("VsTableBody"),E=vue.resolveComponent("VsTableFooter"),V=vue.resolveComponent("VsTable"),A=vue.resolveComponent("VsLink"),$=vue.resolveComponent("VsAccordionItem"),O=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(V,{"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(w,null,{default:vue.withCtx(()=>[vue.createVNode(C,null,{default:vue.withCtx(()=>[vue.createVNode(b,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(b,{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(b,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(C,{key:0},{default:vue.withCtx(()=>[vue.createVNode(b,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(b,{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(b,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(C,null,{default:vue.withCtx(()=>[vue.createVNode(b,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(b,{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(b,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.opening)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1}),vue.createVNode(C,null,{default:vue.withCtx(()=>[vue.createVNode(b,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(b,{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(b,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(C,{key:1},{default:vue.withCtx(()=>[vue.createVNode(b,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(b,{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(b,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(E,null,{default:vue.withCtx(()=>[vue.createVNode(C,null,{default:vue.withCtx(()=>[vue.createVNode(b,{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(A,{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),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(V,{"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(w,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.lifts,I=>(vue.openBlock(),vue.createBlock(C,{key:I.name},{default:vue.withCtx(()=>[I.status==="0"||I.status===0?(vue.openBlock(),vue.createBlock(b,{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),I.status==="1"||I.status===1?(vue.openBlock(),vue.createBlock(b,{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),I.status==="2"||I.status===2?(vue.openBlock(),vue.createBlock(b,{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),I.status==="3"||I.status===3?(vue.openBlock(),vue.createBlock(b,{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),I.status==="4"||I.status===4?(vue.openBlock(),vue.createBlock(b,{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(b,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(I.name),1)]),_:2},1024)]),_:2},1024))),128))]),_:1}),vue.createVNode(E,null,{default:vue.withCtx(()=>[vue.createVNode(C,null,{default:vue.withCtx(()=>[vue.createVNode(b,{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(s.filteredRunLevels,I=>(vue.openBlock(),vue.createElementBlock("div",{key:I.name},[vue.createVNode(O,null,{default:vue.withCtx(()=>[vue.createVNode($,{variant:"transparent","control-id":"accordion_item_"+I.name,"colour-badge":I.colourToken},{title:vue.withCtx(()=>[vue.createElementVNode("div",{"data-test":`vs-ski__${I.name}-label`,class:"d-inline-block"},[vue.createElementVNode("span",_hoisted_17,vue.toDisplayString(s.getColourLabel(I.colour)),1),vue.createTextVNode(" "+vue.toDisplayString(I.name),1)],8,_hoisted_16)]),default:vue.withCtx(()=>[vue.createVNode(V,{"table-caption":I.colour+" - "+I.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(w,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(I.runs,L=>(vue.openBlock(),vue.createBlock(C,{key:L.name,"data-test":`vs-ski__${I.name}-row`},{default:vue.withCtx(()=>[L.status==="0"||L.status===0?(vue.openBlock(),vue.createBlock(b,{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(b,{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(b,{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(b,{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(b,{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(b,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(L.name),1)]),_:2},1024)]),_:2},1032,["data-test"]))),128))]),_:2},1024),vue.createVNode(E,null,{default:vue.withCtx(()=>[vue.createVNode(C,null,{default:vue.withCtx(()=>[vue.createVNode(b,{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],n=document.getElementsByClassName("vs-mega-nav-dropdown")[0];if(!this.isUndefined(n)){let t=n.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 n=e.getElementsByClassName("vs-footer-accordion-item")[0],t=n.getElementsByClassName("vs-link")[0],r=n.getElementsByClassName("vs-accordion-toggle")[0];r.offsetParent!==null&&!this.isUndefined(r)&&r.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,n,t,r,a,s){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:n[0]||(n[0]=l=>s.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:n[1]||(n[1]=l=>s.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,n,t,r,a,s){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,n,t,r,a,s){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:s.onShown,onHidden:s.onHidden,onHide:s.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:n[0]||(n[0]=vue.withKeys(m=>s.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:s.onCopyLink})]),_:3},512),vue.createVNode(i,{"icon-only":"",class:"vs-social-share__close-btn",icon:"close",variant:"transparent",ref:"closeButton",onClick:s.onClose,onKeydown:n[1]||(n[1]=vue.withKeys(m=>s.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,n,t,r,a,s){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:s.noJs?2:4},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"vs-social-share-item__link",href:s.shareUrl,onClick:n[0]||(n[0]=d=>s.copyToClipboard(d)),id:`vs-share-${t.name}`},{default:vue.withCtx(()=>[vue.createVNode(i,{name:t.name,"custom-colour":s.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 n=e;return(t,r)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-styled-list",`vs-styled-list--${n.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:n.variant==="icon"?"8":null},{default:vue.withCtx(()=>[vue.createElementVNode("ul",_hoisted_1$7,[vue.renderSlot(t.$slots,"default")])]),_:3},8,["md"])]),_:3}),t.$slots["list-source"]&&t.$slots["list-source"]()?(vue.openBlock(),vue.createBlock(vue.unref(VsRow),{key:0},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$4,[vue.renderSlot(t.$slots,"list-source")])]),_:3})):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 n=e;return(t,r)=>(vue.openBlock(),vue.createElementBlock("li",_hoisted_1$6,[vue.createVNode(vue.unref(VsRow),null,{default:vue.withCtx(()=>[n.variant==="image"?(vue.openBlock(),vue.createBlock(vue.unref(VsCol),{key:0,cols:"12",md:"2"},{default:vue.withCtx(()=>[vue.createVNode(VsImg,{src:n.imageSrc},null,8,["src"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(VsCol),{md:n.variant==="image"?"10":"12"},{default:vue.withCtx(()=>[n.variant==="image-horizontal"?(vue.openBlock(),vue.createBlock(VsImg,{key:0,src:n.imageSrc},null,8,["src"])):vue.createCommentVNode("",!0),vue.createVNode(VsHeading,{level:n.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,n,t,r,a,s){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,n,t,r,a,s){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}}},_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={class:"vs-summary-box-distance__display-entry"},_hoisted_9={class:"vs-summary-box-distance__display-value"},_hoisted_10={class:"vs-summary-box-distance__display-label"};function _sfc_render$5(e,n,t,r,a,s){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)]),n[0]||(n[0]=vue.createElementVNode("hr",{class:"vs-summary-box-distance__divider"},null,-1)),vue.createElementVNode("div",_hoisted_8,[vue.createElementVNode("span",_hoisted_9,vue.toDisplayString(t.kilometres),1),vue.createElementVNode("span",_hoisted_10,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,n,t,r,a,s){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,n,t,r,a,s){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,n,t,r,a,s){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(n=>{const t=n.replace(/-/g,"_");this.dataLayerStore.processPayload({key:t,value:e[n]})})}}},_hoisted_1$1={"data-test":"vs-tag-manager-wrapper",class:"d-none"};function _sfc_render$1(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("span",_hoisted_1$1)}const TagManagerWrapper=_export_sfc(_sfc_main$1,[["render",_sfc_render$1]]);var dist={exports:{}},Sister;/**
|
|
364
|
+
${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(n,t){return typeof t=="string"&&Object.prototype.hasOwnProperty.call(n,t)?n[t]:(typeof t=="string"?t.split("."):t).reduce((a,s)=>a===void 0?a:a[s],n)}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=r(requirePath()),n=requireLoaders(),t=requireGetPropertyByPath();function r(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=s(c);return f===c||c===this.config.stopDir?null:f}loadPackageProp(c,d){const f=n.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 s(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=r,readFile.readFileSync=a;var e=n(require$$0$1);function n(s){return s&&s.__esModule?s:{default:s}}async function t(s,i){return new Promise((l,c)=>{e.default.readFile(s,i,(d,f)=>{if(d){c(d);return}l(f)})})}async function r(s,i={}){const l=i.throwNotFound===!0;try{return await t(s,"utf8")}catch(c){if(l===!1&&c.code==="ENOENT")return null;throw c}}function a(s,i={}){const l=i.throwNotFound===!0;try{return e.default.readFileSync(s,"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=n;async function e(t,r,a){const s=t.get(r);if(s!==void 0)return s;const i=await a();return t.set(r,i),i}function n(t,r,a){const s=t.get(r);if(s!==void 0)return s;const i=a();return t.set(r,i),i}return cacheWrapper}var getDirectory={},pathType={},hasRequiredPathType;function requirePathType(){if(hasRequiredPathType)return pathType;hasRequiredPathType=1;const{promisify:e}=requireUtil(),n=require$$0$1;async function t(a,s,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return(await e(n[a])(i))[s]()}catch(l){if(l.code==="ENOENT")return!1;throw l}}function r(a,s,i){if(typeof i!="string")throw new TypeError(`Expected a string, got ${typeof i}`);try{return n[a](i)[s]()}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=r.bind(null,"statSync","isFile"),pathType.isDirectorySync=r.bind(null,"statSync","isDirectory"),pathType.isSymlinkSync=r.bind(null,"lstatSync","isSymbolicLink"),pathType}var hasRequiredGetDirectory;function requireGetDirectory(){if(hasRequiredGetDirectory)return getDirectory;hasRequiredGetDirectory=1,Object.defineProperty(getDirectory,"__esModule",{value:!0}),getDirectory.getDirectory=r,getDirectory.getDirectorySync=a;var e=t(requirePath()),n=requirePathType();function t(s){return s&&s.__esModule?s:{default:s}}async function r(s){return await(0,n.isDirectory)(s)===!0?s:e.default.dirname(s)}function a(s){return(0,n.isDirectorySync)(s)===!0?s:e.default.dirname(s)}return getDirectory}var hasRequiredExplorer;function requireExplorer(){if(hasRequiredExplorer)return Explorer;hasRequiredExplorer=1,Object.defineProperty(Explorer,"__esModule",{value:!0}),Explorer.Explorer=void 0;var e=s(requirePath()),n=requireExplorerBase(),t=requireReadFile(),r=requireCacheWrapper(),a=requireGetDirectory();function s(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 n.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,r.cacheWrapper)(this.searchCache,f,p):p()}async searchDirectory(d){var f=!0,p=!1,v;try{for(var m=i(this.config.searchPlaces),g,b;g=await m.next(),f=g.done,b=await g.value,!f;f=!0){const C=b,w=await this.loadSearchPlace(d,C);if(this.shouldSearchStopWithResult(w)===!0)return w}}catch(C){p=!0,v=C}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,r.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=s(requirePath()),n=requireExplorerBase(),t=requireReadFile(),r=requireCacheWrapper(),a=requireGetDirectory();function s(l){return l&&l.__esModule?l:{default:l}}let i=class extends n.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,r.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,r.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=s,dist$2.cosmiconfigSync=i,dist$2.defaultLoaders=void 0;var e=a(require$$0$1),n=requireExplorer(),t=requireExplorerSync(),r=requireLoaders();function a(f){return f&&f.__esModule?f:{default:f}}function s(f,p={}){const v=c(f,p),m=new n.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":r.loaders.loadJs,".json":r.loaders.loadJson,".yaml":r.loaders.loadYaml,".yml":r.loaders.loadYaml,noExt:r.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 n=interopRequireDefaultExports,t=n(require_extends()),r=n(requireObjectWithoutPropertiesLoose());const a=requirePath(),s=requireResolve(),i=/[./]macro(\.js)?$/,l=P=>i.test(P);class c extends Error{constructor(O){super(O),this.name="MacroError",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack||(this.stack=new Error(O).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(P,O={}){if(O.configName==="options")throw new Error('You cannot use the configName "options". It is reserved for babel-plugin-macros.');return I.isBabelMacro=!0,I.options=O,I;function I(R){const{source:Z,isBabelMacrosCall:se}=R;if(!se)throw new c(`The macro you imported from "${Z}" 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 P(R)}}function v(P,O){return s.sync(P,{basedir:O,paths:[a.resolve(__dirname,"../../")]})}function m(P,O={}){let{require:I=commonjsRequire,resolvePath:R=v,isMacrosName:Z=l}=O,se=(0,r.default)(O,["require","resolvePath","isMacrosName"]);function z(ie){const Q=I(ie);return Q&&Q.__esModule&&Q.default?Q.default:Q}return{name:"macros",visitor:{Program(ie,Q){ie.traverse({ImportDeclaration(ae){if(!V(ae,{node:{source:{value:M=>Z(M)}}}))return;const me=ae.node.specifiers.map(M=>({localName:M.local.name,importedName:M.type==="ImportDefaultSpecifier"?"default":M.imported.name})),fe=ae.node.source.value,T=g({path:ae,imports:me,source:fe,state:Q,babel:P,interopRequire:z,resolvePath:R,options:se});(!T||!T.keepImports)&&ae.remove()},VariableDeclaration(ae){const we=me=>V(me,{node:{init:{callee:{type:"Identifier",name:"require"},arguments:fe=>fe.length===1&&Z(fe[0].value)}}});ae.get("declarations").filter(we).forEach(me=>{const fe=me.node.id.name?[{localName:me.node.id.name,importedName:"default"}]:me.node.id.properties.map(ne=>({localName:ne.value.name,importedName:ne.key.name})),T=me.get("init"),M=T.node.arguments[0].value,G=g({path:T,imports:fe,source:M,state:Q,babel:P,interopRequire:z,resolvePath:R,options:se});(!G||!G.keepImports)&&me.remove()})}})}}}}function g({path:P,imports:O,source:I,state:R,babel:Z,interopRequire:se,resolvePath:z,options:ie}){const{file:{opts:{filename:Q=""}}}=R;let ae=!1;const we=O.reduce((ne,{importedName:he,localName:B})=>{const U=P.scope.getBinding(B);return ne[he]=U.referencePaths,ae=ae||!!ne[he].length,ne},{}),me=I.indexOf(".")===0,fe=z(I,a.dirname(E(Q))),T=se(fe);if(!T.isBabelMacro)throw new Error(`The macro imported from "${I}" 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 M=w(T,Q,I,ie);let G;try{R.file.scope.path.traverse({Identifier(){}}),G=T({references:we,source:I,state:R,babel:Z,config:M,isBabelMacrosCall:!0})}catch(ne){throw ne.name==="MacroError"||(ne.message=`${I}: ${ne.message}`,me||(ne.message=`${ne.message} Learn more: https://www.npmjs.com/package/${I.replace(/^((?:@[^/]+\/)?[^/]+).*/,"$1")}`)),ne}return G}function b(P,O){try{const I=f().search(O);if(I)return{options:I.config[P],path:I.filepath}}catch(I){return{error:I}}return{}}function C(P,O){if(O.hasOwnProperty(P))if(O[P]&&typeof O[P]!="object")console.error(`The macro plugin options' ${P} property was not an object or null.`);else return{options:O[P]};return{}}function w(P,O,I,R){const{configName:Z}=P.options;if(Z){const se=b(Z,O),z=C(Z,R);if(z.options===void 0&&se.options===void 0&&se.error!==void 0)throw console.error(`There was an error trying to load the config "${Z}" for the macro imported from "${I}. Please see the error thrown for more information.`),se.error;if(se.options!==void 0&&z.options!==void 0&&typeof se.options!="object")throw new Error(`${se.path} specified a ${Z} config of type ${typeof z.options}, but the the macros plugin's options.${Z} did contain an object. Both configs must contain objects for their options to be mergeable.`);return(0,t.default)({},z.options,{},se.options)}}function E(P){return a.isAbsolute(P)?P:a.join(process.cwd(),P)}function V(P,O){return P&&O&&Object.keys(O).every(I=>{const R=O[I],Z=P[I];return typeof R=="function"?R(Z):A(R)?R===Z:V(Z,R)})}function A(P){return P==null||/^[sbn]/.test(typeof P)}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:n,babel:{types:t}}){e.default.forEach(r=>r.parentPath.replaceWith(t.callExpression(t.identifier("require.context"),[...r.parent.arguments])))}var requireContext_macro=createMacro(requireContext);const requireContext$1=getDefaultExportFromCjs(requireContext_macro),__vite_import_meta_env__={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__){files=Object.assign({"../assets/svg/brandscotland-logo.svg":()=>Promise.resolve().then(()=>require("./brandscotland-logo-BbDMkgti.js")).then(n=>n.default),"../assets/svg/cookie-coo.svg":()=>Promise.resolve().then(()=>require("./cookie-coo-Bc1O8aR_.js")).then(n=>n.default),"../assets/svg/highland-cow.svg":()=>Promise.resolve().then(()=>require("./highland-cow-DlMGnebG.js")).then(n=>n.default),"../assets/svg/iCentre.svg":()=>Promise.resolve().then(()=>require("./iCentre-BnLcpIw8.js")).then(n=>n.default),"../assets/svg/icons/docs/deprecated.svg":()=>Promise.resolve().then(()=>require("./deprecated-BJ2e68Yo.js")).then(n=>n.default),"../assets/svg/icons/docs/prototype.svg":()=>Promise.resolve().then(()=>require("./prototype-DQocvgQh.js")).then(n=>n.default),"../assets/svg/icons/docs/ready.svg":()=>Promise.resolve().then(()=>require("./ready-D9pdKFkx.js")).then(n=>n.default),"../assets/svg/icons/docs/review.svg":()=>Promise.resolve().then(()=>require("./review-7L3On10m.js")).then(n=>n.default),"../assets/svg/icons/instagram-filled.svg":()=>Promise.resolve().then(()=>require("./instagram-filled-CvF3WA5q.js")).then(n=>n.default),"../assets/svg/no-js-coo.svg":()=>Promise.resolve().then(()=>require("./no-js-coo-BEt1aICD.js")).then(n=>n.default),"../assets/svg/os-logo-maps-white.svg":()=>Promise.resolve().then(()=>require("./os-logo-maps-white-BTtf_Eki.js")).then(n=>n.default),"../assets/svg/os-logo-maps.svg":()=>Promise.resolve().then(()=>require("./os-logo-maps-QXAuept_.js")).then(n=>n.default),"../assets/svg/visitscotland-logo.svg":()=>Promise.resolve().then(()=>require("./visitscotland-logo-NoymCLtN.js")).then(n=>n.default)});const e={};for(const[n,t]of Object.entries(files)){const r=n.replace("../assets/svg",".");e[r]=t}files=e}else files=requireContext$1("../assets/svg?optimise",!0,/^\.\/.*\.svg$/);const output=files,_sfc_main$1i={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 n=lodashExports.first(this.svg.match(/<svg[^>]+.*?>/)).match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|[>"']))+.)["']?/g),t=lodashExports.fromPairs(lodashExports.map(n,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 n={};return this.fill&&(lodashExports.has(this.nativeAttrs,"style")?(n=this.nativeStyleAttrMap,n.fill=this.fill):n={fill:this.fill},e.style=lodashExports.join(lodashExports.map(lodashExports.toPairs(n),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$19(e,n,t,r,a,s){return a.svg?(vue.openBlock(),vue.createElementBlock("svg",vue.mergeProps({key:0},s.attributes,{innerHTML:s.children,focusable:"false"}),null,16,_hoisted_1$$)):vue.createCommentVNode("",!0)}const VsSvg=_export_sfc(_sfc_main$1i,[["render",_sfc_render$19]]),_sfc_main$1h={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$18(e,n,t,r,a,s){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$1h,[["render",_sfc_render$18]]),_sfc_main$1g={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$17(e,n,t,r,a,s){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(s.getCurrentYear)+" ",1),vue.renderSlot(e.$slots,"copyright")])]),_:3})]),_:3})]),_:3})])}const FooterCopyright=_export_sfc(_sfc_main$1g,[["render",_sfc_render$17]]),_sfc_main$1f={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$16(e,n,t,r,a,s){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$1f,[["render",_sfc_render$16]]),_sfc_main$1e={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$15(e,n,t,r,a,s){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$1e,[["render",_sfc_render$15]]),_sfc_main$1d={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$14(e,n,t,r,a,s){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$1d,[["render",_sfc_render$14]]),_sfc_main$1c={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$13(e,n,t,r,a,s){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$1c,[["render",_sfc_render$13]]),_sfc_main$1b={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"),n=this.cookieExists("googtrans");this.setCookie("vs_locale",this.localeCookie,!e),this.setCookie("googtrans",this.translationCookie,!n)}}};function _sfc_render$12(e,n,t,r,a,s){const i=vue.resolveComponent("VsDropdownItem");return vue.openBlock(),vue.createBlock(i,{class:"vs-global-menu__languages__item",href:t.languageLink,onClick:n[0]||(n[0]=l=>s.setLanguage())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.languageName),1)]),_:1},8,["href"])}const GlobalMenuLanguageItem=_export_sfc(_sfc_main$1b,[["render",_sfc_render$12]]),_sfc_main$1a={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$q={key:0},_hoisted_5$j={key:1,class:"vs-hero-section__divider"};function _sfc_render$11(e,n,t,r,a,s){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(s.setInset),"data-test":"vs-hero-section__image-wrapper"},[t.src?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4$q,[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$1a,[["render",_sfc_render$11]]),_sfc_main$19={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$10(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("span",_hoisted_1$U)}const HtmlError=_export_sfc(_sfc_main$19,[["render",_sfc_render$10]]),_sfc_main$18={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$p={key:0,class:"vs-tourism-info__links-contained","data-test":"vs-tourism-info__embedded-links"};function _sfc_render$$(e,n,t,r,a,s){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$p,[vue.renderSlot(e.$slots,"tourism-info-links")])):vue.createCommentVNode("",!0)])]),_:3})):vue.createCommentVNode("",!0)]),_:3})]),_:3})])}const TourismInfo=_export_sfc(_sfc_main$18,[["render",_sfc_render$$]]),_sfc_main$17={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$_(e,n,t,r,a,s){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$17,[["render",_sfc_render$_]]),_sfc_main$16={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$Z(e,n,t,r,a,s){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$16,[["render",_sfc_render$Z]]),_sfc_main$15={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$Y(e,n,t,r,a,s){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:s.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$15,[["render",_sfc_render$Y]]),_sfc_main$14={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={class:"vs-video-caption__details"},_hoisted_4$o={class:"vs-video-caption__title"},_hoisted_5$i={class:"vs-video-caption__duration"},_hoisted_6$c={key:1,class:"vs-video-caption vs-video-caption--no-js vs-video-caption--warning","data-test":"video-caption-nojs"};function _sfc_render$X(e,n,t,r,a,s){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}`])},[s.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:s.emitShowModal},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.videoBtnText),1)]),_:1},8,["onClick"])]),t.withToggleBtn?(vue.openBlock(),vue.createBlock(l,{key:0,onToggleAction:s.emitToggle},{default:vue.withCtx(()=>n[0]||(n[0]=[vue.createElementVNode("span",{class:"visually-hidden"}," Toggle caption ",-1)])),_:1},8,["onToggleAction"])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_3$u,[vue.createElementVNode("p",_hoisted_4$o,[vue.renderSlot(e.$slots,"video-title")]),vue.createElementVNode("p",_hoisted_5$i,vue.toDisplayString(s.videoDetails.videoDurationMsg),1)])],2)):vue.createCommentVNode("",!0),s.noJsMessage?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$c,[vue.createVNode(c,{size:"small"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(s.noJsMessage),1)]),_:1})])):vue.createCommentVNode("",!0)],2)}const VsVideoCaption=_export_sfc(_sfc_main$14,[["render",_sfc_render$X]]),_sfc_main$13={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:{isSvg(){return this.imageSrc.endsWith(".svg")},imageWithCaptionClasses(){return{"vs-image-with-caption--closed-default":this.closedDefaultCaption,"vs-image-with-caption--hero":this.isHeroImage,"vs-image-with-caption--video":this.isVideo,"vs-image-with-caption--svg":this.isSvg}},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$W(e,n,t,r,a,s){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",s.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:s.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:s.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",s.captionWrapperClasses]),id:a.uniqueCaptionId},[vue.renderSlot(e.$slots,"img-caption")],10,_hoisted_3$t)])],2)}const ImageWithCaption=_export_sfc(_sfc_main$13,[["render",_sfc_render$W]]),_sfc_main$12={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 n;switch(e){case"firstName":n="given-name";break;case"lastName":n="family-name";break;case"Email":n="email";break;case"PostalCode":n="postal-code";break;default:n=this.autoComplete?"on":"off";break}return n},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$n={class:"visually-hidden"};function _sfc_render$V(e,n,t,r,a,s){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$n,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",s.elementClass]),modelValue:a.inputVal,"onUpdate:modelValue":n[0]||(n[0]=c=>a.inputVal=c),id:t.fieldName,name:t.name?t.name:t.fieldName,placeholder:t.placeholder,required:e.isRequired,autocomplete:s.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:s.validateErrors,onChange:s.validateErrors,onFocus:s.resetErrors},null,8,["type","modelValue","class","id","name","placeholder","required","autocomplete","v","aria-invalid","aria-describedby","maxlength","minlength","min","max","disabled","onBlur","onChange","onFocus"]),s.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:n[1]||(n[1]=vue.withModifiers(c=>s.clearInputAndFocus(),["prevent"]))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.clearButtonText),1)]),_:1})):vue.createCommentVNode("",!0)])}const VsInput=_export_sfc(_sfc_main$12,[["render",_sfc_render$V]]),_sfc_main$11={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(),n=e.top<=(window.innerHeight||document.documentElement.clientHeight),t=e.bottom<=(window.innerHeight||document.documentElement.clientHeight);this.withinItineraryMain=!!(n&&!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$m={key:0,class:"vs-itinerary__map-container","data-chromatic":"ignore"};function _sfc_render$U(e,n,t,r,a,s){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:n[0]||(n[0]=p=>s.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$m,[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$11,[["render",_sfc_render$U]]),_sfc_main$10={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$l={class:"vs-itinerary-day__sub-heading"},_hoisted_5$h=["id"],_hoisted_6$b={class:"vs-itinerary-day__intro-content"},_hoisted_7$9={class:"list-unstyled"};function _sfc_render$T(e,n,t,r,a,s){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$l,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$b,[vue.renderSlot(e.$slots,"day-transport"),vue.renderSlot(e.$slots,"day-introduction")]),vue.createElementVNode("ul",_hoisted_7$9,[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$10,[["render",_sfc_render$T]]),_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$k={class:"position-relative"},_hoisted_5$g={class:"map-marker__count","aria-hidden":"true","data-test":"vs-itinerary-stop-marker"},_hoisted_6$a={class:"vs-itinerary-stop__details-container","data-chromatic":"ignore"},_hoisted_7$8={key:0,class:"vs-itinerary-stop__address","data-test":"vs-itinerary-stop-address"};function _sfc_render$S(e,n,t,r,a,s){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$k,[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$a,[e.$slots["stop-address"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$8,[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$S]]),_sfc_main$_={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 n=this.currentDayData[0].state==="open"?this.openText:this.closedText;this.currentDayData[0].provisional?e=`${this.provisionalText} ${n.toLowerCase()} ${this.currentDayData[0].day}`:e=`${this.usualText} ${n.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,r)=>{e+=` ${t.startTime} ${this.toText} ${t.endTime}`,r+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,n=e.toLocaleTimeString("en-GB",{timeZone:"Europe/London"});this.ukDate=e.toLocaleDateString("en-GB",{timeZone:"Europe/London"});const t=n.substring(0,2),r=n.substring(3,6),a=e.getDay();this.currentTime.hours=parseInt(t,10),this.currentTime.minutes=parseInt(r,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)}`,n=new Date(this.parsedHours.period.startDay),t=new Date(this.parsedHours.period.endDay),r=new Date(e);r<t&&r>n?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 n=this.parsedHours.days.filter(t=>t.key===e);typeof n<"u"&&(this.currentDayData=n,this.compareTimes(this.currentTime,this.currentDayData,this.dayDataIndex))}},compareTimes(e,n,t){if(typeof n[t].startTime<"u"&&typeof n[t].endTime<"u"&&n[t].startTime.length>0&&n[t].endTime.length>0){const r=n[t].startTime,a=n[t].endTime,s=parseInt(r.substring(0,r.indexOf(":")),10),i=parseInt(r.substring(r.indexOf(":")+1,r.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);n[t].state==="closed"?this.openingMessage="closed":s>e.hours||s===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"&&n.length>t+1&&(this.dayDataIndex+=1,this.compareTimes(this.currentTime,this.currentDayData,this.dayDataIndex))}else n[t].state==="closed"&&(this.openingMessage="closed")},returnDayName(e){let n="";switch(e){case 1:n="monday";break;case 2:n="tuesday";break;case 3:n="wednesday";break;case 4:n="thursday";break;case 5:n="friday";break;case 6:n="saturday";break;case 7:n="sunday";break;default:n=""}return n},calculateClosingSoon(e,n){let t,r;return n<30?(t=e-1,r=60+(n-30)):(t=e,r=n-30),{hours:t,mins:r}},withinClosingSoonTime(e,n){return!(n.hours>e.hours||n.hours===e.hours&&n.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={key:1,"data-test":"vs-itinerary-stop-hours"},_hoisted_4$j={key:1,"data-test":"vs-stop-link"},_hoisted_5$f={key:2,"data-test":"vs-stop-charge-text"};function _sfc_render$R(e,n,t,r,a,s){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},[s.hoursMessage.length>0?(vue.openBlock(),vue.createElementBlock("p",_hoisted_2$x,[vue.createTextVNode(vue.toDisplayString(s.hoursMessage),1),n[0]||(n[0]=vue.createElementVNode("br",null,null,-1))])):vue.createCommentVNode("",!0),!a.closedLongTerm&&typeof a.currentDayData[0]<"u"&&typeof a.currentDayData[0].state<"u"&&s.provisionalMessage.length>0?(vue.openBlock(),vue.createElementBlock("p",_hoisted_3$o,vue.toDisplayString(s.provisionalMessage)+". ",1)):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),e.$slots["stop-link-text"]&&t.openingTimesLink!==null?(vue.openBlock(),vue.createElementBlock("p",_hoisted_4$j,[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_5$f,[vue.renderSlot(e.$slots,"stop-charge-text")])):vue.createCommentVNode("",!0)])])}const ItineraryStopInfo=_export_sfc(_sfc_main$_,[["render",_sfc_render$R]]),_sfc_main$Z={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$Q(e,n,t,r,a,s){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$Z,[["render",_sfc_render$Q]]),_sfc_main$Y={name:"VsItineraryBorderOverlapWrapper",status:"prototype",release:"0.0.1",components:{},props:{}},_hoisted_1$I={class:"vs-itinerary-border-overlap__wrapper d-flex d-sm-inline-flex flex-column justify-content-start border-left"};function _sfc_render$P(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$I,[vue.renderSlot(e.$slots,"default")])}const ItineraryBorderOverlapWrapper=_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$H=["data-test"],_hoisted_2$v={class:"link-list__list"};function _sfc_render$O(e,n,t,r,a,s){const i=vue.resolveComponent("VsHeading");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(s.classes),"data-test":s.dataTest},[vue.createElementVNode("nav",null,[s.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$H)}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$G={class:"link-list-item"};function _sfc_render$N(e,n,t,r,a,s){const i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$G,[vue.createVNode(i,{href:t.href,type:t.type=="video"?"default":t.type,role:t.type=="video"?"button":null,onClick:s.emitShowModal},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default"),t.type=="video"&&s.videoLoaded?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(" | "+vue.toDisplayString(t.videoDescriptor)+" "+vue.toDisplayString(s.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$F={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$i={class:"count__bg"},_hoisted_5$e={class:"count","aria-hidden":"true"};function _sfc_render$M(e,n,t,r,a,s){const i=vue.resolveComponent("VsHeading"),l=vue.resolveComponent("VsCol"),c=vue.resolveComponent("VsRow");return vue.openBlock(),vue.createElementBlock("li",_hoisted_1$F,[vue.renderSlot(e.$slots,"hippo-details"),vue.createElementVNode("div",_hoisted_2$u,[vue.createElementVNode("div",_hoisted_3$m,[vue.createElementVNode("div",_hoisted_4$i,[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",[s.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}`:""}}};function _sfc_render$L(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-loading-spinner",s.spinnerClasses]),"data-test":"vs-loading-spinner"},n[0]||(n[0]=[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)]),2)}const VsLoadingSpinner=_export_sfc(_sfc_main$U,[["render",_sfc_render$L]]);var define_process_env_default={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LfqqfcZAAAAACbkbPaHRZTIFpKZGAPZBDkwBKhe",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_29464_PXQWZGIBRNUKUSQG",COLORTERM:"truecolor",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"2HR07S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EXEPATH:"C:\\Program Files\\Git\\bin",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",GIT_ASKPASS:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\duncan.sanderson",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\duncan.sanderson",HOSTNAME:"2HR07S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LANG:"en_US.UTF-8",LOCALAPPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE_ENV:"production",NODE_PATH:"C:\\Users\\duncan.sanderson\\AppData\\npm",npm_config_user_agent:"yarn/4.3.1 npm/? node/v18.19.1 win32 x64",npm_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a\\node",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.7.2",NUMBER_OF_PROCESSORS:"8",OneDrive:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",OneDriveCommercial:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin",ORIGINAL_TEMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",PATH:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-75c6f032;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-5dadc7c5;C:\\Users\\duncan.sanderson\\.volta\\bin;C:\\Users\\duncan.sanderson\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",ProgramData:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",PYTHON:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_AGENT_PID:"972",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SSH_AUTH_SOCK:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp/ssh-zzwbzPFLwOHn/agent.971",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TERM:"xterm-256color",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.96.2",TMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"duncan.sanderson",USERPROFILE:"C:\\Users\\duncan.sanderson",VOLTA_HOME:"C:/Users/duncan.sanderson/.volta",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",VSCODE_GIT_ASKPASS_MAIN:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-4a2d75133c-sock",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/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[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 n;switch(e){case"Country":n="country-name";break;default:n="on";break}return n}},validations(){return this.rules}},_hoisted_1$E={class:"vs-select"},_hoisted_2$t=["id"],_hoisted_3$l=["id"],_hoisted_4$h={class:"visually-hidden"},_hoisted_5$d={class:"vs-select__container mt-050"};function _sfc_render$K(e,n,t,r,a,s){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$h,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":n[0]||(n[0]=l=>a.inputVal=l)},e.$attrs,{options:s.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",s.errorClass],required:e.isRequired,"aria-invalid":e.v$.inputVal&&e.v$.inputVal.$anyError||t.invalid,"aria-describedby":e.ariaDescription,autocomplete:s.autocompleteValue(t.fieldName)}),null,16,["modelValue","options","name","id","onChange","onBlur","required","aria-invalid","aria-describedby","class","autocomplete"]),n[1]||(n[1]=vue.createElementVNode("span",{class:"vs-select__focus"},null,-1))])])}const VsSelect=_export_sfc(_sfc_main$T,[["render",_sfc_render$K]]);function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},_extends.apply(this,arguments)}var defer=function e(){var n=!1,t=[],r=function(){if(!n){n=!0;for(var l=0,c=t.length;l<c;l++)t[l]()}},a=function(l){if(!n){t.push(l);return}l()},s={resolved:function(){return n},resolve:r,promise:{then:a}};return s},ownProp=Object.prototype.hasOwnProperty;function createRecaptcha(){var e=defer();return{notify:function(){e.resolve()},wait:function(){return e.promise},render:function(t,r,a){this.wait().then(function(){a(window.grecaptcha.render(t,r))})},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(n,t){var r=t.slots,a=t.emit,s=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(),n.loadRecaptchaScript&&!document.getElementById(n.recaptchaScriptId)){var f=document.createElement("script");f.id=n.recaptchaScriptId,f.src="https://"+n.recaptchaHost+"/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit&hl="+n.language,f.async=!0,f.defer=!0,document.head.appendChild(f)}var p=_extends({},n,{callback:l,"expired-callback":c,"error-callback":d}),v=s.value,m=r.default?v.children[0]:v;recaptcha.render(m,p,function(g){i.value=g,a("render",g)})}),{root:s,widgetId:i,reset:function(){recaptcha.reset(i.value)},execute:function(){recaptcha.execute(i.value)}}},render:function e(){var n=this.$slots.default,t;return typeof n=="function"?t=n():t=n,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 n=e[0].parentNode,t=document.querySelector('label[for="g-recaptcha-response"]'),r=document.createElement("label");r.setAttribute("for","g-recaptcha-response"),r.setAttribute("class","visually-hidden"),r.textContent=this.textareaLabel,t||n.insertBefore(r,e[0])}}}},_hoisted_1$D={class:"vs-recaptcha","aria-live":"assertive"},_hoisted_2$s={key:0,class:"error"};function _sfc_render$J(e,n,t,r,a,s){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:s.verified,onRender:s.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$g={class:"visually-hidden"};function _sfc_render$I(e,n,t,r,a,s){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$g,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",s.elementClass]),modelValue:a.inputVal,"onUpdate:modelValue":n[0]||(n[0]=l=>a.inputVal=l),id:t.fieldName,name:t.name?t.name:t.fieldName,placeholder:t.placeholder,required:e.isRequired,autocomplete:s.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:s.validateErrors,onChange:s.validateErrors,onFocus:s.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(n=>{this.form[n.name]="",n.conditional&&(this.conditionalFields[n.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,n){const t=this.getLanguageObj();let r="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].label)?r=t[e].label:r=this.formData.fields[n].label,this.showOptionalText(this.formData.fields[n])&&!this.isUndefined(this.getMessagingData("optional",this.language))&&(r=`${r} (${this.getMessagingData("optional",this.language)})`),r},getTranslatedLegend(e,n){const t=this.getLanguageObj();let r="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].descriptor)?r=t[e].descriptor:r=this.formData.fields[n].descriptor,r},getTranslatedInfo(e,n){const t=this.getLanguageObj();let r="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].info)?r=t[e].info:r=this.formData.fields[n].info,r},getTranslatedValidation(e,n){const t=this.getLanguageObj();let r;return this.language==="en"&&!this.isUndefined(this.formData.fields[n].validationMessages)?r=this.formData.fields[n].validationMessages:!this.isUndefined(t[e])&&!this.isUndefined(t[e].validationMessages)?r=t[e].validationMessages:this.language==="en"&&(r=this.formData.fields[n].validationMessages),r},getTranslatedOptions(e,n){const t=this.getLanguageObj();let r=[];return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined([e].options)?r=t[e].options:r=this.formData.fields[n].options,typeof r>"u"&&(r=[]),r},getTranslatedHint(e,n){const t=this.getLanguageObj();let r="";return this.language!=="en"&&!this.isUndefined(t[e])&&!this.isUndefined(t[e].hint)?r=t[e].hint:this.isUndefined(this.formData.fields[n].hint)?r="":r=this.formData.fields[n].hint,r},getTranslatedContent(e){let n;const t=this.getLanguageObj();return this.language==="en"&&!this.isUndefined(this.formData.content)&&!this.isUndefined(this.formData.content[e])?n=this.formData.content[e]:!this.isUndefined(t.content)&&!this.isUndefined(t.content[e])?n=t.content[e]:n=this.getMessagingData(e,this.language),n},getMessagingData(e,n){return Object.keys(this.messagingData).length>0?this.messagingData[n][e]:e==="validation"?{}:""},getHiddenFields(){return[...this.$el.querySelectorAll("input[type=hidden]")].map(this.parseBooleanStringsFromInputField).reduce((e,n)=>(e[n.name]=n.value,e),{})},parseBooleanStringsFromInputField(e){let n=e.value;return n==="true"?n=!0:n==="false"&&(n=!1),{name:e.name,value:n}},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,n){const t=this.errorFields.indexOf(e);t!==-1?(!n||n.length<1)&&this.errorFields.splice(t,1):n&&n.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 n(r){return r.validation&&r.validation.required}this.isTest||this.onRecaptchaVerify(),this.triggerValidate=!0;const t=this.formData.fields.filter(n);t.length===0?this.formIsInvalid=!1:t.forEach(r=>{if(!/\S/.test(this.form[r.name])){let a=!0;r.name in this.conditionalFields&&!this.conditionalFields[r.name]&&(a=!1),this.formIsInvalid=a}}),this.showErrorMessage=this.formIsInvalid,Object.entries(this.conditionalFields).forEach(([r,a])=>{a||(this.form[r]="")}),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 n=this.getHiddenFields();axios.post(this.submitUrl,{...this.form,...n,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]},{},()=>{},()=>{},!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 n=this.formData.fields.find(r=>r.name===e);let t=!0;Object.keys(n.conditional).forEach(r=>{const a=n.conditional[r];Array.isArray(a)?a.indexOf(this.form[r])===-1&&(t=!1):this.form[r]!==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={class:"vs-form__main-heading vs-heading vs-heading--heading-l float-none","data-test":"vs-form__main-heading"},_hoisted_3$j={key:0},_hoisted_4$f={"aria-live":"assertive"},_hoisted_5$c={key:0},_hoisted_6$9=["innerHTML"],_hoisted_7$7={key:2};function _sfc_render$H(e,n,t,r,a,s){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,[n[1]||(n[1]=vue.createElementVNode("form",{class:"d-none"},null,-1)),a.submitted?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("form",{key:0,onSubmit:n[0]||(n[0]=vue.withModifiers((...b)=>s.preSubmit&&s.preSubmit(...b),["prevent"]))},[vue.createElementVNode("fieldset",null,[vue.createElementVNode("legend",_hoisted_2$q,vue.toDisplayString(s.getTranslatedContent("heading")),1),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.formData.fields,(b,C)=>(vue.openBlock(),vue.createBlock(f,{key:b.name,label:s.needsLabel(b)?s.getTranslatedLabel(b.name,C):"","label-for":s.needsLabel(b)?b.name:"",class:vue.normalizeClass(s.conditionalElementClass(b.name))},{default:vue.withCtx(()=>[!s.isUndefined(b.descriptor)&&b.element==="checkbox"?(vue.openBlock(),vue.createElementBlock("legend",_hoisted_3$j,vue.toDisplayString(s.getTranslatedLegend(b.name,C)),1)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:vue.normalizeClass(s.conditionalElementClass(b.name))},[b.element==="input"?(vue.openBlock(),vue.createBlock(i,{key:0,ref_for:!0,ref:b.name,onStatusUpdate:s.updateFieldData,"field-name":b.name,type:b.type,"validation-rules":b.validation||{},"validation-messages":s.getTranslatedValidation(b.name,C)||{},"generic-validation":s.getMessagingData("validation",t.language),invalid:a.errorFields.indexOf(b.name)>-1,"trigger-validate":a.triggerValidate,"hint-text":s.getTranslatedHint(b.name,C),placeholder:b.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),b.element==="select"?(vue.openBlock(),vue.createBlock(l,{key:1,options:s.getTranslatedOptions(b.name,C),ref_for:!0,ref:b.name,onStatusUpdate:s.updateFieldData,"field-name":b.name,"validation-rules":b.validation||{},"validation-messages":s.getTranslatedValidation(b.name,C)||{},"generic-validation":s.getMessagingData("validation",t.language),invalid:a.errorFields.indexOf(b.name)>-1,"trigger-validate":a.triggerValidate,"country-list-url":t.countryListUrl,countries:b.countries,"hint-text":s.getTranslatedHint(b.name,C),"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),b.element==="checkbox"?(vue.openBlock(),vue.createBlock(c,{key:b.name,ref_for:!0,ref:b.name,name:b.name,value:b.value,label:s.getTranslatedLabel(b.name,C),onStatusUpdate:s.updateFieldData,"field-name":b.name,"validation-rules":b.validation||{},"validation-messages":s.getTranslatedValidation(b.name,C)||{},"generic-validation":s.getMessagingData("validation",t.language),invalid:a.errorFields.indexOf(b.name)>-1,"trigger-validate":a.triggerValidate,"optional-text":s.getMessagingData("optional",t.language),"hint-text":s.getTranslatedHint(b.name,C),"info-text":s.getTranslatedInfo(b.name,C),"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),b.element==="textarea"?(vue.openBlock(),vue.createBlock(d,{key:3,ref_for:!0,ref:b.name,onStatusUpdate:s.updateFieldData,"field-name":b.name,"validation-rules":b.validation||{},"validation-messages":s.getTranslatedValidation(b.name,C)||{},"generic-validation":s.getMessagingData("validation",t.language),invalid:a.errorFields.indexOf(b.name)>-1,"trigger-validate":a.triggerValidate,"hint-text":s.getTranslatedHint(b.name,C),placeholder:b.placeholder||"","re-alert-errors":a.reAlertErrors,rows:b.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:s.onRecaptchaVerify,"site-key":t.recaptchaKey,invalid:!a.recaptchaVerified&&a.showErrorMessage,language:t.language,"error-msg":s.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:s.preSubmit},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(s.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_4$f,[a.submitting?(vue.openBlock(),vue.createElementBlock("p",_hoisted_5$c,[vue.renderSlot(e.$slots,"submitting")])):vue.createCommentVNode("",!0),a.submitted?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[s.getTranslatedContent("successHeading")?(vue.openBlock(),vue.createBlock(g,{key:0,level:"2","heading-style":"heading-l"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(s.getTranslatedContent("successHeading")),1)]),_:1})):vue.createCommentVNode("",!0),vue.createElementVNode("p",{class:"vs-form__content",innerHTML:s.getTranslatedContent("successContent")},null,8,_hoisted_6$9)],64)):vue.createCommentVNode("",!0),a.submitError?(vue.openBlock(),vue.createElementBlock("p",_hoisted_7$7,[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,n,t,r,a,s){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:s.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 n={target:{text:e}};this.createDataLayerObject("menuNavigationDataEvent",n,null)}}},_hoisted_1$A={class:"mega-nav-mobile-menu","data-test":"vs-mega-nav-mobile-menu"};function _sfc_render$F(e,n,t,r,a,s){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,n,t,r,a,s){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:s.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$e={for:"site-search",class:"vs-site-search-form__label"},_hoisted_5$b={class:"visually-hidden"};function _sfc_render$D(e,n,t,r,a,s){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$e,[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:s.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:s.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:s.closeSearchForm,onKeydown:vue.withKeys(s.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,n){e.clickOutsideEvent=t=>{e===t.target||e.contains(t.target)||n.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 n=document.getElementsByClassName("vs-mega-nav__menu-mobile")[0];this.isOpen&&!n.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,n,t,r,a,s){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"),b=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:s.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:n[0]||(n[0]=C=>s.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})),[[b,s.closeMenu]]):vue.createCommentVNode("",!0)])]),_:3})]),_:3})]),_:3})]),vue.withDirectives(vue.createVNode(g,{onToggleAction:s.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 n={target:{text:this.$slots["button-content"]()[1].children[0].children}};this.createDataLayerObject("menuNavigationDataEvent",n,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$d={role:"menuitem"};function _sfc_render$B(e,n,t,r,a,s){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:n[0]||(n[0]=p=>s.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:s.closeMenu,onKeydown:vue.withKeys(s.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$d,[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:s.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={class:"vs-mega-nav-dropdown-container__columns-wrapper"},_hoisted_3$g={key:2,class:"vs-mega-nav-dropdown-container__featured-event","data-test":"vs-mega-nav-dropdown-container__featured-event"};function _sfc_render$A(e,n,t,r,a,s){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),n[0]||(n[0]=vue.createElementVNode("hr",{class:"vs-mega-nav-dropdown-container__divider"},null,-1))]),"dropdown-content":vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$m,[vue.renderSlot(e.$slots,"dropdown-content"),s.hasFeaturedItemLeft?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["vs-mega-nav-dropdown-container__featured vs-mega-nav-dropdown-container__featured--left",s.alignmentClass]),"data-test":"vs-mega-nav-dropdown-container__featured"},[vue.renderSlot(e.$slots,"nav-featured-item-left")],2)):vue.createCommentVNode("",!0),s.hasFeaturedItem?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["vs-mega-nav-dropdown-container__featured",s.alignmentClass]),"data-test":"vs-mega-nav-dropdown-container__featured"},[vue.renderSlot(e.$slots,"nav-featured-item")],2)):vue.createCommentVNode("",!0),s.hasFeaturedEvent?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$g,[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,n,t,r,a,s){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":s.listHeadingId},[t.listHeading?(vue.openBlock(),vue.createBlock(i,{key:0,class:"vs-mega-nav-list__heading",id:s.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,n,t,r,a,s){const i=vue.resolveComponent("VsLink");return vue.openBlock(),vue.createElementBlock("li",{class:vue.normalizeClass(["vs-mega-nav-list-item",s.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,n,t,r,a,s){const i=vue.resolveComponent("VsLink"),l=vue.resolveComponent("VsAccordionItem");return vue.openBlock(),vue.createBlock(l,{class:vue.normalizeClass(["vs-mega-nav-accordion-item",s.accordionItemClasses]),"data-test":"vs-mega-nav-accordion-item","data-unique-id":s.getUniqueId,"control-id":`vs-mega-nav-accordion-item-${s.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,n,t,r,a,s){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,n,t,r,a,s){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,n,t,r,a,s){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,n,t,r,a,s){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",s.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:""},businessSupport:{type:Boolean,default:!1},isHomePage:{type:Boolean,default:!1}},computed:{megalinkClass(){let e="";return this.theme&&(e+=`vs-megalink-link-list--${this.theme} `),this.isHomePage||(e+="vs-megalink-link-list--internal-page "),this.businessSupport&&(e+="vs-megalink-link-list--business-support "),e}}},_hoisted_1$r={class:"vs-megalink-link-list__title","data-test":"megalink-link-list__title"};function _sfc_render$s(e,n,t,r,a,s){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",s.megalinkClass]),"data-test":"vs-megalink-link-list"},[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","business-support":t.businessSupport,"is-home-page":t.isHomePage},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:vue.normalizeClass(t.businessSupport?"d-block":"vs-megalink-link-list__content"),"data-test":"megalink-link-list__content"},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-link-list-content")]),_:3},8,["class"])]),_: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,t.businessSupport&&!t.isHomePage?{name:"stretched-card-badges",fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-link-list-badges")]),key:"1"}:void 0]),1032,["link","type","img-src","img-alt","theme","video-id","video-btn-text","error-message","business-support","is-home-page"])],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,n,t,r,a,s){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",s.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,e.$slots["vs-multi-image-badges"]&&e.$slots["vs-multi-image-badges"]()?{name:"stretched-card-badges",fn:vue.withCtx(()=>[vue.renderSlot(e.$slots,"vs-multi-image-badges")]),key:"1"}: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 n=e.querySelector("img");n.addEventListener("load",()=>{const t=n.clientHeight/2.5/n.clientWidth;this.negativeMargin=`${t*100}%`,this.imageHeight=`${n.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,n,t,r,a,s){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",s.singleImageClasses]),"data-test":"megalink-single-image",style:vue.normalizeStyle(s.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,n,t,r,a,s){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":n[0]||(n[0]=p=>a.show=p),onHidden:s.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:s.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,n,t,r,a,s){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",s.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"},s.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,n,t,r,a,s){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,n,t){setWindowObj();let r="";return Object.keys(VS$1).length>0&&(typeof t<"u"?r=VS$1.search_config.basic_config.search_module[t][e]:r=VS$1.search_config.basic_config.search_module[e]),r||n}function getProductName(e,n){setWindowObj();const t={};return Object.keys(VS$1).length>0&&Object.keys(VS$1.search_config.basic_config.productTypes).forEach(r=>{const a=VS$1.search_config.basic_config.productTypes[r];t[a.value]=a.text}),t[e]?t[e]:n}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,n=[];return Object.keys(e).forEach(r=>{n.push({key:e[r].value,text:e[r].text,value:e[r].value})}),n}async function getData(e){try{const{data:n}=await axios.get(e);return n}catch(n){console.error(`Axios error: ${n}`)}}var controls={arrowUpKey:38,arrowDownKey:40,escKey:27,enterKey:13};function isFn(e){return typeof e=="function"}function isControlledProp(e,n){return e[n]!==void 0}function hasKeyCode(e,n){return e===n.keyCode}function getItemIndex(e,n,t){return e!==void 0?e:t.length?t.indexOf(n):-1}function hasOwnProperty(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function getNextNonDisabledIndex(e,n,t,r,a){var s=r(n);if(!s||!s.hasAttribute("disabled"))return n;if(e>0)for(var i=n+1;i<t;i+=1){var l=r(i),c=l.hasAttribute("disabled");if(!c)return i}else for(var d=n-1;d>=0;d-=1)if(!r(d).hasAttribute("disabled"))return d;return a?e>0?getNextNonDisabledIndex(1,0,t,r,!1):getNextNonDisabledIndex(-1,t-1,t,r,!1):-1}function scrollToElement(e,n,t){var r=n.clientHeight,a=n.scrollTop,s=e.offsetHeight,i=e.offsetTop;if(i<a)t===0?n.scrollTop=0:n.scrollTop=i;else{var l=i+s,c=a+r;l>c&&(n.scrollTop=l-r)}}function getProps(e){return Object.assign({},e?{modelValue:{default:null}}:{value:{default:null}},{items:{type:Array,required:!0},itemToString:{type:Function,default:function(n){return n?String(n):""}},stateReducer:{type:Function,default:function(n,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,n){return{hovered:null,isOpen:!1,hoveredIndex:-1,selectedItem:e,inputValue:n(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(n){n===void 0&&(n={});var t=n.blur,r=n.input,a=n.keydown,s=n.keyup;return{blur:isFn(t)?t:this.onInputBlur,input:isFn(r)?r:this.onInput,keydown:isFn(a)?a:this.onInputKeyDown,keyup:isFn(s)?s:this.onInputKeyUp}},onInputKeyDown:function e(n){n.key==="Enter"&&this.isOpen?n.preventDefault():hasKeyCode(controls.arrowDownKey,n)&&!this.isOpen?(this.setState({isOpen:!0},InputKeyDownArrowDown),this.moveSelection(n)):this.moveSelection(n)},onInputKeyUp:function e(n){var t=controls.enterKey,r=controls.escKey;if(this.isOpen)if(hasKeyCode(t,n)){if(this.hoveredIndex>=0){n.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(r,n)&&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(n){var t=n.target?n.target.value:n;this.setState({inputValue:t,hovered:null,isOpen:!0},InputChange)}},itemPropsAndListeners={getItemEventListeners:function e(n){var t=this;n===void 0&&(n={});var r=n.index,a=n.disabled,s=n.item;s===void 0&&(s=void 0);var i=n.mousemove,l=n.mousedown,c=n.click;return a?{}:{mousemove:isFn(i)?i:function(){return t.onItemMouseMove(r,s)},mousedown:isFn(l)?l:this.onItemMouseDown,click:isFn(c)?c:function(){return t.onItemClick(s)}}},onItemMouseMove:function e(n,t){var r=getItemIndex(n,t,this.items);this.hoveredIndex!==r&&this.setState({hoveredIndex:r,hovered:t},ItemMouseMove)},onItemMouseDown:function e(n){n.preventDefault()},onItemClick:function e(n){this.setState({inputValue:this.itemToString(n),selectedItem:n,isOpen:!1,hoveredIndex:-1,hovered:null},ItemClick)},getItemProps:function e(n){n===void 0&&(n={});var t=n.index,r=n.disabled,a=n.item;a===void 0&&(a=void 0);var s=getItemIndex(t,a,this.items),i=this.getItemId(s);return{id:i,disabled:r?!0:void 0,role:"option","aria-selected":this.hoveredIndex===s||this.selectedItem===a?"true":"false"}}},menuPropsAndListeners={getMenuProps:function e(){return{id:this.computedMenuId,role:"listbox","aria-labelledby":this.computedLabelId}},getMenuEventListeners:function e(n){n===void 0&&(n={});var t=n.mouseleave,r=n.mousedown;return{mouseleave:isFn(t)?t:this.onMenuMouseLeave,mousedown:isFn(r)?r:this.onMenuMouseDown}},onMenuMouseLeave:function e(){this.setState({hoveredIndex:-1,hovered:null},MenuMouseLeave)},onMenuMouseDown:function e(n){n.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(n){this.setInputValue(this.itemToString(n))},reset:function e(){this.setState({selectedItem:null,inputValue:""},FunctionReset)},select:function e(n){this.setState({inputValue:this.itemToString(n),selectedItem:n,isOpen:!1,hoveredIndex:-1,hovered:null},FunctionSelectItem)},setHoveredItem:function e(n,t,r){n&&n!==this.hovered&&this.$emit("hover",n,r),this.hovered=n,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(n){return this.menuElement.querySelector("#"+this.getItemId(n))},scrollItemIntoView:function e(n){var t=this.getItemNodeFromIndex(n);scrollToElement(t,this.menuElement,n)},moveSelection:function e(n){var t=this,r=this.items.length;if(!(!this.isOpen||!r)){var a=hasKeyCode(controls.arrowDownKey,n),s=hasKeyCode(controls.arrowUpKey,n);if(a||s){n.preventDefault();var i=a*2-1,l=a?0:r-1,c=a?this.hoveredIndex<r-1:this.hoveredIndex>0,d=c?this.hoveredIndex+i:l,f=getNextNonDisabledIndex(i,d,r,this.getItemNodeFromIndex,this.circular);if(!this.circular&&(s&&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(n){this.inputValue!==n&&this.setState({inputValue:n},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,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(n){isControlledProp(this.$props,"modelValue")&&(this.inputValue=this.itemToString(n),this.selectedItem=n)}},beforeCreate,data:function e(){return getInitialData(this.modelValue,this.itemToString)},computed:Object.assign({},computed),methods:Object.assign({},{setState:function e(n,t){var r=this.$data,a=this.stateReducer(r,{changes:n,type:t}),s=hasOwnProperty(a,"selectedItem"),i=a.selectedItem!==r.selectedItem;s&&(this.$emit("select",a.selectedItem,t),i&&this.$emit("update:modelValue",a.selectedItem,t));var l={};for(var c in a)hasOwnProperty(a,c)&&r[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:n}){const t=e,r=n,a=vue.ref([]),s=vue.ref(t.options),i=v=>v?v[d.value]:"",l=v=>{s.value=t.options.filter(m=>m[d.value].toLowerCase().includes(v.toLowerCase()))},c=v=>{typeof t.trackBy<"u"?r("changeValue",v[t.trackBy]):r("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:s.value,onInputValueChange:l,onSelect:c},{default:vue.withCtx(({getInputProps:g,getInputEventListeners:b,hoveredIndex:C,isOpen:w,getMenuProps:E,getMenuEventListeners:V,getItemProps:A,getItemEventListeners:P,getComboboxProps:O,openMenu:I})=>[vue.createElementVNode("div",vue.mergeProps(O(),{class:"vs-autocomplete__list-wrapper"}),[vue.createElementVNode("input",vue.mergeProps({class:"vs-input form-control"},g(),vue.toHandlers(b(),!0),{placeholder:v.placeholder,onClick:R=>I()}),null,16,_hoisted_3$b),vue.createVNode(VsIcon,{name:"chevron-down",variant:"primary",size:"sm"}),vue.withDirectives(vue.createElementVNode("ul",vue.mergeProps(E(),vue.toHandlers(V(),!0),{class:"vs-autocomplete__list"}),[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(s.value,(R,Z)=>(vue.openBlock(),vue.createElementBlock("li",vue.mergeProps({key:R.id,ref_for:!0},A({item:R,index:Z}),vue.toHandlers(P({item:R,index:Z}),!0),{class:["vs-autocomplete__list-item",{"vs-autocomplete__list-item--hover":C===Z}]}),vue.toDisplayString(R[d.value]),17))),128))],16),[[vue.vShow,w]])],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:n}){const t=e,r=n,a=vue.ref(0),s=vue.ref(!1),i=vue.ref(t.name),l=()=>{a.value>t.minValue&&(a.value--,s.value=!0,d("decrease"))},c=()=>{a.value<t.maxValue&&(a.value++,s.value=!0,d("increase"))},d=f=>{r("changeHandler",t.name,a.value,f,t.id)};return vue.onMounted(()=>{s.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(()=>p[2]||(p[2]=[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(()=>p[3]||(p[3]=[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:n}){const t=e,r=n,a=vue.ref(t.unitOptions.numberGroups.adults.count),s=vue.ref(t.unitOptions.numberGroups.children.count),i=vue.ref(t.unitOptions.numberGroups.infants.count),l=getLabelText("remove","Remove","guests_rooms"),c=vue.computed(()=>s.value+i.value),d=(p,v,m,g)=>{let b="";p.includes("children")&&(s.value=v,b="children"),p.includes("infants")&&(i.value=v,b="infants"),(p.includes("r1a")||p.includes("r2a")||p.includes("r3a")||p.includes("r4a")||p.includes("r5a"))&&(a.value=v,b="adults"),r("numberChange",m,b,g)},f=()=>{r("onRemove",i.value+s.value+a.value,i.value+s.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":s.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(s.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+s.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$6=["value","disabled"],adultDefaultCount=1,unitLimit=5,_sfc_main$s=vue.defineComponent({__name:"GuestSelector",props:{availability:{type:Boolean}},setup(e){const n=vue.getCurrentInstance(),t=getLabelText("add_room_label","Add a Room","guests_rooms"),r=getLabelText("save_changes","Save","guests_rooms"),a=vue.ref(2),s=getLabelText("guest","Guest","guests_rooms"),i=getLabelText("guests","Guests","guests_rooms"),l=vue.ref(!1),c=vue.ref(0),d=vue.ref([{id:`${n.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),b=()=>{g.value=!1},C=()=>{g.value=!g.value},w=()=>{if(d.value.length<unitLimit){const A={id:`${n.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 P=d.value.slice();P.push(A),d.value=P,f.value=P.length,l.value=!0,a.value=a.value+adultDefaultCount}},E=(A,P,O)=>{const I=d.value.findIndex(R=>R.id===O);d.value.splice(I,1),f.value=d.value.length,m.value=!0,a.value=a.value-A,c.value=c.value-P,d.value.length===1&&(l.value=!1)},V=(A,P,O)=>{a.value=A==="increase"?a.value+1:a.value-1,P!=="adults"&&(c.value=A==="increase"?c.value+1:c.value-1);const I=d.value.findIndex(R=>R.id===O);d.value[I].numberGroups[P].count=A==="increase"?d.value[I].numberGroups[P].count+1:d.value[I].numberGroups[P].count-1};return(A,P)=>(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(C,["prevent"]),disabled:!A.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),P[0]||(P[0]=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(s)),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(b,["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,(O,I)=>(vue.openBlock(),vue.createBlock(_sfc_main$t,{key:O.id,name:"r"+(I+1),"show-remove-btn":l.value,"unit-label":vue.unref(getLabelText)("room","Room","guests_rooms")+" "+(I+1),"unit-options":O,"unit-removed":m.value,onNumberChange:V,onOnRemove:E},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(w,["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(b,["prevent"])},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(r)),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:!A.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:!A.availability},null,8,_hoisted_7$6)):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:n}){const t=e,r=n,a=vue.ref(t.value),s=vue.computed(()=>new Date().toISOString().split("T")[0]);return vue.watch(()=>t.value,i=>{a.value=i,r("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:s.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$5=["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:n}){const t=e,r=n,a=vue.ref(""),s=vue.ref(""),i=vue.computed(()=>!!a.value||!!s.value),l=vue.computed(()=>{const E=new Date(s.value),V=new Date(a.value),A=E.getTime()-V.getTime();return isNaN(A)?1:A/(1e3*3600*24)});function c(){a.value="",s.value=""}const d=E=>{const V=E.toLocaleString("default",{year:"numeric"}),A=E.toLocaleString("default",{month:"2-digit"}),P=E.toLocaleString("default",{day:"2-digit"});return`${V}-${A}-${P}`},f=vue.computed(()=>a.value===""?d(new Date):""),p=vue.computed(()=>{let E;if(a.value!==""){const V=new Date(a.value);V.setDate(V.getDate()+1),E=d(V)}else if(t.defaultDates){const V=new Date,A=new Date(V);A.setDate(A.getDate()+1),E=d(A)}return E}),v=vue.computed(()=>{let E;if(a.value===""){const V=new Date,A=new Date(V);A.setDate(A.getDate()+1),E=d(A)}else{const V=new Date,A=new Date(a.value);V.setDate(A.getDate()+1),E=d(V)}return E});function m(){const E=new Date(a.value);new Date(s.value)<=E&&(s.value="")}function g(){const E=!(!a.value&&!s.value);r("dateUpdated",E)}function b(){g(),m()}const C=vue.computed(()=>t.selectedProd==="acco"?"stay":"isostartdate"),w=vue.computed(()=>t.selectedProd==="acco"?"endDate":"isoenddate");return(E,V)=>(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===""&&s.value?f.value:a.value,name:C.value,id:"startDate",onChangeDate:V[0]||(V[0]=A=>{a.value=A,b()}),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&&s.value===""&&a.value?p.value:s.value,"min-date":v.value,name:w.value,id:"endDate",onChangeDate:V[1]||(V[1]=A=>{s.value=A,b()}),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$5)])])]))}}),_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$4={for:"prodtypes"},_hoisted_8$3={class:"product-search__in d-none d-md-block mt-100"},_hoisted_9$3={"aria-live":"polite"},_hoisted_10$3=["disabled","value"],_hoisted_11$2=["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,n){this.createDataLayerObject("productSearchDataEvent",{searchType:e,searchLocation:n.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 n=e,t=vue.ref(!1),r=vue.ref(),a=vue.ref([]);vue.ref(null);let s=vue.ref();s.value={id:"",key:"",name:"",type:""};const i=vue.ref("off"),l=vue.ref(!1),c=vue.computed(()=>{const T=typeof r.value>"u"?"see-do":r.value;return`/info/${paths[T]}`});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 T=n.defaultLocale.length>0?n.defaultLocale:getLocale();return T==="en"&&(T=""),T}),v=vue.computed(()=>{if(typeof window<"u"){let T=window.location.origin;return T.includes("localhost")?"https://www.visitscotland.com":T}return"https://www.visitscotland.com"}),m=vue.computed(()=>`${v.value}${p.value?"/"+p.value:""}${c.value}/search-results`),b="https://www.visitscotland.com/data/locations"+`?locale=${p.value}`,C=vue.ref([]),w="https://www.visitscotland.com/tms-api/v1/attractions",E=vue.ref([]),V="https://www.visitscotland.com/tms-api/v1/origins?active=1",A=vue.ref([]),P=vue.ref([]),O=()=>{const T=getProductTypes(),M=[];T.forEach(G=>{M.push(G)}),P.value=M},I=vue.computed(()=>t.value?[]:P.value.map(M=>({...M,text:getProductName(M.value,M.text)}))),R=async()=>{const T=await getData(b);T&&(C.value=T.data)},Z=async()=>{const T=await getData(V);T&&(A.value=T.data)},se=async()=>{const T=await getData(w);T&&(E.value=T.data)},z=(T,M)=>{M==="key"?s.value=C.value.find(G=>G.key===T):M==="id"?s.value=C.value.find(G=>G.id===T):s.value=C.value.find(G=>G.name===T.trim())},ie=T=>{const M=T.value;r.value=M,M==="tour"&&(Z(),se())},Q=()=>f[n.defaultLocale]||"",ae=()=>{t.value=!0,vue.nextTick(()=>{t.value=!1,n.defaultLocation!==""&&d&&z(n.defaultLocation,"id")})},we=vue.computed(()=>r.value!=="cate"&&r.value!=="acti,attr,reta"?"d-lg-flex":"");vue.onBeforeMount(async()=>{window.VS={};const T=document.createElement("script");T.async=!1,T.onload=ae,T.setAttribute("src",`https://www.visitscotland.com/${Q().localeUrl}/data/template/search.js`),document.head.appendChild(T)}),vue.onMounted(async()=>{R(),d.value=!0,r.value=n.defaultProd,r.value==="tour"&&(Z(),se()),O()});const me=T=>{i.value=T?"on":"off"},fe=T=>{l.value=!0;const M=T.currentTarget;setTimeout(function(){M.submit()},500)};return(T,M)=>{var G,ne,he,B,U,q;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(fe,["prevent"]),"accept-charset":"UTF-8","data-test":"psw-form"},[vue.createElementVNode("div",_hoisted_6$5,[vue.createElementVNode("label",_hoisted_7$4,vue.toDisplayString(vue.unref(getLabelText)("search_for","I'm looking for")),1),vue.createElementVNode("div",{class:vue.normalizeClass(we.value)},[vue.createVNode(VsSelect,{options:I.value,value:e.defaultProd,onUpdated:M[0]||(M[0]=oe=>ie(oe)),"field-name":"prodtypes"},null,8,["options","value"]),vue.createElementVNode("div",_hoisted_8$3,vue.toDisplayString(vue.unref(getLabelText)("in","in")),1)],2)]),vue.createElementVNode("div",_hoisted_9$3,[r.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:C.value,placeholder:vue.unref(getLabelText)("location_placeholder","Enter a location"),"track-by":"name",onChangeValue:M[1]||(M[1]=oe=>z(oe)),"default-val":vue.unref(s),"data-chromatic":"ignore"},null,8,["label","options","placeholder","default-val"])):vue.createCommentVNode("",!0),r.value!=="tour"?(vue.openBlock(),vue.createElementBlock("input",{key:1,type:"hidden",name:"locplace",disabled:((G=vue.unref(s))==null?void 0:G.type)==="POLYGON",value:((ne=vue.unref(s))==null?void 0:ne.key)||""},null,8,_hoisted_10$3)):vue.createCommentVNode("",!0),r.value!=="tour"?(vue.openBlock(),vue.createElementBlock("input",{key:2,type:"hidden",name:"locpoly",disabled:((he=vue.unref(s))==null?void 0:he.type)!=="POLYGON",value:((B=vue.unref(s))==null?void 0:B.key)||""},null,8,_hoisted_11$2)):vue.createCommentVNode("",!0),r.value!=="tour"?(vue.openBlock(),vue.createElementBlock("input",{key:3,type:"hidden",name:"locprox",value:((U=vue.unref(s))==null?void 0:U.type)==="DISTRICT"?1:0},null,8,_hoisted_12$2)):vue.createCommentVNode("",!0),r.value!=="tour"&&((q=vue.unref(s))==null?void 0:q.type)==="DISTRICT"?(vue.openBlock(),vue.createElementBlock("input",_hoisted_13$2)):vue.createCommentVNode("",!0),r.value==="even"||r.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:M[2]||(M[2]=oe=>me(oe)),"default-dates":l.value,"selected-prod":r.value},null,8,["start-label","end-label","default-dates","selected-prod"]),r.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),r.value==="acco"?(vue.openBlock(),vue.createBlock(_sfc_main$s,{key:1,availability:!0,id:"guest-selector"})):vue.createCommentVNode("",!0),r.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)]),r.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:A.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,oe=>(vue.openBlock(),vue.createElementBlock("input",{type:"hidden",name:"attractions[]",value:oe},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:M[3]||(M[3]=oe=>T.trackSubmit(r.value,typeof vue.unref(s)>"u"?"":vue.unref(s)))},{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,n,t,r,a,s){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={key:1,class:"vs-quote__author-container"},_hoisted_3$4={class:"vs-quote__content-container"},_hoisted_4$4={class:"vs-quote__content"},_hoisted_5$4={key:0,class:"vs-quote__author-name"},_hoisted_6$4={key:2,class:"vs-quote__quote-link"};function _sfc_render$l(e,n,t,r,a,s){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-quote",s.variantClass]),"data-test":"vs-quote"},[t.withBorder?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$e,n[0]||(n[0]=[vue.createElementVNode("span",{class:"vs-quote__speech-mark"},"“",-1)]))),s.hasAuthorImage?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$8,[vue.renderSlot(e.$slots,"quote-image")])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_3$4,[vue.createElementVNode("div",_hoisted_4$4,[vue.renderSlot(e.$slots,"quote-content")]),s.hasAuthorName?(vue.openBlock(),vue.createElementBlock("p",_hoisted_5$4,[vue.renderSlot(e.$slots,"quote-author-name")])):vue.createCommentVNode("",!0),s.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_6$4,[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,n,t,r,a,s){const i=vue.resolveComponent("BTableSimple");return vue.openBlock(),vue.createBlock(i,{class:"vs-table","data-test":"vs-table",small:"","caption-top":"",responsive:s.responsive,stacked:s.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,n,t,r,a,s){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,n,t,r,a,s){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,n,t,r,a,s){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,n,t,r,a,s){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,n,t,r,a,s){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,n,t,r,a,s){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(n=>{const t=this.cleanData(n.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 n={contact:e.contact,report:e.report};if(e.snowReport)n.lastUpdate=e.snowReport.lastupdate,n.lifts=e.lifts.sector.items,n.runs=e.runs.items,this.isCairngorms=!0;else if(n.lastUpdate=e.lastupdate,[n.lifts]=e.lift.sectors,n.lifts=n.lifts.lifts,e.run.areas){const t=e.run.areas.map(r=>r.runs).reduce((r,a)=>r.concat(a)).filter((r,a,s)=>a===s.findIndex(i=>i.name===r.name));n.runs=t}return n},processLastUpdate(e){const n=new Date(e.year,parseInt(e.month,10)-1,e.day),t={year:"numeric",month:"long",day:"numeric"},r=n.toLocaleDateString(this.locale,t);this.lastUpdate=`${e.hour24}:${e.minute} - ${r}`},processLifts(e){for(let n=0;n<e.length;n++)switch(e[n].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 n=0;n<e.length;n++)switch(e[n].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$1={"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,n,t,r,a,s){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"),b=vue.resolveComponent("VsTableBody"),C=vue.resolveComponent("VsTableFooter"),w=vue.resolveComponent("VsTable"),E=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(w,{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(b,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$1,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(C,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(E,{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(E,{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(n=>n.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(n=>{const t=this.cleanData(n.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 n={contact:e.contact,report:e.report};if(e.snowReport)n.lastUpdate=e.snowReport.lastupdate,n.lifts=e.lifts.sector.items,n.runs=e.runs.items,this.isCairngorms=!0;else if(n.lastUpdate=e.lastupdate,[n.lifts]=e.lift.sectors,n.lifts=n.lifts.lifts,e.run.areas){const t=e.run.areas.map(r=>r.runs).reduce((r,a)=>r.concat(a)).filter((r,a,s)=>a===s.findIndex(i=>i.name===r.name));n.runs=t}if(n.runs)for(let t=0;t<n.runs.length;t++)n.runs[t].difficulty===null&&(n.runs[t].difficulty="orange");return n},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 n=new Date(e.year,parseInt(e.month,10)-1,e.day),t={year:"numeric",month:"long",day:"numeric"},r=n.toLocaleDateString(this.locale,t);this.lastUpdate=`${e.hour24}:${e.minute} - ${r}`},processLifts(e){for(let n=0;n<e.length;n++)switch(e[n].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 n=0;n<e.length;n++){switch(e[n].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[n].difficulty&&this.runLevels[t].runs.push(e[n])}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=["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,n,t,r,a,s){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"),b=vue.resolveComponent("VsTableDataCell"),C=vue.resolveComponent("VsTableRow"),w=vue.resolveComponent("VsTableBody"),E=vue.resolveComponent("VsTableFooter"),V=vue.resolveComponent("VsTable"),A=vue.resolveComponent("VsLink"),P=vue.resolveComponent("VsAccordionItem"),O=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(V,{"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(w,null,{default:vue.withCtx(()=>[vue.createVNode(C,null,{default:vue.withCtx(()=>[vue.createVNode(b,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(b,{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(b,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(C,{key:0},{default:vue.withCtx(()=>[vue.createVNode(b,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(b,{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(b,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(C,null,{default:vue.withCtx(()=>[vue.createVNode(b,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(b,{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(b,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(a.statusSummary.lifts.opening)+"/"+vue.toDisplayString(a.lifts.length),1)]),_:1})]),_:1}),vue.createVNode(C,null,{default:vue.withCtx(()=>[vue.createVNode(b,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(b,{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(b,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(C,{key:1},{default:vue.withCtx(()=>[vue.createVNode(b,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(b,{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(b,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(E,null,{default:vue.withCtx(()=>[vue.createVNode(C,null,{default:vue.withCtx(()=>[vue.createVNode(b,{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(A,{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),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(V,{"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(w,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.lifts,I=>(vue.openBlock(),vue.createBlock(C,{key:I.name},{default:vue.withCtx(()=>[I.status==="0"||I.status===0?(vue.openBlock(),vue.createBlock(b,{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),I.status==="1"||I.status===1?(vue.openBlock(),vue.createBlock(b,{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),I.status==="2"||I.status===2?(vue.openBlock(),vue.createBlock(b,{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),I.status==="3"||I.status===3?(vue.openBlock(),vue.createBlock(b,{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),I.status==="4"||I.status===4?(vue.openBlock(),vue.createBlock(b,{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(b,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(I.name),1)]),_:2},1024)]),_:2},1024))),128))]),_:1}),vue.createVNode(E,null,{default:vue.withCtx(()=>[vue.createVNode(C,null,{default:vue.withCtx(()=>[vue.createVNode(b,{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(s.filteredRunLevels,I=>(vue.openBlock(),vue.createElementBlock("div",{key:I.name},[vue.createVNode(O,null,{default:vue.withCtx(()=>[vue.createVNode(P,{variant:"transparent","control-id":"accordion_item_"+I.name,"colour-badge":I.colourToken},{title:vue.withCtx(()=>[vue.createElementVNode("div",{"data-test":`vs-ski__${I.name}-label`,class:"d-inline-block"},[vue.createElementVNode("span",_hoisted_17,vue.toDisplayString(s.getColourLabel(I.colour)),1),vue.createTextVNode(" "+vue.toDisplayString(I.name),1)],8,_hoisted_16)]),default:vue.withCtx(()=>[vue.createVNode(V,{"table-caption":I.colour+" - "+I.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(w,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(I.runs,R=>(vue.openBlock(),vue.createBlock(C,{key:R.name,"data-test":`vs-ski__${I.name}-row`},{default:vue.withCtx(()=>[R.status==="0"||R.status===0?(vue.openBlock(),vue.createBlock(b,{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(b,{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(b,{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(b,{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(b,{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(b,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(R.name),1)]),_:2},1024)]),_:2},1032,["data-test"]))),128))]),_:2},1024),vue.createVNode(E,null,{default:vue.withCtx(()=>[vue.createVNode(C,null,{default:vue.withCtx(()=>[vue.createVNode(b,{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],n=document.getElementsByClassName("vs-mega-nav-dropdown")[0];if(!this.isUndefined(n)){let t=n.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 n=e.getElementsByClassName("vs-footer-accordion-item")[0],t=n.getElementsByClassName("vs-link")[0],r=n.getElementsByClassName("vs-accordion-toggle")[0];r.offsetParent!==null&&!this.isUndefined(r)&&r.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,n,t,r,a,s){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:n[0]||(n[0]=l=>s.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:n[1]||(n[1]=l=>s.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,n,t,r,a,s){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,n,t,r,a,s){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:s.onShown,onHidden:s.onHidden,onHide:s.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:n[0]||(n[0]=vue.withKeys(m=>s.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:s.onCopyLink})]),_:3},512),vue.createVNode(i,{"icon-only":"",class:"vs-social-share__close-btn",icon:"close",variant:"transparent",ref:"closeButton",onClick:s.onClose,onKeydown:n[1]||(n[1]=vue.withKeys(m=>s.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,n,t,r,a,s){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:s.noJs?2:4},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"vs-social-share-item__link",href:s.shareUrl,onClick:n[0]||(n[0]=d=>s.copyToClipboard(d)),id:`vs-share-${t.name}`},{default:vue.withCtx(()=>[vue.createVNode(i,{name:t.name,"custom-colour":s.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 n=e;return(t,r)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vs-styled-list",`vs-styled-list--${n.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:n.variant==="icon"?"8":null},{default:vue.withCtx(()=>[vue.createElementVNode("ul",_hoisted_1$7,[vue.renderSlot(t.$slots,"default")])]),_:3},8,["md"])]),_:3}),t.$slots["list-source"]&&t.$slots["list-source"]()?(vue.openBlock(),vue.createBlock(vue.unref(VsRow),{key:0},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$4,[vue.renderSlot(t.$slots,"list-source")])]),_:3})):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 n=e;return(t,r)=>(vue.openBlock(),vue.createElementBlock("li",_hoisted_1$6,[vue.createVNode(vue.unref(VsRow),null,{default:vue.withCtx(()=>[n.variant==="image"?(vue.openBlock(),vue.createBlock(vue.unref(VsCol),{key:0,cols:"12",md:"2"},{default:vue.withCtx(()=>[vue.createVNode(VsImg,{src:n.imageSrc},null,8,["src"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(VsCol),{md:n.variant==="image"?"10":"12"},{default:vue.withCtx(()=>[n.variant==="image-horizontal"?(vue.openBlock(),vue.createBlock(VsImg,{key:0,src:n.imageSrc},null,8,["src"])):vue.createCommentVNode("",!0),vue.createVNode(VsHeading,{level:n.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,n,t,r,a,s){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,n,t,r,a,s){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}}},_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={class:"vs-summary-box-distance__display-entry"},_hoisted_9={class:"vs-summary-box-distance__display-value"},_hoisted_10={class:"vs-summary-box-distance__display-label"};function _sfc_render$5(e,n,t,r,a,s){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)]),n[0]||(n[0]=vue.createElementVNode("hr",{class:"vs-summary-box-distance__divider"},null,-1)),vue.createElementVNode("div",_hoisted_8,[vue.createElementVNode("span",_hoisted_9,vue.toDisplayString(t.kilometres),1),vue.createElementVNode("span",_hoisted_10,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,n,t,r,a,s){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,n,t,r,a,s){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,n,t,r,a,s){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(n=>{const t=n.replace(/-/g,"_");this.dataLayerStore.processPayload({key:t,value:e[n]})})}}},_hoisted_1$1={"data-test":"vs-tag-manager-wrapper",class:"d-none"};function _sfc_render$1(e,n,t,r,a,s){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
365
|
* @link https://github.com/gajus/sister for the canonical source repository
|
|
366
366
|
* @license https://github.com/gajus/sister/blob/master/LICENSE BSD 3-Clause
|
|
367
|
-
*/Sister=function(){var e={},n={};return e.on=function(t,r){var a={name:t,handler:r};return n[t]=n[t]||[],n[t].unshift(a),a},e.off=function(t){var r=n[t.name].indexOf(t);r!==-1&&n[t.name].splice(r,1)},e.trigger=function(t,r){var a=n[t],s;if(a)for(s=a.length;s--;)a[s].handler(r)},e};var sister=Sister,YouTubePlayer={exports:{}},browser={exports:{}},ms,hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var e=1e3,n=e*60,t=n*60,r=t*24,a=r*7,s=r*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*s;case"weeks":case"week":case"w":return v*a;case"days":case"day":case"d":return v*r;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*n;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>=r?Math.round(f/r)+"d":p>=t?Math.round(f/t)+"h":p>=n?Math.round(f/n)+"m":p>=e?Math.round(f/e)+"s":f+"ms"}function c(f){var p=Math.abs(f);return p>=r?d(f,p,r,"day"):p>=t?d(f,p,t,"hour"):p>=n?d(f,p,n,"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=i,t.enable=a,t.enabled=l,t.humanize=requireMs(),t.destroy=d,Object.keys(e).forEach(f=>{t[f]=e[f]}),t.names=[],t.skips=[],t.formatters={};function n(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=n;function t(f){let p,v=null,m,g;function b(...C){if(!b.enabled)return;const w=b,E=Number(new Date),V=E-(p||E);w.diff=V,w.prev=p,w.curr=E,p=E,C[0]=t.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let A=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(O,I)=>{if(O==="%%")return"%";A++;const L=t.formatters[I];if(typeof L=="function"){const Z=C[A];O=L.call(w,Z),C.splice(A,1),A--}return O}),t.formatArgs.call(w,C),(w.log||t.log).apply(w,C)}return b.namespace=f,b.useColors=t.useColors(),b.color=t.selectColor(f),b.extend=r,b.destroy=t.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>v!==null?v:(m!==t.namespaces&&(m=t.namespaces,g=t.enabled(f)),g),set:C=>{v=C}}),typeof t.init=="function"&&t.init(b),b}function r(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=[];const p=(typeof f=="string"?f:"").trim().replace(" ",",").split(",").filter(Boolean);for(const v of p)v[0]==="-"?t.skips.push(v.slice(1)):t.names.push(v)}function s(f,p){let v=0,m=0,g=-1,b=0;for(;v<f.length;)if(m<p.length&&(p[m]===f[v]||p[m]==="*"))p[m]==="*"?(g=m,b=v,m++):(v++,m++);else if(g!==-1)m=g+1,b++,v=b;else return!1;for(;m<p.length&&p[m]==="*";)m++;return m===p.length}function i(){const f=[...t.names,...t.skips.map(p=>"-"+p)].join(",");return t.enable(""),f}function l(f){for(const p of t.skips)if(s(f,p))return!1;for(const p of t.names)if(s(f,p))return!0;return!1}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,n){var t={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LfqqfcZAAAAACbkbPaHRZTIFpKZGAPZBDkwBKhe",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_15348_CWGUUHKPCRTIGFCZ",COLORTERM:"truecolor",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"2HR07S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EXEPATH:"C:\\Program Files\\Git\\bin",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",GIT_ASKPASS:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\duncan.sanderson",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\duncan.sanderson",HOSTNAME:"2HR07S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LANG:"en_US.UTF-8",LOCALAPPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE_ENV:"production",NODE_PATH:"C:\\Users\\duncan.sanderson\\AppData\\npm",npm_config_user_agent:"yarn/4.3.1 npm/? node/v18.19.1 win32 x64",npm_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579\\node",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.7.1",NUMBER_OF_PROCESSORS:"8",OneDrive:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",OneDriveCommercial:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin",ORIGINAL_TEMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",PATH:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-35612579;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-274ceb4d;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-4df2ce3c;C:\\Users\\duncan.sanderson\\.volta\\bin;C:\\Users\\duncan.sanderson\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",ProgramData:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",PYTHON:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_AGENT_PID:"1838",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SSH_AUTH_SOCK:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp/ssh-uR4B1I3vN93q/agent.1837",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TERM:"xterm-256color",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.96.2",TMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"duncan.sanderson",USERPROFILE:"C:\\Users\\duncan.sanderson",VOLTA_HOME:"C:/Users/duncan.sanderson/.volta",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",VSCODE_GIT_ASKPASS_MAIN:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-4a2d75133c-sock",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/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"};n.formatArgs=a,n.save=s,n.load=i,n.useColors=r,n.storage=l(),n.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`."))}})(),n.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 r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let d;return 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&&(d=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(d[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)}n.log=console.debug||console.log||(()=>{});function s(d){try{d?n.storage.setItem("debug",d):n.storage.removeItem("debug")}catch{}}function i(){let d;try{d=n.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(n);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,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},e.exports=n.default})(PlayerStates,PlayerStates.exports);var PlayerStatesExports=PlayerStates.exports;(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t=PlayerStatesExports,r=a(t);function a(s){return s&&s.__esModule?s:{default:s}}n.default={pauseVideo:{acceptableStates:[r.default.ENDED,r.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[r.default.ENDED,r.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[r.default.ENDED,r.default.PLAYING,r.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},e.exports=n.default})(FunctionStateMap,FunctionStateMap.exports);var FunctionStateMapExports=FunctionStateMap.exports,eventNames={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],e.exports=n.default})(eventNames,eventNames.exports);var eventNamesExports=eventNames.exports,functionNames={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.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=n.default})(functionNames,functionNames.exports);var functionNamesExports=functionNames.exports;(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t=browserExports,r=f(t),a=FunctionStateMapExports,s=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,r.default)("youtube-player"),v={};v.proxyEvents=m=>{const g={};for(const b of l.default){const C="on"+b.slice(0,1).toUpperCase()+b.slice(1);g[C]=w=>{p('event "%s"',C,w),m.trigger(b,w)}}return g},v.promisifyPlayer=(m,g=!1)=>{const b={};for(const C of d.default)g&&s.default[C]?b[C]=(...w)=>m.then(E=>{const V=s.default[C],A=E.getPlayerState(),$=E[C].apply(E,w);return V.stateChangeRequired||Array.isArray(V.acceptableStates)&&!V.acceptableStates.includes(A)?new Promise(O=>{const I=()=>{const L=E.getPlayerState();let Z;typeof V.timeout=="number"&&(Z=setTimeout(()=>{E.removeEventListener("onStateChange",I),O()},V.timeout)),Array.isArray(V.acceptableStates)&&V.acceptableStates.includes(L)&&(E.removeEventListener("onStateChange",I),clearTimeout(Z),O())};E.addEventListener("onStateChange",I)}).then(()=>$):$}):b[C]=(...w)=>m.then(E=>E[C].apply(E,w));return b},n.default=v,e.exports=n.default})(YouTubePlayer,YouTubePlayer.exports);var YouTubePlayerExports=YouTubePlayer.exports,loadYouTubeIframeApi={exports:{}},loadScript=function e(n,t,r){var a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("script");typeof t=="function"&&(r=t,t={}),t=t||{},r=r||function(){},s.type=t.type||"text/javascript",s.charset=t.charset||"utf8",s.async="async"in t?!!t.async:!0,s.src=n,t.attrs&&setAttributes(s,t.attrs),t.text&&(s.text=""+t.text);var i="onload"in s?stdOnEnd:ieOnEnd;i(s,r),s.onload||stdOnEnd(s,r),a.appendChild(s)};function setAttributes(e,n){for(var t in n)e.setAttribute(t,n[t])}function stdOnEnd(e,n){e.onload=function(){this.onerror=this.onload=null,n(null,e)},e.onerror=function(){this.onerror=this.onload=null,n(new Error("Failed to load "+this.src),e)}}function ieOnEnd(e,n){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,n(null,e))}}(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t=loadScript,r=a(t);function a(s){return s.__esModule?s:{default:s}}n.default=s=>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,r.default)(d+"//www.youtube.com/iframe_api",f=>{f&&s.trigger("error",f)})}const c=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{c&&c(),l(window.YT)}}),e.exports=n.default})(loadYouTubeIframeApi,loadYouTubeIframeApi.exports);var loadYouTubeIframeApiExports=loadYouTubeIframeApi.exports;(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t=sister,r=c(t),a=YouTubePlayerExports,s=c(a),i=loadYouTubeIframeApiExports,l=c(i);function c(f){return f&&f.__esModule?f:{default:f}}let d;n.default=(f,p={},v=!1)=>{const m=(0,r.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=s.default.proxyEvents(m);const g=new Promise(C=>{typeof f=="object"&&f.playVideo instanceof Function?C(f):d.then(w=>{const E=new w.Player(f,p);return m.on("ready",()=>{C(E)}),null})}),b=s.default.promisifyPlayer(g,v);return b.on=m.on,b.off=m.off,b},e.exports=n.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 n={videoId:e};if(typeof this.playerVars.start=="number"&&(n.startSeconds=this.playerVars.start),typeof this.playerVars.end=="number"&&(n.endSeconds=this.playerVars.end),this.playerVars.autoplay===1){this.player.loadVideoById(n);return}this.player.cueVideoById(n)},resizeProportionally(){this.player.getIframe().then(e=>{const n=this.fitParent?e.parentElement.offsetWidth:e.offsetWidth,t=n/this.aspectRatio;this.player.setSize(n,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 n=0,t=0;this.player.getCurrentTime().then(r=>(n=r,this.player?this.player.getDuration():null)).then(r=>{t=r}).then(()=>{const r=n/t*100;this.createDataLayerObject("videoTrackingDataEvent",{title:this.videoTitle,status:e,percent:Math.round(r)})})},async getPlayerDetails(){this.player&&await this.player.getDuration().then(e=>{this.formatTime(e),this.storeVideoDetails()})},formatTime(e){const n=Math.floor(e/60),t=Math.round(e-n*60);this.duration.minutes=n,this.duration.seconds=t;const r=this.getRoundedMinutes(n,t);this.duration.roundedMinutes=this.formatSingularOrPlural(r)},getRoundedMinutes(e,n){return n<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,n,t,r,a,s){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:s.youtubePlaying,onPaused:s.youtubePaused,onEnded:s.youtubeEnded,onReady:s.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.VsBackToTop=_sfc_main$2a;exports.VsBadge=_sfc_main$29;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.VsItineraryBorderOverlapWrapper=ItineraryBorderOverlapWrapper;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;
|
|
367
|
+
*/Sister=function(){var e={},n={};return e.on=function(t,r){var a={name:t,handler:r};return n[t]=n[t]||[],n[t].unshift(a),a},e.off=function(t){var r=n[t.name].indexOf(t);r!==-1&&n[t.name].splice(r,1)},e.trigger=function(t,r){var a=n[t],s;if(a)for(s=a.length;s--;)a[s].handler(r)},e};var sister=Sister,YouTubePlayer={exports:{}},browser={exports:{}},ms,hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var e=1e3,n=e*60,t=n*60,r=t*24,a=r*7,s=r*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*s;case"weeks":case"week":case"w":return v*a;case"days":case"day":case"d":return v*r;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*n;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>=r?Math.round(f/r)+"d":p>=t?Math.round(f/t)+"h":p>=n?Math.round(f/n)+"m":p>=e?Math.round(f/e)+"s":f+"ms"}function c(f){var p=Math.abs(f);return p>=r?d(f,p,r,"day"):p>=t?d(f,p,t,"hour"):p>=n?d(f,p,n,"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=i,t.enable=a,t.enabled=l,t.humanize=requireMs(),t.destroy=d,Object.keys(e).forEach(f=>{t[f]=e[f]}),t.names=[],t.skips=[],t.formatters={};function n(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=n;function t(f){let p,v=null,m,g;function b(...C){if(!b.enabled)return;const w=b,E=Number(new Date),V=E-(p||E);w.diff=V,w.prev=p,w.curr=E,p=E,C[0]=t.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let A=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(O,I)=>{if(O==="%%")return"%";A++;const R=t.formatters[I];if(typeof R=="function"){const Z=C[A];O=R.call(w,Z),C.splice(A,1),A--}return O}),t.formatArgs.call(w,C),(w.log||t.log).apply(w,C)}return b.namespace=f,b.useColors=t.useColors(),b.color=t.selectColor(f),b.extend=r,b.destroy=t.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>v!==null?v:(m!==t.namespaces&&(m=t.namespaces,g=t.enabled(f)),g),set:C=>{v=C}}),typeof t.init=="function"&&t.init(b),b}function r(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=[];const p=(typeof f=="string"?f:"").trim().replace(" ",",").split(",").filter(Boolean);for(const v of p)v[0]==="-"?t.skips.push(v.slice(1)):t.names.push(v)}function s(f,p){let v=0,m=0,g=-1,b=0;for(;v<f.length;)if(m<p.length&&(p[m]===f[v]||p[m]==="*"))p[m]==="*"?(g=m,b=v,m++):(v++,m++);else if(g!==-1)m=g+1,b++,v=b;else return!1;for(;m<p.length&&p[m]==="*";)m++;return m===p.length}function i(){const f=[...t.names,...t.skips.map(p=>"-"+p)].join(",");return t.enable(""),f}function l(f){for(const p of t.skips)if(s(f,p))return!1;for(const p of t.names)if(s(f,p))return!0;return!1}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,n){var t={ICON_KIT_TOKEN:"7c48e8b3d4",ICON_API_TOKEN:"AC462319-8130-4A02-9769-769105D6B489",RECAPTCHA_TOKEN:"6LfqqfcZAAAAACbkbPaHRZTIFpKZGAPZBDkwBKhe",ACLOCAL_PATH:"C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal",ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Roaming",BERRY_BIN_FOLDER:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_29464_PXQWZGIBRNUKUSQG",COLORTERM:"truecolor",COMMONPROGRAMFILES:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"2HR07S2",COMSPEC:"C:\\WINDOWS\\system32\\cmd.exe",CONFIG_SITE:"C:/Program Files/Git/etc/config.site",DISPLAY:"needs-to-be-defined",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EXEPATH:"C:\\Program Files\\Git\\bin",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GDAL_DATA:"C:\\Program Files\\PostgreSQL\\9.6\\gdal-data",GIT_ASKPASS:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\duncan.sanderson",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\duncan.sanderson",HOSTNAME:"2HR07S2",INFOPATH:"C:\\Program Files\\Git\\mingw64\\local\\info;C:\\Program Files\\Git\\mingw64\\share\\info;C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info",INIT_CWD:"C:\\vsdev\\workspace\\vs-component-library",JAVA_HOME:"C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot",LANG:"en_US.UTF-8",LOCALAPPDATA:"C:\\Users\\duncan.sanderson\\AppData\\Local",LOGONSERVER:"\\\\OP-DOM-VSWEBVDC",M2:"C:\\vsdev\\apache-maven-3.9.4\\bin",M2_HOME:"C:\\vsdev\\apache-maven-3.9.4",MANPATH:"C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man",MINGW_CHOST:"x86_64-w64-mingw32",MINGW_PACKAGE_PREFIX:"mingw-w64-x86_64",MINGW_PREFIX:"C:/Program Files/Git/mingw64",MSYSTEM:"MINGW64",MSYSTEM_CARCH:"x86_64",MSYSTEM_CHOST:"x86_64-w64-mingw32",MSYSTEM_PREFIX:"C:/Program Files/Git/mingw64",NODE_ENV:"production",NODE_PATH:"C:\\Users\\duncan.sanderson\\AppData\\npm",npm_config_user_agent:"yarn/4.3.1 npm/? node/v18.19.1 win32 x64",npm_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a\\yarn",npm_lifecycle_event:"build:vite-no-theo",npm_node_execpath:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a\\node",npm_package_json:"C:\\vsdev\\workspace\\vs-component-library\\package.json",npm_package_name:"@visitscotland/component-library",npm_package_version:"4.7.2",NUMBER_OF_PROCESSORS:"8",OneDrive:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",OneDriveCommercial:"C:\\Users\\duncan.sanderson\\OneDrive - VisitScotland",ORIGINAL_PATH:"C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin",ORIGINAL_TEMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_TMP:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",PATH:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-b02c010a;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-75c6f032;C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp\\xfs-5dadc7c5;C:\\Users\\duncan.sanderson\\.volta\\bin;C:\\Users\\duncan.sanderson\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\duncan.sanderson\\bin;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:\\vsdev\\apache-maven-3.9.4\\bin;C:\\program files\\nodejs;C:\\Program Files\\MongoDB 2.6 Standard\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Eclipse Adoptium\\jdk-11.0.20.101-hotspot\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Volta\\bin;C:\\Users\\duncan.sanderson\\.windows-build-tools\\python27;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\Java\\jdk1.8.0_141\\bin;C:\\Program Files\\heroku\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Yarn\\bin;C:\\Users\\duncan.sanderson\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\nodejs;C:\\Program Files (x86)\\BrowserStackLocal;C:\\Users\\duncan.sanderson\\AppData\\Roaming\\npm;C:\\Users\\duncan.sanderson\\.deno\\bin;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PKG_CONFIG_PATH:"C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig",PKG_CONFIG_SYSTEM_INCLUDE_PATH:"C:/Program Files/Git/mingw64/include",PKG_CONFIG_SYSTEM_LIBRARY_PATH:"C:/Program Files/Git/mingw64/lib",PLINK_PROTOCOL:"ssh",POSTGIS_ENABLE_OUTDB_RASTERS:"1",POSTGIS_GDAL_ENABLED_DRIVERS:"GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 10, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0a",ProgramData:"C:\\ProgramData",PROGRAMFILES:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROJECT_CWD:"C:\\vsdev\\workspace\\vs-component-library",PROMPT:"$P$G",PSModulePath:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",PWD:"C:\\vsdev\\workspace\\vs-component-library",PYTHON:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\",SESSIONNAME:"Console",SHELL:"C:\\Program Files\\Git\\usr\\bin\\bash.exe",SHLVL:"1",SSH_AGENT_PID:"972",SSH_ASKPASS:"C:/Program Files/Git/mingw64/bin/git-askpass.exe",SSH_AUTH_SOCK:"C:/Users/DUNCAN~1.SAN/AppData/Local/Temp/ssh-zzwbzPFLwOHn/agent.971",SYSTEMDRIVE:"C:",SYSTEMROOT:"C:\\WINDOWS",TEMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TERM:"xterm-256color",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.96.2",TMP:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",TMPDIR:"C:\\Users\\DUNCAN~1.SAN\\AppData\\Local\\Temp",UATDATA:"C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77",USERDNSDOMAIN:"VSWEB.VISITSCOTLAND.NET",USERDOMAIN:"VSWEB",USERDOMAIN_ROAMINGPROFILE:"VSWEB",USERNAME:"duncan.sanderson",USERPROFILE:"C:\\Users\\duncan.sanderson",VOLTA_HOME:"C:/Users/duncan.sanderson/.volta",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",VSCODE_GIT_ASKPASS_MAIN:"c:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"C:\\Users\\duncan.sanderson\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-4a2d75133c-sock",VSDEVPATH:"C:\\vsdev",VSINFOPATH:"C:\\vsinfo",VSTOOLSPATH:"C:\\vstools",VS_ASE_ASE_URI:"C:/Program Files/Git/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"};n.formatArgs=a,n.save=s,n.load=i,n.useColors=r,n.storage=l(),n.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`."))}})(),n.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 r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let d;return 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&&(d=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(d[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)}n.log=console.debug||console.log||(()=>{});function s(d){try{d?n.storage.setItem("debug",d):n.storage.removeItem("debug")}catch{}}function i(){let d;try{d=n.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(n);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,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},e.exports=n.default})(PlayerStates,PlayerStates.exports);var PlayerStatesExports=PlayerStates.exports;(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t=PlayerStatesExports,r=a(t);function a(s){return s&&s.__esModule?s:{default:s}}n.default={pauseVideo:{acceptableStates:[r.default.ENDED,r.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[r.default.ENDED,r.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[r.default.ENDED,r.default.PLAYING,r.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},e.exports=n.default})(FunctionStateMap,FunctionStateMap.exports);var FunctionStateMapExports=FunctionStateMap.exports,eventNames={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],e.exports=n.default})(eventNames,eventNames.exports);var eventNamesExports=eventNames.exports,functionNames={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.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=n.default})(functionNames,functionNames.exports);var functionNamesExports=functionNames.exports;(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t=browserExports,r=f(t),a=FunctionStateMapExports,s=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,r.default)("youtube-player"),v={};v.proxyEvents=m=>{const g={};for(const b of l.default){const C="on"+b.slice(0,1).toUpperCase()+b.slice(1);g[C]=w=>{p('event "%s"',C,w),m.trigger(b,w)}}return g},v.promisifyPlayer=(m,g=!1)=>{const b={};for(const C of d.default)g&&s.default[C]?b[C]=(...w)=>m.then(E=>{const V=s.default[C],A=E.getPlayerState(),P=E[C].apply(E,w);return V.stateChangeRequired||Array.isArray(V.acceptableStates)&&!V.acceptableStates.includes(A)?new Promise(O=>{const I=()=>{const R=E.getPlayerState();let Z;typeof V.timeout=="number"&&(Z=setTimeout(()=>{E.removeEventListener("onStateChange",I),O()},V.timeout)),Array.isArray(V.acceptableStates)&&V.acceptableStates.includes(R)&&(E.removeEventListener("onStateChange",I),clearTimeout(Z),O())};E.addEventListener("onStateChange",I)}).then(()=>P):P}):b[C]=(...w)=>m.then(E=>E[C].apply(E,w));return b},n.default=v,e.exports=n.default})(YouTubePlayer,YouTubePlayer.exports);var YouTubePlayerExports=YouTubePlayer.exports,loadYouTubeIframeApi={exports:{}},loadScript=function e(n,t,r){var a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("script");typeof t=="function"&&(r=t,t={}),t=t||{},r=r||function(){},s.type=t.type||"text/javascript",s.charset=t.charset||"utf8",s.async="async"in t?!!t.async:!0,s.src=n,t.attrs&&setAttributes(s,t.attrs),t.text&&(s.text=""+t.text);var i="onload"in s?stdOnEnd:ieOnEnd;i(s,r),s.onload||stdOnEnd(s,r),a.appendChild(s)};function setAttributes(e,n){for(var t in n)e.setAttribute(t,n[t])}function stdOnEnd(e,n){e.onload=function(){this.onerror=this.onload=null,n(null,e)},e.onerror=function(){this.onerror=this.onload=null,n(new Error("Failed to load "+this.src),e)}}function ieOnEnd(e,n){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,n(null,e))}}(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t=loadScript,r=a(t);function a(s){return s.__esModule?s:{default:s}}n.default=s=>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,r.default)(d+"//www.youtube.com/iframe_api",f=>{f&&s.trigger("error",f)})}const c=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{c&&c(),l(window.YT)}}),e.exports=n.default})(loadYouTubeIframeApi,loadYouTubeIframeApi.exports);var loadYouTubeIframeApiExports=loadYouTubeIframeApi.exports;(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t=sister,r=c(t),a=YouTubePlayerExports,s=c(a),i=loadYouTubeIframeApiExports,l=c(i);function c(f){return f&&f.__esModule?f:{default:f}}let d;n.default=(f,p={},v=!1)=>{const m=(0,r.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=s.default.proxyEvents(m);const g=new Promise(C=>{typeof f=="object"&&f.playVideo instanceof Function?C(f):d.then(w=>{const E=new w.Player(f,p);return m.on("ready",()=>{C(E)}),null})}),b=s.default.promisifyPlayer(g,v);return b.on=m.on,b.off=m.off,b},e.exports=n.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 n={videoId:e};if(typeof this.playerVars.start=="number"&&(n.startSeconds=this.playerVars.start),typeof this.playerVars.end=="number"&&(n.endSeconds=this.playerVars.end),this.playerVars.autoplay===1){this.player.loadVideoById(n);return}this.player.cueVideoById(n)},resizeProportionally(){this.player.getIframe().then(e=>{const n=this.fitParent?e.parentElement.offsetWidth:e.offsetWidth,t=n/this.aspectRatio;this.player.setSize(n,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 n=0,t=0;this.player.getCurrentTime().then(r=>(n=r,this.player?this.player.getDuration():null)).then(r=>{t=r}).then(()=>{const r=n/t*100;this.createDataLayerObject("videoTrackingDataEvent",{title:this.videoTitle,status:e,percent:Math.round(r)})})},async getPlayerDetails(){this.player&&await this.player.getDuration().then(e=>{this.formatTime(e),this.storeVideoDetails()})},formatTime(e){const n=Math.floor(e/60),t=Math.round(e-n*60);this.duration.minutes=n,this.duration.seconds=t;const r=this.getRoundedMinutes(n,t);this.duration.roundedMinutes=this.formatSingularOrPlural(r)},getRoundedMinutes(e,n){return n<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,n,t,r,a,s){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:s.youtubePlaying,onPaused:s.youtubePaused,onEnded:s.youtubeEnded,onReady:s.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.VsBackToTop=_sfc_main$2a;exports.VsBadge=_sfc_main$29;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.VsItineraryBorderOverlapWrapper=ItineraryBorderOverlapWrapper;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;
|