(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{134:function(e,t,n){"use strict";(function(e){let s,o;function i(){return void 0===s&&("undefined"!=typeof window&&window.performance?(s=!0,o=window.performance):void 0!==e&&null!=(t=e.perf_hooks)&&t.performance?(s=!0,o=e.perf_hooks.performance):s=!1),(s?o:Date).now();var t}n.d(t,"a",(function(){return i}))}).call(this,n(32))},26:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Oe})),n.d(t,"b",(function(){return be})),n.d(t,"c",(function(){return Ee})),n.d(t,"d",(function(){return v})),n.d(t,"e",(function(){return we})),n.d(t,"f",(function(){return Ce})),n.d(t,"g",(function(){return ue})),n.d(t,"h",(function(){return ae})),n.d(t,"i",(function(){return je})),n.d(t,"j",(function(){return ce})),n.d(t,"k",(function(){return le})),n.d(t,"l",(function(){return B})),n.d(t,"m",(function(){return q})),n.d(t,"n",(function(){return ke})),n.d(t,"o",(function(){return F})),n.d(t,"p",(function(){return U})),n.d(t,"q",(function(){return N})),n(90),n(107),n(2849),n(91);var s=n(105),o=n.n(s),i=n(3),r=n.n(i),a=(s=n(55),n(18)),c=n(106),l=n(54),u=n.n(l),d=n(2719),h=(l=n(2720),n.n(l)),p=(l=n(21),n.n(l));
/*!
 * VUELAND - Styled Component Fragment Factory
 * 2020 Fagner Janderson <fjsilva@uolinc.com>
 */l=n(62);const f={},m={styled:{},tokens:[]};function g(e,t){let n=[];return Object(d.a)(e,m)`${e=>{{var s=e.styled||{};e=e.tokens||[];let o="",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(f).includes(e))).forEach(e=>o+=f[e]+";"),0<Object.keys(s).length&&(o+=Object.keys(s).map(e=>e+": "+s[e]).join(";")+";"),o}}}`}class v{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 _={},y={},$="vrw",b=async(e,t,n)=>{var s=t+"_"+e,o=(j(s,n.useLocalStorageAsCache)||{}).data;if(!O()||0<n.cacheTTL&&o)return Promise.resolve({data:o,error:o?null:new Error("Network Error. "+e)});if(!1!==n.deduping){const e=_[s]||{};if("pending"===e.status)return e.refresh(),new Promise(t=>e.on(e=>{n.cb instanceof Function&&n.cb(),t(e)}));_[s]=((e,t)=>{const n=new v;let s;const o={status:"pending",on:e=>n.on("fetch",t=>{e instanceof Function&&e(t)}),emit:e=>{n.emit("fetch",e),o.status="ended",o.schedule()},schedule:()=>{clearTimeout(s),s=window.setTimeout(()=>{n.removeAllListeners(),delete _[e]},t.expireTimeout)},refresh:()=>o.schedule()};return o})(s,{expireTimeout:n.loadingTimeout})}o=h.a;let i=null,r=null,a=!0;clearTimeout(y[e]),y[e]=setTimeout(()=>{a&&n.onLoadingSlow instanceof Function&&n.onLoadingSlow(),c()},n.loadingTimeout);const c=()=>{a=!1,clearTimeout(y[e]),delete y[e]};try{({data:i}=["get","delete"].includes(t)?await o[t](e):await o[t](e,n.body)),n.store.dispatch("setCache",{id:e,data:i,method:t});{var[l,u,d,p=!1]=[s,i,n.cacheTTL,n.useLocalStorageAsCache];const e=d||k,t=Date.now(),o={data:u,createdAt:t,expiresAt:e?t+e:1/0};p?P(l,o):(e&&setTimeout(()=>{Date.now()>=o.expiresAt&&C(l,p)},e),S.set(l,o))}n.cb instanceof Function&&n.cb(),c(),_[s]&&_[s].emit({data:i,error:r})}catch(s){if(r=s,!n.skipRetry&&n.shouldRetryOnError)for(let s=0;s<n.errorRetryCount;s++)if(await new Promise(s=>window.setTimeout(async()=>{({data:i,error:r}=await b(e,t,{...n,skipRetry:!0})),s()},n.errorRetryInterval||3e3)),i&&!r){c();break}}return Promise.resolve({data:i,error:r})},w=async(e,t,n={},s)=>{var o=(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:s},r=()=>j(t+"_"+e,n.useLocalStorageAsCache)||{data:n.store.state.__cache__.request[t][e]};return s=r().data,M(),o?(i.cb=()=>{var s,o,i=r().data;i&&(n.attachToProp?n.instance[n.attachToProp]=i:(({map:s,id:o}=n.attachToState),o?n.store.dispatch("setDispatchData",{id:o,item:s instanceof Function?s(i):i}):console.error(`You must enter an ID for using "attachToState". [${t}] `+e)))},O()&&(0<Object.keys(s||{}).length?b(e,t,i):await b(e,t,i)),o=()=>{O()&&b(e,t,i),i.cb()},i.revalidateOnReconnect&&window.addEventListener("online",o,!1),i.onOffline instanceof Function&&window.addEventListener("offline",i.onOffline,!1),n.revalidateOnFocus&&window.addEventListener("focus",o,!1),i.cb(),Promise.resolve({data:s})):b(e,t,i)},O=()=>void 0===navigator.onLine||navigator.onLine,S=new Map,k=0,j=(e,t=!1)=>t?T(e):S.get(e),C=(e,t=!1)=>{if(t){t=e;var n=localStorage.getItem($);if(n)try{var s=D(n);delete s[t],localStorage.setItem($,E(s))}catch(e){}}else S.delete(e)},E=e=>btoa(JSON.stringify(e)),D=e=>JSON.parse(atob(e)),T=(e,t)=>{var n=localStorage.getItem($);if(n)return JSON.parse(atob(n))[e]},P=(e,t)=>{let n={};var s=localStorage.getItem($);s?(n=D(s))[e]=t:n={[e]:t},localStorage.setItem($,E(n)),A(e,n.expiresAt-Date.now())},x=e=>{var t=localStorage.getItem($);t&&e(t)},A=(e,t)=>setTimeout(()=>x(t=>{try{var n=D(t),s=n[e].expiresAt;s<Date.now()?(delete n[e],localStorage.setItem($,E(n))):A(e,s-Date.now())}catch(t){}}),t),M=()=>{x(e=>{const t=D(e);Object.keys(t).map(e=>{t[e].expiresAt<Date.now()?(delete t[e],localStorage.setItem($,E(t))):A(e,t[e].expiresAt-Date.now())})})},N=Object(l.defineStore)("config",()=>{const e=Object(i.ref)({});return{state:e,setConfig:t=>{e.value=t}}}),I=(r.a.use(c.a),[]),R=["fetch","setData"].concat(l=["setDispatchData","setCache","setComponentWithServerError"]),V=["setConfig","setData"].concat(l),L=(e,t)=>Object.keys(e).filter(e=>!t.includes(e)).reduce((t,n)=>(t[n]=e[n],t),{});function B(e){const{state:t=null,customStore:n}=e,s={page:{},data:{},items:{},__general__:{serverError:{}},__cache__:{request:{get:{},post:{},put:{},delete:{}}}};var o;e=(null==n?void 0:n())||{};let i={};return"function"==typeof e.state&&(o=e.state(),"[object Object]"===Object.prototype.toString.call(o))&&(i=L(o,Object.keys(s))),new c.a.Store({state:()=>({...t||{...s,...i}}),getters:{generic:e=>(t,n)=>{if(t){var s=e[t];if(s)return(n?s[n]:s)||void 0;console.trace(`Book "${t}" does not exist in the state`)}else console.trace("A book name is required when getting the state")},...L(e.getters||{},["data"])},actions:{fetch:({commit:e},t)=>((e,t,n)=>new Promise(async(s,o)=>{const i=t.$options.name,r=setTimeout(()=>{s({error:new Error(`The execution of component "${i}" was interrupted by timeout after the "15 seconds" timeout was reached.`)})},15e3),a=u()(!0,t._data.default||{},((t._data.config||{}).components||{})[i]||{}),c=(t._data.config.rm_require="uolnoticias"===t.tools.request.getParams("uol_app")?[...new Set([...I].concat(t._data.config.rm_require||[]))]:t._data.config.rm_require||[],t._data.config.rm_require);if(t.data=u()(!0,t.data||{},a),!t.$store.state.__general__.config){var l={entrypoint:i,isWeb:t.tools.userAgent.isWeb()},d=JSON.parse(JSON.stringify((t._data||{}).config||{}));d.__req__="[object Object]"===Object.prototype.toString.call(d.__req__)?{...d.__req__,...l}:l;try{delete d.system.corepath}catch(l){}try{delete d.__req__.data,delete d.__req__.headers}catch(l){}n("setConfig",d)}if(!0===(null==(l=t.$options.propsData)?void 0:l.__initiator__)&&(null==(l=null==(d=t.$store.state)?void 0:d.page)||!l.data)){let e=t.tools.getData();if(t.dispatchData)try{e=await t.dispatchData(t.tools.getData())}catch(l){t.tools.log.error({component:i,error:l})}n("setData",{setPageIsAllowed:!0,book:"page",key:"data",value:e})}try{e(e=>{var l;clearTimeout(r),e=e||{},Object.keys(e).length||((l=Array.isArray(null==(l=null==(l=null==(l=t.$store.state)?void 0:l.__general__)?void 0:l.config)?void 0:l.__state_block_list__)?null==(l=null==(l=null==(l=t.$store.state)?void 0:l.__general__)?void 0:l.config)?void 0:l.__state_block_list__:[]).push(i),t.$store.state.__general__.config.__state_block_list__=[...new Set(l)]);const d=(e,n=!1)=>{if(t.$options.render=()=>null,n&&e&&(e.message=`Component "${i}" had its execution aborted by "dispatch". Reason: "${e.message}"`),null!=(n=null==(n=null==t?void 0:t.tools)?void 0:n.log)&&n.error)try{t.tools.log.error({component:i,error:e})}catch(e){}return!0===t.$options.propsData.__initiator__?o(e):s()};if(e instanceof Error)return d(e,!0);var h=[];for(const e in(t._data.config||{}).components||{}){var p=t._data.config.components[e];Array.isArray(p.rm_require)&&p.rm_require.includes(i)&&h.push(e)}const f=[],m=e=>{e.$options.name&&f.push(e.$options.name),e.$parent&&m(e.$parent)};m(t.$parent);let g=!1;for(const e of f)h.includes(e)&&(g=!0);if(c.includes(i)||!0===g)return t.$options.render=()=>null,["beforeCreate","created","mounted"].forEach(e=>t.$options[e]=[]),t.$store.dispatch("setComponentWithServerError",{id:t.getId()}),d(new Error("Component rejected by rm_require"));var v=[];for(const e of t.__created__hook.filter(e=>"coreCreated"===e.name))v.push(new Promise((n,s)=>{try{e.apply(t),n(void 0)}catch(n){s(n)}}));Promise.all(v).then(async()=>{var o=t.__state_alias__||t._data.__state_alias__||t.$options.__id__,r=u()(!0,a,e);t.$options.propsData.ssrCache&&t.tools.LRU.set(o,r,"state"),(((t.$store.state.__general__||{}).config||{}).__state_block_list__||[]).includes(i)||n("setDispatchData",{id:o,item:r}),t.data=t.$store.state.items[o]||null,s(r)}).catch(e=>d(e))})}catch(l){clearTimeout(r),o(l)}}))(t.resolver,t.instance,e),setDispatchData({commit:e},t){e("setDispatchData",t)},setCache({commit:e},t){e("setCache",t)},setComponentWithServerError:({commit:e},t)=>e("setComponentWithServerError",t),setData:({commit:e},t)=>e("setData",t),...L(e.actions||{},R)},mutations:{setDispatchData(e,{id:t,item:n}){r.a.set(e.items,t,n)},setCache(e,{id:t,data:n,method:s}){var o=["get","post","put","delete"];o.includes(s)?r.a.set(e.__cache__.request[s],t,n):console.error(`Invalid cache (${s}) for request cache. The allowed methods are: `+o.join(", "))},setConfig(e,t){r.a.set(e.__general__,"config",t)},setComponentWithServerError(e,{id:t}){r.a.set(e.__general__.serverError,t,!0)},setData(e,{book:t,key:n,value:s}){r.a.set(e[t],n,s)},...L(e.mutations||{},V)}})}const F=(e,t,n,s={environment:"front",dependencies:{}})=>{if(e.___environment___===s.environment){var o=(s.dependencies||{}).config||(((t.$store||{}).state||{}).__general__||{}).config||{};try{t.$vueDI.registerAsSingleton(e);var i=t.$vueDI.resolveSingleton(e);i.getConfig=()=>t.getConfig(),i.getRequest=()=>t.getRequest(),i.getPageData=()=>t.getPageData(),i.getState=(e,n)=>t.getState(e,n),i.setState=(e,n,s)=>t.setState(e,n,s),i.config=N(t.$pinia),t[n]=i,t[n].config=o,"[object Object]"===Object.prototype.toString.call(s.dependencies)&&Object.keys(s.dependencies).forEach(e=>t[n][e]=s.dependencies[e])}catch(e){console.error(new Error(((t.options||{}).name||t.name)+" Error: "+e.message)),console.error(e)}}},Y=(e,t)=>e.localeCompare(t),U=(e,t)=>{let n;return Array.isArray(e)?e.map((function(e){return U(e,t)})):"[object Object]"===Object.prototype.toString.call(e)?(n={},Object.keys(e).sort(t||Y).forEach((function(s){n[s]=U(e[s],t)})),n):e},H=(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 s in e){var o;e.hasOwnProperty(s)&&(n+="object"==typeof(o=e[s])?s+":"+H(o,t)+",":s+":"+o+",")}return 0<n.length&&(n=n.slice(0,-1)),t.delete(e),"{"+n+"}"},q=(e,t)=>o()(H(U(e)))+"{**::**}"+(t&&Array.isArray(t)?t.join("|"):"");var J,W,z,X,G,Q,K,Z,ee,te,ne,se,oe,ie={};
/*!
 * VUELAND - Base resources Interface
 * 2022 Fagner Janderson <fjsilva@uolinc.com>
 */(l={get exports(){return ie},set exports(e){ie=e}}).exports=(z=/\[([^\]]+)]|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,Q=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,K={years:X=31536e6,months:G=2592e6,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1,weeks:6048e5},Z=function(e){return e instanceof oe},ee=function(e,t,n){return new oe(e,n,t.$l)},te=function(e){return W.p(e)+"s"},ne=function(e){return e<0?Math.ceil(e):Math.floor(e)},se=function(e,t){return e?e<0?{negative:!0,format:""+Math.abs(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},oe=function(){function e(e,t,n){var s=this;return this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t?ee(e*K[te(t)],this):("number"==typeof e?(this.$ms=e,this.parseFromMilliseconds()):"object"==typeof e?(Object.keys(e).forEach((function(t){s.$d[te(t)]=e[t]})),this.calMilliseconds()):"string"==typeof e&&(n=e.match(Q))&&(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)*K[n]}),0)},t.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=ne(e/X),this.$d.months=ne((e%=X)/G),this.$d.days=ne((e%=G)/864e5),this.$d.hours=ne((e%=864e5)/36e5),this.$d.minutes=ne((e%=36e5)/6e4),this.$d.seconds=ne((e%=6e4)/1e3),this.$d.milliseconds=e%=1e3},t.toISOString=function(){var e=se(this.$d.years,"Y"),t=se(this.$d.months,"M"),n=+this.$d.days||0,s=(n=(this.$d.weeks&&(n+=7*this.$d.weeks),se(n,"D")),se(this.$d.hours,"H")),o=se(this.$d.minutes,"M"),i=this.$d.seconds||0,r=(i=(this.$d.milliseconds&&(i+=this.$d.milliseconds/1e3),se(i,"S")),e.negative||t.negative||n.negative||s.negative||o.negative||i.negative),a=s.format||o.format||i.format?"T":"";return"P"==(r=(r?"-":"")+"P"+e.format+t.format+n.format+a+s.format+o.format+i.format)||"-P"==r?"P0D":r},t.toJSON=function(){return this.toISOString()},t.format=function(e){e=e||"YYYY-MM-DDTHH:mm:ss";var t={Y:this.$d.years,YY:W.s(this.$d.years,2,"0"),YYYY:W.s(this.$d.years,4,"0"),M:this.$d.months,MM:W.s(this.$d.months,2,"0"),D:this.$d.days,DD:W.s(this.$d.days,2,"0"),H:this.$d.hours,HH:W.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:W.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:W.s(this.$d.seconds,2,"0"),SSS:W.s(this.$d.milliseconds,3,"0")};return e.replace(z,(function(e,n){return n||String(t[e])}))},t.as=function(e){return this.$ms/K[te(e)]},t.get=function(e){var t=this.$ms;return"milliseconds"===(e=te(e))?t%=1e3:t="weeks"===e?ne(t/K[e]):this.$d[e],0===t?0:t},t.add=function(e,t,n){return t=t?e*K[te(t)]:(Z(e)?e:ee(e,this)).$ms,ee(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 ee(this.$ms,this)},t.humanize=function(e){return J().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){W=(J=n)().$utils(),n.duration=function(e,t){var s=n.locale();return ee(e,{$l:s},t)},n.isDuration=Z;var s=t.prototype.add,o=t.prototype.subtract;t.prototype.add=function(e,t){return Z(e)&&(e=e.asMilliseconds()),s.bind(this)(e,t)},t.prototype.subtract=function(e,t){return Z(e)&&(e=e.asMilliseconds()),o.bind(this)(e,t)}}),l=ie;class re{constructor(){this.config={}}}re.___environment___="";
/*!
 * VUELAND - Tools Interface
 * 2020 Fagner Janderson <fjsilva@uolinc.com>
 */
class ae{}class ce{}ce.___environment___="front";class le extends re{constructor(){super(...arguments),this.tools=new ae}}le.___environment___="back";class ue extends le{}ue.___environment___="mixed",
/*!
 * VUELAND - AbTool Tool
 * 2020 fjsilva <fjsilva@uolinc.com>
 */
p.a.extend(l);const de=n(2875);class he extends ce{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"];u()(!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=de.get();for(const s of Object.keys(t))if(new RegExp("^"+this.cookiePrefix).test(s)){if(Array.isArray(e)&&e.length&&!e.map(e=>""+this.cookiePrefix+e).includes(s)){de.remove(s);continue}var n=this.parseCookieValue(s).expires;this.isValidTime(n,s,!0)||de.remove(s)}}setCookiePrefix(e){return this.cookiePrefix=e,this}isValidTime(e,t,n){if((e=p()(e||this.endTime,"YYYY-MM-DD HH[:]mm")).isValid()){var s=(e=p.a.duration(e.diff(p()(new Date)))).asHours();if(this.expires=e.asDays(),0<=s)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||de.remove(this.cookieName)})(),!1}checkCookieIntegrity(){var e=this.parseCookieValue().expires;e&&e!==this.endTime&&de.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,s=[];let o=0;for(let e=0;e<n.length;e++){var i=n[e],r=t[i];r&&(s.push([i,o+r]),o+=r)}if(o){var a=Math.floor(Math.random()*o);for(let e=0;e<s.length;e++)if(s[e][1]>a)return s[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 de.set(this.cookieName,e,t),this.parseCookieValue()}parseCookieValue(e){e=de.get(e||this.cookieName);var[t,n]=(e||"").split("|");return{value:t,expires:n,raw:e}}}Object.defineProperty,Object.getOwnPropertyDescriptor;r.a.use({install:function(e){e.loadScript=e.prototype.$loadScript=function(e){return"undefined"==typeof window?Promise.reject(new Error('Calling "loadScript" from incorrect environment. Use it only on front-end.')):new Promise((function(t,n){let s=!1,o=document.querySelector('script[src="'+e+'"]');if(o){if(o.hasAttribute("data-loaded"))return void t(o)}else(o=document.createElement("script")).setAttribute("type","text/javascript"),o.setAttribute("async",""),o.setAttribute("src",e),s=!0;o.addEventListener("error",n),o.addEventListener("abort",n),o.addEventListener("load",(function(){null!=o&&o.setAttribute("data-loaded",""),t(o)})),s&&document.head.appendChild(o)}))},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 s=document.querySelector('script[src="'+e+'"]');(s?(document.head.removeChild(s),t):n)()}))}}});const pe=["__id__","ssrCache"],fe={register(e){window.globalStore=e},getStore:()=>window.globalStore};l=class extends r.a{},l=((e,t,n,s)=>{for(var o,i=t,r=e.length-1;0<=r;r--)(o=e[r])&&(i=o(i)||i);return i})([Object(s.a)({computed:{data:function(){var e=this.stateID||this.getId();return this.$store.state.items[e]||{}},...Object(c.b)({config:e=>e.__general__.config})},methods:{getId(){return this.__state_alias__||this.$options.__id__},setComponentState(e,t={override:!1}){t.id||(t.id=this.getId()),this.$store.state.items[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(this.$store.state.items).join(", ")}"`)});var n=this.getComponentState(t.id).instance;if((t=(e=t.override?e:u()(!0,this.$store.state.items[t.id],e),this.$store.dispatch("setDispatchData",{id:t.id,item:e}),n))&&t.onStateUpdate instanceof Function)try{t.onStateUpdate()}catch(e){}},getComponentState(e){e=e||this.getId();var t=this.$store.state.items[e];return t||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(this.$store.state.items).join(", ")}"`)}),JSON.parse(JSON.stringify(t))},getState(e,t){if(e)if(this.$store.state[e]){var n=this.$store.getters[(null==t?void 0:t.getter)||"generic"];if(n)return n instanceof Function?null!=t&&t.getter?n(null==t?void 0:t.prop):n(e,null==t?void 0:t.prop):n;console.trace(`Getter "${getter}" is invalid when getting state`)}else console.trace(`Book "${e}" is invalid when getting state`);else console.trace("A book name is required when getting the state")},setState(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&&(this.$store.state[e]?this.$store.dispatch("setData",{book:e,key:t,value:n}):console.trace(`Book "${e}" does not exist in the state`))},getRequest:function(){var e;const t=null==(e=this.$store.getters.generic("__general__","config"))?void 0:e.__req__;return{getParams:e=>e?t.params[e]:t.params,getDomain:()=>t.domain,getLink:()=>t.link,getUri:()=>t.uri,getProtocol:()=>t.protocol,getFormat:()=>t.format,getHeaders:()=>t.headers,getAB:()=>t.uolAB,isCMSPreview:()=>t.isMonacoPreview,isRedirect:()=>t.isRedirect,isBlog:()=>t.isBlog,isDesktop:()=>t.isWeb,isMobile:()=>!t.isWeb}},getConfig:function(){return this.$store.getters.generic("__general__","config")},getPageData:function(){return this.$store.getters.generic("page","data")},getComponent(e,t,n={withVersion:!0,deduping:!0,shouldRetryOnError:!0,errorRetryCount:3}){var s=this.getConfig()||{},o=`${null==(o=null==s?void 0:s.system)?void 0:o.assetsBaseUrl}?loadComponent=${e}&data=${JSON.stringify(t)}&api=true`+(n.withVersion?"&v="+s.system.app_version:"");return this.fetch.get(o,{...n,withVersion:void 0})},checkAndLoadStyle(){this.$store.state.__general__.config.system;var e=this.$options.name.replace(/(?!^)([A-Z]+)/g,"-$1").toLowerCase(),{system:{media:{css:t}}}=this.$store.state.__general__.config,{all:n,hash:s,inline:o}=window.__cssComponents__||{all:[],hash:new Map,inline:new Set};!(n||[]).includes(e)||o.has(this.$options.name)||document.querySelector(`link[v-style-load-after=${e}]`)||this.createLink(t+`/styles/${e}.css`,{name:e,hash:s})},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(),this.__initiator__&&this.$nextTick(()=>{(window.__async_resources||[]).forEach(e=>this.loadEmbedScript(e.attrs))})},created(){Array.isArray(this.injectedResources)&&this.injectedResources.filter(({instance:e})=>["front","mixed"].includes(e.___environment___)).forEach(({instance:e,key:t})=>F(e,this,t,{environment:e.___environment___,dependencies:{tools:this.tools}}))},async beforeCreate(){Object({NODE_ENV:"production",VUE_ENV:"client"}).STORYBOOK_RUN_MODE&&(this.$store=fe.getStore());var e,t,n=((this.$store.state||{}).__general__||{}).config||{},s=(this.$options.__config__=n,()=>{var e=this.$store.state.__general__.config||{},t=e.components||{},n=e.multipleVersions||{},s={};for(const e of Object.keys(n))for(const t of n[e])s[t]=e;for(const e of Object.keys(t)){var o=t[e].version;o&&(s[e]=o)}return s});if(this.$options.methods.resolve instanceof Function){var i,r=this.$options.methods.resolve(),a=s()||{};for(const e of Object.keys(a))r[e]&&(r[e][a[e]]||r[e].default)&&(i=r[e][a[e]]||r[e].default,this.$options.components[i])&&(this.$options.components[e]=this.$options.components[i])}this.tools?this.tools.ab=new he:this.tools={ab:new he},(s=(null==(s=this.$options.propsData)?void 0:s.stateAlias)||this.$attrs["state-alias"])&&(this.__state_alias__=s);try{this.stateID||(this.stateID=this.__state_alias__||this.$options.__id__)}catch(i){console.error(i)}if(this.$options.methods.styled instanceof Function){var c,l=this.$options.methods.styled();for(const e in l)l[e].as&&!this.$options.components[e]&&(c=g(l[e].as,l[e].tokens||[]),this.$options.components[e]=c)}try{this.$options.__id__=this.$options.name+"::"+o()(this.$options.name+JSON.stringify(U(Object.keys(this.$options.propsData).filter(e=>!pe.includes(e)).reduce((e,t)=>(e[t]=this.$options.propsData[t],e),{}))))}catch(i){console.error(i)}if(-1<window.location.search.indexOf("debug=true")&&void 0===(null==(s=null==(s=window.__INITIAL_STATE__)?void 0:s.items)?void 0:s[this.$options.__id__])&&(s=JSON.stringify(U(Object.keys(this.$options.propsData).filter(e=>!pe.includes(e)).reduce((e,t)=>(e[t]=this.$options.propsData[t],e),{}))),console.warn("[WARN STATE] Component state differs between client and server",this.$options.name,this.$options.__id__,s)),this.fetch=(e=this.$store,t=this,{get:async(n,s={})=>w(n,"get",{...s,store:e,instance:t}),post:async(n,s,o={})=>w(n,"post",{...o,store:e,instance:t},s),put:async(n,s,o={})=>w(n,"put",{...o,store:e,instance:t},s),$delete:async(n,s={})=>w(n,"delete",{...s,store:e,instance:t})}),s=this.__state_alias__||this.$options.__id__,this.$store.state.__general__.serverError[s])this.$options.render=null;else{var u,d,h=null==(h=null==(h=null==(h=null==n?void 0:n.system)?void 0:h.media)?void 0:h.js)?void 0:h.replace(/https?:\/\/|^\/\//,"https://").match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i);let e=h&&h[1];void 0!==Object({NODE_ENV:"production",VUE_ENV:"client"}).STORYBOOK_RUN_MODE&&e&&/^localhost/.test(e)&&(e+=":9898"),void 0===Object({NODE_ENV:"production",VUE_ENV:"client"}).STORYBOOK_RUN_MODE&&void 0===Object({NODE_ENV:"production",VUE_ENV:"client"}).TEST&&!this.allowedGetStateInFront||(h=(null==(h=null==(h=null==(h=this.$store.state)?void 0:h.__general__)?void 0:h.config)?void 0:h.__state_block_list__)||[],this.$store.state.items[s])||h.includes(this.$options.name)||void 0!==Object({NODE_ENV:"production",VUE_ENV:"client"}).STORYBOOK_RUN_MODE||void 0!==Object({NODE_ENV:"production",VUE_ENV:"client"}).TEST||(e?(this.$emit("getting-state-started"),h=this.$options.render,this.$options.render=null,d=n.__req__,u=void 0!==Object({NODE_ENV:"production",VUE_ENV:"client"}).STORYBOOK_RUN_MODE?`//${e}/assets/`:((null==(u=null==(u=n.system)?void 0:u.assets)?void 0:u.split("?")[0])||"").replace(/\/$/,""),({data:u,error:n}=await this.fetch.get(`${u}?loadComponent=${this.$options.name}&data=${JSON.stringify(Object.keys(this.$options.propsData).filter(e=>!e.includes("stateAlias")&&!e.includes("__id__")).reduce((e,t)=>(e[t]=this.$options.propsData[t],e),{}))}&getState&configPath=${n.loadedConfig.replace(/\.json$/,"")}&forcedFormat=${d.format}&forcedUserAgent=${d["user-agent"]}&forcedDomain=`+d.domain)),n?(console.error(`Could not get state for component with stateID: "${s}" during rendering on the client`),console.error(n),this.$store.state.items[s]||(this.$options.render=null),this.$emit("getting-state-finished")):(d=u.items[s],this.$store.dispatch("setDispatchData",{id:s,item:d}),this.$options.render=h,this.$emit("getting-state-finished"),this.$forceUpdate())):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.'))}}})],l),Object.defineProperty,Object.getOwnPropertyDescriptor;const me=["__id__","ssrCache"],ge=["tools","apis","config"];var ve=class extends r.a{},_e=(ve=((e,t,n,s)=>{for(var o,i=t,r=e.length-1;0<=r;r--)(o=e[r])&&(i=o(i)||i);return i})([Object(s.a)({data(){var e=ge.reduce((e,t)=>(e[t]=this.$root[t],e),{});return Object.seal(e.tools),e},methods:{getId(){return this.__state_alias__||this.$options.__id__},setComponentState(e,t={override:!1}){t.id||(t.id=this.getId()),this.$store.state.items[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(this.$store.state.items).join(", ")}"`)});var n=this.getComponentState(t.id).instance;if((t=(e=t.override?e:u()(!0,this.$store.state.items[t.id],e),this.$store.dispatch("setDispatchData",{id:t.id,item:e}),n))&&t.onStateUpdate instanceof Function)try{t.onStateUpdate()}catch(e){}},getComponentState(e){e=e||this.getId();var t=this.$store.state.items[e];return t||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(this.$store.state.items).join(", ")}"`)}),JSON.parse(JSON.stringify(t))},getState(e,t){if(e)if(this.$store.state[e]){var n=this.$store.getters[(null==t?void 0:t.getter)||"generic"];if(n)return n instanceof Function?null!=t&&t.getter?n(null==t?void 0:t.prop):n(e,null==t?void 0:t.prop):n;console.trace(`Getter "${getter}" is invalid when getting state`)}else console.trace(`Book "${e}" is invalid when getting state`);else console.trace("A book name is required when getting the state")},setState(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&&(this.$store.state[e]?this.$store.dispatch("setData",{book:e,key:t,value:n}):console.trace(`Book "${e}" does not exist in the state`))},getRequest:function(){const e=this.tools.request;return{getParams:e.getParams,getDomain:()=>e.domain,getLink:()=>e.link,getUri:()=>e.uri,getProtocol:()=>e.protocol,getFormat:()=>e.format,getHeaders:()=>e.headers,getAB:()=>e.uolAB,isCMSPreview:()=>e.isMonacoPreview,isRedirect:()=>e.isRedirect,isBlog:()=>e.isBlog,isDesktop:()=>"WEB"===e["user-agent"],isMobile:()=>"WEB"!==e["user-agent"]}},getConfig:function(){return this.$store.getters.generic("__general__","config")},getPageData:function(){return this.$store.getters.generic("page","data")}},serverPrefetch:async function(){var e,t;if(Array.isArray(this.injectedResources)&&this.injectedResources.filter(({instance:e})=>["back","mixed"].includes(e.___environment___)).forEach(({instance:e,key:t})=>F(e,this,t,{environment:e.___environment___,dependencies:{tools:this.tools}})),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=await this.$store.dispatch("fetch",{resolver:async e=>{if(this.dispatch)try{await this.dispatch(e)}catch(t){this.$store.dispatch("setComponentWithServerError",{id:this.getId()}),e(t)}else e()},instance:this}))?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(){var e,t;if(this.$options.methods.resolve instanceof Function){var n,s=this.$options.methods.resolve(),i=(()=>{var e=this.$store.state.__general__.config||{},t=e.components||{},n=e.multipleVersions||{},s={};for(const e of Object.keys(n))for(const t of n[e])s[t]=e;for(const e of Object.keys(t)){var o=t[e].version;o&&(s[e]=o)}return s})()||{};for(const e of Object.keys(i))s[e]&&(s[e][i[e]]||s[e].default)&&(n=s[e][i[e]]||s[e].default,this.$options.components[n])&&(this.$options.components[e]=this.$options.components[n])}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);try{this.$options.__id__=(e=this.$options.propsData,(t=this.$options.name)+"::"+o()(t+JSON.stringify(U(Object.keys(e||{}).filter(e=>!me.includes(e)).reduce((t,n)=>(t[n]=e[n],t),{})))))}catch(t){console.error(t)}this.__created__hook=[...this.$options.created],this.$options.created=[]},created:function(){var e=this.$options.name,t=((t=(this.$options.propsData.stateAlias&&(this.__state_alias__=this.$options.propsData.stateAlias),this.$parent||{})).$options||{}).name;if(e){const n=this.$tools||this.tools;t=t?n.getPrecedence(t):0;const s=(e,t=new Set)=>{let n=[];for(const i in e){var o=e[i];o.name&&!t.has(o)&&(t.add(o),n.push(o.name),(o.options||{}).components)&&(o=s(o.options.components,t),n=n.concat(o))}return n},o=(n.setPrecedence(e,t),n.setComponentDependencies(e,s(this.$options.components)),n.getPrecedence(e));this.cssFromSlotComponents.length&&this.cssFromSlotComponents.map(e=>n.setPrecedence(e,o));for(const e in this.$options.components)n.setPrecedence(e,o)}if(this.styled instanceof Function){var n,s=this.styled();for(const e in s)s[e].as&&!this.$options.components[e]&&(n=g(s[e].as,s[e].tokens||[]),this.$options.components[e]=n)}}})],ve),l="undefined"!=typeof window?l:ve,Object.defineProperty),ye=Object.getOwnPropertyDescriptor,$e=(ve=(e,t,n,s)=>{for(var o,i=1<s?void 0:s?ye(t,n):t,r=e.length-1;0<=r;r--)(o=e[r])&&(i=(s?o(t,n,i):o(i))||i);return s&&i&&_e(t,n,i),i},class extends r.a{constructor(){super(...arguments),this["state-alias"]=""}get autoCacheStrategy(){const e=this.tools||{};var t={dispatch:(t,n)=>{e.LRU.get(n,e=>this.$store.dispatch("setDispatchData",{id:n,item:e}),"state"),e.LRU.get(n,n=>e.setPrecedence(t,n+1),"precedence")}};return"undefined"==typeof window&&(t.log=e.log),t}set autoCacheStrategy(e){}});ve([Object(s.h)()],$e.prototype,"state-alias",2),ve([Object(s.h)()],$e.prototype,"__id__",2),ve([Object(s.h)({default:()=>({})})],$e.prototype,"noopProp",2),ve([Object(s.h)({default:()=>!1})],$e.prototype,"__initiator__",2),ve([Object(s.h)({default:()=>{}})],$e.prototype,"ssrCache",2),$e=ve([s.a],$e);const be=Object(a.c)($e,l);
/*!
 * VUELAND - Apis Interface
 * 2022 Fagner Janderson <fjsilva@uolinc.com>
 */class we extends re{}we.___environment___="front";class Oe extends re{constructor(){super(...arguments),this.tools=new ae}}Oe.___environment___="back";class Se{constructor(e){this.config=e,this.bindings=new Map,this.singletons=new Map,this.DEPENDENCIES=Symbol("DEPENDENCIES")}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)}resolveInstance(e){var t;if("function"!=typeof e)throw new Error(e+" must be class not a "+typeof e);var n,s,o=(e[this.DEPENDENCIES]||[]).map(this.getInstanceOf.bind(this)),i=e.$rules||[],r=(null==(t=null==(t=this.config)?void 0:t.system)?void 0:t.service)||(null==(t=null==(t=null==(t=this.config)?void 0:t.state)?void 0:t.system)?void 0:t.service);let a=e;for({services:n,instance:s}of i)if(n.includes(r)){a=s;break}return new a(...o)}registerAsSingleton(e){this.singletons.has(e)||this.singletons.set(e,null)}resolveSingleton(e){return null===this.singletons.get(e)&&this.singletons.set(e,this.resolveInstance(e)),this.singletons.get(e)}registerDependencies(e,...t){e[this.DEPENDENCIES]=t}}function ke(e){return new Se(e)}class je{static install(e){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 Ce(e){return function(t,n,s=0){var o;if(t.injectedResources||(t.injectedResources=[]),t.injectedResources.push({key:n,instance:e}),null!=(o=null==(o=null==(o=t.constructor)?void 0:o.options)?void 0:o._base)&&o.component){const e=t.created;t.created=function(...t){Array.isArray(this.injectedResources)&&this.injectedResources.forEach(({instance:e,key:t})=>F(e,this,t,{environment:"front",dependencies:{}})),e&&e.apply(this,t)}}else Object.defineProperty(t,n,{get(){var e=null==(e=t.injectedResources.find(({key:e})=>e===n))?void 0:e.instance;if(e){const t=new e;return["tools","config"].forEach(e=>{this[e]&&(t[e]=this[e])}),t}},set(){},enumerable:!0,configurable:!0})}}function Ee(e){return function(t){t.$rules=e}}}).call(this,n(32))},2681:function(e,t,n){"use strict";(function(e){function s(){return o().__VUE_DEVTOOLS_GLOBAL_HOOK__}function o(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:void 0!==e?e:{}}n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i}));const i="function"==typeof Proxy}).call(this,n(32))},2728:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"AB",(function(){return E})),n.d(t,"ComponentResolve",(function(){return D})),n.d(t,"LazyHydrate",(function(){return V})),n.d(t,"Noop",(function(){return T})),n.d(t,"RenderHtml",(function(){return A})),n.d(t,"SsrOnly",(function(){return M})),n.d(t,"components",(function(){return N})),n.d(t,"default",(function(){return I})),n(91),n(90),n(107);var s,o,i,r,a,c,l,u,d,h,p,f,m,g=n(2672),v=n(4),_=n(54),y=n.n(_),$=(_=n(21),n.n(_)),b={};
/*!
 * VUELAND - AbTool Tool
 * 2020 fjsilva <fjsilva@uolinc.com>
 */(_={get exports(){return b},set exports(e){b=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)?)?$/,l={years:r=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 o.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 s=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){s.$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/r),this.$d.months=p((e%=r)/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,s=(n=(this.$d.weeks&&(n+=7*this.$d.weeks),f(n,"D")),f(this.$d.hours,"H")),o=f(this.$d.minutes,"M"),i=this.$d.seconds||0,r=(i=(this.$d.milliseconds&&(i+=this.$d.milliseconds/1e3),f(i,"S")),e.negative||t.negative||n.negative||s.negative||o.negative||i.negative),a=s.format||o.format||i.format?"T":"";return"P"==(r=(r?"-":"")+"P"+e.format+t.format+n.format+a+s.format+o.format+i.format)||"-P"==r?"P0D":r},t.toJSON=function(){return this.toISOString()},t.format=function(e){e=e||"YYYY-MM-DDTHH:mm:ss";var t={Y:this.$d.years,YY:o.s(this.$d.years,2,"0"),YYYY:o.s(this.$d.years,4,"0"),M:this.$d.months,MM:o.s(this.$d.months,2,"0"),D:this.$d.days,DD:o.s(this.$d.days,2,"0"),H:this.$d.hours,HH:o.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:o.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:o.s(this.$d.seconds,2,"0"),SSS:o.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/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 s().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){o=(s=n)().$utils(),n.duration=function(e,t){var s=n.locale();return d(e,{$l:s},t)},n.isDuration=u;var i=t.prototype.add,r=t.prototype.subtract;t.prototype.add=function(e,t){return u(e)&&(e=e.asMilliseconds()),i.bind(this)(e,t)},t.prototype.subtract=function(e,t){return u(e)&&(e=e.asMilliseconds()),r.bind(this)(e,t)}}),_=b;$.a.extend(_);const w=n(114);class O extends v.FrontEnvironmentTool{constructor(){super(...arguments),this.chosen="default"}mount(e){const t=["testName","endTime","domain","path","draw","tag","use","sample","pick","slots","data"];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"}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(()=>{w.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)&&w.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,s=[];let o=0;for(let e=0;e<n.length;e++){var i=n[e],r=t[i];r&&(s.push([i,o+r]),o+=r)}if(o){var a=Math.floor(Math.random()*o);for(let e=0;e<s.length;e++)if(s[e][1]>a)return s[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),w.set(this.cookieName,e,t),this.parseCookieValue()}parseCookieValue(){var e=w.get(this.cookieName),[t,n,s,o]=(e||"").split("|");return{value:t,domain:n,path:s,expires:o,raw:e}}}var S=Object.defineProperty,k=Object.getOwnPropertyDescriptor,j=(_=(e,t,n,s)=>{for(var o,i=1<s?void 0:s?k(t,n):t,r=e.length-1;0<=r;r--)(o=e[r])&&(i=(s?o(t,n,i):o(i))||i);return s&&i&&S(t,n,i),i},n(114),class extends v.ComponentBase{constructor(){super(...arguments),this.chosen="default",this.classes="ab-w"}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 O).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,s,o,i,r,a){var c,l,u="function"==typeof e?e.options:e;return t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),s&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),r?(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__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},u._ssrRegister=c):o&&(c=a?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),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(v.Prop)({type:String,default:()=>"div"})],j.prototype,"tag",2),_([Object(v.Prop)({type:Object})],j.prototype,"draw",2),_([Object(v.Prop)({type:String,default:()=>"vueland-ab-cookie"})],j.prototype,"testName",2),_([Object(v.Prop)({type:String,default:()=>null})],j.prototype,"domain",2),_([Object(v.Prop)({type:String,default:()=>null})],j.prototype,"path",2),_([Object(v.Prop)({type:String,default:()=>null})],j.prototype,"always",2),_([Object(v.Prop)({type:String,default:()=>null})],j.prototype,"use",2),_([Object(v.Prop)({type:String,default:()=>null})],j.prototype,"endTime",2),_([Object(v.Prop)({type:Function,default:()=>null})],j.prototype,"sample",2),_([Object(v.Prop)({type:Function,default:()=>null})],j.prototype,"pick",2);const E=C(j=_([Object(v.Component)({name:"AB"})],j),null,null,!1,null,null,null,null).exports;Object.defineProperty,Object.getOwnPropertyDescriptor,_=class extends v.ComponentBase{constructor(){super(...arguments),this.version="Noop"}getAliasSchemaFromConfig(){var e=this.$store.state.__general__.config||{},t=e.components||{},n=e.multipleVersions||{},s={};for(const e of Object.keys(n))for(const t of n[e])s[t]=e;for(const e of Object.keys(t)){var o=t[e].version;o&&(s[e]=o)}return s}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"}dispatch(e){e({})}};const D=C(((e,t,n,s)=>{for(var o,i=t,r=e.length-1;0<=r;r--)(o=e[r])&&(i=o(i)||i);return i})([Object(v.Component)({name:"ComponentResolve"})],_),(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 v.ComponentBase{created(){}dispatch(e){e({})}};const T=C(((e,t,n,s)=>{for(var o,i=t,r=e.length-1;0<=r;r--)(o=e[r])&&(i=o(i)||i);return i})([Object(v.Component)({name:"Noop"})],j),(function(){var e=this._self._c;return this._self._setupProxy,e("div")}),[],!1,null,null,null,null).exports;var P=Object.defineProperty,x=Object.getOwnPropertyDescriptor;_=(e,t,n,s)=>{for(var o,i=1<s?void 0:s?x(t,n):t,r=e.length-1;0<=r;r--)(o=e[r])&&(i=(s?o(t,n,i):o(i))||i);return s&&i&&P(t,n,i),i};(j=class extends v.ComponentBase{dispatch(e){e({})}}).ssrOnly=!0,_([Object(v.Prop)()],j.prototype,"content",2),_([Object(v.Prop)({default:()=>!1})],j.prototype,"inline",2);const A=C(_([Object(v.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;(_=class extends v.ComponentBase{render(e){return e("div",{attrs:{ssrOnly:""}},null==(e=this.$slots.default)?void 0:e.slice(0,1))}dispatch(e){e()}}).ssrOnly=!0;const M=C(((e,t,n,s)=>{for(var o,i=t,r=e.length-1;0<=r;r--)(o=e[r])&&(i=o(i)||i);return i})([Object(v.Component)({name:"SsrOnly"})],_),null,null,!1,null,null,null,null).exports,N=Object.freeze(Object.defineProperty({__proto__:null,AB:E,ComponentResolve:D,Noop:T,RenderHtml:A,SsrOnly:M},Symbol.toStringTag,{value:"Module"})),I={_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(I);const V=g.default.default||g.default}.call(this,n(32))},2875:function(e,t,n){var s,o;
/*!
 * 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(s=o=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n,s=arguments[e];for(n in s)t[n]=s[n]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(s){function o(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(+new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var r=JSON.stringify(n);/^[\{\[]/.test(r)&&(n=r)}catch(t){}n=s.write?s.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 r(e,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],r=0;r<i.length;r++){var a=i[r].split("="),c=a.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var l=t(a[0]);c=(s.read||s)(c,l)||t(c);if(n)try{c=JSON.parse(c)}catch(e){}if(o[l]=c,e===l)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return r(e,!1)},o.getJSON=function(e){return r(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))})?s.call(t,n,t,e):s)&&(e.exports=n),e.exports=o()},3113:function(e,t,n){"use strict";(function(e){n(91),n(90),n(107),Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var s=n(2672),o=n(4);const i=n(54),r=n(21);var a,c,l,u,d,h,p,f,m,g,v,_,y,$={},b=((b={get exports(){return $},set exports(e){$=e}}).exports=(l=/\[([^\]]+)]|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,h=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,p={years:u=31536e6,months:d=2592e6,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1,weeks:6048e5},f=function(e){return e instanceof y},m=function(e,t,n){return new y(e,n,t.$l)},g=function(e){return c.p(e)+"s"},v=function(e){return e<0?Math.ceil(e):Math.floor(e)},_=function(e,t){return e?e<0?{negative:!0,format:""+Math.abs(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},y=function(){function e(e,t,n){var s=this;return this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t?m(e*p[g(t)],this):("number"==typeof e?(this.$ms=e,this.parseFromMilliseconds()):"object"==typeof e?(Object.keys(e).forEach((function(t){s.$d[g(t)]=e[t]})),this.calMilliseconds()):"string"==typeof e&&(n=e.match(h))&&(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)*p[n]}),0)},t.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=v(e/u),this.$d.months=v((e%=u)/d),this.$d.days=v((e%=d)/864e5),this.$d.hours=v((e%=864e5)/36e5),this.$d.minutes=v((e%=36e5)/6e4),this.$d.seconds=v((e%=6e4)/1e3),this.$d.milliseconds=e%=1e3},t.toISOString=function(){var e=_(this.$d.years,"Y"),t=_(this.$d.months,"M"),n=+this.$d.days||0,s=(n=(this.$d.weeks&&(n+=7*this.$d.weeks),_(n,"D")),_(this.$d.hours,"H")),o=_(this.$d.minutes,"M"),i=this.$d.seconds||0,r=(i=(this.$d.milliseconds&&(i+=this.$d.milliseconds/1e3),_(i,"S")),e.negative||t.negative||n.negative||s.negative||o.negative||i.negative),a=s.format||o.format||i.format?"T":"";return"P"==(r=(r?"-":"")+"P"+e.format+t.format+n.format+a+s.format+o.format+i.format)||"-P"==r?"P0D":r},t.toJSON=function(){return this.toISOString()},t.format=function(e){e=e||"YYYY-MM-DDTHH:mm:ss";var t={Y:this.$d.years,YY:c.s(this.$d.years,2,"0"),YYYY:c.s(this.$d.years,4,"0"),M:this.$d.months,MM:c.s(this.$d.months,2,"0"),D:this.$d.days,DD:c.s(this.$d.days,2,"0"),H:this.$d.hours,HH:c.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:c.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:c.s(this.$d.seconds,2,"0"),SSS:c.s(this.$d.milliseconds,3,"0")};return e.replace(l,(function(e,n){return n||String(t[e])}))},t.as=function(e){return this.$ms/p[g(e)]},t.get=function(e){var t=this.$ms;return"milliseconds"===(e=g(e))?t%=1e3:t="weeks"===e?v(t/p[e]):this.$d[e],0===t?0:t},t.add=function(e,t,n){return t=t?e*p[g(t)]:(f(e)?e:m(e,this)).$ms,m(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 m(this.$ms,this)},t.humanize=function(e){return a().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){c=(a=n)().$utils(),n.duration=function(e,t){var s=n.locale();return m(e,{$l:s},t)},n.isDuration=f;var s=t.prototype.add,o=t.prototype.subtract;t.prototype.add=function(e,t){return f(e)&&(e=e.asMilliseconds()),s.bind(this)(e,t)},t.prototype.subtract=function(e,t){return f(e)&&(e=e.asMilliseconds()),o.bind(this)(e,t)}}),$);
/*!
 * VUELAND - AbTool Tool
 * 2020 fjsilva <fjsilva@uolinc.com>
 */r.extend(b);const w=n(114);class O extends o.FrontEnvironmentTool{constructor(){super(...arguments),this.chosen="default"}mount(e){const t=["testName","endTime","domain","path","draw","tag","use","sample","pick","slots","data"];i(!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=r(this.endTime,"YYYY-MM-DD HH[:]mm")).isValid()){var e,t=(e=r.duration(e.diff(r(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(()=>{w.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)&&w.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,s=[];let o=0;for(let e=0;e<n.length;e++){var i=n[e],r=t[i];r&&(s.push([i,o+r]),o+=r)}if(o){var a=Math.floor(Math.random()*o);for(let e=0;e<s.length;e++)if(s[e][1]>a)return s[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),w.set(this.cookieName,e,t),this.parseCookieValue()}parseCookieValue(){var e=w.get(this.cookieName),[t,n,s,o]=(e||"").split("|");return{value:t,domain:n,path:s,expires:o,raw:e}}}var S=Object.defineProperty,k=Object.getOwnPropertyDescriptor,j=(b=(e,t,n,s)=>{for(var o,i=1<s?void 0:s?k(t,n):t,r=e.length-1;0<=r;r--)(o=e[r])&&(i=(s?o(t,n,i):o(i))||i);return s&&i&&S(t,n,i),i},n(114),class extends o.ComponentBase{constructor(){super(...arguments),this.chosen="default",this.classes="ab-w"}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 O).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,s,o,i,r,a){var c,l,u="function"==typeof e?e.options:e;return t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),s&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),r?(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__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},u._ssrRegister=c):o&&(c=a?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),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}}b([o.Prop({type:String,default:()=>"div"})],j.prototype,"tag",2),b([o.Prop({type:Object})],j.prototype,"draw",2),b([o.Prop({type:String,default:()=>"vueland-ab-cookie"})],j.prototype,"testName",2),b([o.Prop({type:String,default:()=>null})],j.prototype,"domain",2),b([o.Prop({type:String,default:()=>null})],j.prototype,"path",2),b([o.Prop({type:String,default:()=>null})],j.prototype,"always",2),b([o.Prop({type:String,default:()=>null})],j.prototype,"use",2),b([o.Prop({type:String,default:()=>null})],j.prototype,"endTime",2),b([o.Prop({type:Function,default:()=>null})],j.prototype,"sample",2),b([o.Prop({type:Function,default:()=>null})],j.prototype,"pick",2);b=C(j=b([o.Component({name:"AB"})],j),null,null,!1,null,null,null,null).exports,Object.defineProperty,Object.getOwnPropertyDescriptor,j=class extends o.ComponentBase{constructor(){super(...arguments),this.version="Noop"}getAliasSchemaFromConfig(){var e=this.$store.state.__general__.config||{},t=e.components||{},n=e.multipleVersions||{},s={};for(const e of Object.keys(n))for(const t of n[e])s[t]=e;for(const e of Object.keys(t)){var o=t[e].version;o&&(s[e]=o)}return s}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"}dispatch(e){e({})}},j=C(((e,t,n,s)=>{for(var o,i=t,r=e.length-1;0<=r;r--)(o=e[r])&&(i=o(i)||i);return i})([o.Component({name:"ComponentResolve"})],j),(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;var E,D=class extends o.ComponentBase{created(){}dispatch(e){e({})}},T=(D=C(((e,t,n,s)=>{for(var o,i=t,r=e.length-1;0<=r;r--)(o=e[r])&&(i=o(i)||i);return i})([o.Component({name:"Noop"})],D),(function(){var e=this._self._c;return this._self._setupProxy,e("div")}),[],!1,null,null,null,null).exports,Object.defineProperty),P=Object.getOwnPropertyDescriptor,x=(e,t,n,s)=>{for(var o,i=1<s?void 0:s?P(t,n):t,r=e.length-1;0<=r;r--)(o=e[r])&&(i=(s?o(t,n,i):o(i))||i);return s&&i&&T(t,n,i),i};(E=class extends o.ComponentBase{dispatch(e){e({})}}).ssrOnly=!0,x([o.Prop()],E.prototype,"content",2),x([o.Prop({default:()=>!1})],E.prototype,"inline",2),x=C(x([o.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,(E=class extends o.ComponentBase{render(e){return e("div",{attrs:{ssrOnly:""}},null==(e=this.$slots.default)?void 0:e.slice(0,1))}dispatch(e){e()}}).ssrOnly=!0,o=C(((e,t,n,s)=>{for(var o,i=t,r=e.length-1;0<=r;r--)(o=e[r])&&(i=o(i)||i);return i})([o.Component({name:"SsrOnly"})],E),null,null,!1,null,null,null,null).exports;const A=Object.freeze(Object.defineProperty({__proto__:null,AB:b,ComponentResolve:j,Noop:D,RenderHtml:x,SsrOnly:o},Symbol.toStringTag,{value:"Module"}));E={_installed:!1,install(e){if(!this._installed){this._installed=!0;for(const t in A)e.component(t,A[t])}}};let M=null;"undefined"!=typeof window?M=window.Vue:void 0!==e&&(M=e.Vue),M&&M.use(E),e=s.default||s,t.AB=b,t.ComponentResolve=j,t.LazyHydrate=e,t.Noop=D,t.RenderHtml=x,t.SsrOnly=o,t.components=A,t.default=E}).call(this,n(32))},3114:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return c})),n.d(t,"getRefsByIconList",(function(){return a})),n.d(t,"registryStyles",(function(){return o})),n.d(t,"useSvgRegistry",(function(){return i})),n(91),n(90);var s=n(3);t=n(62);const o="width: 0; height: 0; overflow: hidden",i=Object(t.defineStore)("svgRegistry",()=>{let e;const t=Object(s.ref)(0),n=new Map,i=Object(s.reactive)({});function r({lib:e,name:t},n=!0){var s;null!=(s=null==i?void 0:i[e])&&s[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(",")).join(";"):""}return"undefined"!=typeof window&&setTimeout(()=>{var e=document.getElementById("svg-registry");if(e)for(const s of Array.from(e.children)){var[t,...n]=null==(t=s.id)?void 0:t.split(/-/);r({lib:t,name:n.join("-")},!0)}},100),{size:t,list:i,registerSvg:function(s){var c;n.set(s.lib+":"+s.name,s),t.value=n.size,"undefined"==typeof window?r(s,!1):(r(s,c=!!document.getElementById(s.lib+"-"+s.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",o),document.body.appendChild(t));for(const n of e)i[n.lib][n.name]||(t.innerHTML+=n.data||"",r(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)r(t[e]),t[e].data=function({lib:e,name:t,data:n}){var s;const o=null==(s=n.match(/viewBox=["'](.*?)["']/i))?void 0:s[1];return n.replace(/<\/svg>/,"</symbol>").replace(/<svg.*?>/,n=>n.replace(/^<svg.*?>/,`<symbol id="${e}-${t}" viewBox="${o}">`)).replace(/\s+/," ")}(t[e]);return e?`<svg id="svg-registry" xmlns="http://www.w3.org/2000/svg" style="${o}">${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},{})}}});const r=function(e,t,n,s,o,i,r,a){var c,l,u="function"==typeof e?e.options:e;return t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),s&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),r?(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__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},u._ssrRegister=c):o&&(c=a?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),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(s.defineComponent)({__name:"VueSvgRegistry",setup(e){const t=i(),n=Object(s.ref)("");return Object(s.onBeforeMount)(()=>{var e;t.size&&(e=t.getSvgSymbols(),Array.isArray(e))&&(n.value=e.join(""))}),{__sfc:!0,store:t,svgs:n,registryStyles:o}}}),(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;function a(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""}const c={install(e){e.component("VueSvgRegistry",r)}}},3168:function(e,t,n){"use strict";n.r(t),n(107);t=n(3);var s=n.n(t),o=n(62),i=n(4),r=n(61),a=n(2816),c=(n(2876),n(2877),n(2728)),l=n(2817);n(2818),s.a.config.ignoredElements=["ignore","media-content"],s.a.config.silent=!0,s.a.use(o.PiniaVuePlugin),s.a.use(i.VueDI),s.a.directive("mounted",{inserted:function(e,t){t.value()}}),s.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 u=new Map,d=new ResizeObserver((e,t)=>{for(const o of e){var n=o.target;u.set(n.dataset.rid,{target:n,isInViewport:(s=o.contentRect).top>=-s.height&&s.left>=-s.width&&s.right<=(window.innerWidth||document.documentElement.clientWidth)+s.width&&s.bottom<=(window.innerHeight||document.documentElement.clientHeight)+s.height,height:o.contentRect.height}),t.unobserve(n)}var s});Array.from(document.querySelectorAll("[data-rid]")).forEach(e=>d.observe(e)),Object.defineProperty(s.a.prototype,"$renderInfo",{get:()=>u});let h=!1;const p=async()=>{if(!0!==h&&!0!==/debugDisableApp=true/.test(window.location.search)){h=!0;const[e]=window.renderStack||[],t=l.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=Object(o.createPinia)(),n=(t.state.value=window.__INITIAL_STATE__.pinia||{},delete window.__INITIAL_STATE__.pinia,Object(i.createStore)({forceClientMode:!0,state:window.__INITIAL_STATE__,customStore:a.a}));performance.measure("uol-vueland-vue-app-store","uol-vueland-vue-app-store:start"),e({store:n,pinia:t})})).then(async({store:o,pinia:a})=>{let l;performance.mark("uol-vueland-vue-app-init:start"),l=t.global?await Promise.resolve().then(n.bind(null,4))[e.component]:(await n(2878)(`./${e.component}/`+e.component.replace(/(?!^)([A-Z]+)/g,"-$1").toLowerCase())).default;try{window.__vuelandAppConfigRuntime__=o.state.__general__.config}catch(o){console.error(o)}s.a.use(r.default,{defaults:{graphProject:"jupiter"},config:(null==(u=null==(u=null==(u=o.state)?void 0:u.__general__)?void 0:u.config)?void 0:u.metrics)||{}}),new s.a({store:o,pinia:a,vueDI:Object(i.createDIContainer)(a.state.value.config),components:{[e.component]:l,...c.components},render:t=>t(l,{props:e})}).$mount("[data-server-rendered]"),performance.measure("uol-vueland-vue-app-init","uol-vueland-vue-app-init:start");var u=()=>{document.dispatchEvent(new CustomEvent("hydration:appReady")),window.dispatchEvent(new CustomEvent("scroll"))};window.requestIdleCallback?window.requestIdleCallback(u,{timeout:500}):setTimeout(u,1e3/60)})}};window.__initVueApp__=p,window.addEventListener("DOMContentLoaded",()=>p()),window.addEventListener("pageshow",()=>p(),{once:!0})},4:function(e,t,n){"use strict";n.r(t);var s=n(26),o=(n.d(t,"BackEnvironmentApi",(function(){return s.a})),n.d(t,"BackEnvironmentTool",(function(){return s.k})),n.d(t,"ComponentBase",(function(){return s.b})),n.d(t,"DepInject",(function(){return s.f})),n.d(t,"DynamicInject",(function(){return s.c})),n.d(t,"EventEmitter",(function(){return s.d})),n.d(t,"FrontEnvironmentApi",(function(){return s.e})),n.d(t,"FrontEnvironmentTool",(function(){return s.j})),n.d(t,"MixedEnvironmentTool",(function(){return s.g})),n.d(t,"Tools",(function(){return s.h})),n.d(t,"VueDI",(function(){return s.i})),n.d(t,"buildServerCacheKey",(function(){return s.m})),n.d(t,"createDIContainer",(function(){return s.n})),n.d(t,"createStore",(function(){return s.l})),n.d(t,"loadInjectable",(function(){return s.o})),n.d(t,"sort",(function(){return s.p})),n.d(t,"useConfigStore",(function(){return s.q})),n(55));n.d(t,"Component",(function(){return o.a})),n.d(t,"Vue",(function(){return o.n})),n.d(t,"Mixins",(function(){return o.e})),n.d(t,"Emit",(function(){return o.b})),n.d(t,"Inject",(function(){return o.c})),n.d(t,"InjectReactive",(function(){return o.d})),n.d(t,"Model",(function(){return o.f})),n.d(t,"ModelSync",(function(){return o.g})),n.d(t,"Prop",(function(){return o.h})),n.d(t,"PropSync",(function(){return o.i})),n.d(t,"Provide",(function(){return o.j})),n.d(t,"ProvideReactive",(function(){return o.k})),n.d(t,"Ref",(function(){return o.l})),n.d(t,"VModel",(function(){return o.m})),n.d(t,"Watch",(function(){return o.o})),n(105),n(54),n(2719),n(2720),n(21)},52:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var s=n(2681);var o=n(134);class i{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 s=e.settings[t];n[t]=s.defaultValue}const i="__vue-devtools-plugin-settings__"+e.id;let r=Object.assign({},n);try{var a=localStorage.getItem(i),c=JSON.parse(a);Object.assign(r,c)}catch(e){}this.fallbacks={getSettings:()=>r,setSettings(e){try{localStorage.setItem(i,JSON.stringify(e))}catch(e){}r=e},now:()=>Object(o.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 r(e,t){var n=e,o=Object(s.b)(),r=Object(s.a)(),a=s.c&&n.enableEarlyProxy;!r||!o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&a?(a=a?new i(n,r):null,(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:a}),a&&t(a.proxiedTarget)):r.emit("devtools-plugin:setup",e,t)}},61:function(e,t,n){"use strict";n.r(t),n.d(t,"ClickType",(function(){return v})),n.d(t,"MetricEvent",(function(){return a})),n.d(t,"SlotsArea",(function(){return _})),n.d(t,"TemplateArea",(function(){return y})),n.d(t,"VueMetric",(function(){return L})),n.d(t,"default",(function(){return B})),n.d(t,"metricOnClick",(function(){return C})),n.d(t,"metricOnView",(function(){return E})),n.d(t,"observe",(function(){return x})),n.d(t,"setConfigs",(function(){return p})),n.d(t,"setEvent",(function(){return m})),n.d(t,"setGlobals",(function(){return h})),n.d(t,"setPluginConfigs",(function(){return f})),n.d(t,"useMetric",(function(){return V})),n(91),n(90);var s=n(3);const o="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))({}),r=(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.nonInteraction="nonInteraction",e.impression="impression",e))({}),a=(e=>(e.metricOnClick="metricOnClick",e.metricOnView="metricOnView",e))(a||{});const c=new Map,l=new Map,u=new Map,d={viewMetricsDelay:2e3},h=e=>{for(var[t,n]of Object.entries(e))t in i&&n&&c.set(t,n)},p=e=>{if(e&&e.keys)for(var[t,n]of Object.entries(e.keys))u.set(t,n)},f=e=>{if(e)for(var[t,n]of Object.entries(e))d[t]=n},m=(e,t)=>{l.set(e,t)},g=(...e)=>{var t={};for(const o of e)for(var[n,s]of Object.entries(o))n in r?(t[n]=t[n]||{},"object"==typeof s?t[n]={...t[n],...s}:["string","number"].includes(typeof s)&&(t[n]={...t[n],___template:""+s})):t[n]=s.toString();return t};var v=(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))(v||{}),_=(e=>(e.HEADER_CONTEXTUAL="header-contextual",e.HEADER_SUFIX="header-sufix",e))(_||{}),y=(e=>(e.HEADER="header",e.TOPO_NOTICIA="topo-noticia",e.TEXTO_NOTICIA="texto-noticia",e.CHAMADAS="chamadas",e.RODAPE="rodape",e))(y||{});const $="undefined"!=typeof window&&JSON.parse(localStorage.getItem(o+"::debug")),b=e=>String(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[\W_]+/g,"-").toLowerCase(),w=(e,...t)=>$&&console.debug.apply(console.debug,[o,e,...t]),O=e=>(...t)=>w.apply(w,[e,...t]),S="undefined"!=typeof window&&JSON.parse(localStorage.getItem(o+"::viewport::debug")),k=e=>(O("beforeResolve")(e),Object.entries(e).reduce((e,[t,n])=>{if(["string","number"].includes(typeof n))e[t]=""+n;else{var s=[n.___template||""];n.prefix&&(s.unshift(b(n.prefix)),delete n.prefix),n.suffix&&(s.push(b(n.suffix)),delete n.suffix);let o=s.join("-");for(const e in n)"___template"!==e&&(o=o.replace(new RegExp(`\\[${e}\\]`,"ig"),b(n[e]||"")));e[t]=o}return e},{}));function j(e,t={}){return function(...n){let s={};"string"==typeof n[0]&&([p,i]=n.shift().split(":"),s=null==(o=u.get(p))?void 0:o[i])&&!s.category&&(s.category=p);var o=(s||{}).sampling,i=g.apply(g,[s||{},...n]),r=k({...t,...i,...Object.fromEntries(c)});if(Object.hasOwnProperty.call(d,"renameProps"))for(var[a,h]of Object.entries(d.renameProps))Object.hasOwnProperty.call(r,a)&&(r[h]=r[a],delete r[a]);var p=l.get(e);o&&!S?(n=Math.round(100*Math.random()),i=O("(sampling)"),n<=o&&p?(p.call(p,r),i("raffle won",{raffle:n,sampling:o})):i("raffle lost",{raffle:n,sampling:o})):p&&p.call(p,r),O(`(${e})`)(r)}}const C=j(a.metricOnClick,{action:"clique",clickType:v.INTERACAO_PADRAO}),E=j(a.metricOnView,{action:"impressao",clickType:v.IMPRESSAO,impression:1,nonInteraction:1}),D=new Map,T=new Map,P=O("IntersectionObserver"),x=(e,t,n={})=>{const s=Object.assign({once:!0},n);D.set(e,n=>{"function"==typeof t&&t(n),s.once&&null!=A&&A.unobserve(e)}),P("start observing",e),null!=A&&A.observe(e)},A="undefined"!=typeof window?new IntersectionObserver(e=>{e.forEach(e=>{T.set(e.target,e.isIntersecting),e.isIntersecting&&(P("start debouce"),setTimeout(()=>{var t;T.get(e.target)?(P("registering event"),(t=D.get(e.target))&&t.call(t,e)):P("event aborted")},d.viewMetricsDelay))})},{}):null,M=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 N(e){return null!=e&&"object"==typeof e}function I(e,t,n){N(t.value)&&!function e(t,n){var s=Object.keys(t),o=Object.keys(n);if(s.length===o.length){for(const o of s){var i=t[o],r=n[o],a=N(i)&&N(r);if(a&&!e(i,r)||!a&&i!==r)return}return 1}}(t.oldValue,t.value)&&(w("updating value",t.arg?"dataset":"register",t.oldValue,t.value),t.arg?e.dataset.localMetrics=JSON.stringify(t.value):(M(n.componentInstance)||M(n.context)).registerTreeValue(t.value))}const R={bind:function(e,t,n){const s=M(n.componentInstance)||M(n.context);var[n,i]=((null==t?void 0:t.arg)||"").split(":"),r=null==(r=u.get(n))?void 0:r[i];const a=(n,i,r)=>()=>{let a={},c={};if(r&&e.dataset[r])try{c=JSON.parse(e.dataset[r])}catch(a){console.error(a)}else if(e.dataset.metric)try{c=JSON.parse(e.dataset.metric)}catch(a){console.error(a)}if(!s)return console.warn(`VueMetrics: ${o} not found!, Did you forget to use useMetric on component setup?`),!1;var l;!1!==t.value&&("object"==typeof t.value&&(a=t.value),e.dataset.localMetrics&&(a=JSON.parse(e.dataset.localMetrics)),i&&!a.action&&(a.action=i),l=[t.arg,c,s.metrics||{},a||{}],w("beforeCompose",l),n.apply(n,l))};if(N(t.value)&&!t.arg&&s.registerTreeValue(t.value),"config"===i&&r?(w("config","fromConfig",r),s.registerTreeValue(r)):"config"===i&&(w("config","use key as category",n),s.registerTreeValue({category:n})),r){if((t.modifiers.viewport||t.modifiers.view)&&(w("viewport",e),x(e,a(E,null,"metricView"))),t.modifiers.click&&e.addEventListener("click",a(C,e.getAttribute("href")),{capture:!0,passive:!0,once:t.modifiers.once}),t.modifiers.hover&&e.addEventListener("mouseenter",a(C),{capture:!0,passive:!0,once:t.modifiers.once}),t.modifiers.submit&&e.addEventListener("submit",a(C),{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(C)()},{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(C)()},{capture:!0,passive:!0,once:t.modifiers.once})}}},update:I,componentUpdated:I};function V(){const e=Object(s.ref)({}),t=Object(s.inject)("metrics",{}),n=Object(s.computed)(()=>g(Object(s.unref)(t),Object(s.unref)(e)),{});function o(e){return function(...t){return"string"==typeof t[0]?t.splice(1,0,Object(s.unref)(n)):t.unshift(Object(s.unref)(n)),e.apply(e,t)}}Object(s.provide)("metrics",n);var i=o(C),r=o(E);return{metrics:n,metricOnClick:i,metricOnView:r,registerTreeValue:function(t){t=g(e.value||{},t),e.value=t,w("register",t)},getResolvedMetric:function(){return k(n)}}}const L=function(e,t,n,s,o,i,r,a){var c,l,u="function"==typeof e?e.options:e;return t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),s&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),r?(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__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},u._ssrRegister=c):o&&(c=a?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),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(s.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=V();return e=()=>{var e=Object.entries(t).reduce((e,[t,n])=>{var s=/(Prefix|Suffix)$/,o=t.replace(/^slotName/,"slot").replace(/(Prefix|Suffix)$/,"");return["watch"].includes(t)||(n&&s.test(t)?(e[o]=e[o]||{},e[o][null==(t=t.match(s))?void 0:t[1].toLowerCase()]="string"==typeof n?b(n):n):n&&(e[o]=e[o]||{},"object"==typeof n?e[o]={...e[o],...n}:e[o].___template=String(n))),e},{});n.registerTreeValue(e)},Object(s.onBeforeMount)(e),t.watch&&Object(s.watch)(t,e,{onTrigger(e){w("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,B={install(e,t={}){var n,s,{defaults:t,events:o,config:i}=Object.assign({defaults:{},events:{},config:{}},t);"undefined"!=typeof window&&(n='[aria-disabled="true"], [disabled] { pointer-events: none }',document.adoptedStyleSheets?((s=new CSSStyleSheet).insertRule(n),document.adoptedStyleSheets=[...document.adoptedStyleSheets,s]):((s=document.createElement("style")).innerHTML=n,document.getElementsByTagName("head")[0].appendChild(s))),h(t),p(i),Object.entries(o).forEach(([e,t])=>{m(e,t)}),e.directive("metric",R),e.component("VueMetric",L)}}}}]);