summaryrefslogtreecommitdiffstats
path: root/openbb_terminal/core/plots/plotly.html
diff options
context:
space:
mode:
Diffstat (limited to 'openbb_terminal/core/plots/plotly.html')
-rw-r--r--openbb_terminal/core/plots/plotly.html24
1 files changed, 12 insertions, 12 deletions
diff --git a/openbb_terminal/core/plots/plotly.html b/openbb_terminal/core/plots/plotly.html
index 59dba788562..302183d5cfc 100644
--- a/openbb_terminal/core/plots/plotly.html
+++ b/openbb_terminal/core/plots/plotly.html
@@ -77,7 +77,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ky(L,I){if(L){if(typeof L=="string")return lm(L,I);var K=Object.prototype.toString.call(L).slice(8,-1);return K==="Object"&&L.constructor&&(K=L.constructor.name),K==="Map"||K==="Set"?Array.from(L):K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K)?lm(L,I):void 0}}function lm(L,I){(I==null||I>L.length)&&(I=L.length);for(var K=0,se=new Array(I);K<I;K++)se[K]=L[K];return se}function Wc(L,I){var K=typeof Symbol<"u"&&L[Symbol.iterator]||L["@@iterator"];if(!K){if(Array.isArray(L)||(K=ky(L))||I&&L&&typeof L.length=="number"){K&&(L=K);var se=0,Pe=function(){};return{s:Pe,n:function(){return se>=L.length?{done:!0}:{done:!1,value:L[se++]}},e:function(_){throw _},f:Pe}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var R,E=!0,e=!1;return{s:function(){K=K.call(L)},n:function(){var _=K.next();return E=_.done,_},e:function(_){e=!0,R=_},f:function(){try{E||K.return==null||K.return()}finally{if(e)throw R}}}}var uf=String.fromCharCode,Sb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Eb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",x0={};function Cb(L,I){if(!x0[L]){x0[L]={};for(var K=0;K<L.length;K++)x0[L][L.charAt(K)]=K}return x0[L][I]}var ll={compressToBase64:function(L){if(L==null)return"";var I=ll._compress(L,6,function(K){return Sb.charAt(K)});switch(I.length%4){default:case 0:return I;case 1:return I+"===";case 2:return I+"==";case 3:return I+"="}},decompressFromBase64:function(L){return L==null?"":L==""?null:ll._decompress(L.length,32,function(I){return Cb(Sb,L.charAt(I))})},compressToUTF16:function(L){return L==null?"":ll._compress(L,15,function(I){return uf(I+32)})+" "},decompressFromUTF16:function(L){return L==null?"":L==""?null:ll._decompress(L.length,16384,function(I){return L.charCodeAt(I)-32})},compressToUint8Array:function(L){for(var I=ll.compress(L),K=new Uint8Array(2*I.length),se=0,Pe=I.length;se<Pe;se++){var R=I.charCodeAt(se);K[2*se]=R>>>8,K[2*se+1]=R%256}return K},decompressFromUint8Array:function(L){if(L==null)return ll.decompress(L);for(var I=new Array(L.length/2),K=0,se=I.length;K<se;K++)I[K]=256*L[2*K]+L[2*K+1];var Pe=[];return I.forEach(function(R){Pe.push(uf(R))}),ll.decompress(Pe.join(""))},compressToEncodedURIComponent:function(L){return L==null?"":ll._compress(L,6,function(I){return Eb.charAt(I)})},decompressFromEncodedURIComponent:function(L){return L==null?"":L==""?null:(L=L.replace(/ /g,"+"),ll._decompress(L.length,32,function(I){return Cb(Eb,L.charAt(I))}))},compress:function(L){return ll._compress(L,16,function(I){return uf(I)})},_compress:function(L,I,K){if(L==null)return"";var se,Pe,R,E="",e="",_="",k=2,i=3,w=2,v=0,h=0,s={},t={},a=[];for(R=0;R<L.length;R+=1)if(E=L.charAt(R),Object.prototype.hasOwnProperty.call(s,E)||(s[E]=i++,t[E]=!0),e=_+E,Object.prototype.hasOwnProperty.call(s,e))_=e;else{if(Object.prototype.hasOwnProperty.call(t,_)){if(_.charCodeAt(0)<256){for(se=0;se<w;se++)v<<=1,h==I-1?(h=0,a.push(K(v)),v=0):h++;for(Pe=_.charCodeAt(0),se=0;se<8;se++)v=v<<1|1&Pe,h==I-1?(h=0,a.push(K(v)),v=0):h++,Pe>>=1}else{for(Pe=1,se=0;se<w;se++)v=v<<1|Pe,h==I-1?(h=0,a.push(K(v)),v=0):h++,Pe=0;for(Pe=_.charCodeAt(0),se=0;se<16;se++)v=v<<1|1&Pe,h==I-1?(h=0,a.push(K(v)),v=0):h++,Pe>>=1}--k==0&&(k=Math.pow(2,w),w++),delete t[_]}else for(Pe=s[_],se=0;se<w;se++)v=v<<1|1&Pe,h==I-1?(h=0,a.push(K(v)),v=0):h++,Pe>>=1;--k==0&&(k=Math.pow(2,w),w++),s[e]=i++,_=String(E)}if(_!==""){if(Object.prototype.hasOwnProperty.call(t,_)){if(_.charCodeAt(0)<256){for(se=0;se<w;se++)v<<=1,h==I-1?(h=0,a.push(K(v)),v=0):h++;for(Pe=_.charCodeAt(0),se=0;se<8;se++)v=v<<1|1&Pe,h==I-1?(h=0,a.push(K(v)),v=0):h++,Pe>>=1}else{for(Pe=1,se=0;se<w;se++)v=v<<1|Pe,h==I-1?(h=0,a.push(K(v)),v=0):h++,Pe=0;for(Pe=_.charCodeAt(0),se=0;se<16;se++)v=v<<1|1&Pe,h==I-1?(h=0,a.push(K(v)),v=0):h++,Pe>>=1}--k==0&&(k=Math.pow(2,w),w++),delete t[_]}else for(Pe=s[_],se=0;se<w;se++)v=v<<1|1&Pe,h==I-1?(h=0,a.push(K(v)),v=0):h++,Pe>>=1;--k==0&&(k=Math.pow(2,w),w++)}for(Pe=2,se=0;se<w;se++)v=v<<1|1&Pe,h==I-1?(h=0,a.push(K(v)),v=0):h++,Pe>>=1;for(;;){if(v<<=1,h==I-1){a.push(K(v));break}h++}return a.join("")},decompress:function(L){return L==null?"":L==""?null:ll._decompress(L.length,32768,function(I){return L.charCodeAt(I)})},_decompress:function(L,I,K){var se,Pe,R,E,e,_,k,i=[],w=[],v={val:K(0),position:I,index:1},h=4,s=4,t=3,a="";for(se=0;se<3;se+=1)i[se]=se;for(R=0,e=Math.pow(2,2),_=1;_!=e;)E=v.val&v.position,v.position>>=1,v.position==0&&(v.position=I,v.val=K(v.index++)),R|=(E>0?1:0)*_,_<<=1;switch(R){case 0:for(R=0,e=Math.pow(2,8),_=1;_!=e;)E=v.val&v.position,v.position>>=1,v.position==0&&(v.position=I,v.val=K(v.index++)),R|=(E>0?1:0)*_,_<<=1;k=uf(R);break;case 1:for(R=0,e=Math.pow(2,16),_=1;_!=e;)E=v.val&v.position,v.position>>=1,v.position==0&&(v.position=I,v.val=K(v.index++)),R|=(E>0?1:0)*_,_<<=1;k=uf(R);break;case 2:return""}for(i[3]=k,Pe=k,w.push(k);;){if(v.index>L)return"";for(R=0,e=Math.pow(2,t),_=1;_!=e;)E=v.val&v.position,v.position>>=1,v.position==0&&(v.position=I,v.val=K(v.index++)),R|=(E>0?1:0)*_,_<<=1;switch(k=R){case 0:for(R=0,e=Math.pow(2,8),_=1;_!=e;)E=v.val&v.position,v.position>>=1,v.position==0&&(v.position=I,v.val=K(v.index++)),R|=(E>0?1:0)*_,_<<=1;i[s++]=uf(R),k=s-1,h--;break;case 1:for(R=0,e=Math.pow(2,16),_=1;_!=e;)E=v.val&v.position,v.position>>=1,v.position==0&&(v.position=I,v.val=K(v.index++)),R|=(E>0?1:0)*_,_<<=1;i[s++]=uf(R),k=s-1,h--;break;case 2:return w.join("")}if(h==0&&(h=Math.pow(2,t),t++),i[k])a=i[k];else{if(k!==s)return null;a=Pe+Pe.charAt(0)}w.push(a),i[s++]=Pe+a.charAt(0),Pe=a,--h==0&&(h=Math.pow(2,t),t++)}}},Cu={DEBUG:!1,LIB_VERSION:"1.57.4"},Dw=Array.prototype,Fw=Object.prototype,F1=Fw.toString,Zk=Fw.hasOwnProperty,ai=typeof window<"u"?window:{},df=ai.navigator||{userAgent:""},ja=ai.document||{},Cl=df.userAgent,Yk=["localhost","127.0.0.1"],Lb=Dw.forEach,Pb=Dw.indexOf,Xk=Array.isArray,Ty={},Ra={log:function(){if(Cu.DEBUG&&!iu(window.console)&&window.console){for(var L=("__rrweb_original__"in window.console.log)?window.console.log.__rrweb_original__:window.console.log,I=arguments.length,K=new Array(I),se=0;se<I;se++)K[se]=arguments[se];try{L.apply(window.console,K)}catch{Ju(K,function(R){L(R)})}}},error:function(){if(Cu.DEBUG&&!iu(window.console)&&window.console){for(var L=arguments.length,I=new Array(L),K=0;K<L;K++)I[K]=arguments[K];var se=["PostHog error:"].concat(I),Pe="__rrweb_original__"in window.console.error?window.console.error.__rrweb_original__:window.console.error;try{Pe.apply(window.console,se)}catch{Ju(se,function(E){Pe(E)})}}},critical:function(){if(!iu(window.console)&&window.console){for(var L=arguments.length,I=new Array(L),K=0;K<L;K++)I[K]=arguments[K];var se=["PostHog error:"].concat(I),Pe="__rrweb_original__"in window.console.error?window.console.error.__rrweb_original__:window.console.error;try{Pe.apply(window.console,se)}catch{Ju(se,function(E){Pe(E)})}}}},um=function(L){return L.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function Ju(L,I,K){if(Array.isArray(L)){if(Lb&&L.forEach===Lb)L.forEach(I,K);else if("length"in L&&L.length===+L.length){for(var se=0,Pe=L.length;se<Pe;se++)if(se in L&&I.call(K,L[se],se)===Ty)return}}}function ji(L,I,K){if(L!=null){if(Array.isArray(L))return Ju(L,I,K);for(var se in L)if(Zk.call(L,se)&&I.call(K,L[se],se)===Ty)return}}var Eo=function(L){for(var I=arguments.length,K=new Array(I>1?I-1:0),se=1;se<I;se++)K[se-1]=arguments[se];return Ju(K,function(Pe){for(var R in Pe)Pe[R]!==void 0&&(L[R]=Pe[R])}),L},Yu=Xk||function(L){return F1.call(L)==="[object Array]"},Bw=function(L){try{return/^\s*\bfunction\b/.test(L)}catch{return!1}};function Yi(L,I){return L.indexOf(I)!==-1}var Vc=function(L){return L===Object(L)&&!Yu(L)},iu=function(L){return L===void 0},Nw=function(L){return F1.call(L)=="[object String]"},$k=function(L){return F1.call(L)=="[object Number]"},Kk=function L(I){return ji(I,function(K,se){(function(Pe){return F1.call(Pe)=="[object Date]"})(K)?I[se]=Jk(K):Vc(K)&&(I[se]=L(K))}),I},Jk=function(L){function I(K){return K<10?"0"+K:K}return L.getUTCFullYear()+"-"+I(L.getUTCMonth()+1)+"-"+I(L.getUTCDate())+"T"+I(L.getUTCHours())+":"+I(L.getUTCMinutes())+":"+I(L.getUTCSeconds())},jw=function(L){return function(){try{for(var I=arguments.length,K=new Array(I),se=0;se<I;se++)K[se]=arguments[se];return L.apply(this,K)}catch(Pe){Ra.critical("Implementation error. Please turn on debug and contact support@posthog.com."),Ra.critical(Pe)}}},cm=function(L){var I={};return ji(L,function(K,se){Nw(K)&&K.length>0&&(I[se]=K)}),I},Qk=["$performance_raw"];function Uw(L,I){return K=L,se=function(R,E){return E&&Qk.indexOf(E)>-1?R:typeof R=="string"&&I!==null?R.slice(0,I):R},Pe=new Set,function R(E,e){return E!==Object(E)?se?se(E,e):E:Pe.has(E)?void 0:(Pe.add(E),Yu(E)?(_=[],Ju(E,function(k){_.push(R(k))})):(_={},ji(E,function(k,i){Pe.has(k)||(_[i]=R(k,i))})),_);var _}(K);var K,se,Pe}function B1(L){var I,K,se,Pe,R,E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",e=0,_=0,k="",i=[];if(!L)return L;L=eT(L);do I=(R=L.charCodeAt(e++)<<16|L.charCodeAt(e++)<<8|L.charCodeAt(e++))>>18&63,K=R>>12&63,se=R>>6&63,Pe=63&R,i[_++]=E.charAt(I)+E.charAt(K)+E.charAt(se)+E.charAt(Pe);while(e<L.length);switch(k=i.join(""),L.length%3){case 1:k=k.slice(0,-2)+"==";break;case 2:k=k.slice(0,-1)+"="}return k}var Qg,eT=function(L){var I,K,se,Pe,R="";for(I=K=0,se=(L=(L+"").replace(/\r\n/g,`
`).replace(/\r/g,`
-`)).length,Pe=0;Pe<se;Pe++){var E=L.charCodeAt(Pe),e=null;E<128?K++:e=E>127&&E<2048?String.fromCharCode(E>>6|192,63&E|128):String.fromCharCode(E>>12|224,E>>6&63|128,63&E|128),e!==null&&(K>I&&(R+=L.substring(I,K)),R+=e,I=K=Pe+1)}return K>I&&(R+=L.substring(I,L.length)),R},Hc=(Qg=function(){for(var L=new Date().valueOf(),I=0;L==new Date().valueOf();)I++;return L.toString(16)+I.toString(16)},function(){var L=typeof window<"u"?(window.screen.height*window.screen.width).toString(16):"0";return Qg()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var I,K,se=Cl,Pe=0,R=[];function E(e,_){var k,i=0;for(k=0;k<_.length;k++)i|=R[k]<<8*k;return e^i}for(I=0;I<se.length;I++)K=se.charCodeAt(I),R.unshift(255&K),R.length>=4&&(Pe=E(Pe,R),R=[]);return R.length>0&&(Pe=E(Pe,R)),Pe.toString(16)}()+"-"+L+"-"+Qg()}),tT=function(L){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler)/i.test(L)},Ob=function(L,I){var K=I.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),se=new RegExp("[\\?&]"+K+"=([^&#]*)").exec(L);if(se===null||se&&typeof se[1]!="string"&&se[1].length)return"";var Pe=se[1];try{Pe=decodeURIComponent(Pe)}catch{Ra.error("Skipping decoding for malformed query param: "+Pe)}return Pe.replace(/\+/g," ")},Ib=function(L,I){var K=L.match(new RegExp(I+"=([^&]*)"));return K?K[1]:null},Up=function(){function L(I){return I&&(I.preventDefault=L.preventDefault,I.stopPropagation=L.stopPropagation),I}return L.preventDefault=function(){this.returnValue=!1},L.stopPropagation=function(){this.cancelBubble=!0},function(I,K,se,Pe,R){if(I)if(I.addEventListener&&!Pe)I.addEventListener(K,se,!!R);else{var E="on"+K,e=I[E];I[E]=function(_,k,i){return function(w){if(w=w||L(window.event)){var v,h=!0;Bw(i)&&(v=i(w));var s=k.call(_,w);return v!==!1&&s!==!1||(h=!1),h}}}(I,se,e)}else Ra.error("No valid element provided to register_event")}}();function Ay(L,I){var K=function(){var se=ja.createElement("script");se.type="text/javascript",se.src=L,se.onload=function(E){return I(void 0,E)},se.onerror=function(E){return I(E)};var Pe,R=ja.querySelectorAll("body > script");R.length>0?(Pe=R[0].parentNode)===null||Pe===void 0||Pe.insertBefore(se,R[0]):ja.body.appendChild(se)};ja.body?K():ja.addEventListener("DOMContentLoaded",K)}var po={campaignParams:function(L){var I=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(L||[]),K={};return ji(I,function(se){var Pe=Ob(ja.URL,se);Pe.length&&(K[se]=Pe)}),K},searchEngine:function(){var L=ja.referrer;return L?L.search("https?://(.*)google.([^/?]*)")===0?"google":L.search("https?://(.*)bing.com")===0?"bing":L.search("https?://(.*)yahoo.com")===0?"yahoo":L.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null},searchInfo:function(){var L=po.searchEngine(),I=L!="yahoo"?"q":"p",K={};if(L!==null){K.$search_engine=L;var se=Ob(ja.referrer,I);se.length&&(K.ph_keyword=se)}return K},browser:function(L,I,K){return I=I||"",K||Yi(L," OPR/")?Yi(L,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(L)?"BlackBerry":Yi(L,"IEMobile")||Yi(L,"WPDesktop")?"Internet Explorer Mobile":Yi(L,"SamsungBrowser/")?"Samsung Internet":Yi(L,"Edge")||Yi(L,"Edg/")?"Microsoft Edge":Yi(L,"FBIOS")?"Facebook Mobile":Yi(L,"Chrome")?"Chrome":Yi(L,"CriOS")?"Chrome iOS":Yi(L,"UCWEB")||Yi(L,"UCBrowser")?"UC Browser":Yi(L,"FxiOS")?"Firefox iOS":Yi(I,"Apple")?Yi(L,"Mobile")?"Mobile Safari":"Safari":Yi(L,"Android")?"Android Mobile":Yi(L,"Konqueror")?"Konqueror":Yi(L,"Firefox")?"Firefox":Yi(L,"MSIE")||Yi(L,"Trident/")?"Internet Explorer":Yi(L,"Gecko")?"Mozilla":""},browserVersion:function(L,I,K){var se={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[po.browser(L,I,K)];if(se===void 0)return null;var Pe=L.match(se);return Pe?parseFloat(Pe[Pe.length-2]):null},browserLanguage:function(){return df.language||df.userLanguage},os:function(L){if(/Windows/i.test(L)){if(/Phone/.test(L)||/WPDesktop/.test(L))return{os_name:"Windows Phone",os_version:""};var I=/Windows NT ([0-9.]+)/i.exec(L);return I&&I[1]?{os_name:"Windows",os_version:I[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(L)){var K=/OS (\d+)_(\d+)_?(\d+)?/i.exec(L);return K&&K[1]?{os_name:"iOS",os_version:[K[1],K[2],K[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(L)){var se=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(L);return se&&se[1]?{os_name:"Android",os_version:[se[1],se[2],se[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(L))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(L)){var Pe=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(L);return Pe&&Pe[1]?{os_name:"Mac OS X",os_version:[Pe[1],Pe[2],Pe[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(L)?{os_name:"Linux",os_version:""}:/CrOS/.test(L)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(L){return/Windows Phone/i.test(L)||/WPDesktop/.test(L)?"Windows Phone":/iPad/.test(L)?"iPad":/iPod/.test(L)?"iPod Touch":/iPhone/.test(L)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(L)?"BlackBerry":/Android/.test(L)&&!/Mobile/.test(L)?"Android Tablet":/Android/.test(L)?"Android":""},deviceType:function(L){var I=this.device(L);return I==="iPad"||I==="Android Tablet"?"Tablet":I?"Mobile":"Desktop"},referrer:function(){return ja.referrer||"$direct"},referringDomain:function(){if(!ja.referrer)return"$direct";var L=ja.createElement("a");return L.href=ja.referrer,L.host},properties:function(){var L=po.os(Cl),I=L.os_name,K=L.os_version;return Eo(cm({$os:I,$os_version:K,$browser:po.browser(Cl,df.vendor,ai.opera),$device:po.device(Cl),$device_type:po.deviceType(Cl)}),{$current_url:ai==null?void 0:ai.location.href,$host:ai==null?void 0:ai.location.host,$pathname:ai==null?void 0:ai.location.pathname,$browser_version:po.browserVersion(Cl,df.vendor,ai.opera),$browser_language:po.browserLanguage(),$screen_height:ai==null?void 0:ai.screen.height,$screen_width:ai==null?void 0:ai.screen.width,$viewport_height:ai==null?void 0:ai.innerHeight,$viewport_width:ai==null?void 0:ai.innerWidth,$lib:"web",$lib_version:Cu.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:(Date.now=Date.now||function(){return+new Date},Date.now()/1e3)})},people_properties:function(){var L=po.os(Cl),I=L.os_name,K=L.os_version;return Eo(cm({$os:I,$os_version:K,$browser:po.browser(Cl,df.vendor,ai.opera)}),{$browser_version:po.browserVersion(Cl,df.vendor,ai.opera)})}};function m1(L){switch(_f(L.className)){case"string":return L.className;case"object":return("baseVal"in L.className?L.className.baseVal:null)||L.getAttribute("class")||"";default:return""}}function y1(L){var I="";return j0(L)&&!Hw(L)&&L.childNodes&&L.childNodes.length&&ji(L.childNodes,function(K){Vw(K)&&K.textContent&&(I+=um(K.textContent).split(/(\s+)/).filter(xh).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),um(I)}function Rb(L){return!!L&&L.nodeType===1}function wf(L,I){return!!L&&!!L.tagName&&L.tagName.toLowerCase()===I.toLowerCase()}function Vw(L){return!!L&&L.nodeType===3}function zb(L){return!!L&&L.nodeType===11}var ev=["a","button","form","input","select","textarea","label"];function j0(L){for(var I=L;I.parentNode&&!wf(I,"body");I=I.parentNode){var K=m1(I).split(" ");if(Yi(K,"ph-sensitive")||Yi(K,"ph-no-capture"))return!1}if(Yi(m1(L).split(" "),"ph-include"))return!0;var se=L.type||"";if(typeof se=="string")switch(se.toLowerCase()){case"hidden":case"password":return!1}var Pe=L.name||L.id||"";return!(typeof Pe=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(Pe.replace(/[^a-zA-Z0-9]/g,"")))}function Hw(L){return!!(wf(L,"input")&&!["button","checkbox","submit","reset"].includes(L.type)||wf(L,"select")||wf(L,"textarea")||L.getAttribute("contenteditable")==="true")}function xh(L){return!(L===null||iu(L)||typeof L=="string"&&(L=um(L),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((L||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(L)))}function Db(L){var I=y1(L);return xh(I="".concat(I," ").concat(qw(L)).trim())?I:""}function qw(L){var I="";return L&&L.childNodes&&L.childNodes.length&&ji(L.childNodes,function(K){var se;if(K&&((se=K.tagName)===null||se===void 0?void 0:se.toLowerCase())==="span")try{var Pe=y1(K);I="".concat(I," ").concat(Pe).trim(),K.childNodes&&K.childNodes.length&&(I="".concat(I," ").concat(qw(K)).trim())}catch(R){console.error(R)}}),I}var nT=function(){function L(I){Xo(this,L),this.clicks=[],this.enabled=I}return $o(L,[{key:"isRageClick",value:function(I,K,se){if(!this.enabled)return!1;var Pe=this.clicks[this.clicks.length-1];if(Pe&&Math.abs(I-Pe.x)+Math.abs(K-Pe.y)<30&&se-Pe.timestamp<1e3){if(this.clicks.push({x:I,y:K,timestamp:se}),this.clicks.length===3)return!0}else this.clicks=[{x:I,y:K,timestamp:se}];return!1}}]),L}(),rT=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Mu={is_supported:function(){return!0},error:function(L){Ra.error("cookieStore error: "+L)},get:function(L){try{for(var I=L+"=",K=document.cookie.split(";"),se=0;se<K.length;se++){for(var Pe=K[se];Pe.charAt(0)==" ";)Pe=Pe.substring(1,Pe.length);if(Pe.indexOf(I)===0)return decodeURIComponent(Pe.substring(I.length,Pe.length))}}catch{}return null},parse:function(L){var I;try{I=JSON.parse(Mu.get(L))||{}}catch{}return I},set:function(L,I,K,se,Pe){try{var R="",E="",e="";if(se){var _=document.location.hostname.match(rT),k=_?_[0]:"";R=k?"; domain=."+k:""}if(K){var i=new Date;i.setTime(i.getTime()+24*K*60*60*1e3),E="; expires="+i.toUTCString()}Pe&&(e="; secure");var w=L+"="+encodeURIComponent(JSON.stringify(I))+E+"; SameSite=Lax; path=/"+R+e;return document.cookie=w,w}catch{return}},remove:function(L,I){try{Mu.set(L,"",-1,I)}catch{return}}},tv=null,$a={is_supported:function(){if(tv!==null)return tv;var L=!0;if(typeof window<"u")try{var I="__mplssupport__";$a.set(I,"xyz"),$a.get(I)!=='"xyz"'&&(L=!1),$a.remove(I)}catch{L=!1}else L=!1;return L||Ra.error("localStorage unsupported; falling back to cookie store"),tv=L,L},error:function(L){Ra.error("localStorage error: "+L)},get:function(L){try{return window.localStorage.getItem(L)}catch(I){$a.error(I)}return null},parse:function(L){try{return JSON.parse($a.get(L))||{}}catch{}return null},set:function(L,I){try{window.localStorage.setItem(L,JSON.stringify(I))}catch(K){$a.error(K)}},remove:function(L){try{window.localStorage.removeItem(L)}catch(I){$a.error(I)}}},fm=hi(hi({},$a),{},{parse:function(L){try{var I={};try{(I=Mu.parse(L)||{}).distinct_id&&Mu.set(L,{distinct_id:I.distinct_id})}catch{}var K=Eo(I,JSON.parse($a.get(L)||"{}"));return $a.set(L,K),K}catch{}return null},set:function(L,I,K,se,Pe){try{$a.set(L,I),I.distinct_id&&Mu.set(L,{distinct_id:I.distinct_id},K,se,Pe)}catch(R){$a.error(R)}},remove:function(L,I){try{window.localStorage.removeItem(L),Mu.remove(L,I)}catch(K){$a.error(K)}}}),b0={},iT={is_supported:function(){return!0},error:function(L){Ra.error("memoryStorage error: "+L)},get:function(L){return b0[L]||null},parse:function(L){return b0[L]||null},set:function(L,I){b0[L]=I},remove:function(L){delete b0[L]}},cf=null,Lo={is_supported:function(){if(cf!==null)return cf;if(cf=!0,typeof window<"u")try{var L="__support__";Lo.set(L,"xyz"),Lo.get(L)!=='"xyz"'&&(cf=!1),Lo.remove(L)}catch{cf=!1}else cf=!1;return cf},error:function(L){Cu.DEBUG&&Ra.error("sessionStorage error: ",L)},get:function(L){try{return window.sessionStorage.getItem(L)}catch(I){Lo.error(I)}return null},parse:function(L){try{return JSON.parse(Lo.get(L))||null}catch{}return null},set:function(L,I){try{window.sessionStorage.setItem(L,JSON.stringify(I))}catch(K){Lo.error(K)}},remove:function(L){try{window.sessionStorage.removeItem(L)}catch(I){Lo.error(I)}}},Gw="$people_distinct_id",U0="__alias",Pp="__timers",Fb="$autocapture_disabled_server_side",hm="$session_recording_enabled_server_side",Bb="$console_log_recording_enabled_server_side",Nb="$session_recording_recorder_version_server_side",pm="$sesid",bh="$enabled_feature_flags",dm="$early_access_features",_h="$stored_person_properties",Ac="$stored_group_properties",gm="$user_state",aT=[Gw,U0,"__cmpns",Pp,hm,pm,bh,gm,dm,Ac,_h],oT=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],jb=function(){function L(I){Xo(this,L);var K="";I.token&&(K=I.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),this.props={},this.campaign_params_saved=!1,this.custom_campaign_params=I.custom_campaign_params||[],I.persistence_name?this.name="ph_"+I.persistence_name:this.name="ph_"+K+"_posthog",oT.indexOf(I.persistence.toLowerCase())===-1&&(Ra.critical("Unknown persistence type "+I.persistence+"; falling back to cookie"),I.persistence="cookie");var se=I.persistence.toLowerCase();se==="localstorage"&&$a.is_supported()?this.storage=$a:se==="localstorage+cookie"&&fm.is_supported()?this.storage=fm:se==="sessionstorage"&&Lo.is_supported()?this.storage=Lo:this.storage=se==="memory"?iT:Mu,this.user_state="anonymous",this.load(),this.update_config(I),this.save()}return $o(L,[{key:"properties",value:function(){var I={};return ji(this.props,function(K,se){if(se===bh&&_f(K)==="object")for(var Pe=Object.keys(K),R=0;R<Pe.length;R++)I["$feature/".concat(Pe[R])]=K[Pe[R]];else e=se,_=!1,((E=aT)===null?_:Pb&&E.indexOf===Pb?E.indexOf(e)!=-1:(ji(E,function(k){if(_||(_=k===e))return Ty}),_))||(I[se]=K);var E,e,_}),I}},{key:"load",value:function(){if(!this.disabled){var I=this.storage.parse(this.name);I&&(this.props=Eo({},I))}}},{key:"save",value:function(){this.disabled||this.storage.set(this.name,this.props,this.expire_days,this.cross_subdomain,this.secure)}},{key:"remove",value:function(){this.storage.remove(this.name,!1),this.storage.remove(this.name,!0)}},{key:"clear",value:function(){this.remove(),this.props={}}},{key:"register_once",value:function(I,K,se){var Pe=this;if(Vc(I)){K===void 0&&(K="None"),this.expire_days=se===void 0?this.default_expiry:se;var R=!1;if(ji(I,function(E,e){Pe.props.hasOwnProperty(e)&&Pe.props[e]!==K||(Pe.props[e]=E,R=!0)}),R)return this.save(),!0}return!1}},{key:"register",value:function(I,K){var se=this;if(Vc(I)){this.expire_days=K===void 0?this.default_expiry:K;var Pe=!1;if(ji(I,function(R,E){I.hasOwnProperty(E)&&se.props[E]!==R&&(se.props[E]=R,Pe=!0)}),Pe)return this.save(),!0}return!1}},{key:"unregister",value:function(I){I in this.props&&(delete this.props[I],this.save())}},{key:"update_campaign_params",value:function(){this.campaign_params_saved||(this.register(po.campaignParams(this.custom_campaign_params)),this.campaign_params_saved=!0)}},{key:"update_search_keyword",value:function(){this.register(po.searchInfo())}},{key:"update_referrer_info",value:function(){this.register({$referrer:this.props.$referrer||po.referrer(),$referring_domain:this.props.$referring_domain||po.referringDomain()})}},{key:"get_referrer_info",value:function(){return cm({$referrer:this.props.$referrer,$referring_domain:this.props.$referring_domain})}},{key:"safe_merge",value:function(I){return ji(this.props,function(K,se){se in I||(I[se]=K)}),I}},{key:"update_config",value:function(I){this.default_expiry=this.expire_days=I.cookie_expiration,this.set_disabled(I.disable_persistence),this.set_cross_subdomain(I.cross_subdomain_cookie),this.set_secure(I.secure_cookie)}},{key:"set_disabled",value:function(I){this.disabled=I,this.disabled?this.remove():this.save()}},{key:"set_cross_subdomain",value:function(I){I!==this.cross_subdomain&&(this.cross_subdomain=I,this.remove(),this.save())}},{key:"get_cross_subdomain",value:function(){return!!this.cross_subdomain}},{key:"set_secure",value:function(I){I!==this.secure&&(this.secure=I,this.remove(),this.save())}},{key:"set_event_timer",value:function(I,K){var se=this.props[Pp]||{};se[I]=K,this.props[Pp]=se,this.save()}},{key:"remove_event_timer",value:function(I){var K=(this.props[Pp]||{})[I];return iu(K)||(delete this.props[Pp][I],this.save()),K}},{key:"get_user_state",value:function(){return this.props[gm]||"anonymous"}},{key:"set_user_state",value:function(I){this.props[gm]=I,this.save()}}]),L}(),Ec={_initializedTokens:[],_isAutocaptureEnabled:!1,_setIsAutocaptureEnabled:function(L){var I=!!L.get_property(Fb),K=!!L.get_config("autocapture");this._isAutocaptureEnabled=K&&!I},_previousElementSibling:function(L){if(L.previousElementSibling)return L.previousElementSibling;var I=L;do I=I.previousSibling;while(I&&!Rb(I));return I},_getAugmentPropertiesFromElement:function(L){if(!j0(L))return{};var I={};return ji(L.attributes,function(K){if(K.name.indexOf("data-ph-capture-attribute")===0){var se=K.name.replace("data-ph-capture-attribute-",""),Pe=K.value;se&&Pe&&xh(Pe)&&(I[se]=Pe)}}),I},_getPropertiesFromElement:function(L,I,K){var se=L.tagName.toLowerCase(),Pe={tag_name:se};ev.indexOf(se)>-1&&!K&&(se.toLowerCase()==="a"||se.toLowerCase()==="button"?Pe.$el_text=Db(L):Pe.$el_text=y1(L));var R=m1(L);R.length>0&&(Pe.classes=R.split(" ").filter(function(k){return k!==""})),ji(L.attributes,function(k){var i;Hw(L)&&["name","id","class"].indexOf(k.name)===-1||!I&&xh(k.value)&&(typeof(i=k.name)!="string"||i.substring(0,10)!=="_ngcontent"&&i.substring(0,7)!=="_nghost")&&(Pe["attr__"+k.name]=k.value)});for(var E=1,e=1,_=L;_=this._previousElementSibling(_);)E++,_.tagName===L.tagName&&e++;return Pe.nth_child=E,Pe.nth_of_type=e,Pe},_getDefaultProperties:function(L){return{$event_type:L,$ce_version:1}},_extractCustomPropertyValue:function(L){var I=[];return ji(document.querySelectorAll(L.css_selector),function(K){var se;["input","select"].indexOf(K.tagName.toLowerCase())>-1?se=K.value:K.textContent&&(se=K.textContent),xh(se)&&I.push(se)}),I.join(", ")},_getCustomProperties:function(L){var I=this,K={};return ji(this._customProperties,function(se){ji(se.event_selectors,function(Pe){ji(document.querySelectorAll(Pe),function(R){Yi(L,R)&&j0(R)&&(K[se.name]=I._extractCustomPropertyValue(se))})})}),K},_getEventTarget:function(L){return L.target===void 0?L.srcElement||null:(I=L.target)!==null&&I!==void 0&&I.shadowRoot?L.composedPath()[0]||null:L.target||null;var I},_captureEvent:function(L,I){var K,se=this,Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$autocapture",R=this._getEventTarget(L);if(Vw(R)&&(R=R.parentNode||null),Pe==="$autocapture"&&L.type==="click"&&L instanceof MouseEvent&&(K=this.rageclicks)!==null&&K!==void 0&&K.isRageClick(L.clientX,L.clientY,new Date().getTime())&&this._captureEvent(L,I,"$rageclick"),R&&function(h,s){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!h||wf(h,"html")||!Rb(h))return!1;if(t!=null&&t.url_allowlist){var a=window.location.href,r=t.url_allowlist;if(r&&!r.some(function(y){return a.match(y)}))return!1}if(t!=null&&t.dom_event_allowlist){var n=t.dom_event_allowlist;if(n&&!n.some(function(y){return s.type===y}))return!1}if(t!=null&&t.element_allowlist){var o=t.element_allowlist;if(o&&!o.some(function(y){return h.tagName.toLowerCase()===y}))return!1}if(t!=null&&t.css_selector_allowlist){var l=t.css_selector_allowlist;if(l&&!l.some(function(y){return h.matches(y)}))return!1}for(var u=!1,d=[h],c=!0,b=h;b.parentNode&&!wf(b,"body");)if(zb(b.parentNode))d.push(b.parentNode.host),b=b.parentNode.host;else{if(!(c=b.parentNode||!1))break;if(ev.indexOf(c.tagName.toLowerCase())>-1)u=!0;else{var g=window.getComputedStyle(c);g&&g.getPropertyValue("cursor")==="pointer"&&(u=!0)}d.push(c),b=c}var f=window.getComputedStyle(h);if(f&&f.getPropertyValue("cursor")==="pointer"&&s.type==="click")return!0;var x=h.tagName.toLowerCase();switch(x){case"html":return!1;case"form":return s.type==="submit";case"input":case"select":case"textarea":return s.type==="change"||s.type==="click";default:return u?s.type==="click":s.type==="click"&&(ev.indexOf(x)>-1||h.getAttribute("contenteditable")==="true")}}(R,L,this.config)){for(var E=[R],e=R;e.parentNode&&!wf(e,"body");)zb(e.parentNode)?(E.push(e.parentNode.host),e=e.parentNode.host):(E.push(e.parentNode),e=e.parentNode);var _,k=[],i={},w=!1;if(ji(E,function(h){var s=j0(h);h.tagName.toLowerCase()==="a"&&(_=h.getAttribute("href"),_=s&&xh(_)&&_),Yi(m1(h).split(" "),"ph-no-capture")&&(w=!0),k.push(se._getPropertiesFromElement(h,I.get_config("mask_all_element_attributes"),I.get_config("mask_all_text")));var t=se._getAugmentPropertiesFromElement(h);Eo(i,t)}),I.get_config("mask_all_text")||(R.tagName.toLowerCase()==="a"||R.tagName.toLowerCase()==="button"?k[0].$el_text=Db(R):k[0].$el_text=y1(R)),_&&(k[0].attr__href=_),w)return!1;var v=Eo(this._getDefaultProperties(L.type),{$elements:k},this._getCustomProperties(E),i);return I.capture(Pe,v),!0}},_navigate:function(L){window.location.href=L},_addDomEventHandlers:function(L){var I=this,K=function(se){se=se||window.event,I._captureEvent(se,L)};Up(document,"submit",K,!1,!0),Up(document,"change",K,!1,!0),Up(document,"click",K,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(L){var I;typeof L.__autocapture!="boolean"&&(this.config=L.__autocapture),(I=this.config)!==null&&I!==void 0&&I.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(K){return new RegExp(K)})),this.rageclicks=new nT(L.get_config("rageclick"))},afterDecideResponse:function(L,I){this._setIsAutocaptureEnabled(I);var K=I.get_config("token");this._initializedTokens.indexOf(K)>-1?Ra.log('autocapture already initialized for token "'+K+'"'):(I.persistence&&I.persistence.register(yi({},Fb,!!L.autocapture_opt_out)),this._initializedTokens.push(K),L&&L.config&&L.config.enable_collect_everything&&this._isAutocaptureEnabled?(L.custom_properties&&(this._customProperties=L.custom_properties),this._addDomEventHandlers(I)):I.__autocapture=!1)},enabledForProject:function(L,I,K){if(!L)return!0;I=iu(I)?10:I,K=iu(K)?10:K;for(var se=0,Pe=0;Pe<L.length;Pe++)se+=L.charCodeAt(Pe);return se%I<K},isBrowserSupported:function(){return Bw(document.querySelectorAll)}};(function(L){for(var I in L)typeof L[I]=="function"&&(L[I]=L[I].bind(L))})(Ec),function(L){for(var I in L)typeof L[I]=="function"&&(L[I]=jw(L[I]))}(Ec);var sT="__ph_opt_in_out_";function lT(L,I){Yw(!0,L,I)}function uT(L,I){Yw(!1,L,I)}function cT(L,I){return Zw(L,I)==="1"}function Ww(L,I){return!!function(K){if(K&&K.respectDnt){var se=K&&K.window||ai,Pe=se.navigator||{},R=!1;return ji([Pe.doNotTrack,Pe.msDoNotTrack,se.doNotTrack],function(E){Yi([!0,1,"1","yes"],E)&&(R=!0)}),R}return!1}(I)||Zw(L,I)==="0"}function fT(L,I){My(I=I||{}).remove(Sy(L,I),!!I.crossSubdomainCookie)}function My(L){return(L=L||{}).persistenceType==="localStorage"?$a:L.persistenceType==="localStorage+cookie"?fm:Mu}function Sy(L,I){return((I=I||{}).persistencePrefix||sT)+L}function Zw(L,I){return My(I).get(Sy(L,I))}function Yw(L,I,K){Nw(I)&&I.length?(My(K=K||{}).set(Sy(I,K),L?1:0,$k(K.cookieExpiration)?K.cookieExpiration:null,K.crossSubdomainCookie,K.secureCookie),K.capture&&L&&K.capture(K.captureEventName||"$opt_in",K.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(L?"optIn":"optOut")+" called with an invalid token")}function Xw(L,I){var K=!1;try{var se=L.get_config("token"),Pe=L.get_config("respect_dnt"),R=L.get_config("opt_out_capturing_persistence_type"),E=L.get_config("opt_out_capturing_cookie_prefix")||void 0,e=L.get_config("window");se&&(K=Ww(se,{respectDnt:Pe,persistenceType:R,persistencePrefix:E,window:e}))}catch(_){I||console.error("Unexpected error when checking capturing opt-out status: "+_)}return K}function Ub(L,I,K){return function(){for(var se=Xw(L,K),Pe=arguments.length,R=new Array(Pe),E=0;E<Pe;E++)R[E]=arguments[E];if(!se)return I.apply(this,R);var e=R[R.length-1];typeof e=="function"&&e(0)}}var nv="$set",hT=function(){function L(I){var K=this;Xo(this,L),this._posthog=I,this.set=Ub(I,function(se,Pe,R){var E=K.set_action(se,Pe);return K._posthog.setPersonPropertiesForFlags(E.$set||{}),Vc(se)&&(R=Pe),K._get_config("save_referrer")&&K._posthog.sessionPersistence.update_referrer_info(),E[nv]=Eo({},po.people_properties(),K._posthog.sessionPersistence.get_referrer_info(),E[nv]),K._send_request(E,R)}),this.set_once=Ub(I,function(se,Pe,R){var E=K.set_once_action(se,Pe);return Vc(se)&&(R=Pe),K._send_request(E,R)})}return $o(L,[{key:"toString",value:function(){return this._posthog.toString()+".people"}},{key:"_send_request",value:function(I,K){I.$token=this._get_config("token"),I.$distinct_id=this._posthog.get_distinct_id();var se=this._posthog.get_property("$device_id"),Pe=this._posthog.get_property("$user_id"),R=this._posthog.get_property("$had_persisted_distinct_id");se&&(I.$device_id=se),Pe&&(I.$user_id=Pe),R&&(I.$had_persisted_distinct_id=R);var E=Kk(I),e=Uw(E,this._get_config("properties_string_max_length")),_=B1(JSON.stringify(E));return this._posthog._send_request(this._get_config("api_host")+"/engage/",{data:_},{},this._posthog._prepare_callback(K,e)),e}},{key:"_get_config",value:function(I){return this._posthog.get_config(I)}},{key:"_is_reserved_property",value:function(I){return I==="$distinct_id"||I==="$token"||I==="$device_id"||I==="$user_id"||I==="$had_persisted_distinct_id"}},{key:"set_action",value:function(I,K){return this.apiActionParser(nv,I,K)}},{key:"set_once_action",value:function(I,K){return this.apiActionParser("$set_once",I,K)}},{key:"apiActionParser",value:function(I,K,se){var Pe=this,R={},E={};return Vc(K)?ji(K,function(e,_){Pe._is_reserved_property(_)||(E[_]=e)}):E[K]=se,R[I]=E,R}}]),L}(),rv="$active_feature_flags",_0="$override_feature_flags",Vb="$feature_flag_payloads",Hb=function(L){var I,K={},se=Wc(function(e){for(var _=Object.keys(e),k=_.length,i=new Array(k);k--;)i[k]=[_[k],e[_[k]]];return i}(L||{}));try{for(se.s();!(I=se.n()).done;){var Pe=D1(I.value,2),R=Pe[0],E=Pe[1];E&&(K[R]=E)}}catch(e){se.e(e)}finally{se.f()}return K},pT=function(){function L(I){Xo(this,L),this.instance=I,this._override_warning=!1,this.flagCallReported={},this.featureFlagEventHandlers=[],this.reloadFeatureFlagsQueued=!1,this.reloadFeatureFlagsInAction=!1}return $o(L,[{key:"getFlags",value:function(){return Object.keys(this.getFlagVariants())}},{key:"getFlagVariants",value:function(){var I=this.instance.get_property(bh),K=this.instance.get_property(_0);if(!K)return I||{};for(var se=Eo({},I),Pe=Object.keys(K),R=0;R<Pe.length;R++)K[Pe[R]]===!1?delete se[Pe[R]]:se[Pe[R]]=K[Pe[R]];return this._override_warning||(console.warn("[PostHog] Overriding feature flags!",{enabledFlags:I,overriddenFlags:K,finalFlags:se}),this._override_warning=!0),se}},{key:"getFlagPayloads",value:function(){return this.instance.get_property(Vb)||{}}},{key:"reloadFeatureFlags",value:function(){this.reloadFeatureFlagsQueued||(this.reloadFeatureFlagsQueued=!0,this._startReloadTimer())}},{key:"setAnonymousDistinctId",value:function(I){this.$anon_distinct_id=I}},{key:"setReloadingPaused",value:function(I){this.reloadFeatureFlagsInAction=I}},{key:"resetRequestQueue",value:function(){this.reloadFeatureFlagsQueued=!1}},{key:"_startReloadTimer",value:function(){var I=this;this.reloadFeatureFlagsQueued&&!this.reloadFeatureFlagsInAction&&setTimeout(function(){!I.reloadFeatureFlagsInAction&&I.reloadFeatureFlagsQueued&&(I.reloadFeatureFlagsQueued=!1,I._reloadFeatureFlagsRequest())},5)}},{key:"_reloadFeatureFlagsRequest",value:function(){var I=this;this.setReloadingPaused(!0);var K=this.instance.get_config("token"),se=this.instance.get_property(_h),Pe=this.instance.get_property(Ac),R=B1(JSON.stringify({token:K,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:se,group_properties:Pe}));this.instance._send_request(this.instance.get_config("api_host")+"/decide/?v=3",{data:R},{method:"POST"},this.instance._prepare_callback(function(E){I.$anon_distinct_id=void 0,I.receivedFeatureFlags(E),I.setReloadingPaused(!1),I._startReloadTimer()}))}},{key:"getFeatureFlag",value:function(I){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.getFlags())return console.warn('getFeatureFlag for key "'+I+`" failed. Feature flags didn't load in time.`),!1;var se=this.getFlagVariants()[I];return!K.send_event&&"send_event"in K||this.flagCallReported[I]||(this.flagCallReported[I]=!0,this.instance.capture("$feature_flag_called",{$feature_flag:I,$feature_flag_response:se})),se}},{key:"getFeatureFlagPayload",value:function(I){return this.getFlagPayloads()[I]}},{key:"isFeatureEnabled",value:function(I){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.getFlags()?!!this.getFeatureFlag(I,K):(console.warn('isFeatureEnabled for key "'+I+`" failed. Feature flags didn't load in time.`),!1)}},{key:"addFeatureFlagsHandler",value:function(I){this.featureFlagEventHandlers.push(I)}},{key:"removeFeatureFlagsHandler",value:function(I){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(K){return K!==I})}},{key:"receivedFeatureFlags",value:function(I){this.instance.decideEndpointWasHit=!0;var K=this.getFlagVariants(),se=this.getFlagPayloads();(function(Pe,R){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},_=Pe.featureFlags,k=Pe.featureFlagPayloads;if(_)if(Array.isArray(_)){var i,w={};if(_)for(var v=0;v<_.length;v++)w[_[v]]=!0;R&&R.register((yi(i={},rv,_),yi(i,bh,w),i))}else{var h,s=_,t=k;Pe.errorsWhileComputingFlags&&(s=hi(hi({},E),s),t=hi(hi({},e),t)),R&&R.register((yi(h={},rv,Object.keys(Hb(s))),yi(h,bh,s||{}),yi(h,Vb,t||{}),h))}})(I,this.instance.persistence,K,se),this._fireFeatureFlagsCallbacks()}},{key:"override",value:function(I){if(this._override_warning=!1,I===!1)this.instance.persistence.unregister(_0);else if(Array.isArray(I)){for(var K={},se=0;se<I.length;se++)K[I[se]]=!0;this.instance.persistence.register(yi({},_0,K))}else this.instance.persistence.register(yi({},_0,I))}},{key:"onFeatureFlags",value:function(I){var K=this;if(this.addFeatureFlagsHandler(I),this.instance.decideEndpointWasHit){var se=this._prepareFeatureFlagsForCallbacks(),Pe=se.flags,R=se.flagVariants;I(Pe,R)}return function(){return K.removeFeatureFlagsHandler(I)}}},{key:"updateEarlyAccessFeatureEnrollment",value:function(I,K){var se,Pe=yi({},"$feature_enrollment/".concat(I),K);this.instance.capture("$feature_enrollment_update",{$feature_flag:I,$feature_enrollment:K,$set:Pe}),this.setPersonPropertiesForFlags(Pe,!1);var R=hi(hi({},this.getFlagVariants()),{},yi({},I,K));this.instance.persistence.register((yi(se={},rv,Object.keys(Hb(R))),yi(se,bh,R),se)),this._fireFeatureFlagsCallbacks()}},{key:"getEarlyAccessFeatures",value:function(I){var K=this,se=arguments.length>1&&arguments[1]!==void 0&&arguments[1],Pe=this.instance.get_property(dm);if(Pe&&!se)return I(Pe);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(R){var E=R.earlyAccessFeatures;return K.instance.persistence.register(yi({},dm,E)),I(E)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var I=this.getFlags(),K=this.getFlagVariants();return{flags:I.filter(function(se){return K[se]}),flagVariants:Object.keys(K).filter(function(se){return K[se]}).reduce(function(se,Pe){return se[Pe]=K[Pe],se},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var I=this._prepareFeatureFlagsForCallbacks(),K=I.flags,se=I.flagVariants;this.featureFlagEventHandlers.forEach(function(Pe){return Pe(K,se)})}},{key:"setPersonPropertiesForFlags",value:function(I){var K=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],se=this.instance.get_property(_h)||{};this.instance.register(yi({},_h,hi(hi({},se),I))),K&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(_h)}},{key:"setGroupPropertiesForFlags",value:function(I){var K=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],se=this.instance.get_property(Ac)||{};Object.keys(se).length!==0&&Object.keys(se).forEach(function(Pe){se[Pe]=hi(hi({},se[Pe]),I[Pe]),delete I[Pe]}),this.instance.register(yi({},Ac,hi(hi({},se),I))),K&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(I){if(I){var K=this.instance.get_property(Ac)||{};this.instance.register(yi({},Ac,hi(hi({},K),{},yi({},I,{}))))}else this.instance.unregister(Ac)}}]),L}(),dT="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg==",qb=2,gT=4,vT=6,mT="rrweb/console@1",ku,yT="/e/";(function(L){L[L.Mutation=0]="Mutation",L[L.MouseMove=1]="MouseMove",L[L.MouseInteraction=2]="MouseInteraction",L[L.Scroll=3]="Scroll",L[L.ViewportResize=4]="ViewportResize",L[L.Input=5]="Input",L[L.TouchMove=6]="TouchMove",L[L.MediaInteraction=7]="MediaInteraction",L[L.StyleSheetRule=8]="StyleSheetRule",L[L.CanvasMutation=9]="CanvasMutation",L[L.Font=10]="Font",L[L.Log=11]="Log",L[L.Drag=12]="Drag",L[L.StyleDeclaration=13]="StyleDeclaration"})(ku||(ku={}));var xT=[ku.MouseMove,ku.MouseInteraction,ku.Scroll,ku.ViewportResize,ku.Input,ku.TouchMove,ku.MediaInteraction,ku.Drag],bT=function(){function L(I){Xo(this,L),yi(this,"lastActivityTimestamp",Date.now()),yi(this,"isIdle",!1),this.instance=I,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint=yT,this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1}return $o(L,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var I=!!this.instance.get_property(hm),K=!this.instance.get_config("disable_session_recording");return I&&K}},{key:"isConsoleLogCaptureEnabled",value:function(){var I=!!this.instance.get_property(Bb),K=this.instance.get_config(