"),f=Tb(),g=f?f.createHTML(e):e;d=new pc(g,oc);if(c.nodeType===1){var k=c.tagName;if(k==="SCRIPT"||k==="STYLE")throw Error("");}c.innerHTML= d instanceof pc&&d.constructor===pc?d.j:"type_error:SafeHtml";b=b.lastChild;for(var m=[];b.firstChild;)m.push(b.removeChild(b.firstChild));return m},Mc=function(a,b,c){c=c||100;for(var d={},e=0;e-1}function $c(a,b){var c=String(this.evaluate(a)),d=String(this.evaluate(b));return c.substring(0,d.length)===d} function ad(a,b){a=this.evaluate(a);b=this.evaluate(b);switch(a){case "pageLocation":var c=H.location.href;b instanceof cb&&b.get("stripProtocol")&&(c=c.replace(/^https?:\/\//,""));return c}};var bd=function(a,b){Ra.call(this);this.Tj=a;this.nh=b};xa(bd,Ra);h=bd.prototype;h.toString=function(){return this.Tj};h.getName=function(){return this.Tj};h.Ob=function(){return new $a(Sa(this,1))};h.invoke=function(a){return this.nh.apply(new cd(this,a),Array.prototype.slice.call(arguments,1))};h.hb=function(a){try{return this.invoke.apply(this,Array.prototype.slice.call(arguments,0))}catch(b){}};var cd=function(a,b){this.nh=a;this.F=b}; cd.prototype.evaluate=function(a){var b=this.F;return Array.isArray(a)?Pa(b,a):a};cd.prototype.getName=function(){return this.nh.getName()};cd.prototype.sd=function(){return this.F.sd()};var dd=function(){this.map=new Map};dd.prototype.set=function(a,b){this.map.set(a,b)};dd.prototype.get=function(a){return this.map.get(a)};var ed=function(){this.keys=[];this.values=[]};ed.prototype.set=function(a,b){this.keys.push(a);this.values.push(b)};ed.prototype.get=function(a){var b=this.keys.indexOf(a);if(b>-1)return this.values[b]};function fd(){try{return Map?new dd:new ed}catch(a){return new ed}};var gd=function(a){if(a instanceof gd)return a;if(Xa(a))throw Error("Type of given value has an equivalent Pixie type.");this.value=a};gd.prototype.getValue=function(){return this.value};gd.prototype.toString=function(){return String(this.value)};var id=function(a){Ra.call(this);this.promise=a;this.set("then",hd(this));this.set("catch",hd(this,!0));this.set("finally",hd(this,!1,!0))};xa(id,cb);var hd=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;return new bd("",function(d,e){b&&(e=d,d=void 0);c&&(e=d);d instanceof bd||(d=void 0);e instanceof bd||(e=void 0);var f=Na(this.F),g=function(m){return function(n){return c?(m.invoke(f),a.promise):m.invoke(f,n)}},k=a.promise.then(d&&g(d),e&&g(e));return new id(k)})};function K(a,b,c){var d=fd(),e=function(g,k){for(var m=Sa(g,1),n=0;n=0;f--)if(this.has(f)&&this.get(f)===b)return f;return-1},map:function(a,b){for(var c=this.length(),d=[],e=0;ed)throw Error("TypeError: ReduceRight on List with no elements.");}for(var k=f;k>=0;k--)this.has(k)&&(e=b.invoke(a,e,this.get(k),k,this));return e},reverse:function(){for(var a=bb(this),b=a.length-1,c=0;b>=0;b--,c++)a.hasOwnProperty(b)?this.set(c,a[b]):ab(this,c);return this},shift:function(){return this.shift()},slice:function(a,b,c){var d=this.length();b===void 0&&(b=0);b=b<0?Math.max(d+b,0):Math.min(b,d);c=c===void 0?d: c<0?Math.max(d+c,0):Math.min(c,d);c=Math.max(b,c);for(var e=[],f=b;f=0){var t=bb(c);t.unshift(this.F);return ld[b].apply(a,t)}}if(a instanceof bd||a instanceof cb){if(a.has(b)){var u=a.get(b);if(u instanceof bd){var v=bb(c);v.unshift(this.F);return u.invoke.apply(u,v)}var w="TypeError: "+b+" is not a function";if(kd())throw new md(w);throw Error(w);}if(b==="toString")return a instanceof bd?a.getName():a.toString();if(b==="hasOwnProperty")return a.has.apply(a, bb(c))}if(a instanceof gd&&b==="toString")return a.toString();var x="TypeError: Object has no '"+b+"' property.";if(kd())throw new md(x);throw Error(x);}function td(a,b){a=this.evaluate(a);if(typeof a!=="string")throw Error("Invalid key name given for assignment.");var c=this.F;if(!c.has(a))throw Error("Attempting to assign to undefined value "+b);var d=this.evaluate(b);c.set(a,d);return d}function ud(){var a=Na(this.F),b=Oa(a,Array.prototype.slice.apply(arguments));if(b instanceof Ga)return b} function vd(){return od}function wd(a){for(var b=this.evaluate(a),c=0;cthis.evaluate(b)}function Td(a,b){return this.evaluate(a)>=this.evaluate(b)} function Ud(a,b){a=this.evaluate(a);b=this.evaluate(b);a instanceof gd&&(a=a.getValue());b instanceof gd&&(b=b.getValue());return a===b}function Vd(a,b){return!Ud.call(this,a,b)}function Wd(a,b,c){var d=[];this.evaluate(a)?d=this.evaluate(b):c&&(d=this.evaluate(c));var e=Oa(this.F,d);if(e instanceof Ga)return e}var Qd=!1; function Xd(a,b){return this.evaluate(a)>Number(this.evaluate(b))} function we(a,b){return Number(this.evaluate(a))>>>Number(this.evaluate(b))}function xe(a,b){return Number(this.evaluate(a))&Number(this.evaluate(b))}function ye(a,b){return Number(this.evaluate(a))^Number(this.evaluate(b))}function ze(a,b){return Number(this.evaluate(a))|Number(this.evaluate(b))}function Ae(){} function Be(a,b,c,d,e){var f=!0;try{var g=this.evaluate(c);if(g instanceof Ga)return g}catch(r){if(!(r instanceof md&&a))throw f=r instanceof md,r;var k=Na(this.F),m=new gd(r);k.add(b,m);var n=this.evaluate(d),p=Oa(k,n);if(p instanceof Ga)return p}finally{if(f&&e!==void 0){var q=this.evaluate(e);if(q instanceof Ga)return q}}};var De=function(){this.j=new Qa;Ce(this)};De.prototype.execute=function(a){return this.j.Th(a)};var Ce=function(a){var b=function(c,d){var e=new bd(String(c),d);e.La();a.j.j.set(String(c),e)};b("map",$d);b("and",Wc);b("contains",Zc);b("equals",Xc);b("or",Yc);b("startsWith",$c);b("variable",ad)};var Fe=function(){this.D=!1;this.j=new Qa;Ee(this);this.D=!0};Fe.prototype.execute=function(a){return Ge(this.j.Th(a))};var He=function(a,b,c){return Ge(a.j.Qk(b,c))};Fe.prototype.La=function(){this.j.La()}; var Ee=function(a){var b=function(c,d){var e=String(c),f=new bd(e,d);f.La();a.j.j.set(e,f)};b(0,qd);b(1,rd);b(2,sd);b(3,td);b(56,xe);b(57,ue);b(58,te);b(59,ze);b(60,ve);b(61,we);b(62,ye);b(53,ud);b(4,vd);b(5,wd);b(52,xd);b(6,yd);b(49,zd);b(7,Zd);b(8,$d);b(9,wd);b(50,Ad);b(10,Bd);b(12,Cd);b(13,Dd);b(51,Od);b(47,Gd);b(54,Hd);b(55,Id);b(63,Nd);b(64,Jd);b(65,Ld);b(66,Md);b(15,Pd);b(16,Rd);b(17,Rd);b(18,Sd);b(19,Td);b(20,Ud);b(21,Vd);b(22,Wd);b(23,Xd);b(24,Yd);b(25,ae);b(26,ce);b(27,de);b(28,ee);b(29, fe);b(45,ge);b(30,he);b(32,ie);b(33,ie);b(34,je);b(35,je);b(46,ke);b(36,le);b(43,me);b(37,ne);b(38,oe);b(39,pe);b(67,Be);b(40,qe);b(44,Ae);b(41,re);b(42,se)};Fe.prototype.sd=function(){return this.j.sd()};function Ge(a){if(a instanceof Ga||a instanceof bd||a instanceof $a||a instanceof cb||a instanceof gd||a===null||a===void 0||typeof a==="string"||typeof a==="number"||typeof a==="boolean")return a};var Ie=function(a){this.message=a};function Je(a){var b="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"[a];return b===void 0?new Ie("Value "+a+" can not be encoded in web-safe base64 dictionary."):b};function Le(a){switch(a){case 1:return"1";case 2:case 4:return"0";default:return"-"}};var Me=/^[1-9a-zA-Z_-][1-9a-c][1-9a-v]\d$/;function Ne(a,b){for(var c="",d=!0;a>7;){var e=a&31;a>>=5;d?d=!1:e|=32;c=""+Je(e)+c}a<<=2;d||(a|=32);return c=""+Je(a|b)+c};var Oe=function(){function a(b){return{toString:function(){return b}}}return{uk:a("consent"),gi:a("convert_case_to"),hi:a("convert_false_to"),ii:a("convert_null_to"),ji:a("convert_true_to"),ki:a("convert_undefined_to"),on:a("debug_mode_metadata"),oa:a("function"),Qg:a("instance_name"),Tk:a("live_only"),Uk:a("malware_disabled"),Vk:a("metadata"),Yk:a("original_activity_id"),xn:a("original_vendor_template_id"),wn:a("once_on_load"),Xk:a("once_per_event"),sj:a("once_per_load"),zn:a("priority_override"), An:a("respected_consent_types"),Aj:a("setup_tags"),se:a("tag_id"),Gj:a("teardown_tags")}}();var kf;var lf=[],mf=[],nf=[],of=[],pf=[],qf={},rf,sf;function tf(a){sf=sf||a} function uf(a){}var vf,wf=[],xf=[];function yf(a,b){var c={};c[Oe.oa]="__"+a;for(var d in b)b.hasOwnProperty(d)&&(c["vtp_"+d]=b[d]);return c} function zf(a,b,c){try{return rf(Af(a,b,c))}catch(d){JSON.stringify(a)}return 2}function Bf(a){var b=a[Oe.oa];if(!b)throw Error("Error: No function name given for function call.");return!!qf[b]} var Af=function(a,b,c){c=c||[];var d={},e;for(e in a)a.hasOwnProperty(e)&&(d[e]=Cf(a[e],b,c));return d},Cf=function(a,b,c){if(Array.isArray(a)){var d;switch(a[0]){case "function_id":return a[1];case "list":d=[];for(var e=1;e0;b--)qb(a[b].id)&&a.splice(b++,1);for(var c=a.length-1;c>0;c--)a[c].line=a[c-1].line;a.splice(0,1);return a};function Jf(a){function b(r){for(var t=0;t=20||a.K+this.H>=16384?!1:this.baseUrl=== a.baseUrl&&this.D===a.H&&this.Z(a):!0};cg.prototype.Z=function(a){var b=this;if(!this.K)return this.j===a.D;var c=Object.keys(this.ja);return c.length===Object.keys(a.ja).length&&c.every(function(d){return a.ja.hasOwnProperty(d)&&String(b.ja[d])===String(a.ja[d])})};var dg={},eg=(dg.uaa=!0,dg.uab=!0,dg.uafvl=!0,dg.uamb=!0,dg.uam=!0,dg.uap=!0,dg.uapv=!0,dg.uaw=!0,dg); var hg=function(a,b){var c=a.events;if(c.length===1)return fg(c[0],b);var d=[];a.j&&d.push(a.j);for(var e={},f=0;fw&&(v=y,w=A)});x===c.length&&(g[t]=v)});gg(g,d);b&&d.push("_s="+b);for(var k=d.join("&"),m=[],n={},p=0;p2048&&(f=c.pop(),e=c.join("&"));return{params:e,body:f}},gg=function(a,b){G(a,function(c,d){d!=null&&b.push(encodeURIComponent(c)+"="+encodeURIComponent(d))})};var ig=function(a){var b=[];G(a,function(c,d){d!=null&&b.push(encodeURIComponent(c)+"="+encodeURIComponent(String(d)))});return b.join("&")},jg=function(a,b,c,d,e){this.baseUrl=b;this.endpoint=c;this.ja=a.ja;this.Mc=a.Mc;this.lh=a.lh;this.H=d;this.D=ig(a.ja);this.j=ig(a.lh);this.K=this.j.length;if(e&&this.K>16384)throw Error("EVENT_TOO_LARGE");}; var mg=function(a,b){for(var c=0;cd.length||!g&&d.length!==e.length?0:g?Hb(d,k)&&(d===k||d.charAt(k.length)==="."):d===k)return!0}return!1},lg=/^[a-z$_][\w$]*$/i,kg=/^(?:[a-z_$][a-z_$0-9]*\.)*[a-z_$][a-z_$0-9]*(?:\.\*)?$/i; var ng=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"];function og(a,b){var c=String(a),d=String(b),e=c.length-d.length;return e>=0&&c.indexOf(d,e)===e}var pg=new vb;function qg(a,b,c){var d=c?"i":void 0;try{var e=String(b)+String(d),f=pg.get(e);f||(f=new RegExp(b,d),pg.set(e,f));return f.test(a)}catch(g){return!1}}function rg(a,b){return String(a).indexOf(String(b))>=0}function sg(a,b){return String(a)===String(b)} function tg(a,b){return Number(a)>=Number(b)}function ug(a,b){return Number(a)<=Number(b)}function vg(a,b){return Number(a)>Number(b)}function wg(a,b){return Number(a)0;case 3:return!d(c[0]); case 4:return qg(d(c[0]),d(c[1]),!1);case 5:return sg(d(c[0]),d(c[1]));case 6:return xg(d(c[0]),d(c[1]));case 7:return og(d(c[0]),d(c[1]));case 8:return rg(d(c[0]),d(c[1]));case 9:return wg(d(c[0]),d(c[1]));case 10:return ug(d(c[0]),d(c[1]));case 11:return vg(d(c[0]),d(c[1]));case 12:return tg(d(c[0]),d(c[1]));default:throw Error('Invalid boolean expression format. Expected "type" property tobe a positive integer which is less than 13.');}};function Xg(a){N(this.getName(),["message:?string"],arguments);};function Yg(a,b){N(this.getName(),["min:!number","max:!number"],arguments);return tb(a,b)};function Zg(){return(new Date).getTime()};function $g(a){if(a===null)return"null";if(a instanceof $a)return"array";if(a instanceof bd)return"function";if(a instanceof gd){var b;a=(b=a)==null?void 0:b.getValue();var c;if(((c=a)==null?void 0:c.constructor)===void 0||a.constructor.name===void 0){var d=String(a);return d.substring(8,d.length-1)}return String(a.constructor.name)}return typeof a};function ah(a){function b(c){return function(d){try{return c(d)}catch(e){(Xf||Yf.lk)&&a.call(this,e.message)}}}return{parse:b(function(c){return jd(JSON.parse(c))}),stringify:b(function(c){return JSON.stringify(K(c))})}};function bh(a){return xb(K(a,this.F))};function ch(a){return Number(K(a,this.F))};function dh(a){return a===null?"null":a===void 0?"undefined":a.toString()};function eh(a,b,c){var d=null,e=!1;return e?d:null};var Og="floor ceil round max min abs pow sqrt".split(" ");function fh(){var a={};return{Kl:function(b){return a.hasOwnProperty(b)?a[b]:void 0},ik:function(b,c){a[b]=c},reset:function(){a={}}}}function gh(a,b){return function(){var c=Array.prototype.slice.call(za.apply(0,arguments),0);c.unshift(b);return bd.prototype.invoke.apply(a,c)}} function hh(a,b){N(this.getName(),["apiName:!string","mock:?*"],arguments);} function ih(a,b){N(this.getName(),["apiName:!string","mock:!PixieMap"],arguments);};var jh={};var kh=function(a){var b=new cb;if(a instanceof $a)for(var c=a.Ob(),d=0;d>6,128|d&63):d<55296||d>=57344?b.push(224|d>>12,128|d>>6&63,128|d&63):(d=65536+((d&1023)<<10|a.charCodeAt(++c)&1023),b.push(240|d>>18,128|d>>12&63,128|d>>6&63,128|d&63))}return new Uint8Array(b)}} function vh(a){if(a===""||a==="e0")return Promise.resolve(a);var b;if((b=H.crypto)==null?0:b.subtle){if(th.test(a))return Promise.resolve(a);try{var c=uh(a);return H.crypto.subtle.digest("SHA-256",c).then(function(d){var e=Array.from(new Uint8Array(d)).map(function(f){return String.fromCharCode(f)}).join("");return H.btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}).catch(function(){return"e2"})}catch(d){return Promise.resolve("e2")}}else return Promise.resolve("e1")};function P(a){lb("GTM",a)}; var zh=function(a){var b={},c=["tv.1"],d=0;var u=c.join("~");return{Wh:{userData:b}, Ym:u,kn:d}},Bh=function(a){if(H.Promise)try{return new Promise(function(b){Ah(a,function(c,d){b({Uj:c,Qf:d})})})}catch(b){}},Ch=function(a){for(var b=["tv.1"],c=0,d=0;d,.?|/\\[\]]/g,Qh=/^\S+@\S+\.\S+$/,Ph=/^\+\d{10,15}$/,Nh=/[.~]/g,yh=/^[0-9A-Za-z_-]{43}$/,Rh={},wh=(Rh.email="em",Rh.phone_number="pn",Rh.first_name="fn", Rh.last_name="ln",Rh.street="sa",Rh.city="ct",Rh.region="rg",Rh.country="co",Rh.postal_code="pc",Rh.error_code="ec",Rh),Sh={},Fh=(Sh.email="sha256_email_address",Sh.phone_number="sha256_phone_number",Sh.first_name="sha256_first_name",Sh.last_name="sha256_last_name",Sh.street="sha256_street",Sh),xh=Object.freeze(["email","phone_number","first_name","last_name","street"]);var Q={g:{ya:"ad_personalization",P:"ad_storage",O:"ad_user_data",U:"analytics_storage",Cb:"region",Rb:"consent_updated",We:"wait_for_update",mi:"app_remove",ni:"app_store_refund",oi:"app_store_subscription_cancel",ri:"app_store_subscription_convert",si:"app_store_subscription_renew",xk:"consent_update",Zf:"add_payment_info",cg:"add_shipping_info",oc:"add_to_cart",qc:"remove_from_cart",dg:"view_cart",Sb:"begin_checkout",rc:"select_item",ib:"view_item_list",Db:"select_promotion",jb:"view_promotion", Ia:"purchase",sc:"refund",Na:"view_item",eg:"add_to_wishlist",yk:"exception",ui:"first_open",vi:"first_visit",ba:"gtag.config",Ta:"gtag.get",wi:"in_app_purchase",Tb:"page_view",zk:"screen_view",xi:"session_start",Ak:"timing_complete",Bk:"track_social",Nc:"user_engagement",Ck:"user_id_update",kb:"gclgb",Ua:"gclid",yi:"gclgs",zi:"gclst",fa:"ads_data_redaction",Ai:"gad_source",Gd:"gclid_url",Bi:"gclsrc",fg:"gbraid",Xe:"wbraid",ka:"allow_ad_personalization_signals",Ye:"allow_custom_scripts",Hd:"allow_direct_google_requests", Ze:"allow_display_features",Id:"allow_enhanced_conversions",lb:"allow_google_signals",Ca:"allow_interest_groups",Dk:"app_id",Ek:"app_installer_id",Fk:"app_name",Gk:"app_version",Eb:"auid",Ci:"auto_detection_enabled",Ub:"aw_remarketing",af:"aw_remarketing_only",Jd:"discount",Kd:"aw_feed_country",Ld:"aw_feed_language",da:"items",Md:"aw_merchant_id",gg:"aw_basket_type",Oc:"campaign_content",Pc:"campaign_id",Qc:"campaign_medium",Rc:"campaign_name",Sc:"campaign",Tc:"campaign_source",Uc:"campaign_term", nb:"client_id",Di:"rnd",hg:"consent_update_type",Ei:"content_group",Fi:"content_type",Za:"conversion_cookie_prefix",Vc:"conversion_id",ra:"conversion_linker",Gi:"conversion_linker_disabled",Vb:"conversion_api",bf:"cookie_deprecation",Va:"cookie_domain",Wa:"cookie_expires",ab:"cookie_flags",uc:"cookie_name",Fb:"cookie_path",Oa:"cookie_prefix",vc:"cookie_update",wc:"country",za:"currency",Nd:"customer_lifetime_value",Wc:"custom_map",ig:"gcldc",Od:"dclid",Hi:"debug_mode",la:"developer_id",Ii:"disable_merchant_reported_purchases", Xc:"dc_custom_params",Ji:"dc_natural_search",jg:"dynamic_event_settings",kg:"affiliation",Pd:"checkout_option",cf:"checkout_step",lg:"coupon",Yc:"item_list_name",df:"list_name",Ki:"promotions",Zc:"shipping",ef:"tax",Qd:"engagement_time_msec",Rd:"enhanced_client_id",Sd:"enhanced_conversions",mg:"enhanced_conversions_automatic_settings",Td:"estimated_delivery_date",ff:"euid_logged_in_state",bd:"event_callback",Hk:"event_category",pb:"event_developer_id_string",Ik:"event_label",xc:"event",Ud:"event_settings", Vd:"event_timeout",Jk:"description",Kk:"fatal",Li:"experiments",hf:"firebase_id",yc:"first_party_collection",Wd:"_x_20",qb:"_x_19",Mi:"fledge_drop_reason",ng:"fledge",og:"flight_error_code",pg:"flight_error_message",Ni:"fl_activity_category",Oi:"fl_activity_group",qg:"fl_advertiser_id",Pi:"fl_ar_dedupe",rg:"match_id",Qi:"fl_random_number",Ri:"tran",Si:"u",Xd:"gac_gclid",zc:"gac_wbraid",sg:"gac_wbraid_multiple_conversions",ug:"ga_restrict_domain",vg:"ga_temp_client_id",Ac:"gdpr_applies",wg:"geo_granularity", Gb:"value_callback",rb:"value_key",Bc:"_google_ng",Wb:"google_signals",xg:"google_tld",Yd:"groups",yg:"gsa_experiment_id",Ti:"gtm_up",Hb:"iframe_state",dd:"ignore_referrer",jf:"internal_traffic_results",Xb:"is_legacy_converted",Ib:"is_legacy_loaded",Zd:"is_passthrough",ed:"_lps",Pa:"language",ae:"legacy_developer_id_string",sa:"linker",Cc:"accept_incoming",tb:"decorate_forms",W:"domains",Jb:"url_position",zg:"method",Lk:"name",fd:"new_customer",Ag:"non_interaction",Ui:"optimize_id",Vi:"page_hostname", gd:"page_path",Da:"page_referrer",Kb:"page_title",Bg:"passengers",Cg:"phone_conversion_callback",Wi:"phone_conversion_country_code",Dg:"phone_conversion_css_class",Xi:"phone_conversion_ids",Eg:"phone_conversion_number",Fg:"phone_conversion_options",Gg:"_protected_audience_enabled",hd:"quantity",be:"redact_device_info",kf:"referral_exclusion_definition",Yb:"restricted_data_processing",Yi:"retoken",Mk:"sample_rate",lf:"screen_name",Lb:"screen_resolution",Zi:"search_term",Ja:"send_page_view",Zb:"send_to", jd:"server_container_url",kd:"session_duration",ce:"session_engaged",nf:"session_engaged_time",ub:"session_id",de:"session_number",pf:"_shared_user_id",ld:"delivery_postal_code",Nk:"temporary_client_id",qf:"topmost_url",aj:"tracking_id",rf:"traffic_type",Aa:"transaction_id",Mb:"transport_url",Hg:"trip_type",ac:"update",Xa:"url_passthrough",tf:"_user_agent_architecture",uf:"_user_agent_bitness",vf:"_user_agent_full_version_list",wf:"_user_agent_mobile",xf:"_user_agent_model",yf:"_user_agent_platform", zf:"_user_agent_platform_version",Af:"_user_agent_wow64",Ea:"user_data",Ig:"user_data_auto_latency",Jg:"user_data_auto_meta",Kg:"user_data_auto_multi",Lg:"user_data_auto_selectors",Mg:"user_data_auto_status",md:"user_data_mode",ee:"user_data_settings",Ba:"user_id",cb:"user_properties",bj:"_user_region",fe:"us_privacy_string",na:"value",Ng:"wbraid_multiple_conversions",kj:"_host_name",lj:"_in_page_command",mj:"_is_passthrough_cid",Nb:"non_personalized_ads",pe:"_sst_parameters",ob:"conversion_label", wa:"page_location",sb:"global_developer_id_string",Dc:"tc_privacy_string"}},Th={},Uh=Object.freeze((Th[Q.g.ka]=1,Th[Q.g.Ze]=1,Th[Q.g.Id]=1,Th[Q.g.lb]=1,Th[Q.g.da]=1,Th[Q.g.Va]=1,Th[Q.g.Wa]=1,Th[Q.g.ab]=1,Th[Q.g.uc]=1,Th[Q.g.Fb]=1,Th[Q.g.Oa]=1,Th[Q.g.vc]=1,Th[Q.g.Wc]=1,Th[Q.g.la]=1,Th[Q.g.jg]=1,Th[Q.g.bd]=1,Th[Q.g.Ud]=1,Th[Q.g.Vd]=1,Th[Q.g.yc]=1,Th[Q.g.ug]=1,Th[Q.g.Wb]=1,Th[Q.g.xg]=1,Th[Q.g.Yd]=1,Th[Q.g.jf]=1,Th[Q.g.Xb]=1,Th[Q.g.Ib]=1,Th[Q.g.sa]=1,Th[Q.g.kf]=1,Th[Q.g.Yb]=1,Th[Q.g.Ja]=1,Th[Q.g.Zb]= 1,Th[Q.g.jd]=1,Th[Q.g.kd]=1,Th[Q.g.nf]=1,Th[Q.g.ld]=1,Th[Q.g.Mb]=1,Th[Q.g.ac]=1,Th[Q.g.ee]=1,Th[Q.g.cb]=1,Th[Q.g.pe]=1,Th));Object.freeze([Q.g.wa,Q.g.Da,Q.g.Kb,Q.g.Pa,Q.g.lf,Q.g.Ba,Q.g.hf,Q.g.Ei]); var Vh={},Wh=Object.freeze((Vh[Q.g.mi]=1,Vh[Q.g.ni]=1,Vh[Q.g.oi]=1,Vh[Q.g.ri]=1,Vh[Q.g.si]=1,Vh[Q.g.ui]=1,Vh[Q.g.vi]=1,Vh[Q.g.wi]=1,Vh[Q.g.xi]=1,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1,ei[Q.g.Ja]=1,ei[Q.g.Zb]=1,ei[Q.g.jd]=1,ei[Q.g.ld]=1,ei[Q.g.Aa]=1,ei[Q.g.Mb]=1,ei[Q.g.ac]=1,ei[Q.g.Xa]=1,ei[Q.g.Ea]=1,ei[Q.g.Ba]=1,ei[Q.g.na]=1,ei)),gi={},hi=Object.freeze((gi.search="s",gi.youtube="y",gi.playstore="p",gi.shopping="h",gi.ads="a",gi.maps="m",gi));Object.freeze(Q.g);var ii={},ji=H.google_tag_manager=H.google_tag_manager||{};ii.Sg="47v0";ii.oe=Number("0")||0;ii.Ya="dataLayer";ii.nn="ChEI8JPHtQYQ+omi0YDrwcacARIlADxompJpqilJ3rLdMR4ywkA2QzlgsY2+0ffX1/BPyRHHDS3HgxoCs7w\x3d";var ki={__cl:1,__ecl:1,__ehl:1,__evl:1,__fal:1,__fil:1,__fsl:1,__hl:1,__jel:1,__lcl:1,__sdl:1,__tl:1,__ytl:1},li={__paused:1,__tg:1},mi;for(mi in ki)ki.hasOwnProperty(mi)&&(li[mi]=1);var ni=yb("true"),oi,pi=!1;pi=!0;oi=pi; var qi,ri=!1;qi=ri;var si,ti=!1;si=ti;ii.Fd="www.googletagmanager.com";var ui=""+ii.Fd+(oi?"/gtag/js":"/gtm.js"),vi=null,wi=null,xi={},yi={};function zi(){var a=ji.sequence||1;ji.sequence=a+1;return a}ii.vk="true";var Ai="";ii.Ff=Ai;var Bi=new function(){this.j="";this.H=this.D=!1;this.Qa=this.R=this.Z=this.K=""};function Ci(){var a=Bi.K.length;return Bi.K[a-1]==="/"?Bi.K.substring(0,a-1):Bi.K}function Di(a){for(var b={},c=la(a.split("|")),d=c.next();!d.done;d=c.next())b[d.value]=!0;return b}var Ei=new vb,Fi={},Gi={},Ji={name:ii.Ya,set:function(a,b){l(Kb(a,b),Fi);Hi()},get:function(a){return Ii(a,2)},reset:function(){Ei=new vb;Fi={};Hi()}};function Ii(a,b){return b!=2?Ei.get(a):Ki(a)}function Ki(a,b){var c=a.split(".");b=b||[];for(var d=Fi,e=0;e0){f=[];for(var r=0;r=0&&(m[m.length-1]="");f=m.join("/");break;case "query":f=a.search.replace("?","");e&&(f=Ti(f,e,!1));break;case "extension":var n=a.pathname.split(".");f=n.length>1?n[n.length-1]:"";f=f.split("/")[0];break;case "fragment":f=a.hash.replace("#","");break;default:f=a&&a.href}return f}function Vi(a){return a?a.replace(":","").toLowerCase():""}function Xi(a){var b="";if(a&&a.href){var c=a.href.indexOf("#");b=c<0?a.href:a.href.substring(0,c)}return b}var Yi={},Zi=0; function $i(a){var b=Yi[a];if(!b){var c=I.createElement("a");a&&(c.href=a);var d=c.pathname;d[0]!=="/"&&(a||lb("TAGGING",1),d="/"+d);var e=c.hostname.replace(Ri,"");b={href:c.href,protocol:c.protocol,host:c.host,hostname:e,pathname:d,search:c.search,hash:c.hash,port:c.port};Zi<5&&(Yi[a]=b,Zi++)}return b} function aj(a){function b(n){var p=n.split("=")[0];return d.indexOf(p)<0?n:p+"=0"}function c(n){return n.split("&").map(b).filter(function(p){return p!==void 0}).join("&")}var d="gclid dclid gbraid wbraid gclaw gcldc gclha gclgf gclgb _gl".split(" "),e=$i(a),f=a.split(/[?#]/)[0],g=e.search,k=e.hash;g[0]==="?"&&(g=g.substring(1));k[0]==="#"&&(k=k.substring(1));g=c(g);k=c(k);g!==""&&(g="?"+g);k!==""&&(k="#"+k);var m=""+f+g+k;m[m.length-1]==="/"&&(m=m.substring(0,m.length-1));return m} function bj(a){var b=$i(H.location.href),c=Ui(b,"host",!1);if(c&&c.match(Si)){var d=Ui(b,"path");if(d){var e=d.split(a+"=");if(e.length>1)return e[1].split(";")[0].split("?")[0]}}};var cj={"https://www.google.com":"/g","https://www.googleadservices.com":"/as","https://pagead2.googlesyndication.com":"/gs"};function dj(a,b){if(a){var c=""+a;c.indexOf("http://")!==0&&c.indexOf("https://")!==0&&(c="https://"+c);c[c.length-1]==="/"&&(c=c.substring(0,c.length-1));return $i(""+c+b).href}}function ej(a,b){if(Bi.D||qi)return dj(a,b)}function fj(){return!!ii.Ff&&ii.Ff.split("@@").join("")!=="SGTM_TOKEN"} function gj(a){for(var b=la([Q.g.jd,Q.g.Mb]),c=b.next();!c.done;c=b.next()){var d=T(a,c.value);if(d)return d}}function hj(a,b){return Bi.D?""+Ci()+(b?cj[a]||"":""):a};function ij(a){var b=String(a[Oe.oa]||"").replace(/_/g,"");return Hb(b,"cvt")?"cvt":b}var jj=H.location.search.indexOf("?gtm_latency=")>=0||H.location.search.indexOf("&gtm_latency=")>=0;var kj={sampleRate:"0.005000",rk:"",ln:"0.005"},lj=Math.random(),mj;if(!(mj=jj)){var nj=kj.sampleRate;mj=lj=1-Number(kj.ln);var qj=/gtag[.\/]js/,rj=/gtm[.\/]js/,sj=!1; function tj(a){if((a.scriptContainerId||"").indexOf("GTM-")>=0){var b;a:{if(a.scriptSource){for(var c=Bi.H,d=$i(a.scriptSource),e=c?d.pathname:""+d.hostname+d.pathname,f=I.scripts,g="",k=0;k=0){b=String(k);break a}g=String(k)}}if(g){b=g;break a}}b=void 0}var n=b;if(n)return sj=!0,n}var p=[].slice.call(document.scripts); return a.scriptElement?String(p.indexOf(a.scriptElement)):"-1"}function uj(a){if(sj)return"1";var b=a.scriptSource;if(b){if(qj.test(b))return"3";if(rj.test(b))return"2"}return"0"}function vj(a,b){var c=wj();c.pending||(c.pending=[]);sb(c.pending,function(d){return d.target.ctid===a.ctid&&d.target.isDestination===a.isDestination})||c.pending.push({target:a,onLoad:b})}var xj=function(){this.container={};this.destination={};this.canonical={};this.pending=[];this.siloed=[]};function wj(){var a=xc("google_tag_data",{}),b=a.tidr;b||(b=new xj,a.tidr=b);return b};var yj={},zj=!1,Sf={ctid:"G-KY1JY0C53S",canonicalContainerId:"94728999",Wj:"G-KY1JY0C53S|GT-MRMSDT2",Xj:"G-KY1JY0C53S"};yj.ke=yb("");function Aj(){var a=Bj();return zj?a.map(Cj):a}function Dj(){var a=Ej();return zj?a.map(Cj):a}function Fj(){return Gj(Sf.ctid)}function Hj(){return Gj(Sf.canonicalContainerId||"_"+Sf.ctid)}function Bj(){return Sf.Wj?Sf.Wj.split("|"):[Sf.ctid]}function Ej(){return Sf.Xj?Sf.Xj.split("|"):[]} function Kj(){var a=Lj(Mj()),b=a&&a.parent;if(b)return Lj(b)}function Lj(a){var b=wj();return a.isDestination?b.destination[a.ctid]:b.container[a.ctid]}function Gj(a){return zj?Cj(a):a}function Cj(a){return"siloed_"+a}function Nj(a){return zj?Oj(a):a}function Oj(a){a=String(a);return Hb(a,"siloed_")?a.substring(7):a} function Pj(){var a=!1;if(a){var b=wj();if(b.siloed){for(var c=[],d=Bj().map(Cj),e=Ej().map(Cj),f={},g=0;g0&&hk(!0)}var jk=tb();function kk(){jk=tb()}function lk(){dk("v","3");dk("t","t");dk("pid",function(){return String(jk)});Hc(H,"pagehide",ik);H.setInterval(kk,864E5)}function mk(a,b){if(a==="")return b;var c=Number(a);return isNaN(c)?b:c};var nk=[];function ok(a){switch(a){case 0:return 0;case 40:return 1;case 41:return 2;case 52:return 3;case 58:return 6;case 69:return 4;case 77:return 5;case 78:return 9;case 80:return 7;case 81:return 8}}function U(a){nk[a]=!0;var b=ok(a);b!==void 0&&(Pb[b]=!0)} U(28);U(24);U(25);U(26);U(27); U(42);U(62);U(49); U(59);U(31);U(14);U(86);U(13);U(91);U(85);U(53);U(70); U(6);U(43);U(4); U(66);U(82);U(57); U(56);U(68); U(95); U(92);U(69);U(5); U(58);U(77);Qb[1]=mk('1',6E4);Qb[3]=mk('10',1);Qb[2]=mk('',50); U(21); U(11);U(55);U(83); U(46);U(48); U(20);U(65);U(94);U(39); U(71);U(67); U(78);U(73); function W(a){return!!nk[a]}var sk=new function(a,b){this.j=a;this.defaultValue=b===void 0?!1:b}(1933);function tk(){var a=xc("google_tag_data",{});return a.ics=a.ics||new uk}var uk=function(){this.entries={};this.waitPeriodTimedOut=this.wasSetLate=this.accessedAny=this.accessedDefault=this.usedImplicit=this.usedUpdate=this.usedDefault=this.usedDeclare=this.active=!1;this.j=[]}; uk.prototype.default=function(a,b,c,d,e,f,g){this.usedDefault||this.usedDeclare||!this.accessedDefault&&!this.accessedAny||(this.wasSetLate=!0);this.usedDefault=this.active=!0;lb("TAGGING",19);b==null?lb("TAGGING",18):vk(this,a,b==="granted",c,d,e,f,g)};uk.prototype.waitForUpdate=function(a,b,c){for(var d=0;d0&&n.update===void 0),t={region:q,declare_region:n.declare_region,implicit:n.implicit,default:c!==void 0?c:n.default,declare:n.declare,update:n.update,quiet:r};if(e!==""||n.default!==!1)m[b]=t;r&&H.setTimeout(function(){m[b]===t&&t.quiet&&(lb("TAGGING",2),a.waitPeriodTimedOut=!0,a.clearTimeout(b,void 0,k), a.notifyListeners())},g)}};h=uk.prototype;h.clearTimeout=function(a,b,c){var d=[a],e=c.delegatedConsentTypes,f;for(f in e)e.hasOwnProperty(f)&&e[f]===a&&d.push(f);var g=this.entries[a]||{},k=this.getConsentState(a,c);if(g.quiet){g.quiet=!1;for(var m=la(d),n=m.next();!n.done;n=m.next())wk(this,n.value)}else if(b!==void 0&&k!==b)for(var p=la(d),q=p.next();!q.done;q=p.next())wk(this,q.value)}; h.update=function(a,b,c){this.usedDefault||this.usedDeclare||this.usedUpdate||!this.accessedAny||(this.wasSetLate=!0);this.usedUpdate=this.active=!0;if(b!=null){var d=this.getConsentState(a,c),e=this.entries;(e[a]=e[a]||{}).update=b==="granted";this.clearTimeout(a,d,c)}}; h.declare=function(a,b,c,d,e){this.usedDeclare=this.active=!0;var f=this.entries,g=f[a]||{},k=g.declare_region,m=c&&z(c)?c.toUpperCase():void 0;d=d.toUpperCase();e=e.toUpperCase();if(d===""||m===e||(m===d?k!==e:!m&&!k)){var n={region:g.region,declare_region:m,declare:b==="granted",implicit:g.implicit,default:g.default,update:g.update,quiet:g.quiet};if(d!==""||g.declare!==!1)f[a]=n}};h.implicit=function(a,b){this.usedImplicit=!0;var c=this.entries,d=c[a]=c[a]||{};d.implicit!==!1&&(d.implicit=b==="granted")}; h.getConsentState=function(a,b){var c=this.entries,d=c[a]||{},e=d.update;if(e!==void 0)return e?1:2;if(Rb(7)){var f=b.containerScopedDefaults[a];if(f===3)return 1;if(f===2)return 2}e=d.default;if(e!==void 0)return e?1:2;if(b==null?0:b.delegatedConsentTypes.hasOwnProperty(a)){var g=b.delegatedConsentTypes[a],k=c[g]||{};e=k.update;if(e!==void 0)return e?1:2;if(Rb(7)){var m=b.containerScopedDefaults[g];if(m===3)return 1;if(m===2)return 2}e=k.default;if(e!==void 0)return e?1:2}e=d.declare;if(e!==void 0)return e? 1:2;e=d.implicit;return e!==void 0?e?3:4:0};h.addListener=function(a,b){this.j.push({consentTypes:a,Fl:b})};var wk=function(a,b){for(var c=0;c=e.length?m(n):H.setTimeout(function(){m(c())},500)}}))};var Nk=["ad_storage","analytics_storage","ad_user_data","ad_personalization"],Ok=!1,Pk=!1;function Qk(){W(44)&&!Pk&&Ok&&(Nk.some(function(a){return Dk.containerScopedDefaults[a]!==1})||Rk("mbc"));Pk=!0}function Rk(a){pj&&(dk(a,"1"),hk())}function Sk(a){lb("HEALTH",a)};var Tk;try{Tk=JSON.parse(jb("eyIwIjoiQ0EiLCIxIjoiQ0EtT04iLCIyIjpmYWxzZSwiMyI6Imdvb2dsZS5jYSIsIjQiOiIiLCI1Ijp0cnVlLCI2IjpmYWxzZSwiNyI6ImFkX3N0b3JhZ2V8YW5hbHl0aWNzX3N0b3JhZ2V8YWRfdXNlcl9kYXRhfGFkX3BlcnNvbmFsaXphdGlvbiJ9"))}catch(a){P(123),Sk(2),Tk={}}function Uk(){return Tk["0"]||""}function Vk(){return Tk["1"]||""}function Wk(){var a=!1;a=!!Tk["2"];return a}function Xk(){return Tk["6"]!==!1}function Yk(){var a="";a=Tk["4"]||"";return a} function Zk(){var a=!1;a=!!Tk["5"];return a}function $k(){var a="";a=Tk["3"]||"";return a}var al=[Q.g.P,Q.g.U,Q.g.O,Q.g.ya],bl,cl;function dl(a){for(var b=a[Q.g.Cb],c=Array.isArray(b)?b:[b],d={Fe:0};d.Fe=0||I.location.search.indexOf("&gtm_diagnostics=")>=0,Cl=void 0; function Dl(a,b){if(b.length&&pj){var c;(c=wl)[a]!=null||(c[a]=[]);xl[a]!=null||(xl[a]=[]);var d=b.filter(function(e){return!xl[a].includes(e)});wl[a].push.apply(wl[a],oa(d));xl[a].push.apply(xl[a],oa(d));!Cl&&d.length>0&&(ek("tdc",!0),Cl=H.setTimeout(function(){hk();wl={};Cl=void 0},vl))}} function El(a,b,c){if(pj&&a==="config"){var d,e=(d=ql(b))==null?void 0:d.ma;if(!(e&&e.length>1)){var f,g=xc("google_tag_data",{});g.td||(g.td={});f=g.td;var k=l(c.K);l(c.j,k);var m=[],n;for(n in f)if(f.hasOwnProperty(n)){var p=Fl(f[n],k);p.length&&(Bl&&console.log(p),m.push(n))}m.length&&(Dl(b,m),lb("TAGGING",yl[I.readyState]||14));f[b]=k}}}function Gl(a,b){var c={},d;for(d in b)b.hasOwnProperty(d)&&(c[d]=!0);for(var e in a)a.hasOwnProperty(e)&&(c[e]=!0);return c} function Fl(a,b,c,d){c=c===void 0?{}:c;d=d===void 0?"":d;if(a===b)return[];var e=function(r,t){var u;Ua(t)==="object"?u=t[r]:Ua(t)==="array"&&(u=t[r]);return u===void 0?Al[r]:u},f=Gl(a,b),g;for(g in f)if(f.hasOwnProperty(g)){var k=(d?d+".":"")+g,m=e(g,a),n=e(g,b),p=Ua(m)==="object"||Ua(m)==="array",q=Ua(n)==="object"||Ua(n)==="array";if(p&&q)Fl(m,n,c,k);else if(p||q||m!==n)c[k]=!0}return Object.keys(c)} function Hl(){dk("tdc",function(){Cl&&(H.clearTimeout(Cl),Cl=void 0);var a=[],b;for(b in wl)wl.hasOwnProperty(b)&&a.push(b+"*"+wl[b].join("."));return a.length?a.join("!"):void 0},!1)};var Il=function(a,b,c,d,e,f,g,k,m,n,p){this.eventId=a;this.priorityId=b;this.j=c;this.R=d;this.H=e;this.K=f;this.D=g;this.eventMetadata=k;this.onSuccess=m;this.onFailure=n;this.isGtmEvent=p},Jl=function(a,b){var c=[];switch(b){case 3:c.push(a.j);c.push(a.R);c.push(a.H);c.push(a.K);c.push(a.D);break;case 2:c.push(a.j);break;case 1:c.push(a.R);c.push(a.H);c.push(a.K);c.push(a.D);break;case 4:c.push(a.j),c.push(a.R),c.push(a.H),c.push(a.K)}return c},T=function(a,b,c,d){for(var e=la(Jl(a,d===void 0?3: d)),f=e.next();!f.done;f=e.next()){var g=f.value;if(g[b]!==void 0)return g[b]}return c},Kl=function(a){for(var b={},c=Jl(a,4),d=la(c),e=d.next();!e.done;e=d.next())for(var f=Object.keys(e.value),g=la(f),k=g.next();!k.done;k=g.next())b[k.value]=1;return Object.keys(b)},Ll=function(a,b,c){function d(n){Wa(n)&&G(n,function(p,q){f=!0;e[p]=q})}var e={},f=!1,g=Jl(a,c===void 0?3:c);g.reverse();for(var k=la(g),m=k.next();!m.done;m=k.next())d(m.value[b]);return f?e:void 0},Ml=function(a){for(var b=[Q.g.Sc, Q.g.Oc,Q.g.Pc,Q.g.Qc,Q.g.Rc,Q.g.Tc,Q.g.Uc],c=Jl(a,3),d=la(c),e=d.next();!e.done;e=d.next()){for(var f=e.value,g={},k=!1,m=la(b),n=m.next();!n.done;n=m.next()){var p=n.value;f[p]!==void 0&&(g[p]=f[p],k=!0)}var q=k?g:void 0;if(q)return q}return{}},Nl=function(a,b){this.eventId=a;this.priorityId=b;this.D={};this.R={};this.j={};this.H={};this.Z={};this.K={};this.eventMetadata={};this.isGtmEvent=!1;this.onSuccess=function(){};this.onFailure=function(){}},Ol=function(a,b){a.D=b;return a},Pl=function(a, b){a.R=b;return a},Ql=function(a,b){a.j=b;return a},Rl=function(a,b){a.H=b;return a},Sl=function(a,b){a.Z=b;return a},Tl=function(a,b){a.K=b;return a},Ul=function(a,b){a.eventMetadata=b||{};return a},Vl=function(a,b){a.onSuccess=b;return a},Wl=function(a,b){a.onFailure=b;return a},Xl=function(a,b){a.isGtmEvent=b;return a},Yl=function(a){return new Il(a.eventId,a.priorityId,a.D,a.R,a.j,a.H,a.K,a.eventMetadata,a.onSuccess,a.onFailure,a.isGtmEvent)};var Zl={qk:Number("5"),Un:Number("")},$l=[];function am(a){$l.push(a)}var bm="?id="+Sf.ctid,cm=void 0,dm={},em=void 0,fm=new function(){var a=5;Zl.qk>0&&(a=Zl.qk);this.D=a;this.j=0;this.H=[]},gm=1E3; function hm(a,b){var c=cm;if(c===void 0)if(b)c=zi();else return"";for(var d=[hj("https://www.googletagmanager.com"),"/a",bm],e=la($l),f=e.next();!f.done;f=e.next())for(var g=f.value,k=g({eventId:c,mc:!!a}),m=la(k),n=m.next();!n.done;n=m.next()){var p=la(n.value),q=p.next().value,r=p.next().value;d.push("&"+q+"="+r)}d.push("&z=0");return d.join("")} function im(){em&&(H.clearTimeout(em),em=void 0);if(cm!==void 0&&jm){var a;(a=dm[cm])||(a=fm.j=2022&&im())}var lm=tb();function mm(){lm=tb()}function nm(){return[["v","3"],["t","t"],["pid",String(lm)]]}var om={};function pm(a,b,c){oj&&a!==void 0&&(om[a]=om[a]||[],om[a].push(c+b),km(a))}function qm(a){var b=a.eventId,c=a.mc,d=[],e=om[b]||[];e.length&&d.push(["epr",e.join(".")]);c&&delete om[b];return d};function rm(a,b){var c=ql(Gj(a),!0);c&&sm.register(c,b)}function tm(a,b,c,d){var e=ql(c,d.isGtmEvent);e&&sm.push("event",[b,a],e,d)}function um(a,b,c,d){var e=ql(c,d.isGtmEvent);e&&sm.push("get",[a,b],e,d)}function vm(a){var b=ql(Gj(a),!0),c;b?c=wm(sm,b).j:c={};return c}function xm(a,b){var c=ql(Gj(a),!0);if(c){var d=sm,e=l(b,null);l(wm(d,c).j,e);wm(d,c).j=e}} var ym=function(){this.R={};this.j={};this.D={};this.Z=null;this.K={};this.H=!1;this.status=1},zm=function(a,b,c,d){this.D=Cb();this.j=b;this.args=c;this.messageContext=d;this.type=a},Am=function(){this.destinations={};this.D={};this.j=[]},wm=function(a,b){var c=b.ia;return a.destinations[c]=a.destinations[c]||new ym},Bm=function(a,b,c,d){if(d.j){var e=wm(a,d.j),f=e.Z;if(f){var g=l(c,null),k=l(e.R[d.j.id],null),m=l(e.K,null),n=l(e.j,null),p=l(a.D,null),q={};if(oj)try{q=l(Fi)}catch(v){P(72)}var r= d.j.prefix,t=function(v){pm(d.messageContext.eventId,r,v)},u=Yl(Xl(Wl(Vl(Ul(Sl(Rl(Tl(Ql(Pl(Ol(new Nl(d.messageContext.eventId,d.messageContext.priorityId),g),k),m),n),p),q),d.messageContext.eventMetadata),function(){if(t){var v=t;t=void 0;v("2");if(d.messageContext.onSuccess)d.messageContext.onSuccess()}}),function(){if(t){var v=t;t=void 0;v("3");if(d.messageContext.onFailure)d.messageContext.onFailure()}}),!!d.messageContext.isGtmEvent));try{pm(d.messageContext.eventId,r,"1"),El(d.type,d.j.id,u), f(d.j.id,b,d.D,u)}catch(v){pm(d.messageContext.eventId,r,"4")}}}};Am.prototype.register=function(a,b,c){var d=wm(this,a);d.status!==3&&(d.Z=b,d.status=3,c&&(l(d.j,c),d.j=c),this.flush())};Am.prototype.push=function(a,b,c,d){c!==void 0&&(wm(this,c).status===1&&(wm(this,c).status=2,this.push("require",[{}],c,{})),wm(this,c).H&&(d.deferrable=!1));this.j.push(new zm(a,c,b,d));d.deferrable||this.flush()}; Am.prototype.flush=function(a){for(var b=this,c=[],d=!1,e={};this.j.length;e={Ec:void 0,mh:void 0}){var f=this.j[0],g=f.j;if(f.messageContext.deferrable)!g||wm(this,g).H?(f.messageContext.deferrable=!1,this.j.push(f)):c.push(f),this.j.shift();else{switch(f.type){case "require":if(wm(this,g).status!==3&&!a){this.j.push.apply(this.j,c);return}break;case "set":G(f.args[0],function(r,t){l(Kb(r,t),b.D)});break;case "config":var k=wm(this,g);e.Ec={};G(f.args[0],function(r){return function(t,u){l(Kb(t,u), r.Ec)}}(e));var m=!!e.Ec[Q.g.ac];delete e.Ec[Q.g.ac];var n=g.ia===g.id;m||(n?k.K={}:k.R[g.id]={});k.H&&m||Bm(this,Q.g.ba,e.Ec,f);k.H=!0;n?l(e.Ec,k.K):(l(e.Ec,k.R[g.id]),P(70));d=!0;break;case "event":e.mh={};G(f.args[0],function(r){return function(t,u){l(Kb(t,u),r.mh)}}(e));Bm(this,f.args[1],e.mh,f);break;case "get":var p={},q=(p[Q.g.rb]=f.args[0],p[Q.g.Gb]=f.args[1],p);Bm(this,Q.g.Ta,q,f)}this.j.shift();Cm(this,f)}}this.j.push.apply(this.j,c);d&&this.flush()}; var Cm=function(a,b){if(b.type!=="require")if(b.j)for(var c=wm(a,b.j).D[b.type]||[],d=0;d0:!1}function Tm(){return Sm()?!1:Rm("Opera")}function Um(){return Rm("Firefox")||Rm("FxiOS")}function Vm(){return Sm()?Qm("Chromium"):(Rm("Chrome")||Rm("CriOS"))&&!(Sm()?0:Rm("Edge"))||Rm("Silk")};function Wm(){return Hm?!!Om&&!!Om.platform:!1}function Xm(){return Rm("iPhone")&&!Rm("iPod")&&!Rm("iPad")}function Ym(){Xm()||Rm("iPad")||Rm("iPod")};Tm();Sm()||Rm("Trident")||Rm("MSIE");Rm("Edge");!Rm("Gecko")||Nm().toLowerCase().indexOf("webkit")!=-1&&!Rm("Edge")||Rm("Trident")||Rm("MSIE")||Rm("Edge");Nm().toLowerCase().indexOf("webkit")!=-1&&!Rm("Edge")&&Rm("Mobile");Wm()||Rm("Macintosh");Wm()||Rm("Windows");(Wm()?Om.platform==="Linux":Rm("Linux"))||Wm()||Rm("CrOS");Wm()||Rm("Android");Xm();Rm("iPad");Rm("iPod");Ym();Nm().toLowerCase().indexOf("kaios");var Zm=function(a,b,c,d){for(var e=b,f=c.length;(e=a.indexOf(c,e))>=0&&ec)e=c;d+=b.length+1;return decodeURIComponent(a.slice(d,e!==-1?e:0).replace(/\+/g," "))},bn=/[?&]($|#)/,cn=function(a,b,c){for(var d,e=a.search($m),f=0,g,k=[];(g=Zm(a,f,b,e))>=0;)k.push(a.substring(f, g)),f=Math.min(a.indexOf("&",g)+1||e,e);k.push(a.slice(f));d=k.join("").replace(bn,"$1");var m,n=c!=null?"="+encodeURIComponent(String(c)):"";var p=b+n;if(p){var q,r=d.indexOf("#");r<0&&(r=d.length);var t=d.indexOf("?"),u;t<0||t>r?(t=r,u=""):u=d.substring(t+1,r);q=[d.slice(0,t),u,d.slice(r)];var v=q[1];q[1]=p?v?v+"&"+p:p:v;m=q[0]+(q[1]?"?"+q[1]:"")+q[2]}else m=d;return m};var dn=function(a){try{var b;if(b=!!a&&a.location.href!=null)a:{try{xk(a.foo);b=!0;break a}catch(c){}b=!1}return b}catch(c){return!1}},en=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)},fn=function(a){if(H.top==H)return 0;if(a===void 0?0:a){var b=H.location.ancestorOrigins;if(b)return b[b.length-1]==H.location.origin?1:2}return dn(H.top)?1:2},gn=function(a){a=a===void 0?document:a;return a.createElement("img")};function hn(a,b,c,d){d=d===void 0?!1:d;a.google_image_requests||(a.google_image_requests=[]);var e=gn(a.document);if(c){var f=function(){if(c){var g=a.google_image_requests,k=nc(g,e);k>=0&&Array.prototype.splice.call(g,k,1)}Gm(e,"load",f);Gm(e,"error",f)};Fm(e,"load",f);Fm(e,"error",f)}d&&(e.attributionSrc="");e.src=b;a.google_image_requests.push(e)} var kn=function(a){var b;b=b===void 0?!1:b;var c="https://pagead2.googlesyndication.com/pagead/gen_204?id=tcfe";en(a,function(d,e){if(d||d===0)c+="&"+e+"="+encodeURIComponent(""+d)});jn(c,b)},jn=function(a,b){var c=window,d;b=b===void 0?!1:b;d=d===void 0?!1:d;if(c.fetch){var e={keepalive:!0,credentials:"include",redirect:"follow",method:"get",mode:"no-cors"};d&&(e.mode="cors","setAttributionReporting"in XMLHttpRequest.prototype?e.attributionReporting={eventSourceEligible:"true",triggerEligible:"false"}: e.headers={"Attribution-Reporting-Eligible":"event-source"});c.fetch(a,e)}else hn(c,a,b===void 0?!1:b,d===void 0?!1:d)};var ln=function(){this.R=this.R;this.D=this.D};ln.prototype.R=!1;ln.prototype.dispose=function(){this.R||(this.R=!0,this.Qa())};ln.prototype[Symbol.dispose]=function(){this.dispose()};ln.prototype.addOnDisposeCallback=function(a,b){this.R?b!==void 0?a.call(b):a():(this.D||(this.D=[]),this.D.push(b!==void 0?Ea(a,b):a))};ln.prototype.Qa=function(){if(this.D)for(;this.D.length;)this.D.shift()()};var mn=function(a){a.addtlConsent!==void 0&&typeof a.addtlConsent!=="string"&&(a.addtlConsent=void 0);a.gdprApplies!==void 0&&typeof a.gdprApplies!=="boolean"&&(a.gdprApplies=void 0);return a.tcString!==void 0&&typeof a.tcString!=="string"||a.listenerId!==void 0&&typeof a.listenerId!=="number"?2:a.cmpStatus&&a.cmpStatus!=="error"?0:3},nn=function(a,b){b=b===void 0?{}:b;ln.call(this);this.H=a;this.j=null;this.Z={};this.nd=0;var c;this.fc=(c=b.dn)!=null?c:500;var d;this.bc=(d=b.In)!=null?d:!1;this.K= null};xa(nn,ln);nn.prototype.Qa=function(){this.Z={};this.K&&(Gm(this.H,"message",this.K),delete this.K);delete this.Z;delete this.H;delete this.j;ln.prototype.Qa.call(this)};var pn=function(a){return typeof a.H.__tcfapi==="function"||on(a)!=null}; nn.prototype.addEventListener=function(a){var b=this,c={internalBlockOnErrors:this.bc},d=Em(function(){return a(c)}),e=0;this.fc!==-1&&(e=setTimeout(function(){c.tcString="tcunavailable";c.internalErrorState=1;d()},this.fc));var f=function(g,k){clearTimeout(e);g?(c=g,c.internalErrorState=mn(c),c.internalBlockOnErrors=b.bc,k&&c.internalErrorState===0||(c.tcString="tcunavailable",k||(c.internalErrorState=3))):(c.tcString="tcunavailable",c.internalErrorState=3);a(c)};try{qn(this,"addEventListener",f)}catch(g){c.tcString= "tcunavailable",c.internalErrorState=3,e&&(clearTimeout(e),e=0),d()}};nn.prototype.removeEventListener=function(a){a&&a.listenerId&&qn(this,"removeEventListener",null,a.listenerId)}; var sn=function(a,b,c){var d;d=d===void 0?"755":d;var e;a:{if(a.publisher&&a.publisher.restrictions){var f=a.publisher.restrictions[b];if(f!==void 0){e=f[d===void 0?"755":d];break a}}e=void 0}var g=e;if(g===0)return!1;var k=c;c===2?(k=0,g===2&&(k=1)):c===3&&(k=1,g===1&&(k=0));var m;if(k===0)if(a.purpose&&a.vendor){var n=rn(a.vendor.consents,d===void 0?"755":d);m=n&&b==="1"&&a.purposeOneTreatment&&a.publisherCC==="CH"?!0:n&&rn(a.purpose.consents,b)}else m=!0;else m=k===1?a.purpose&&a.vendor?rn(a.purpose.legitimateInterests, b)&&rn(a.vendor.legitimateInterests,d===void 0?"755":d):!0:!0;return m},rn=function(a,b){return!(!a||!a[b])},qn=function(a,b,c,d){c||(c=function(){});if(typeof a.H.__tcfapi==="function"){var e=a.H.__tcfapi;e(b,2,c,d)}else if(on(a)){tn(a);var f=++a.nd;a.Z[f]=c;if(a.j){var g={};a.j.postMessage((g.__tcfapiCall={command:b,version:2,callId:f,parameter:d},g),"*")}}else c({},!1)},on=function(a){if(a.j)return a.j;var b;a:{for(var c=a.H,d=0;d<50;++d){var e;try{e=!(!c.frames||!c.frames.__tcfapiLocator)}catch(k){e= !1}if(e){b=c;break a}var f;b:{try{var g=c.parent;if(g&&g!=c){f=g;break b}}catch(k){}f=null}if(!(c=f))break}b=null}a.j=b;return a.j},tn=function(a){a.K||(a.K=function(b){try{var c;c=(typeof b.data==="string"?JSON.parse(b.data):b.data).__tcfapiReturn;a.Z[c.callId](c.returnValue,c.success)}catch(d){}},Fm(a.H,"message",a.K))},un=function(a){if(a.gdprApplies===!1)return!0;a.internalErrorState===void 0&&(a.internalErrorState=mn(a));return a.cmpStatus==="error"||a.internalErrorState!==0?a.internalBlockOnErrors? (kn({e:String(a.internalErrorState)}),!1):!0:a.cmpStatus!=="loaded"||a.eventStatus!=="tcloaded"&&a.eventStatus!=="useractioncomplete"?!1:!0};var vn={1:0,3:0,4:0,7:3,9:3,10:3};function wn(){var a=ji.tcf||{};return ji.tcf=a}var xn=function(){return new nn(H,{dn:-1})}; function yn(){var a=wn(),b=xn();pn(b)&&!zn()&&!An()&&P(124);if(!a.active&&pn(b)){zn()&&(a.active=!0,a.kc={},a.cmpId=0,a.tcfPolicyVersion=0,tk().active=!0,a.tcString="tcunavailable");ll();try{b.addEventListener(function(c){if(c.internalErrorState!==0)Bn(a),ml([Q.g.P,Q.g.ya,Q.g.O]),tk().active=!0;else if(a.gdprApplies=c.gdprApplies,a.cmpId=c.cmpId,a.enableAdvertiserConsentMode=c.enableAdvertiserConsentMode,An()&&(a.active=!0),!Cn(c)||zn()||An()){a.tcfPolicyVersion=c.tcfPolicyVersion;var d;if(c.gdprApplies=== !1){var e={},f;for(f in vn)vn.hasOwnProperty(f)&&(e[f]=!0);d=e;b.removeEventListener(c)}else if(Cn(c)){var g={},k;for(k in vn)if(vn.hasOwnProperty(k))if(k==="1"){var m,n=c,p={Jl:!0};p=p===void 0?{}:p;m=un(n)?n.gdprApplies===!1?!0:n.tcString==="tcunavailable"?!p.Qj:(p.Qj||n.gdprApplies!==void 0||p.Jl)&&(p.Qj||typeof n.tcString==="string"&&n.tcString.length)?sn(n,"1",0):!0:!1;g["1"]=m}else g[k]=sn(c,k,vn[k]);d=g}if(d){a.tcString=c.tcString||"tcempty";a.kc=d;var q={},r=(q[Q.g.P]=a.kc["1"]?"granted": "denied",q);a.gdprApplies!==!0?(ml([Q.g.P,Q.g.ya,Q.g.O]),tk().active=!0):(r[Q.g.ya]=a.kc["3"]&&a.kc["4"]?"granted":"denied",typeof a.tcfPolicyVersion==="number"&&a.tcfPolicyVersion>=4?r[Q.g.O]=a.kc["1"]&&a.kc["7"]?"granted":"denied":ml([Q.g.O]),gl(r,{eventId:0},{gdprApplies:a?a.gdprApplies:void 0,tcString:Dn()||""}))}}else ml([Q.g.P,Q.g.ya,Q.g.O])})}catch(c){Bn(a),ml([Q.g.P,Q.g.ya,Q.g.O]),tk().active=!0}}}function Bn(a){a.type="e";a.tcString="tcunavailable"} function Cn(a){return a.eventStatus==="tcloaded"||a.eventStatus==="useractioncomplete"||a.eventStatus==="cmpuishown"}function zn(){return H.gtag_enable_tcf_support===!0}function An(){return wn().enableAdvertiserConsentMode===!0}function Dn(){var a=wn();if(a.active)return a.tcString}function En(){var a=wn();if(a.active&&a.gdprApplies!==void 0)return a.gdprApplies?"1":"0"}function Fn(a){if(!vn.hasOwnProperty(String(a)))return!0;var b=wn();return b.active&&b.kc?!!b.kc[String(a)]:!0}var Gn=[Q.g.P,Q.g.U,Q.g.O,Q.g.ya],Hn={},In=(Hn[Q.g.P]=1,Hn[Q.g.U]=2,Hn);function Jn(a){if(a===void 0)return 0;switch(T(a,Q.g.ka)){case void 0:return 1;case !1:return 3;default:return 2}} var Kn=function(a){if(Vk()==="US-CO"&&tc.globalPrivacyControl===!0)return!1;var b=Jn(a);if(b===3)return!1;switch(Fk(Q.g.ya)){case 1:case 3:return!0;case 2:return!1;case 4:return b===2;case 0:return!0;default:return!1}},Ln=function(){return Ik()||!Ek(Q.g.P)||!Ek(Q.g.U)},Mn=function(){var a={},b;for(b in In)In.hasOwnProperty(b)&&(a[In[b]]=Fk(b));return"G1"+Le(a[1]||0)+Le(a[2]||0)},Nn={},On=(Nn[Q.g.P]=0,Nn[Q.g.U]=1,Nn[Q.g.O]=2,Nn[Q.g.ya]=3,Nn); function Tn(a){switch(a){case void 0:return 1;case !0:return 3;case !1:return 2;default:return 0}} var Un=function(a){for(var b="1",c=0;c=0&&c<=4095&&(a="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"[c>>6&63],b="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"[c& 63]);var e="0",f;var g=wn();f=g.active?g.tcfPolicyVersion:void 0;typeof f==="number"&&f>=0&&f<=63&&(e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"[f]);var k=0;Xk()&&(k|=1);En()==="1"&&(k|=2);zn()&&(k|=4);var m;var n=wn();m=n.enableAdvertiserConsentMode!==void 0?n.enableAdvertiserConsentMode?"1":"0":void 0;m==="1"&&(k|=8);tk().waitPeriodTimedOut&&(k|=16);return"1"+a+b+e+"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"[k]},Zn=function(){return Vk()==="US-CO"};function $n(){var a=!1;return a};var ao={UA:1,AW:2,DC:3,G:4,GF:5,GT:12,GTM:14,HA:6,MC:7}; function bo(a){a=a===void 0?{}:a;var b=Sf.ctid.split("-")[0].toUpperCase(),c={};c.ctid=Sf.ctid;c.Km=ii.oe;c.Om=ii.Sg;c.km=yj.ke?2:1;c.Vm=a.hk;c.we=Sf.canonicalContainerId;c.we!==a.xa&&(c.xa=a.xa);var d=Kj();c.Am=d?d.canonicalContainerId:void 0;oi?(c.Rf=ao[b],c.Rf||(c.Rf=0)):c.Rf=si?13:10;Bi.H?(c.Of=0,c.pl=2):qi?c.Of=1:$n()?c.Of=2:c.Of=3;var e={};e[6]=zj;c.sl=e;var f=a.Hf,g;var k=c.Rf,m=c.Of;k===void 0?g="":(m||(m=0),g=""+Ne(1,1)+Je(k<<2|m));var n=c.pl,p="4"+g+(n?""+Ne(2,1)+Je(n):""),q,r=c.Om;q=r&& Me.test(r)?""+Ne(3,2)+r:"";var t,u=c.Km;t=u?""+Ne(4,1)+Je(u):"";var v;var w=c.ctid;if(w&&f){var x=w.split("-"),y=x[0].toUpperCase();if(y!=="GTM"&&y!=="OPT")v="";else{var B=x[1];v=""+Ne(5,3)+Je(1+B.length)+(c.km||0)+B}}else v="";var A=c.Vm,C=c.we,E=c.xa,D=c.Sn,F=p+q+t+v+(A?""+Ne(6,1)+Je(A):"")+(C?""+Ne(7,3)+Je(C.length)+C:"")+(E?""+Ne(8,3)+Je(E.length)+E:"")+(D?""+Ne(9,3)+Je(D.length)+D:""),M;var L=c.sl;L=L===void 0?{}:L;for(var S=[],V=la(Object.keys(L)),ca=V.next();!ca.done;ca=V.next()){var ba=ca.value; S[Number(ba)]=L[ba]}if(S.length){var R=Ne(10,3),pa;if(S.length===0)pa=Je(0);else{for(var ma=[],ia=0,ya=!1,Ka=0;Ka=0} function to(a,b,c,d){function e(w,x,y){if(y==null)return delete k[x],w;k[x]=y;return w+"; "+x+"="+y}function f(w,x){if(x==null)return w;k[x]=!0;return w+"; "+x}if(!no(c.Ab))return 2;var g;b==null?g=a+"=deleted; expires="+(new Date(0)).toUTCString():(c.encode&&(b=encodeURIComponent(b)),b=uo(b),g=a+"="+b);var k={};g=e(g,"path",c.path);var m;c.expires instanceof Date?m=c.expires.toUTCString():c.expires!=null&&(m=""+c.expires);g=e(g,"expires",m);g=e(g,"max-age",c.qm);g=e(g,"samesite",c.Pm);c.Qm&&(g=f(g, "secure"));var n=c.domain;if(n&&n.toLowerCase()==="auto"){for(var p=vo(),q=void 0,r=!1,t=0;t0?d:e}function qo(a,b,c){for(var d=[],e=mo(a,void 0,void 0,c),f=0;f1200&&(a=a.substring(0,1200));return a} var yo=/^(www\.)?google(\.com?)?(\.[a-z]{2})?$/,zo=/(^|\.)doubleclick\.net$/i;function wo(a,b){return a!==void 0&&(zo.test(window.document.location.hostname)||b==="/"&&yo.test(a))}function Ao(a){if(!a)return 1;a=a.indexOf(".")===0?a.substring(1):a;return a.split(".").length}function Bo(a){if(!a||a==="/")return 1;a[0]!=="/"&&(a="/"+a);a[a.length-1]!=="/"&&(a+="/");return a.split("/").length-1}function Co(a,b){var c=""+Ao(a),d=Bo(b);d>1&&(c+="-"+d);return c} var oo=function(){return lo(window)?window.document.cookie:""},no=function(a){return a&&zk().j()?(Array.isArray(a)?a:[a]).every(function(b){return Hk(b)&&Ek(b)}):!0},vo=function(){var a=[],b=window.document.location.hostname.split(".");if(b.length===4){var c=b[b.length-1];if(Number(c).toString()===c)return["none"]}for(var d=b.length-2;d>=0;d--)a.push(b.slice(d).join("."));var e=window.document.location.hostname;zo.test(e)||yo.test(e)||a.push("none");return a};function Do(a){var b=Math.round(Math.random()*2147483647),c;if(a){var d=1,e,f,g;if(a)for(d=0,f=a.length-1;f>=0;f--)g=a.charCodeAt(f),d=(d<<6&268435455)+g+(g<<14),e=d&266338304,d=e!==0?d^e>>21:d;c=String(b^d&2147483647)}else c=String(b);return c}function Eo(a){return[Do(a),Math.round(Cb()/1E3)].join(".")}function Fo(a,b,c,d,e){var f=Ao(b);return po(a,f,Bo(c),d,e)}function Go(a,b,c,d){return[b,Co(c,d),a].join(".")};function Ho(a,b,c,d){var e,f=Number(a.zb!=null?a.zb:void 0);f!==0&&(e=new Date((b||Cb())+1E3*(f||7776E3)));return{path:a.path,domain:a.domain,flags:a.flags,encode:!!c,expires:e,Ab:d}};var Io;function Jo(){function a(g){c(g.target||g.srcElement||{})}function b(g){d(g.target||g.srcElement||{})}var c=Ko,d=Lo,e=Mo();if(!e.init){Hc(I,"mousedown",a);Hc(I,"keyup",a);Hc(I,"submit",b);var f=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){d(this);f.call(this)};e.init=!0}}function No(a,b,c,d,e){var f={callback:a,domains:b,fragment:c===2,placement:c,forms:d,sameHost:e};Mo().decorators.push(f)} function Oo(a,b,c){for(var d=Mo().decorators,e={},f=0;f=0||p&&m[q].indexOf(n)>=0){k=!0;break a}k=!1}if(k){var r=g.placement;r===void 0&&(r=g.fragment?2:1);r===b&&Fb(e,g.callback())}}return e} function Mo(){var a=xc("google_tag_data",{}),b=a.gl;b&&b.decorators||(b={decorators:[]},a.gl=b);return b};var Po=/(.*?)\*(.*?)\*(.*)/,Qo=/^https?:\/\/([^\/]*?)\.?cdn\.ampproject\.org\/?(.*)/,Ro=/^(?:www\.|m\.|amp\.)+/,So=/([^?#]+)(\?[^#]*)?(#.*)?/;function To(a){var b=So.exec(a);if(b)return{Kh:b[1],query:b[2],fragment:b[3]}} function Uo(a,b){var c=[tc.userAgent,(new Date).getTimezoneOffset(),tc.userLanguage||tc.language,Math.floor(Cb()/60/1E3)-(b===void 0?0:b),a].join("*"),d;if(!(d=Io)){for(var e=Array(256),f=0;f<256;f++){for(var g=f,k=0;k<8;k++)g=g&1?g>>>1^3988292384:g>>>1;e[f]=g}d=e}Io=d;for(var m=4294967295,n=0;n>>8^Io[(m^c.charCodeAt(n))&255];return((m^-1)>>>0).toString(36)} function Vo(){return function(a){var b=$i(H.location.href),c=b.search.replace("?",""),d=Ti(c,"_gl",!1,!0)||"";a.query=Wo(d)||{};var e=Ui(b,"fragment"),f;var g=-1;if(Hb(e,"_gl="))g=4;else{var k=e.indexOf("&_gl=");k>0&&(g=k+3+2)}if(g<0)f=void 0;else{var m=e.indexOf("&",g);f=m<0?e.substring(g):e.substring(g,m)}a.fragment=Wo(f||"")||{}}}function Xo(a){var b=Vo(),c=Mo();c.data||(c.data={query:{},fragment:{}},b(c.data));var d={},e=c.data;e&&(Fb(d,e.query),a&&Fb(d,e.fragment));return d} var Wo=function(a){try{var b=Yo(a,3);if(b!==void 0){for(var c={},d=b?b.split("*"):[],e=0;e+10;){if(c.href&&c.nodeName.match(/^a(?:rea)?$/i)){b=c;break a}c=c.parentNode;d--}b=null}var e=b;if(e){var f=e.protocol;f!=="http:"&&f!=="https:"||$o(e,e.hostname)}}catch(g){}}function Lo(a){try{if(a.action){var b=Ui($i(a.action),"host");$o(a,b)}}catch(c){}}function dp(a,b,c,d){Jo();var e=c==="fragment"?2:1;d=!!d;No(a,b,e,d,!1);e===2&&lb("TAGGING",23);d&&lb("TAGGING",24)}function ep(a,b){Jo();No(a,[Wi(H.location,"host",!0)],b,!0,!0)} function fp(){var a=I.location.hostname,b=Qo.exec(I.referrer);if(!b)return!1;var c=b[2],d=b[1],e="";if(c){var f=c.split("/"),g=f[1];e=g==="s"?decodeURIComponent(f[2]):decodeURIComponent(g)}else if(d){if(d.indexOf("xn--")===0)return!1;e=d.replace(/-/g,".").replace(/\.\./g,"-")}var k=a.replace(Ro,""),m=e.replace(Ro,"");return k===m||Ib(k,"."+m)}function gp(a,b){return a===!1?!1:a||b||fp()};var hp=["1"],ip={},jp={};function kp(a,b){b=b===void 0?!0:b;var c=lp(a.prefix);if(!ip[c])if(mp(c,a.path,a.domain)){var d=jp[lp(a.prefix)];np(a,d?d.id:void 0,d?d.Eh:void 0)}else{var e=bj("auiddc");if(e)lb("TAGGING",17),ip[c]=e;else if(b){var f=lp(a.prefix),g=Eo();op(f,g,a);mp(c,a.path,a.domain)}}}function np(a,b,c){var d=lp(a.prefix),e=ip[d];if(e){var f=e.split(".");if(f.length===2){var g=Number(f[1])||0;if(g){var k=e;b&&(k=e+"."+b+"."+(c?c:Math.floor(Cb()/1E3)));op(d,k,a,g*1E3)}}}} function op(a,b,c,d){var e=Go(b,"1",c.domain,c.path),f=Ho(c,d);f.Ab=pp();xo(a,e,f)}function mp(a,b,c){var d=Fo(a,b,c,hp,pp());if(!d)return!1;qp(a,d);return!0}function qp(a,b){var c=b.split(".");c.length===5?(ip[a]=c.slice(0,2).join("."),jp[a]={id:c.slice(2,4).join("."),Eh:Number(c[4])||0}):c.length===3?jp[a]={id:c.slice(0,2).join("."),Eh:Number(c[2])||0}:ip[a]=b}function lp(a){return(a||"_gcl")+"_au"}function rp(a){function b(){Ek(c)&&a()}var c=pp();Lk(function(){b();Ek(c)||Mk(b,c)},c)} function sp(a){var b=Xo(!0),c=lp(a.prefix);rp(function(){var d=b[c];if(d){qp(c,d);var e=Number(ip[c].split(".")[1])*1E3;if(e){lb("TAGGING",16);var f=Ho(a,e);f.Ab=pp();var g=Go(d,"1",a.domain,a.path);xo(c,g,f)}}})}function tp(a,b,c,d,e){e=e||{};var f=function(){var g={},k=Fo(a,e.path,e.domain,hp,pp());k&&(g[a]=k);return g};rp(function(){dp(f,b,c,d)})}function pp(){return["ad_storage","ad_user_data"]};function up(a){for(var b=[],c=I.cookie.split(";"),d=new RegExp("^\\s*"+(a||"_gac")+"_(UA-\\d+-\\d+)=\\s*(.+?)\\s*$"),e=0;e3&&(g.labels=f.slice(3));d[c[e].Yh].push(g)}}return d};var wp={},xp=(wp.k={Ma:/^[\w-]+$/},wp.b={Ma:/^[\w-]+$/,Rh:!0},wp.i={Ma:/^[1-9]\d*$/},wp);var yp={},Bp=(yp[5]={sk:{2:zp},bh:["k","i","b"]},yp[4]={sk:{2:zp,GCL:Ap},bh:["k","i","b"]},yp);function Cp(a){var b=Bp[5];if(b){var c=a.split(".")[0];if(c){var d=b.sk[c];if(d)return d(a,5)}}}function zp(a,b){var c=a.split(".");if(c.length===3){var d={},e=Bp[b];if(e){for(var f=e.bh,g=la(c[2].split("$")),k=g.next();!k.done;k=g.next()){var m=k.value,n=m[0];if(f.indexOf(n)!==-1)try{var p=decodeURIComponent(m.substring(1)),q=xp[n];q&&(q.Rh?(d[n]=d[n]||[],d[n].push(p)):d[n]=p)}catch(r){}}return d}}} function Dp(a,b){var c=Bp[5];if(c){for(var d=[],e=la(c.bh),f=e.next();!f.done;f=e.next()){var g=f.value,k=xp[g];if(k){var m=a[g];if(m!==void 0)if(k.Rh&&Array.isArray(m))for(var n=la(m),p=n.next();!p.done;p=n.next())d.push(encodeURIComponent(""+g+p.value));else d.push(encodeURIComponent(""+g+m))}}return["2",b||"1",d.join("$")].join(".")}}function Ap(a){var b=a.split(".");b.shift();var c=b.shift(),d=b.shift(),e={};return e.k=d,e.i=c,e.b=b,e};var Ep=new Map([[5,"ad_storage"],[4,["ad_storage","ad_user_data"]]]);function Fp(a){if(Bp[5]){for(var b=[],c=mo(a,void 0,void 0,Ep.get(5)),d=la(c),e=d.next();!e.done;e=d.next()){var f=Cp(e.value);f&&(Gp(f),b.push(f))}return b}}function Hp(a,b,c,d){c=c||{};var e=Co(c.domain,c.path),f=Dp(b,e);if(f){var g=Ho(c,d,void 0,Ep.get(5));xo(a,f,g)}}function Ip(a,b){var c=b.Ma;return typeof c==="function"?c(a):c.test(a)} function Gp(a){for(var b=la(Object.keys(a)),c=b.next(),d={};!c.done;d={ye:void 0},c=b.next()){var e=c.value,f=a[e];d.ye=xp[e];d.ye?d.ye.Rh?a[e]=Array.isArray(f)?f.filter(function(g){return function(k){return Ip(k,g.ye)}}(d)):void 0:typeof f==="string"&&Ip(f,d.ye)||(a[e]=void 0):a[e]=void 0}};var Jp=/^\w+$/,Kp=/^[\w-]+$/,Lp={},Mp=(Lp.aw="_aw",Lp.dc="_dc",Lp.gf="_gf",Lp.gp="_gp",Lp.gs="_gs",Lp.ha="_ha",Lp.ag="_ag",Lp.gb="_gb",Lp);function Np(){return["ad_storage","ad_user_data"]}function Op(a){return!zk().j()||Ek(a)}function Pp(a,b){function c(){var d=Op(b);d&&a();return d}Lk(function(){c()||Mk(c,b)},b)}function Qp(a){return Rp(a).map(function(b){return b.aa})}function Sp(a){return Tp(a).filter(function(b){return b.aa}).map(function(b){return b.aa})} function Tp(a){var b=Up(a.prefix),c=Vp("gb",b),d=Vp("ag",b);if(!d||!c)return[];var e=function(k){return function(m){m.type=k;return m}},f=Rp(c).map(e("gb")),g=(Rb(6)?Wp(d):[]).map(e("ag"));return f.concat(g).sort(function(k,m){return m.timestamp-k.timestamp})}function Xp(a,b,c,d,e){var f=sb(a,function(g){return g.aa===c});f?(f.timestamp=Math.max(f.timestamp,d),f.labels=Yp(f.labels||[],e||[])):a.push({version:b,aa:c,timestamp:d,labels:e})} function Wp(a){for(var b=Fp(a)||[],c=[],d=la(b),e=d.next();!e.done;e=d.next()){var f=e.value,g=f,k=Zp(f);k&&Xp(c,"2",g.k,k,g.b||[])}return c.sort(function(m,n){return n.timestamp-m.timestamp})}function Rp(a){for(var b=[],c=mo(a,I.cookie,void 0,Np()),d=la(c),e=d.next();!e.done;e=d.next()){var f=$p(e.value);if(f!=null){var g=f;Xp(b,g.version,g.aa,g.timestamp,g.labels)}}b.sort(function(k,m){return m.timestamp-k.timestamp});return aq(b)} function Yp(a,b){if(!a.length)return b;if(!b.length)return a;var c={};return a.concat(b).filter(function(d){return c.hasOwnProperty(d)?!1:c[d]=!0})}function Up(a){return a&&typeof a==="string"&&a.match(Jp)?a:"_gcl"} function bq(a,b){var c=Rb(6),d=$i(a),e=Ui(d,"query",!1,void 0,"gclid"),f=Ui(d,"query",!1,void 0,"gclsrc"),g=Ui(d,"query",!1,void 0,"wbraid");g=Ob(g);var k;c&&(k=Ui(d,"query",!1,void 0,"gbraid"));var m=Ui(d,"query",!1,void 0,"gad_source"),n=Ui(d,"query",!1,void 0,"dclid");if(b&&(!e||!f||!g||c&&!k)){var p=d.hash.replace("#","");e=e||Ti(p,"gclid",!1);f=f||Ti(p,"gclsrc",!1);g=g||Ti(p,"wbraid",!1);c&&(k=k||Ti(p,"gbraid",!1));m=m||Ti(p,"gad_source",!1)}return cq(e,f,n,g,k,m)} function dq(){return bq(H.location.href,!0)} function cq(a,b,c,d,e,f){var g={},k=function(m,n){g[n]||(g[n]=[]);g[n].push(m)};g.gclid=a;g.gclsrc=b;g.dclid=c;if(a!==void 0&&a.match(Kp))switch(b){case void 0:k(a,"aw");break;case "aw.ds":k(a,"aw");k(a,"dc");break;case "ds":k(a,"dc");break;case "3p.ds":k(a,"dc");break;case "gf":k(a,"gf");break;case "ha":k(a,"ha")}c&&k(c,"dc");d!==void 0&&Kp.test(d)&&(g.wbraid=d,k(d,"gb"));Rb(6)&&e!==void 0&&Kp.test(e)&&(g.gbraid=e,k(e,"ag"));f!==void 0&&Kp.test(f)&&(g.gad_source=f,k(f,"gs"));return g} function eq(a){var b=dq();if(Rb(5)){for(var c=!0,d=la(Object.keys(b)),e=d.next();!e.done;e=d.next())if(b[e.value]!==void 0){c=!1;break}c&&(b=bq(H.document.referrer,!1))}fq(b,!1,a)} function fq(a,b,c,d,e){c=c||{};e=e||[];var f=Up(c.prefix),g=d||Cb(),k=Math.round(g/1E3),m=Np(),n=!1,p=!1,q=function(){if(Op(m)){var r=Ho(c,g,!0);r.Ab=m;for(var t=function(F,M){var L=Vp(F,f);L&&(xo(L,M,r),F!=="gb"&&(n=!0))},u=function(F){var M=["GCL",k,F];e.length>0&&M.push(e.join("."));return M.join(".")},v=la(["aw","dc","gf","ha","gp"]),w=v.next();!w.done;w=v.next()){var x=w.value;a[x]&&t(x,u(a[x][0]))}if(!n&&a.gb){var y=a.gb[0],B=Vp("gb",f);!b&&Rp(B).some(function(F){return F.aa===y&&F.labels&& F.labels.length>0})||t("gb",u(y))}}if(!p&&Rb(6)&&a.gbraid&&Op("ad_storage")&&(p=!0,!n)){var A=a.gbraid,C=Vp("ag",f);if(b||!(Rb(6)?Wp(C):[]).some(function(F){return F.aa===A&&F.labels&&F.labels.length>0})){var E={},D=(E.k=A,E.i=""+k,E.b=e,E);Hp(C,D,c,g)}}gq(a,f,g,c)};Lk(function(){q();Op(m)||Mk(q,m)},m)}function gq(a,b,c,d){if(a.gad_source!==void 0&&Op("ad_storage")){var e=Vp("gs",b);if(e){var f=Math.round((Cb()-(Tc()||0))/1E3),g={},k=(g.k=a.gad_source,g.i=""+f,g);Hp(e,k,d,c)}}} function hq(a,b){var c=Xo(!0);Pp(function(){for(var d=Up(b.prefix),e=0;ep){n=!0;break b}n=!1}if(!n){var t=Ho(b,m,!0);t.Ab=Np();xo(g,k,t)}}}}fq(cq(c.gclid,c.gclsrc),!1,b)},Np())} function jq(a){var b=[];Rb(6)&&b.push("ag");if(b.length!==0){var c=Xo(!0),d=Up(a.prefix);Pp(function(){for(var e=0;ep){n=!0;break a}n=!1}if(n)break;k.i=""+Math.round(m/1E3);Hp(f,k,a,m)}}}}},["ad_storage"])}}function Vp(a,b){var c=Mp[a];if(c!==void 0)return b+c} function iq(a){return kq(a.split(".")).length!==0?(Number(a.split(".")[1])||0)*1E3:0}function Zp(a){return a?(Number(a.i)||0)*1E3:0}function $p(a){var b=kq(a.split("."));return b.length===0?null:{version:b[0],aa:b[2],timestamp:(Number(b[1])||0)*1E3,labels:b.slice(3)}}function kq(a){return a.length<3||a[0]!=="GCL"&&a[0]!=="1"||!/^\d+$/.test(a[1])||!Kp.test(a[2])?[]:a} function lq(a,b,c,d,e){if(Array.isArray(b)&&lo(H)){var f=Up(e),g=function(){for(var k={},m=0;mc}; var zq=function(a,b,c){var d=ji.joined_auid=ji.joined_auid||{},e=(c?a||"_gcl":"")+"."+b;if(d[e])return!0;d[e]=!0;return!1},Aq=function(){var a=$i(H.location.href),b=Ui(a,"query",!1,void 0,"gad_source");if(b===void 0){var c=a.hash.replace("#","");b=Ti(c,"gad_source",!1)}return b},Bq=function(){var a=$i(H.location.href).search.replace("?","");return Ti(a,"gad",!1,!0)==="1"},Cq=function(){var a=fn(!1)===1?H.top.location.href:H.location.href;return a=a.replace(/[\?#].*$/,"")},Dq=function(a){var b=[]; G(a,function(c,d){d=aq(d);for(var e=[],f=0;f0)return f?["0"]:g}var k=Vp(a,e);return k?Qp(k):[]},Gq=function(a){var b=Eq();kl(function(){a();X(b)||Mk(a,b)},b)},Eq=function(){return[Q.g.P,Q.g.O]},Hq=/^(www\.)?google(\.com?)?(\.[a-z]{2}t?)?$/,Iq=/^www.googleadservices.com$/, Jq=function(a,b){return Fq("aw",a,b)},Kq=function(a,b){return Fq("dc",a,b)},Lq=function(a,b,c,d,e){var f=dq(),g=[],k=c&&Kn(c),m=f.gclid,n=f.dclid,p=f.gclsrc||"aw",q=Bq(),r=Aq();!m||p!=="aw.ds"&&p!=="aw"&&p!=="ds"&&p!=="3p.ds"||g.push({aa:m,De:p});n&&g.push({aa:n,De:"ds"});g.length===2&&P(147);g.length===0&&f.wbraid&&g.push({aa:f.wbraid,De:"gb"});g.length===0&&p==="aw.ds"&&g.push({aa:"",De:"aw.ds"});Gq(function(){var t=X(Eq());if(t){kp(a);var u=[],v=t?ip[lp(a.prefix)]:void 0;v&&u.push("auid="+v);if(X(Q.g.O)){e&& u.push("userId="+e);var w=io(co.Tg);if(w===void 0)ho(co.Ug,!0);else{var x=io(co.qe);u.push("ga_uid="+x+"."+w)}}var y=I.referrer?Ui($i(I.referrer),"host"):"",B=t||!d?g:[];B.length===0&&(Hq.test(y)||Iq.test(y))&&B.push({aa:"",De:""});if(B.length!==0||q||r!==void 0){y&&u.push("ref="+encodeURIComponent(y));var A=Cq();u.push("url="+encodeURIComponent(A));u.push("tft="+Cb());var C=Tc();C!==void 0&&u.push("tfd="+Math.round(C));var E=fn(!0);u.push("frm="+E);q&&u.push("gad=1");r!==void 0&&u.push("gad_source="+ encodeURIComponent(r));if(!c){var D={};c=Yl(Ol(new Nl(0),(D[Q.g.ka]=sm.D[Q.g.ka],D)))}else if(!W(71)){var F={};c=Yl(Ol(new Nl(0),(F[Q.g.ka]=k,F)))}u.push("gtm="+bo({xa:b}));Ln()&&u.push("gcs="+Mn());u.push("gcd="+Un(c));Xn()&&u.push("dma_cps="+Vn());u.push("dma="+Wn());Kn(c)?u.push("npa=0"):u.push("npa=1");Zn()&&u.push("_ng=1");pn(xn())&&u.push("tcfd="+Yn());var M=En();M&&u.push("gdpr="+M);var L=Dn();L&&u.push("gdpr_consent="+L);W(16)&&u.push("apve="+(W(17)?1:0));Bi.j&&u.push("tag_exp="+Bi.j);if(B.length> 0)for(var S=0;S0?d.join(";"):""} function cr(a,b,c){for(var d=Op(Np())?vp("_gac_gb",!0):{},e=[],f=!1,g=la(Object.keys(d)),k=g.next();!k.done;k=g.next()){var m=k.value,n=uq("_gac_gb_"+m,a,b,c);f=f||n.length!==0&&n.some(function(p){return p===1});e.push(m+":"+n.join(","))}return{Hl:f?e.join(";"):"",Gl:br(d,ar)}}function dr(a){var b=I.location.href.match(new RegExp(";"+a+"=([^;?]+)"));return b&&b.length===2&&b[1].match(Yq)?b[1]:void 0} function er(a){var b={rh:void 0,sh:void 0},c,d;Zq.test(I.location.host)&&(c=dr("gclgs"),d=dr("gclst"));if(c&&d)b.rh=c,b.sh=d;else{var e=Cb(),f=Wp((a||"_gcl")+"_gs"),g=f.map(function(m){return m.aa}),k=f.map(function(m){return e-m.timestamp});g.length>0&&k.length>0&&(b.rh=g.join("."),b.sh=k.join("."))}return b} function fr(a,b,c){if(Zq.test(I.location.host)){var d=dr(c);if(d)return[{aa:d}]}else{if(b==="gclid")return Rp((a||"_gcl")+"_aw");if(b==="wbraid")return Rp((a||"_gcl")+"_gb");if(b==="braids")return Tp({prefix:a})}return[]}function gr(a){return fr(a,"gclid","gclaw").map(function(b){return b.aa}).join(".")}function hr(a){return fr(a,"wbraid","gclgb").map(function(b){return b.aa}).join(".")}function ir(a){return fr(a,"braids","gclgb").map(function(b){return b.aa}).join(".")} function jr(a,b){return Zq.test(I.location.host)?!(dr("gclaw")||dr("gac")):yq(a,b)}function kr(a,b,c){var d;d=c?vq(a,b):uq((b&&b.prefix||"_gcl")+"_gb",a,b);return d.length===0||d.every(function(e){return e===0})?"":d.join(".")};function lr(){var a=H.__uspapi;if(pb(a)){var b="";try{a("getUSPData",1,function(c,d){if(d&&c){var e=c.uspString;e&&RegExp("^[\\da-zA-Z-]{1,20}$").test(e)&&(b=e)}})}catch(c){}return b}}; var or=function(a){if(a.eventName===Q.g.ba&&a.metadata.hit_type==="page_view")if(W(17)){a.metadata.redact_click_ids=T(a.m,Q.g.fa)!=null&&T(a.m,Q.g.fa)!==!1&&!X([Q.g.P,Q.g.O]);var b=mr(a),c=T(a.m,Q.g.ra)!==!1;c||(a.o[Q.g.Gi]="1");var d=Up(b.prefix),e=a.metadata.is_server_side_destination;if(!a.metadata.consent_updated&&!a.metadata.user_id_updated){var f=T(a.m,Q.g.Xa),g=T(a.m,Q.g.sa)||{};nr({rd:c,xd:g,Dd:f,jc:b});var k;if(k=!e){var m;var n=ji.ads_pageview=ji.ads_pageview||{};m=n[d]?!1:n[d]=!0;k=!m}if(k){a.isAborted= !0;return}}if(e)a.isAborted=!0;else{a.o[Q.g.xc]=Q.g.Tb;if(a.metadata.consent_updated)a.o[Q.g.xc]=Q.g.xk,a.o[Q.g.Rb]="1";else if(a.metadata.user_id_updated)a.o[Q.g.xc]=Q.g.Ck;else{var p=dq();a.o[Q.g.Gd]=p.gclid;a.o[Q.g.Od]=p.dclid;a.o[Q.g.Bi]=p.gclsrc;a.o[Q.g.Gd]||a.o[Q.g.Od]||(a.o[Q.g.Xe]=p.wbraid,a.o[Q.g.fg]=p.gbraid);a.o[Q.g.Da]=I.referrer?Ui($i(I.referrer),"host"):"";a.o[Q.g.wa]=Cq();a.o[Q.g.Ai]=Aq();a.o[Q.g.Hb]=fn(!0);var q=Wq();Vq(q)&&(a.o[Q.g.ed]="1");a.o[Q.g.Di]=Sq();Xo(!1)._up==="1"&&(a.o[Q.g.Ti]= "1")}Ok=!0;var r=X([Q.g.P,Q.g.O]);c&&r&&(kp(b),a.o[Q.g.Eb]=ip[lp(b.prefix)]);a.o[Q.g.kb]=void 0;a.o[Q.g.Ua]=void 0;var t=W(58);if(!a.o[Q.g.Gd]&&!a.o[Q.g.Od]&&jr(d,t)){var u=t?Sp(b):Qp(d+"_gb");u.length>0&&(a.o[Q.g.kb]=u.join("."))}else if(!a.o[Q.g.Xe]&&r){var v=Qp(d+"_aw");v.length>0&&(a.o[Q.g.Ua]=v.join("."))}a.m.isGtmEvent&&(a.m.j[Q.g.ka]=sm.D[Q.g.ka]);Kn(a.m)?a.o[Q.g.Nb]=!1:a.o[Q.g.Nb]=!0;a.metadata.add_tag_timing=!0;var w=lr();w!==void 0&&(a.o[Q.g.fe]=w||"error");var x=En();x&&(a.o[Q.g.Ac]=x); var y=Dn();y&&(a.o[Q.g.Dc]=y);a.metadata.speculative=!1}}else a.isAborted=!0},mr=function(a){var b={prefix:T(a.m,Q.g.Za)||T(a.m,Q.g.Oa),domain:T(a.m,Q.g.Va),zb:T(a.m,Q.g.Wa),flags:T(a.m,Q.g.ab)};a.m.isGtmEvent&&(b.path=T(a.m,Q.g.Fb));return b},pr=function(a,b){var c,d,e,f,g,k,m,n;c=a.rd;d=a.xd;e=a.Dd;f=a.xa;g=a.m;k=a.yd;m=a.Kn;n=a.nk;nr({rd:c,xd:d,Dd:e,jc:b});c&&m!==!0&&(n!=null?n=String(n):n=void 0,Lq(b,f,g,k,n))},nr=function(a){var b,c,d,e;b=a.rd;c=a.xd;d=a.Dd;e=a.jc;b&&(gp(c[Q.g.Cc],!!c[Q.g.W])&& (hq(qr,e),jq(e),sp(e)),eq(e),nq(qr,e),oq(e));c[Q.g.W]&&(lq(qr,c[Q.g.W],c[Q.g.Jb],!!c[Q.g.tb],e.prefix),mq(c[Q.g.W],c[Q.g.Jb],!!c[Q.g.tb],e.prefix),tp(lp(e.prefix),c[Q.g.W],c[Q.g.Jb],!!c[Q.g.tb],e),tp("FPAU",c[Q.g.W],c[Q.g.Jb],!!c[Q.g.tb],e));d&&qq(rr);sq(rr)},sr=function(a,b,c,d){var e,f,g;e=a.pk;f=a.callback;g=a.Sj;if(typeof f==="function")if(e===Q.g.Ua&&g===void 0){var k=d(b.prefix,c);k.length===0?f(void 0):k.length===1?f(k[0]):f(k)}else e===Q.g.Eb?(P(65),kp(b,!1),f(ip[lp(b.prefix)])):f(g)},qr= ["aw","dc","gb"],rr=["aw","dc","gb","ag"];function tr(a){var b=T(a.m,Q.g.Ib),c=T(a.m,Q.g.Xb);b&&!c?(a.eventName!==Q.g.ba&&a.eventName!==Q.g.Nc&&P(131),a.isAborted=!0):!b&&c&&(P(132),a.isAborted=!0)}function ur(a){var b=X(Q.g.P)?ji.pscdl:"denied";b!=null&&(a.o[Q.g.bf]=b)}function vr(a){var b=fn(!0);a.o[Q.g.Hb]=b}function wr(a){Zn()&&(a.o[Q.g.Bc]=1)};function Dr(a,b,c,d){var e=Ec(),f;if(e===1)a:{var g=ui;g=g.toLowerCase();for(var k="https://"+g,m="http://"+g,n=1,p=I.getElementsByTagName("script"),q=0;q=0&&(g=g.substring(k+8,g.indexOf(")",k)),g.charAt(g.length-1)==="%"&&(g=g.substring(0,g.length-1)),f=String(Math.min(Number(g),Number(f))))}if(f!==void 0&&Number(f)<=0)return!0;(d=d.parentElement)&& (e=H.getComputedStyle(d,null))}return!1} var $r=function(a){var b=Zr(),c=b.height,d=b.width,e=a.getBoundingClientRect(),f=e.bottom-e.top,g=e.right-e.left;return f&&g?(1-Math.min((Math.max(0-e.left,0)+Math.max(e.right-d,0))/g,1))*(1-Math.min((Math.max(0-e.top,0)+Math.max(e.bottom-c,0))/f,1)):0},Zr=function(){var a=I.body,b=I.documentElement||a&&a.parentElement,c,d;if(I.compatMode&&I.compatMode!=="BackCompat")c=b?b.clientHeight:0,d=b?b.clientWidth:0;else{var e=function(f,g){return f&&g?Math.min(f,g):Math.max(f,g)};c=e(b?b.clientHeight:0,a? a.clientHeight:0);d=e(b?b.clientWidth:0,a?a.clientWidth:0)}return{width:d,height:c}};var cs=function(a){if(as){if(a>=0&&a1?c[d]=1:c[d]<0&&(c[d]=0);if(as){var e=!1;J(function(){e||ds(a,b,c)()});return es(function(f){e=!0;for(var g={He:0};g.He0,rootBounds:n,target:k,time:Cb()};J(function(){a(p)})}for(var e=[],f=[],g=0;ge[k])for(;f[k]=c[f[k]+1];)d(b[k],m),f[k]++; else if(m=0&&m<=c[f[k]];)d(b[k],m),f[k]--;e[k]=m}}},es=function(a,b,c){for(var d=new H.IntersectionObserver(a,{threshold:c}),e=0;e10&&(e="3")}!a.Sf&&g&&(f=[g]);for(var p=0;p:nth-child("+e.toString()+")"}else d="";c=d}b=c}return b},ls=function(a){for(var b=[],c=0;c=0}else k=!1;k||b.push({element:d,X:g})}}}return b}, ks=function(){var a=[],b=I.body;if(!b)return{elements:a,status:"4"};for(var c=b.querySelectorAll("*"),d=0;d=0)&&e.children instanceof HTMLCollection){for(var f=!1,g=0;g=0)){f=!0;break}(!f||W(23)&&Cs.indexOf(e.tagName)!==-1)&&a.push(e)}}return{elements:a,status:c.length>1E4?"2":"1"}},Ds=!1;var zs=/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}/i,gs=/@(gmail|googlemail)\./i,ys=/support|noreply/i,As="SCRIPT STYLE IMG SVG PATH BR NOSCRIPT TEXTAREA".split(" "),Bs=["BR"],ts={nc:"1",ne:"2",ie:"3",je:"4",Xf:"5",Rg:"6",Cf:"7"},js={},Cs=["INPUT","SELECT"];var Ss=function(a,b,c){a.o[Q.g.pe]||(a.o[Q.g.pe]={});a.o[Q.g.pe][b]=c},Ts=function(a,b){var c=Rq(a,Q.g.Ud,a.m.D[Q.g.Ud]);if(c&&c[b||a.eventName]!==void 0)return c[b||a.eventName]},Us=function(a){var b=a.metadata.user_data;if(Wa(b))return b},Vs=function(a){if(a.metadata.is_merchant_center||!gj(a.m))return!1;if(!T(a.m,Q.g.jd)){var b=T(a.m,Q.g.yc);return b===!0||b==="true"}return!0},Ws=function(a){return Rq(a,Q.g.Wb,T(a.m,Q.g.Wb))||!!Rq(a,"google_ng",!1)};var Xs=Number('')||5,Ys=Number('')||50,Zs=tb();var dt={fl:Number('')||500,Pk:Number('')||5E3,pj:Number('20')||10,wk:Number('')||5E3};function et(a){return a.performance&&a.performance.now()||Date.now()} var ft=function(a,b){var c;return c};var gt="https://"+ii.Fd+"/gtm/static/",ht; function mt(a,b){} var nt=function(a,b,c,d){}; function ot(a,b,c,d){} function pt(a,b,c,d){}var qt=void 0;function rt(a){var b=[];return b};var st=function(a){for(var b=[],c=0,d=0;d>6|192:((e&64512)==55296&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};Um();Xm()||Rm("iPod");Rm("iPad");!Rm("Android")||Vm()||Um()||Tm()||Rm("Silk");Vm();!Rm("Safari")||Vm()||(Sm()?0:Rm("Coast"))||Tm()||(Sm()?0:Rm("Edge"))||(Sm()?Qm("Microsoft Edge"):Rm("Edg/"))||(Sm()?Qm("Opera"):Rm("OPR"))||Um()||Rm("Silk")||Rm("Android")||Ym();var tt={},ut=null,vt=function(a){for(var b=[],c=0,d=0;d255&&(b[c++]=e&255,e>>=8);b[c++]=e}var f=4;f===void 0&&(f=0);if(!ut){ut={};for(var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),k=["+/=","+/","-_=","-_.","-_"],m=0;m<5;m++){var n=g.concat(k[m].split(""));tt[m]=n;for(var p=0;p>2],C=r[(x&3)<<4|y>>4],E=r[(y&15)<<2|B>>6],D=r[B&63];t[w++]=""+A+C+E+D}var F=0,M=u;switch(b.length-v){case 2:F=b[v+1],M=r[(F&15)<<2]||u;case 1:var L=b[v];t[w]=""+r[L>>2]+r[(L&3)<<4|F>>4]+M+u}return t.join("")};var wt="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");function xt(a){var b;return(b=a.google_tag_data)!=null?b:a.google_tag_data={}}function zt(){var a=H.google_tag_data,b;if(a!=null&&a.uach){var c=a.uach,d=Object.assign({},c);c.fullVersionList&&(d.fullVersionList=c.fullVersionList.slice(0));b=d}else b=null;return b}function At(){var a,b;return(b=(a=H.google_tag_data)==null?void 0:a.uach_promise)!=null?b:null} function Bt(a){var b,c;return typeof((b=a.navigator)==null?void 0:(c=b.userAgentData)==null?void 0:c.getHighEntropyValues)==="function"}function Ct(){var a=H;if(!Bt(a))return null;var b=xt(a);if(b.uach_promise)return b.uach_promise;var c=a.navigator.userAgentData.getHighEntropyValues(wt).then(function(d){b.uach!=null||(b.uach=d);return d});return b.uach_promise=c}; var Dt,Et=function(){if(Bt(H)&&(Dt=Cb(),!At())){var a=Ct();a&&(a.then(function(){P(95);}),a.catch(function(){P(96)}))}},Gt=function(a){var b=Ft.hn,c=function(g,k){try{a(g,k)}catch(m){}},d=zt();if(d)c(d);else{var e=At();if(e){b= Math.min(Math.max(isFinite(b)?b:0,0),1E3);var f=H.setTimeout(function(){c.Je||(c.Je=!0,P(106),c(null,Error("Timeout")))},b);e.then(function(g){c.Je||(c.Je=!0,P(104),H.clearTimeout(f),c(g))}).catch(function(g){c.Je||(c.Je=!0,P(105),H.clearTimeout(f),c(null,g))})}else c(null)}},Ht=function(a,b){a&&(b.o[Q.g.tf]=a.architecture,b.o[Q.g.uf]=a.bitness,a.fullVersionList&&(b.o[Q.g.vf]=a.fullVersionList.map(function(c){return encodeURIComponent(c.brand||"")+";"+encodeURIComponent(c.version||"")}).join("|")), b.o[Q.g.wf]=a.mobile?"1":"0",b.o[Q.g.xf]=a.model,b.o[Q.g.yf]=a.platform,b.o[Q.g.zf]=a.platformVersion,b.o[Q.g.Af]=a.wow64?"1":"0")};function It(a){var b;b=b===void 0?document:b;var c;return!((c=b.featurePolicy)==null||!c.allowedFeatures().includes(a))};function Jt(){return It("join-ad-interest-group")&&pb(tc.joinAdInterestGroup)} function Kt(a,b){var c=Qb[3]===void 0?1:Qb[3],d='iframe[data-tagging-id="'+b+'"]',e=[];try{if(c===1){var f=I.querySelector(d);f&&(e=[f])}else e=Array.from(I.querySelectorAll(d))}catch(q){}var g;a:{try{g=I.querySelectorAll('iframe[allow="join-ad-interest-group"][data-tagging-id*="-"]');break a}catch(q){}g=void 0}var k=g,m=((k==null?void 0:k.length)||0)>=(Qb[2]===void 0?50:Qb[2]),n;if(n=e.length>=1){var p=Number(e[e.length-1].dataset.loadTime);p!==void 0&&Cb()-p<(Qb[1]===void 0?6E4:Qb[1])?(lb("TAGGING", 9),n=!0):n=!1}if(!n){if(c===1)if(e.length>=1)Lt(e[0]);else{if(m){lb("TAGGING",10);return}}else e.length>=c?Lt(e[0]):m&&Lt(k[0]);Fc(a,void 0,{allow:"join-ad-interest-group"},{taggingId:b,loadTime:Cb()})}}function Lt(a){try{a.parentNode.removeChild(a)}catch(b){}}function Mt(){return"https://td.doubleclick.net"}; var Cu=function(a,b){var c={},d=function(f,g){var k;k=g===!0?"1":g===!1?"0":encodeURIComponent(String(g));c[f]=k};G(a.o,function(f,g){var k=Bu[f];k&&g!==void 0&&g!==""&&(!a.metadata.redact_click_ids||f!==Q.g.Gd&&f!==Q.g.Od&&f!==Q.g.Xe&&f!==Q.g.fg||(g="0"),d(k,g))});d("gtm",bo({xa:a.metadata.source_canonical_id}));Ln()&&d("gcs",Mn());d("gcd",Un(a.m));Xn()&&d("dma_cps",Vn());d("dma",Wn());pn(xn())&&d("tcfd",Yn());Bi.j&&d("tag_exp",Bi.j);if(a.metadata.add_tag_timing){d("tft",Cb());var e=Tc();e!==void 0&& d("tfd",Math.round(e))}W(16)&&d("apve",W(17)?"1":"0");W(18)&&d("apvf",Qc()?W(19)?"f":"sb":"nf");b(c)},Du=function(a){Cu(a,function(b){if(a.metadata.hit_type==="page_view"){var c=[];G(b,function(e,f){c.push(e+"="+f)});var d=hj(X([Q.g.P,Q.g.O])?"https://www.google.com":"https://pagead2.googlesyndication.com",!0)+"/ccm/collect?"+c.join("&");W(18)&&W(19)&&Qc()?Rc(d,void 0,{noFallback:!0}):Nc(d);if(pb(a.m.onSuccess))a.m.onSuccess()}})},Eu={},Bu=(Eu[Q.g.Rb]="gcu",Eu[Q.g.kb]="gclgb",Eu[Q.g.Ua]="gclaw",Eu[Q.g.Ai]= "gad_source",Eu[Q.g.Gd]="gclid",Eu[Q.g.Bi]="gclsrc",Eu[Q.g.fg]="gbraid",Eu[Q.g.Xe]="wbraid",Eu[Q.g.Eb]="auid",Eu[Q.g.Di]="rnd",Eu[Q.g.Gi]="ncl",Eu[Q.g.ig]="gcldc",Eu[Q.g.Od]="dclid",Eu[Q.g.pb]="edid",Eu[Q.g.xc]="en",Eu[Q.g.Ac]="gdpr",Eu[Q.g.sb]="gdid",Eu[Q.g.Bc]="_ng",Eu[Q.g.Ti]="gtm_up",Eu[Q.g.Hb]="frm",Eu[Q.g.ed]="lps",Eu[Q.g.ae]="did",Eu[Q.g.wa]="dl",Eu[Q.g.Da]="dr",Eu[Q.g.pf]="ga_uid",Eu[Q.g.Dc]="gdpr_consent",Eu[Q.g.Ba]="uid",Eu[Q.g.fe]="us_privacy",Eu[Q.g.Nb]="npa",Eu);var Fu={M:{ai:"ads_conversion_hit",Ed:"container_execute_start",ei:"container_setup_end",Vf:"container_setup_start",bi:"container_blocking_end",di:"container_execute_end",fi:"container_yield_end",Wf:"container_yield_start",dj:"event_execute_end",cj:"event_evaluation_end",Og:"event_evaluation_start",ej:"event_setup_end",he:"event_setup_start",gj:"ga4_conversion_hit",me:"page_load",yn:"pageview",hc:"snippet_load",Cj:"tag_callback_error",Dj:"tag_callback_failure",Ej:"tag_callback_success",Fj:"tag_execute_end", od:"tag_execute_start"}};function Gu(){function a(c,d){var e=mb(d);e&&b.push([c,e])}var b=[];a("u","GTM");a("ut","TAGGING");a("h","HEALTH");return b};var Hu=!1;function pv(a,b){} function qv(a,b){}function rv(a,b){} function sv(a,b){}function tv(){var a={};return a} function hv(a){a=a===void 0?!0:a;var b={};return b} function uv(){}function vv(a,b){} function wv(a,b,c){} function xv(){}function yv(a,b){var c=H,d,e=c.GooglebQhCsO;e||(e={},c.GooglebQhCsO=e);d=e;if(d[a])return!1;d[a]=[];d[a][0]=b;return!0};var zv=function(a,b,c){var d=an(a,"fmt");if(b){var e=an(a,"random"),f=an(a,"label")||"";if(!e)return!1;var g=vt(decodeURIComponent(f.replace(/\+/g," "))+":"+decodeURIComponent(e.replace(/\+/g," ")));if(!yv(g,b))return!1}d&&d!=4&&(a=cn(a,"rfmt",d));var k=cn(a,"fmt",4);Dc(k,function(){H.google_noFurtherRedirects&&b&&b.call&&(H.google_noFurtherRedirects=null,b())},void 0,c,I.getElementsByTagName("script")[0].parentElement||void 0);return!0};function Rv(a,b){if(data.entities){var c=data.entities[a];if(c)return c[b]}};function Sv(a,b,c){c=c===void 0?!1:c;Tv().addRestriction(0,a,b,c)}function Uv(a,b,c){c=c===void 0?!1:c;Tv().addRestriction(1,a,b,c)}function Vv(){var a=Hj();return Tv().getRestrictions(1,a)}var Wv=function(){this.j={};this.D={}},Xv=function(a,b){var c=a.j[b];c||(c={_entity:{internal:[],external:[]},_event:{internal:[],external:[]}},a.j[b]=c);return c}; Wv.prototype.addRestriction=function(a,b,c,d){d=d===void 0?!1:d;if(!d||!this.D[b]){var e=Xv(this,b);a===0?d?e._entity.external.push(c):e._entity.internal.push(c):a===1&&(d?e._event.external.push(c):e._event.internal.push(c))}}; Wv.prototype.getRestrictions=function(a,b){var c=Xv(this,b);if(a===0){var d,e;return[].concat(oa((c==null?void 0:(d=c._entity)==null?void 0:d.internal)||[]),oa((c==null?void 0:(e=c._entity)==null?void 0:e.external)||[]))}if(a===1){var f,g;return[].concat(oa((c==null?void 0:(f=c._event)==null?void 0:f.internal)||[]),oa((c==null?void 0:(g=c._event)==null?void 0:g.external)||[]))}return[]}; Wv.prototype.getExternalRestrictions=function(a,b){var c=Xv(this,b),d,e;return a===0?(c==null?void 0:(d=c._entity)==null?void 0:d.external)||[]:(c==null?void 0:(e=c._event)==null?void 0:e.external)||[]};Wv.prototype.removeExternalRestrictions=function(a){var b=Xv(this,a);b._event&&(b._event.external=[]);b._entity&&(b._entity.external=[]);this.D[a]=!0};function Tv(){var a=ji.r;a||(a=new Wv,ji.r=a);return a};var Yv=new RegExp(/^(.*\.)?(google|youtube|blogger|withgoogle)(\.com?)?(\.[a-z]{2})?\.?$/),Zv={cl:["ecl"],customPixels:["nonGooglePixels"],ecl:["cl"],ehl:["hl"],gaawc:["googtag"],hl:["ehl"],html:["customScripts","customPixels","nonGooglePixels","nonGoogleScripts","nonGoogleIframes"],customScripts:["html","customPixels","nonGooglePixels","nonGoogleScripts","nonGoogleIframes"],nonGooglePixels:[],nonGoogleScripts:["nonGooglePixels"],nonGoogleIframes:["nonGooglePixels"]},$v={cl:["ecl"],customPixels:["customScripts", "html"],ecl:["cl"],ehl:["hl"],gaawc:["googtag"],hl:["ehl"],html:["customScripts"],customScripts:["html"],nonGooglePixels:["customPixels","customScripts","html","nonGoogleScripts","nonGoogleIframes"],nonGoogleScripts:["customScripts","html"],nonGoogleIframes:["customScripts","html","nonGoogleScripts"]},aw="google customPixels customScripts html nonGooglePixels nonGoogleScripts nonGoogleIframes".split(" "); function bw(){var a=Ii("gtm.allowlist")||Ii("gtm.whitelist");a&&P(9);oi&&(a=["google","gtagfl","lcl","zone"]);Yv.test(H.location&&H.location.hostname)&&(oi?P(116):(P(117),cw&&(a=[],window.console&&window.console.log&&window.console.log("GTM blocked. See go/13687728."))));var b=a&&Gb(zb(a),Zv),c=Ii("gtm.blocklist")||Ii("gtm.blacklist");c||(c=Ii("tagTypeBlacklist"))&&P(3);c?P(8):c=[];Yv.test(H.location&&H.location.hostname)&&(c=zb(c),c.push("nonGooglePixels","nonGoogleScripts","sandboxedScripts")); zb(c).indexOf("google")>=0&&P(2);var d=c&&Gb(zb(c),$v),e={};return function(f){var g=f&&f[Oe.oa];if(!g||typeof g!=="string")return!0;g=g.replace(/^_*/,"");if(e[g]!==void 0)return e[g];var k=yi[g]||[],m=!0;if(a){var n;if(n=m)a:{if(b.indexOf(g)<0)if(k&&k.length>0)for(var p=0;p=0;if(r)q=r;else{var t=ub(d,k||[]);t&&P(10);q=t}}var u=!m||q;u||!(k.indexOf("sandboxedScripts")>=0)||b&&b.indexOf("sandboxedScripts")!== -1||(u=ub(d,aw));return e[g]=u}}var cw=!1;cw=!0;function dw(){zj&&Sv(Hj(),function(a){var b=yf(a.entityId),c;if(Bf(b)){var d=b[Oe.oa];if(!d)throw Error("Error: No function name given for function call.");var e=qf[d];c=!!e&&!!e.runInSiloedMode}else c=!!Rv(b[Oe.oa],4);return c})}function ew(a,b,c,d,e){if(!fw()){var f=d.siloed?Cj(a):a;if(!Sj(f)){var g="?id="+encodeURIComponent(a)+"&l="+ii.Ya,k=Hb(a,"GTM-");k||(g+="&cx=c");W(60)&&(g+="&gtm="+bo());var m=fj();m&&(g+="&sign="+ii.Ff);var n=c?"/gtag/js":"/gtm.js",p=ej(b,n+g);if(!p){var q=ii.Fd+n;m&&wc&&k?(q=wc.replace(/^(?:https?:\/\/)?/i,"").split(/[?#]/)[0],p=Dr("https://","http://",q+g)):p=Bi.D?Ci()+n+g:Dr("https://","http://",q+g)}d.siloed&&Uj({ctid:f,isDestination:!1});var r=Mj();wj().container[f]={state:1,context:d,parent:r}; vj({ctid:f,isDestination:!1},e);Dc(p)}}} function gw(a,b,c,d){if(!fw()){var e=c.siloed?Cj(a):a;if(!Tj(e))if(!c.siloed&&Vj())wj().destination[e]={state:0,transportUrl:b,context:c,parent:Mj()},vj({ctid:e,isDestination:!0},d),P(91);else{var f="/gtag/destination?id="+encodeURIComponent(a)+"&l="+ii.Ya+"&cx=c";W(60)&&(f+="&gtm="+bo());fj()&&(f+="&sign="+ii.Ff);var g=ej(b,f);g||(g=Bi.D?Ci()+f:Dr("https://","http://",ii.Fd+f));c.siloed&&Uj({ctid:e,isDestination:!0});wj().destination[e]={state:1,context:c,parent:Mj()};vj({ctid:e,isDestination:!0}, d);Dc(g)}}}function fw(){if($n()){return!0}return!1};var hw=[];function iw(){var a=Sf.ctid;if(a){var b=yj.ke?1:0,c,d=Lj(Mj());c=d&&d.context;return a+";"+Sf.canonicalContainerId+";"+(c&&c.fromContainerExecution?1:0)+";"+(c&&c.source||0)+";"+b}}function jw(){var a=$i(H.location.href);return a.hostname+a.pathname}function kw(){var a=jw();a&&dk("dl",encodeURIComponent(a));if(W(76)){var b=iw();b&&dk("tdp",b)}else dk("tdp",function(){return hw.length>0?hw.join("."):void 0});var c=fn(!0);c!==void 0&&dk("frm",String(c))};var lw=!1,mw=0,nw=[];function ow(a){if(!lw){var b=I.createEventObject,c=I.readyState==="complete",d=I.readyState==="interactive";if(!a||a.type!=="readystatechange"||c||!b&&d){lw=!0;for(var e=0;e=0)&&c.push(e.listener)});return c};function sw(a,b,c){return{entityType:a,indexInOriginContainer:b,nameInOriginContainer:c,originContainerId:Fj()}};var uw=function(a,b){this.j=!1;this.K=[];this.eventData={tags:[]};this.R=!1;this.D=this.H=0;tw(this,a,b)},vw=function(a,b,c,d){if(li.hasOwnProperty(b)||b==="__zone")return-1;var e={};Wa(d)&&(e=l(d,e));e.id=c;e.status="timeout";return a.eventData.tags.push(e)-1},ww=function(a,b,c,d){var e=a.eventData.tags[b];e&&(e.status=c,e.executionTime=d)},xw=function(a){if(!a.j){for(var b=a.K,c=0;c=a.H&&xw(a)})},zw=function(a){a.R=!0;a.D>=a.H&&xw(a)};var Aw={},Cw=function(){return H[Bw()]}; function Bw(){return H.GoogleAnalyticsObject||"ga"} var Fw=function(){var a=Fj();},Gw=function(a,b){return function(){var c=Cw(),d=c&&c.getByName&&c.getByName(a);if(d){var e=d.get("sendHitTask");d.set("sendHitTask",function(f){var g=f.get("hitPayload"),k=f.get("hitCallback"),m=g.indexOf("&tid="+b)<0;m&&(f.set("hitPayload",g.replace(/&tid=UA-[0-9]+-[0-9]+/,"&tid="+b),!0),f.set("hitCallback",void 0,!0));e(f); m&&(f.set("hitPayload",g,!0),f.set("hitCallback",k,!0),f.set("_x_19",void 0,!0),e(f))})}}};var Lw=["es","1"],Mw={},Nw={};function Ow(a,b){if(oj){var c;c=b.match(/^(gtm|gtag)\./)?encodeURIComponent(b):"*";Mw[a]=[["e",c],["eid",a]];km(a)}}function Pw(a){var b=a.eventId,c=a.mc;if(!Mw[b])return[];var d=[];Nw[b]||d.push(Lw);d.push.apply(d,oa(Mw[b]));c&&(Nw[b]=!0);return d};var Qw={},Rw={},Sw={};function Tw(a,b,c,d){oj&&W(70)&&((d===void 0?0:d)?(Sw[b]=Sw[b]||0,++Sw[b]):c!==void 0?(Rw[a]=Rw[a]||{},Rw[a][b]=Math.round(c)):(Qw[a]=Qw[a]||{},Qw[a][b]=(Qw[a][b]||0)+1))}function Uw(a){var b=a.eventId,c=a.mc,d=Qw[b]||{},e=[],f;for(f in d)d.hasOwnProperty(f)&&e.push(""+f+d[f]);c&&delete Qw[b];return e.length?[["md",e.join(".")]]:[]} function Vw(a){var b=a.eventId,c=a.mc,d=Rw[b]||{},e=[],f;for(f in d)d.hasOwnProperty(f)&&e.push(""+f+d[f]);c&&delete Rw[b];return e.length?[["mtd",e.join(".")]]:[]}function Ww(){for(var a=[],b=la(Object.keys(Sw)),c=b.next();!c.done;c=b.next()){var d=c.value;a.push(""+d+Sw[d])}return a.length?[["mec",a.join(".")]]:[]};var Xw={},Yw={};function Zw(a,b,c){if(oj&&b){var d=ij(b);Xw[a]=Xw[a]||[];Xw[a].push(c+d);var e=(Bf(b)?"1":"2")+d;Yw[a]=Yw[a]||[];Yw[a].push(e);km(a)}}function $w(a){var b=a.eventId,c=a.mc,d=[],e=Xw[b]||[];e.length&&d.push(["tr",e.join(".")]);var f=Yw[b]||[];f.length&&d.push(["ti",f.join(".")]);c&&(delete Xw[b],delete Yw[b]);return d};function ax(a,b,c,d){var e=of[a],f=bx(a,b,c,d);if(!f)return null;var g=Cf(e[Oe.Aj],c,[]);if(g&&g.length){var k=g[0];f=ax(k.index,{onSuccess:f,onFailure:k.Nj===1?b.terminate:f,terminate:b.terminate},c,d)}return f} function bx(a,b,c,d){function e(){function w(){Sk(3);var D=Cb()-E;Zw(c.id,f,"7");ww(c.ic,A,"exception",D);W(61)&&wv(c,f,Fu.M.Cj);C||(C=!0,k())}if(f[Oe.Uk])k();else{var x=Af(f,c,[]),y=x[Oe.uk];if(y!=null)for(var B=0;B 0};var kx=function(a,b){if(!jx)return!1;var c=a["gtm.triggers"]&&String(a["gtm.triggers"]),d=jx.H(a.event,c?String(c).split(","):[]);if(!d.length)return!1;for(var e=0;ee?1:dk?1:g=0){if(e.Mh=ql(g,b),e.Mh){var k=Dj();sb(k,function(r){return function(t){return r.Mh.ia===t}}(e))?c.push(g):d.push(g)}}else{var m=Fx[g]||[];e.uh={};m.forEach(function(r){return function(t){r.uh[t]=!0}}(e));for(var n=Aj(),p=0;p=0&&c.splice(d,1)})}function Jx(a){G(Gx,function(b,c){var d=c.indexOf(a);d>=0&&c.splice(d,1)})}var Kx="HA GF G UA AW DC MC".split(" "),Lx=!1,Mx=!1,Nx=!1,Ox=!1;function Px(a,b){a.hasOwnProperty("gtm.uniqueEventId")||Object.defineProperty(a,"gtm.uniqueEventId",{value:zi()});b.eventId=a["gtm.uniqueEventId"];b.priorityId=a["gtm.priorityId"];return{eventId:b.eventId,priorityId:b.priorityId}}var Qx=void 0,Rx=void 0; function Sx(a,b,c){var d=l(a);d.eventId=void 0;d.inheritParentConfig=void 0;Object.keys(b).some(function(f){return b[f]!==void 0})&&P(136);var e=l(b);l(c,e);Bx(yx(Aj()[0],e),a.eventId,d)}function Tx(a){for(var b=la([Q.g.jd,Q.g.Mb]),c=b.next();!c.done;c=b.next()){var d=c.value,e=a&&a[d]||sm.D[d];if(e)return e}} var Ux=[Q.g.jd,Q.g.Mb,Q.g.yc,Q.g.nb,Q.g.ub,Q.g.Ba,Q.g.sa,Q.g.Oa,Q.g.Va,Q.g.Fb],Vx={config:function(a,b){var c=Px(a,b);if(!(a.length<2)&&z(a[1])){var d={};if(a.length>2){if(a[2]!=void 0&&!Wa(a[2])||a.length>3)return;d=a[2]}var e=ql(a[1],b.isGtmEvent);if(e){var f,g,k;a:{if(!yj.ke){var m=Lj(Mj());if(Xj(m)){var n=m.parent,p=n.isDestination;k={Bm:Lj(n),lm:p};break a}}k=void 0}var q=k;q&&(f=q.Bm,g=q.lm);Ow(c.eventId,"gtag.config");var r=e.ia,t=e.id!==r;if(t?Dj().indexOf(r)===-1:Aj().indexOf(r)===-1){if(!b.inheritParentConfig&& !d[Q.g.Ib]){var u=Tx(d);if(t)gw(r,u,{source:2,fromContainerExecution:b.fromContainerExecution});else if(f!==void 0&&f.containers.indexOf(r)!==-1){var v=d;Qx?Sx(b,v,Qx):Rx||(Rx=l(v))}else ew(r,u,!0,{source:2,fromContainerExecution:b.fromContainerExecution})}}else{if(f&&(P(128),g&&P(130),b.inheritParentConfig)){var w;var x=d;Rx?(Sx(b,Rx,x),w=!1):(!x[Q.g.ac]&&ni&&Qx||(Qx=l(x)),w=!0);w&&f.containers&&f.containers.join(",");return}var y=d;if(!Nx&&(Nx=!0,Mx))for(var B=la(Ux),A=B.next();!A.done;A=B.next())if(y.hasOwnProperty(A.value)){Rk("erc"); break}pj&&!zj&&(sx===1&&(bk.mcc=!1),sx=2);Ok=!0;if(ni&&!t&&!d[Q.g.ac]){var C=Ox;Ox=!0;if(C)return}Lx||P(43);if(!b.noTargetGroup)if(t){Jx(e.id);var E=e.id,D=d[Q.g.Yd]||"default";D=String(D).split(",");for(var F=0;F2){if(!Wa(a[2])&&a[2]!=void 0||a.length>3)return;d=a[2]}var e=d,f={},g=(f.event=c,f);e&&(g.eventModel=l(e),e[Q.g.bd]&&(g.eventCallback=e[Q.g.bd]),e[Q.g.Vd]&&(g.eventTimeout=e[Q.g.Vd]));var k=Px(a,b),m=k.eventId,n=k.priorityId;g["gtm.uniqueEventId"]=m;n&&(g["gtm.priorityId"]=n);if(c==="optimize.callback")return g.eventModel=g.eventModel||{},g;var p;var q=d,r=q&&q[Q.g.Zb];r===void 0&&(r=Ii(Q.g.Zb,2),r===void 0&&(r="default"));if(z(r)||Array.isArray(r)){var t;t=b.isGtmEvent?z(r)?[r]:r:r.toString().replace(/\s+/g, "").split(",");var u=Hx(t,b.isGtmEvent),v=u.mm,w=u.sm;if(w.length)for(var x=Tx(q),y=0;y0?g.eventModel[Q.g.Zb]=E.join():delete g.eventModel[Q.g.Zb];Lx||P(43);b.noGtmEvent===void 0&&b.eventMetadata&&b.eventMetadata.syn_or_mod&&(b.noGtmEvent=!0);g.eventModel[Q.g.Xb]&&(b.noGtmEvent=!0);return b.noGtmEvent?void 0:g}}},get:function(a,b){P(53);if(a.length===4&&z(a[1])&&z(a[2])&&pb(a[3])){var c=ql(a[1],b.isGtmEvent),d=String(a[2]), e=a[3];if(c){Lx||P(43);var f=Tx();if(!sb(Dj(),function(k){return c.ia===k}))gw(c.ia,f,{source:4,fromContainerExecution:b.fromContainerExecution});else if(Kx.indexOf(Nj(c.prefix))!==-1){Ok=!0;Px(a,b);var g={};l((g[Q.g.rb]=d,g[Q.g.Gb]=e,g));um(d,function(k){J(function(){return e(k)})},c.id,b)}}}},js:function(a,b){if(a.length==2&&a[1].getTime){Lx=!0;var c=Px(a,b),d=c.eventId,e=c.priorityId,f={};return f.event="gtm.js",f["gtm.start"]=a[1].getTime(),f["gtm.uniqueEventId"]=d,f["gtm.priorityId"]=e,f}},policy:function(a){if(a.length=== 3&&z(a[1])&&pb(a[2])){if(Pf(a[1],a[2]),P(74),a[1]==="all"){P(75);var b=!1;try{b=a[2](Fj(),"unknown",{})}catch(c){}b||P(76)}}else P(73)},set:function(a,b){var c;a.length==2&&Wa(a[1])?c=l(a[1]):a.length==3&&z(a[1])&&(c={},Wa(a[2])||Array.isArray(a[2])?c[a[1]]=l(a[2]):c[a[1]]=a[2]);if(c){var d=Px(a,b),e=d.eventId,f=d.priorityId;l(c);var g=l(c);sm.push("set",[g],void 0,b);c["gtm.uniqueEventId"]=e;f&&(c["gtm.priorityId"]=f);delete c.event;b.overwriteModelFields=!0;return c}}},Wx={policy:!0};var Yx=function(a){if(Xx(a))return a;this.value=a};Yx.prototype.getUntrustedMessageValue=function(){return this.value};var Xx=function(a){return!a||Ua(a)!=="object"||Wa(a)?!1:"getUntrustedMessageValue"in a};Yx.prototype.getUntrustedMessageValue=Yx.prototype.getUntrustedMessageValue;var Zx=!1,$x=[];function ay(){if(!Zx){Zx=!0;for(var a=0;a<$x.length;a++)J($x[a])}}function by(a){Zx?J(a):$x.push(a)};var cy=0,dy={},ey=[],fy=[],gy=!1,hy=!1;function iy(a,b){return a.messageContext.eventId-b.messageContext.eventId||a.messageContext.priorityId-b.messageContext.priorityId} var jy=function(a){return H[ii.Ya].push(a)},ky=function(a,b,c){a.eventCallback=b;c&&(a.eventTimeout=c);return jy(a)},ly=function(a,b){if(!qb(b)||b<0)b=0;var c=ji[ii.Ya],d=0,e=!1,f=void 0;f=H.setTimeout(function(){e||(e=!0,a());f=void 0},b);return function(){var g=c?c.subscribers:1;++d===g&&(f&&(H.clearTimeout(f),f=void 0),e||(a(),e=!0))}}; function my(a,b){var c=a._clear||b.overwriteModelFields;G(a,function(e,f){e!=="_clear"&&(c&&Li(e),Li(e,f))});vi||(vi=a["gtm.start"]);var d=a["gtm.uniqueEventId"];if(!a.event)return!1;typeof d!=="number"&&(d=zi(),a["gtm.uniqueEventId"]=d,Li("gtm.uniqueEventId",d));return rx(a)}function ny(a){if(a==null||typeof a!=="object")return!1;if(a.event)return!0;if(wb(a)){var b=a[0];if(b==="config"||b==="event"||b==="js"||b==="get")return!0}return!1} function oy(){var a;if(fy.length)a=fy.shift();else if(ey.length)a=ey.shift();else return;var b;var c=a;if(gy||!ny(c.message))b=c;else{gy=!0;var d=c.message["gtm.uniqueEventId"];typeof d!=="number"&&(d=c.message["gtm.uniqueEventId"]=zi());var e={},f={message:(e.event="gtm.init_consent",e["gtm.uniqueEventId"]=d-2,e),messageContext:{eventId:d-2}},g={},k={message:(g.event="gtm.init",g["gtm.uniqueEventId"]=d-1,g),messageContext:{eventId:d-1}};ey.unshift(k,c);if(pj){if(!W(76)){var m=iw();m&&hw.push(m)}hk()}b= f}return b} function py(){for(var a=!1,b;!hy&&(b=oy());){hy=!0;delete Fi.eventModel;Hi();var c=b,d=c.message,e=c.messageContext;if(d==null)hy=!1;else{e.fromContainerExecution&&Mi();try{if(pb(d))try{d.call(Ji)}catch(v){}else if(Array.isArray(d)){var f=d;if(z(f[0])){var g=f[0].split("."),k=g.pop(),m=f.slice(1),n=Ii(g.join("."),2);if(n!=null)try{n[k].apply(n,m)}catch(v){}}}else{var p=void 0;if(wb(d))a:{if(d.length&&z(d[0])){var q=Vx[d[0]];if(q&&(!e.fromContainerExecution||!Wx[d[0]])){p=q(d,e);break a}}p=void 0}else p= d;p&&(a=my(p,e)||a)}}finally{e.fromContainerExecution&&Hi(!0);var r=d["gtm.uniqueEventId"];if(typeof r==="number"){for(var t=dy[String(r)]||[],u=0;ucy&&(cy=r)}hy=!1}}}return!a} function ry(){if(W(61)){var a=sy();}var b=py();if(W(61)){}try{var c=Fj(),d=H[ii.Ya].hide;if(d&&d[c]!==void 0&&d.end){d[c]=!1;var e=!0,f;for(f in d)if(d.hasOwnProperty(f)&&d[f]=== !0){e=!1;break}e&&(d.end(),d.end=null)}}catch(g){}return b}function Ex(a){if(cy 0){f=[];for(var g=0;gn)for(P(4),c.pruned=!0;this.length>n;)this.shift();var p=typeof m!=="boolean"||m;return py()&&p};var e=b.slice(0).map(function(f){return a(f)});ey.push.apply(ey,e);if(sy()){if(W(61)){}J(ry)}},sy=function(){var a=!0;return a};function uy(a){if(a==null||a.length===0)return!1;var b=Number(a),c=Cb();return bc-9E5}function vy(a){return a&&a.indexOf("pending:")===0?uy(a.substr(8)):!1}; var Qy=function(){};var Ry=function(){};Ry.prototype.toString=function(){return"undefined"};var Sy=new Ry;function Zy(a,b){function c(g){var k=$i(g),m=Ui(k,"protocol"),n=Ui(k,"host",!0),p=Ui(k,"port"),q=Ui(k,"path").toLowerCase().replace(/\/$/,"");if(m===void 0||m==="http"&&p==="80"||m==="https"&&p==="443")m="web",p="default";return[m,n,p,q]}for(var d=c(String(a)),e=c(String(b)),f=0;f= 0;case "_le":return ug(b,c);case "_lt":return wg(b,c);case "_re":return qg(b,c,a.ignore_case);case "_sw":return xg(b,c);case "_um":return Zy(b,c)}return!1};function bz(){var a;a=a===void 0?"":a;var b,c;return((b=data)==null?0:(c=b.blob)==null?0:c.hasOwnProperty(1))?String(data.blob[1]):a};function cz(){var a=[["cv",W(83)?bz():"1"],["rv",ii.Sg],["tc",of.filter(function(b){return b}).length]];ii.oe&&a.push(["x",ii.oe]);Bi.j&&a.push(["tag_exp",Bi.j]);return a};var dz={},ez={};function fz(){var a=0;return function(b){switch(b){case 1:a|=1;break;case 2:a|=2;break;case 3:a|=4}return a}}function gz(a,b,c,d){if(oj){var e=String(c)+b;dz[a]=dz[a]||[];dz[a].push(e);ez[a]=ez[a]||[];ez[a].push(d+b)}}function hz(a){var b=a.eventId,c=a.mc,d=[],e=dz[b]||[];e.length&&d.push(["hf",e.join(".")]);var f=ez[b]||[];f.length&&d.push(["ht",f.join(".")]);c&&(delete dz[b],delete ez[b]);return d};function iz(){return!1}function jz(){var a={};return function(b,c,d){}};function kz(){var a=lz;return function(b,c,d){var e=d&&d.event;mz(c);var f=Hb(b,"__cvt_")?void 0:1,g=new cb;G(c,function(r,t){var u=jd(t,void 0,f);u===void 0&&t!==void 0&&P(44);g.set(r,u)});a.j.j.D=Hf();var k={Kj:Wf(b),eventId:e==null?void 0:e.id,priorityId:e!==void 0?e.priorityId:void 0,te:e!==void 0?function(r){e.ic.te(r)}:void 0,eb:function(){return b},log:function(){},El:{index:d==null?void 0:d.index,type:d==null?void 0:d.type,name:d==null?void 0:d.name},Lm:!!Rv(b,3),originalEventData:e==null? void 0:e.originalEventData};e&&e.cachedModelValues&&(k.cachedModelValues={gtm:e.cachedModelValues.gtm,ecommerce:e.cachedModelValues.ecommerce});if(iz()){var m=jz(),n,p;k.Sa={Xh:[],ue:{},xb:function(r,t,u){t===1&&(n=r);t===7&&(p=u);m(r,t,u)},Pf:fh()};k.log=function(r){var t=za.apply(1,arguments);n&&m(n,4,{level:r,source:p,message:t})}}var q=He(a,k,[b,g]);a.j.j.D=void 0;q instanceof Ga&&q.type==="return"&&(q=q.data);return K(q,void 0,f)}} function mz(a){var b=a.gtmOnSuccess,c=a.gtmOnFailure;pb(b)&&(a.gtmOnSuccess=function(){J(b)});pb(c)&&(a.gtmOnFailure=function(){J(c)})};function nz(a,b){var c=this;}nz.T="addConsentListener";var oz=!1;function pz(a){for(var b=0;b=0&&H.clearTimeout(f);b?f=H.setTimeout(function(){e(g,d);f=-1},b):e(g,d)})}},NB=function(a){var b=H.location.href,c={source:null,state:H.history.state||null,url:Xi($i(b)),Ga:Ui($i(b),"fragment")};return function(d,e){var f=c,g={};g[f.source]=!0;g[d.source]=!0;if(!g.popstate||!g.hashchange||f.Ga!==d.Ga){var k={event:a,"gtm.historyChangeSource":d.source,"gtm.oldUrlFragment":c.Ga, "gtm.newUrlFragment":d.Ga,"gtm.oldHistoryState":c.state,"gtm.newHistoryState":d.state,"gtm.oldUrl":c.url,"gtm.newUrl":d.url};e&&(k["gtm.triggers"]=e.join(","));c=d;jy(k)}}},PB=function(a,b){var c=H.history,d=c[a];if(pb(d))try{c[a]=function(e,f,g){d.apply(c,[].slice.call(arguments,0));var k=H.location.href;b({source:a,state:e,url:Xi($i(k)),Ga:Ui($i(k),"fragment")})}}catch(e){}},RB=function(a){H.addEventListener("popstate",function(b){var c=QB(b);a({source:"popstate",state:b.state,url:Xi($i(c)),Ga:Ui($i(c), "fragment")})})},SB=function(a){H.addEventListener("hashchange",function(b){var c=QB(b);a({source:"hashchange",state:null,url:Xi($i(c)),Ga:Ui($i(c),"fragment")})})},QB=function(a){var b,c;return((b=a.target)==null?void 0:(c=b.location)==null?void 0:c.href)||H.location.href}; function TB(a,b){var c=this;N(this.getName(),["options:?PixieMap","triggerId:?*"],arguments);pz([function(){O(c,"detect_history_change_events")}]);var d=a&&a.get("useV2EventName")?"ehl":"hl",e=Number(a&&a.get("interval"));e>0&&isFinite(e)||(e=0);if(!wz(d,"init",!1)){var f;d==="ehl"?(f=function(k){for(var m=0;m0){var f=Xi($i(c)),g=Xi($i(H.location.href));return f!==g}return!0},WB=function(a,b){for(var c=Ui($i((b.attributes&&b.attributes.formaction?b.formAction:"")||b.action||Sc(b,"href")||b.src||b.code||b.codebase||""),"host"), d=0;d0&&isFinite(k)||(k=2E3);var m=function(p){return Math.max(k,p)};Az("lcl","mwt",m,0);f||Az("lcl","nv.mwt",m,0)}var n=function(p){p.push(b); return p};Az("lcl","ids",n,[]);f||Az("lcl","nv.ids",n,[]);g&&Az("lcl","aff.map",function(p){p[b]=g;return p},{});wz("lcl","init",!1)||(XB(),xz("lcl","init",!0));return b}YB.J="internal.enableAutoEventOnLinkClick";var ZB,$B; var aC=function(a){return wz("sdl",a,{})},bC=function(a,b,c){if(b){var d=Array.isArray(a)?a:[a];Az("sdl",c,function(e){for(var f=0;f=a.Fh)a.Nf&&H.clearInterval(a.Nf);else{a.Hh++;var b=Cb();jy({event:a.eventName,"gtm.timerId":a.Nf,"gtm.timerEventNumber":a.Hh,"gtm.timerInterval":a.interval,"gtm.timerLimit":a.Fh,"gtm.timerStartTime":a.jk,"gtm.timerCurrentTime":b,"gtm.timerElapsedTime":b-a.jk,"gtm.triggers":a.gn})}}} function mC(a,b){ return b}mC.J="internal.enableAutoEventOnTimer"; var nC=function(a,b,c){function d(){var g=a();f+=e?(Cb()-e)*g.playbackRate/1E3:0;e=Cb()}var e=0,f=0;return{createEvent:function(g,k,m){var n=a(),p=n.ih,q=m!==void 0?Math.round(m):k!==void 0?Math.round(n.ih*k):Math.round(n.Lj),r=k!==void 0?Math.round(k*100):p<=0?0:Math.round(q/p*100),t=I.hidden?!1:$r(c)>=.5;d();var u=void 0;b!==void 0&&(u=[b]);var v=Bz(c,"gtm.video",u);v["gtm.videoProvider"]="youtube";v["gtm.videoStatus"]=g;v["gtm.videoUrl"]=n.url;v["gtm.videoTitle"]=n.title;v["gtm.videoDuration"]= Math.round(p);v["gtm.videoCurrentTime"]=Math.round(q);v["gtm.videoElapsedTime"]=Math.round(f);v["gtm.videoPercent"]=r;v["gtm.videoVisible"]=t;return v},fk:function(){e=Cb()},pd:function(){d()}}};var lc=ja(["data-gtm-yt-inspected-"]),oC=["www.youtube.com","www.youtube-nocookie.com"],pC,qC=!1; var rC=function(a,b,c){var d=a.map(function(g){return{Fa:g,Se:g,Qe:void 0}});if(!b.length)return d;var e=b.map(function(g){return{Fa:g*c,Se:void 0,Qe:g}});if(!d.length)return e;var f=d.concat(e);f.sort(function(g,k){return g.Fa-k.Fa});return f},sC=function(a){a=a===void 0?[]:a;for(var b=[],c=0;c100||a[c]<0||(b[c]=a[c]/100);b.sort(function(d,e){return d- e});return b},uC=function(a,b){var c,d;function e(){t=nC(function(){return{url:w,title:x,ih:v,Lj:a.getCurrentTime(),playbackRate:y}},b.Bb,a.getIframe());v=0;x=w="";y=1;return f}function f(E){switch(E){case 1:v=Math.round(a.getDuration());w=a.getVideoUrl();if(a.getVideoData){var D=a.getVideoData();x=D?D.title:""}y=a.getPlaybackRate();b.Zg?jy(t.createEvent("start")):t.pd();u=rC(b.Ph,b.Oh,a.getDuration());return g(E);default:return f}}function g(){B=a.getCurrentTime();A=Bb().getTime();t.fk();r();return k} function k(E){var D;switch(E){case 0:return n(E);case 2:D="pause";case 3:var F=a.getCurrentTime()-B;D=Math.abs((Bb().getTime()-A)/1E3*y-F)>1?"seek":D||"buffering";a.getCurrentTime()&&(b.Yg?jy(t.createEvent(D)):t.pd());q();return m;case -1:return e(E);default:return k}}function m(E){switch(E){case 0:return n(E);case 1:return g(E);case -1:return e(E);default:return m}}function n(){for(;d;){var E=c;H.clearTimeout(d);E()}b.Xg&&jy(t.createEvent("complete",1));return e(-1)}function p(){}function q(){d&& (H.clearTimeout(d),d=0,c=p)}function r(){if(u.length&&y!==0){var E=-1,D;do{D=u[0];if(D.Fa>a.getDuration())return;E=(D.Fa-a.getCurrentTime())/y;if(E<0&&(u.shift(),u.length===0))return}while(E<0);c=function(){d=0;c=p;u.length>0&&u[0].Fa===D.Fa&&(u.shift(),jy(t.createEvent("progress",D.Qe,D.Se)));r()};d=H.setTimeout(c,E*1E3)}}var t,u=[],v,w,x,y,B,A,C=e(-1);d=0;c=p;return{onStateChange:function(E){C=C(E)},onPlaybackRateChange:function(E){B=a.getCurrentTime();A=Bb().getTime();t.pd();y=E;q();r()}}},wC= function(a){J(function(){function b(){for(var d=c.getElementsByTagName("iframe"),e=d.length,f=0;f0)return!0;if(b){var d;var e=c.indexOf("?")!==-1?"&":"?";c.indexOf("origin=")>-1?d=c+e+"enablejsapi=1":(pC||(pC=I.location.protocol+"//"+I.location.hostname,I.location.port&&(pC+=":"+I.location.port)),d=c+e+"enablejsapi=1&origin="+encodeURIComponent(pC));var f;f=Xb(d);a.src=Vb(f).toString();return!0}}return!1},zC=function(a,b){if(!a)return!1;for(var c=0;c=0)return!0;return!1},yC=function(){var a= ""+Math.round(Math.random()*1E9);return I.getElementById(a)?yC():a}; function AC(a,b){var c=this;var d=function(){wC(p)};N(this.getName(),["dustOptions:!PixieMap","triggerId:?*"],arguments);pz([function(){O(c,"detect_youtube_activity_events",{fixMissingApi:!!a.get("fixMissingApi")})}]);b=vz(b);var e=!!a.get("captureStart"),f=!!a.get("captureComplete"),g=!!a.get("capturePause"),k=tC(K(a.get("progressThresholdsPercent"))),m=sC(K(a.get("progressThresholdsTimeInSeconds"))),n=!!a.get("fixMissingApi"); if(!(e||f||g||k.length||m.length))return;var p={Zg:e,Xg:f,Yg:g,Oh:k,Ph:m,Ce:n,Bb:b},q=H.YT;if(q)return q.ready&&q.ready(d),b;var r=H.onYouTubeIframeAPIReady;H.onYouTubeIframeAPIReady=function(){r&&r();d()};J(function(){for(var t=I.getElementsByTagName("script"),u=t.length,v=0;v0&&(a.o[Q.g.Qd]=b)};h.Tl=function(a){a.o[Q.g.Qd]=void 0;this.Sh();this.D=0};h.zh=function(){return this.H&& this.isVisible&&this.isActive};h.Ll=function(){return this.D+this.Jf()};h.Jf=function(){return this.j&&this.j.get()||0};h.Jm=function(a){this.K=a};h.ek=function(a){this.R=a};var LE=function(a){var b=a.metadata.event_usage;if(Array.isArray(b))for(var c=0;cd.Me+f*60))return a;var g=VE(b);if(!g)return a;g.Lc=d.Lc+1;var k;return(k=WE(g.sessionId,g.Lc,g.zd,g.Me,g.Dh,g.Hc,g.ze))!=null?k:b},$E=function(a,b){var c=b.metadata.cookie_options,d=YE(b,c),e=Go(a,ZE[0],c.domain,c.path),f={Ab:Q.g.U,domain:c.domain,path:c.path,expires:c.zb?new Date(Cb()+Number(c.zb)*1E3):void 0,flags:c.flags}; xo(d,void 0,f);return xo(d,e,f)!==1},aF=function(a){var b=a.metadata.cookie_options,c=YE(a,b),d=Fo(c,b.domain,b.path,ZE,Q.g.U);if(!d)return d;var e=mo(c,void 0,void 0,Q.g.U);if(d&&e.length>1){P(114);for(var f=void 0,g=void 0,k=0;kg)&&(g=n,f=e[k])}}f&&!Ib(f,d)&&(P(115),d=f.split(".").slice(2).join("."))}return d},WE=function(a,b,c,d,e,f,g){if(a&&b){var k=[a,b,xb(c),d,e];k.push(f?"1":"0");k.push(g||"0");return k.join(".")}}, ZE=["GS1"],YE=function(a,b){return b.prefix+"_ga_"+a.target.ma[tl[0]]},VE=function(a){if(a){var b=a.split(".");if(!(b.length<5||b.length>7)){b.length<7&&P(67);var c=Number(b[1]),d=Number(b[3]),e=Number(b[4]||0);c||P(118);d||P(119);isNaN(e)&&P(120);if(c&&d&&!isNaN(e))return{sessionId:b[0],Lc:c,zd:!!Number(b[2]),Me:d,Dh:e,Hc:b[5]==="1",ze:b[6]!=="0"?b[6]:void 0}}}},bF=function(a){return WE(a.o[Q.g.ub],a.o[Q.g.de],a.o[Q.g.ce],Math.floor(a.metadata.event_start_timestamp_ms/1E3),a.metadata.join_timer_sec|| 0,!!a.metadata[Q.g.ff],a.o[Q.g.Rd])}; var cF=function(a){var b=T(a.m,Q.g.sa),c=a.m.D[Q.g.sa];if(c===b)return c;var d=l(b);c&&c[Q.g.W]&&(d[Q.g.W]=(d[Q.g.W]||[]).concat(c[Q.g.W]));return d},dF=function(a,b){var c=Xo(!0);return c._up!=="1"?{}:{clientId:c[a],Tf:c[b]}},eF=function(a,b,c){var d=Xo(!0),e=d[b];e&&(QE(a,e,2),TE(e,a));var f=d[c];f&&$E(f,a);return{clientId:e,Tf:f}},fF=!1,gF=function(a){var b=cF(a)||{},c=a.metadata.cookie_options,d=c.prefix+"_ga",e=YE(a,c),f={};gp(b[Q.g.Cc],!!b[Q.g.W])&&(f=eF(a,d,e),f.clientId&&f.Tf&&(fF=!0));b[Q.g.W]&& dp(function(){var g={},k=RE(a);k&&(g[d]=k);var m=aF(a);m&&(g[e]=m);var n=mo("FPLC",void 0,void 0,Q.g.U);n.length&&(g._fplc=n[0]);return g},b[Q.g.W],b[Q.g.Jb],!!b[Q.g.tb]);return f},iF=function(a){if(!T(a.m,Q.g.Xa))return{};var b=a.metadata.cookie_options,c=b.prefix+"_ga",d=YE(a,b);ep(function(){var e;if(X("analytics_storage"))e={};else{var f={};e=(f._up="1",f[c]=a.o[Q.g.nb],f[d]=bF(a),f)}return e},1);return!X("analytics_storage")&&hF()?dF(c,d):{}},hF=function(){var a=Wi(H.location,"host"),b=Wi($i(I.referrer), "host");return a&&b?a===b||a.indexOf("."+b)>=0||b.indexOf("."+a)>=0?!0:!1:!1};var jF=function(a){if(!a.metadata.is_merchant_center&&gj(a.m)){var b=cF(a)||{},c=(gp(b[Q.g.Cc],!!b[Q.g.W])?Xo(!0)._fplc:void 0)||(mo("FPLC",void 0,void 0,Q.g.U).length>0?void 0:"0");a.o._fplc=c}};var lF=function(a,b){var c=ji.grl;c||(c=kF(),ji.grl=c);c(b)||(P(35),a.isAborted=!0)},kF=function(){var a=Cb(),b=a+864E5,c=20,d=5E3;return function(e){var f=Cb();f>=b&&(b=f+864E5,d=5E3);c=Math.min(c+(f-a)/1E3*5,20);a=f;var g=!1;d<1||c<1||(g=!0,d--,c--);e&&(e.yl=d,e.rl=c);return g}}; var mF=function(a){if(T(a.m,Q.g.dd)!==void 0)a.copyToHitData(Q.g.dd);else{var b=T(a.m,Q.g.kf),c,d;a:{if(fF){var e=cF(a)||{};if(e&&e[Q.g.W])for(var f=Ui($i(a.o[Q.g.Da]),"host",!0),g=e[Q.g.W],k=0;k=0){d=!0;break a}}d=!1}if(!(c=d)){var m;if(m=b)a:{for(var n=b.include_conditions||[],p=Ui($i(a.o[Q.g.Da]),"host",!0),q=0;q=0&&(c=a.pathname.substring(0,d));b.transport_url=a.protocol+"//"+a.hostname+c;return b},GF=function(a,b,c,d){var e=BF(AF(new zF(function(k,m){var n=EF(k,c);d&&(n=n.replace("_is_sw=0",d));var p={};m.attribution_reporting&&(p.attributionsrc="");Gc(n,void 0,void 0,p)}),function(k){var m=EF(k,c);Nc(m)}),function(k,m){var n=EF(k,c),p=m.dedupe_key;p&& Kt(n,p)}),f=0,g=new H.XMLHttpRequest;g.withCredentials=!0;g.onprogress=function(k){if(g.status===200){var m=g.responseText.substring(f);f=k.loaded;var n;n=e.H+m;for(var p=n.indexOf("\n\n");p!==-1;){var q;a:{var r=la(n.substring(0,p).split("\n")),t=r.next().value,u=r.next().value;if(t.indexOf("event: message")===0&&u.indexOf("data: ")===0)try{q=JSON.parse(u.substring(u.indexOf(":")+1));break a}catch(F){}q=void 0}var v=e,w=q;if(w){DF(w.send_pixel,w.options,v.D);DF(w.send_beacon,void 0,v.j);var x=w.create_iframe, y=w.options,B=v.K;if(x&&B){var A=x||[];if(Array.isArray(A))for(var C=Wa(y)?y:{},E=la(A),D=E.next();!D.done;D=E.next())B(D.value,C)}}n=n.substring(p+2);p=n.indexOf("\n\n")}e.H=n}};g.open(b?"POST":"GET",a);g.setAttributionReporting&&g.setAttributionReporting({eventSourceEligible:!1,triggerEligible:!0});g.send(b)},HF=function(a,b){var c=$i(a),d=FF(c),e=CF(c);W(75)?pt(e,b,d,function(f){GF(e,b,d,f)}):GF(e,b,d)}; var IF=function(a,b){return a?[a,b].join("&"):b},LF=function(a,b,c,d){var e=b,f=Tc();f!==void 0&&(e+="&tfd="+Math.round(f));b=e;var g=a+"?"+b;JF&&(d=!Hb(g,pF())&&!Hb(g,oF()));if(d&&!GE)HF(g,c);else{var k=b;Qc()?Rc(a+"?"+k,c,{On:!0})||KF(a,IF(k,"_z=failedfetch"),c):KF(a,IF(k,"_z=nofetch"),c)}},MF=function(a,b){function c(u){n.push(u+"="+encodeURIComponent(""+a.ja[u]))}var d=b.Sm,e=b.Tm,f=b.Nl,g=b.fm,k=b.dm,m=b.Im;if(d||e){var n=[];a.ja._ng&&c("_ng");c("tid");c("cid");c("gtm");n.push("aip=1");a.Mc.uid&& !k&&n.push("uid="+encodeURIComponent(""+a.Mc.uid));var p=function(){c("dma");a.ja.dma_cps!=null&&c("dma_cps");a.ja.gcs!=null&&c("gcs");c("gcd");a.ja.npa!=null&&c("npa")};p();a.ja.frm!=null&&c("frm");d&&(Bi.j&&n.push("tag_exp="+Bi.j),KF("https://stats.g.doubleclick.net/g/collect","v=2&"+n.join("&")),n.join("&"));if(e){var q=function(){var u=Mt()+"/td/ga/rul?";n=[];c("tid");n.push("gacid="+encodeURIComponent(String(a.ja.cid)));c("gtm");p();c("pscdl");a.ja._ng!=null&&c("_ng");n.push("aip=1");n.push("fledge=1"); a.ja.frm!=null&&c("frm");Bi.j&&n.push("tag_exp="+Bi.j);n.push("z="+tb());var v=u+n.join("&");Kt(v,a.ja.tid)};Bi.j&&n.push("tag_exp="+Bi.j);n.push("z="+tb());if(!g){var r=f&&Hb(f,"google.")&&f!=="google.com"?"https://www.%/ads/ga-audiences?v=1&t=sr&slf_rd=1&_r=4&".replace("%",f):void 0;if(r){var t=r+n.join("&");Gc(t)}}W(62)&&m&&!GE&&q()}}},JF=!1;var NF=function(){this.K= 1;this.R={};this.j=new cg;this.D=-1};NF.prototype.H=function(a,b){var c=this,d=new yF(a,this.R,b),e=HE(a);e&&this.j.R(d)||this.flush();if(e&&this.j.add(d)){if(this.D<0){var f=H.setTimeout,g;Vs(a)?OF?(OF=!1,g=PF):g=QF:g=5E3;this.D=f.call(H,function(){return c.flush()},g)}}else{var k=fg(d,this.K++);LF(d.baseUrl,k.params,k.body,d.H);var m=a.metadata.create_dc_join,n=a.metadata.create_google_join,p=T(a.m,Q.g.Ca)!==!1,q=Kn(a.m),r={eventId:a.m.eventId,priorityId:a.m.priorityId},t=a.o[Q.g.Gg],u={Sm:m,Tm:n, Nl:$k(),Hn:p,Gn:q,fm:Wk(),dm:a.metadata.euid_mode_enabled,Mn:r,Im:t,m:a.m};MF(d,u)}pv(a.m.eventId,a.eventName)};NF.prototype.add=function(a){a.metadata.euid_mode_enabled&&!GE?this.Z(a):this.H(a)};NF.prototype.flush=function(){if(this.j.events.length){var a=hg(this.j,this.K++);LF(this.j.baseUrl,a.params,a.body,this.j.D);this.j=new cg;this.D>=0&&(H.clearTimeout(this.D),this.D=-1)}};NF.prototype.Z=function(a){var b=this,c=Us(a);c?Ah(c,function(d){b.H(a,d.split("~").length===1?void 0:d)}):this.H(a)}; var KF=function(a,b,c){var d=a+"?"+b;c?Oc(d,c):Nc(d)},PF=mk('',500),QF=mk('',5E3),OF=!0; var RF=function(a,b,c){c===void 0&&(c={});if(typeof b==="object")for(var d in b)RF(a+"."+d,b[d],c);else c[a]=b;return c},SF=function(a){for(var b={},c=la(a),d=c.next();!d.done;d=c.next()){var e=d.value;b[e]=!!X(e)}return b},TF=function(a,b,c){var d=c.filter(function(f){return!X(f)});if(d.length){var e=SF(d);il(d,function(){for(var f=SF(d),g=[],k=la(d),m=k.next();!m.done;m=k.next()){var n=m.value;!e[n]&&f[n]&&g.push(n);f[n]&&(e[n]=!0)}if(g.length){b.metadata.is_consent_update=!0;var p=g.map(function(q){return di[q]}).join("."); p&&Ss(b,"gcut",p);a(b)}})}},UF=[Q.g.P,Q.g.O],VF=function(a){Vs(a)&&Ik()&&Ss(a,"rnd",Sq())},WF=function(a){},XF=function(a){if(W(59)&&Vs(a)){Rq(a,Q.g.Wb,!1)&&Ss(a,"gse",1);T(a.m,Q.g.lb,void 0,4)===!1&&Ss(a,"ngs",1);Wk()&&Ss(a,"ga_rd",1);kD()||Ss(a,"ngst",1);var b=$k();b&&Ss(a,"etld",b)}},YF=function(a){if(Vs(a)){var b=rF?Yk():"";b&&Ss(a, "gcsub",b)}},ZF=function(a){Vs(a)&&(Ss(a,"gcd",Un(a.m)),Ik()&&T(a.m,Q.g.fa)&&Ss(a,"adr",1))},$F=function(a){if(Vs(a)){var b=lr();b&&Ss(a,"us_privacy",b);var c=En();c&&Ss(a,"gdpr",c);var d=Dn();d&&Ss(a,"gdpr_consent",d)}},aG=function(a){if(Vs(a)){var b=Rq(a,"ccd_add_1p_data",!1)?1:0;Ss(a,"ude",b);var c=function(e){var f=RF(Q.g.Ea,e);G(f,function(g,k){a.o[g]=k})},d=T(a.m,Q.g.Ea);d!==void 0?(c(d),a.o[Q.g.md]="c"):c(a.metadata.user_data);a.metadata.user_data=void 0}},bG=function(a){Vs(a)&&(a.o[Q.g.bj]= Vk()||Uk())},cG=function(a){if(Vs(a)){var b=vi;b&&Ss(a,"tft",Number(b))}},dG=function(a){Vs(a)&&(a.metadata.speculative&&Ss(a,"sp",1),a.metadata.is_syn&&Ss(a,"syn",1),a.metadata.em_event&&(Ss(a,"em_event",1),Ss(a,"sp",1)))},eG=function(a){Vs(a)&&(a.metadata.speculative=!1)},fG=function(a){W(90)&&Vs(a)&&T(a.m,Q.g.Ca)!==!1&&It("join-ad-interest-group")&&pb(tc.joinAdInterestGroup)&&Ss(a,"flg",1)},gG=function(a){if(Vs(a)&&a.eventName===Q.g.Nc&&a.metadata.is_consent_update){var b=a.o[Q.g.hg];b&&(Ss(a, "gcut",b),Ss(a,"syn",1))}},hG=function(a,b){if(Vs(b)){var c=b.metadata.is_conversion;if(b.eventName==="page_view"||c)if(W(67))TF(a,b,UF);else for(var d=la(UF),e=d.next();!e.done;e=d.next())TF(a,b,[e.value])}},iG=function(a){W(89)&&Vs(a)&&T(a.m,Q.g.Hd,!0)===!1&&(a.o[Q.g.Hd]=0)}; var jG=function(a,b,c,d,e){var f=T(a.m,Q.g.nb);if(T(a.m,Q.g.Ib)&&T(a.m,Q.g.Xb))f?QE(a,f,1):(P(127),a.isAborted=!0);else{var g=f?1:8;a.metadata.is_new_to_site=!1;f||(f=RE(a),g=3);f||(f=b,g=5);if(!f){var k=X(Q.g.U),m=NE();f=!m.from_cookie||k?m.vid:void 0;g=6}f?f=""+f:(f=Eo(),g=7,a.metadata.is_first_visit=a.metadata.is_new_to_site=!0);QE(a,f,g)}var n=Math.floor(a.metadata.event_start_timestamp_ms/1E3),p=void 0;a.metadata.is_new_to_site||(p=aF(a)||c);var q=xb(T(a.m,Q.g.kd,30));q=Math.min(475,q);q=Math.max(5, q);var r=xb(T(a.m,Q.g.nf,1E4)),t=VE(p);a.metadata.is_first_visit=!1;a.metadata.is_session_start=!1;a.metadata.join_timer_sec=0;t&&t.Dh&&(a.metadata.join_timer_sec=Math.max(0,t.Dh-Math.max(0,n-t.Me)));var u=!1;t||(u=a.metadata.is_first_visit=!0,t={sessionId:String(n),Lc:1,zd:!1,Me:n,Hc:!1,ze:void 0});n>t.Me+q*60&&(u=!0,t.sessionId=String(n),t.Lc++,t.zd=!1,t.ze=void 0);if(u)a.metadata.is_session_start=!0,d.Tl(a);else if(d.Ll()>r||a.eventName==Q.g.Tb)t.zd=!0;a.metadata.euid_mode_enabled?T(a.m,Q.g.Ba)? t.Hc=!0:(t.Hc&&!W(11)&&(t.ze=void 0),t.Hc=!1):t.Hc=!1;var v=t.ze;if(a.metadata.euid_mode_enabled||Vs(a)){var w=T(a.m,Q.g.Rd),x=w?1:8;w||(w=v,x=4);w||(w=Do(),x=7);var y=w.toString(),B=x,A=a.metadata.enhanced_client_id_source;if(A===void 0||B<=A)a.o[Q.g.Rd]=y,a.metadata.enhanced_client_id_source=B}e?(a.copyToHitData(Q.g.ub,t.sessionId),a.copyToHitData(Q.g.de,t.Lc),a.copyToHitData(Q.g.ce,t.zd?1:0)):(a.o[Q.g.ub]=t.sessionId,a.o[Q.g.de]=t.Lc,a.o[Q.g.ce]=t.zd?1:0);a.metadata[Q.g.ff]=t.Hc?1:0},kG=function(a, b){var c;a:{var d=bF(a);if(d){if($E(d,a)){c=d;break a}P(25);a.isAborted=!0}c=void 0}var e=c;return{clientId:UE(a,b),Tf:e}};var lG=window,mG=document,nG=function(a){var b=lG._gaUserPrefs;if(b&&b.ioo&&b.ioo()||mG.documentElement.hasAttribute("data-google-analytics-opt-out")||a&&lG["ga-disable-"+a]===!0)return!0;try{var c=lG.external;if(c&&c._gaUserPrefs&&c._gaUserPrefs=="oo")return!0}catch(p){}for(var d=[],e=String(mG.cookie).split(";"),f=0;f0&&KE(17);sG(a);jG(a,this.j,this.H,this.K,!this.fc);JG(a);KG(a);LG(a);MG(a);NG(a);OG(a);PG(a);jF(a);mF(a);VF(a);WF(a);XF(a);YF(a);ZF(a);$F(a);bG(a);cG(a);dG(a);fG(a);gG(a);iG(a);QG(a);RG(a);SG(a);vr(a);ur(a);TG(a);UG(a);Sr(a);aG(a);eG(a);VG(a);!this.Z&&a.metadata.em_event&&KE(18);LE(a);if(a.metadata.speculative||a.isAborted){a.m.onFailure();ME();return}this.dk(kG(a,this.j));this.fc=!0;this.Xm(a);WG(a);hG(function(f){return b.Ij(f)},a);this.K.Sh(); XG(a);if(a.isAborted){a.m.onFailure();ME();return}this.Ij(a);a.m.onSuccess()}catch(f){a.m.onFailure()}ME()};h.Ij=function(a){this.bc.add(a)};h.dk=function(a){var b=a.clientId,c=a.Tf;b&&c&&(this.j=b,this.H=c)};h.flush=function(){this.bc.flush()};h.Xm=function(a){var b=this;if(!this.Qa){var c=X(Q.g.O),d=X(Q.g.U);il([Q.g.O,Q.g.U],function(){var e=X(Q.g.O),f=X(Q.g.U),g=!1,k={},m={};if(d!==f&&b.D&&b.H&&b.j){var n=b.j;if(f){var p=RE(b.D);if(p){b.j=p;var q=aF(b.D);q&&(b.H=XE(q,b.H,b.D))}else TE(b.j,b.D), PE(b.j,!0);$E(b.H,b.D);g=!0;k[Q.g.vg]=n}else b.H=void 0,b.j=void 0,H.gaGlobal={}}e&&!c&&(g=!0,m.is_consent_update=!0,k[Q.g.hg]=di[Q.g.O]);if(g){var r=zx(b.R,Q.g.Nc,k);Bx(r,a.m.eventId,{eventMetadata:m})}d=f;c=e});this.Qa=!0}};h.Sk=function(a){a.eventName!==Q.g.Ta&&this.K.Rk(a)};var yG=function(a){if(nG(a.target.ia))P(28),a.isAborted=!0;else if(W(85)){var b=Kj();if(b&&Array.isArray(b.destinations))for(var c=0;c=0)a.isAborted=!0;else{var b=Ts(a);b&&b.blacklisted&&(a.isAborted=!0)}},NG=function(a){var b=function(c){return!!c&&c.conversion};a.metadata.is_conversion=b(Ts(a));a.metadata.is_first_visit&&(a.metadata.is_first_visit_conversion=b(Ts(a,"first_visit")));a.metadata.is_session_start&&(a.metadata.is_session_start_conversion=b(Ts(a,"session_start")))}, OG=function(a){Yh.hasOwnProperty(a.eventName)&&(a.metadata.is_ecommerce=!0,a.copyToHitData(Q.g.da),a.copyToHitData(Q.g.za))},PG=function(a){a.copyToHitData(Q.g.rf);for(var b=T(a.m,Q.g.jf)||[],c=0;c=1E3&&tc.sendBeacon&&tm(Q.g.Nc,{},a.id,f);b.flush();d.ek(function(){GE=!1;d.ek()})});};var cH=$G;function eH(a,b,c){var d=this;}eH.J="internal.gtagConfig";function fH(){var a={};return a}; function hH(a,b){}hH.T="gtagSet";function iH(a,b){}iH.T="injectHiddenIframe";var jH=fz(); function kH(a,b,c,d,e){}kH.J="internal.injectHtml";var oH={}; function qH(a,b,c,d){}var rH={dl:1,id:1},sH={}; function tH(a,b,c,d){}qH.T="injectScript";tH.J="internal.injectScript";function uH(a){var b=!0;return b}uH.T="isConsentGranted";function vH(){return Xk()}vH.J="internal.isDmaRegion";function wH(a){var b=!1;return b}wH.J="internal.isEntityInfrastructure";function xH(){var a=ah(function(b){tz(this).log("error",b)});a.T="JSON";return a};function yH(a){var b=void 0;return jd(b)}yH.J="internal.legacyParseUrl";function zH(){return!1} var AH={getItem:function(a){var b=null;return b},setItem:function(a,b){return!1},removeItem:function(a){}};function BH(){}BH.T="logToConsole";function CH(a,b){}CH.J="internal.mergeRemoteConfig";function DH(a,b,c){c=c===void 0?!0:c;var d=[];return jd(d)}DH.J="internal.parseCookieValuesFromString";function EH(a){var b=void 0;if(typeof a!=="string")return;a&&Hb(a,"//")&&(a=I.location.protocol+a);if(typeof URL==="function"){var c;a:{var d;try{d=new URL(a)}catch(w){c=void 0;break a}for(var e={},f=Array.from(d.searchParams),g=0;g0&&e.charAt(0)!="."&&(f--,e="."+e);if(f>=0&&c.indexOf(e,f)==f)return!0}}return!1},AI=function(a,b,c){for(var d={},e=!1,f=0;a&&f=0))throw e(f,{eventName:g},"Prohibited listen on data layer event.");},N:a}})}(); Z.securityGroups.get_url=["google"],function(){function a(b,c,d){return{component:c,queryKey:d}}(function(b){Z.__get_url=b;Z.__get_url.C="get_url";Z.__get_url.isVendorTemplate=!0;Z.__get_url.priorityOverride=0;Z.__get_url.isInfrastructure=!1;Z.__get_url.runInSiloedMode=!1})(function(b){var c=b.vtp_urlParts==="any"?null:[];c&&(b.vtp_protocol&&c.push("protocol"),b.vtp_host&&c.push("host"),b.vtp_port&&c.push("port"),b.vtp_path&&c.push("path"),b.vtp_extension&&c.push("extension"),b.vtp_query&&c.push("query"), b.vtp_fragment&&c.push("fragment"));var d=c&&b.vtp_queriesAllowed!=="any"?b.vtp_queryKeys||[]:null,e=b.vtp_createPermissionError;return{assert:function(f,g,k){if(g){if(!z(g))throw e(f,{},"URL component must be a string.");if(c&&c.indexOf(g)<0)throw e(f,{},"Prohibited URL component: "+g);if(g==="query"&&d){if(!k)throw e(f,{},"Prohibited from getting entire URL query when query keys are specified.");if(!z(k))throw e(f,{},"Query key must be a string.");if(d.indexOf(k)<0)throw e(f,{},"Prohibited query key: "+ k);}}else if(c)throw e(f,{},"Prohibited from getting entire URL when components are specified.");},N:a}})}(); Z.securityGroups.gct=["google"],function(){function a(b){for(var c=[],d=0;d0&&(c[Q.g.kd]=d);c[Q.g.Ud]=b.vtp_eventSettings;c[Q.g.jg]=b.vtp_dynamicEventSettings;c[Q.g.Wb]=b.vtp_googleSignals===1;c[Q.g.xg]=b.vtp_foreignTld;c[Q.g.ug]=b.vtp_restrictDomain=== 1;c[Q.g.jf]=b.vtp_internalTrafficResults;var e=Q.g.sa,f=b.vtp_linker;f&&f[Q.g.W]&&(f[Q.g.W]=a(f[Q.g.W]));c[e]=f;var g=Q.g.kf,k=b.vtp_referralExclusionDefinition;k&&k.include_conditions&&(k.include_conditions=a(k.include_conditions));c[g]=k;var m=Nj(b.vtp_trackingId);xm(m,c);aH(m,b.vtp_gtmEventId);J(b.vtp_gtmOnSuccess)})}(); Z.securityGroups.get=["google"],Z.__get=function(a){var b=a.vtp_settings,c=b.eventParameters||{},d=String(a.vtp_eventName),e={};e.eventId=a.vtp_gtmEventId;e.priorityId=a.vtp_gtmPriorityId;a.vtp_deferrable&&(e.deferrable=!0);var f=zx(String(b.streamId),d,c);Bx(f,e.eventId,e);a.vtp_gtmOnSuccess()},Z.__get.C="get",Z.__get.isVendorTemplate=!0,Z.__get.priorityOverride=0,Z.__get.isInfrastructure=!1,Z.__get.runInSiloedMode=!1; Z.securityGroups.detect_scroll_events=["google"],function(){function a(){return{}}(function(b){Z.__detect_scroll_events=b;Z.__detect_scroll_events.C="detect_scroll_events";Z.__detect_scroll_events.isVendorTemplate=!0;Z.__detect_scroll_events.priorityOverride=0;Z.__detect_scroll_events.isInfrastructure=!1;Z.__detect_scroll_events.runInSiloedMode=!1})(function(){return{assert:function(){},N:a}})}(); var SI={};SI.dataLayer=Ji;SI.callback=function(a){xi.hasOwnProperty(a)&&pb(xi[a])&&xi[a]();delete xi[a]};SI.bootstrap=0;SI._spx=!1; function TI(){ji[Fj()]=ji[Fj()]||SI;Rj();Vj()||G(Wj(),function(d,e){gw(d,e.transportUrl,e.context);P(92)});Fb(yi,Z.securityGroups);var a=Lj(Mj()),b,c=a==null?void 0:(b=a.context)==null?void 0:b.source;c!==2&&c!==4&&c!==3||P(142);vf=Mf} (function(a){function b(){n=I.documentElement.getAttribute("data-tag-assistant-present");uy(n)&&(m=k.fj)}function c(){m&&wc?g(m):a()}if(!H["__TAGGY_INSTALLED"]){var d=!1;if(I.referrer){var e=$i(I.referrer);d=Wi(e,"host")==="cct.google"}if(!d){var f=mo("googTaggyReferrer");d=!(!f.length||!f[0].length)}d&&(H["__TAGGY_INSTALLED"]=!0,Dc("https://cct.google/taggy/agent.js"))}var g=function(u){var v="GTM",w="GTM";oi&&(v="OGT",w="GTAG");var x=H["google.tagmanager.debugui2.queue"];x||(x= [],H["google.tagmanager.debugui2.queue"]=x,Dc("https://"+ii.Fd+"/debug/bootstrap?id="+Sf.ctid+"&src="+w+"&cond="+u+"&gtm="+bo()));var y={messageType:"CONTAINER_STARTING",data:{scriptSource:wc,containerProduct:v,debug:!1,id:Sf.ctid,targetRef:{ctid:Sf.ctid,isDestination:yj.ke},aliases:Bj(),destinations:Ej()}};y.data.resume=function(){a()};ii.vk&&(y.data.initialPublish=!0);x.push(y)},k={Ok:1,ij:2,xj:3,li:4,fj:5};k[k.Ok]="GTM_DEBUG_LEGACY_PARAM";k[k.ij]="GTM_DEBUG_PARAM";k[k.xj]="REFERRER";k[k.li]="COOKIE";k[k.fj]="EXTENSION_PARAM"; var m=void 0,n=void 0,p=Ui(H.location,"query",!1,void 0,"gtm_debug");uy(p)&&(m=k.ij);if(!m&&I.referrer){var q=$i(I.referrer);Wi(q,"host")==="tagassistant.google.com"&&(m=k.xj)}if(!m){var r=mo("__TAG_ASSISTANT");r.length&&r[0].length&&(m=k.li)}m||b();if(!m&&vy(n)){var t=!1;Hc(I,"TADebugSignal",function(){t||(t=!0,b(),c())},!1);H.setTimeout(function(){t||(t=!0,b(),c())},200)}else c()})(function(){try{Pj();if(W(61)){}zk().D(); yn();nl();var a=Hj();if(wj().canonical[a]){var b=ji.zones;b&&b.unregisterChild(Aj());Tv().removeExternalRestrictions(Hj());}else{Et();a:{}Bi.j= "95250753";Bi.D=Bi.H;Bi.K="";Bi.Z="ad_storage|analytics_storage|ad_user_data|ad_personalization";Bi.R="ad_storage|analytics_storage|ad_user_data";Bi.Qa="";dw();for(var c=data.resource||{},d=c.macros|| [],e=0;e

Introduction

This is an informal FAQ list for the r-sig-mixed-models mailing list.

The most commonly used functions for mixed modeling in R are

  • linear mixed models: aov(), nlme::lme1, lme4::lmer; brms::brm
  • generalized linear mixed models (GLMMs)
    • frequentist: MASS::glmmPQL, lme4::glmer; glmmTMB
    • Bayesian: MCMCglmm::MCMCglmm; brms::brm
  • nonlinear mixed models: nlme::nlme, lme4::nlmer; brms::brm
  • GNLMMs: brms::brm

Another quick-and-dirty way to search for mixed-model related packages on CRAN:

grep("l.?m[me][^t]",rownames(available.packages()),value=TRUE)
##  [1] "blmeco"              "buildmer"            "cellVolumeDist"     
##  [4] "climenv"             "climextRemes"        "curtailment"        
##  [7] "glmertree"           "glmm.hp"             "glmmEP"             
## [10] "glmmfields"          "glmmLasso"           "glmmML"             
## [13] "glmmPen"             "glmmrBase"           "glmmrOptim"         
## [16] "glmmSeq"             "glmmTMB"             "jlmerclusterperm"   
## [19] "lamme"               "limexhub"            "lme4"               
## [22] "lmeInfo"             "lmeresampler"        "lmerPerm"           
## [25] "lmerTest"            "lmeSplines"          "lmmot"              
## [28] "lmmpar"              "lrmest"              "lsmeans"            
## [31] "mailmerge"           "mlmm.gwas"           "multilevelmediation"
## [34] "mvglmmRank"          "nlmeU"               "nlmeVPC"            
## [37] "palmerpenguins"      "plsmmLasso"          "SherlockHolmes"     
## [40] "tglkmeans"           "trouBBlme4SolveR"    "vagalumeR"          
## [43] "vglmer"

There are some false positives here (e.g. palmerpenguins); see here if you’re interested in “regex golf”.

Other sources of help

DISCLAIMERS:

  • (G)LMMs are hard - harder than you may think based on what you may have learned in your second statistics class, which probably focused on picking the appropriate sums of squares terms and degrees of freedom for the numerator and denominator of an \(F\) test. ‘Modern’ mixed model approaches, although more powerful (they can handle more complex designs, lack of balance, crossed random factors, some kinds of non-Normally distributed responses, etc.), also require a new set of conceptual tools. In order to use these tools you should have at least a general acquaintance with classical mixed-model experimental designs but you should also, probably, read something about modern mixed model approaches. Littell et al. (2006) and Pinheiro and Bates (2000) are two places to start, although Pinheiro and Bates is probably more useful if you want to use R. Other useful references include Gelman and Hill (2006) (focused on Bayesian methods) and Zuur et al. (2009b). If you are going to use generalized linear mixed models, you should understand generalized linear models (Dobson and Barnett (2008), Faraway (2006), and McCullagh and Nelder (1989) are standard references; the last is the canonical reference, but also the most challenging).
  • All of the issues that arise with regular linear or generalized-linear modeling (e.g.: inadequacy of p-values alone for thorough statistical analysis; need to understand how models are parameterized; need to understand the principle of marginality and how interactions can be treated; dangers of overfitting, which are not mitigated by stepwise procedures; the non-existence of free lunches) also apply, and can apply more severely, to mixed models.
  • When SAS (or Stata, or Genstat/AS-REML or …) and R differ in their answers, R may not be wrong. Both SAS and R may be `right’ but proceeding in a different way/answering different questions/using a different philosophical approach (or both may be wrong …)
  • The advice in this FAQ comes with absolutely no warranty of any sort.

References

linear mixed models

web/open

books (dead-tree/closed)

  • pinheiro_mixed-effects_2000: LMM only.
  • Zuur et al. (2009b): Focused on ecology.
  • Gelman and Hill (2006): LMM and GLMM; Bayesian; examples from social science. Intermediate mathematics.
  • (Rethinking)

Model definition

Model specification

The following formula extensions for specifying random-effects structures in R are used by

  • lme4
  • nlme (nested effects only, although crossed effects can be specified with more work)
  • glmmADMB and glmmTMB

MCMCglmm uses a different specification, inherited from AS-REML.

(Modified from Robin Jeffries, UCLA:)

formula meaning
(1|group) random group intercept
(x|group) = (1+x|group) random slope of x within group with correlated intercept
(0+x|group) = (-1+x|group) random slope of x within group: no variation in intercept
(1|group) + (0+x|group) uncorrelated random intercept and random slope within group
(1|site/block) = (1|site)+(1|site:block) intercept varying among sites and among blocks within sites (nested random effects)
site+(1|site:block) fixed effect of sites plus random variation in intercept among blocks within sites
(x|site/block) = (x|site)+(x|site:block) = (1 + x|site)+(1+x|site:block) slope and intercept varying among sites and among blocks within sites
(x1|site)+(x2|block) two different effects, varying at different levels
x*site+(x|site:block) fixed effect variation of slope and intercept varying among sites and random variation of slope and intercept among blocks within sites
(1|group1)+(1|group2) intercept varying among crossed random effects (e.g. site, year)

Or in a little more detail:

equation formula
\(β_0 + β_{1}X_{i} + e_{si}\) n/a (Not a mixed-effects model)
\((β_0 + b_{S,0s}) + β_{1}X_i + e_{si}\) ∼ X + (1∣Subject)
\((β_0 + b_{S,0s}) + (β_{1} + b_{S,1s}) X_i + e_{si}\) ~ X + (1 + X∣Subject)
\((β_0 + b_{S,0s} + b_{I,0i}) + (β_{1} + b_{S,1s}) X_i + e_{si}\) ∼ X + (1 + X∣Subject) + (1∣Item)
As above, but \(S_{0s}\), \(S_{1s}\) independent ∼ X + (1∣Subject) + (0 + X∣ Subject) + (1∣Item)
\((β_0 + b_{S,0s} + b_{I,0i}) + β_{1}X_i + e_{si}\) ∼ X + (1∣Subject) + (1∣Item)
\((β_0 + b_{I,0i}) + (β_{1} + b_{S,1s})X_i + e_{si}\) ∼ X + (0 + X∣Subject) + (1∣Item)

Modified from: http://stats.stackexchange.com/questions/13166/rs-lmer-cheat-sheet?lq=1 (Livius)

The magic development version of the equatiomatic package can handle mixed models (remotes::install_github("datalorax/equatiomatic")), e.g.

library(lme4)
library(equatiomatic)
fm1 <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy)
equatiomatic::extract_eq(fm1)

\[ \begin{aligned} \operatorname{Reaction}_{i} &\sim N \left(\alpha_{j[i]} + \beta_{1j[i]}(\operatorname{Days}), \sigma^2 \right) \\ \left( \begin{array}{c} \begin{aligned} &\alpha_{j} \\ &\beta_{1j} \end{aligned} \end{array} \right) &\sim N \left( \left( \begin{array}{c} \begin{aligned} &\mu_{\alpha_{j}} \\ &\mu_{\beta_{1j}} \end{aligned} \end{array} \right) , \left( \begin{array}{cc} \sigma^2_{\alpha_{j}} & \rho_{\alpha_{j}\beta_{1j}} \\ \rho_{\beta_{1j}\alpha_{j}} & \sigma^2_{\beta_{1j}} \end{array} \right) \right) \text{, for Subject j = 1,} \dots \text{,J} \end{aligned} \]

It doesn’t handle GLMMs (yet), but you could fit two fake models — one LMM like your GLMM but with a Gaussian response, and one GLM with the same family/link function as your GLMM but without the random effects — and put the pieces together.

More possibly useful links:

Should I treat factor xxx as fixed or random?

This is in general a far more difficult question than it seems on the surface. There are many competing philosophies and definitions. For example, from Gelman (2005):

Before discussing the technical issues, we briefly review what is meant by fixed and random effects. It turns out that different—in fact, incompatible—definitions are used in different contexts. [See also Kreft and de Leeuw (1998), Section 1.3.3, for a discussion of the multiplicity of definitions of fixed and random effects and coefficients, and Robinson (1998) for a historical overview.] Here we outline five definitions that we have seen: 1. Fixed effects are constant across individuals, and random effects vary. For example, in a growth study, a model with random intercepts αi and fixed slope β corresponds to parallel lines for different individuals i, or the model yit = αi + βt. Kreft and de Leeuw [(1998), page 12] thus distinguish between fixed and random coefficients. 2. Effects are fixed if they are interesting in themselves or random if there is interest in the underlying population. Searle, Casella and McCulloch [(1992), Section 1.4] explore this distinction in depth. 3. “When a sample exhausts the population, the corresponding variable is fixed; when the sample is a small (i.e., negligible) part of the population the corresponding variable is random” [Green and Tukey (1960)]. 4. “If an effect is assumed to be a realized value of a random variable, it is called a random effect” [LaMotte (1983)]. 5. Fixed effects are estimated using least squares (or, more generally, maximum likelihood) and random effects are estimated with shrinkage [“linear unbiased prediction” in the terminology of Robinson (1991)]. This definition is standard in the multilevel modeling literature [see, e.g., Snijders and Bosker (1999), Section 4.2] and in econometrics.

Another useful comment (via Kevin Wright) reinforcing the idea that “random vs. fixed” is not a simple, cut-and-dried decision: from Schabenberger and Pierce (2001), p. 627:

Before proceeding further with random field linear models we need to remind the reader of the adage that one modeler’s random effect is another modeler’s fixed effect.

Clark and Linzer (2015) address this question from a mostly econometric perspective, focusing mostly on practical variance/bias/RMSE criteria.

One point of particular relevance to ‘modern’ mixed model estimation (rather than ‘classical’ method-of-moments estimation) is that, for practical purposes, there must be a reasonable number of random-effects levels (e.g. blocks) – more than 5 or 6 at a minimum. This is not surprising if you consider that random effects estimation is trying to estimate an among-block variance. For example, from Crawley (2002) p. 670:

Are there enough levels of the factor in the data on which to base an estimate of the variance of the population of effects? No, means [you should probably treat the variable as] fixed effects.

Some researchers (who treat fixed vs random as a philosophical rather than a pragmatic decision) object to this approach.

Also see a very thoughtful chapter in Hodges (2016).

Treating factors with small numbers of levels as random will in the best case lead to very small and/or imprecise estimates of random effects; in the worst case it will lead to various numerical difficulties such as lack of convergence, zero variance estimates, etc.. (A small simulation exercise shows that at least the estimates of the standard deviation are downwardly biased in this case; it’s not clear whether/how this bias would affect the point estimates of fixed effects or their estimated confidence intervals.) In the classical method-of-moments approach these problems may not arise (because the sums of squares are always well defined as long as there are at least two units), but the underlying problems of lack of power are there nevertheless.

Thierry Onkelinx has a blog post with some simulations on the impact of the number of levels and concludes with a few recommendations for the number of levels of the grouping variable \(n_s\): > - get \(n_s > 1000\) levels when an accurate estimate of the random effect variance is crucial. E.g. when a single number will be use for power calculations. > - get \(n_s > 100\) levels when a reasonable estimate of the random effect variance is sufficient. E.g. power calculations with sensitivity analysis of the random effect variance. > - get \(n_s > 20\) levels for an experimental study > - in case \(10 < n_s <20\) you should validate the model very cautious before using the output > - in case \(n_s < 10\) it is safer to use the variable as a fixed effect.

Oberpriller, Leite, and Pichler (2021) also performed a simulation study and found that while the estimates are similar for treating a variable with a small number of levels as fixed or random are similar, there was an impact on Type 1 and Type 2 error rates. They also found that the precise random effects structure (e.g., inclusion of random slopes) had a large impact on these properties.

Also see this thread on the r-sig-mixed-models mailing list and this question on CrossValidated.

Nested or crossed?

  • Relatively few mixed effect modeling packages can handle crossed random effects, i.e. those where one level of a random effect can appear in conjunction with more than one level of another effect. (This definition is confusing, and I would happily accept a better one.) A classic example is crossed temporal and spatial effects. If there is random variation among temporal blocks (e.g. years) ‘’and’’ random variation among spatial blocks (e.g. sites), ‘’and’’ if there is a consistent year effect across sites and ‘’vice versa’’, then the random effects should be treated as crossed.
  • lme4 does handled crossed effects, efficiently
  • if you need to deal with crossed REs in conjunction with some of the features that nlme offers (e.g. heteroscedasticity of residuals via weights/varStruct, correlation of residuals via correlation/corStruct, or if you want to used crossed REs with the gamlss package, see p. 163ff of Pinheiro and Bates (2000) (section 4.2.2: Google books link). I give a worked example here. As far as I can tell, a couple of hacks are necessary to get this to work: (1) the data must be expressed as a groupedData object (at least, I haven’t managed to get it to work in any other way); (2) the crossed effects must be nested within another grouping factor - in the example here I define a dummy group, which is awkward (it makes the variance component for this group and the residual variance jointly unidentifiable), but otherwise seems to work OK.
  • I rarely find it useful to think of fixed effects as “nested” (although others disagree); if for example treatments A and B are only measured in block 1, and treatments C and D are only measured in block 2, one still assumes (because they are fixed effects) that each treatment would have the same effect if applied in the other block. (One might like to estimate treatment-by-block interactions, but in this case the experimental design doesn’t allow it; one would have to have multiple treatments measured within each block, although not necessarily all treatments in every block.) One would code this analysis as response~treatment+(1|block) in lme4. Also, in the case of fixed effects, crossed and nested specifications change the parameterization of the model, but not anything else (e.g. the number of parameters estimated, log-likelihood, model predictions are all identical). That is, in R’s model.matrix function (which implements a version of Wilkinson-Rogers notation) a*b and a/b (which expand to 1+a+b+a:b and 1+a+a:b respectively) give model matrices with the same number of columns.
  • Whether you explicitly specify a random effect as nested or not depends (in part) on the way the levels of the random effects are coded. If the ‘lower-level’ random effect is coded with unique levels, then the two syntaxes (1|a/b) (or (1|a)+(1|a:b)) and (1|a)+(1|b) are equivalent. If the lower-level random effect has the same labels within each larger group (e.g. blocks 1, 2, 3, 4 within sites A, B, and C) then the explicit nesting (1|a/b) is required. It seems to be considered best practice to code the nested level uniquely (e.g. A1, A2, …, B1, B2, …) so that confusion between nested and crossed effects is less likely.

(When) can I include a predictor as both fixed and random?

See blog post by Thierry Onkelinx

Model extensions

Overdispersion

Testing for overdispersion/computing overdispersion factor

  • with the usual caveats, plus a few extras – counting degrees of freedom, etc. – the usual procedure of calculating the sum of squared Pearson residuals and comparing it to the residual degrees of freedom should give at least a crude idea of overdispersion. The following attempt counts each variance or covariance parameter as one model degree of freedom and presents the sum of squared Pearson residuals, the ratio of (SSQ residuals/rdf), the residual df, and the \(p\)-value based on the (approximately!!) appropriate \(\chi^2\) distribution. Do PLEASE note the usual, and extra, caveats noted here: this is an APPROXIMATE estimate of an overdispersion parameter. Even in the GLM case, the expected deviance per point equaling 1 is only true as the distribution of individual deviates approaches normality, i.e. the usual \(\lambda>5\) rules of thumb for Poisson values and \(\textrm{min}(Np, N(1-p)) > 5\) for binomial values (e.g. see Venables and Ripley (2002), p. 208-209). (And that’s without the extra complexities due to GLMM, i.e. the “effective” residual df should be large enough to make the sums of squares converge on a \(\chi^2\) distribution …)
  • Remember that (1) overdispersion is irrelevant for models that estimate a scale parameter (i.e. almost anything but Poisson or binomial: Gaussian, Gamma, negative binomial …) and (2) overdispersion is not estimable (and hence practically irrelevant) for Bernoulli models (= binary data = binomial with \(N=1\)).
  • The recipes below may need adjustment for some of the more complex model types allowed by glmmTMB (e.g. zero-inflation/variable dispersion), where it’s less clear what to measure to estimate overdispersion.

The following function should work for a variety of model types (at least glmmADMB, glmmTMB, lme4, …).

overdisp_fun <- function(model) {
    rdf <- df.residual(model)
    rp <- residuals(model,type="pearson")
    Pearson.chisq <- sum(rp^2)
    prat <- Pearson.chisq/rdf
    pval <- pchisq(Pearson.chisq, df=rdf, lower.tail=FALSE)
    c(chisq=Pearson.chisq,ratio=prat,rdf=rdf,p=pval)
}

Example:

library(lme4)
library(glmmTMB)
set.seed(101)  
d <- data.frame(x=runif(1000),
                f=factor(sample(1:10,size=1000,replace=TRUE)))
suppressMessages(d$y <- simulate(~x+(1|f), family=poisson,
                          newdata=d,
                          newparams=list(theta=1,beta=c(0,2)))[[1]])
m1 <- glmer(y~x+(1|f),data=d,family=poisson)
overdisp_fun(m1)
##        chisq        ratio          rdf            p 
## 1035.9966326    1.0391140  997.0000000    0.1902294
m2 <- glmmTMB(y~x+(1|f),data=d,family="poisson")
overdisp_fun(m2)
##        chisq        ratio          rdf            p 
## 1035.9961394    1.0391135  997.0000000    0.1902323

The gof function in the aods3 provides similar functionality (it reports both deviance- and \(\chi^2\)-based estimates of overdispersion and tests).

Fitting models with overdispersion?

  • quasilikelihood estimation: MASS::glmmPQL. Quasi- was deemed unreliable in lme4, and is no longer available. (Part of the problem was questionable numerical results in some cases; the other problem was that DB felt that he did not have a sufficiently good understanding of the theoretical framework that would explain what the algorithm was actually estimating in this case.) geepack::geelgm may be workable (haven’t tried it)

    If you really want quasi-likelihood analysis for glmer fits, you can do it yourself by adjusting the coefficient table - i.e., by multiplying the standard error by the square root of the dispersion factor 2 and recomputing the \(Z\)- and \(p\)-values accordingly, as follows:

## extract summary table; you may also be able to do this via
##  broom::tidy or broom.mixed::tidy
quasi_table <- function(model,ctab=coef(summary(model)),
                           phi=overdisp_fun(model)["ratio"]) {
    qctab <- within(as.data.frame(ctab),
    {   `Std. Error` <- `Std. Error`*sqrt(phi)
        `z value` <- Estimate/`Std. Error`
        `Pr(>|z|)` <- 2*pnorm(abs(`z value`), lower.tail=FALSE)
    })
    return(qctab)
}
printCoefmat(quasi_table(m1),digits=3)
##             Estimate Std. Error z value Pr(>|z|)    
## (Intercept)   0.2277     0.2700    0.84      0.4    
## x             2.0640     0.0528   39.11   <2e-16 ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## to use this with glmmTMB, we need to separate out the
##  conditional component of the summary
printCoefmat(quasi_table(m2,
                         ctab=coef(summary(m2))[["cond"]]),
             digits=3)
##             Estimate Std. Error z value Pr(>|z|)    
## (Intercept)   0.2277     0.2700    0.84      0.4    
## x             2.0640     0.0528   39.09   <2e-16 ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Another version, this one tidyverse-centric:

library(broom.mixed)
library(dplyr)
tidy_quasi <- function(model, phi=overdisp_fun(model)["ratio"],
                       conf.level=0.95) {
    tt <- (tidy(model, effects="fixed")
       %>% mutate(std.error=std.error*sqrt(phi),
                   statistic=estimate/std.error,
                   p.value=2*pnorm(abs(statistic), lower.tail=FALSE))
    )
    return(tt)
}
tidy_quasi(m1)
## # A tibble: 2 × 6
##   effect term        estimate std.error statistic p.value
##   <chr>  <chr>          <dbl>     <dbl>     <dbl>   <dbl>
## 1 fixed  (Intercept)    0.228    0.270      0.843   0.399
## 2 fixed  x              2.06     0.0528    39.1     0
tidy_quasi(m2)
## # A tibble: 2 × 7
##   effect component term        estimate std.error statistic p.value
##   <chr>  <chr>     <chr>          <dbl>     <dbl>     <dbl>   <dbl>
## 1 fixed  cond      (Intercept)    0.228    0.270      0.843   0.399
## 2 fixed  cond      x              2.06     0.0528    39.1     0

These functions make some simplifying assumptions: (1) this overdispersion computation is approximate (based on Pearson \(\chi^2\), see caveats above); (2) considers Gaussian sampling distributions only (i.e. no denominator-degree-of-freedom/\(t\) corrections).

In this case using quasi-likelihood doesn’t make much difference, since the data we simulated in the first place were Poisson.) Keep in mind that once you switch to quasi-likelihood you will either have to eschew inferential methods such as the likelihood ratio test, profile confidence intervals, AIC, etc., or make more heroic assumptions to compute “quasi-” analogs of all of the above (such as QAIC).

  • observation-level random effects (OLRE: this approach should work in most packages). If you want to a citation for this approach, try Elston et al. (2001), who cite Lawson et al. (1999); apparently there is also an example in section 10.5 of Maindonald and Braun (2010), and (according to an R-sig-mixed-models post) this is also discussed by Rabe-Hesketh and Skrondal (2008). Also see Browne et al. (2005) for an example in the binomial context (i.e. logit-normal-binomial rather than lognormal-Poisson). Agresti’s excellent (2002) book Agresti (2002) also discusses this (section 13.5), referring back to Breslow (1984) and Hinde (1982). [Notes: (a) I haven’t checked all these references myself, (b) I can’t find the reference any more, but I have seen it stated that observation-level random effect estimation is probably dodgy for PQL approaches as used in Elston et al 2001]
  • alternative distributions
    • Poisson-lognormal model for counts or binomial-logit-Normal model for proportions (see above, “observation-level random effects”)
    • negative binomial for counts or beta-binomial for proportions
      • lme4::glmer.nb() should fit a negative binomial, although it is somewhat slow and fragile compared to some of the other methods suggested here. lme4 cannot fit beta-binomial models (these cannot be formulated as a part of the exponential family of distributions)
      • glmmTMB will fit two parameterizations of the negative binomial: family="nbinom2" gives the classic parameterization with \(\sigma^2=\mu(1+\mu/k)\) (“NB2” in Hardin and Hilbe’s terminology) while family="nbinom1" gives a parameterization with \(\sigma^2=\phi \mu\), \(\phi>1\) (“NB1” to Hardin and Hilbe). The latter might also be called a “quasi-Poisson” parameterization because it matches the mean-variance relationship assumed by quasi-Poisson models, i.e. the variance is strictly proportional to the mean (although the proportionality constant must be >1, a limitation that does not apply to quasi-likelihood approaches). (glmmADMB will also fit these models, with family="nbinom" for NB2, but is deprecated in favour of glmmTMB.)
      • glmmTMB allows beta-binomial models ((Harrison 2015) suggests comparing beta-binomial with OLRE models to assess reliability)
      • the brms package has a negbinomial family (no beta-binomial, but it does have a wide range of other families)
  • other packages/approaches (less widely used, or requiring a bit more effort)
    • gamlss.mx:gamlssNP
    • WinBUGS/JAGS (via R2WinBUGS/Rjags)
    • AD Model Builder (possibly via R2admb package) or TMB
    • gnlmm in the repeated package (off-CRAN)
    • ASREML

Negative binomial models in glmmTMB and lognormal-Poisson models in glmer (or MCMCglmm) are probably the best quick alternatives for overdispersed count data. If you need to explore alternatives (different variance-mean relationships, different distributions), then ADMB, TMB, WinBUGS, Stan, NIMBLE are the most flexible alternatives.

Underdispersion

Underdispersion (much less variability than expected) is a less common problem than overdispersion.

  • mild underdispersion is sometimes ignored, since it tends in general to lead to conservative rather than anti-conservative results
  • quasi-likelihood (and the quasi-hack listed above) can handle under- as well as overdispersion
  • some other solutions exist, but are less widely implemented
    • for distributions with a small range (e.g. litter sizes of large mammals), one can treat responses as ordinal (e.g. using the ordinal package, or MCMCglmm or brms for Bayesian solutions)
    • the COM-Poisson distribution and generalized Poisson distributions, implemented in glmmTMB, can handle underdispersion (J. Hilbe recommends the latter in this CrossValidated answer). (VGAM has a generalized Poisson distribution, but doesn’t handle random effects.)

Gamma GLMMs

While one (well, OK I) would naively think that GLMMs with Gamma distributions would be just as easy (or hard) as any other sort of GLMMs, it seems that they are in fact harder to implement. Basic simulated examples of Gamma GLMMs can fail in lme4 despite analogous problems with Poisson, binomial, etc. distributions. Solutions: - the default inverse link seems particularly problematic; try other links (especially family=Gamma(link="log")) if that is possible/makes sense - consider whether a lognormal model (i.e. a regular LMM on logged data) would work/makes sense. - Lo and Andrews (2015) argue that the Gamma family with an identity link is superior to lognormal models for reaction-time data. I (BMB) don’t find their argument particularly convincing, but lots of people want to do this. Unfortunately this is technically challenging (see here), because it is likely that some “illegal” values (predicted responses \(\le 0\)) will occur while fitting the model, even if the final fitted model makes no impossible predictions. Thus something has to be done to make the model-fitting machinery tolerant of such values (i.e. returning NA for these model evaluations, or clamping illegal values to the constrained space with an appropriate smooth penalty function).

Gamma models can be fitted by a wide variety of platforms (lme4::glmer, MASS::glmmPQL, glmmADMB, glmmTMB, MixedModels.jl, MCMCglmm, brms … not sure about others.

Beta GLMMs

Proportion data where the denominator (e.g. maximum possible number of successes for a given observation) is not known can be modeled using a Beta distribution. Smithson and Verkuilen (2006) is a good introduction for non-statisticians (not in the mixed-model case), and the betareg package (Cribari-Neto and Zeileis 2009) handles non-mixed Beta regressions. The glmmTMB and brms packages handle Beta mixed models (brms also handles zero-inflated and zero-one inflated models).

Zero-inflation

See e.g. Martin et al. (2005) or Warton (2005) (“many zeros does not mean zero inflation”) or Zuur et al. (2009a) for general information on zero-inflation.

Count data

  • MCMCglmm handles zero-truncated, zero-inflated, and zero-altered models, although specifying the models is a little bit tricky: see Sections 5.3 to 5.5 of the CourseNotes vignette
  • glmmADMB handles
    • zero-inflated models (with a single zero-inflation parameter – i.e., the level of zero-inflation is assumed constant across the whole data set)
    • truncated Poisson and negative binomial distributions (which allows two-stage fitting of hurdle models)
  • glmmTMB handles a variety of Z-I and Z-T models (allows covariates, and random effects, in the zero-alteration model)
  • brms does too
  • so does GLMMadaptive
  • Gavin Simpson has a detailed writeup showing that mgcv::gam() can do simple mixed models (Poisson, not NB) with zero-inflation, and comparing mgcv with glmmTMB results
  • gamlssNP in the gamlss.mx package should handle zero-inflation, and the gamlss.tr package should handle truncated (i.e. hurdle) models – but I haven’t tried them
  • roll-your-own: ADMB/R2admb, WinBUGS/R2WinBUGS, TMB, Stan, …

Continuous data

Continuous data are a special case where the mixture model for zero-inflated data is less relevant, because observations that are exactly zero occur with probability (but not probability density) zero. There are two cases of interest:

Probability density of \(x\) zero or infinite

In this case zero is a problematic observation for the distribution; it’s either impossible or infinitely (locally) likely. Some examples:

  • Gamma distribution: probability density at zero is infinite (if shape<1) or zero (if shape>1); it’s finite only for an exponential distribution (shape==1)
  • Lognormal distribution: the probability density at zero is zero.
  • Beta distribution: the probability densities at 0 and 1 are zero (if the corresponding shape parameter is >1) or infinite (if shape<1)

The best solution depends very much on the data-generating mechanism.

  • If the bad (0/1) values are generated by rounding (e.g. proportions that are too close to the boundaries are reported as being on the boundaries), the simplest solution is to “squeeze” these in slightly, e.g. \(y \to (y +a)/2a\) for some sensible value of \(a\) (Smithson and Verkuilen 2006)
  • If you think that zero values are generated by a separate process, the simplest solution is to fit a Bernoulli model to the zero/non-zero data, then a conditional continuous model for the non-zero values; this is effectively a hurdle model.
  • you might have censored data where all values below a certain limit (e.g. a detection limit) are recorded as zero. The The lmec package handles linear mixed models; brms and GLMMadaptive both provide support for censored data in mixed models.
  • The cplm and glmmTMB packages handles ‘Tweedie compound Poisson linear models’, which in a particular range of parameters allows for skewed continuous responses with a spike at zero

Probability density of \(x\) positive and finite

In this case (e.g. a spike of zeros in the center of an otherwise continuous distribution), the hurdle model probably makes the most sense.

Tests for zero-inflation

  • you can use a likelihood ratio test between the regular and zero-inflated version of the model, but be aware of boundary issues (search “boundary” elsewhere on this page …) – the null value (no zero inflation) is on the boundary of the feasible space
  • you can use AIC or variations, with the same caveats
  • according to Wilson (2015) you should not use Vuong’s test (Vuong 1989) when even though it is frequently recommended for testing zero-inflation in GLMs, because the boundary issues that invalidate AIC comparisons and likelihood ratio tests also apply to the Vuong test. He et al. (2019)
  • two untested but reasonable approaches:
    • use a simulate() method if it exists to construct a simulated distribution of the proportion of zeros expected overall from your model, and compare it to the observed proportion of zeros in the data set
    • Try to estimate the expected number of zeros. The check_zeroinflation function in the performance package compares expected vs. observed to see if they are within some specified threshold (by default 0.05 - i.e. the function returns under- or overinflation if the observed number of zeros is more than 5% different from the expected number based on the predicted probabilities of zero for each observation. It does not try to give confidence intervals or a p-value for these probabilities (this would be possible if we assume there is no uncertainty in the estimated parameters, but would be harder otherwise …)

Spatial and temporal correlation models, heteroscedasticity (“R-side” models)

In nlme these so-called R-side (R for “residual”) structures are accessible via the weights/VarStruct (heteroscedasticity) and correlation/corStruct (spatial or temporal correlation) arguments and data structures. This extension is a bit harder than it might seem. In LMMs it is a natural extension to allow the residual error terms to be components of a single multivariate normal draw; if that MVN distribution is uncorrelated and homoscedastic (i.e. proportional to an identity matrix) we get the classic model, but we can in principle allow it to be correlated and/or heteroscedastic.

It is not too hard to define marginal correlation structures that don’t make sense. One class of reasonably sensible models is to always assume an observation-level random effect (as MCMCglmm does for computational reasons) and to allow that random effect to be MVN on the link scale (so that the full model is lognormal-Poisson, logit-normal binomial, etc., depending on the link function and family).

For example, a relatively simple Poisson model with spatially correlated errors might look like this:

\[ \begin{split} \eta & \sim \textrm{MVN}(a + b x, \Sigma) \\ \Sigma_{ij} & = \sigma^2 \exp(-d_{ij}/s) \\ y_i & \sim \textrm{Poisson}(\lambda=\exp(\eta_i)) \end{split} \]

That is, the marginal distributions of the response values are Poisson-lognormal, but on the link (log) scale the latent Normal variables underlying the response are multivariate normal, with a variance-covariance matrix described by an exponential spatial correlation function with scale parameter \(s\).

How can one achieve this?

  • These types of models are not implemented in lme4, for either LMMs or GLMMs; they are fairly low priority, and it is hard to see how they could be implemented for GLMMs (the equivalent for LMMs is tedious but should be straightforward to implement).
  • For LMMs, you can use the spatial/temporal correlation structures that are built into (n)lme
  • You can use the spatial/temporal correlation structures available for (n)lme, which include basic geostatistical (space) and ARMA-type (time) models.
library(sos)
findFn("corStruct")

finds additional possibilities in the ramps (extended geostatistical) and ape (phylogenetic) packages.

  • You can use these structures in GLMMs via MASS::glmmPQL (see Dormann et al.)
  • geepack::geeglm
  • geoR, geoRglm (power tools); these are mostly designed for fitting spatial random field GLMMs via MCMC – not sure that they do random effects other than the spatial random effect
  • R-INLA (super-power tool)
  • it is possible to use AD Model Builder to fit spatial GLMMs, as shown in these AD Model Builder examples; this capability is not in the glmmADMB package (and may not be for a while!), but it would be possible to run AD Model Builder via the R2admb package (requires installing – and learning! ADMB)
  • geoBUGS, the geostatistical/spatial correlation module for WinBUGS, is another alternative (but again requires going outside of R)

Penalization/handling complete separation

Complete separation occurs in a binary-response model when there is some linear combination of the parameters that perfectly separates failures from successes - for example, when all of the observations are zero for some particular combination of categories. The symptoms of this problem are unrealistically large parameter estimates; ridiculously large Wald standard errors (the Hauck-Donner effect); and various warnings.

In particular, binomial glmer() models with complete separation can lead to “Downdated VtV is not positive definite” (e.g. see here) or “PIRLS step-halvings failed to reduce deviance in pwrssUpdate” errors (e.g. see here). Roughly speaking, the complete separation is likely to appear even if one considers only the fixed effects part of the model (counterarguments or counterexamples welcome!), suggesting two quick-and-dirty diagnostic methods. If fixed_form is the formula including only the fixed effects:

  • summary(g1 <- glm(fixed_form, family=binomial, data=...)) will show one or more of the following symptoms:
    • warnings that glm.fit: fitted probabilities numerically 0 or 1 occurred
    • parameter estimates of large magnitude (e.g. any(abs(g1$coefficients)>8), assuming that predictors are either categorical or scaled to have standard deviations of \(\approx 1\))
    • extremely large Wald standard errors, and large p-values (Hauck-Donner effect)
    • the detectseparation package has a method for detecting complete separation: library("detectseparation"); update(g1,method="detect_separation"). This should say whether complete separation occurs, and in which (combinations of) variables, e.g.
Separation: TRUE 
Existence of maximum likelihood estimates
(Intercept)      height 
        Inf         Inf 
0: finite value, Inf: infinity, -Inf: -infinity

If complete separation is occurring between categories of a single categorical fixed-effect predictor with a large number of levels, one option would be to treat this fixed effect as a random effect, which will allow some degree of shrinkage to the mean. (It might be reasonable to specify the variance of this term a priori to a large value [minimal shrinkage], rather than trying to estimate it from the data.)

(TODO: worked example)

The general approach to handling complete separation in logistic regression is called penalized regression; it’s available in the brglm, brglm2, logistf, and rms packages. However, these packages don’t handle mixed models, so the best available general approach is to use a Bayesian method that allows you to set a prior on the fixed effects, e.g. a Gaussian with standard deviation of 3; this can be done in any of the Bayesian GLMM packages (e.g. blme, MCMCglmm, brms, …) (See supplementary material for Fox et al. 2016 for a worked example.)

Non-Gaussian random effects

I’m not aware of easy ways to fit mixed models with non-Gaussian random effects distributions in R (i.e., convenient, flexible, well-tested implementations). McCulloch and Neuhaus (2011) discusses when this misspecification may be important. This presentation discusses various approaches to solving the problem (e.g. using a Gamma rather than a Normal distribution of REs in log-link models). The spaMM package implements H-likelihood models (Lee, Nelder, and Pawitan 2017), and claims to allow a range of random-effects distributions (perhaps not well tested though …)

In principle you can implement any random-effects distribution you want in a fully capable Bayesian modeling language (e.g. JAGS/Stan/PyMC/etc.); see e.g. this StackOverflow answer, which uses the rethinking package’s interface to Stan.

Estimation

What methods are available to fit (estimate) GLMMs?

(adapted from Bolker et al TREE 2009)

Method Advantages Disadvantages Packages
Penalized quasi-likelihood Flexible, widely implemented Likelihood inference may be inappropriate; biased for large variance or small means PROC GLIMMIX (SAS), GLMM (GenStat), glmmPQL (R:MASS), ASREML-R
Laplace approximation More accurate than PQL Slower and less flexible than PQL glmer (R:lme4,lme4a), glmm.admb (R:glmmADMB), INLA, glmmTMB, AD Model Builder, HLM
Gauss-Hermite quadrature More accurate than Laplace Slower than Laplace; limited to 2‑3 random effects PROC NLMIXED (SAS), glmer (R:lme4, lme4a), glmmML (R:glmmML), xtlogit (Stata)
Markov chain Monte Carlo Highly flexible, arbitrary number of random effects; accurate Slow, technically challenging, Bayesian framework MCMCglmm (R:MCMCglmm), rstanarm (R), brms (R), MCMCpack (R), WinBUGS/OpenBUGS (R interface: BRugs/R2WinBUGS), JAGS (R interface: rjags/R2jags), AD Model Builder (R interface: R2admb), glmm.admb (post hoc MCMC after Laplace fit) (R:glmmADMB)

These approaches (PQL, Laplace approximation, GHQ, MCMC) are most common. Other less-common methods include Monte Carlo EM (Booth and Hobert 1999; Knudson et al. 2021) (glmm package), hierarchical GLMs (which use an entirely different inference framework: (Jin and Lee 2021; Meng 2009, 2011)). Also see the Mixed Models Task View.

Troubleshooting

  • double-check the model specification and the data for mistakes
  • center and scale continuous predictor variables (e.g. with scale())
  • try all available optimizers (e.g. several different implementations of BOBYQA and Nelder-Mead, L-BFGS-B from optim, nlminb(), …). While this will of course be slow for large fits, we consider it the gold standard; if all optimizers converge to values that are practically equivalent (it’s up to the user to decide what “practically equivalent means for their case”), then we would consider the model fit to be good enough. For example:
modelfit.all <- lme4::allFit(model)
ss <- summary(modelfit.all)

Convergence warnings

Most of the current advice about troubleshooting lme4 convergence problems can be found in the help page ?convergence. That page explains that the convergence tests in the current version of lme4 (1.1-11, February 2016) generate lots of false positives. We are considering raising the gradient warning threshold to 0.01 in future releases of lme4. In addition to the general troubleshooting tips above:

  • double-check the Hessian calculation with the more expensive Richardson extrapolation method (see examples)
  • restart the fit from the apparent optimum, or from a point perturbed slightly away from the optimum (getME(model,c("theta","beta")) should retrieve the parameters in a form suitable to be used as the start parameter)
  • a common error is to specify an offset to a log-link model as a raw searching-effort value, i.e. offset(effort) rather than offset(log(effort)). While the intention is to fit a model where \(\textrm{counts} \propto \textrm{effort}\), specifying offset(effort) leads to a model where \(\textrm{counts} \propto \exp(\textrm{effort})\) instead; exp(effort) is often a huge (and model-destabilizing) number.

Singular fits

It is very common for overfitted mixed models to result in singular fits. Technically, singularity means that the random effects variance-covariance matrix is of less than full rank. There are various ways to describe this, from more to less technical:

  • some of the eigenvalues of the covariance matrix are zero, or effectively zero;

  • some combinations of the elements of the random-effects vector are perfectly multicollinear;

  • some linear combinations of elements of the random-effects vector have zero variance;

  • an \(n \times n\) covariance matrix corresponds to an \(n\)-dimensional ellipsoid where the lengths of the major axes are proportional to the eigenvalues; the ellipsoid is “flat” in some directions, e.g. an ellipse has collapsed to a line segment

  • In simple cases where a random effect term is represented by a single variance (scalar random effects), this is reflected in a variance estimate that is zero or near zero. Functions such as nlme::lme() or glmmTMB() that estimate variances on the log scale will often not report a singular fit, but will instead return a very small value (1e-6 or less) for the random-effects variance; on the log scale, this will correspond to a parameter estimate that is a large negative number — and, usually, warnings about non-positive-definite Hessians or (in the case of lme()) ridiculously large Wald confidence intervals returned by intervals().

  • In the case of a two-dimensional random effect (such as a random-slopes model), this typically corresponds to a perfect (+/- 1) correlation between the slope and intercept

  • in higher-dimensional random effects (such as the random effect of a categorical variable with more than two levels, or a random-slopes model with more than one covariate), it’s pretty much impossible to see at a glance that the covariance matrix is singular. Extracting the RE covariance matrix and computing its eigenvalues (this is what rePCA in the lme4 package does) will tell you. In the particular case of lme4, singularity is detectable by seeing if any of the elements of the \(\boldsymbol \theta\) (variance-covariance Cholesky decomposition) vector corresponding to diagonal elements are (near) zero; this is what ?isSingular does.

Singular fits commonly occur in two scenarios:

  • small numbers of random-effect levels (e.g. <5), as illustrated in these simulations and discussed (in a somewhat different, Bayesian context) by Gelman (2006).

  • complex random-effects models, e.g. models of the form (f|g) where f is a categorical variable with a relatively large number of levels, or models with several different random-slopes terms.

  • In MCMCglmm, singular or near-singular fits will provoke an error and a requirement to specify a stronger prior.

At present there are a variety of strong opinions about how to resolve such problems, which are sometimes conflated with the general problem of how to decide on the appropriate complexity of the random-effects component of a model. Briefly:

  • If a variance component is zero, dropping it from the model will have no effect on any of the estimated quantities (although it will affect the AIC, as the variance parameter is counted even though it has no effect). Pasch, Bolker, and Phelps (2013) gives one example where random effects were dropped because the variance components were consistently estimated as zero. Conversely, if one chooses for philosophical grounds to retain these parameters, it won’t change any of the answers.
  • Barr et al. (2013) suggest always starting with the maximal model (i.e. the most random-effects component of the model that is theoretically identifiable given the experimental design) and then dropping terms when singularity or non-convergence occurs (please see the paper for detailed recommendations …)
  • Matuschek et al. (2017) and Bates, Kliegl, et al. (2015) disagree, suggesting that models should be simplified a priori whenever possible. In particular, they suggest \(p\)-value-based stepwise reduction of the random effects model using a loose \(p\)-value criterion (e.g. \(\alpha_{\text LRT} = 0.2\)). They also provide tools for diagnosing and mitigating singularity.
  • One alternative (suggested by Robert LaBudde) for the small-numbers-of-levels scenario is to “fit the model with the random factor as a fixed effect, get the level coefficients in the sum to zero form, and then compute the standard deviation of the coefficients.” This is appropriate for users who are (a) primarily interested in measuring variation (i.e. the random effects are not just nuisance parameters, and the variability [rather than the estimated values for each level] is of scientific interest), (b) unable or unwilling to use other approaches (e.g. MCMC with half-Cauchy priors in WinBUGS), (c) unable or unwilling to collect more data. For the simplest case (balanced, orthogonal, nested designs with normal errors) these estimates of standard deviations should equal the classical method-of-moments estimates.
  • Bayesian approaches allow the user to specify a informative prior that avoids singularity.
    • The blme package (Chung et al. 2013) provides a wrapper for the lme4 machinery that adds a particular form of weak prior to get an approximate a Bayesian maximum a posteriori estimate that avoids singularity.
    • The MCMCglmm package allows for priors on the variance-covariance matrix
    • The rstanarm and brms packages provide wrappers for the Stan Hamiltonian MCMC engine that fit GLMMs via lme4 syntax, again allowing a variety of priors to be set.

Setting residual variances to a fixed value (zero or other)

For some problems it would be convenient to be able to set the residual variance term to zero, or a fixed value. This is difficult in lme4, because the model is parameterized internally in such a way that the residual variance is profiled out (i.e., calculated directly from a residual deviance term) and the random-effects variances are scaled by the residual variance.

Searching the r-sig-mixed-models list for “fix residual variance”

  • This is done in the metafor package, for meta-analytic models
  • You can use the blme package to fix the residual variance: from Vincent Dorie,
library(blme)
blmer(formula = y ~ 1 + (1 | group), weights = V,
      resid.prior = point(1.0), cov.prior = NULL)

This sets the residual variance to 1.0. You cannot use this to make it exactly zero, but you can make it very small (and experiment with setting it to different small values, e.g. 0.001 vs 0.0001, to see how sensitive the results are). - Similarly, you can fix the residual variance to a small positive value in [n]lme via the control() argument (Heisterkamp et al. 2017):

nlme::lme(Reaction~Days,random=~1|Subject,
          data=lme4::sleepstudy,
          control=list(sigma=1e-8))
  • the glmmTMB package can set the residual variance to (approximately) zero, by specifying dispformula = ~0 (in fact the value can be set via glmmTMBControl(zerodisp_val=...); the default value is log(sqrt(.Machine$double.eps)))
  • There is an rrBlupMethod6 package on CRAN (“Re-parametrization of mixed model formulation to allow for a fixed residual variance when using RR-BLUP for genom[e]wide estimation of marker effects”), but it seems fairly special-purpose.
  • it might be possible in principle to adapt lme4’s internal devfun2() function (used in the likelihood profiling computation for LMMs), which uses a specified value of the residual standard deviation in computing likelihood, but as Bates, Mächler, et al. (2015) say:

The resulting function is not useful for general nonlinear optimization — one can easily wander into parameter regimes corresponding to infeasible (non-positive semidefinite) variance-covariance matrices — but it serves for likelihood profiling, where one focal parameter is varied at a time and the optimization over the other parameters is likely to start close to an optimum.

Other problems/lme4 error messages

Most of the following error messages are relatively unusual, and happen mostly with complex/large/unstable models. There is often no simple fix; the standard suggestions for troubleshooting are (1) try rescaling and/or centering predictors; (2) see if a simpler model can be made to work; (3) look for severe lack of balance and/or complete separation in the data set.

REML for GLMMs

  • While restricted maximum likelihood (REML) procedures (Wikipedia are well established for linear mixed models, it is less clear how one should define and compute the equivalent criteria (integrating out the effects of fixed parameters) for GLMMs. Millar (2011) and Berger, Liseo, and Wolpert (1999) are possible starting points in the peer-reviewed literature, and there are mailing-list discussions of these issues here and here.
  • Attempting to use REML=TRUE with glmer will produce the warning extra argument(s) ‘REML’ disregarded
  • glmmTMB allows REML=TRUE for GLMMs (it uses the Laplace approximation to integrate over the fixed effect parameters), since version 0.2.2

Model diagnostics

Inference and confidence intervals

Testing hypotheses

What are the p-values listed by summary(glmerfit) etc.? Are they reliable?

By default, in keeping with the tradition in analysis of generalized linear models, lme4 and similar packages display the Wald Z-statistics for each parameter in the model summary. These have one big advantage: they’re convenient to compute. However, they are asymptotic approximations, assuming both that (1) the sampling distributions of the parameters are multivariate normal (or equivalently that the log-likelihood surface is quadratic) and that (2) the sampling distribution of the log-likelihood is (proportional to) \(\chi^2\). The second approximation is discussed further under “Degrees of freedom”. The first assumption usually requires an even greater leap of faith, and is known to cause problems in some contexts (for binomial models failures of this assumption are called the Hauck-Donner effect), especially with extreme-valued parameters.

Methods for testing single parameters

From worst to best:

  • Wald \(Z\)-tests
  • For balanced, nested LMMs where degrees of freedom can be computed according to classical rules: Wald \(t\)-tests
  • Likelihood ratio test, either by setting up the model so that the parameter can be isolated/dropped (via anova or drop1, or via computing likelihood profiles
  • Markov chain Monte Carlo (MCMC) or parametric bootstrap confidence intervals

Tests of effects (i.e. testing that several parameters are simultaneously zero)

From worst to best:

  • Wald chi-square tests (e.g. car::Anova)
  • Likelihood ratio test (via anova or drop1)
  • For balanced, nested LMMs where df can be computed: conditional F-tests
  • For LMMs: conditional F-tests with df correction (e.g. Kenward-Roger in pbkrtest package: see notes on K-R etc below.
  • MCMC or parametric, or nonparametric, bootstrap comparisons (nonparametric bootstrapping must be implemented carefully to account for grouping factors)

Is the likelihood ratio test reliable for mixed models?

  • It depends.
  • Not for fixed effects in finite-size cases (see Pinheiro and Bates (2000)): may depend on ‘denominator degrees of freedom’ (number of groups) and/or total number of samples - total number of parameters
  • Conditional F-tests are preferred for LMMs, if denominator degrees of freedom are known

Why doesn’t lme4 display denominator degrees of freedom/p values? What other options do I have?

There is an R FAQ entry on this topic, which links to a mailing list post by Doug Bates (there is also a voluminous mailing list thread reproduced on the R wiki). The bottom line is

  • For special cases that correspond to classical experimental designs (i.e. balanced designs that are nested, split-plot, randomized block, etc.) … we can show that the null distributions of particular ratios of sums of squares follow an \(F\) distribution with known numerator and denominator degrees of freedom (and hence the sampling distributions of particular contrasts are t-distributed with known df). In more complicated situations (unbalanced, GLMMs, crossed random effects, models with temporal or spatial correlation, etc.) it is not in general clear that the null distribution of the computed ratio of sums of squares is really an F distribution, for any choice of denominator degrees of freedom.
  • For each simple degrees-of-freedom recipe that has been suggested (trace of the hat matrix, etc.) there seems to be at least one fairly simple counterexample where the recipe fails badly (e.g. see this r-help thread from September 2006).
  • When the responses are normally distributed and the design is balanced, nested etc. (i.e. the classical LMM situation), the scaled deviances and differences in deviances are exactly \(F\)-distributed and looking at the experimental design (i.e., which treatments vary/are replicated at which levels) tells us what the relevant degrees of freedom are (see “df alternatives” below)
  • Two approaches to approximating df (Satterthwaite and Kenward-Roger) have been implemented in R, Satterthwaite in lmerTest and Kenward-Roger in pbkrtest (as KRmodcomp) (various packages such as lmerTest, emmeans, car, etc., import pbkrtest::get_Lb_ddf).
    • K-R is probably the most reliable option (Schaalje, McBride, and Fellingham 2002), although it may be prohibitively computationally expensive for large data sets.

    • K-R was derived for LMMs (and for REML?) in particular, it isn’t clear how it would apply to GLMMs. Walter W. Stroup (2014) states (referencing W. W. Stroup (2013)) that K-R actually works reasonably well for GLMMs (K-R is not implemented in R for GLMMs; Stroup suggests that a pseudo-likelihood (Wolfinger and O’Connell 1993) approach is necessary in order to implement K-R for GLMMs):

      Notice the non-integer values of the denominator df. They, and the \(F\) and \(p\) values, reflect the procedure developed by Kenward and Roger (2009) to account for the effect of the covariance structure on degrees of freedom and standard errors. Although the Kenward–Roger adjustment was derived for the LMM with normally distributed data and is an ad hoc procedure for GLMMs with non-normal data, informal simulation studies consistently have suggested that the adjustment is accurate. The Kenward-Roger adjustment requires that the SAS GLIMMIX default computing algorithm, pseudo-likelihood, be used rather than the Laplace algorithm used to obtain AICC statistics. Stroup (2013b) found that for binomial and Poisson GLMMs, pseudo-likelihood with the Kenward–Roger adjustment yields better Type I error control than Laplace while preserving the GLMM’s advantage with respect to power and accuracy in estimating treatment means.

  • There are several different issues at play in finite-size (small-sample) adjustments, which apply slightly differently to LMMs and GLMMs.
    • When the data don’t fit into the classical framework (crossed, unbalanced, R-side effects), we might still guess that the deviances etc. are approximately F-distributed but that we don’t know the real degrees of freedom – this is what the Satterthwaite, Kenward-Roger, Fai-Cornelius, etc. approximations are supposed to do.
    • When the responses are not normally distributed (as in GLMs and GLMMs), and when the scale parameter is not estimated (as in standard Poisson- and binomial-response models), then the deviance differences are only asymptotically F- or chi-square-distributed (i.e. not for our real, finite-size samples). In standard GLM practice, we usually ignore this problem; there is some literature on finite-size corrections for GLMs under the rubrics of “Bartlett corrections” and “higher order asymptotics” (see McCullagh and Nelder (1989), Cordeiro, Paula, and Botter (1994), Cordeiro and Ferrari (1998) and the cond package (on CRAN) [which works with GLMs, not GLMMs]), but it’s rarely used. (The bias correction/Firth approach implemented in the brglm package attempts to address the problem of finite-size bias, not finite-size non-chi-squaredness of the deviance differences.)
    • When the scale parameter in a GLM is estimated rather than fixed (as in Gamma or quasi-likelihood models), it is sometimes recommended to use an \(F\) test to account for the uncertainty of the scale parameter (e.g. Venables and Ripley (2002) recommend anova(...,test="F") for quasi-likelihood models)
    • Combining these issues, one has to look pretty hard for information on small-sample or finite-size corrections for GLMMs: Feng, Braun, and McCulloch (2004) and Bell and Grunwald (2010) look like good starting points, but it’s not at all trivial.

Df alternatives:

  • use MASS::glmmPQL (uses old nlme rules approximately equivalent to SAS ‘inner-outer’/‘within-between’ rules) for GLMMs, or (n)lme for LMMs
  • Guess the denominator df from standard rules (for standard designs, e.g. see Gotelli and Ellison (2004)) and apply them to \(t\) or \(F\) tests
  • Run the model in lme (if possible) and use the denominator df reported there (which follow a simple ‘inner-outer’ rule which should correspond to the canonical answer for simple/orthogonal designs), applied to \(t\) or \(F\) tests. For the explicit specification of the rules that lme uses, see page 91 of Pinheiro and Bates (this page was previously available on Google Books, but the link is no longer useful, so here are the relevant paragraphs):

These conditional tests for fixed-effects terms require denominator degrees of freedom. In the case of the conditional \(F\)-tests, the numerator degrees of freedom are also required, being determined by the term itself. The denominator degrees of freedom are determined by the grouping level at which the term is estimated. A term is called inner relative to a factor if its value can change within a given level of the grouping factor. A term is outer to a grouping factor if its value does not changes within levels of the grouping factor. A term is said to be estimated at level \(i\), if it is inner to the \(i-1\)st grouping factor and outer to the \(i\)th grouping factor. For example, the term Machine in the fm2Machine model is outer to Machine %in% Worker and inner to Worker, so it is estimated at level 2 (Machine %in% Worker). If a term is inner to all \(Q\) grouping factors in a model, it is estimated at the level of the within-group errors, which we denote as the \(Q+1\)st level.

The intercept, which is the parameter corresponding to the column of all 1’s in the model matrices \(X_i\), is treated differently from all the other parameters, when it is present. As a parameter it is regarded as being estimated at level 0 because it is outer to all the grouping factors. However, its denominator degrees of freedom are calculated as if it were estimated at level \(Q+1\). This is because the intercept is the one parameter that pools information from all the observations at a level even when the corresponding column in \(X_i\) doesn’t change with the level.

Letting \(m_i\) denote the total number of groups in level \(i\) (with the convention that \(m_0=1\) when the fixed effects model includes an intercept and 0 otherwise, and \(m_{Q+1}=N\)) and \(p_i\) denote the sum of the degrees of freedom corresponding to the terms estimated at level \(i\), the \(i\)th level denominator degrees of freedom is defined as

\[ \mathrm{denDF}_i = m_i - (m_{i-1} + p_i), i = 1, \dots, Q \]

This definition coincides with the classical decomposition of degrees of freedom in balanced, multilevel ANOVA designs and gives a reasonable approximation for more general mixed-effects models.

Note that the implementation used in lme gets the wrong answer for random-slopes models:

library(nlme)
lmeDF <- function(formula=distance~age,random=~1|Subject) {
     mod <- lme(formula,random,data=Orthodont)
     aa <- anova(mod)
    return(setNames(aa[,"denDF"],rownames(aa)))
}
lmeDF()
## (Intercept)         age 
##          80          80
lmeDF(random=~age|Subject) ## wrong!
## (Intercept)         age 
##          80          80

I (BB) have re-implemented this algorithm in a way that does slightly better for random-slopes models (but may still get confused!), see here.

source("R/calcDenDF.R")
calcDenDF(~age,"Subject",nlme::Orthodont)
## (Intercept)         age 
##          80          80
calcDenDF(~age,data=nlme::Orthodont,random=~1|Subject)
## (Intercept)         age 
##          80          80
calcDenDF(~age,data=nlme::Orthodont,random=~age|Subject) ## off by 1
## (Intercept)         age 
##          81          25
  • use SAS, Genstat (AS-REML), Stata?
  • Assume infinite denominator df (i.e. \(Z\)/\(\chi^2\) test rather than \(t\)/\(F\)) if number of groups is large (>45? Various rules of thumb for how large is “approximately infinite” have been posed, including (in Angrist and Pischke 2009), 42 (in homage to Douglas Adams)

Testing significance of random effects

  • the most common way to do this is to use a likelihood ratio test, i.e. fit the full and reduced models (the reduced model is the model with the focal variance(s) set to zero). For example:
library(lme4)
m2 <- lmer(Reaction~Days+(1|Subject)+(0+Days|Subject),sleepstudy,REML=FALSE)
m1 <- update(m2,.~Days+(1|Subject))
m0 <- lm(Reaction~Days,sleepstudy)
anova(m2,m1,m0) ## two sequential tests
## Data: sleepstudy
## Models:
## m0: Reaction ~ Days
## m1: Reaction ~ Days + (1 | Subject)
## m2: Reaction ~ Days + (1 | Subject) + (0 + Days | Subject)
##    npar    AIC    BIC  logLik deviance   Chisq Df Pr(>Chisq)    
## m0    3 1906.3 1915.9 -950.15   1900.3                          
## m1    4 1802.1 1814.8 -897.04   1794.1 106.214  1  < 2.2e-16 ***
## m2    5 1762.0 1778.0 -876.00   1752.0  42.075  1  8.782e-11 ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

With recent versions of lme4, goodness-of-fit (deviance) can be compared between (g)lmer and (g)lm models, although anova() must be called with the mixed ((g)lmer) model listed first. Keep in mind that LRT-based null hypothesis tests are conservative when the null value (such as \(\sigma^2=0\)) is on the boundary of the feasible space (Self and Liang 1987; Stram and Lee 1994; Goldman and Whelan 2000); in the simplest case (single random effect variance), the p-value is approximately twice as large as it should be (Pinheiro and Bates 2000).

  • Consider not testing the significance of random effects. If the random effect is part of the experimental design, this procedure may be considered ‘sacrificial pseudoreplication’ (Hurlbert 1984). Using stepwise approaches to eliminate non-significant terms in order to squeeze more significance out of the remaining terms is dangerous in any case.
  • consider using the RLRsim package, which has a fast implementation of simulation-based tests of null hypotheses about zero variances, for simple tests. (However, it only applies to lmer models, and is a bit tricky to use for more complex models.)
library(RLRsim)
## compare m0 and m1
exactLRT(m1,m0)
## 
##  simulated finite sample distribution of LRT. (p-value based on 10000
##  simulated values)
## 
## data:  
## LRT = 106.21, p-value < 2.2e-16
## compare m1 and m2
mA <- update(m2,REML=TRUE)
m0B <- update(mA, . ~ . - (0 + Days|Subject))
m.slope  <- update(mA, . ~ . - (1|Subject))
exactRLRT(m0=m0B,m=m.slope,mA=mA)
## 
##  simulated finite sample distribution of RLRT.
##  
##  (p-value based on 10000 simulated values)
## 
## data:  
## RLRT = 42.796, p-value < 2.2e-16
  • Parametric bootstrap: fit the reduced model, then repeatedly simulate from it and compute the differences between the deviance of the reduced and the full model for each simulated data set. Compare this null distribution to the observed deviance difference. This procedure is implemented in the pbkrtest package (messages and warnings suppressed).
(pb <- pbkrtest::PBmodcomp(m2,m1,seed=101))
## Bootstrap test; time: 14.57 sec; samples: 1000; extremes: 0;
## Requested samples: 1000 Used samples: 501 Extremes: 0
## large : Reaction ~ Days + (1 | Subject) + (0 + Days | Subject)
## Reaction ~ Days + (1 | Subject)
##          stat df   p.value    
## LRT    42.075  1 8.782e-11 ***
## PBtest 42.075     0.001992 ** 
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Standard errors of variance estimates

  • Paraphrasing Doug Bates: the sampling distribution of variance estimates is in general strongly asymmetric: the standard error may be a poor characterization of the uncertainty.
  • lme4 allows for computing likelihood profiles of variances and computing confidence intervals on their basis; these likelihood profile confidence intervals are subject to the usual caveats about the LRT with finite sample sizes.
  • Using an MCMC-based approach (the simplest/most canned is probably to use the MCMCglmm package, although its mode specifications are not identical to those of lme4) will provide posterior distributions of the variance parameters: quantiles or credible intervals (HPDinterval() in the coda package) will characterize the uncertainty.
  • (don’t say we didn’t warn you …) [n]lme fits contain an element called apVar which contains the approximate variance-covariance matrix (derived from the Hessian, the matrix of (numerically approximated) second derivatives of the likelihood (REML?) at the maximum (restricted?) likelihood values): you can derive the standard errors from this list element via sqrt(diag(lme.obj$apVar)). For whatever it’s worth, though, these estimates might not match the estimates that SAS gives which are supposedly derived in the same way.
  • it’s not a full solution, but there is some more information here. I have some delta-method computations there that are off by a factor of 2 for the residual standard deviation, as well as some computations based on reparameterizing the deviance function.

P-values: MCMC and parametric bootstrap

Abandoning the approximate \(F\)/\(t\)-statistic route, one ends up with the more general problem of estimating \(p\)-values. There is a wider range of options here, although many of them are computationally intensive …

Markov chain Monte Carlo sampling:

  • pseudo-Bayesian: post-hoc sampling, typically (1) assuming flat priors and (2) starting from the MLE, possibly using the approximate variance-covariance estimate to choose a candidate distribution
    • via mcmcsamp (if available for your problem: i.e. LMMs with simple random effects – not GLMMs or complex random effects)
    • via pvals.fnc in the languageR package, a wrapper for mcmcsamp)
    • in AD Model Builder, possibly via the glmmADMB package (use the mcmc=TRUE option) or the R2admb package (write your own model definition in AD Model Builder), or outside of R
    • via the sim function from the arm package (simulates the posterior only for the beta (fixed-effect) coefficients; not yet working with development lme4; would like a better formal description of the algorithm …?)
  • fully Bayesian approaches
    • via the MCMCglmm package
    • glmmBUGS (a WinBUGS wrapper/R interface)
    • JAGS/WinBUGS/OpenBUGS etc., via the rjags/r2jags/R2WinBUGS/BRugs packages

Status of mcmcsamp

mcmcsamp is a function for lme4 that is supposed to sample from the posterior distribution of the parameters, based on flat/improper priors for the parameters [ed: I believe, but am not sure, that these priors are flat on the scale of the theta (Cholesky-factor) parameters]. At present, in the CRAN version (lme4 0.999999-0) and the R-forge “stable” version (lme4.0 0.999999-1), this covers only linear mixed models with uncorrelated random effects.

As has been discussed in a variety of places (e.g. on r-sig-mixed models, and on the r-forge bug tracker, it is challenging to come up with a sampler that accounts properly for the possibility that the posterior distributions for some of the variance components may be mixtures of point masses at zero and continuous distributions. Naive samplers are likely to get stuck at or near zero. Doug Bates has always been a bit unsure that mcmcsamp is really performing as intended, even in the limited cases it now handles.

Given this uncertainty about how even the basic version works, the lme4 developers have been reluctant to make the effort to extend it to GLMMs or more complex LMMs, or to implement it for the development version of lme4 … so unless something miraculous happens, it will not be implemented for the new version of lme4. As always, users are encouraged to write and share their own code that implements these capabilities …

Parametric bootstrap

The idea here is that in order to do inference on the effect of (a) predictor(s), you (1) fit the reduced model (without the predictors) to the data; (2) many times, (2a) simulate data from the reduced model; (2b) fit both the reduced and the full model to the simulated (null) data; (2c) compute some statistic(s) [e.g. t-statistic of the focal parameter, or the log-likelihood or deviance difference between the models]; (3) compare the observed values of the statistic from fitting your full model to the data to the null distribution generated in step 2. - PBmodcomp in the pbkrtest package - see the example in help("simulate-mer") in the lme4 package to roll your own, using a combination of simulate() and refit(). - bootMer in lme4 version >1.0.0 - a presentation at UseR! 2009 (abstract, slides) went into detail about a proposed bootMer package and suggested it could work for GLMMs too – but it does not seem to be active.

Predictions and/or confidence (or prediction) intervals on predictions

Note that none of the following approaches takes the uncertainty of the random effects parameters into account … if you want to take RE parameter uncertainty into account, a Bayesian approach is probably the easiest way to do it.

The general recipe for computing predictions from a linear or generalized linear model is to

  • figure out the model matrix \(X\) corresponding to the new data;
  • matrix-multiply \(X\) by the parameter vector \(\beta\) to get the predictions (or linear predictor in the case of GLM(M)s);
  • extract the variance-covariance matrix of the parameters \(V\)
  • compute \(X V X^{\prime}\) to get the variance-covariance matrix of the predictions;
  • extract the diagonal of this matrix to get variances of predictions;
  • if computing prediction rather than confidence intervals, add the residual variance;
  • take the square-root of the variances to get the standard deviations (errors) of the predictions;
  • compute confidence intervals based on a Normal approximation;
  • for GL(M)Ms, run the confidence interval boundaries (not the standard errors) through the inverse-link function.

lme

library(nlme) 
fm1 <- lme(distance ~ age*Sex, random = ~ 1 + age | Subject,
           data = Orthodont) 
plot(Orthodont,asp="fill") ## plot responses by individual

## note that expand.grid() orders factor levels by *order of
## appearance* -- must match levels(Orthodont$Sex)
newdat <- expand.grid(age=c(8,10,12,14), Sex=c("Female","Male")) 
newdat$pred <- predict(fm1, newdat, level = 0)

## [-2] drops response from formula
Designmat <- model.matrix(formula(fm1)[-2], newdat)
predvar <- diag(Designmat %*% vcov(fm1) %*% t(Designmat)) 
newdat$SE <- sqrt(predvar) 
newdat$SE2 <- sqrt(predvar+fm1$sigma^2)

library(ggplot2) 
pd <- position_dodge(width=0.4) 
g0 <- ggplot(newdat,aes(x=age,y=pred,colour=Sex))+ 
   geom_point(position=pd)
cmult <- 2  ## could use 1.96 instead
g0 + geom_linerange(aes(ymin=pred-cmult*SE,ymax=pred+cmult*SE), position=pd)

## prediction intervals 
g0 + geom_linerange(aes(ymin=pred-cmult*SE2,ymax=pred+cmult*SE2), position=pd) 

A similar answer is laid out in the responses to this StackOverflow question.

lme4

Current versions of lme4 have a predict method.

library(lme4)
library(ggplot2)
data("Orthodont",package="MEMSS")
fm1 <- lmer(
    formula = distance ~ age*Sex + (age|Subject)
    , data = Orthodont
)
newdat <- expand.grid(
    age=c(8,10,12,14)
    , Sex=c("Female","Male")
    , distance = 0
)
newdat$distance <- predict(fm1,newdat,re.form=NA)
mm <- model.matrix(terms(fm1),newdat)
## or newdat$distance <- mm %*% fixef(fm1)
pvar1 <- diag(mm %*% tcrossprod(vcov(fm1),mm))
tvar1 <- pvar1+VarCorr(fm1)$Subject[1]  ## must be adapted for more complex models
cmult <- 2 ## could use 1.96
newdat <- data.frame(
    newdat
    , plo = newdat$distance-cmult*sqrt(pvar1)
    , phi = newdat$distance+cmult*sqrt(pvar1)
    , tlo = newdat$distance-cmult*sqrt(tvar1)
    , thi = newdat$distance+cmult*sqrt(tvar1)
)
#plot confidence
g0 <- ggplot(newdat, aes(x=age, y=distance, colour=Sex))+geom_point()
g0 + geom_pointrange(aes(ymin = plo, ymax = phi))+
    labs(title="CI based on fixed-effects uncertainty ONLY")

#plot prediction
g0 + geom_pointrange(aes(ymin = tlo, ymax = thi))+
    labs(title="CI based on FE uncertainty + RE variance")

rm("Orthodont") ## clean up

glmmTMB

library(glmmTMB)
data(Orthodont,package="nlme")
fm2 <- glmmTMB(distance ~ age*Sex + (age | Subject),
                data = Orthodont,
                family="gaussian")

## make prediction data frame
newdat <- expand.grid(age=c(8,10,12,14), Sex=c("Female","Male"))
## design matrix (fixed effects)
mm <- model.matrix(delete.response(terms(fm2)),newdat)
## linear predictor (for GLMMs, back-transform this with the
##  inverse link function (e.g. plogis() for binomial, beta;
##  exp() for Poisson, negative binomial
newdat$distance <- drop(mm %*% fixef(fm2)[["cond"]])
predvar <- diag(mm %*% vcov(fm2)[["cond"]] %*% t(mm))
newdat$SE <- sqrt(predvar) 
newdat$SE2 <- sqrt(predvar+sigma(fm2)^2)

(Probably overly complicated) ggplot code:

library(ggplot2);  theme_set(theme_bw())
pd <- position_dodge(width=0.4)
g0 <- ggplot(Orthodont,aes(x=age,y=distance,colour=Sex))+
    stat_sum(alpha=0.2,aes(size=..n..))+
    scale_size_continuous(breaks=1:4,range=c(2,5))
g1 <- g0+geom_line(data=newdat,position=pd)+
    geom_point(data=newdat,shape=17,size=3,position=pd)
## confidence intervals
g2 <- g1 + geom_linerange(data=newdat,
                          aes(ymin=distance-2*SE,ymax=distance+2*SE),
                          lwd=2, position=pd)
## prediction intervals 
g2 + geom_linerange(data=newdat,
                    aes(ymin=distance-2*SE2,ymax=distance+2*SE2), position=pd)
## Warning: The dot-dot notation (`..n..`) was deprecated in ggplot2 3.4.0.
## ℹ Please use `after_stat(n)` instead.
## This warning is displayed once every 8 hours.
## Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.

The effects, emmeans, and sjPlot packages are also useful here.

Confidence intervals on conditional means/BLUPs/random effects

lme4

(From Harold Doran, updated by Assaf Oron Nov. 2013:)

If you want the standard errors of the conditional means, you can extract them as follows:

library(lme4)
fm1 <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy)
cV <- ranef(fm1, condVar = TRUE)   

cV is a list; each element is a data frame containing the conditional modes for a particular grouping factor. If you use scalar random effects (typically random intercepts), then specifying ranef(...,drop=TRUE) will return the conditional modes as a single named vector instead.

The conditional variances are returned as an attribute of the conditional modes. It may be easiest to use as.data.frame(cV), or broom.mixed::tidy(fm1, effects="ran_vals"), to extract all of the conditional means and standard deviations.

Or, digging in to the data structure by hand: if we set

ranvar <- attr(cV[[1]], "postVar")

then ranvar is a 3-D array (the attribute is still called postVar, rather than condVar, for historical reasons/backward compatibility). Individual-level covariance matrices of the conditional modes will sit on the [,,i] faces. For example, ranvar[,,1] is the variance-covariance matrix of the conditional distribution for the first group, so

sqrt(diag(ranvar[,,1]))
## [1] 12.070857  2.304839

will provide the intercept and slope standard standard deviations for the first group’s conditional modes. If you have a scalar random effect and used drop=TRUE in ranef(), then you will (mercifully) receive only a vector of individual variances here (one for each level of the grouping factor). The following incantation will give a matrix of conditional variances with one row for each group and one column for each parameters:

ng <- dim(ranvar)[3]
np <- dim(ranvar)[2]
mm <- matrix(ranvar[cbind(rep(seq(np),ng),
             rep(seq(np),ng),
             rep(ng,each=np))],
       byrow=TRUE,
       nrow=ng)

Getting the uncertainty of the coefficients (i.e., what’s returned by coef(): the sum of the fixed-effect and random-effect predictions for a particular level) is not (alas) currently easy with lme4. If the fixed and random effects were independent then we could simply add the conditional variance and the variance of the fixed-effect predictions, but they aren’t in general. There is a long r-sig-mixed-models mailing list thread that discusses the issues, focusing on (1) how to extract the covariance between fixed-effect estimate and the random-effect prediction; (2) whether this value (the covariance between an estimated parameter and a predicted mode of a conditional distribution of a random variable) even makes sense in a frequentist framework. If you’re willing to assume independence of the conditional variance and the fixed-effect sampling variance, then (e.g.) the variance of the intercepts for each group would be the sum of the fixed-effect intercept variance and the conditional variance of the intercept for each group:

vcov(fm1)[1,1]+mm[,1]
##  [1] 192.2807 192.2807 192.2807 192.2807 192.2807 192.2807 192.2807 192.2807
##  [9] 192.2807 192.2807 192.2807 192.2807 192.2807 192.2807 192.2807 192.2807
## [17] 192.2807 192.2807

Power analysis

Power analysis for (G)LMMs is mostly done by simulation, although there are some closed-form solutions and approximations, e.g. Snijders and Bosker (1993) (Snijders has links to programs and other resources on his web page). There are resources and bits of code examples spread all over the internet. e.g. here.

Kain, Bolker, and McCoy (2015) and Johnson et al. (2015) are peer-reviewed papers that discuss power analysis via simulation in more detail.

library(sos); findFn("{power analysis} mixed simulation")

locates the fullfact, pamm, simr, and simglm packages. Depending on the goal, one of these packages may have sufficient flexibility to do what you want.

Model selection and averaging

Can I use AIC for mixed models? How do I count the number of degrees of freedom for a random effect?

  • Yes, with caution.
  • It depends on the “level of focus” (sensu Spiegelhalter et al. (2002)) whether (e.g.) a single random-effect variance should be counted as 1 degree of freedom (i.e., the variance parameter or as a value between 1 and N-1 (where N is the number of groups): see Vaida and Blanchard (2005) and Greven and Kneib (2010). If you are interested in population-level prediction/inference, then the former (called marginal AIC [mAIC]); if individual-level prediction/inference (i.e., using the BLUPs/conditional modes), then the latter (called conditional AIC [cAIC]). Greven and Kneib present results for linear models, giving a version of cAIC that is both computationally efficient and takes uncertainty in the estimation of the variances into account. (Bob O’Hara has a very nice, illustrative blog post on this topic in the context of DIC …)
  • in cases when testing a variance parameter, AIC may be subject to the same kinds of boundary effects as likelihood ratio test p-values (i.e., AICs may be conservative/overfit slightly when the nested parameter value is on the boundary of the feasible space). Greven and Kneib (2010) explore the problems with mAIC in this context, but do not suggest a solution (they point out that Hughes and King (2003) present a ‘one-sided’ AIC, but not one that deals with the non-independence of data points. I haven’t read Hughes and King, I should go do that).
  • AIC also inherits the primary problem of likelihood ratio tests in the GLMM context – that is, that LRTs are asymptotic tests. A finite-size correction for AIC does exist (AICc) – but it was developed in the context of linear models. As far as I know its adequacy in the GLMM case has not been established. See e.g. Richards (2005) for caution about AICc in the GLM (not GLMM) case.
  • lme4 and nlme count parameters for AIC(c) as follows:
    • the number of fixed-effect parameters is straightforward (the length of the fixed-effect parameter vector beta, i.e. length(fixef(model)))
    • each random term in the model with \(q\) components counts for \(q(q+1)/2\) parameters – for example, a term of the form (slope|group) has 3 parameters (intercept variance, slope variance, correlation between intercept and slope).
    • models that use a scale parameter (e.g. the variance parameter of linear mixed models, or the scale parameter of a Gamma GLMM – standard GLMMs such as binomial and Poisson do not) get an extra parameter counted. Whether to add nuisance parameters or not, such as the residual variance parameter (estimated based on the residual variance, rather than an explicit parameter in the optimization) is as far as I know an open question. In the classic AIC context it doesn’t matter as long as one is consistent. In the AICc context, I don’t think anyone really knows the answer … adding +1 for the residual variance parameter (as lme4 does) would make the model selection process slightly more conservative.

Model summaries (goodness-of-fit, decomposition of variance, etc.)

How do I compute a coefficient of determination (\(R^2\)), or an analogue, for (G)LMMs?

Problem

(This topic applies to both LMMs and GLMMs, perhaps more so to LMMs, because the issues are even harder for GLMMs.)

Researchers often want to know if there is a simple (or at least implemented-in-R) way to get an analogue of \(R^2\) or another simple goodness-of-fit metric for LMMs or GLMMs. This is a challenging question in both the GLM and LMM worlds (and therefore doubly so for GLMMs), because it turns out that the wonderful simplicity of \(R^2\) breaks down in the extension to GLMs or LMMs. If you’re trying to quantify “fraction of variance explained” in the GLM context, should you include or exclude sampling variation (e.g., Poisson variation around the expected mean)? [According to an sos::findFn search for “Nagelkerke”, one of the common solutions to this problem, the LogRegR2 function in the descr package computes several different “pseudo-\(R^2\)” measures for logistic regression.] If you’re trying to quantify it in the LMM context, should you include or exclude variation of different random-effects terms?

The same questions apply more generally to decomposition of variance (i.e. trying to assess the contribution of various model components to the overall fit, not just trying to assess the overall goodness-of-fit of the model); there is unlikely to be a single recipe that does everything you want.

This has been discussed at various times on the mailing lists. This thread and this thread on the r-sig-mixed-models mailing list are good starting points, and this post is useful too.

In one of those threads, Doug Bates said:

Assuming that one wants to define an R^2 measure, I think an argument could be made for treating the penalized residual sum of squares from a linear mixed model in the same way that we consider the residual sum of squares from a linear model. Or one could use just the residual sum of squares without the penalty or the minimum residual sum of squares obtainable from a given set of terms, which corresponds to an infinite precision matrix. I don’t know, really. It depends on what you are trying to characterize.

Simple/crude solutions

In one of those threads, Jarrett Byrnes contributed the following code:

r2.corr.mer <- function(m) {
   lmfit <-  lm(model.response(model.frame(m)) ~ fitted(m))
   summary(lmfit)$r.squared
}

\(\Omega^2_0\) (Xu 2003), which is almost the same, is based on comparing the residual variance of the full model against the residual variance of a (fixed) intercept-only null model:

1-var(residuals(m))/var(model.response(model.frame(m)))

Another possibility is the squared correlation between the response variable and the predicted values:

cor(model.response(model.frame(m)),predict(m,type="response"))^2

Sophisticated solutions

Gelman and Pardoe (2006) propose/discuss Bayesian measures of \(R^2\) (I don’t know if anyone has created a canned implementation of these measures in R). Nakagawa and Schielzeth (2013) and Johnson (2014) have also proposed a general methodology for computing \(R^2\); J. Lefcheck gives examples here and here, based on his implementation in the piecewiseSEM package (CRAN, Github). See also Jaeger et al. (2017), Rights and Sterba (2018)

A related question is how to quantify “repeatability” (i.e., ratios of variance at different levels) in GLMMs, especially how to compute the “residual error” term for GLMMs: see Nakagawa and Schielzeth (2010) and the rptR package.

The bottom line is that there are some simple recipes (and some more complex recipes that may or may not have been coded up by someone), but that ’‘’you have to think carefully about what information you want to get out of the coefficient of determination’’’, because no recipe will have all of the properties of \(R^2\) in the simple linear model case.

Packages/functions: See performance::r2(), MuMIn::r.squaredGLMM(), the r2glmm package, the standalone r2MLM function, stuff in the piecewiseSEM package, psycho::R2_nakagawa, partR2 package … (try e.g. sos::findFn("Nakagawa Schielzeth") for an up-to-date list …)

Variable importance

  • The simplest way to get (within-study) measures of variable importance is to standardize the predictor variables (scaling by 1 SD or 2SD: Gelman (2008), Schielzeth (2010))

  • The r2glmm package computes partial \(R^2\) values for fixed effects (only for lmer, lme, and glmmPQL models)

  • Henrik Singmann has a detailed answer here on why standardized measures such as partial eta-squared are problematic:

    The fact that calculating a global measure of model fit (such as R2) is already riddled with complications and that no simple single number can be found, should be a hint that doing so for a subset of the model parameters (i.e., main-effects or interactions) is even more difficult. Given this, I would not recommend to try finding a measure of standardized effect sizes for mixed models.

    He even gives suggested wording for responding to reviewers who want standardized measures!

Do I have to specify the levels of fixed effects in lmer?

No. See Doug Bates reply to this question here

Miscellaneous/procedural

Pronunciation of lmer/glmer/etc.

  • lmer: I have heard “ell emm ee arr” (i.e. pronouncing each letter); “elmer” (probably most common); and “lemur”
  • glmer: “gee ell emm ee arr”, “gee elmer”, “glimmer”, or “gleamer”
  • for lme and nlme people just seem to spell out the names (rather than saying e.g. “lemmy” and “nelmy”)

Storing information

Recent versions of lme4 output contain an @optinfo slot that stores warnings.

Copied from https://stat.ethz.ch/pipermail/r-help/2012-February/302767.html :

There’s a somewhat hack-ish solution, which is to use options(warn=2) to ‘upgrade’ warnings to errors, and then use try() or tryCatch() to catch them.

More fancily, I used code that looked something like this to save warnings as I went along (sorry about the <<- ) in a recent simulation study. You could also check w$message to do different things in the case of different warnings.

## n.b. have to set up a 3D warn array first ...
withCallingHandlers(tryCatch(fun(n=nvec[j],tau=tauvec[i],...),
                error = function(e) {
                  warn[k,i,j] <<- paste("ERROR:",e$message)
              NA_ans}),
               warning = function(w) {
                  warn[k,i,j] <<- w$message
                  invokeRestart("muffleWarning")
             })

Mixed modeling packages

Which R packages (functions) fit GLMMs?

  • MASS::glmmPQL (penalized quasi-likelihood)
  • lme4::glmer (Laplace approximation and adaptive Gauss-Hermite quadrature [AGHQ])
  • MCMCglmm (Markov chain Monte Carlo)
  • glmmML (AGHQ)
  • glmmAK (AGHQ?)
  • glmmADMB (Laplace)
  • glmm (from Jim Lindsey’s repeated package: AGHQ)
  • gamlss.mx
  • ASREML-R
  • sabreR

Should I use aov(), nlme, or lme4, or some other package?

  • aov() (in the stats package in base R: balanced, orthogonal designs only (R analogue of SAS PROC GLM)
  • nlme (analogue of SAS PROC MIXED/NLMIXED)
    • allows more complex designs than aov (unbalanced, heteroscedasticity and/or correlation among residual errors)
    • more mature than lme4
    • well-documented (Pinheiro and Bates 2000)
    • implements R-side effects (heteroscedasticity and correlation)
    • estimates “denominator degrees of freedom” for \(F\) statistics, and hence \(p\) values, for LMMs (but see above)
  • lme4 (also SAS PROC MIXED/NLMIXED):
    • fastest
    • best for crossed designs (although they are possible in lme)
    • GLMMs
    • cutting-edge (for better or worse!)
    • likelihood profiles
    • use lme4 for GLMMs, or if you have big data (thousands to tens of thousands of records)

The following is modified from a contribution by Kingsford Jones, found 2010-03-16

linear and nonlinear mixed models

  • lme – Linear mixed-effects models using S4 classes
  • lmm – Linear mixed models
  • nlme – Linear and Nonlinear Mixed Effects Models
  • sabreR
  • regress Linear mixed models

GLMMs

  • glmmAK – Generalized Linear Mixed Models
  • MASS – Main Package of Venables and Ripley’s MASS (see function glmmPQL)
  • MCMCglmm – MCMC Generalised Linear Mixed Models
  • lme4 (glmer)
  • glmmML
  • gamlss.mx
  • sabreR

Additive and generalized-additive mixed models

  • amer – Additive mixed models with lme4
  • gamm4 – Generalized additive mixed models using mgcv and lme4
  • mgcv (gamm function, via glmmPQL in MASS package)
  • gamlss.mx

Hierarchical GLMs

  • hglm – hglm is used to fit hierarchical generalized linear models
  • HGLMMM – Hierarchical Generalized Linear Models

diagnostic and modeling frameworks

  • influence.ME – Tools for detecting influential data in mixed effects models
  • arm – Data Analysis Using Regression and Multilevel/Hierarchical Models
  • pamm – Power analysis for random effects in mixed models
  • RLRsim – Exact (Restricted) Likelihood Ratio tests for mixed and additive models
  • npde – Normalised prediction distribution errors for nonlinear mixed-effect models
  • multilevel – Multilevel Functions (psychology-oriented; within-group agreement, random group resampling, etc.)
  • languageR
  • pbkrtest – parametric bootstrap and Kenward-Roger tests

data and examples

  • MEMSS – Data sets from Mixed-effects Models in S
  • mlmRev – Examples from Multilevel Modelling Software Review
  • SASmixed – Data sets from “SAS System for Mixed Models”

extensions

  • lmeSplines – lmeSplines
  • lmec – Linear Mixed-Effects Models with Censored Responses
  • kinship – mixed-effects Cox models, sparse matrices, and modeling data from large pedigrees
  • coxme – Mixed Effects Cox Models
  • ordinal – Regression Models for Ordinal Data
  • phmm – Proportional Hazards Mixed-effects Model (PHMM)
  • pedigreemm – Pedigree-based mixed-effects models
  • (see also MCMCglmm for pedigree-based approaches)
  • heavy – Estimation in the linear mixed model using heavy-tailed distributions
  • GLMMarp – Generalized Linear Multilevel Model with AR(p) Errors Package
  • glmmlasso – penalized GLMM fitting
  • spatialCovariance – spatial covariance matrix calculations

Interfaces to other systems

  • glmmBUGS – Generalised Linear Mixed Models and Spatial Models with BUGS
  • Interfaces to WinBUGS/OpenBUGS/JAGS (roll your own model file):
  • R2WinBUGS
  • r2jags
  • rjags
  • RBugs

modeling based on LMMs

  • nlmeODE – Non-linear mixed-effects modelling in nlme using differential equations
  • longRPart – Recursive partitioning of longitudinal data using mixed-effects models
  • PSM – Non-Linear Mixed-Effects modelling using Stochastic Differential Equations

Off-CRAN mixed modeling packages:

R-forge and Github:

  • glmmADMB (R-forge, interface to AD Model Builder)
  • spida, p3d (Georges Monette)

Other open source:

  • bernor package (logit-normal fitting), by Yun Ju Sung and Charles J. Geyer
  • glmm (in Jim Lindsey’s repeated package: at Lindsey’s web site

Commercial:

  • OpenMx – Advanced Structural Equation Modeling
  • ASReml-R (commercial, but 30 days’ free use/free license for academic or developing-country use available). Very good at complex LMMs (fast, flexible covariance structures, etc.), but only offers PQL for GLMMs, and the manual says: > we cannot recommend the use of this technique for general use. It is included in the current version of asreml() for advanced users. It is highly recommended that its use be accompanied by some form of cross-validatory assessment for the specific dataset concerned.” Resources:
  • short R wiki tutorial
  • reference manual (PDF)
  • Luis Apiolaza’s asreml-r cookbook

Package versions used

sessionInfo()
## R Under development (unstable) (2024-07-31 r86945)
## Platform: x86_64-pc-linux-gnu
## Running under: Pop!_OS 22.04 LTS
## 
## Matrix products: default
## BLAS:   /usr/local/lib/R/lib/libRblas.so 
## LAPACK: /usr/local/lib/R/lib/libRlapack.so;  LAPACK version 3.12.0
## 
## locale:
##  [1] LC_CTYPE=en_CA.UTF-8       LC_NUMERIC=C              
##  [3] LC_TIME=en_CA.UTF-8        LC_COLLATE=en_CA.UTF-8    
##  [5] LC_MONETARY=en_CA.UTF-8    LC_MESSAGES=en_CA.UTF-8   
##  [7] LC_PAPER=en_CA.UTF-8       LC_NAME=C                 
##  [9] LC_ADDRESS=C               LC_TELEPHONE=C            
## [11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C       
## 
## time zone: America/Toronto
## tzcode source: system (glibc)
## 
## attached base packages:
## [1] stats     graphics  grDevices utils     datasets  methods   base     
## 
## other attached packages:
##  [1] ggplot2_3.5.1       RLRsim_3.1-8        nlme_3.1-165       
##  [4] dplyr_1.1.4         broom.mixed_0.2.9.5 glmmTMB_1.1.9-9000 
##  [7] equatiomatic_0.3.3  lme4_1.1-36         Matrix_1.7-0       
## [10] Cairo_1.6-2         pander_0.6.5        knitr_1.48         
## [13] rmarkdown_2.27     
## 
## loaded via a namespace (and not attached):
##  [1] gtable_0.3.5        TMB_1.9.14          xfun_0.46          
##  [4] bslib_0.8.0         lattice_0.22-6      numDeriv_2016.8-1.1
##  [7] vctrs_0.6.5         tools_4.5.0         Rdpack_2.6         
## [10] generics_0.1.3      sandwich_3.1-0      parallel_4.5.0     
## [13] tibble_3.2.1        fansi_1.0.6         highr_0.11         
## [16] pkgconfig_2.0.3     lifecycle_1.0.4     farver_2.1.2       
## [19] compiler_4.5.0      munsell_0.5.1       codetools_0.2-20   
## [22] httpuv_1.6.15       htmltools_0.5.8.1   sass_0.4.9         
## [25] yaml_2.3.10         crayon_1.5.3        later_1.3.2        
## [28] pillar_1.9.0        furrr_0.3.1         nloptr_2.1.1       
## [31] jquerylib_0.1.4     tidyr_1.3.1         MASS_7.3-61        
## [34] cachem_1.1.0        reformulas_0.3.0    boot_1.3-30        
## [37] multcomp_1.4-26     mime_0.12           parallelly_1.38.0  
## [40] tidyselect_1.2.1    digest_0.6.36       mvtnorm_1.2-5      
## [43] future_1.34.0       purrr_1.0.2         listenv_0.9.1      
## [46] labeling_0.4.3      forcats_1.0.0       splines_4.5.0      
## [49] fastmap_1.2.0       grid_4.5.0          colorspace_2.1-1   
## [52] cli_3.6.3           magrittr_2.0.3      survival_3.7-0     
## [55] utf8_1.2.4          TH.data_1.1-2       broom_1.0.6        
## [58] withr_3.0.1         scales_1.3.0        promises_1.3.0     
## [61] backports_1.5.0     estimability_1.5.1  emmeans_1.10.3     
## [64] globals_0.16.3      zoo_1.8-12          coda_0.19-4.1      
## [67] shiny_1.9.1         evaluate_0.24.0     rbibutils_2.2.16   
## [70] mgcv_1.9-1          rlang_1.1.4         Rcpp_1.0.13        
## [73] xtable_1.8-4        glue_1.7.0          minqa_1.2.7        
## [76] jsonlite_1.8.8      R6_2.5.1

To do

  • add links to merDeriv for standard devs of variances, robust estimates. More on Rizopoulos package
  • update package descriptions; cross-link with Task View ? rethinking, brms, …
  • more on post-analysis (broom(.mixed), emmeans, multcomp, …)
  • more on confidence intervals, simulating from conditional distributions, etc.)

Bibliography

Agresti, Alan. 2002. Categorical Data Analysis. 2d ed. Hoboken, NJ: Wiley.
Angrist, Joshua D., and Jörn-Steffen Pischke. 2009. Mostly Harmless Econometrics: An Empiricist’s Companion. 1 edition. Princeton: Princeton University Press.
Barr, Dale J. 2020. Learning Statistical Models Through Simulation in R. PsyTeachR Books. https://psyteachr.github.io/ug3-stats/.
Barr, Dale J., Roger Levy, Christoph Scheepers, and Harry J. Tily. 2013. “Random Effects Structure for Confirmatory Hypothesis Testing: Keep It Maximal.” Journal of Memory and Language 68 (3): 255–78. https://doi.org/10.1016/j.jml.2012.11.001.
Bates, Douglas, Reinhold Kliegl, Shravan Vasishth, and Harald Baayen. 2015. “Parsimonious Mixed Models.” arXiv:1506.04967 [Stat], June. http://arxiv.org/abs/1506.04967.
Bates, Douglas, Martin Mächler, Benjamin M. Bolker, and Steven C. Walker. 2015. “Fitting Linear Mixed-Effects Models Using lme4.” Journal of Statistical Software 67 (1): 1–48. https://doi.org/10.18637/jss.v067.i01.
Bell, Melanie L., and Gary K. Grunwald. 2010. “Small Sample Estimation Properties of Longitudinal Count Models.” Journal of Statistical Computation and Simulation 81 (9): 1067–79. https://doi.org/10.1080/00949651003674144.
Berger, J. O., B. Liseo, and R. L. Wolpert. 1999. “Integrated Likelihood Methods for Eliminating Nuisance Parameters.” Statistical Science 14 (1): 1–22. http://projecteuclid.org/download/pdf_1/euclid.ss/1009211804.
Booth, James G., and James P. Hobert. 1999. “Maximizing Generalized Linear Mixed Model Likelihoods with an Automated Monte Carlo EM Algorithm.” Journal of the Royal Statistical Society. Series B 61 (1): 265–85. https://doi.org/10.1111/1467-9868.00176.
Breslow, N. E. 1984. “Extra-Poisson Variation in Log-Linear Models.” Journal of the Royal Statistical Society C 33: 38–44. http://www.jstor.org/stable/234766.
Browne, W. J, S. V. Subramanian, K. Jones, and H. Goldstein. 2005. “Variance Partitioning in Multilevel Logistic Models That Exhibit Overdispersion.” Journal of the Royal Statistical Society A 168 (3): 599–613. https://doi.org/10.1111/j.1467-985X.2004.00365.x.
Chung, Yeojin, Sophia Rabe-Hesketh, Vincent Dorie, Andrew Gelman, and Jingchen Liu. 2013. “A Nondegenerate Penalized Likelihood Estimator for Variance Parameters in Multilevel Models.” Psychometrika, 1–25. https://doi.org/10.1007/s11336-013-9328-2.
Clark, Tom S, and Drew A Linzer. 2015. “Should I Use Fixed or Random Effects?” Political Science Research and Methods 3 (02): 399–408.
Cordeiro, Gauss M., and Silvia L. P. Ferrari. 1998. “A Note on Bartlett-Type Correction for the First Few Moments of Test Statistics.” Journal of Statistical Planning and Inference 71 (1-2): 261–69. https://doi.org/10.1016/S0378-3758(98)00005-6.
Cordeiro, Gauss M., Gilberto A. Paula, and Denise A. Botter. 1994. “Improved Likelihood Ratio Tests for Dispersion Models.” International Statistical Review / Revue Internationale de Statistique 62 (2): 257–74. https://doi.org/10.2307/1403512.
Crawley, Michael J. 2002. Statistical Computing: An Introduction to Data Analysis Using S-PLUS. John Wiley & Sons.
Cribari-Neto, Francisco, and Achim Zeileis. 2009. “Beta Regression in R.” 98. Vienna, Austria: WU Vienna University of Economics; Business. https://cran.r-project.org/web/packages/betareg/index.html.
Dobson, Annette J., and Adrian Barnett. 2008. An Introduction to Generalized Linear Models, Third Edition. 3rd ed. Chapman; Hall/CRC.
Elston, D. A., R. Moss, T. Boulinier, C. Arrowsmith, and X. Lambin. 2001. “Analysis of Aggregation, a Worked Example: Numbers of Ticks on Red Grouse Chicks.” Parasitology 122 (5): 563–69.
Faraway, Julian J. 2006. Extending Linear Models with R: Generalized Linear, Mixed Effects and Nonparametric Regression Models. Chapman & Hall/CRC.
Feng, Ziding, Thomas Braun, and Charles McCulloch. 2004. “Small Sample Inference for Clustered Data.” In Proceedings of the Second Seattle Symposium in Biostatistics, edited by D. Y. Lin and P. J. Heagerty, 179:71–87. New York, NY: Springer. http://www.springerlink.com/content/h2g33m7127790343/.
Gelman, Andrew. 2005. “Analysis of Variance: Why It Is More Important Than Ever.” Annals of Statistics 33 (1): 1–53. https://doi.org/doi:10.1214/009053604000001048.
———. 2006. “Prior Distributions for Variance Parameters in Hierarchical Models.” Bayesian Analysis 1 (3): 515–33. http://ba.stat.cmu.edu/journal/2006/vol01/issue03/gelman.pdf.
———. 2008. “Scaling Regression Inputs by Dividing by Two Standard Deviations.” Statistics in Medicine 27 (15): 2865–73. https://doi.org/10.1002/sim.3107.
Gelman, Andrew, and Jennifer Hill. 2006. Data Analysis Using Regression and Multilevel/Hierarchical Models. Cambridge, England: Cambridge University Press. http://www.stat.columbia.edu/~gelman/arm/.
Gelman, Andrew, and Iain Pardoe. 2006. “Bayesian Measures of Explained Variance and Pooling in Multilevel (Hierarchical) Models.” Technometrics 48 (2): 241–51. http://amstat.tandfonline.com/doi/abs/10.1198/004017005000000517.
Goldman, Nick, and Simon Whelan. 2000. “Statistical Tests of Gamma-Distributed Rate Heterogeneity in Models of Sequence Evolution in Phylogenetics.” Molecular Biology and Evolution 17 (6): 975–78.
Gotelli, Nicholas J., and Aaron M. Ellison. 2004. A Primer of Ecological Statistics. Sunderland, MA: Sinauer.
Greven, Sonja, and Thomas Kneib. 2010. “On the Behaviour of Marginal and Conditional Akaike Information Criteria in Linear Mixed Models.” Biometrika 97 (4): 773–89. http://www.bepress.com/jhubiostat/paper202/.
Harrison, Xavier A. 2015. “A Comparison of Observation-Level Random Effect and Beta-Binomial Models for Modelling Overdispersion in Binomial Data in Ecology and Evolution.” PeerJ 3 (July): e1114. https://doi.org/10.7717/peerj.1114.
He, Hua, Hui Zhang, Peng Ye, and Wan Tang. 2019. “A Test of Inflated Zeros for Poisson Regression Models.” Statistical Methods in Medical Research 28 (4): 1157–69. https://doi.org/10.1177/0962280217749991.
Heisterkamp, Simon H., Engelbertus van Willigen, Paul-Matthias Diderichsen, and John Maringwa. 2017. “Update of the Nlme Package to Allow a Fixed Standard Deviation of the Residual Error.” The R Journal 9 (1): 239–51.
Hinde, John. 1982. “Compound Poisson Regression Models.” In GLIM82: Proc. Int. Conf. On GLMs, edited by R. Gilchrist, 109–21. Springer.
Hodges, James S. 2016. Richly Parameterized Linear Models: Additive, Time Series, and Spatial Models Using Random Effects. Chapman; Hall/CRC.
Hughes, A., and M. King. 2003. “Model Selection Using AIC in the Presence of One-Sided Information.” Journal of Statistical Planning and Inference 115: 497–11.
Hurlbert, S. 1984. “Pseudoreplication and the Design of Ecological Field Experiments.” Ecological Monographs 54: 187–211.
Jaeger, Byron C., Lloyd J. Edwards, Kalyan Das, and Pranab K. Sen. 2017. “An R2 Statistic for Fixed Effects in the Generalized Linear Mixed Model.” Journal of Applied Statistics 44 (6): 1086–1105. https://doi.org/10.1080/02664763.2016.1193725.
Jin, Shaobo, and Youngjo Lee. 2021. “A Review of h-Likelihood and Hierarchical Generalized Linear Model.” WIREs Computational Statistics 13 (5): e1527. https://doi.org/10.1002/wics.1527.
Johnson, Paul C. D. 2014. “Extension of Nakagawa & Schielzeth’s R2GLMM to Random Slopes Models.” Methods in Ecology and Evolution 5 (9): 944–46. https://doi.org/10.1111/2041-210X.12225.
Johnson, Paul C. D., Sarah J. E. Barry, Heather M. Ferguson, and Pie Müller. 2015. “Power Analysis for Generalized Linear Mixed Models in Ecology and Evolution.” Methods in Ecology and Evolution 6 (2): 133–42. https://doi.org/10.1111/2041-210X.12306.
Kain, Morgan P., Ben M. Bolker, and Michael W. McCoy. 2015. “A Practical Guide and Power Analysis for GLMMs: Detecting Among Treatment Variation in Random Effects.” PeerJ 3 (September): e1226. https://doi.org/10.7717/peerj.1226.
Knudson, Christina, Sydney Benson, Charles Geyer, and Galin Jones. 2021. “Likelihood-Based Inference for Generalized Linear Mixed Models: Inference with the R Package glmm.” Stat 10 (1): e339. https://doi.org/10.1002/sta4.339.
Lawson, A., A. Biggeri, D. Bohning, E. LeSaffre, J. F. Viel, and R. Bertollini, eds. 1999. Disease Mapping and Risk Assessment for Public Health. New York: Wiley.
Lee, Youngjo, John A. Nelder, and Yudi Pawitan. 2017. Generalized Linear Models with Random Effects: Unified Analysis via H-Likelihood, Second Edition. 2 edition. Boca Raton, Florida: Chapman; Hall/CRC.
Littell, Ramon C., George A. Milliken, Walter W. Stroup, Russell D. Wolfinger, and Oliver Schabenberger. 2006. SAS for Mixed Models, Second Edition. SAS Publishing.
Lo, Steson, and Sally Andrews. 2015. “To Transform or Not to Transform: Using Generalized Linear Mixed Models to Analyse Reaction Time Data.” Frontiers in Psychology 6. https://doi.org/10.3389/fpsyg.2015.01171.
Maindonald, J., and J. Braun. 2010. Data Analysis and Graphics Using r, an Example-Based Approach. 3rd ed. Cambridge University Press.
Martin, Tara G., Brendan A. Wintle, Jonathan R. Rhodes, Petra M. Kuhnert, Scott A. Field, Samantha J. Low-Choy, Andrew J. Tyre, and Hugh P. Possingham. 2005. “Zero Tolerance Ecology: Improving Ecological Inference by Modelling the Source of Zero Observations: Modelling Excess Zeros in Ecology.” Ecology Letters 8 (11): 1235–46. https://doi.org/10.1111/j.1461-0248.2005.00826.x.
Matuschek, Hannes, Reinhold Kliegl, Shravan Vasishth, Harald Baayen, and Douglas Bates. 2017. “Balancing Type I Error and Power in Linear Mixed Models.” Journal of Memory and Language 94: 305–15. https://doi.org/10.1016/j.jml.2017.01.001.
McCullagh, P., and J. A. Nelder. 1989. Generalized Linear Models. London: Chapman; Hall.
McCulloch, Charles E., and John M. Neuhaus. 2011. “Misspecifying the Shape of a Random Effects Distribution: Why Getting It Wrong May Not Matter.” Statistical Science 26 (3): 388–402. https://doi.org/10.1214/11-STS361.
Meng, Xiao-Li. 2009. “Decoding the H-likelihood.” Statistical Science 24 (3). https://doi.org/10.1214/09-STS277C.
———. 2011. “What’s the H in H-Likelihood: A Holy Grail or an AchillesHeel?” In Bayesian Statistics 9, edited by José M. Bernardo, M. J. Bayarri, James O. Berger, A. P. Dawid, David Heckerman, Adrian F. M. Smith, and Mike West, 0. Oxford University Press. https://doi.org/10.1093/acprof:oso/9780199694587.003.0016.
Millar, Russell B. 2011. Maximum Likelihood Estimation and Inference: With Examples in r, SAS and ADMB. John Wiley & Sons.
Nakagawa, Shinichi, and Holger Schielzeth. 2010. “Repeatability for Gaussian and Non-Gaussian Data: A Practical Guide for Biologists.” Biological Reviews 85 (4): 935–56. https://doi.org/10.1111/j.1469-185X.2010.00141.x.
———. 2013. “A General and Simple Method for Obtaining R2 from Generalized Linear Mixed-Effects Models.” Methods in Ecology and Evolution 4 (2): 133–42. https://doi.org/10.1111/j.2041-210x.2012.00261.x.
Oberpriller, Johannes, Melina de Souza Leite, and Maximilian Pichler. 2021. “Fixed or Random? On the Reliability of Mixed-Effects Models for a Small Number of Levels in Grouping Variables.” bioRxiv, June, 2021.05.03.442487. https://doi.org/10.1101/2021.05.03.442487.
Pasch, Bret, Benjamin M. Bolker, and Steven M. Phelps. 2013. “Interspecific Dominance via Vocal Interactions Mediates Altitudinal Zonation in Neotropical Singing Mice.” The American Naturalist 182 (5): E161–73. https://doi.org/10.1086/673263.
Pinheiro, José C., and Douglas M. Bates. 2000. Mixed-Effects Models in S and S-PLUS. New York: Springer.
Rabe-Hesketh, Sophia, and Anders Skrondal. 2008. Multilevel and Longitudinal Modeling Using Stata. 2nd ed. Stata Press. http://www.stata-press.com/books/mlmus2.html.
Richards, Shane A. 2005. “Testing Ecological Theory Using the Information-Theoretic Approach: Examples and Cautionary Results.” Ecology 86 (10): 2805–14. https://doi.org/10.1890/05-0074.
Rights, Jason D., and Sonya K. Sterba. 2018. “Quantifying Explained Variance in Multilevel Models: An Integrative Framework for Defining R-Squared Measures.” Psychological Methods. https://doi.org/10.1037%2Fmet0000184.
Schaalje, G., J. McBride, and G. Fellingham. 2002. “Adequacy of Approximations to Distributions of Test Statistics in Complex Mixed Linear Models.” Journal of Agricultural, Biological & Environmental Statistics 7 (14): 512–24. http://www.ingentaconnect.com/content/asa/jabes/2002/00000007/00000004/art00004.
Schabenberger, Oliver, and Francis J. Pierce. 2001. Contemporary Statistical Models for the Plant and Soil Sciences. Boca Raton, FL: CRC Press.
Schielzeth, Holger. 2010. “Simple Means to Improve the Interpretability of Regression Coefficients.” Methods in Ecology and Evolution 1: 103–13. https://doi.org/10.1111/j.2041-210X.2010.00012.x.
Self, Steven G., and Kung-Yee Liang. 1987. “Asymptotic Properties of Maximum Likelihood Estimators and Likelihood Ratio Tests Under Nonstandard Conditions.” Journal of the American Statistical Association 82 (398): 605–10. https://doi.org/10.1080/01621459.1987.10478472.
Smithson, Michael, and Jay Verkuilen. 2006. “A Better Lemon Squeezer? Maximum-Likelihood Regression with Beta-Distributed Dependent Variables.” Psychological Methods 11 (1): 54–71. https://doi.org/10.1037/1082-989X.11.1.54.
Snijders, Tom A. B., and Roel J. Bosker. 1993. “Standard Errors and Sample Sizes for Two-Level Research.” Journal of Educational Statistics 18 (3): 237. https://doi.org/10.2307/1165134.
Spiegelhalter, D. J., N. Best, B. P. Carlin, and A. Van der Linde. 2002. “Bayesian Measures of Model Complexity and Fit.” Journal of the Royal Statistical Society B 64: 583–640.
Stram, Daniel O, and Jae Won Lee. 1994. “Variance Components Testing in the Longitudinal Fixed Effects Model.” Biometrics 50 (4): 1171–77. http://links.jstor.org/sici?sici=0006-341X%28199412%2950%3A4%3C1171%3AVCTITL%3E2.0.CO%3B2-H.
Stroup, W. W. 2013. “Non-Normal Data in Agricultural Experiments.” In. Kansas State University. http://newprairiepress.org/agstatconference/2013/proceedings/8.
Stroup, Walter W. 2014. “Rethinking the Analysis of Non-Normal Data in Plant and Soil Science.” Agronomy Journal 106: 1–17. https://doi.org/10.2134/agronj2013.0342.
Vaida, Florin, and Suzette Blanchard. 2005. “Conditional Akaike Information for Mixed-Effects Models.” Biometrika 92 (2): 351–70. https://doi.org/10.1093/biomet/92.2.351.
Venables, W., and Brian D. Ripley. 2002. Modern Applied Statistics with s. 4th ed. New York: Springer.
Vuong, Quang H. 1989. “Likelihood Ratio Tests for Model Selection and Non-Nested Hypotheses.” Econometrica 57 (2): 307–33. https://doi.org/10.2307/1912557.
Warton, David I. 2005. “Many Zeros Does Not Mean Zero Inflation: Comparing the Goodness-of-Fit of Parametric Models to Multivariate Abundance Data.” Environmetrics 16 (3): 275–89. https://doi.org/10.1002/env.702.
Wilson, Paul. 2015. “The Misuse of the Vuong Test for Non-Nested Models to Test for Zero-Inflation.” Economics Letters 127 (February): 51–53. https://doi.org/10.1016/j.econlet.2014.12.029.
Wolfinger, Russ, and Michael O’Connell. 1993. “Generalized Linear Mixed Models a Pseudo-Likelihood Approach.” Journal of Statistical Computation and Simulation 48 (3-4): 233–43. https://doi.org/10.1080/00949659308811554.
Xu, R. 2003. “Measuring Explained Variation in Linear Mixed Effects Models.” Statist. Med. 22: 3527–41. https://doi.org/10.1002/sim.1572 doi:10.1002/sim.1572.
Zuur, Alain F., Elena N. Ieno, Neil J. Walker, Anatoly A. Saveliev, and Graham M. Smith. 2009a. “Zero-Truncated and Zero-Inflated Models for Count Data.” In Mixed Effects Models and Extensions in Ecology with R, 261–93. New York, NY: Springer New York. http://www.springerlink.com/content/m087275807178771/.
———. 2009b. Mixed Effects Models and Extensions in Ecology with R. Springer.

  1. in R, foo::bar (or foo::bar()) denotes “function bar in package foo”).↩︎

  2. the dispersion factor is estimated on a variance, so we need to take the square root to apply it to the standard error↩︎

LS0tCmF1dGhvcjogQmVuIEJvbGtlciBhbmQgb3RoZXJzCnRpdGxlOiBHTE1NIEZBUQpiaWJsaW9ncmFwaHk6IGdsbW0uYmliCmRhdGU6ICAiYHIgZm9ybWF0KFN5cy50aW1lKCksICclZCAlYiAlWScpYCIKb3V0cHV0OiAKICBodG1sX2RvY3VtZW50OgogICAgIGNvZGVfZG93bmxvYWQ6IHRydWUKICAgICB0b2M6IHRydWUKLS0tCgo8IS0tIEdvb2dsZSB0YWcgKGd0YWcuanMpIC0tPgo8c2NyaXB0IGFzeW5jIHNyYz0iaHR0cHM6Ly93d3cuZ29vZ2xldGFnbWFuYWdlci5jb20vZ3RhZy9qcz9pZD1HLUtZMUpZMEM1M1MiPjwvc2NyaXB0Pgo8c2NyaXB0PgogIHdpbmRvdy5kYXRhTGF5ZXIgPSB3aW5kb3cuZGF0YUxheWVyIHx8IFtdOwogIGZ1bmN0aW9uIGd0YWcoKXtkYXRhTGF5ZXIucHVzaChhcmd1bWVudHMpO30KICBndGFnKCdqcycsIG5ldyBEYXRlKCkpOwoKICBndGFnKCdjb25maWcnLCAnRy1LWTFKWTBDNTNTJyk7Cjwvc2NyaXB0PgoKYGBge3Igc2V0dXAsbWVzc2FnZT1GQUxTRSxlY2hvPUZBTFNFfQpsaWJyYXJ5KGtuaXRyKQprbml0cjo6b3B0c19jaHVuayRzZXQoZGV2LmFyZ3MgPSBsaXN0KHBuZyA9IGxpc3QodHlwZSA9ICJjYWlybyIpKSkKbGlicmFyeShwYW5kZXIpCmxpYnJhcnkoQ2Fpcm8pCmBgYAoKYGBge3IgcGtncywgZXZhbD1GQUxTRSxlY2hvPUZBTFNFfQpwa2dzIDwtIGMoImxtZTQiLCJnbG1tQURNQiIsInNvcyIsImJsbWUiLCJSTFJzaW0iLCJnZ3Bsb3QyIiwgIk1FTVNTIikKaTEgPC0gaW5zdGFsbGV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