(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{2894: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 u}));const r="function"==typeof Proxy;let i,s;function a(){return void 0===i&&("undefined"!=typeof window&&window.performance?(i=!0,s=window.performance):"undefined"!=typeof globalThis&&null!=(e=globalThis.perf_hooks)&&e.performance?(i=!0,s=globalThis.perf_hooks.performance):i=!1),(i?s: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 i=Object.assign({},n);try{var s=localStorage.getItem(r),c=JSON.parse(s);Object.assign(i,c)}catch(e){}this.fallbacks={getSettings:()=>i,setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(e){}i=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 u(e,t){var n=e,i=o(),s=o().__VUE_DEVTOOLS_GLOBAL_HOOK__,a=r&&n.enableEarlyProxy;!s||!i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&a?(a=a?new c(n,s):null,(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:a}),a&&t(a.proxiedTarget)):s.emit("devtools-plugin:setup",e,t)}},2896: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 I})),n.d(t,"components",(function(){return N})),n.d(t,"default",(function(){return M})),n(2899),n(57),n(66),n(2874);var o,r,i,s,a,c,u,l,d,h,f,p,m,v=n(2893),g=n(4),y=n(45),b=n.n(y),$=(y=n(19),n.n(y)),w={};
/*!
 * VUELAND - AbTool Tool
 * 2020 fjsilva <fjsilva@uolinc.com>
 */(y={get exports(){return w},set exports(e){w=e}}).exports=(i=/\[([^\]]+)]|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)?)?$/,u={years:s=31536e6,months:a=2592e6,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1,weeks:6048e5},l=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"},f=function(e){return e<0?Math.ceil(e):Math.floor(e)},p=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*u[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)*u[n]}),0)},t.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=f(e/s),this.$d.months=f((e%=s)/a),this.$d.days=f((e%=a)/864e5),this.$d.hours=f((e%=864e5)/36e5),this.$d.minutes=f((e%=36e5)/6e4),this.$d.seconds=f((e%=6e4)/1e3),this.$d.milliseconds=e%=1e3},t.toISOString=function(){var e=p(this.$d.years,"Y"),t=p(this.$d.months,"M"),n=+this.$d.days||0,o=(n=(this.$d.weeks&&(n+=7*this.$d.weeks),p(n,"D")),p(this.$d.hours,"H")),r=p(this.$d.minutes,"M"),i=this.$d.seconds||0,s=(i=(this.$d.milliseconds&&(i+=this.$d.milliseconds/1e3),p(i,"S")),e.negative||t.negative||n.negative||o.negative||r.negative||i.negative),a=o.format||r.format||i.format?"T":"";return"P"==(s=(s?"-":"")+"P"+e.format+t.format+n.format+a+o.format+r.format+i.format)||"-P"==s?"P0D":s},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(i,(function(e,n){return n||String(t[e])}))},t.as=function(e){return this.$ms/u[h(e)]},t.get=function(e){var t=this.$ms;return"milliseconds"===(e=h(e))?t%=1e3:t="weeks"===e?f(t/u[e]):this.$d[e],0===t?0:t},t.add=function(e,t,n){return t=t?e*u[h(t)]:(l(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=l;var i=t.prototype.add,s=t.prototype.subtract;t.prototype.add=function(e,t){return l(e)&&(e=e.asMilliseconds()),i.bind(this)(e,t)},t.prototype.subtract=function(e,t){return l(e)&&(e=e.asMilliseconds()),s.bind(this)(e,t)}}),y=w;$.a.extend(y);const O=n(2900);class S 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=$()(this.endTime,"YYYY-MM-DD HH[:]mm")).isValid()){var e,t=(e=$.a.duration(e.diff($()(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(()=>{O.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)&&O.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 i=n[e],s=t[i];s&&(o.push([i,r+s]),r+=s)}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),O.set(this.cookieName,e,t),this.parseCookieValue()}parseCookieValue(){var e=O.get(this.cookieName),[t,n,o,r]=(e||"").split("|");return{value:t,domain:n,path:o,expires:r,raw:e}}}var _=Object.defineProperty,E=Object.getOwnPropertyDescriptor,j=(y=(e,t,n,o)=>{for(var r,i=1<o?void 0:o?E(t,n):t,s=e.length-1;0<=s;s--)(r=e[s])&&(i=(o?r(t,n,i):r(i))||i);return o&&i&&_(t,n,i),i},n(2900),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 S).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,i,s,a){var c,u,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(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(s)},l._ssrRegister=c):r&&(c=a?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c&&(l.functional?(l._injectStyles=c,u=l.render,l.render=function(e,t){return c.call(t),u(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,c):[c])),{exports:e,options:l}}y([Object(g.Prop)({type:String,default:()=>"div"})],j.prototype,"tag",2),y([Object(g.Prop)({type:Object})],j.prototype,"draw",2),y([Object(g.Prop)({type:String,default:()=>"vueland-ab-cookie"})],j.prototype,"testName",2),y([Object(g.Prop)({type:String,default:()=>null})],j.prototype,"domain",2),y([Object(g.Prop)({type:String,default:()=>null})],j.prototype,"path",2),y([Object(g.Prop)({type:String,default:()=>null})],j.prototype,"always",2),y([Object(g.Prop)({type:String,default:()=>null})],j.prototype,"use",2),y([Object(g.Prop)({type:String,default:()=>null})],j.prototype,"endTime",2),y([Object(g.Prop)({type:Function,default:()=>null})],j.prototype,"sample",2),y([Object(g.Prop)({type:Function,default:()=>null})],j.prototype,"pick",2);const k=C(j=y([Object(g.Component)({name:"AB"})],j),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,i=t,s=e.length-1;0<=s;s--)(r=e[s])&&(i=r(i)||i);return i})([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,j=class extends g.ComponentBase{};const P=C(((e,t,n,o)=>{for(var r,i=t,s=e.length-1;0<=s;s--)(r=e[s])&&(i=r(i)||i);return i})([Object(g.Component)({name:"Noop"})],j),(function(){var e=this._self._c;return this._self._setupProxy,e("div")}),[],!1,null,null,null,null).exports;var D=Object.defineProperty,A=Object.getOwnPropertyDescriptor;y=(e,t,n,o)=>{for(var r,i=1<o?void 0:o?A(t,n):t,s=e.length-1;0<=s;s--)(r=e[s])&&(i=(o?r(t,n,i):r(i))||i);return o&&i&&D(t,n,i),i};(j=class extends g.ComponentBase{}).ssrOnly=!0,y([Object(g.Prop)()],j.prototype,"content",2),y([Object(g.Prop)({default:()=>!1})],j.prototype,"inline",2);const x=C(y([Object(g.Component)({name:"RenderHtml"})],j),(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 I=C(((e,t,n,o)=>{for(var r,i=t,s=e.length-1;0<=s;s--)(r=e[s])&&(i=r(i)||i);return i})([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:I},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(46))},3005:function(e,t,n){var o,r;
/*!
 * JavaScript Cookie v2.2.1
 * https://github.com/js-cookie/js-cookie
 *
 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
 * Released under the MIT license
 */void 0!==(n="function"==typeof(o=r=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n,o=arguments[e];for(n in o)t[n]=o[n]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(o){function r(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},r.defaults,i)).expires&&(i.expires=new Date(+new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var s=JSON.stringify(n);/^[\{\[]/.test(s)&&(n=s)}catch(t){}n=o.write?o.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a,c="";for(a in i)i[a]&&(c+="; "+a,!0!==i[a])&&(c+="="+i[a].split(";")[0]);return document.cookie=t+"="+n+c}}function s(e,n){if("undefined"!=typeof document){for(var r={},i=document.cookie?document.cookie.split("; "):[],s=0;s<i.length;s++){var a=i[s].split("="),c=a.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var u=t(a[0]);c=(o.read||o)(c,u)||t(c);if(n)try{c=JSON.parse(c)}catch(e){}if(r[u]=c,e===u)break}catch(e){}}return e?r[e]:r}}return r.set=i,r.get=function(e){return s(e,!1)},r.getJSON=function(e){return s(e,!0)},r.remove=function(t,n){i(t,"",e(n,{expires:-1}))},r.defaults={},r.withConverter=n,r}((function(){}))})?o.call(t,n,t,e):o)&&(e.exports=n),e.exports=r()},3018:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n(57),n(66);var o=n(0);t=n(31);const r="width: 0; height: 0; overflow: hidden",i=Object(t.defineStore)("svgRegistry",()=>{let e;const t=Object(o.ref)(0),n=new Map,i=Object(o.reactive)({});function s({lib:e,name:t},n=!0){var o;null!=(o=null==i?void 0:i[e])&&o[t]||(i[e]=i[e]||{},i[e][t]=n)}function a(){return n.size?Object.entries(i).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(/-/);s({lib:t,name:n.join("-")},!0)}},100),{size:t,list:i,registerSvg:function(o){var c;n.set(o.lib+":"+o.name,o),t.value=n.size,"undefined"==typeof window?s(o,!1):(s(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)i[n.lib][n.name]||(t.innerHTML+=n.data||"",s(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)s(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 s(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,i,s,a){var c,u,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(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(s)},l._ssrRegister=c):r&&(c=a?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c&&(l.functional?(l._injectStyles=c,u=l.render,l.render=function(e,t){return c.call(t),u(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,c):[c])),{exports:e,options:l}})(Object(o.defineComponent)({__name:"VueSvgRegistry",setup(e){const t=i(),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},3046:function(e,t,n){"use strict";n.r(t),n(2874),n(57);var o=n(0),r=n.n(o),i=n(31),s=n(4),a=n(55),c=n(2896),u=n(2938);r.a.config.ignoredElements=["ignore","media-content"],r.a.config.silent=!0,r.a.use(i.PiniaVuePlugin),r.a.use(s.VueDI),r.a.use(s.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 l=new Map,d=new ResizeObserver((e,t)=>{for(const r of e){var n=r.target;l.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=>d.observe(e)),Object.defineProperty(r.a.prototype,"$renderInfo",{get:()=>l});let h=!1;t=async()=>{if(!0!==h&&!0!==/debugDisableApp=true/.test(window.location.search)){h=!0;const[e]=window.renderStack||[],t=u.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(i.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(s.useConfigStore)(o).setData(n.config),Object(s.useRequestStore)(o).setData(n.request),performance.measure("uol-vueland-vue-app-store","uol-vueland-vue-app-store:start"),e({pinia:o})})).then(async({pinia:i})=>{let u;performance.mark("uol-vueland-vue-app-init:start"),u=(u=t.global?await Promise.resolve().then(n.bind(null,4))[e.component]:(await n(3006)(`./${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==(h=i.state.value["core:config"])?void 0:h.state}catch(i){console.error(i)}r.a.use(a.default,{defaults:{graphProject:"jupiter"},config:(null==(h=null==(h=i.state.value["core:config"])?void 0:h.state)?void 0:h.metrics)||{}});const l={ab:new s.AbTool},d=Object(s.createDIContainer)(i,l);i.use(({store:e})=>{e.$tools=Object(o.markRaw)(l),e.$vueDI=Object(o.markRaw)(d)}),new r.a({pinia:i,vueDI:d,tools:l,components:{[e.component]:u,...c.components},render:t=>t(u,{props:e})}).$mount("[data-server-rendered]"),performance.measure("uol-vueland-vue-app-init","uol-vueland-vue-app-init:start");var h=()=>{document.dispatchEvent(new CustomEvent("hydration:appReady")),window.dispatchEvent(new CustomEvent("scroll"))};window.requestIdleCallback?window.requestIdleCallback(h,{timeout:500}):setTimeout(h,1e3/60)})}},window.addEventListener("DOMContentLoaded",t),window.addEventListener("pageshow",t,{once:!0})},4:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"AbTool",(function(){return S})),n(2899),n(57),n(66);var o,r,i,s,a,c,u,l,d,h,f,p,m,v=n(9),g=(n.d(t,"FrontEnvironment",(function(){return v.f})),n.d(t,"BackEnvironment",(function(){return v.b})),n.d(t,"BackEnvironmentApi",(function(){return v.q})),n.d(t,"BackEnvironmentTool",(function(){return v.n})),n.d(t,"BrandTheme",(function(){return v.J})),n.d(t,"ComponentBase",(function(){return v.c})),n.d(t,"CoreTools",(function(){return v.I})),n.d(t,"DepInject",(function(){return v.d})),n.d(t,"Environment",(function(){return v.e})),n.d(t,"EventEmitter",(function(){return v.z})),n.d(t,"FrontEnvironmentApi",(function(){return v.p})),n.d(t,"FrontEnvironmentTool",(function(){return v.m})),n.d(t,"Inject",(function(){return v.g})),n.d(t,"MixedEnvironment",(function(){return v.h})),n.d(t,"MixedEnvironmentApi",(function(){return v.r})),n.d(t,"MixedEnvironmentTool",(function(){return v.o})),n.d(t,"RequestFormat",(function(){return v.u})),n.d(t,"RequestProtocol",(function(){return v.i})),n.d(t,"ServerCache",(function(){return v.j})),n.d(t,"Tools",(function(){return v.k})),n.d(t,"VueDI",(function(){return v.l})),n.d(t,"buildServerCacheKey",(function(){return v.A})),n.d(t,"createDIContainer",(function(){return v.L})),n.d(t,"deepFreeze",(function(){return v.F})),n.d(t,"isDev",(function(){return v.y})),n.d(t,"isServerRendering",(function(){return v.x})),n.d(t,"makeCache",(function(){return v.B})),n.d(t,"normalizeComponent",(function(){return v.a})),n.d(t,"once",(function(){return v.C})),n.d(t,"removeDisposables",(function(){return v.D})),n.d(t,"retryFactory",(function(){return v.H})),n.d(t,"sort",(function(){return v.E})),n.d(t,"useComponentState",(function(){return v.K})),n.d(t,"useConfigStore",(function(){return v.G})),n.d(t,"useControlStore",(function(){return v.s})),n.d(t,"useDisposable",(function(){return v.w})),n.d(t,"useGeneralStore",(function(){return v.t})),n.d(t,"useRequestStore",(function(){return v.v})),n(45)),y=n.n(g),b=(g=n(19),n.n(g)),$=n(21),w=(n.d(t,"Component",(function(){return $.a})),n.d(t,"Emit",(function(){return $.b})),n.d(t,"InjectReactive",(function(){return $.d})),n.d(t,"Mixins",(function(){return $.e})),n.d(t,"Model",(function(){return $.f})),n.d(t,"ModelSync",(function(){return $.g})),n.d(t,"Prop",(function(){return $.h})),n.d(t,"PropSync",(function(){return $.i})),n.d(t,"Provide",(function(){return $.j})),n.d(t,"ProvideReactive",(function(){return $.k})),n.d(t,"Ref",(function(){return $.l})),n.d(t,"VModel",(function(){return $.m})),n.d(t,"Vue",(function(){return $.n})),n.d(t,"VueInject",(function(){return $.c})),n.d(t,"Watch",(function(){return $.o})),n(2862),n(2889),n(2890),{});
/*!
 * VUELAND - AbTool Tool
 * 2020 fjsilva <fjsilva@uolinc.com>
 */(g={get exports(){return w},set exports(e){w=e}}).exports=(i=/\[([^\]]+)]|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)?)?$/,u={years:s=31536e6,months:a=2592e6,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1,weeks:6048e5},l=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"},f=function(e){return e<0?Math.ceil(e):Math.floor(e)},p=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*u[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)*u[n]}),0)},t.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=f(e/s),this.$d.months=f((e%=s)/a),this.$d.days=f((e%=a)/864e5),this.$d.hours=f((e%=864e5)/36e5),this.$d.minutes=f((e%=36e5)/6e4),this.$d.seconds=f((e%=6e4)/1e3),this.$d.milliseconds=e%=1e3},t.toISOString=function(){var e=p(this.$d.years,"Y"),t=p(this.$d.months,"M"),n=+this.$d.days||0,o=(n=(this.$d.weeks&&(n+=7*this.$d.weeks),p(n,"D")),p(this.$d.hours,"H")),r=p(this.$d.minutes,"M"),i=this.$d.seconds||0,s=(i=(this.$d.milliseconds&&(i+=this.$d.milliseconds/1e3),p(i,"S")),e.negative||t.negative||n.negative||o.negative||r.negative||i.negative),a=o.format||r.format||i.format?"T":"";return"P"==(s=(s?"-":"")+"P"+e.format+t.format+n.format+a+o.format+r.format+i.format)||"-P"==s?"P0D":s},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(i,(function(e,n){return n||String(t[e])}))},t.as=function(e){return this.$ms/u[h(e)]},t.get=function(e){var t=this.$ms;return"milliseconds"===(e=h(e))?t%=1e3:t="weeks"===e?f(t/u[e]):this.$d[e],0===t?0:t},t.add=function(e,t,n){return t=t?e*u[h(t)]:(l(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=l;var i=t.prototype.add,s=t.prototype.subtract;t.prototype.add=function(e,t){return l(e)&&(e=e.asMilliseconds()),i.bind(this)(e,t)},t.prototype.subtract=function(e,t){return l(e)&&(e=e.asMilliseconds()),s.bind(this)(e,t)}}),g=w;b.a.extend(g);const O=n(3005);class S extends v.f{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"];y()(!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=O.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)){O.remove(o);continue}var n=this.parseCookieValue(o).expires;this.isValidTime(n,o,!0)||O.remove(o)}}setCookiePrefix(e){return this.cookiePrefix=e,this}isValidTime(e,t,n){if((e=b()(e||this.endTime,"YYYY-MM-DD HH[:]mm")).isValid()){var o=(e=b.a.duration(e.diff(b()(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||O.remove(this.cookieName)})(),!1}checkCookieIntegrity(){var e=this.parseCookieValue().expires;e&&e!==this.endTime&&O.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 i=n[e],s=t[i];s&&(o.push([i,r+s]),r+=s)}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){e=e+"|"+(t=this.endTime);var t={expires:this.expires?+this.expires:7,path:"/"};return O.set(this.cookieName,e,t),this.parseCookieValue()}parseCookieValue(e){e=O.get(e||this.cookieName);var[t,n]=(e||"").split("|");return{value:t,expires:n,raw:e}}}}.call(this,n(46))},55: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 $})),n.d(t,"VueMetric",(function(){return X})),n.d(t,"default",(function(){return Q})),n.d(t,"metricClick",(function(){return I})),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 F})),n.d(t,"metricPageview",(function(){return V})),n.d(t,"observe",(function(){return Y})),n.d(t,"setConfigs",(function(){return p})),n.d(t,"setEvent",(function(){return v})),n.d(t,"setGlobals",(function(){return f})),n.d(t,"setPluginConfigs",(function(){return m})),n.d(t,"useMetric",(function(){return K})),n(57),n(66);var o=n(0);const r="VueMetrics";var i=(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))({}),s=(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 u=new Map,l=new Map,d=new Map,h={viewMetricsDelay:2e3},f=e=>{"object"==typeof e?u.set("getGlobal",()=>Object.entries(e).reduce((e,[t,n])=>(t in i&&n&&(e[t]=n),e),{})):"function"==typeof e&&u.set("getGlobal",e)},p=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"),l.set(e,t)},g=(...e)=>{var t={};for(const r of e)for(var[n,o]of Object.entries(r))n in s?(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||{}),$=(e=>(e.HEADER="header",e.TOPO_NOTICIA="topo-noticia",e.TEXTO_NOTICIA="texto-noticia",e.CHAMADAS="chamadas",e.RODAPE="rodape",e))($||{});let w;const O=["%c"+r,"background: #2b3f52; color: #3dd68c"],S="undefined"!=typeof window&&localStorage.getItem(r+"::debug"),_="undefined"!=typeof window&&"verbose"===localStorage.getItem(r+"::debug"),E=e=>String(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[\W_]+/g,"-").toLowerCase(),j=(e,...t)=>_&&console.debug.apply(console.debug,[...w?[]:O,e,...t]),C=(e,...t)=>S&&console.debug.apply(console.debug,[...w?[]:O,e,...t]),k=(e,t=!0)=>(...n)=>{var o=t?j:C;o.apply(o,[e,...n])},T=(...e)=>{w||(w=Symbol(),S&&console.group.apply(console.group,[...O,...e]))},P="undefined"!=typeof window&&JSON.parse(localStorage.getItem(r+"::viewport::debug"));function D(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(";"):E(e);var t}const A=e=>(C("beforeResolve",S&&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(D(n.prefix)),delete n.prefix),n.suffix&&(o.push(D(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"),D(n[e])));e[t]=a.includes(t)?E(r):r}return e},{}));function x(e,t={}){function n(...n){T(e);let o={};"string"==typeof n[0]&&([p,i]=n.shift().split(":"),o=null==(r=d.get(p))?void 0:r[i])&&!o.category&&(o.category=p);var r=(o||{}).sampling,i=g.apply(g,[o||{},...n]),s=A({...t,...i});if(Object.hasOwnProperty.call(h,"renameProps"))for(var[a,c]of Object.entries(h.renameProps))Object.hasOwnProperty.call(s,a)&&(s[c]=s[a],delete s[a]);var f,p=l.get(e);i=(null==(n=u.get("getGlobal"))?void 0:n())||{};r&&!P?(n=Math.round(100*Math.random()),f=k("(sampling)"),n<=r&&p?(p.call(p,{...s,...i}),f("raffle won",{raffle:n,sampling:r})):f("raffle lost",{raffle:n,sampling:r})):p&&p.call(p,{...s,...i}),C("globalData",i),C("eventData",s),w=null,S&&console.groupEnd()}return n.$name=e,n}const I=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=I,F=N,U=new Map,B=new Map,H=k("IntersectionObserver"),Y=(e,t,n={})=>{const o=Object.assign({once:!0},n);U.set(e,n=>{"function"==typeof t&&t(n),o.once&&null!=J&&J.unobserve(e)}),H("start observing",e),null!=J&&J.observe(e)},J="undefined"!=typeof window?new IntersectionObserver(e=>{e.forEach(e=>{B.set(e.target,e.isIntersecting),e.isIntersecting&&(H("start debouce"),setTimeout(()=>{var t;B.get(e.target)?(H("registering event"),(t=U.get(e.target))&&t.call(t,e)):H("event aborted")},h.viewMetricsDelay))})},{}):null,q=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 i=t[r],s=n[r],a=W(i)&&W(s);if(a&&!e(i,s)||!a&&i!==s)return}return 1}}(t.oldValue,t.value)&&(j("updating value",t.arg?"dataset":"register",t.oldValue,t.value),t.arg?e.dataset.localMetrics=JSON.stringify(t.value):(q(n.componentInstance)||q(n.context)).registerTreeValue(t.value))}const G={bind:function(e,t,n){const o=q(n.componentInstance)||q(n.context);var[n,i]=((null==t?void 0:t.arg)||"").split(":"),s=null==(s=d.get(n))?void 0:s[i];const a=(n,i,s)=>a=>{(null==a?void 0:a.eventPhase)===(null==a?void 0:a.BUBBLING_PHASE)&&t.modifiers.stop&&a.stopPropagation();let c={},u={};if(s&&e.dataset[s])try{u=JSON.parse(e.dataset[s])}catch(a){console.error(a)}else if(e.dataset.metric)try{u=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)),i&&!c.action&&(c.action=i);const r=[t.arg,u,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"===i&&s?(j("config","fromConfig",s),o.registerTreeValue(s)):"config"===i&&(j("config","use key as category",n),o.registerTreeValue({category:n})),s){if((t.modifiers.viewport||t.modifiers.view)&&(j("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(I,n),{capture:!t.modifiers.bubbling,passive:!t.modifiers.bubbling,once:t.modifiers.once},!t.modifiers.bubbling)}if(t.modifiers.hover&&e.addEventListener("mouseenter",a(I),{capture:!0,passive:!0,once:t.modifiers.once}),t.modifiers.submit&&e.addEventListener("submit",a(I),{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(I)()},{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(I)()},{capture:!0,passive:!0,once:t.modifiers.once})}}},update:z,componentUpdated:z};function K(){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 i=r(I),s=i,a=r(M),c=r(R),u=r(N);return{metrics:n,metricOnClick:s,metricOnView:u,metricClick:i,metricEvent:a,metricMedia:c,metricImpression:u,metricPageview:V,registerTreeValue:function(t){var n=g(e.value||{},t);e.value=n,j("register",g(Object(o.unref)(e)||{},t))},getResolvedMetric:function(){return A(n)}}}const X=function(e,t,n,o,r,i,s,a){var c,u,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(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(s)},l._ssrRegister=c):r&&(c=a?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c&&(l.functional?(l._injectStyles=c,u=l.render,l.render=function(e,t){return c.call(t),u(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,c):[c])),{exports:e,options:l}}(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=K();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?E(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){j("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:i}=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))),f(t),p(i),Object.entries(r).forEach(([e,t])=>{v(e,t)}),e.directive("metric",G),e.component("VueMetric",X)}}},9:function(e,t,n){"use strict";n.d(t,"a",(function(){return je})),n.d(t,"b",(function(){return ce})),n.d(t,"c",(function(){return oe})),n.d(t,"d",(function(){return Ce})),n.d(t,"e",(function(){return se})),n.d(t,"f",(function(){return ae})),n.d(t,"g",(function(){return Se})),n.d(t,"h",(function(){return ue})),n.d(t,"i",(function(){return J})),n.d(t,"j",(function(){return $e})),n.d(t,"k",(function(){return ie})),n.d(t,"l",(function(){return Ee})),n.d(t,"m",(function(){return le})),n.d(t,"n",(function(){return de})),n.d(t,"o",(function(){return he})),n.d(t,"p",(function(){return fe})),n.d(t,"q",(function(){return pe})),n.d(t,"r",(function(){return me})),n.d(t,"s",(function(){return z})),n.d(t,"t",(function(){return G})),n.d(t,"u",(function(){return q})),n.d(t,"v",(function(){return W})),n.d(t,"w",(function(){return H})),n.d(t,"x",(function(){return F})),n.d(t,"y",(function(){return U})),n.d(t,"z",(function(){return p})),n.d(t,"A",(function(){return N})),n.d(t,"B",(function(){return M})),n.d(t,"C",(function(){return R})),n.d(t,"D",(function(){return B})),n.d(t,"E",(function(){return x})),n.d(t,"F",(function(){return V})),n.d(t,"G",(function(){return Y})),n.d(t,"H",(function(){return L})),n.d(t,"I",(function(){return ve})),n.d(t,"J",(function(){return ye})),n.d(t,"K",(function(){return be})),n.d(t,"L",(function(){return _e})),n(66),n(2874),n(2980),n(2983),n(57);t=n(2862);
/*!
 * VUELAND - Styled Component Fragment Factory
 * 2020 Fagner Janderson <fjsilva@uolinc.com>
 */var o=n.n(t),r=(t=n(14),n(0)),i=n.n(r),s=n(21),a=n(2889),c=n(2890),u=n.n(c),l=(c=n(45),n.n(c));c=n(31);const d={},h={styled:{},tokens:[]};function f(e,t){let n=[];return Object(a.a)(e,h)`${e=>{{var o=e.styled||{};e=e.tokens||[];let r="",i=[];return Array.isArray(t)&&(i=i.concat(t)),Array.isArray(e)&&(i=i.concat(e)),i=[...new Set(i)],(n=i.filter(e=>Object.keys(d).includes(e))).forEach(e=>r+=d[e]+";"),0<Object.keys(o).length&&(r+=Object.keys(o).map(e=>e+": "+o[e]).join(";")+";"),r}}}`}class p{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 m={},v={},g="vrw",y=async(e,t,n)=>{var o=t+"_"+e,r=(S(o,n.useLocalStorageAsCache)||{}).data;if(!$()||0<n.cacheTTL&&r)return Promise.resolve({data:r,error:r?null:new Error("Network Error. "+e)});if(!1!==n.deduping){const e=m[o]||{};if("pending"===e.status)return e.refresh(),new Promise(t=>e.on(e=>{n.cb instanceof Function&&n.cb(),t(e)}));m[o]=((e,t)=>{const n=new p;let o;const r={status:"pending",on:e=>n.on("fetch",t=>{e instanceof Function&&e(t)}),emit:e=>{n.emit("fetch",e),r.status="ended",r.schedule()},schedule:()=>{clearTimeout(o),o=window.setTimeout(()=>{n.removeAllListeners(),delete m[e]},t.expireTimeout)},refresh:()=>r.schedule()};return r})(o,{expireTimeout:n.loadingTimeout})}r=u.a;let i=null,s=null,a=!0;clearTimeout(v[e]),v[e]=setTimeout(()=>{a&&n.onLoadingSlow instanceof Function&&n.onLoadingSlow(),c()},n.loadingTimeout);const c=()=>{a=!1,clearTimeout(v[e]),delete v[e]};try{({data:i}=["get","delete"].includes(t)?await r[t](e):await r[t](e,n.body));{var[l,d,h,f=!1]=[o,i,n.cacheTTL,n.useLocalStorageAsCache];const e=h||O,t=Date.now(),r={data:d,createdAt:t,expiresAt:e?t+e:1/0};f?k(l,r):(e&&setTimeout(()=>{Date.now()>=r.expiresAt&&_(l,f)},e),w.set(l,r))}n.cb instanceof Function&&n.cb(),c(),m[o]&&m[o].emit({data:i,error:s})}catch(o){if(s=o,!n.skipRetry&&n.shouldRetryOnError)for(let o=0;o<n.errorRetryCount;o++)if(await new Promise(o=>window.setTimeout(async()=>{({data:i,error:s}=await y(e,t,{...n,skipRetry:!0})),o()},n.errorRetryInterval||3e3)),i&&!s){c();break}}return Promise.resolve({data:i,error:s})},b=async(e,t,n={},o)=>{var r=(e=>({isAttached:"string"==typeof e.attachToProp||"string"==typeof(e.attachToState||{}).id}))(n=(e=>{var t=(e,t)=>void 0!==e?e:t;return{shouldRetryOnError:t(e.shouldRetryOnError,!0),revalidateOnFocus:t(e.revalidateOnFocus,!0),revalidateOnReconnect:t(e.revalidateOnReconnect,!0),errorRetryCount:e.errorRetryCount||3,errorRetryInterval:e.errorRetryInterval||3e3,loadingTimeout:e.loadingTimeout||3e3,cacheTTL:e.cacheTTL||0,useLocalStorageAsCache:t(e.useLocalStorageAsCache,!1),onLoadingSlow:e.onLoadingSlow,onOffline:e.onOffline,attachToProp:e.attachToProp,attachToState:e.attachToState,deduping:e.deduping,store:e.store,instance:e.instance}})(n)).isAttached;const i={...n,body:o},s=()=>S(t+"_"+e,n.useLocalStorageAsCache)||{};return o=s().data,D(),r?(i.cb=()=>{var o,r=s().data;r&&(n.attachToProp?n.instance[n.attachToProp]=r:(({map:o,id:r}=n.attachToState),r||console.error(`You must enter an ID for using "attachToState". [${t}] `+e)))},$()&&(0<Object.keys(o||{}).length?y(e,t,i):await y(e,t,i)),r=()=>{$()&&y(e,t,i),i.cb()},i.revalidateOnReconnect&&window.addEventListener("online",r,!1),i.onOffline instanceof Function&&window.addEventListener("offline",i.onOffline,!1),n.revalidateOnFocus&&window.addEventListener("focus",r,!1),i.cb(),Promise.resolve({data:o})):y(e,t,i)},$=()=>void 0===navigator.onLine||navigator.onLine,w=new Map,O=0,S=(e,t=!1)=>t?C(e):w.get(e),_=(e,t=!1)=>{if(t){t=e;var n=localStorage.getItem(g);if(n)try{var o=j(n);delete o[t],localStorage.setItem(g,E(o))}catch(e){}}else w.delete(e)},E=e=>btoa(JSON.stringify(e)),j=e=>JSON.parse(atob(e)),C=(e,t)=>{var n=localStorage.getItem(g);if(n)return JSON.parse(atob(n))[e]},k=(e,t)=>{let n={};var o=localStorage.getItem(g);o?(n=j(o))[e]=t:n={[e]:t},localStorage.setItem(g,E(n)),P(e,n.expiresAt-Date.now())},T=e=>{var t=localStorage.getItem(g);t&&e(t)},P=(e,t)=>setTimeout(()=>T(t=>{try{var n=j(t),o=n[e].expiresAt;o<Date.now()?(delete n[e],localStorage.setItem(g,E(n))):P(e,o-Date.now())}catch(t){}}),t),D=()=>{T(e=>{const t=j(e);Object.keys(t).map(e=>{t[e].expiresAt<Date.now()?(delete t[e],localStorage.setItem(g,E(t))):P(e,t[e].expiresAt-Date.now())})})};n={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:i}=/\.css\b/.test(e)?{tag:"link",attr:"href"}:{tag:"script",attr:"src"},s="link"===r?{rel:"stylesheet",href:e}:{type:"text/javascript",async:"",src:e};let a=!1,c=document.querySelector(r+`[${i}="${e}"]`);if(!c||t)c=document.createElement(r),Object.entries(s).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 A=(e,t)=>e.localeCompare(t),x=(e,t)=>{let n;return Array.isArray(e)?e.map((function(e){return x(e,t)})):"[object Object]"===Object.prototype.toString.call(e)?(n={},Object.keys(e).sort(t||A).forEach((function(o){n[o]=x(e[o],t)})),n):e},I=(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+":"+I(r,t)+",":o+":"+r+",")}return 0<n.length&&(n=n.slice(0,-1)),t.delete(e),"{"+n+"}"},N=(e,t)=>o()(I(x(e)))+"{**::**}"+(t&&Array.isArray(t)?t.join("|"):"");function M(e,...t){let n;return function(){return n=e.apply(this,t)}}function R(e,t){let n;return function(...o){return e&&(n=e.apply(t||this,o),e=null),n}}function V(e){for(const n of Reflect.ownKeys(e)){var t=e[n];(t&&"object"==typeof t||"function"==typeof t)&&V(t)}return Object.freeze(e)}function L(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}const F="undefined"==typeof window,U=!1;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 H(e,t){var n=Object(r.ref)(t);return F||t.map(t=>{"string"!=typeof t||t.includes(".")||delete e[t]}),F?{...e,$disposable:n}:e}const Y=Object(c.defineStore)("core:config",()=>{const e=Object(r.ref)({extend:[]});return H({state:e,setData:R(t=>{e.value=t})},["state.system.corepath","state.metrics.ga","state.metatags","state.vueland","state.extend","state.scripts","state.rm_require","state.__eligible_config__"])});var J=(e=>(e.HTTP="http",e.HTTPS="https",e))(J||{}),q=(e=>(e.NORMAL="NORMAL",e.PREVIEW="PREVIEW",e.AMP="AMP",e.APP="APP",e))(q||{});const W=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 H({state:e,setData:R(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"])}),z=Object(c.defineStore)("core:control",()=>{const e=W().$tools,t=Object(r.ref)([]),n=Object(r.ref)([]),o=Object(r.ref)([]);if(F)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(i([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(i([t.id,t.key]));r&&(n[t.id]=r)}return n}};throw new Error("Control Store should be used only on server side!");function i(e){return["state"].concat(e).join("::")}}),G=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 H({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 G().$vueDI.resolveInstance(e)}},["data","setMainData"])});function K(e,t={}){var n,o;if(e)return({getData:n,hasBook:o}=G(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 X(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,G(this.$pinia).setData)({book:e,key:t,value:n})}function Q(){return W(this.$pinia).$helpers}function Z(){return Y(this.$pinia).state}function ee(){if(F)return G(this.$pinia).data;throw new Error("This method only works in server environment.")}var te={computed:{...Object(c.mapState)(Y,{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}=G(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:l()(!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=G(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:K,setState:X,getRequest:Q,getConfig:Z,getPageData:ee}};Object.defineProperty,Object.getOwnPropertyDescriptor;i.a.use(n),n=class extends i.a{},n=((e,t,n,o)=>{for(var r,i=t,s=e.length-1;0<=s;s--)(r=e[s])&&(i=r(i)||i);return i})([Object(s.a)({data(){var e=this.getId(),t=G(this.$pinia);return e?{data:t.components[e]}:{}},computed:te.computed,methods:{...te.methods,getComponent(e,t,n={withVersion:!0,deduping:!0,shouldRetryOnError:!0,errorRetryCount:3}){var o=this.config||{},r=`${null==(r=null==o?void 0:o.system)?void 0:r.assetsBaseUrl}?loadComponent=${e}&data=${JSON.stringify(t)}&api=true`+(n.withVersion?"&v="+o.system.app_version:"");return this.fetch.get(r,{...n,withVersion:void 0})},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(){var e;if(this.$options.methods.resolve instanceof Function){var t,n=this.$options.methods.resolve(),o=(()=>{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 e of Object.keys(o))n[e]&&(n[e][o[e]]||n[e].default)&&(t=n[e][o[e]]||n[e].default,this.$options.components[t])&&(this.$options.components[e]=this.$options.components[t])}if(this.$options.methods.styled instanceof Function){var r,i=this.$options.methods.styled();for(const e in i)i[e].as&&!this.$options.components[e]&&(r=f(i[e].as,i[e].tokens||[]),this.$options.components[e]=r)}this.fetch=(!1,e=this,{get:async(t,n={})=>b(t,"get",{...n,store:!1,instance:e}),post:async(t,n,o={})=>b(t,"post",{...o,store:!1,instance:e},n),put:async(t,n,o={})=>b(t,"put",{...o,store:!1,instance:e},n),$delete:async(t,n={})=>b(t,"delete",{...n,store:!1,instance:e})})},async created(){var e=G(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(),o=this.config;let c=(r=null==(r=null==(r=null==(r=null==o?void 0:o.system)?void 0:r.media)?void 0:r.js)?void 0:r.replace(/https?:\/\/|^\/\//,"https://").match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i))&&r[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 r=W(this.$pinia).state,s=void 0!==Object({NODE_ENV:"production",VUE_ENV:"client"}).STORYBOOK_RUN_MODE?`//${c}/assets/`:((null==(s=null==(s=o.system)?void 0:s.assets)?void 0:s.split("?")[0])||"").replace(/\/$/,""),{data:a,error:s}=await this.fetch.get(`${s}?loadComponent=${this.$options.name}&data=${JSON.stringify(Object.keys(this.$options.propsData).reduce((e,t)=>(e[t]=this.$options.propsData[t],e),{}))}&getState&configPath=${o.loadedConfig.replace(/\.json$/,"")}&forcedFormat=${r.format}&forcedUserAgent=${r["user-agent"]}&forcedDomain=`+r.domain);if(s)console.error(`Could not get state for component with stateID: "${n}" during rendering on the client`),console.error(s),this.$emit("getting-state-finished");else{e.$patch(a.state.general),a.state.general.components[n]&&i.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.')}}})],n);Object.defineProperty,Object.getOwnPropertyDescriptor
/*!
 * VUELAND - Component Interface
 * 2020 Fagner Janderson <fjsilva@uolinc.com>
 */;var ne=class extends i.a{};ne=((e,t,n,o)=>{for(var r,i=t,s=e.length-1;0<=s;s--)(r=e[s])&&(i=r(i)||i);return i})([Object(s.a)({computed:{...te.computed,...Object(c.mapState)(G,{data(e){return e.components[this.getId()]||{}}})},methods:te.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 z(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,i=setTimeout(()=>{e({error:new Error(`The execution of component "${r}" was interrupted by timeout after the "15 seconds" timeout was reached.`)})},15e3),s=l()(!0,n._data.default||{},((n.config||{}).components||{})[r]||{});n.data=l()(!0,n.data||{},s);try{o(o=>{clearTimeout(i);const a=(o,i=!1)=>{if(n.$options.render=()=>null,i&&o&&(o.message=`Component "${r}" had its execution aborted by "dispatch". Reason: "${o.message}"`),null!=(i=null==(i=null==n?void 0:n.tools)?void 0:i.log)&&i.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=l()(!0,s,o),G(n.$pinia).setDispatchData({id:r,item:t}),e(t))}).catch(e=>a(e))})}catch(e){clearTimeout(i),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 i in e){var r=e[i];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=f(o[e].as,o[e].tokens||[]),this.$options.components[e]=n)}}})],ne),s="undefined"!=typeof window?n:ne;const oe=Object(t.c)(s);
/*!
 * VUELAND - Base resources Interface
 * 2022 Fagner Janderson <fjsilva@uolinc.com>
 */class re{constructor(){this.config={extend:[]},this.setState=X,this.getState=K,this.getRequest=Q,this.getConfig=Z,this.getPageData=ee}}class ie{}var se=(e=>(e.FRONT_ENVIRONMENT="front",e.BACK_ENVIRONMENT="back",e.MIXED_ENVIRONMENT="mixed",e))(se||{});class ae extends re{}ae.___environment___="front";class ce extends re{constructor(){if(super(),this.tools=new ie,!F)throw new Error(`The "${this.constructor.name}" service supposed to be used only on server side.`)}}ce.___environment___="back";class ue extends re{constructor(){super(...arguments),this.tools=new ie}}ue.___environment___="mixed";const le=ae,de=ce,he=ue,fe=ae,pe=ce,me=ue;class ve{static install(e){U&&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}}=Y(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),F?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(x(Object.keys(r||{}).reduce((e,t)=>(e[t]=r[t],e),{}))))),{stateId:t,stateIdHash:n}}const $e=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;F&&null!=(e=this.cacheStores)&&e.length&&z(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 F&&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 Oe{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=Y(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),F&&!t&&this.resolveStore(z,!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 Se(e,...t){return function(n,o){if(F){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 _e(e,t){return new Oe(e,t)}class Ee{static install(e){U&&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 je(e,t,n,o,r,i,s,a){var c,u,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(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(s)},l._ssrRegister=c):r&&(c=a?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c&&(l.functional?(l._injectStyles=c,u=l.render,l.render=function(e,t){return c.call(t),u(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,c):[c])),{exports:e,options:l}}const Ce=Se}}]);