(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{2916:function(e,t,n){"use strict";function o(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{}}n.d(t,"a",(function(){return l}));const r="function"==typeof Proxy;let s,i;function a(){return void 0===s&&("undefined"!=typeof window&&window.performance?(s=!0,i=window.performance):"undefined"!=typeof globalThis&&null!=(e=globalThis.perf_hooks)&&e.performance?(s=!0,i=globalThis.perf_hooks.performance):s=!1),(s?i:Date).now();var e}class c{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;var n={};if(e.settings)for(const t in e.settings){var o=e.settings[t];n[t]=o.defaultValue}const r="__vue-devtools-plugin-settings__"+e.id;let s=Object.assign({},n);try{var i=localStorage.getItem(r),c=JSON.parse(i);Object.assign(s,c)}catch(e){}this.fallbacks={getSettings:()=>s,setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(e){}s=e},now:()=>a()},t&&t.on("plugin:settings:set",(e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)}),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise(n=>{this.targetQueue.push({method:t,args:e,resolve:n})})})}async setRealTarget(e){this.target=e;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}function l(e,t){var n=e,s=o(),i=o().__VUE_DEVTOOLS_GLOBAL_HOOK__,a=r&&n.enableEarlyProxy;!i||!s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&a?(a=a?new c(n,i):null,(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:a}),a&&t(a.proxiedTarget)):i.emit("devtools-plugin:setup",e,t)}},2918:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"AB",(function(){return k})),n.d(t,"ComponentResolve",(function(){return T})),n.d(t,"LazyHydrate",(function(){return V})),n.d(t,"Noop",(function(){return P})),n.d(t,"RenderHtml",(function(){return x})),n.d(t,"SsrOnly",(function(){return D})),n.d(t,"components",(function(){return N})),n.d(t,"default",(function(){return M})),n(70),n(92),n(82),n(71),n(84),n(85);var o,r,s,i,a,c,l,u,d,h,p,f,m,v=n(2915),g=n(4),y=n(52),b=n.n(y),O=(y=n(18),n.n(y)),w={};
/*!
 * VUELAND - AbTool Tool
 * 2020 fjsilva <fjsilva@uolinc.com>
 */(y={get exports(){return w},set exports(e){w=e}}).exports=(s=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l={years:i=31536e6,months:a=2592e6,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1,weeks:6048e5},u=function(e){return e instanceof m},d=function(e,t,n){return new m(e,n,t.$l)},h=function(e){return r.p(e)+"s"},p=function(e){return e<0?Math.ceil(e):Math.floor(e)},f=function(e,t){return e?e<0?{negative:!0,format:""+Math.abs(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},m=function(){function e(e,t,n){var o=this;return this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t?d(e*l[h(t)],this):("number"==typeof e?(this.$ms=e,this.parseFromMilliseconds()):"object"==typeof e?(Object.keys(e).forEach((function(t){o.$d[h(t)]=e[t]})),this.calMilliseconds()):"string"==typeof e&&(n=e.match(c))&&(t=n.slice(2).map((function(e){return null!=e?Number(e):0})),this.$d.years=t[0],this.$d.months=t[1],this.$d.weeks=t[2],this.$d.days=t[3],this.$d.hours=t[4],this.$d.minutes=t[5],this.$d.seconds=t[6],this.calMilliseconds()),this)}var t=e.prototype;return t.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*l[n]}),0)},t.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=p(e/i),this.$d.months=p((e%=i)/a),this.$d.days=p((e%=a)/864e5),this.$d.hours=p((e%=864e5)/36e5),this.$d.minutes=p((e%=36e5)/6e4),this.$d.seconds=p((e%=6e4)/1e3),this.$d.milliseconds=e%=1e3},t.toISOString=function(){var e=f(this.$d.years,"Y"),t=f(this.$d.months,"M"),n=+this.$d.days||0,o=(n=(this.$d.weeks&&(n+=7*this.$d.weeks),f(n,"D")),f(this.$d.hours,"H")),r=f(this.$d.minutes,"M"),s=this.$d.seconds||0,i=(s=(this.$d.milliseconds&&(s+=this.$d.milliseconds/1e3),f(s,"S")),e.negative||t.negative||n.negative||o.negative||r.negative||s.negative),a=o.format||r.format||s.format?"T":"";return"P"==(i=(i?"-":"")+"P"+e.format+t.format+n.format+a+o.format+r.format+s.format)||"-P"==i?"P0D":i},t.toJSON=function(){return this.toISOString()},t.format=function(e){e=e||"YYYY-MM-DDTHH:mm:ss";var t={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return e.replace(s,(function(e,n){return n||String(t[e])}))},t.as=function(e){return this.$ms/l[h(e)]},t.get=function(e){var t=this.$ms;return"milliseconds"===(e=h(e))?t%=1e3:t="weeks"===e?p(t/l[e]):this.$d[e],0===t?0:t},t.add=function(e,t,n){return t=t?e*l[h(t)]:(u(e)?e:d(e,this)).$ms,d(this.$ms+t*(n?-1:1),this)},t.subtract=function(e,t){return this.add(e,t,!0)},t.locale=function(e){var t=this.clone();return t.$l=e,t},t.clone=function(){return d(this.$ms,this)},t.humanize=function(e){return o().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},e}(),function(e,t,n){r=(o=n)().$utils(),n.duration=function(e,t){var o=n.locale();return d(e,{$l:o},t)},n.isDuration=u;var s=t.prototype.add,i=t.prototype.subtract;t.prototype.add=function(e,t){return u(e)&&(e=e.asMilliseconds()),s.bind(this)(e,t)},t.prototype.subtract=function(e,t){return u(e)&&(e=e.asMilliseconds()),i.bind(this)(e,t)}}),y=w;O.a.extend(y);const $=n(47);class _ extends g.FrontEnvironmentTool{constructor(){super(...arguments),this.chosen="default"}mount(e){const t=["testName","endTime","domain","path","draw","tag","use","sample","pick","slots","data"];b()(!0,this,Object.keys(e).filter(e=>t.includes(e)).reduce((t,n)=>(t[n]=e[n],t),{}));var n=()=>{if(this.sample instanceof Function)try{this.sample(this.chosen)}catch(e){console.error(e)}};return this.isValidTime()?this.use?(this.chosen=this.use,n(),this.use):(this.checkCookieIntegrity(),this.chosen=this.getCandidate(),n(),this.chosen):"default"}isValidTime(){if((e=O()(this.endTime,"YYYY-MM-DD HH[:]mm")).isValid()){var e,t=(e=O.a.duration(e.diff(O()(new Date)))).asHours();if(this.expires=e.asDays(),0<=t)return!0;console.warn(`[VUELAND-AB] TestAB "${this.testName}" has expired!`)}else console.error(`Invalid test date: "${this.testName}"`);return(()=>{$.remove(this.cookieName)})(),!1}checkCookieIntegrity(){var{expires:e,domain:t,path:n}=this.parseCookieValue();(e&&e!==this.endTime||t&&t!==this.domain&&t!=this.data.domain||n&&n!=this.path&&n!=this.data.path)&&$.remove(this.cookieName)}getCandidate(){var e=this.parseCookieValue().value;return e&&this.slots.includes(e)?e:this.runPick()}get cookieName(){return"vueland-ab-"+this.testName}runPick(){var e=this.firePick(this.slots,this.draw);if(this.mountCookie(e),this.pick instanceof Function)try{this.pick(e)}catch(e){console.error(e)}return e}firePick(e,t={}){var n=e,o=[];let r=0;for(let e=0;e<n.length;e++){var s=n[e],i=t[s];i&&(o.push([s,r+i]),r+=i)}if(r){var a=Math.floor(Math.random()*r);for(let e=0;e<o.length;e++)if(o[e][1]>a)return o[e][0]}return n[Math.floor(Math.random()*n.length)]}mountCookie(e){var t=this.endTime;e=e+`|${this.domain||this.data.domain}|${this.path||this.data.path}|`+t,t={expires:this.expires?+this.expires:7};return this.path&&(t.path=this.path),$.set(this.cookieName,e,t),this.parseCookieValue()}parseCookieValue(){var e=$.get(this.cookieName),[t,n,o,r]=(e||"").split("|");return{value:t,domain:n,path:o,expires:r,raw:e}}}var S=Object.defineProperty,j=Object.getOwnPropertyDescriptor,E=(y=(e,t,n,o)=>{for(var r,s=1<o?void 0:o?j(t,n):t,i=e.length-1;0<=i;i--)(r=e[i])&&(s=(o?r(t,n,s):r(s))||s);return o&&s&&S(t,n,s),s},n(47),class extends g.ComponentBase{constructor(){super(...arguments),this.chosen="default",this.classes="ab-w"}async dispatch(e){var t=!(!this.domain||this.domain==this.tools.request.domain)||!(!this.path||this.path==this.tools.request.uri);e({domain:this.tools.request.domain,path:this.tools.request.uri,always:t?"default":void 0})}created(){}render(e){var t,n;return this.chosen?(n=this.use||this.data.always||this.always||this.chosen,(t=this.$slots[n])&&1==t.length&&t[0].tag?(t[0].children[0].componentOptions.propsData.stateAlias=this.testName+"-"+n+"-"+(new Date).getTime(),t[0].data={attrs:{class:this.use?"":this.classes}},t[0]):(t=0<(n=Object.keys(this.$slots)).length?n[0]:"default",n=this.$slots.default||this.$slots[t],e(this.tag,[n]))):e()}mounted(){this.chosen=(new _).mount({testName:this.testName,endTime:this.endTime,domain:this.domain||void 0,path:this.path||void 0,slots:Object.keys(this.$slots),draw:this.draw||null,sample:e=>{this.$emit("sample",e)},pick:e=>{this.$emit("pick",e)},data:this.data}),this.chosen&&this.use&&(this.chosen=this.use),(()=>{this.classes=""})()}});function C(e,t,n,o,r,s,i,a){var c,l,u="function"==typeof e?e.options:e;return t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),o&&(u.functional=!0),s&&(u._scopeId="data-v-"+s),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=c):r&&(c=a?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),c&&(u.functional?(u._injectStyles=c,l=u.render,u.render=function(e,t){return c.call(t),l(e,t)}):(t=u.beforeCreate,u.beforeCreate=t?[].concat(t,c):[c])),{exports:e,options:u}}y([Object(g.Prop)({type:String,default:()=>"div"})],E.prototype,"tag",2),y([Object(g.Prop)({type:Object})],E.prototype,"draw",2),y([Object(g.Prop)({type:String,default:()=>"vueland-ab-cookie"})],E.prototype,"testName",2),y([Object(g.Prop)({type:String,default:()=>null})],E.prototype,"domain",2),y([Object(g.Prop)({type:String,default:()=>null})],E.prototype,"path",2),y([Object(g.Prop)({type:String,default:()=>null})],E.prototype,"always",2),y([Object(g.Prop)({type:String,default:()=>null})],E.prototype,"use",2),y([Object(g.Prop)({type:String,default:()=>null})],E.prototype,"endTime",2),y([Object(g.Prop)({type:Function,default:()=>null})],E.prototype,"sample",2),y([Object(g.Prop)({type:Function,default:()=>null})],E.prototype,"pick",2);const k=C(E=y([Object(g.Component)({name:"AB"})],E),null,null,!1,null,null,null,null).exports;Object.defineProperty,Object.getOwnPropertyDescriptor,y=class extends g.ComponentBase{constructor(){super(...arguments),this.version="Noop"}getAliasSchemaFromConfig(){var e=this.config||{},t=e.components||{},n=e.multipleVersions||{},o={};for(const e of Object.keys(n))for(const t of n[e])o[t]=e;for(const e of Object.keys(t)){var r=t[e].version;r&&(o[e]=r)}return o}created(){var e=this.getAliasSchemaFromConfig(),t=this.$options,n=(e=e[t.componentToResolve]||"default",t.versionSchema[e]);n||(e=`[resolver-error] Version (${e}) of component (${t.componentToResolve}) does not exist but has been defined in config`,"undefined"==typeof window?this.tools.log.error(new Error(e)):console.error(e)),this.version=n||"Noop"}};const T=C(((e,t,n,o)=>{for(var r,s=t,i=e.length-1;0<=i;i--)(r=e[i])&&(s=r(s)||s);return s})([Object(g.Component)({name:"ComponentResolve"})],y),(function(){var e=this._self._c;return this._self._setupProxy,e(this.version,{tag:"component"})}),[],!1,null,null,null,null).exports;Object.defineProperty,Object.getOwnPropertyDescriptor,E=class extends g.ComponentBase{};const P=C(((e,t,n,o)=>{for(var r,s=t,i=e.length-1;0<=i;i--)(r=e[i])&&(s=r(s)||s);return s})([Object(g.Component)({name:"Noop"})],E),(function(){var e=this._self._c;return this._self._setupProxy,e("div")}),[],!1,null,null,null,null).exports;var A=Object.defineProperty,I=Object.getOwnPropertyDescriptor;y=(e,t,n,o)=>{for(var r,s=1<o?void 0:o?I(t,n):t,i=e.length-1;0<=i;i--)(r=e[i])&&(s=(o?r(t,n,s):r(s))||s);return o&&s&&A(t,n,s),s};(E=class extends g.ComponentBase{}).ssrOnly=!0,y([Object(g.Prop)()],E.prototype,"content",2),y([Object(g.Prop)({default:()=>!1})],E.prototype,"inline",2);const x=C(y([Object(g.Component)({name:"RenderHtml"})],E),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t(!1!==e.inline?"span":"div",{tag:"component",domProps:{innerHTML:e._s(e.content)}})}),[],!1,null,null,null,null).exports;Object.defineProperty,Object.getOwnPropertyDescriptor;(y=class extends g.ComponentBase{render(e){return e("div",{attrs:{ssrOnly:""}},null==(e=this.$slots.default)?void 0:e.slice(0,1))}}).ssrOnly=!0;const D=C(((e,t,n,o)=>{for(var r,s=t,i=e.length-1;0<=i;i--)(r=e[i])&&(s=r(s)||s);return s})([Object(g.Component)({name:"SsrOnly"})],y),null,null,!1,null,null,null,null).exports,N=Object.freeze(Object.defineProperty({__proto__:null,AB:k,ComponentResolve:T,Noop:P,RenderHtml:x,SsrOnly:D},Symbol.toStringTag,{value:"Module"})),M={_installed:!1,install(e){if(!this._installed){this._installed=!0;for(const t in N)e.component(t,N[t])}}};let R=null;"undefined"!=typeof window?R=window.Vue:void 0!==e&&(R=e.Vue),R&&R.use(M);const V=v.a.default||v.a}.call(this,n(63))},3065:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s})),n(70),n(71),n(84),n(82),n(85),n(2921),n(2922),n(2923),n(2924),n(2925),n(2926),n(2927);var o=n(0);t=n(21);const r="width: 0; height: 0; overflow: hidden",s=Object(t.defineStore)("svgRegistry",()=>{let e;const t=Object(o.ref)(0),n=new Map,s=Object(o.reactive)({});function i({lib:e,name:t},n=!0){var o;null!=(o=null==s?void 0:s[e])&&o[t]||(s[e]=s[e]||{},s[e][t]=n)}function a(){return n.size?Object.entries(s).map(([e,t])=>e+":"+Object.entries(t).reduce((e,[t,n])=>(n||e.push(t),e),[]).sort().join(",")).filter(e=>!e.endsWith(":")).join(":::"):""}return"undefined"!=typeof window&&setTimeout(()=>{var e=document.getElementById("svg-registry");if(e)for(const o of Array.from(e.children)){var[t,...n]=null==(t=o.id)?void 0:t.split(/-/);i({lib:t,name:n.join("-")},!0)}},100),{size:t,list:s,registerSvg:function(o){var c;n.set(o.lib+":"+o.name,o),t.value=n.size,"undefined"==typeof window?i(o,!1):(i(o,c=!!document.getElementById(o.lib+"-"+o.name)),c||(clearTimeout(e),e=setTimeout(()=>{var e;e=assetsBaseUrl+"?loadComponent=Media&contentType=json&loadSvgs="+a(),fetch(e).then(e=>e.json()).then(e=>{let t=document.getElementById("svg-registry");t||((t=document.createElement("svg")).setAttribute("id","svg-registry"),t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("style",r),document.body.appendChild(t));for(const n of e)s[n.lib][n.name]||(t.innerHTML+=n.data||"",i(n))}).catch(e=>console.error(e))},400)))},getSvgSymbols:function(e=!1){if(n.size){var t=Array.from(n.values());for(const e in t)i(t[e]),t[e].data=function({lib:e,name:t,data:n}){var o;const r=null==(o=n.match(/viewBox=["'](.*?)["']/i))?void 0:o[1];return n.replace(/<\/svg>/,"</symbol>").replace(/<svg.*?>/,n=>n.replace(/^<svg.*?>/,`<symbol id="${e}-${t}" viewBox="${r}">`)).replace(/\s+/," ")}(t[e]);return e?`<svg id="svg-registry" xmlns="http://www.w3.org/2000/svg" style="${r}">${t.map(({data:e})=>e).join("")}</svg>`:t}return!1},getNotLoadedSvgRefs:a,explodeSvgRefs:function(e){return e.split(":::").reduce((e,t)=>{var[t,n]=t.split(":");return e[t]=n.split(","),e},{})}}});function i(e){if(e.length){var t={};for(const n of e)n.lib&&n.name&&(t[n.lib]=t[n.lib]||new Set,t[n.lib].add(n.name));return Object.entries(t).map(([e,t])=>e+":"+[...t].sort().join(",")).join(":::")}return""}(function(e,t,n,o,r,s,i,a){var c,l,u="function"==typeof e?e.options:e;return t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),o&&(u.functional=!0),s&&(u._scopeId="data-v-"+s),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=c):r&&(c=a?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),c&&(u.functional?(u._injectStyles=c,l=u.render,u.render=function(e,t){return c.call(t),l(e,t)}):(t=u.beforeCreate,u.beforeCreate=t?[].concat(t,c):[c])),{exports:e,options:u}})(Object(o.defineComponent)({__name:"VueSvgRegistry",setup(e){const t=s(),n=Object(o.ref)("");return Object(o.onBeforeMount)(()=>{var e;t.size&&(e=t.getSvgSymbols(),Array.isArray(e))&&(n.value=e.join(""))}),{__sfc:!0,store:t,svgs:n,registryStyles:r}}}),(function(){var e=this._self._c,t=this._self._setupProxy;return e("svg",{style:t.registryStyles,attrs:{id:"svg-registry",xmlns:"http://www.w3.org/2000/svg"},domProps:{innerHTML:this._s(t.svgs)}})}),[],!1,null,null,null,null).exports},3096:function(e,t,n){"use strict";n.r(t),n(70),n(92),n(71);var o=n(0),r=n.n(o),s=n(21),i=n(4),a=n(62),c=n(2968),l=n(2970),u=n(2918),d=n(2969);r.a.config.ignoredElements=["ignore","media-content"],r.a.config.silent=!0,r.a.use(s.PiniaVuePlugin),r.a.use(i.VueDI),r.a.use(i.CoreTools),r.a.directive("mounted",{inserted:function(e,t){t.value()}}),r.a.directive("started",{bind:function(e,t){t.value()}}),/debug=true/.test(window.location.search)&&new PerformanceObserver(e=>e.getEntries().forEach(e=>console.log("VUELAND: longtask",e.toJSON()))).observe({entryTypes:["longtask"]}),window.history.scrollRestoration="auto";const h=new Map,p=new ResizeObserver((e,t)=>{for(const r of e){var n=r.target;h.set(n.dataset.rid,{target:n,isInViewport:(o=r.contentRect).top>=-o.height&&o.left>=-o.width&&o.right<=(window.innerWidth||document.documentElement.clientWidth)+o.width&&o.bottom<=(window.innerHeight||document.documentElement.clientHeight)+o.height,height:r.contentRect.height}),t.unobserve(n)}var o});Array.from(document.querySelectorAll("[data-rid]")).forEach(e=>p.observe(e)),Object.defineProperty(r.a.prototype,"$renderInfo",{get:()=>h});let f=!1;t=async()=>{if(!0!==f&&!0!==/debugDisableApp=true/.test(window.location.search)){f=!0;const[e]=window.renderStack||[],t=d.a[null==e?void 0:e.component];if(!e||null==e||!e.component||!t)throw new Error("Could not identify input component in window.renderStack");new Promise(e=>window.requestAnimationFrame(()=>{performance.mark("uol-vueland-vue-app-store:start");var t=JSON.parse(document.getElementById("VUELAND_STATE").textContent),n=JSON.parse(document.getElementById("VUELAND_CORE_STATE").textContent),o=Object(s.createPinia)();o.state.value={...Object.entries(t).reduce((e,[t,n])=>(e[t]={...n,$ssr:!0},e),{}),"core:general":{...n.general,$ssr:!0},"core:config":{$ssr:!0},"core:request":{$ssr:!0}},Object(i.useConfigStore)(o).setData(n.config),Object(i.useRequestStore)(o).setData(n.request),performance.measure("uol-vueland-vue-app-store","uol-vueland-vue-app-store:start"),e({pinia:o})})).then(async({pinia:s})=>{let d;performance.mark("uol-vueland-vue-app-init:start"),d=(d=t.global?await Promise.resolve().then(n.bind(null,4))[e.component]:(await n(3056)(`./${e.component}/${e.component.replace(/(?!^)([A-Z]+)/g,"-$1").toLowerCase()}.js`)).default).extend({beforeMount(){this.$nextTick(()=>{(window.__async_resources||[]).forEach(e=>this.loadEmbedScript(e.attrs))})}}),delete e.__initiator__;try{window.__vuelandAppConfigRuntime__=null==(m=s.state.value["core:config"])?void 0:m.state}catch(s){console.error(s)}r.a.use(a.default,{defaults:{graphProject:"jupiter"},config:(null==(m=null==(m=s.state.value["core:config"])?void 0:m.state)?void 0:m.metrics)||{}});const h=Object(c.a)(d.options.name,s),p=(h&&r.a.use(l.a),{ab:new i.AbTool}),f=Object(i.createDIContainer)(s,p);s.use(({store:e})=>{e.$tools=Object(o.markRaw)(p),e.$vueDI=Object(o.markRaw)(f),h&&(e.$router=Object(o.markRaw)(h))}),new r.a({pinia:s,vueDI:f,tools:p,...h&&{router:h},components:{[e.component]:d,...u.components},render:t=>t(d,{props:e})}).$mount("[data-server-rendered]"),performance.measure("uol-vueland-vue-app-init","uol-vueland-vue-app-init:start");var m=()=>{document.dispatchEvent(new CustomEvent("hydration:appReady")),window.dispatchEvent(new CustomEvent("scroll"))};window.requestIdleCallback?window.requestIdleCallback(m,{timeout:500}):setTimeout(m,1e3/60)})}},window.addEventListener("DOMContentLoaded",t),window.addEventListener("pageshow",t,{once:!0})},4:function(e,t,n){"use strict";n.r(t),n.d(t,"AbTool",(function(){return xe})),n.d(t,"BackEnvironment",(function(){return ce})),n.d(t,"BackEnvironmentApi",(function(){return fe})),n.d(t,"BackEnvironmentTool",(function(){return de})),n.d(t,"BrandTheme",(function(){return ye})),n.d(t,"Component",(function(){return i.a})),n.d(t,"ComponentBase",(function(){return oe})),n.d(t,"CoreTools",(function(){return ve})),n.d(t,"DepInject",(function(){return Ce})),n.d(t,"Emit",(function(){return i.b})),n.d(t,"Environment",(function(){return ie})),n.d(t,"EventBus",(function(){return Re})),n.d(t,"EventEmitter",(function(){return C})),n.d(t,"FrontEnvironment",(function(){return ae})),n.d(t,"FrontEnvironmentApi",(function(){return pe})),n.d(t,"FrontEnvironmentTool",(function(){return ue})),n.d(t,"Inject",(function(){return _e})),n.d(t,"InjectReactive",(function(){return i.d})),n.d(t,"MixedEnvironment",(function(){return le})),n.d(t,"MixedEnvironmentApi",(function(){return me})),n.d(t,"MixedEnvironmentTool",(function(){return he})),n.d(t,"Mixins",(function(){return i.e})),n.d(t,"Model",(function(){return i.f})),n.d(t,"ModelSync",(function(){return i.g})),n.d(t,"Prop",(function(){return i.h})),n.d(t,"PropSync",(function(){return i.i})),n.d(t,"Provide",(function(){return i.j})),n.d(t,"ProvideReactive",(function(){return i.k})),n.d(t,"Ref",(function(){return i.l})),n.d(t,"RequestFormat",(function(){return q})),n.d(t,"RequestProtocol",(function(){return Y})),n.d(t,"ServerCache",(function(){return Oe})),n.d(t,"Tools",(function(){return se})),n.d(t,"VModel",(function(){return i.m})),n.d(t,"Vue",(function(){return i.n})),n.d(t,"VueDI",(function(){return je})),n.d(t,"VueInject",(function(){return i.c})),n.d(t,"Watch",(function(){return i.o})),n.d(t,"buildServerCacheKey",(function(){return A})),n.d(t,"createDIContainer",(function(){return Se})),n.d(t,"debug",(function(){return U})),n.d(t,"debugEnabled",(function(){return V})),n.d(t,"deepFreeze",(function(){return D})),n.d(t,"getDebugger",(function(){return L})),n.d(t,"isDev",(function(){return E})),n.d(t,"isServerRendering",(function(){return j})),n.d(t,"makeCache",(function(){return I})),n.d(t,"normalizeComponent",(function(){return Ee})),n.d(t,"objectToParams",(function(){return M})),n.d(t,"once",(function(){return x})),n.d(t,"removeDisposables",(function(){return B})),n.d(t,"retryFactory",(function(){return N})),n.d(t,"sort",(function(){return T})),n.d(t,"useComponentState",(function(){return be})),n.d(t,"useConfigStore",(function(){return H})),n.d(t,"useControlStore",(function(){return W})),n.d(t,"useDisposable",(function(){return F})),n.d(t,"useGeneralStore",(function(){return z})),n.d(t,"useRequestStore",(function(){return J})),n(70),n(71),n(84),n(82),n(85),n(2921),n(2922),n(2923),n(2924),n(2925),n(2926),n(2927),n(92),n(2973);t=n(2880);
/*!
 * VUELAND - Styled Component Fragment Factory
 * 2020 Fagner Janderson <fjsilva@uolinc.com>
 */var o=n.n(t),r=(t=n(14),n(0)),s=n.n(r),i=n(22),a=n(2912),c=n(2881),l=n.n(c),u=n(55),d=n(25),h=n(2961),p=n(2962),f=n(100),m=n(75),v=n(33),g=(c=n(52),n.n(c));c=n(21);const y={},b={styled:{},tokens:[]};function O(e,t){let n=[];return Object(a.a)(e,b)`${e=>{{var o=e.styled||{};e=e.tokens||[];let r="",s=[];return Array.isArray(t)&&(s=s.concat(t)),Array.isArray(e)&&(s=s.concat(e)),s=[...new Set(s)],(n=s.filter(e=>Object.keys(y).includes(e))).forEach(e=>r+=y[e]+";"),0<Object.keys(o).length&&(r+=Object.keys(o).map(e=>e+": "+o[e]).join(";")+";"),r}}}`}const w=e=>{var t;return{shouldRetryOnError:0<(null!=(t=e.errorRetryCount)?t:3),errorRetryCount:null!=(t=e.errorRetryCount)?t:3,errorRetryInterval:e.errorRetryInterval||3e3,cacheTTL:e.cacheTTL||0,deduping:e.deduping}},$=new Map,_=async(e,t,n={},o)=>{const r={...n=w(n),body:o},s=t+"_"+e,{cacheTTL:i,deduping:a,errorRetryCount:c,errorRetryInterval:g}=n;let y=(a&&$.get(s)||{}).fetcher$;if(!y){let n;y=Object(u.a)(()=>Object(d.a)((async(e,t,n)=>(e=[e],["get","delete"].includes(t)||e.push(n.body),l.a[t].apply(l.a[t],e).then(({data:e})=>e)))(e,t,r))).pipe(Object(h.a)({count:c,delay:g,resetOnSuccess:!0})).pipe(Object(p.a)(()=>{clearTimeout(n),n=setTimeout(()=>{$.delete(s)},i)})).pipe(Object(f.a)({connector:()=>new m.a(1,i),resetOnComplete:()=>Object(v.a)(i),resetOnRefCountZero:()=>Object(v.a)(i)})),a&&$.set(s,{fetcher$:y})}return new Promise((e,t)=>{y.subscribe({next:e,error:t})})};var S={install:function(e){e.loadScript=e.prototype.$loadScript=function(e,t=!1){return"undefined"==typeof window?Promise.reject(new Error('Calling "loadScript" from incorrect environment. Use it only on front-end.')):new Promise((function(n,o){var{tag:r,attr:s}=/\.css\b/.test(e)?{tag:"link",attr:"href"}:{tag:"script",attr:"src"},i="link"===r?{rel:"stylesheet",href:e}:{type:"text/javascript",async:"",src:e};let a=!1,c=document.querySelector(r+`[${s}="${e}"]`);if(!c||t)c=document.createElement(r),Object.entries(i).forEach(([e,t])=>{null!=c&&c.setAttribute(e,t)}),a=!0;else if(c.hasAttribute("data-loaded"))return void n(c);c.addEventListener("error",o),c.addEventListener("abort",o),c.addEventListener("load",(function(){null!=c&&c.setAttribute("data-loaded",""),n(c)})),a&&document.head.appendChild(c)}))},e.unloadScript=e.prototype.$unloadScript=function(e){return"undefined"==typeof window?Promise.reject(new Error('Calling "unloadScript" from incorrect environment. Use it only on front-end.')):new Promise((function(t,n){var o,{tag:o,attr:r}=/\.css\b/.test(e)?{tag:"link",attr:"href"}:{tag:"script",attr:"src"};((o=document.querySelector(o+`[${r}="${e}"]`))?(document.head.removeChild(o),t):n)()}))}}};const j="undefined"==typeof window,E=!1;class C{constructor(){this.events={}}on(e,t){return"object"!=typeof this.events[e]&&(this.events[e]=[]),this.events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){"object"==typeof this.events[e]&&-1<(t=this.events[e].indexOf(t))&&this.events[e].splice(t,1)}removeAllListeners(){Object.keys(this.events).forEach(e=>this.events[e].splice(0,this.events[e].length))}emit(e,...t){"object"==typeof this.events[e]&&[...this.events[e]].forEach(e=>e.apply(this,t))}once(e,t){const n=this.on(e,(...e)=>{n(),t.apply(this,e)});return n}}const k=(e,t)=>e.localeCompare(t),T=(e,t)=>{let n;return Array.isArray(e)?e.map((function(e){return T(e,t)})):"[object Object]"===Object.prototype.toString.call(e)?(n={},Object.keys(e).sort(t||k).forEach((function(o){n[o]=T(e[o],t)})),n):e},P=(e,t=new WeakMap)=>{if(null==e)return"";if(t.has(e))return"[Circular]";e.name&&e.lib&&e.data&&/\<svg/.test(e.data)&&delete e.data,"[object Object]"!==Object.prototype.toString.call(e)&&!Array.isArray(e)||t.set(e,!0);let n="";for(var o in e){var r;e.hasOwnProperty(o)&&(n+="object"==typeof(r=e[o])?o+":"+P(r,t)+",":o+":"+r+",")}return 0<n.length&&(n=n.slice(0,-1)),t.delete(e),"{"+n+"}"},A=(e,t)=>o()(P(T(e)))+"{**::**}"+(t&&Array.isArray(t)?t.join("|"):"");function I(e,...t){let n;return function(){return n=e.apply(this,t)}}function x(e,t){let n;return function(...o){return e&&(n=e.apply(t||this,o),e=null),n}}function D(e){for(const n of Reflect.ownKeys(e)){var t=e[n];(t&&"object"==typeof t||"function"==typeof t)&&D(t)}return Object.freeze(e)}function N(e,t){const n=Object.assign({delay:100,maxAttempts:100,immediate:!1},t);let o=0;function r(){try{e.call(e)}catch(e){if(++o>n.maxAttempts)throw new Error(`Max of ${n.maxAttempts} attempts number reached!`);setTimeout(r,n.delay)}}return n.immediate&&r(),r}function M(e){const t=[],n=(e,n)=>t.push(encodeURIComponent(e)+"="+encodeURIComponent(n));for(const t in e){var o;Object.prototype.hasOwnProperty.call(e,t)&&(o=e[t],Array.isArray(o)?o.forEach(e=>n(t,e)):n(t,o))}return t.join("&")}const R=[`%c[${ee="Vueland"}]`,"background: #2b3f52; color: #3dd68c"],V="undefined"!=typeof window&&localStorage.getItem(ee+"::debug");function L(e,t){return!j&&window.console&&console.log&&V?Function.prototype.bind.apply(console.log,[console,...(n=[].slice.call(arguments),o=[...R],0<n.length&&"string"==typeof n[0]&&(o[0]+="%c "+n.shift(),o.push(n[0]||"color:rgb(41, 114, 230)")),o)]):()=>{};var n,o}const U=L();function B(e){var t;for(const[n,o]of Object.entries(e))["$tools"].concat((null==o?void 0:o.$disposable)||[]).forEach(e=>{!function e(t,n){var o,r;t.includes(".")?([o,r]=t.split(/\.(.*)/),"object"==typeof n[o]&&e(r,n[o])):delete n[t]}(e,o)}),null!=(t=e[n])&&delete t.$disposable}function F(e,t){var n=Object(r.ref)(t);return j||t.map(t=>{"string"!=typeof t||t.includes(".")||delete e[t]}),j?{...e,$disposable:n}:e}const H=Object(c.defineStore)("core:config",()=>{const e=Object(r.ref)({extend:[]});return F({state:e,setData:x(t=>{e.value=t})},["state.system.corepath","state.metrics.ga","state.metatags","state.vueland","state.extend","state.scripts","state.rm_require","state.__eligible_config__","state.resourceMap"])});var Y=(e=>(e.HTTP="http",e.HTTPS="https",e))(Y||{}),q=(e=>(e.NORMAL="NORMAL",e.PREVIEW="PREVIEW",e.AMP="AMP",e.APP="APP",e))(q||{});const J=Object(c.defineStore)("core:request",()=>{const e=Object(r.ref)({id:"",domain:"",link:"",uri:"",entrypoint:"",protocol:"https",format:"NORMAL",userAgent:"",data:{},uolAB:{},params:{},headers:{},fromHome:!1,isMonacoPreview:!1,isPreview:!1,isAccessRestrict:!1,isRedirect:!1,isWeb:!1,isBlog:!1,legacy:!1});return F({state:e,setData:x(t=>{e.value=t}),$helpers:{getParams:function(t){var n;return"string"==typeof t&&t?null==(n=null==(n=e.value)?void 0:n.params)?void 0:n[t]:null==(n=e.value)?void 0:n.params},getDomain:()=>{var t;return null==(t=e.value)?void 0:t.domain},getLink:()=>{var t;return null==(t=e.value)?void 0:t.link},getUri:()=>{var t;return null==(t=e.value)?void 0:t.uri},getProtocol:()=>{var t;return null==(t=e.value)?void 0:t.protocol},getFormat:()=>{var t;return null==(t=e.value)?void 0:t.format},getHeaders:()=>{var t;return null==(t=e.value)?void 0:t.headers},getAB:()=>{var t;return null==(t=e.value)?void 0:t.uolAB},isCMSPreview:()=>{var t;return null==(t=e.value)?void 0:t.isMonacoPreview},isRedirect:()=>{var t;return null==(t=e.value)?void 0:t.isRedirect},isBlog:()=>{var t;return null==(t=e.value)?void 0:t.isBlog},isDesktop:()=>{var t;return null==(t=e.value)?void 0:t.isWeb},isMobile:()=>{var t;return!(null!=(t=e.value)&&t.isWeb)}}},["state.id","state.data","state.headers"])}),W=Object(c.defineStore)("core:control",()=>{const e=J().$tools,t=Object(r.ref)([]),n=Object(r.ref)([]),o=Object(r.ref)([]);if(j)return{stores:t,addStore:function(e){!n.value.includes(e.$id)&&e.wrappedDispatch&&(n.value.push(e.$id),t.value.push(e))},initStores:async function(){var e;t.value.length&&(e=[...t.value].map(e=>e.wrappedDispatch()),t.value=[],await Promise.all(e))},cacheStores:o,addToCacheStoreList:function(e,t,n=60){for(const r of e){const e="string"==typeof r?r:r.$id;o.value.findIndex(t=>t.id===e)<0&&o.value.push({id:e,key:t||"",ttl:n})}},cacheStoreList:function(t){var n;if(null!=(n=o.value)&&n.length)for(const n of o.value)t[n.id]&&e.cache.set(s([n.id,n.key]),t[n.id],n.ttl)},getStoresFromCache:async function(){var t,n={};if(null!=(t=o.value)&&t.length)for(const t of o.value){var r=await e.cache.get(s([t.id,t.key]));r&&(n[t.id]=r)}return n}};throw new Error("Control Store should be used only on server side!");function s(e){return["state"].concat(e).join("::")}}),z=Object(c.defineStore)("core:general",()=>{const e=Object(r.ref)({}),t=Object(r.ref)({}),n=Object(r.ref)();function o(e){return!!t.value[e]}return F({data:n,components:e,state:t,setData:function({book:e,key:n,value:o}){var r=t.value[e]||{};t.value=Object.assign({},t.value,{[e]:{...r,[n]:o}})},getData:function(e,n){return n?o(e)?t.value[e][n]:void 0:t.value[e]},hasBook:o,setDispatchData:function({id:t,item:n}){e.value={...e.value,[t]:n}},setMainData:function(e){n.value||(n.value=e)},injectService:function(e){return z().$vueDI.resolveInstance(e)}},["data","setMainData"])});function X(e,t={}){var n,o;if(e)return({getData:n,hasBook:o}=z(this.$pinia)),o(e)?n(e,t.prop):(console.trace(`Book "${e}" is invalid when getting state`),!1);console.trace("A book name is required when getting the state")}function G(e,t,n){e||console.trace("A book name is required when setting the state"),t||console.trace("A key is needed to define a state"),e&&t&&(0,z(this.$pinia).setData)({book:e,key:t,value:n})}function K(){return J(this.$pinia).$helpers}function Q(){return H(this.$pinia).state}function Z(){if(j)return z(this.$pinia).data;throw new Error("This method only works in server environment.")}var ee={computed:{...Object(c.mapState)(H,{config:"state"})},methods:{getId:function(){return this.stateIdHash?this.$options.name+"::"+this.stateIdHash:this.stateId||!1},setComponentState:function(e,t={override:!1}){t.id||(t.id=this.getId());var{setDispatchData:n,components:o}=z(this.$pinia),r=(o[t.id]||this.tools.log.error({component:this.$options.name,error:new Error(`Component: ${this.$options.name} / Invalid state ID (${t.id}). The available states are: "${Object.keys(o).join(", ")}"`)}),this.getComponentState(t.id).instance);if(e=t.override?e:g()(!0,o[t.id],e),n({id:t.id,item:e}),(o=r)&&o.onStateUpdate instanceof Function)try{o.onStateUpdate()}catch(e){}},getComponentState:function(e){e=e||this.getId();var t=z(this.$pinia).components,n=t[e];return n||this.tools.log.error({component:this.$options.name,error:new Error(`Component: ${this.$options.name} / Invalid state ID (${e}). The available states are: "${Object.keys(t).join(", ")}"`)}),n},getState:X,setState:G,getRequest:K,getConfig:Q,getPageData:Z}};Object.defineProperty,Object.getOwnPropertyDescriptor;async function te(e={},t){const n=Object.assign({withVersion:!0,deduping:!0,shouldRetryOnError:!0,errorRetryCount:3},t),o=null==(r=null==(t=this.config||{})?void 0:t.system)?void 0:r.assetsBaseUrl;var r=J(this.$pinia).state;const s={...e,configPath:t.loadedConfig.replace(/\.json$/,""),forcedFormat:r.format,forcedUserAgent:r["user-agent"],forcedDomain:r.domain,...n.withVersion?{v:t.system.app_version}:{}};return new Promise((e,t)=>{this.fetch.get(o+"?"+M(s),function(e,t){var n={};for(const t of["deduping","shouldRetryOnError","errorRetryCount"])t in e&&(n[t]=e[t]);return n}(n)).then(t=>{if(n.useLegacyApi)return e({data:t});e(t)}).catch(o=>{if(n.useLegacyApi)return e({error:o});t(o)})})}s.a.use(S),S=class extends s.a{},S=((e,t,n,o)=>{for(var r,s=t,i=e.length-1;0<=i;i--)(r=e[i])&&(s=r(s)||s);return s})([Object(i.a)({data(){var e=this.getId(),t=z(this.$pinia);return e?{data:t.components[e]}:{}},computed:ee.computed,methods:{...ee.methods,getComponent(e,t,n){return te.call(this,{loadComponent:e,data:JSON.stringify(t),api:!0},{...n,useLegacyApi:!0})},getFetchApi(e,t,n){return te.call(this,{loadFetchApi:e,...t||{}},n)},checkAndLoadStyle(){var e=this.config,t=this.$options.name.replace(/(?!^)([A-Z]+)/g,"-$1").toLowerCase(),{css:e}=e.system.media,{all:n,hash:o,inline:r}=window.__cssComponents__||{all:[],hash:new Map,inline:new Set};!(n||[]).includes(t)||r.has(this.$options.name)||document.querySelector(`link[v-style-load-after=${t}]`)||this.createLink(e+`/styles/${t}.css`,{name:t,hash:o})},createLink(e,{name:t,hash:n}={}){n&&(e+="&v="+n),(n=document.createElement("link")).setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),n.setAttribute("href",e),t&&n.setAttribute("v-style-load-after",t),document.getElementsByTagName("head")[0].appendChild(n)},loadEmbedScript(e){var t=document.getElementsByTagName("head")[0];const n=document.createElement("script");n.type="text/javascript",e.forEach(e=>n.setAttribute(e.key,e.value)),t.appendChild(n)}},beforeMount(){this.checkAndLoadStyle()},async beforeCreate(){if(this.$options.methods.resolve instanceof Function){var e,t=this.$options.methods.resolve(),n=(()=>{var e=this.config||{},t=e.components||{},n=e.multipleVersions||{},o={};for(const e of Object.keys(n))for(const t of n[e])o[t]=e;for(const e of Object.keys(t)){var r=t[e].version;r&&(o[e]=r)}return o})()||{};for(const o of Object.keys(n))t[o]&&(t[o][n[o]]||t[o].default)&&(e=t[o][n[o]]||t[o].default,this.$options.components[e])&&(this.$options.components[o]=this.$options.components[e])}if(this.$options.methods.styled instanceof Function){var o,r=this.$options.methods.styled();for(const e in r)r[e].as&&!this.$options.components[e]&&(o=O(r[e].as,r[e].tokens||[]),this.$options.components[e]=o)}this.fetch={get:(e,t={})=>_(e,"get",t),post:(e,t,n={})=>_(e,"post",n,t),put:(e,t,n={})=>_(e,"put",n,t),delete:(e,t={})=>_(e,"delete",t)}},async created(){var e=z(this.$pinia),t=(n=this._computedWatchers?Object.keys(this._computedWatchers).filter(e=>e.endsWith("Store")):[]).reduce((e,t)=>(this[t].$id&&(e[this[t].$id]=t),e),{});if(this.getId()&&!e.components[this.getId()]||n.some(e=>this[e].$id&&!this[e].$state.$ssr)&&"JupiterHeadline"!==this.$options.name){var n=this.getId();let c=(o=null==(o=null==(o=null==(o=null==(i=this.config)?void 0:i.system)?void 0:o.media)?void 0:o.js)?void 0:o.replace(/https?:\/\/|^\/\//,"https://").match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i))&&o[1];if(void 0!==Object({NODE_ENV:"production",VUE_ENV:"client"}).STORYBOOK_RUN_MODE&&c&&/^localhost/.test(c)&&(c+=":9898"),void 0===Object({NODE_ENV:"production",VUE_ENV:"client"}).STORYBOOK_RUN_MODE&&void 0===Object({NODE_ENV:"production",VUE_ENV:"client"}).TEST)if(c){this.$emit("getting-state-started");var o=J(this.$pinia).state,r=void 0!==Object({NODE_ENV:"production",VUE_ENV:"client"}).STORYBOOK_RUN_MODE?`//${c}/assets/`:null==(r=null==i?void 0:i.system)?void 0:r.assetsBaseUrl,i={getState:!0,loadComponent:this.$options.name,data:JSON.stringify(Object.keys(this.$options.propsData).reduce((e,t)=>(e[t]=this.$options.propsData[t],e),{})),configPath:i.loadedConfig.replace(/\.json$/,""),forcedFormat:o.format,forcedUserAgent:o["user-agent"],forcedDomain:o.domain},{data:a,error:o}=await this.fetch.get(r+"?"+M(i));if(o)console.error(`Could not get state for component with stateID: "${n}" during rendering on the client`),console.error(o),this.$emit("getting-state-finished");else{e.$patch(a.state.general),a.state.general.components[n]&&s.a.set(this,"data",e.components[n]);for(const e in a.state)"general"!==e&&this[t[e]].$patch(a.state[e]);this.$emit("getting-state-finished"),this.$nextTick(()=>this.$forceUpdate())}}else console.error('It was not possible to obtain the status of the component "'+this.$options.name+'" because it was not possible to identify the obtaining hostname.The hostname is defined in "config.system.media.js". Please check that the hostname is valid.')}}})],S);Object.defineProperty,Object.getOwnPropertyDescriptor
/*!
 * VUELAND - Component Interface
 * 2020 Fagner Janderson <fjsilva@uolinc.com>
 */;var ne=class extends s.a{};ne=((e,t,n,o)=>{for(var r,s=t,i=e.length-1;0<=i;i--)(r=e[i])&&(s=r(s)||s);return s})([Object(i.a)({computed:{...ee.computed,...Object(c.mapState)(z,{data(e){return e.components[this.getId()]||{}}})},methods:ee.methods,async serverPrefetch(){var e,t,n,o;if(this.$options.name)return e=e=>{var t;return null==(t=null==(t=this.tools)?void 0:t.log)?void 0:t.error({component:this.$options.name,error:e})},null!=(t=this.injectedStores)&&t.length&&(null!=(t=this.injectedStores)&&t.forEach(e=>this[e]),await W(this.$pinia).initStores()),null!=(t=this.injectedServices)&&t.length&&(t=null==(t=this.injectedServices)?void 0:t.filter(e=>this[e].dispatch),await Promise.all(t.map(e=>this[e].dispatch()))),n=this,o=async e=>{if(this.dispatch)try{await this.dispatch(e)}catch(t){e(t)}else e()},(null==(t=await new Promise(async(e,t)=>{const r=n.$options.name,s=setTimeout(()=>{e({error:new Error(`The execution of component "${r}" was interrupted by timeout after the "15 seconds" timeout was reached.`)})},15e3),i=g()(!0,n._data.default||{},((n.config||{}).components||{})[r]||{});n.data=g()(!0,n.data||{},i);try{o(o=>{clearTimeout(s);const a=(o,s=!1)=>{if(n.$options.render=()=>null,s&&o&&(o.message=`Component "${r}" had its execution aborted by "dispatch". Reason: "${o.message}"`),null!=(s=null==(s=null==n?void 0:n.tools)?void 0:s.log)&&s.error)try{n.tools.log.error({component:r,error:o})}catch(o){}return!0===n.__initiator__?t(o):e()};if(o instanceof Error)return a(o,!0);Promise.all([]).then(async()=>{var t,r=n.getId();null==o||"object"==typeof o&&!Object.keys(o).length?e({}):(t=g()(!0,i,o),z(n.$pinia).setDispatchData({id:r,item:t}),e(t))}).catch(e=>a(e))})}catch(e){clearTimeout(s),t(e)}}))?void 0:t.error)instanceof Error?(e(t.error),this.$options.render=()=>null,["beforeCreate","created","mounted"].forEach(e=>this.$options[e]=[]),Promise.resolve()):t},beforeCreate(){if(this.$options.methods.resolve instanceof Function){var e,t=this.$options.methods.resolve(),n=(()=>{var e=this.config||{},t=e.components||{},n=e.multipleVersions||{},o={};for(const e of Object.keys(n))for(const t of n[e])o[t]=e;for(const e of Object.keys(t)){var r=t[e].version;r&&(o[e]=r)}return o})()||{};for(const o of Object.keys(n))t[o]&&(t[o][n[o]]||t[o].default)&&(e=t[o][n[o]]||t[o].default,this.$options.components[e])&&(this.$options.components[o]=this.$options.components[e])}this.cssFromSlotComponents=[];for(const e of Object.keys(this.$slots||{}))for(const t of this.$slots[e]||[])!t.asyncMeta||this.cssFromSlotComponents.includes(t.asyncMeta.tag)||this.cssFromSlotComponents.push(t.asyncMeta.tag)},created:function(){var e=this.$options.name,t=((this.$parent||{}).$options||{}).name;if(e){const n=this.$tools||this.tools;t=t?n.getPrecedence(t):0;const o=(e,t=new Set)=>{let n=[];for(const s in e){var r=e[s];r.name&&!t.has(r)&&(t.add(r),n.push(r.name),(r.options||{}).components)&&(r=o(r.options.components,t),n=n.concat(r))}return n},r=(n.setPrecedence(e,t),n.setComponentDependencies(e,o(this.$options.components)),n.getPrecedence(e));this.cssFromSlotComponents.length&&this.cssFromSlotComponents.map(e=>n.setPrecedence(e,r));for(const e in this.$options.components)n.setPrecedence(e,r)}if(this.styled instanceof Function){var n,o=this.styled();for(const e in o)o[e].as&&!this.$options.components[e]&&(n=O(o[e].as,o[e].tokens||[]),this.$options.components[e]=n)}}})],ne),c="undefined"!=typeof window?S:ne;const oe=Object(t.c)(c);
/*!
 * VUELAND - Base resources Interface
 * 2022 Fagner Janderson <fjsilva@uolinc.com>
 */class re{constructor(){this.config={extend:[]},this.setState=G,this.getState=X,this.getRequest=K,this.getConfig=Q,this.getPageData=Z}}class se{}var ie=(e=>(e.FRONT_ENVIRONMENT="front",e.BACK_ENVIRONMENT="back",e.MIXED_ENVIRONMENT="mixed",e))(ie||{});class ae extends re{}ae.___environment___="front";class ce extends re{constructor(){if(super(),this.tools=new se,!j)throw new Error(`The "${this.constructor.name}" service supposed to be used only on server side.`)}}ce.___environment___="back";class le extends re{constructor(){super(...arguments),this.tools=new se}}le.___environment___="mixed";const ue=ae,de=ce,he=le,pe=ae,fe=ce,me=le;class ve{static install(e){E&&console.debug("[CoreTools]: starting"),e.mixin({beforeCreate(){var e,t=this.$options;t.tools?(e=t.tools,this.tools||(this.tools=e)):!this.tools&&t.parent&&t.parent.tools&&(this.tools=t.parent.tools)}})}}const ge=new Set,ye=oe.extend({props:{name:{type:String}},methods:{async loadBrand(){var{brand:e,app_version:t,media:{css:n}}=H(this.$pinia).state.system;if(this.name!==e&&(n=n+`/styles/${e="theme-brand-"+this.name}.css&v=v`+t,!ge.has(e)))return ge.add(e),j?this.tools.appendResource().before([{tag:"link",attrs:[{key:"rel",value:"stylesheet"},{key:"href",value:n}]}]):this.$loadScript(n)}},async created(){await this.loadBrand()},render(){return this.$slots.default.forEach(e=>{var t="brand-"+this.name,n=null==(n=e.data)?void 0:n.staticClass;e.data=e.data||{},e.data.staticClass=n?[n,t].join(" "):t}),this.$slots.default}});function be(e){let t,n;var r;return"string"==typeof e?t=e:(r=e,n=o()(JSON.stringify(T(Object.keys(r||{}).reduce((e,t)=>(e[t]=r[t],e),{}))))),{stateId:t,stateIdHash:n}}const Oe=oe.extend({name:"ServerCache",data:()=>({cached:!1}),props:{cacheKey:{type:String,required:!0,validator:e=>/^[\w-:]+$/.test(e)},cacheTtl:{type:Number,default:()=>Number(Object({NODE_ENV:"production",VUE_ENV:"client"}).VUELAND_DEFAULT_CACHE_TTL||60),validator:e=>60<=e},cacheStores:{type:Array}},created(){var e;j&&null!=(e=this.cacheStores)&&e.length&&W(this.$pinia).addToCacheStoreList(this.cacheStores,this.cacheKey,this.cacheTtl)},async serverPrefetch(){Object({NODE_ENV:"production",VUE_ENV:"client"}).VUELAND_DEFAULT_CACHE_ACTIVE&&(this.cached=await this.tools.cache.get(this.cacheKey))},render(e){return j&&Object({NODE_ENV:"production",VUE_ENV:"client"}).VUELAND_DEFAULT_CACHE_ACTIVE?this.cached?e("div",{domProps:{innerHTML:this.cached}}):e("server-cache-content",{attrs:{id:this.cacheKey,ttl:this.cacheTtl}},[this.$slots.default]):e("div",[this.$slots.default])}});function we(e){return"function"==typeof e&&"string"==typeof e.$id}class $e{constructor(e,t){this.pinia=e,this.tools=t,this.stores=new Map,this.bindings=new Map,this.singletons=new Map,this.DEPENDENCIES=Symbol("DEPENDENCIES");const n=H(this.pinia);this.coreTools={$vueDI:this,$pinia:this.pinia,get config(){return n.state},tools:this.tools||{}}}bind(e,t,n){this.bindings.set(e,t),n&&n.singleton&&this.registerAsSingleton(t)}getInstanceOf(e){return this.bindings.has(e)&&(e=this.bindings.get(e)),this.resolve(e)}resolve(e){return this.singletons.has(e)?this.resolveSingleton(e):this.resolveInstance(e)}resolveStore(e,t=!1){var n,o;if(we(e))return n=e.$id,this.stores.has(n)?this.stores.get(n):(o=e(this.pinia),this.stores.set(n,o),j&&!t&&this.resolveStore(W,!0).addStore(o),o);throw new Error(`"${e}" is not a valid useStore!`)}resolveInstance(e){if("function"!=typeof e)throw new Error(e+" must be class not a "+typeof e);var t=(e[this.DEPENDENCIES]||[]).map(e=>"function"===e?this.getInstanceOf(e):e);return we(e)?e(this.pinia):(e=new e(...t),Object.assign(e,this.coreTools),e)}registerAsSingleton(e){this.singletons.has(e)||this.singletons.set(e,null)}resolveSingleton(e){return this.registerAsSingleton(e),null===this.singletons.get(e)&&this.singletons.set(e,this.resolveInstance(e)),this.singletons.get(e)}registerDependencies(e,...t){e[this.DEPENDENCIES]=t}}function _e(e,...t){return function(n,o){if(j){const t=we(e)?"__injectedStores":"__injectedServices";n[t]=n[t]||[],n[t].push(o),Object.defineProperty(n,t.replace(/_+/,""),{get:()=>[...n[t]],enumerable:!0,configurable:!0})}Object.defineProperty(n,o,{get(){try{var n;return we(e)?(n=we(e)&&t.length?e.apply(e,t.map(e=>"function"==typeof e?e.call(this):e)):e,this.$vueDI.resolveStore(n)):(t.length&&this.$vueDI.registerDependencies(e,...t),this.$vueDI.resolveSingleton(e))}catch(n){console.error(n)}},set(){},enumerable:!0,configurable:!0})}}function Se(e,t){return new $e(e,t)}class je{static install(e){E&&console.debug("[VueDI]: starting"),e.mixin({beforeCreate(){var e,t=this.$options;t.vueDI?(e=t.vueDI,this.$vueDI||(this.$vueDI=e)):!this.$vueDI&&t.parent&&t.parent.$vueDI&&(this.$vueDI=t.parent.$vueDI)}})}}function Ee(e,t,n,o,r,s,i,a){var c,l,u="function"==typeof e?e.options:e;return t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),o&&(u.functional=!0),s&&(u._scopeId="data-v-"+s),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=c):r&&(c=a?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),c&&(u.functional?(u._injectStyles=c,l=u.render,u.render=function(e,t){return c.call(t),l(e,t)}):(t=u.beforeCreate,u.beforeCreate=t?[].concat(t,c):[c])),{exports:e,options:u}}const Ce=_e;ee=n(18);
/*!
 * VUELAND - AbTool Tool
 * 2020 fjsilva <fjsilva@uolinc.com>
 */var ke=n.n(ee),Te=(S=n(2967),ne=n.n(S),t=n(47),n.n(t)),Pe=n(51),Ae=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Ie=(e,t,n)=>(Ae(e,t,"read from private field"),n?n.call(e):t.get(e));ke.a.extend(ne.a);class xe extends ae{constructor(){super(...arguments),this.chosen="default",this.cookiePrefix="__vueland_ab_test_"}mount(e){this.clear();const t=["testName","endTime","draw","tag","use","sample","pick","slots","cookiePrefix"];g()(!0,this,Object.keys(e).filter(e=>t.includes(e)).reduce((t,n)=>(t[n]=e[n],t),{}));var n=()=>{if(this.sample instanceof Function)try{this.sample(this.chosen)}catch(e){console.error(e)}};return this.isValidTime()?this.use?(this.chosen=this.use,n(),this.use):(this.checkCookieIntegrity(),this.chosen=this.getCandidate(),n(),this.chosen):"default"}clear(e){var t=Te.a.get();for(const o of Object.keys(t))if(new RegExp("^"+this.cookiePrefix).test(o)){if(Array.isArray(e)&&e.length&&!e.map(e=>""+this.cookiePrefix+e).includes(o)){Te.a.remove(o);continue}var n=this.parseCookieValue(o).expires;this.isValidTime(n,o,!0)||Te.a.remove(o)}}setCookiePrefix(e){return this.cookiePrefix=e,this}isValidTime(e,t,n){if((e=ke()(e||this.endTime,"YYYY-MM-DD HH[:]mm")).isValid()){var o=(e=ke.a.duration(e.diff(ke()(new Date)))).asHours();if(this.expires=e.asDays(),0<=o)return!0;console.warn(`[VUELAND-AB] AB test "${t||this.testName}" has expired! Settings for that test will be removed from the browser.`)}else console.error(`Invalid test date: "${t||this.testName}"`);return(()=>{n||Te.a.remove(this.cookieName)})(),!1}checkCookieIntegrity(){var e=this.parseCookieValue().expires;e&&e!==this.endTime&&Te.a.remove(this.cookieName)}getCandidate(){var e=this.parseCookieValue().value;return e&&this.slots.includes(e)?e:this.runPick()}get cookieName(){return""+this.cookiePrefix+this.testName}runPick(){var e=this.firePick(this.slots,this.draw);if(this.mountCookie(e),this.pick instanceof Function)try{this.pick(e)}catch(e){console.error(e)}return e}firePick(e,t={}){var n=e,o=[];let r=0;for(let e=0;e<n.length;e++){var s=n[e],i=t[s];i&&(o.push([s,r+i]),r+=i)}if(r){var a=Math.floor(Math.random()*r);for(let e=0;e<o.length;e++)if(o[e][1]>a)return o[e][0]}return n[Math.floor(Math.random()*n.length)]}mountCookie(e){var t=this.endTime,n={expires:this.expires?+this.expires:7,path:"/"};return Te.a.set(this.cookieName,e+"|"+t,n),this.parseCookieValue()}parseCookieValue(e){e=Te.a.get(e||this.cookieName);var[t,n]=(e||"").split("|");return{value:t,expires:n,raw:e}}}const De=L("EventBus"),Ne=new Map,Me=class{static getInstance(){var e,t,n;return Ie(Me,Ve)||(e=Me,t=Ve,n=new Me,Ae(e,t,"write to private field"),t.set(e,n)),Ie(Me,Ve)}$initSubject(e){Ne.has(e)||Ne.set(e,{subject:new m.a(1),lastValue:void 0})}static listen(e,t,n){Me.getInstance().$initSubject(e),De(`Listening to event "${e}"`);var o=(o=Ne.get(e).subject).asObservable().pipe(Object(p.a)(t=>De(`Event "${e}" has been got with value`,t)));return(n?o.pipe(Object(Pe.a)(1)):o).subscribe(t)}static emit(e,t=null,n=!1){Me.getInstance().$initSubject(e);var o=Ne.get(e);null!=o&&o.subject&&(null!=o&&o.subject.next(t),o.lastValue=t,De(`Event "${e}" emitted with value`,t)),n&&(null!=(t=null==o?void 0:o.subject)&&t.complete(),Ne.delete(e))}static getLast(e){var t;if(Ne.has(e))return({lastValue:t=null}=Ne.get(e)||{}),t;throw new Error(`The event "${e}" does not exists!`)}};let Re=Me;var Ve=new WeakMap;c=Re,S=void 0;if((ee=Ve).has(c))throw TypeError("Cannot add the same private member more than once");ee instanceof WeakSet?ee.add(c):ee.set(c,S)},62:function(e,t,n){"use strict";n.r(t),n.d(t,"ClickType",(function(){return y})),n.d(t,"MetricEvent",(function(){return c})),n.d(t,"SlotsArea",(function(){return b})),n.d(t,"TemplateArea",(function(){return O})),n.d(t,"VueMetric",(function(){return K})),n.d(t,"default",(function(){return Q})),n.d(t,"metricClick",(function(){return D})),n.d(t,"metricEvent",(function(){return M})),n.d(t,"metricImpression",(function(){return N})),n.d(t,"metricMedia",(function(){return R})),n.d(t,"metricOnClick",(function(){return L})),n.d(t,"metricOnView",(function(){return U})),n.d(t,"metricPageview",(function(){return V})),n.d(t,"observe",(function(){return Y})),n.d(t,"setConfigs",(function(){return f})),n.d(t,"setEvent",(function(){return v})),n.d(t,"setGlobals",(function(){return p})),n.d(t,"setPluginConfigs",(function(){return m})),n.d(t,"useMetric",(function(){return G})),n(70),n(71),n(82),n(85),n(84),n(92);var o=n(0);const r="VueMetrics";var s=(e=>(e.author="author",e.central="central",e.channel="channel",e.charactersQuantity="charactersQuantity",e.collection="collection",e.graphProject="graphProject",e.loginFacebook="loginFacebook",e.loginGoogle="loginGoogle",e.loginUol="loginUol",e.mediaId="mediaId",e.mediaName="mediaName",e.mediaTitle="mediaTitle",e.paywallType="paywallType",e.pTemplate="pTemplate",e.publicationDate="publicationDate",e.tags="tags",e.typePublication="typePublication",e.uolid="uolid",e))({}),i=(e=>(e.action="action",e.area="area",e.category="category",e.clickType="clickType",e.label="label",e.position="position",e.slot="slot",e.videoId="videoId",e.videoTitle="videoTitle",e.campaignId="campaignId",e.campaignCand="campaignCand",e.nonInteraction="nonInteraction",e.impression="impression",e))({});const a=["campaignId","campaignCand"];var c=(e=>(e.metricOnClick="metricOnClick",e.metricOnView="metricOnView",e.metricEvent="metricEvent",e.metricClick="metricClick",e.metricMedia="metricMedia",e.metricImpression="metricImpression",e.metricPageview="metricPageview",e))(c||{});const l=new Map,u=new Map,d=new Map,h={viewMetricsDelay:2e3},p=e=>{"object"==typeof e?l.set("getGlobal",()=>Object.entries(e).reduce((e,[t,n])=>(t in s&&n&&(e[t]=n),e),{})):"function"==typeof e&&l.set("getGlobal",e)},f=e=>{if(e&&e.keys)for(var[t,n]of Object.entries(e.keys))d.set(t,n)},m=e=>{if(e)for(var[t,n]of Object.entries(e))h[t]=n},v=(e,t)=>{"metricOnView"===(e="metricOnClick"===e?"metricClick":e)&&(e="metricImpression"),u.set(e,t)},g=(...e)=>{var t={};for(const r of e)for(var[n,o]of Object.entries(r))n in i?(t[n]=t[n]||{},"object"==typeof o?t[n]={...t[n],...o}:["string","number"].includes(typeof o)&&(t[n]={...t[n],___template:""+o})):t[n]=o.toString();return t};var y=(e=>(e.RECIRCULACAO="recirculacao",e.RECIRCULACAO_SERVICOS="recirculacao-servicos",e.RECIRCULACAO_EXTERNA="recirculacao-externa",e.INTERACAO_PADRAO="interacao-padrao",e.INTERACAO_OPCIONAL="interacao-opcional",e.IMPRESSAO="impressao",e))(y||{}),b=(e=>(e.HEADER_CONTEXTUAL="header-contextual",e.HEADER_SUFIX="header-sufix",e))(b||{}),O=(e=>(e.HEADER="header",e.TOPO_NOTICIA="topo-noticia",e.TEXTO_NOTICIA="texto-noticia",e.CHAMADAS="chamadas",e.RODAPE="rodape",e))(O||{});let w;const $=["%c"+r,"background: #2b3f52; color: #3dd68c"],_="undefined"!=typeof window&&localStorage.getItem(r+"::debug"),S="undefined"!=typeof window&&"verbose"===localStorage.getItem(r+"::debug"),j=e=>String(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[\W_]+/g,"-").toLowerCase(),E=(e,...t)=>S&&console.debug.apply(console.debug,[...w?[]:$,e,...t]),C=(e,...t)=>_&&console.debug.apply(console.debug,[...w?[]:$,e,...t]),k=(e,t=!0)=>(...n)=>{var o=t?E:C;o.apply(o,[e,...n])},T=(...e)=>{w||(w=Symbol(),_&&console.group.apply(console.group,[...$,...e]))},P="undefined"!=typeof window&&JSON.parse(localStorage.getItem(r+"::viewport::debug"));function A(e){return"object"==typeof e?"object"!=typeof(t=e)||Array.isArray(t)?"":Object.entries(t).sort(([e],[t])=>e.localeCompare(t,"pt",{sensitivity:"base"})).map(([e,t])=>e+":"+t).join(";"):j(e);var t}const I=e=>(C("beforeResolve",_&&JSON.parse(JSON.stringify(e))),Object.entries(e).reduce((e,[t,n])=>{if(["string","number"].includes(typeof n))e[t]=""+n;else{var o=[n.___template||""];n.prefix&&(o.unshift(A(n.prefix)),delete n.prefix),n.suffix&&(o.push(A(n.suffix)),delete n.suffix);let r=o.filter(e=>!!e).join("-");for(const e in n)"___template"!==e&&(r=r.replace(new RegExp(`\\[${e}\\]`,"ig"),A(n[e])));e[t]=a.includes(t)?j(r):r}return e},{}));function x(e,t={}){function n(...n){T(e);let o={};"string"==typeof n[0]&&([f,s]=n.shift().split(":"),o=null==(r=d.get(f))?void 0:r[s])&&!o.category&&(o.category=f);var r=(o||{}).sampling,s=g.apply(g,[o||{},...n]),i=I({...t,...s});if(Object.hasOwnProperty.call(h,"renameProps"))for(var[a,c]of Object.entries(h.renameProps))Object.hasOwnProperty.call(i,a)&&(i[c]=i[a],delete i[a]);var p,f=u.get(e);s=(null==(n=l.get("getGlobal"))?void 0:n())||{};r&&!P?(n=Math.round(100*Math.random()),p=k("(sampling)"),n<=r&&f?(f.call(f,{...i,...s}),p("raffle won",{raffle:n,sampling:r})):p("raffle lost",{raffle:n,sampling:r})):f&&f.call(f,{...i,...s}),C("globalData",s),C("eventData",i),w=null,_&&console.groupEnd()}return n.$name=e,n}const D=x(c.metricClick,{action:"clique",clickType:y.INTERACAO_PADRAO}),N=x(c.metricImpression,{action:"impressao",clickType:y.IMPRESSAO,impression:1,nonInteraction:1}),M=x(c.metricEvent,{action:"event",clickType:y.INTERACAO_PADRAO}),R=x(c.metricMedia),V=x(c.metricPageview),L=D,U=N,B=new Map,F=new Map,H=k("IntersectionObserver"),Y=(e,t,n={})=>{const o=Object.assign({once:!0},n);B.set(e,n=>{"function"==typeof t&&t(n),o.once&&null!=q&&q.unobserve(e)}),H("start observing",e),null!=q&&q.observe(e)},q="undefined"!=typeof window?new IntersectionObserver(e=>{e.forEach(e=>{F.set(e.target,e.isIntersecting),e.isIntersecting&&(H("start debouce"),setTimeout(()=>{var t;F.get(e.target)?(H("registering event"),(t=B.get(e.target))&&t.call(t,e)):H("event aborted")},h.viewMetricsDelay))})},{}):null,J=e=>{if(e){if(e.registerTreeValue)return e;for(const t of["metric","metrics"])if("object"==typeof e[t]&&e[t].registerTreeValue)return e[t]}return null};function W(e){return null!=e&&"object"==typeof e}function z(e,t,n){W(t.value)&&!function e(t,n){var o=Object.keys(t),r=Object.keys(n);if(o.length===r.length){for(const r of o){var s=t[r],i=n[r],a=W(s)&&W(i);if(a&&!e(s,i)||!a&&s!==i)return}return 1}}(t.oldValue,t.value)&&(E("updating value",t.arg?"dataset":"register",t.oldValue,t.value),t.arg?e.dataset.localMetrics=JSON.stringify(t.value):(J(n.componentInstance)||J(n.context)).registerTreeValue(t.value))}const X={bind:function(e,t,n){const o=J(n.componentInstance)||J(n.context);var[n,s]=((null==t?void 0:t.arg)||"").split(":"),i=null==(i=d.get(n))?void 0:i[s];const a=(n,s,i)=>a=>{(null==a?void 0:a.eventPhase)===(null==a?void 0:a.BUBBLING_PHASE)&&t.modifiers.stop&&a.stopPropagation();let c={},l={};if(i&&e.dataset[i])try{l=JSON.parse(e.dataset[i])}catch(a){console.error(a)}else if(e.dataset.metric)try{l=JSON.parse(e.dataset.metric)}catch(a){console.error(a)}if(!o)return console.warn(`VueMetrics: ${r} not found!, Did you forget to use useMetric on component setup?`),!1;if(!1!==t.value){"object"==typeof t.value&&(c=t.value),e.dataset.localMetrics&&(c=JSON.parse(e.dataset.localMetrics)),s&&!c.action&&(c.action=s);const r=[t.arg,l,o.metrics||{},c||{}];T(n.$name||n.name),C("beforeCompose",["config","dataset","inherited","defined","modifiers"].reduce((e,n,o)=>(e[n]=o===r.length-1?t.modifiers:r[o],e),{})),n.apply(n,r)}};if(W(t.value)&&!t.arg&&o.registerTreeValue(t.value),"config"===s&&i?(E("config","fromConfig",i),o.registerTreeValue(i)):"config"===s&&(E("config","use key as category",n),o.registerTreeValue({category:n})),i){if((t.modifiers.viewport||t.modifiers.view)&&(E("viewport",e),Y(e,a(N,null,"metricView"))),t.modifiers.click){let n=e.getAttribute("href");null!=n&&n.startsWith("/")&&(n=location.protocol+"//"+location.hostname+n),e.addEventListener("click",a(D,n),{capture:!t.modifiers.bubbling,passive:!t.modifiers.bubbling,once:t.modifiers.once},!t.modifiers.bubbling)}if(t.modifiers.hover&&e.addEventListener("mouseenter",a(D),{capture:!0,passive:!0,once:t.modifiers.once}),t.modifiers.submit&&e.addEventListener("submit",a(D),{capture:!0,passive:!0,once:t.modifiers.once}),t.modifiers["swipe-left"]){let n;e.addEventListener("touchstart",()=>n=e.scrollLeft,{capture:!0,passive:!0,once:t.modifiers.once}),e.addEventListener("touchend",()=>{n<e.scrollLeft&&a(D)()},{capture:!0,passive:!0,once:t.modifiers.once})}if(t.modifiers["swipe-right"]){let n;e.addEventListener("touchstart",()=>n=e.scrollLeft,{capture:!0,passive:!0,once:t.modifiers.once}),e.addEventListener("touchend",()=>{n>e.scrollLeft&&a(D)()},{capture:!0,passive:!0,once:t.modifiers.once})}}},update:z,componentUpdated:z};function G(){const e=Object(o.ref)({}),t=Object(o.inject)("metrics",{}),n=Object(o.computed)(()=>g(Object(o.unref)(t),Object(o.unref)(e)),{});function r(e){return function(...t){return"string"==typeof t[0]?t.splice(1,0,Object(o.unref)(n)):t.unshift(Object(o.unref)(n)),e.apply(e,t)}}Object(o.provide)("metrics",n);var s=r(D),i=s,a=r(M),c=r(R),l=r(N);return{metrics:n,metricOnClick:i,metricOnView:l,metricClick:s,metricEvent:a,metricMedia:c,metricImpression:l,metricPageview:V,registerTreeValue:function(t){var n=g(e.value||{},t);e.value=n,E("register",g(Object(o.unref)(e)||{},t))},getResolvedMetric:function(){return I(n)}}}const K=function(e,t,n,o,r,s,i,a){var c,l,u="function"==typeof e?e.options:e;return t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),o&&(u.functional=!0),s&&(u._scopeId="data-v-"+s),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=c):r&&(c=a?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),c&&(u.functional?(u._injectStyles=c,l=u.render,u.render=function(e,t){return c.call(t),l(e,t)}):(t=u.beforeCreate,u.beforeCreate=t?[].concat(t,c):[c])),{exports:e,options:u}}(Object(o.defineComponent)({__name:"VueMetric",props:{tag:String,area:[String,Object],areaPrefix:String,areaSuffix:String,category:[String,Object],categoryPrefix:String,categorySuffix:String,label:[String,Object],labelPrefix:String,labelSuffix:String,clickType:[String,Object],clickTypePrefix:String,clickTypeSuffix:String,slotName:[String,Object],slotPrefix:String,slotSuffix:String,watch:Boolean},setup(e){const t=e,n=G();return e=()=>{var e=Object.entries(t).reduce((e,[t,n])=>{var o=/(Prefix|Suffix)$/,r=t.replace(/^slotName/,"slot").replace(/(Prefix|Suffix)$/,"");return["watch"].includes(t)||(n&&o.test(t)?(e[r]=e[r]||{},e[r][null==(t=t.match(o))?void 0:t[1].toLowerCase()]="string"==typeof n?j(n):n):n&&(e[r]=e[r]||{},"object"==typeof n?e[r]={...e[r],...n}:e[r].___template=String(n))),e},{});n.registerTreeValue(e)},Object(o.onBeforeMount)(e),t.watch&&Object(o.watch)(t,e,{onTrigger(e){E("watch",e)}}),{__sfc:!0,props:t,metric:n,updateMetric:e}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t(e.tag||"div",{tag:"component",attrs:{"data-metric-area":e.area,"data-metric-slot":e.slotName}},[e._t("default")],2)}),[],!1,null,null,null,null).exports,Q={install(e,t={}){var n,o,{defaults:t,events:r,config:s}=Object.assign({defaults:{},events:{},config:{}},t);"undefined"!=typeof window&&(n='[aria-disabled="true"], [disabled] { pointer-events: none }',document.adoptedStyleSheets?((o=new CSSStyleSheet).insertRule(n),document.adoptedStyleSheets=[...document.adoptedStyleSheets,o]):((o=document.createElement("style")).innerHTML=n,document.getElementsByTagName("head")[0].appendChild(o))),p(t),f(s),Object.entries(r).forEach(([e,t])=>{v(e,t)}),e.directive("metric",X),e.component("VueMetric",K)}}}}]);