<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">const uf=!0;const lo="/_app/immutable/assets/Axis.Cpqj-I48.svg",uo="/_app/immutable/assets/hdfc.p7TSbqHj.svg",fo="/_app/immutable/assets/amex.CCApGuut.svg",po="/_app/immutable/assets/au.D61918OC.svg",ho="/_app/immutable/assets/icici.CTHTPGO6.svg",go="/_app/immutable/assets/sbi.Bd5EzT0P.svg",mo="/_app/immutable/assets/idfc.CiRYKQjb.svg",_o="/_app/immutable/assets/indusInd.CxH5fits.svg",yo="/_app/immutable/assets/dining.BHrf1ti0.svg",vo="/_app/immutable/assets/fuel.BjCTmShF.svg",bo="/_app/immutable/assets/lifestyle.CJC2h1A0.svg",wo="/_app/immutable/assets/lifetimeFree.yXetq9o3.svg",So="/_app/immutable/assets/movies.C0uK-oy7.svg",ko="/_app/immutable/assets/rewards.CBWsZdMT.svg",Io="/_app/immutable/assets/travel.CKYzmPyp.svg",Di={1:"Ebay",2:"Flipkart",129:"Snapdeal",421:"Shopclues",1830:"Nykaa",1973:"Clovia",63:"Amazon",13:"Tradus",111:"Myntra",99:"Infibeam",50:"Jabong",71:"Croma",35:"Yebhi",4:"Homeshop18",22:"Koovs",426:"Bluestone",31:"Bookadda",37:"Jewelskart",7:"Landmarkshops",57:"Lenskart",62:"Indiarush",67:"Watchkart",1046:"Ibhejo",91:"Floralis",98:"Fashionara",291:"Refiff",333:"Pepperfry",401:"Indiatimes",411:"Grabmore",422:"Shopnineteen",423:"Cbazaar",425:"Zovi",428:"Donebynone",429:"Zivame",431:"Trendin",432:"Strapsandstrings",433:"Prettysecrets",435:"Mirraw",439:"Indiaemporium",441:"Naaptol",469:"Cilory",471:"Crossword",900:"Purplle",901:"Freecultr",902:"Chumbak",921:"Healthkart",1819:"Fashionandyou",929:"Babyoye",1005:"Zoomin",1037:"Books.rediff",1429:"Paytmmall",1331:"Paytm",1556:"AmericanSwan",1578:"Basiclife",1580:"Uread",1585:"Acadzone",1586:"GoodLife",11:"fnp",430:"N-gal",1828:"Askmebazaar",1972:"Mebelkart",424:"Limeroad",2190:"Tatacliq",2191:"Ajio",6069:"Plumgoodness",2364:"Banggood",4423:"Veromoda",2097:"Adidas",2335:"Decathlon",6031:"2gud",2372:"Myvishal",6068:"Nykaafashion",2362:"Shein",2237:"1mg",2238:"Netmeds",1850:"Abof",2192:"Nnow",451:"Sapnaonline",45:"Shoppersstop",2267:"Mrvoonik",2266:"Voonik",6607:"RelianceDigital",6660:"JioMart",7376:"Meesho"};Eo(Di);function Eo(e){const t={};for(const n in e){const r=e[n];t[r.toString()]=Number(n)}return t}function w(e,t){return!!e.includes(t)}function Co(e){return!isNaN(Number(e))}function v(e,t,n){let r=e;if(w(e,t)){const i=e.split(t);n&lt;0&amp;&amp;(n=i.length+n),r=i[n].trim()}return r}function k(e,t){let n=e;const r=t.length;for(let i=0;i&lt;r;i++)n=v(n,t[i].find,t[i].val);return n}function pt(e,t){let n=e;if(w(n,t)){let r=v(n,t,-1);r===""&amp;&amp;(r=v(n,t,-2)),n=r}return n}const ff=e=&gt;Di[e]||"";function pf(e,t){let n="";switch(e){case 6660:{let r=t;if(r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,"/p/")){const s=r.split("/p/"),o=s.length;r=s[o-1].trim()}else r="";n=r;break}case 6607:{let r=t;if(r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,"/p/")){const s=r.split("/p/"),o=s.length;r=s[o-1].trim(),w(r,"/")&amp;&amp;(r=r.split("/")[0].trim())}else r="";n=r;break}case 423:{let r=t;if(r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0},{find:".htm",val:0}]),w(r,"-p-")){const s=r.split("-p-"),o=s.length;r=s[o-1],r=r.trim(),r=v(r,"/",0)}n=r;break}case 1585:{let r=t;r=v(r,"#",0),r=v(r,"?",0),r=v(r,".com/",1),n=r;break}case 63:{let r=t,i="";if(w(r,"?ASIN=")?r=r.split("?ASIN=")[1].trim():w(r,"&amp;ASIN=")?r=r.split("&amp;ASIN=")[1].trim():w(r,"/dp/")?r=r.split("/dp/")[1].trim():w(r,"/product/")?r=r.split("/product")[1].trim():w(r,"/offer-listing/")?r=r.split("/offer-listing/")[1].trim():w(r,"/aw/d/")&amp;&amp;(r=r.split("/aw/d")[1].trim()),r=v(r,"#",0),r=v(r,"?",0),r=v(r,"/ref=",0),w(r,"/")){const s=r.split("/"),o=s.length;i=s[o-1].trim(),i==""&amp;&amp;(i=s[o-2].trim()),r=i}n=r;break}case 1556:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),n=r;break}case 929:{let r=t;r=v(r,"#",0),r=v(r,"?",0),r=v(r,"/p_",1),n=r;break}case 1578:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),n=r;break}case 426:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),r=v(r,".htm",0),r=v(r,"~",1),n=r;break}case 469:{let r=t,i="";if(r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,"/")){const o=r.split("/"),a=o.length;i=o[a-1].trim(),i==""&amp;&amp;(i=o[a-2].trim()),r=i}r=v(r,"-",0),n=r;break}case 71:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),r=v(r,"/p/",1),w(r,"/")&amp;&amp;(r=r.split("/")[0].trim()),n=r;break}case 471:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),r=v(r,".htm",0),r=v(r,"/p-",1),n=r,n=`${n}.html`;break}case 2190:{let r=t;if(r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,"/p-")){const s=r.split("/p-"),o=s.length;r=s[o-1].trim(),w(r,"/")&amp;&amp;(r=r.split("/")[0].trim())}else r="";n=r;break}case 2191:{let r=t;if(r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,"/p/")){const s=r.split("/p/"),o=s.length;r=s[o-1].trim(),w(r,"/")&amp;&amp;(r=r.split("/")[0].trim())}else r="";n=r;break}case 2097:{let r=t;if(r=k(r,[{find:"?",val:0},{find:"&amp;",val:0}]),w(r,"product/")){const s=r.split("product/"),o=s.length;r=s[o-1].trim(),w(r,"/")&amp;&amp;(r=r.split("/")[0].trim()),w(r,"#")&amp;&amp;(r=r.split("#")[0].trim())}else r="";n=r;break}case 2335:{let r=t;if(r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,"/p/")){const s=r.split("/p/"),o=s.length;r=s[o-1].trim(),w(r,"_")&amp;&amp;(r=r.split("_")[0].trim()),w(r,"-")&amp;&amp;(r=r.split("-")[0].trim()),w(r,"/")&amp;&amp;(r=r.split("/")[0].trim()),w(r,".")&amp;&amp;(r=r.split(".")[0].trim())}else r="";n=r;break}case 6031:{let r=t;r=v(r,"#",0),w(r,"?pid=")?r=r.split("?pid=")[1].trim():w(r,"&amp;pid=")?r=r.split("&amp;pid=")[1].trim():w(r,"pid=")&amp;&amp;(r=r.split("pid=")[1].trim()),r=v(r,"?",0),r=v(r,"/",0),r=v(r,"&amp;",0),n=r;break}case 2372:{let r=t;if(r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r," myvishal.com/")){const s=r.split(" myvishal.com/"),o=s.length;r=s[o-1].trim(),r=r.replace(/\/+$/,"")}else r="";n=r;break}case 4423:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]);const s=r.split("/"),o=s.length;s[o-1]!=""?r=s[o-1].trim():r=s[o-2].trim(),n=r;break}case 6069:{let r=t;if(r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,"/products/")){const s=r.split("/products/"),o=s.length;r=s[o-1].trim(),w(r,"/")&amp;&amp;(r=r.split("/")[0].trim())}else r="";n=r;break}case 2364:{let r=t;if(r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,"-p-")){const s=r.split("-p-"),o=s.length;r=s[o-1].trim(),w(r,"-")&amp;&amp;(r=r.split("-")[0].trim()),w(r,".")&amp;&amp;(r=r.split(".")[0].trim())}else r="";n=r;break}case 6068:{let r=t;if(r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,"/p/")){const s=r.split("/p/"),o=s.length;r=s[o-1].trim(),w(r,"/")&amp;&amp;(r=r.split("/")[0].trim())}else r="";n=r;break}case 2362:{let r=t;if(r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,"-p-")){const s=r.split("-p-"),o=s.length;r=s[o-1].trim(),w(r,"-")&amp;&amp;(r=r.split("-")[0].trim()),w(r,".")&amp;&amp;(r=r.split(".")[0].trim())}else r="";n=r;break}case 2192:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,".com/")?(r=r.split(".com/")[1].trim(),w(r,"/")&amp;&amp;(r=r.split("/")[0].trim())):r="",n=r.replace(/^\/+/,"");break}case 451:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,".com/")?r=r.split(".com/")[1].trim():r="",n=r;break}case 902:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]);const s=r.split("/"),o=s.length;s[o-1]!=""?r=s[o-1].trim():r=s[o-2].trim(),n=r;break}case 1:{let r=t,i="";if(r=v(r,"itemId=",1),r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,"/")){const o=r.split("/"),a=o.length;i=o[a-1].trim(),i==""&amp;&amp;(i=o[a-2].trim()),r=i}n=r;break}case 1e3:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:".htm",val:0},{find:"-",val:-1}]),n=r;break}case 2:{let r=t;r=v(r,"#",0),w(r,"?pid=")?(r=r.split("?pid=")[1].trim(),r=v(r,"?",0),r=v(r,"/",0),r=v(r,"&amp;",0),n=r):w(r,"&amp;pid=")&amp;&amp;(r=r.split("&amp;pid=")[1].trim(),r=v(r,"?",0),r=v(r,"/",0),r=v(r,"&amp;",0),n=r);break}case 98:{let r=t,i="";if(r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,"/")){const o=r.split("/"),a=o.length;i=o[a-1].trim(),i==""&amp;&amp;(i=o[a-2].trim()),r=i}n=r;break}case 901:{let r=t;r=v(r,"#",0),r=v(r,"&amp;",0),n=r;break}case 91:{let r=t;r=v(r,"#",0),r=v(r,"?",0),r=v(r,".htm",0),r=v(r,"-p-",1),n=r;break}case 11:{let r=t;if(r=v(r,"#",0),r=v(r,"?",0),r=v(r,".htm",0),w(r,"-")){const i=r.split("-"),s=i.length;r=i[s-2].trim()}n=r;break}case 411:{let r=t;r=v(r,"#",0),r=v(r,"?",0),w(r,"/products/")&amp;&amp;(r=r.split("/products/")[1].trim(),w(r,"/")&amp;&amp;(r=r.split("/")[0].trim())),n=r;break}case 4:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),r=v(r,"/product:",1),r=v(r,"/",0),n=r;break}case 921:{const r=t,i=r;let s="",o="",a="";i!=""&amp;&amp;(w(i,"/sv/")||w(i,"/pk/"))?(w(i,"healthkart.com/")?(s=i.split("healthkart.com/")[1].trim(),s=v(s,"/",0),s=v(s,"?",0),s=v(s,"&amp;",0),s=v(s,"#",0)):s="",w(i,"SP-")?(o=i.split("SP-")[1].trim(),o=v(o,"?",0),o=v(o,"&amp;",0),o=v(o,"#",0),o=v(o,"/",0)):o="",w(i,"VRNT-")?(a=i.split("VRNT-")[1].trim(),a=v(a,"/",0),a=v(a,"?",0),a=v(a,"&amp;",0),a=v(a,"#",0),a="VRNT-"+a.trim()):w(i,"PA-")?(a=i.split("PA-")[1].trim(),a=v(a,"/",0),a=v(a,"?",0),a=v(a,"&amp;",0),a=v(a,"#",0),a="PA-"+a.trim()):a="",s=="loyality"&amp;&amp;w(a,"VRNT-")?s="sv":s=="loyality"&amp;&amp;w(a,"PA-")&amp;&amp;(s="pk"),s!=""&amp;&amp;(o!=""||a!="")&amp;&amp;(n=o+"~"+a+"~"+s)):n=r;break}case 439:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),n=r;break}case 62:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),n=r;break}case 401:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),r=v(r,"/p_",1),n=r;break}case 99:{let r=t;n="";let i="",s="";if(w(r,".htm")){if(i=r.split(".htm")[0].trim(),i!=""&amp;&amp;w(i,"/")){const a=i.split("/"),c=a.length;i=a[c-1].trim()}i!=""&amp;&amp;(i=v(i,"&amp;",0)),i!=""&amp;&amp;(i=v(i,"?",0)),i!=""&amp;&amp;(i=v(i,"#",0)),i=i.trim()}if(w(r,"#variantId=")){if(s=r.split("#variantId=")[1].trim(),s!=""&amp;&amp;w(s,"/")){const a=s.split("/"),c=a.length;s=a[c-1].trim()}s!=""&amp;&amp;(s=v(s,"&amp;",0)),s!=""&amp;&amp;(s=v(s,"?",0)),s!=""&amp;&amp;(s=v(s,"#",0)),s=s.trim()}i!=""&amp;&amp;s!=""&amp;&amp;(r=i+"~"+s),n=r;break}case 50:{let r=t;if(r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,".htm")&amp;&amp;(r=r.split(".htm")[0].trim(),w(r,"-"))){const o=r.split("-"),a=o.length;r=o[a-1].trim()}n=r;break}case 2266:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),r=v(r,".voonik.com/recommendations/",1),n=r;break}case 2267:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),r=v(r,".mrvoonik.com/recommendations/",1),n=r;break}case 2237:{let r=t;if(r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,"-")){const s=r.split("-"),o=s.length;r=s[o-1].trim(),w(r,"/")&amp;&amp;(r=r.split("/")[0].trim())}r=r.replace(/otc/g,""),n=r;break}case 2238:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),r=v(r,"netmeds.com/",-1),n=r;break}case 22:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),n=r;break}case 7:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,"/p/")?(r=v(r,"/p",-1),r=v(r,"/",0)):r="",n=r;break}case 1850:{let r=t;r=v(r,"/product",1),r=v(r,".htm",0),r=v(r,"-",-1),r=v(r,"#",0),r=v(r,"?",0),r=v(r,"com/",1),r=v(r,"/",0),r!=r.toUpperCase()&amp;&amp;(r=""),n=r;break}case 57:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,".com/")&amp;&amp;(r=v(r,".com/",1),r=v(r,"/",0)),n=r;break}case 435:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),n=r;break}case 430:{let r=t;r=v(r,"#",0),r=v(r,"?",0),n=r;break}case 1828:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,"-p")&amp;&amp;(r=v(r,"-p",-1),r=v(r,"/",0)),n=r;break}case 1973:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,"/product/")&amp;&amp;(r=v(r,"/product/",1),r=v(r,"/",0)),n=r;break}case 1819:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,"/products/")&amp;&amp;(r=v(r,"/products/",1),r=v(r,"/",0)),n=r;break}case 1429:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,".com/")&amp;&amp;(r=v(r,".com/",1),r=v(r,"/",0)),n=r;break}case 1331:{let r=t,i=t;r=v(r,"paytmmall.com/",1),r=v(r,"pdp",0),r+="pdp?",w(i,"product_id=")?(i=v(i,"product_id=",1),i=v(i,"&amp;",0),i=v(i,"#",0),i=v(i,"?",0),n=r+"product_id="+i):n=r;break}case 111:{let r=t;r=k(r,[{find:"?",val:0},{find:"#",val:0}]),w(r,"myntra/products")?w(r,"-hatke")&amp;&amp;(r=v(r,"-hatke",1),r=v(r,"/",1)):w(r,"/buy")?(r=v(r,"/buy",-2),r=v(r,"/",-1)):w(r,"myntra.com/")&amp;&amp;(r=v(r,"myntra.com/",1),r=v(r,"#",0),r=v(r,"?",0),Co(r)&amp;&amp;r!="0"||(r=t)),n=r;break}case 441:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),n=r;break}case 333:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),n=r;break}case 433:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),r=pt(r,"/"),n=r;break}case 900:{let r=t;const i=/\/p\/(\d+)/,s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 1037:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),pt(r,"/"),n=r;break}case 291:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),pt(r,"/"),n=r;break}case 432:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),n=r;break}case 422:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),n=r;break}case 421:{let r=t;if(r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,"m.shopclues")){const s=r.split("m.shopclues");r=s[0];for(let o=1;o&lt;s.length;o++)r+="www.shopclues"+s[o]}n=r;break}case 129:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0},{find:";",val:0}]),r=pt(r,"/"),n=r;break}case 45:{let r=t;r=k(r,[{find:"#",val:0},{find:"/p-",val:1},{find:"/",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),n=r;break}case 431:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0},{find:".htm",val:0},{find:"-",val:-1}]),n=r;break}case 1580:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0}]),r=pt(r,"/"),(r.length!=13||r=="")&amp;&amp;(r=t),n=r;break}case 429:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),n=r;break}case 424:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),n=r;break}case 1972:{let r=t;r=k(r,[{find:"#",val:0},{find:".htm",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,"/")&amp;&amp;(v(r,"/",-1),v(r,"-",0)),n=r;break}case 1827:{let r=t,i=t;w(r,"?sku=")?(r=v(r,"?sku=",1),r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),i=t,w(i,"/products/")&amp;&amp;(i=v(i,"/product",1),i=k(i,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),n=i+"~"+r)):w(i,"/products/")?(i=v(i,"/product",1),i=k(i,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),r="",n=i+"~"+r):n=t;break}case 425:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),n=r;break}case 1830:{let r=t;const i=/\/p\/(\d+)/,s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 31:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:".com/",val:1}]),n=r;break}case 7376:{let r=t;if(r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),w(r,"/p/")){const s=r.split("/p/"),o=s.length;r=s[o-1].trim(),w(r,"/")&amp;&amp;(r=r.split("/")[0].trim())}else r="";n=r;break}case 2265:{let r=t,i=new RegExp("\\/(\\d+)\\/product-detail$"),s=r.match(i);s&amp;&amp;s.length&gt;1?r=s[1]:(i=new RegExp("\\/(\\d+)\\/product-detail\\?"),s=r.match(i),s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1])),n=r;break}case 8957:{let r=t;const i=new RegExp("\\/p\\/(\\d+)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 6645:{let r=t;const i=new RegExp("(?:\\/[^/?]+){2}\\/([^/?]+)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 6326:{let r=t,i=new RegExp("dp%2F([a-zA-Z0-9]+)"),s=r.match(i);s&amp;&amp;s.length&gt;1?r=s[1]:(i=new RegExp("dp\\/([a-zA-Z0-9]+)"),s=r.match(i),s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1])),n=r;break}case 2376:{let r=t;const i=new RegExp("\\/item\\/(\\d+)\\.html"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 6304:{let r=t,i=new RegExp("\\/(\\d+)\\?"),s=r.match(i);s&amp;&amp;s.length&gt;1?r=s[1]:(i=new RegExp("\\/(\\d+)$"),s=r.match(i),s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1])),n=r;break}case 7161:{let r=t;const i=new RegExp("\\/productpage\\.(\\d+)\\.html"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 8975:{let r=t,i=new RegExp("\\/c\\/(\\d+)(?=\\?|$)"),s=r.match(i);s&amp;&amp;s.length&gt;1?r=s[1]:(i=new RegExp("\\/p\\/([^/?]+)(?=\\?|$)"),s=r.match(i),s&amp;&amp;s.length&gt;1?r=s[1]:(i=new RegExp("\\/(\\d+)(?=\\/?(?:\\?|$))"),s=r.match(i),s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]))),n=r;break}case 8974:{let r=t;const i=new RegExp("\\/p\\/(\\d+)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 8973:{let r=t;const i=new RegExp("\\/([^\\/\\?#]+)(?=[\\?#]|$)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 6305:{let r=t;const i=new RegExp("\\/(\\d+)(?=[/?&amp;]|$)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 6306:{let r=t;const i=new RegExp("\\/A-(\\d+)(?=[\\?#]|$)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 6514:{let r=t;const i=new RegExp("\\/(\\d+)(?=[\\?#]|$)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 8958:{let r=t;const i=new RegExp("\\/(\\d+)(?=[\\?#]|$)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 8960:{let r=t;const i=new RegExp("\\/(m\\d+)\\/"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 8961:{let r=t;const i=new RegExp("\\/([^/\\?#]+)(?=[\\?#]|$)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 1321:{let r=t;const i=new RegExp("\\/itm\\/(.*?)\\?"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 8959:{let r=t;const i=new RegExp("product\\.(\\d+)\\.html"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 6307:{let r=t,i=new RegExp("\\/([^\\/?]+)(?:\\.html|\\?piid=|$)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1],i=new RegExp("[?&amp;]piid=(\\d+)"),s=t.match(i),s&amp;&amp;s.length&gt;1&amp;&amp;(r=r+"~"+s[1])),n=r;break}case 7322:{let r=t;const i=new RegExp("\\/in\\/(.*?)\\/buy\\/"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 4544:{let r=t;const i=new RegExp("\\/in\\/((?!buy\\/)[^/]+\\/?)+"),s=r.match(i);s&amp;&amp;s.length&gt;0&amp;&amp;(r=s[0]),n=r;break}case 7209:{let r=t;const i=new RegExp("-([a-zA-Z0-9]+)(?!.*-)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 8962:{let r=t;const i=new RegExp("-([a-zA-Z0-9]+)(?!.*-)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 8964:{let r=t;const i=new RegExp("-(i\\d+-s\\d+)\\.html"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 8963:{let r=t,i=new RegExp("dp%2F([a-zA-Z0-9]+)"),s=r.match(i);s&amp;&amp;s.length&gt;1?r=s[1]:(i=new RegExp("dp\\/([a-zA-Z0-9]+)"),s=r.match(i),s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1])),n=r;break}case 8970:{let r=t;const i=new RegExp("\\/([A-Z0-9]+)\\.html(?=[\\?#]|$)","i"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 8965:{let r=t,i=new RegExp("dp%2F([a-zA-Z0-9]+)"),s=r.match(i);s&amp;&amp;s.length&gt;1?r=s[1]:(i=new RegExp("dp\\/([a-zA-Z0-9]+)"),s=r.match(i),s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1])),n=r;break}case 8967:{let r=t;const i=new RegExp("([a-zA-Z0-9]+)\\.p"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 6310:{let r=t;const i=new RegExp("ID=(\\d+)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 8977:{let r=t,i=new RegExp("\\/c\\/(\\d+)(?=[\\?#]|$)"),s=r.match(i);s&amp;&amp;s.length&gt;1?r=s[1]:(i=new RegExp("\\/p\\/([^/\\?#]+)(?=[\\?#]|$)"),s=r.match(i),s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1])),n=r;break}case 8972:{let r=t;const i=new RegExp("\\/p-([a-zA-Z0-9]+)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 7829:{let r=t;const i=new RegExp("\\/details\\/([^\\?#]+)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 8483:{let r=t,i=new RegExp("motorola\\.in\\/(.*?)\\/p"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1],i=new RegExp("skuId=(\\d+)"),s=t.match(i),s&amp;&amp;s.length&gt;1&amp;&amp;(r=r+"~"+s[1])),n=r;break}case 8966:{let r=t,i=new RegExp("\\/product\\/([a-zA-Z0-9-]+)\\/"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1],i=new RegExp("gid=(\\d+)"),s=t.match(i),s&amp;&amp;s.length&gt;1&amp;&amp;(r=r+"~"+s[1])),n=r;break}case 8980:{let r=t;const i=new RegExp("\\/products\\/([^\\/?#]+)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 6178:{let r=t;const i=new RegExp("\\/([^\\/?#]+)(?=[\\?#]|$)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 7903:{let r=t,i=new RegExp("\\/([^\\/]+-p\\d+)\\.html"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1],i=new RegExp("[?&amp;]piid=(\\d+)"),s=t.match(i),s&amp;&amp;s.length&gt;1&amp;&amp;(r=r+"~"+s[1])),n=r;break}case 8976:{let r=t;const i=new RegExp("\\/([A-Z0-9]+)\\/p\\/"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 8955:{let r=t;const i=new RegExp("\\/product\\/([^\\/?#]+)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 6705:{let r=t;const i=new RegExp("\\/products\\/([^\\/?#]+)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 4391:{let r=t;const i=new RegExp("\\/([^\\/\\?#]+\\.html)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 1059:{let r=t;const i=new RegExp("\\/([^\\/\\?#]+)(?=[\\?#]|$)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1].toUpperCase()),n=r;break}case 1179:{let r=t;const i=new RegExp("\\/([^/]+)\\/prdt"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 8579:{let r=t;const i=new RegExp("([^\\/]+)\\/p"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 8983:{let r=t;const i=new RegExp("\\/details\\/([^\\/]+\\/[^\\/]+)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 7697:{let r=t;const i=new RegExp("/product/([^/]+)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 8984:{let r=t,i=new RegExp("dp%2F([a-zA-Z0-9]+)"),s=r.match(i);s&amp;&amp;s.length&gt;1?r=s[1]:(i=new RegExp("dp\\/([a-zA-Z0-9]+)"),s=r.match(i),s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1])),n=r;break}case 8985:{let r=t;const i=new RegExp("([^/-]+).html"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}case 8986:{let r=t;const i=new RegExp("product\\/([^\\/]+)"),s=r.match(i);s&amp;&amp;s.length&gt;1&amp;&amp;(r=s[1]),n=r;break}default:{let r=t;r=k(r,[{find:"#",val:0},{find:"?",val:0},{find:"&amp;",val:0}]),n=r;break}}return n}const $r=(e,t)=&gt;{const n=/[^a-zA-Z0-9]+/g;return e=e.replace(n,t),e},hf=(e,t,n,r)=&gt;{let i=`${r.toLowerCase()}-${e}-price-in-india`.toLowerCase();return i=$r(i,"-"),`/${i}-${n}-${t}`},gf=(e,t,n="")=&gt;{var s,o,a,c;let r="price-tracker";window&amp;&amp;window.AssistantAppInterface&amp;&amp;(r="price-tracker-android"),window&amp;&amp;((o=(s=window.webkit)==null?void 0:s.messageHandlers)!=null&amp;&amp;o.iOSAssistantInterface)&amp;&amp;(r="price-tracker-ios"),window&amp;&amp;((c=(a=window.webkit)==null?void 0:a.messageHandlers)!=null&amp;&amp;c.iOSExtensionAssistantInterface)&amp;&amp;(r="price-tracker-ios-extension");const i=ao("hatkeTrackPriceReferral")||"";return e&gt;0?`https://tracking.buyhatke.com/Navigation/?pos=${e}&amp;source=${r}&amp;ext1=${n}&amp;ext2=${i}&amp;link=${encodeURIComponent(t)}`:t},mf=e=&gt;{const t={$:[6326,6304,6514,6306,1321,6305,8958,6103,8959,6307,8960,8961,8962,8970,8968,8971,6310,8967,8969,8963,8980,2376,8999,9011,9013,9021],"Â£":[8965,6828],AED:[8976,8984,8985,8986,7741,7713,8987],TL:[8996,8997,8998],"â‚¬":[9014,9015,9016,9017,9019],"ï¿¥":[9018],Ø±ÙŠØ§Ù„:[9020],S$:[9022],R$:[9023]},n=Object.keys(t);for(let r=0;r&lt;n.length;r++)if(t[n[r]].indexOf(e)!==-1)return n[r];return"â‚¹"};var K;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(K||(K={}));function Ao(e){return e.nodeType===e.ELEMENT_NODE}function gt(e){const t=e==null?void 0:e.host;return(t==null?void 0:t.shadowRoot)===e}function mt(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Mo(e){return e.includes(" background-clip: text;")&amp;&amp;!e.includes(" -webkit-background-clip: text;")&amp;&amp;(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}function To(e){const{cssText:t}=e;if(t.split('"').length&lt;3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&amp;&amp;n.push(`layer(${e.layerName})`),e.supportsText&amp;&amp;n.push(`supports(${e.supportsText})`),e.media.length&amp;&amp;n.push(e.media.mediaText),n.join(" ")+";"}function Ht(e){try{const t=e.rules||e.cssRules;return t?Mo(Array.from(t,Ni).join("")):null}catch{return null}}function Ni(e){let t;if(Oo(e))try{t=Ht(e.styleSheet)||To(e)}catch{}else if(Ro(e)&amp;&amp;e.selectorText.includes(":"))return xo(e.cssText);return t||e.cssText}function xo(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Oo(e){return"styleSheet"in e}function Ro(e){return"selectorText"in e}class Pi{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){var n;if(!t)return-1;const r=(n=this.getMeta(t))===null||n===void 0?void 0:n.id;return r??-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&amp;&amp;t.childNodes.forEach(r=&gt;this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const i=this.nodeMetaMap.get(r);i&amp;&amp;this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Do(){return new Pi}function Qr({element:e,maskInputOptions:t,tagName:n,type:r,value:i,maskInputFn:s}){let o=i||"";const a=r&amp;&amp;Ge(r);return(t[n.toLowerCase()]||a&amp;&amp;t[a])&amp;&amp;(s?o=s(o,e):o="*".repeat(o.length)),o}function Ge(e){return e.toLowerCase()}const Rn="__rrweb_original__";function No(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r&lt;e.width;r+=n)for(let i=0;i&lt;e.height;i+=n){const s=t.getImageData,o=Rn in s?s[Rn]:s;if(new Uint32Array(o.call(t,r,i,Math.min(n,e.width-r),Math.min(n,e.height-i)).data.buffer).some(c=&gt;c!==0))return!1}return!0}function Jr(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ge(t):null}function Li(e,t){var n;let r;try{r=new URL(e,t??window.location.href)}catch{return null}const i=/\.([0-9a-z]+)(?:$)/i,s=r.pathname.match(i);return(n=s==null?void 0:s[1])!==null&amp;&amp;n!==void 0?n:null}let Po=1;const Lo=new RegExp("[^a-z0-9-_:]"),bt=-2;function $i(){return Po++}function $o(e){if(e instanceof HTMLFormElement)return"form";const t=Ge(e.tagName);return Lo.test(t)?"div":t}function Fo(e){let t="";return e.indexOf("//")&gt;-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let Ze,Dn;const Bo=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Uo=/^(?:[a-z+]+:)?\/\//i,qo=/^www\..*/i,jo=/^(data:)([^,]*),(.*)/i;function Wt(e,t){return(e||"").replace(Bo,(n,r,i,s,o,a)=&gt;{const c=i||o||a,d=r||s||"";if(!c)return n;if(Uo.test(c)||qo.test(c))return`url(${d}${c}${d})`;if(jo.test(c))return`url(${d}${c}${d})`;if(c[0]==="/")return`url(${d}${Fo(t)+c}${d})`;const u=t.split("/"),p=c.split("/");u.pop();for(const f of p)f!=="."&amp;&amp;(f===".."?u.pop():u.push(f));return`url(${d}${u.join("/")}${d})`})}const Ho=/^[^ \t\n\r\u000c]+/,Wo=/^[, \t\n\r\u000c]+/;function zo(e,t){if(t.trim()==="")return t;let n=0;function r(s){let o;const a=s.exec(t.substring(n));return a?(o=a[0],n+=o.length,o):""}const i=[];for(;r(Wo),!(n&gt;=t.length);){let s=r(Ho);if(s.slice(-1)===",")s=tt(e,s.substring(0,s.length-1)),i.push(s);else{let o="";s=tt(e,s);let a=!1;for(;;){const c=t.charAt(n);if(c===""){i.push((s+o).trim());break}else if(a)c===")"&amp;&amp;(a=!1);else if(c===","){n+=1,i.push((s+o).trim());break}else c==="("&amp;&amp;(a=!0);o+=c,n+=1}}}return i.join(", ")}function tt(e,t){if(!t||t.trim()==="")return t;const n=e.createElement("a");return n.href=t,n.href}function Vo(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Xr(){const e=document.createElement("a");return e.href="",e.href}function Fi(e,t,n,r){return r&amp;&amp;(n==="src"||n==="href"&amp;&amp;!(t==="use"&amp;&amp;r[0]==="#")||n==="xlink:href"&amp;&amp;r[0]!=="#"||n==="background"&amp;&amp;(t==="table"||t==="td"||t==="th")?tt(e,r):n==="srcset"?zo(e,r):n==="style"?Wt(r,Xr()):t==="object"&amp;&amp;n==="data"?tt(e,r):r)}function Bi(e,t,n){return(e==="video"||e==="audio")&amp;&amp;t==="autoplay"}function Go(e,t,n){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){const i=e.classList[r];if(t.test(i))return!0}if(n)return e.matches(n)}catch{}return!1}function zt(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return n?zt(e.parentNode,t,n):!1;for(let r=e.classList.length;r--;){const i=e.classList[r];if(t.test(i))return!0}return n?zt(e.parentNode,t,n):!1}function Ui(e,t,n,r){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(i===null)return!1;if(typeof t=="string"){if(r){if(i.closest(`.${t}`))return!0}else if(i.classList.contains(t))return!0}else if(zt(i,t,r))return!0;if(n){if(r){if(i.closest(n))return!0}else if(i.matches(n))return!0}}catch{}return!1}function Ko(e,t,n){const r=e.contentWindow;if(!r)return;let i=!1,s;try{s=r.document.readyState}catch{return}if(s!=="complete"){const a=setTimeout(()=&gt;{i||(t(),i=!0)},n);e.addEventListener("load",()=&gt;{clearTimeout(a),i=!0,t()});return}const o="about:blank";if(r.location.href!==o||e.src===o||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Yo(e,t,n){let r=!1,i;try{i=e.sheet}catch{return}if(i)return;const s=setTimeout(()=&gt;{r||(t(),r=!0)},n);e.addEventListener("load",()=&gt;{clearTimeout(s),r=!0,t()})}function Qo(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:s,needsMask:o,inlineStylesheet:a,maskInputOptions:c={},maskTextFn:d,maskInputFn:u,dataURLOptions:p={},inlineImages:f,recordCanvas:h,keepIframeSrcFn:m,newlyAddedElement:g=!1}=t,y=Jo(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:K.Document,childNodes:[],compatMode:e.compatMode}:{type:K.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:K.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:y};case e.ELEMENT_NODE:return Zo(e,{doc:n,blockClass:i,blockSelector:s,inlineStylesheet:a,maskInputOptions:c,maskInputFn:u,dataURLOptions:p,inlineImages:f,recordCanvas:h,keepIframeSrcFn:m,newlyAddedElement:g,rootId:y});case e.TEXT_NODE:return Xo(e,{needsMask:o,maskTextFn:d,rootId:y});case e.CDATA_SECTION_NODE:return{type:K.CDATA,textContent:"",rootId:y};case e.COMMENT_NODE:return{type:K.Comment,textContent:e.textContent||"",rootId:y};default:return!1}}function Jo(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function Xo(e,t){var n;const{needsMask:r,maskTextFn:i,rootId:s}=t,o=e.parentNode&amp;&amp;e.parentNode.tagName;let a=e.textContent;const c=o==="STYLE"?!0:void 0,d=o==="SCRIPT"?!0:void 0;if(c&amp;&amp;a){try{e.nextSibling||e.previousSibling||!((n=e.parentNode.sheet)===null||n===void 0)&amp;&amp;n.cssRules&amp;&amp;(a=Ht(e.parentNode.sheet))}catch(u){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${u}`,e)}a=Wt(a,Xr())}return d&amp;&amp;(a="SCRIPT_PLACEHOLDER"),!c&amp;&amp;!d&amp;&amp;a&amp;&amp;r&amp;&amp;(a=i?i(a,e.parentElement):a.replace(/[\S]/g,"*")),{type:K.Text,textContent:a||"",isStyle:c,rootId:s}}function Zo(e,t){const{doc:n,blockClass:r,blockSelector:i,inlineStylesheet:s,maskInputOptions:o={},maskInputFn:a,dataURLOptions:c={},inlineImages:d,recordCanvas:u,keepIframeSrcFn:p,newlyAddedElement:f=!1,rootId:h}=t,m=Go(e,r,i),g=$o(e);let y={};const I=e.attributes.length;for(let b=0;b&lt;I;b++){const E=e.attributes[b];Bi(g,E.name,E.value)||(y[E.name]=Fi(n,g,Ge(E.name),E.value))}if(g==="link"&amp;&amp;s){const b=Array.from(n.styleSheets).find(M=&gt;M.href===e.href);let E=null;b&amp;&amp;(E=Ht(b)),E&amp;&amp;(delete y.rel,delete y.href,y._cssText=Wt(E,b.href))}if(g==="style"&amp;&amp;e.sheet&amp;&amp;!(e.innerText||e.textContent||"").trim().length){const b=Ht(e.sheet);b&amp;&amp;(y._cssText=Wt(b,Xr()))}if(g==="input"||g==="textarea"||g==="select"){const b=e.value,E=e.checked;y.type!=="radio"&amp;&amp;y.type!=="checkbox"&amp;&amp;y.type!=="submit"&amp;&amp;y.type!=="button"&amp;&amp;b?y.value=Qr({element:e,type:Jr(e),tagName:g,value:b,maskInputOptions:o,maskInputFn:a}):E&amp;&amp;(y.checked=E)}if(g==="option"&amp;&amp;(e.selected&amp;&amp;!o.select?y.selected=!0:delete y.selected),g==="canvas"&amp;&amp;u){if(e.__context==="2d")No(e)||(y.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){const b=e.toDataURL(c.type,c.quality),E=document.createElement("canvas");E.width=e.width,E.height=e.height;const M=E.toDataURL(c.type,c.quality);b!==M&amp;&amp;(y.rr_dataURL=b)}}if(g==="img"&amp;&amp;d){Ze||(Ze=n.createElement("canvas"),Dn=Ze.getContext("2d"));const b=e,E=b.crossOrigin;b.crossOrigin="anonymous";const M=()=&gt;{b.removeEventListener("load",M);try{Ze.width=b.naturalWidth,Ze.height=b.naturalHeight,Dn.drawImage(b,0,0),y.rr_dataURL=Ze.toDataURL(c.type,c.quality)}catch(Y){console.warn(`Cannot inline img src=${b.currentSrc}! Error: ${Y}`)}E?y.crossOrigin=E:b.removeAttribute("crossorigin")};b.complete&amp;&amp;b.naturalWidth!==0?M():b.addEventListener("load",M)}if(g==="audio"||g==="video"){const b=y;b.rr_mediaState=e.paused?"paused":"played",b.rr_mediaCurrentTime=e.currentTime,b.rr_mediaPlaybackRate=e.playbackRate,b.rr_mediaMuted=e.muted,b.rr_mediaLoop=e.loop,b.rr_mediaVolume=e.volume}if(f||(e.scrollLeft&amp;&amp;(y.rr_scrollLeft=e.scrollLeft),e.scrollTop&amp;&amp;(y.rr_scrollTop=e.scrollTop)),m){const{width:b,height:E}=e.getBoundingClientRect();y={class:y.class,rr_width:`${b}px`,rr_height:`${E}px`}}g==="iframe"&amp;&amp;!p(y.src)&amp;&amp;(e.contentDocument||(y.rr_src=y.src),delete y.src);let S;try{customElements.get(g)&amp;&amp;(S=!0)}catch{}return{type:K.Element,tagName:g,attributes:y,childNodes:[],isSVG:Vo(e)||void 0,needBlock:m,rootId:h,isCustom:S}}function $(e){return e==null?"":e.toLowerCase()}function ea(e,t){if(t.comment&amp;&amp;e.type===K.Comment)return!0;if(e.type===K.Element){if(t.script&amp;&amp;(e.tagName==="script"||e.tagName==="link"&amp;&amp;(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&amp;&amp;e.attributes.as==="script"||e.tagName==="link"&amp;&amp;e.attributes.rel==="prefetch"&amp;&amp;typeof e.attributes.href=="string"&amp;&amp;Li(e.attributes.href)==="js"))return!0;if(t.headFavicon&amp;&amp;(e.tagName==="link"&amp;&amp;e.attributes.rel==="shortcut icon"||e.tagName==="meta"&amp;&amp;($(e.attributes.name).match(/^msapplication-tile(image|color)$/)||$(e.attributes.name)==="application-name"||$(e.attributes.rel)==="icon"||$(e.attributes.rel)==="apple-touch-icon"||$(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&amp;&amp;$(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&amp;&amp;($(e.attributes.property).match(/^(og|twitter|fb):/)||$(e.attributes.name).match(/^(og|twitter):/)||$(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&amp;&amp;($(e.attributes.name)==="robots"||$(e.attributes.name)==="googlebot"||$(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&amp;&amp;e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&amp;&amp;($(e.attributes.name)==="author"||$(e.attributes.name)==="generator"||$(e.attributes.name)==="framework"||$(e.attributes.name)==="publisher"||$(e.attributes.name)==="progid"||$(e.attributes.property).match(/^article:/)||$(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&amp;&amp;($(e.attributes.name)==="google-site-verification"||$(e.attributes.name)==="yandex-verification"||$(e.attributes.name)==="csrf-token"||$(e.attributes.name)==="p:domain_verify"||$(e.attributes.name)==="verify-v1"||$(e.attributes.name)==="verification"||$(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function rt(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:s,maskTextClass:o,maskTextSelector:a,skipChild:c=!1,inlineStylesheet:d=!0,maskInputOptions:u={},maskTextFn:p,maskInputFn:f,slimDOMOptions:h,dataURLOptions:m={},inlineImages:g=!1,recordCanvas:y=!1,onSerialize:I,onIframeLoad:S,iframeLoadTimeout:b=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:M=5e3,keepIframeSrcFn:Y=()=&gt;!1,newlyAddedElement:z=!1}=t;let{needsMask:F}=t,{preserveWhiteSpace:B=!0}=t;!F&amp;&amp;e.childNodes&amp;&amp;(F=Ui(e,o,a,F===void 0));const oe=Qo(e,{doc:n,mirror:r,blockClass:i,blockSelector:s,needsMask:F,inlineStylesheet:d,maskInputOptions:u,maskTextFn:p,maskInputFn:f,dataURLOptions:m,inlineImages:g,recordCanvas:y,keepIframeSrcFn:Y,newlyAddedElement:z});if(!oe)return console.warn(e,"not serialized"),null;let ae;r.hasNode(e)?ae=r.getId(e):ea(oe,h)||!B&amp;&amp;oe.type===K.Text&amp;&amp;!oe.isStyle&amp;&amp;!oe.textContent.replace(/^\s+|\s+$/gm,"").length?ae=bt:ae=$i();const N=Object.assign(oe,{id:ae});if(r.add(e,N),ae===bt)return null;I&amp;&amp;I(e);let Fe=!c;if(N.type===K.Element){Fe=Fe&amp;&amp;!N.needBlock,delete N.needBlock;const X=e.shadowRoot;X&amp;&amp;mt(X)&amp;&amp;(N.isShadowHost=!0)}if((N.type===K.Document||N.type===K.Element)&amp;&amp;Fe){h.headWhitespace&amp;&amp;N.type===K.Element&amp;&amp;N.tagName==="head"&amp;&amp;(B=!1);const X={doc:n,mirror:r,blockClass:i,blockSelector:s,needsMask:F,maskTextClass:o,maskTextSelector:a,skipChild:c,inlineStylesheet:d,maskInputOptions:u,maskTextFn:p,maskInputFn:f,slimDOMOptions:h,dataURLOptions:m,inlineImages:g,recordCanvas:y,preserveWhiteSpace:B,onSerialize:I,onIframeLoad:S,iframeLoadTimeout:b,onStylesheetLoad:E,stylesheetLoadTimeout:M,keepIframeSrcFn:Y};if(!(N.type===K.Element&amp;&amp;N.tagName==="textarea"&amp;&amp;N.attributes.value!==void 0))for(const Te of Array.from(e.childNodes)){const he=rt(Te,X);he&amp;&amp;N.childNodes.push(he)}if(Ao(e)&amp;&amp;e.shadowRoot)for(const Te of Array.from(e.shadowRoot.childNodes)){const he=rt(Te,X);he&amp;&amp;(mt(e.shadowRoot)&amp;&amp;(he.isShadow=!0),N.childNodes.push(he))}}return e.parentNode&amp;&amp;gt(e.parentNode)&amp;&amp;mt(e.parentNode)&amp;&amp;(N.isShadow=!0),N.type===K.Element&amp;&amp;N.tagName==="iframe"&amp;&amp;Ko(e,()=&gt;{const X=e.contentDocument;if(X&amp;&amp;S){const Te=rt(X,{doc:X,mirror:r,blockClass:i,blockSelector:s,needsMask:F,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:d,maskInputOptions:u,maskTextFn:p,maskInputFn:f,slimDOMOptions:h,dataURLOptions:m,inlineImages:g,recordCanvas:y,preserveWhiteSpace:B,onSerialize:I,onIframeLoad:S,iframeLoadTimeout:b,onStylesheetLoad:E,stylesheetLoadTimeout:M,keepIframeSrcFn:Y});Te&amp;&amp;S(e,Te)}},b),N.type===K.Element&amp;&amp;N.tagName==="link"&amp;&amp;typeof N.attributes.rel=="string"&amp;&amp;(N.attributes.rel==="stylesheet"||N.attributes.rel==="preload"&amp;&amp;typeof N.attributes.href=="string"&amp;&amp;Li(N.attributes.href)==="css")&amp;&amp;Yo(e,()=&gt;{if(E){const X=rt(e,{doc:n,mirror:r,blockClass:i,blockSelector:s,needsMask:F,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:d,maskInputOptions:u,maskTextFn:p,maskInputFn:f,slimDOMOptions:h,dataURLOptions:m,inlineImages:g,recordCanvas:y,preserveWhiteSpace:B,onSerialize:I,onIframeLoad:S,iframeLoadTimeout:b,onStylesheetLoad:E,stylesheetLoadTimeout:M,keepIframeSrcFn:Y});X&amp;&amp;E(e,X)}},M),N}function ta(e,t){const{mirror:n=new Pi,blockClass:r="rr-block",blockSelector:i=null,maskTextClass:s="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:c=!1,recordCanvas:d=!1,maskAllInputs:u=!1,maskTextFn:p,maskInputFn:f,slimDOM:h=!1,dataURLOptions:m,preserveWhiteSpace:g,onSerialize:y,onIframeLoad:I,iframeLoadTimeout:S,onStylesheetLoad:b,stylesheetLoadTimeout:E,keepIframeSrcFn:M=()=&gt;!1}=t||{};return rt(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,maskTextClass:s,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:u===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:u===!1?{password:!0}:u,maskTextFn:p,maskInputFn:f,slimDOMOptions:h===!0||h==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:h==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:h===!1?{}:h,dataURLOptions:m,inlineImages:c,recordCanvas:d,preserveWhiteSpace:g,onSerialize:y,onIframeLoad:I,iframeLoadTimeout:S,onStylesheetLoad:b,stylesheetLoadTimeout:E,keepIframeSrcFn:M,newlyAddedElement:!1})}function ee(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=&gt;n.removeEventListener(e,t,r)}const et=`Please stop import mirror directly. Instead of that,\r
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
or you can use record.mirror to access the mirror instance during recording.`;let Nn={map:{},getId(){return console.error(et),-1},getNode(){return console.error(et),null},removeNodeFromMap(){console.error(et)},has(){return console.error(et),!1},reset(){console.error(et)}};typeof window&lt;"u"&amp;&amp;window.Proxy&amp;&amp;window.Reflect&amp;&amp;(Nn=new Proxy(Nn,{get(e,t,n){return t==="map"&amp;&amp;console.error(et),Reflect.get(e,t,n)}}));function wt(e,t,n={}){let r=null,i=0;return function(...s){const o=Date.now();!i&amp;&amp;n.leading===!1&amp;&amp;(i=o);const a=t-(o-i),c=this;a&lt;=0||a&gt;t?(r&amp;&amp;(clearTimeout(r),r=null),i=o,e.apply(c,s)):!r&amp;&amp;n.trailing!==!1&amp;&amp;(r=setTimeout(()=&gt;{i=n.leading===!1?0:Date.now(),r=null,e.apply(c,s)},a))}}function sr(e,t,n,r,i=window){const s=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(o){setTimeout(()=&gt;{n.set.call(this,o)},0),s&amp;&amp;s.set&amp;&amp;s.set.call(this,o)}}),()=&gt;sr(e,t,s||{},!0)}function dt(e,t,n){try{if(!(t in e))return()=&gt;{};const r=e[t],i=n(r);return typeof i=="function"&amp;&amp;(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=&gt;{e[t]=r}}catch{return()=&gt;{}}}let Vt=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Vt=()=&gt;new Date().getTime());function qi(e){var t,n,r,i,s,o;const a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:(a==null?void 0:a.documentElement.scrollLeft)||((n=(t=a==null?void 0:a.body)===null||t===void 0?void 0:t.parentElement)===null||n===void 0?void 0:n.scrollLeft)||((r=a==null?void 0:a.body)===null||r===void 0?void 0:r.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(a==null?void 0:a.documentElement.scrollTop)||((s=(i=a==null?void 0:a.body)===null||i===void 0?void 0:i.parentElement)===null||s===void 0?void 0:s.scrollTop)||((o=a==null?void 0:a.body)===null||o===void 0?void 0:o.scrollTop)||0}}function ji(){return window.innerHeight||document.documentElement&amp;&amp;document.documentElement.clientHeight||document.body&amp;&amp;document.body.clientHeight}function Hi(){return window.innerWidth||document.documentElement&amp;&amp;document.documentElement.clientWidth||document.body&amp;&amp;document.body.clientWidth}function Wi(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function te(e,t,n,r){if(!e)return!1;const i=Wi(e);if(!i)return!1;try{if(typeof t=="string"){if(i.classList.contains(t)||r&amp;&amp;i.closest("."+t)!==null)return!0}else if(zt(i,t,r))return!0}catch{}return!!(n&amp;&amp;(i.matches(n)||r&amp;&amp;i.closest(n)!==null))}function ra(e,t){return t.getId(e)!==-1}function vr(e,t){return t.getId(e)===bt}function zi(e,t){if(gt(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&amp;&amp;e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?zi(e.parentNode,t):!0:!0}function Fr(e){return!!e.changedTouches}function na(e=window){"NodeList"in e&amp;&amp;!e.NodeList.prototype.forEach&amp;&amp;(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&amp;&amp;!e.DOMTokenList.prototype.forEach&amp;&amp;(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=&gt;{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&amp;&amp;n.parentNode);return!1})}function Vi(e,t){return!!(e.nodeName==="IFRAME"&amp;&amp;t.getMeta(e))}function Gi(e,t){return!!(e.nodeName==="LINK"&amp;&amp;e.nodeType===e.ELEMENT_NODE&amp;&amp;e.getAttribute&amp;&amp;e.getAttribute("rel")==="stylesheet"&amp;&amp;t.getMeta(e))}function Br(e){return!!(e!=null&amp;&amp;e.shadowRoot)}class ia{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){var n;return(n=this.styleIDMap.get(t))!==null&amp;&amp;n!==void 0?n:-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Ki(e){var t,n;let r=null;return((n=(t=e.getRootNode)===null||t===void 0?void 0:t.call(e))===null||n===void 0?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&amp;&amp;e.getRootNode().host&amp;&amp;(r=e.getRootNode().host),r}function sa(e){let t=e,n;for(;n=Ki(t);)t=n;return t}function oa(e){const t=e.ownerDocument;if(!t)return!1;const n=sa(e);return t.contains(n)}function Yi(e){const t=e.ownerDocument;return t?t.contains(e)||oa(e):!1}var D=(e=&gt;(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(D||{}),O=(e=&gt;(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(O||{}),ne=(e=&gt;(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ne||{}),we=(e=&gt;(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(we||{}),ot=(e=&gt;(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(ot||{});function Pn(e){return"__ln"in e}class aa{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t&gt;=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r&lt;t;r++)n=(n==null?void 0:n.next)||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&amp;&amp;Pn(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&amp;&amp;(r.previous=n)}else if(t.nextSibling&amp;&amp;Pn(t.nextSibling)&amp;&amp;t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&amp;&amp;(r.next=n)}else this.head&amp;&amp;(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&amp;&amp;(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&amp;&amp;(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&amp;&amp;delete t.__ln,this.length--)}}const Ln=(e,t)=&gt;`${e}@${t}`;class ca{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=&gt;{t.forEach(this.processMutation),this.emit()},this.emit=()=&gt;{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new aa,i=c=&gt;{let d=c,u=bt;for(;u===bt;)d=d&amp;&amp;d.nextSibling,u=d&amp;&amp;this.mirror.getId(d);return u},s=c=&gt;{if(!c.parentNode||!Yi(c)||c.parentNode.tagName==="TEXTAREA")return;const d=gt(c.parentNode)?this.mirror.getId(Ki(c)):this.mirror.getId(c.parentNode),u=i(c);if(d===-1||u===-1)return r.addNode(c);const p=rt(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:f=&gt;{Vi(f,this.mirror)&amp;&amp;this.iframeManager.addIframe(f),Gi(f,this.mirror)&amp;&amp;this.stylesheetManager.trackLinkElement(f),Br(c)&amp;&amp;this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(f,h)=&gt;{this.iframeManager.attachIframe(f,h),this.shadowDomManager.observeAttachShadow(f)},onStylesheetLoad:(f,h)=&gt;{this.stylesheetManager.attachLinkElement(f,h)}});p&amp;&amp;(t.push({parentId:d,nextId:u,node:p}),n.add(p.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)$n(this.removes,c,this.mirror)&amp;&amp;!this.movedSet.has(c.parentNode)||s(c);for(const c of this.addedSet)!Fn(this.droppedSet,c)&amp;&amp;!$n(this.removes,c,this.mirror)||Fn(this.movedSet,c)?s(c):this.droppedSet.add(c);let o=null;for(;r.length;){let c=null;if(o){const d=this.mirror.getId(o.value.parentNode),u=i(o.value);d!==-1&amp;&amp;u!==-1&amp;&amp;(c=o)}if(!c){let d=r.tail;for(;d;){const u=d;if(d=d.previous,u){const p=this.mirror.getId(u.value.parentNode);if(i(u.value)===-1)continue;if(p!==-1){c=u;break}else{const h=u.value;if(h.parentNode&amp;&amp;h.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const m=h.parentNode.host;if(this.mirror.getId(m)!==-1){c=u;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}o=c.previous,r.removeNode(c.value),s(c.value)}const a={texts:this.texts.map(c=&gt;{const d=c.node;return d.parentNode&amp;&amp;d.parentNode.tagName==="TEXTAREA"&amp;&amp;this.genTextAreaValueMutation(d.parentNode),{id:this.mirror.getId(d),value:c.value}}).filter(c=&gt;!n.has(c.id)).filter(c=&gt;this.mirror.has(c.id)),attributes:this.attributes.map(c=&gt;{const{attributes:d}=c;if(typeof d.style=="string"){const u=JSON.stringify(c.styleDiff),p=JSON.stringify(c._unchangedStyles);u.length&lt;d.style.length&amp;&amp;(u+p).split("var(").length===d.style.split("var(").length&amp;&amp;(d.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:d}}).filter(c=&gt;!n.has(c.id)).filter(c=&gt;this.mirror.has(c.id)),removes:this.removes,adds:t};!a.texts.length&amp;&amp;!a.attributes.length&amp;&amp;!a.removes.length&amp;&amp;!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.genTextAreaValueMutation=t=&gt;{let n=this.attributeMap.get(t);n||(n={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(t,n)),n.attributes.value=Array.from(t.childNodes,r=&gt;r.textContent||"").join("")},this.processMutation=t=&gt;{if(!vr(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!te(t.target,this.blockClass,this.blockSelector,!1)&amp;&amp;n!==t.oldValue&amp;&amp;this.texts.push({value:Ui(t.target,this.maskTextClass,this.maskTextSelector,!0)&amp;&amp;n?this.maskTextFn?this.maskTextFn(n,Wi(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,i=t.target.getAttribute(r);if(r==="value"){const o=Jr(n);i=Qr({element:n,maskInputOptions:this.maskInputOptions,tagName:n.tagName,type:o,value:i,maskInputFn:this.maskInputFn})}if(te(t.target,this.blockClass,this.blockSelector,!1)||i===t.oldValue)return;let s=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&amp;&amp;r==="src"&amp;&amp;!this.keepIframeSrcFn(i))if(!n.contentDocument)r="rr_src";else return;if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(t.target,s)),r==="type"&amp;&amp;n.tagName==="INPUT"&amp;&amp;(t.oldValue||"").toLowerCase()==="password"&amp;&amp;n.setAttribute("data-rr-is-password","true"),!Bi(n.tagName,r)&amp;&amp;(s.attributes[r]=Fi(this.doc,Ge(n.tagName),Ge(r),i),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const o=this.unattachedDoc.createElement("span");t.oldValue&amp;&amp;o.setAttribute("style",t.oldValue);for(const a of Array.from(n.style)){const c=n.style.getPropertyValue(a),d=n.style.getPropertyPriority(a);c!==o.style.getPropertyValue(a)||d!==o.style.getPropertyPriority(a)?d===""?s.styleDiff[a]=c:s.styleDiff[a]=[c,d]:s._unchangedStyles[a]=[c,d]}for(const a of Array.from(o.style))n.style.getPropertyValue(a)===""&amp;&amp;(s.styleDiff[a]=!1)}break}case"childList":{if(te(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(n=&gt;this.genAdds(n,t.target)),t.removedNodes.forEach(n=&gt;{const r=this.mirror.getId(n),i=gt(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);te(t.target,this.blockClass,this.blockSelector,!1)||vr(n,this.mirror)||!ra(n,this.mirror)||(this.addedSet.has(n)?(Ur(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&amp;&amp;r===-1||zi(t.target,this.mirror)||(this.movedSet.has(n)&amp;&amp;this.movedMap[Ln(r,i)]?Ur(this.movedSet,n):this.removes.push({parentId:i,id:r,isShadow:gt(t.target)&amp;&amp;mt(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=&gt;{if(!this.processedNodeManager.inOtherBuffer(t,this)&amp;&amp;!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(vr(t,this.mirror))return;this.movedSet.add(t);let r=null;n&amp;&amp;this.mirror.hasNode(n)&amp;&amp;(r=this.mirror.getId(n)),r&amp;&amp;r!==-1&amp;&amp;(this.movedMap[Ln(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);te(t,this.blockClass,this.blockSelector,!1)||(t.childNodes.forEach(r=&gt;this.genAdds(r)),Br(t)&amp;&amp;t.shadowRoot.childNodes.forEach(r=&gt;{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=&gt;{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Ur(e,t){e.delete(t),t.childNodes.forEach(n=&gt;Ur(e,n))}function $n(e,t,n){return e.length===0?!1:Qi(e,t,n)}function Qi(e,t,n){const{parentNode:r}=t;if(!r)return!1;const i=n.getId(r);return e.some(s=&gt;s.id===i)?!0:Qi(e,r,n)}function Fn(e,t){return e.size===0?!1:Ji(e,t)}function Ji(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Ji(e,n):!1}let _t;function la(e){_t=e}function da(){_t=void 0}const R=e=&gt;_t?(...n)=&gt;{try{return e(...n)}catch(r){if(_t&amp;&amp;_t(r)===!0)return;throw r}}:e,He=[];function At(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&amp;&amp;e.path.length)return e.path[0]}catch{}return e&amp;&amp;e.target}function Xi(e,t){var n,r;const i=new ca;He.push(i),i.init(e);let s=window.MutationObserver||window.__rrMutationObserver;const o=(r=(n=window==null?void 0:window.Zone)===null||n===void 0?void 0:n.__symbol__)===null||r===void 0?void 0:r.call(n,"MutationObserver");o&amp;&amp;window[o]&amp;&amp;(s=window[o]);const a=new s(R(i.processMutations.bind(i)));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function ua({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=&gt;{};const i=typeof t.mousemove=="number"?t.mousemove:50,s=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let o=[],a;const c=wt(R(p=&gt;{const f=Date.now()-a;e(o.map(h=&gt;(h.timeOffset-=f,h)),p),o=[],a=null}),s),d=R(wt(R(p=&gt;{const f=At(p),{clientX:h,clientY:m}=Fr(p)?p.changedTouches[0]:p;a||(a=Vt()),o.push({x:h,y:m,id:r.getId(f),timeOffset:Vt()-a}),c(typeof DragEvent&lt;"u"&amp;&amp;p instanceof DragEvent?O.Drag:p instanceof MouseEvent?O.MouseMove:O.TouchMove)}),i,{trailing:!1})),u=[ee("mousemove",d,n),ee("touchmove",d,n),ee("drag",d,n)];return R(()=&gt;{u.forEach(p=&gt;p())})}function fa({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,sampling:s}){if(s.mouseInteraction===!1)return()=&gt;{};const o=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,a=[];let c=null;const d=u=&gt;p=&gt;{const f=At(p);if(te(f,r,i,!0))return;let h=null,m=u;if("pointerType"in p){switch(p.pointerType){case"mouse":h=we.Mouse;break;case"touch":h=we.Touch;break;case"pen":h=we.Pen;break}h===we.Touch?ne[u]===ne.MouseDown?m="TouchStart":ne[u]===ne.MouseUp&amp;&amp;(m="TouchEnd"):we.Pen}else Fr(p)&amp;&amp;(h=we.Touch);h!==null?(c=h,(m.startsWith("Touch")&amp;&amp;h===we.Touch||m.startsWith("Mouse")&amp;&amp;h===we.Mouse)&amp;&amp;(h=null)):ne[u]===ne.Click&amp;&amp;(h=c,c=null);const g=Fr(p)?p.changedTouches[0]:p;if(!g)return;const y=n.getId(f),{clientX:I,clientY:S}=g;R(e)(Object.assign({type:ne[m],id:y,x:I,y:S},h!==null&amp;&amp;{pointerType:h}))};return Object.keys(ne).filter(u=&gt;Number.isNaN(Number(u))&amp;&amp;!u.endsWith("_Departed")&amp;&amp;o[u]!==!1).forEach(u=&gt;{let p=Ge(u);const f=d(u);if(window.PointerEvent)switch(ne[u]){case ne.MouseDown:case ne.MouseUp:p=p.replace("mouse","pointer");break;case ne.TouchStart:case ne.TouchEnd:return}a.push(ee(p,f,t))}),R(()=&gt;{a.forEach(u=&gt;u())})}function Zi({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,sampling:s}){const o=R(wt(R(a=&gt;{const c=At(a);if(!c||te(c,r,i,!0))return;const d=n.getId(c);if(c===t&amp;&amp;t.defaultView){const u=qi(t.defaultView);e({id:d,x:u.left,y:u.top})}else e({id:d,x:c.scrollLeft,y:c.scrollTop})}),s.scroll||100));return ee("scroll",o,t)}function pa({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const i=R(wt(R(()=&gt;{const s=ji(),o=Hi();(n!==s||r!==o)&amp;&amp;(e({width:Number(o),height:Number(s)}),n=s,r=o)}),200));return ee("resize",i,t)}const ha=["INPUT","TEXTAREA","SELECT"],Bn=new WeakMap;function ga({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,ignoreClass:s,ignoreSelector:o,maskInputOptions:a,maskInputFn:c,sampling:d,userTriggeredOnInput:u}){function p(S){let b=At(S);const E=S.isTrusted,M=b&amp;&amp;b.tagName;if(b&amp;&amp;M==="OPTION"&amp;&amp;(b=b.parentElement),!b||!M||ha.indexOf(M)&lt;0||te(b,r,i,!0)||b.classList.contains(s)||o&amp;&amp;b.matches(o))return;let Y=b.value,z=!1;const F=Jr(b)||"";F==="radio"||F==="checkbox"?z=b.checked:(a[M.toLowerCase()]||a[F])&amp;&amp;(Y=Qr({element:b,maskInputOptions:a,tagName:M,type:F,value:Y,maskInputFn:c})),f(b,u?{text:Y,isChecked:z,userTriggered:E}:{text:Y,isChecked:z});const B=b.name;F==="radio"&amp;&amp;B&amp;&amp;z&amp;&amp;t.querySelectorAll(`input[type="radio"][name="${B}"]`).forEach(oe=&gt;{if(oe!==b){const ae=oe.value;f(oe,u?{text:ae,isChecked:!z,userTriggered:!1}:{text:ae,isChecked:!z})}})}function f(S,b){const E=Bn.get(S);if(!E||E.text!==b.text||E.isChecked!==b.isChecked){Bn.set(S,b);const M=n.getId(S);R(e)(Object.assign(Object.assign({},b),{id:M}))}}const m=(d.input==="last"?["change"]:["input","change"]).map(S=&gt;ee(S,R(p),t)),g=t.defaultView;if(!g)return()=&gt;{m.forEach(S=&gt;S())};const y=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),I=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];return y&amp;&amp;y.set&amp;&amp;m.push(...I.map(S=&gt;sr(S[0],S[1],{set(){R(p)({target:this,isTrusted:!1})}},!1,g))),R(()=&gt;{m.forEach(S=&gt;S())})}function Gt(e){const t=[];function n(r,i){if(Lt("CSSGroupingRule")&amp;&amp;r.parentRule instanceof CSSGroupingRule||Lt("CSSMediaRule")&amp;&amp;r.parentRule instanceof CSSMediaRule||Lt("CSSSupportsRule")&amp;&amp;r.parentRule instanceof CSSSupportsRule||Lt("CSSConditionRule")&amp;&amp;r.parentRule instanceof CSSConditionRule){const o=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(o)}else if(r.parentStyleSheet){const o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(o)}return i}return n(e,t)}function xe(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function ma({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=&gt;{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:R((u,p,f)=&gt;{const[h,m]=f,{id:g,styleId:y}=xe(p,t,n.styleMirror);return(g&amp;&amp;g!==-1||y&amp;&amp;y!==-1)&amp;&amp;e({id:g,styleId:y,adds:[{rule:h,index:m}]}),u.apply(p,f)})});const s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:R((u,p,f)=&gt;{const[h]=f,{id:m,styleId:g}=xe(p,t,n.styleMirror);return(m&amp;&amp;m!==-1||g&amp;&amp;g!==-1)&amp;&amp;e({id:m,styleId:g,removes:[{index:h}]}),u.apply(p,f)})});let o;r.CSSStyleSheet.prototype.replace&amp;&amp;(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:R((u,p,f)=&gt;{const[h]=f,{id:m,styleId:g}=xe(p,t,n.styleMirror);return(m&amp;&amp;m!==-1||g&amp;&amp;g!==-1)&amp;&amp;e({id:m,styleId:g,replace:h}),u.apply(p,f)})}));let a;r.CSSStyleSheet.prototype.replaceSync&amp;&amp;(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:R((u,p,f)=&gt;{const[h]=f,{id:m,styleId:g}=xe(p,t,n.styleMirror);return(m&amp;&amp;m!==-1||g&amp;&amp;g!==-1)&amp;&amp;e({id:m,styleId:g,replaceSync:h}),u.apply(p,f)})}));const c={};$t("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:($t("CSSMediaRule")&amp;&amp;(c.CSSMediaRule=r.CSSMediaRule),$t("CSSConditionRule")&amp;&amp;(c.CSSConditionRule=r.CSSConditionRule),$t("CSSSupportsRule")&amp;&amp;(c.CSSSupportsRule=r.CSSSupportsRule));const d={};return Object.entries(c).forEach(([u,p])=&gt;{d[u]={insertRule:p.prototype.insertRule,deleteRule:p.prototype.deleteRule},p.prototype.insertRule=new Proxy(d[u].insertRule,{apply:R((f,h,m)=&gt;{const[g,y]=m,{id:I,styleId:S}=xe(h.parentStyleSheet,t,n.styleMirror);return(I&amp;&amp;I!==-1||S&amp;&amp;S!==-1)&amp;&amp;e({id:I,styleId:S,adds:[{rule:g,index:[...Gt(h),y||0]}]}),f.apply(h,m)})}),p.prototype.deleteRule=new Proxy(d[u].deleteRule,{apply:R((f,h,m)=&gt;{const[g]=m,{id:y,styleId:I}=xe(h.parentStyleSheet,t,n.styleMirror);return(y&amp;&amp;y!==-1||I&amp;&amp;I!==-1)&amp;&amp;e({id:y,styleId:I,removes:[{index:[...Gt(h),g]}]}),f.apply(h,m)})})}),R(()=&gt;{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=s,o&amp;&amp;(r.CSSStyleSheet.prototype.replace=o),a&amp;&amp;(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([u,p])=&gt;{p.prototype.insertRule=d[u].insertRule,p.prototype.deleteRule=d[u].deleteRule})})}function es({mirror:e,stylesheetManager:t},n){var r,i,s;let o=null;n.nodeName==="#document"?o=e.getId(n):o=e.getId(n.host);const a=n.nodeName==="#document"?(r=n.defaultView)===null||r===void 0?void 0:r.Document:(s=(i=n.ownerDocument)===null||i===void 0?void 0:i.defaultView)===null||s===void 0?void 0:s.ShadowRoot,c=a!=null&amp;&amp;a.prototype?Object.getOwnPropertyDescriptor(a==null?void 0:a.prototype,"adoptedStyleSheets"):void 0;return o===null||o===-1||!a||!c?()=&gt;{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var d;return(d=c.get)===null||d===void 0?void 0:d.call(this)},set(d){var u;const p=(u=c.set)===null||u===void 0?void 0:u.call(this,d);if(o!==null&amp;&amp;o!==-1)try{t.adoptStyleSheets(d,o)}catch{}return p}}),R(()=&gt;{Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function _a({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:R((a,c,d)=&gt;{var u;const[p,f,h]=d;if(n.has(p))return s.apply(c,[p,f,h]);const{id:m,styleId:g}=xe((u=c.parentRule)===null||u===void 0?void 0:u.parentStyleSheet,t,r.styleMirror);return(m&amp;&amp;m!==-1||g&amp;&amp;g!==-1)&amp;&amp;e({id:m,styleId:g,set:{property:p,value:f,priority:h},index:Gt(c.parentRule)}),a.apply(c,d)})});const o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:R((a,c,d)=&gt;{var u;const[p]=d;if(n.has(p))return o.apply(c,[p]);const{id:f,styleId:h}=xe((u=c.parentRule)===null||u===void 0?void 0:u.parentStyleSheet,t,r.styleMirror);return(f&amp;&amp;f!==-1||h&amp;&amp;h!==-1)&amp;&amp;e({id:f,styleId:h,remove:{property:p},index:Gt(c.parentRule)}),a.apply(c,d)})}),R(()=&gt;{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=o})}function ya({mediaInteractionCb:e,blockClass:t,blockSelector:n,mirror:r,sampling:i,doc:s}){const o=R(c=&gt;wt(R(d=&gt;{const u=At(d);if(!u||te(u,t,n,!0))return;const{currentTime:p,volume:f,muted:h,playbackRate:m,loop:g}=u;e({type:c,id:r.getId(u),currentTime:p,volume:f,muted:h,playbackRate:m,loop:g})}),i.media||500)),a=[ee("play",o(0),s),ee("pause",o(1),s),ee("seeked",o(2),s),ee("volumechange",o(3),s),ee("ratechange",o(4),s)];return R(()=&gt;{a.forEach(c=&gt;c())})}function va({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=&gt;{};const r=[],i=new WeakMap,s=n.FontFace;n.FontFace=function(c,d,u){const p=new s(c,d,u);return i.set(p,{family:c,buffer:typeof d!="string",descriptors:u,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),p};const o=dt(t.fonts,"add",function(a){return function(c){return setTimeout(R(()=&gt;{const d=i.get(c);d&amp;&amp;(e(d),i.delete(c))}),0),a.apply(this,[c])}});return r.push(()=&gt;{n.FontFace=s}),r.push(o),R(()=&gt;{r.forEach(a=&gt;a())})}function ba(e){const{doc:t,mirror:n,blockClass:r,blockSelector:i,selectionCb:s}=e;let o=!0;const a=R(()=&gt;{const c=t.getSelection();if(!c||o&amp;&amp;(c!=null&amp;&amp;c.isCollapsed))return;o=c.isCollapsed||!1;const d=[],u=c.rangeCount||0;for(let p=0;p&lt;u;p++){const f=c.getRangeAt(p),{startContainer:h,startOffset:m,endContainer:g,endOffset:y}=f;te(h,r,i,!0)||te(g,r,i,!0)||d.push({start:n.getId(h),startOffset:m,end:n.getId(g),endOffset:y})}s({ranges:d})});return a(),ee("selectionchange",a)}function wa({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=&gt;{}:dt(n.customElements,"define",function(i){return function(s,o,a){try{t({define:{name:s}})}catch{console.warn(`Custom element callback failed for ${s}`)}return i.apply(this,[s,o,a])}})}function Sa(e,t){const{mutationCb:n,mousemoveCb:r,mouseInteractionCb:i,scrollCb:s,viewportResizeCb:o,inputCb:a,mediaInteractionCb:c,styleSheetRuleCb:d,styleDeclarationCb:u,canvasMutationCb:p,fontCb:f,selectionCb:h,customElementCb:m}=e;e.mutationCb=(...g)=&gt;{t.mutation&amp;&amp;t.mutation(...g),n(...g)},e.mousemoveCb=(...g)=&gt;{t.mousemove&amp;&amp;t.mousemove(...g),r(...g)},e.mouseInteractionCb=(...g)=&gt;{t.mouseInteraction&amp;&amp;t.mouseInteraction(...g),i(...g)},e.scrollCb=(...g)=&gt;{t.scroll&amp;&amp;t.scroll(...g),s(...g)},e.viewportResizeCb=(...g)=&gt;{t.viewportResize&amp;&amp;t.viewportResize(...g),o(...g)},e.inputCb=(...g)=&gt;{t.input&amp;&amp;t.input(...g),a(...g)},e.mediaInteractionCb=(...g)=&gt;{t.mediaInteaction&amp;&amp;t.mediaInteaction(...g),c(...g)},e.styleSheetRuleCb=(...g)=&gt;{t.styleSheetRule&amp;&amp;t.styleSheetRule(...g),d(...g)},e.styleDeclarationCb=(...g)=&gt;{t.styleDeclaration&amp;&amp;t.styleDeclaration(...g),u(...g)},e.canvasMutationCb=(...g)=&gt;{t.canvasMutation&amp;&amp;t.canvasMutation(...g),p(...g)},e.fontCb=(...g)=&gt;{t.font&amp;&amp;t.font(...g),f(...g)},e.selectionCb=(...g)=&gt;{t.selection&amp;&amp;t.selection(...g),h(...g)},e.customElementCb=(...g)=&gt;{t.customElement&amp;&amp;t.customElement(...g),m(...g)}}function ka(e,t={}){const n=e.doc.defaultView;if(!n)return()=&gt;{};Sa(e,t);let r;e.recordDOM&amp;&amp;(r=Xi(e,e.doc));const i=ua(e),s=fa(e),o=Zi(e),a=pa(e,{win:n}),c=ga(e),d=ya(e);let u=()=&gt;{},p=()=&gt;{},f=()=&gt;{},h=()=&gt;{};e.recordDOM&amp;&amp;(u=ma(e,{win:n}),p=es(e,e.doc),f=_a(e,{win:n}),e.collectFonts&amp;&amp;(h=va(e)));const m=ba(e),g=wa(e),y=[];for(const I of e.plugins)y.push(I.observer(I.callback,n,I.options));return R(()=&gt;{He.forEach(I=&gt;I.reset()),r==null||r.disconnect(),i(),s(),o(),a(),c(),d(),u(),p(),f(),h(),m(),g(),y.forEach(I=&gt;I())})}function Lt(e){return typeof window[e]&lt;"u"}function $t(e){return!!(typeof window[e]&lt;"u"&amp;&amp;window[e].prototype&amp;&amp;"insertRule"in window[e].prototype&amp;&amp;"deleteRule"in window[e].prototype)}class Un{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,i){const s=r||this.getIdToRemoteIdMap(t),o=i||this.getRemoteIdToIdMap(t);let a=s.get(n);return a||(a=this.generateIdFn(),s.set(n,a),o.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return n.map(s=&gt;this.getId(t,s,r,i))}getRemoteId(t,n,r){const i=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const s=i.get(n);return s||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(i=&gt;this.getRemoteId(t,i,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class Ia{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Un($i),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Un(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&amp;&amp;window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&amp;&amp;this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){var r;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(r=this.loadListener)===null||r===void 0||r.call(this,t),t.contentDocument&amp;&amp;t.contentDocument.adoptedStyleSheets&amp;&amp;t.contentDocument.adoptedStyleSheets.length&gt;0&amp;&amp;this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const i=this.crossOriginIframeMap.get(t.source);if(!i)return;const s=this.transformCrossOriginEvent(i,n.data.event);s&amp;&amp;this.wrappedEmit(s,n.data.isCheckout)}transformCrossOriginEvent(t,n){var r;switch(n.type){case D.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const i=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,i),this.patchRootIdOnNode(n.data.node,i),{timestamp:n.timestamp,type:D.IncrementalSnapshot,data:{source:O.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case D.Meta:case D.Load:case D.DomContentLoaded:return!1;case D.Plugin:return n;case D.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case D.IncrementalSnapshot:switch(n.data.source){case O.Mutation:return n.data.adds.forEach(i=&gt;{this.replaceIds(i,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,t);const s=this.crossOriginIframeRootIdMap.get(t);s&amp;&amp;this.patchRootIdOnNode(i.node,s)}),n.data.removes.forEach(i=&gt;{this.replaceIds(i,t,["parentId","id"])}),n.data.attributes.forEach(i=&gt;{this.replaceIds(i,t,["id"])}),n.data.texts.forEach(i=&gt;{this.replaceIds(i,t,["id"])}),n;case O.Drag:case O.TouchMove:case O.MouseMove:return n.data.positions.forEach(i=&gt;{this.replaceIds(i,t,["id"])}),n;case O.ViewportResize:return!1;case O.MediaInteraction:case O.MouseInteraction:case O.Scroll:case O.CanvasMutation:case O.Input:return this.replaceIds(n.data,t,["id"]),n;case O.StyleSheetRule:case O.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case O.Font:return n;case O.Selection:return n.data.ranges.forEach(i=&gt;{this.replaceIds(i,t,["start","end"])}),n;case O.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),(r=n.data.styles)===null||r===void 0||r.forEach(i=&gt;{this.replaceStyleIds(i,t,["styleId"])}),n}}return!1}replace(t,n,r,i){for(const s of i)!Array.isArray(n[s])&amp;&amp;typeof n[s]!="number"||(Array.isArray(n[s])?n[s]=t.getIds(r,n[s]):n[s]=t.getId(r,n[s]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&amp;&amp;t.childNodes.forEach(r=&gt;{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==K.Document&amp;&amp;!t.rootId&amp;&amp;(t.rootId=n),"childNodes"in t&amp;&amp;t.childNodes.forEach(r=&gt;{this.patchRootIdOnNode(r,n)})}}class Ea{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!mt(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const r=Xi(Object.assign(Object.assign({},this.bypassOptions),{doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=&gt;r.disconnect()),this.restoreHandlers.push(Zi(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),setTimeout(()=&gt;{t.adoptedStyleSheets&amp;&amp;t.adoptedStyleSheets.length&gt;0&amp;&amp;this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(es({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(dt(t.prototype,"attachShadow",function(i){return function(s){const o=i.call(this,s);return this.shadowRoot&amp;&amp;Yi(this)&amp;&amp;r.addShadowRoot(this.shadowRoot,n),o}}))}reset(){this.restoreHandlers.forEach(t=&gt;{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function Ca(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&amp;&amp;t.indexOf(r)&lt;0&amp;&amp;(n[r]=e[r]);if(e!=null&amp;&amp;typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i&lt;r.length;i++)t.indexOf(r[i])&lt;0&amp;&amp;Object.prototype.propertyIsEnumerable.call(e,r[i])&amp;&amp;(n[r[i]]=e[r[i]]);return n}function Aa(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(u){try{d(r.next(u))}catch(p){o(p)}}function c(u){try{d(r.throw(u))}catch(p){o(p)}}function d(u){u.done?s(u.value):i(u.value).then(a,c)}d((r=r.apply(e,[])).next())})}var nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ma=typeof Uint8Array&gt;"u"?[]:new Uint8Array(256);for(var Ft=0;Ft&lt;nt.length;Ft++)Ma[nt.charCodeAt(Ft)]=Ft;var Ta=function(e){var t=new Uint8Array(e),n,r=t.length,i="";for(n=0;n&lt;r;n+=3)i+=nt[t[n]&gt;&gt;2],i+=nt[(t[n]&amp;3)&lt;&lt;4|t[n+1]&gt;&gt;4],i+=nt[(t[n+1]&amp;15)&lt;&lt;2|t[n+2]&gt;&gt;6],i+=nt[t[n+2]&amp;63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&amp;&amp;(i=i.substring(0,i.length-2)+"=="),i};const qn=new Map;function xa(e,t){let n=qn.get(e);return n||(n=new Map,qn.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const ts=(e,t,n)=&gt;{if(!e||!(ns(e,t)||typeof e=="object"))return;const r=e.constructor.name,i=xa(n,r);let s=i.indexOf(e);return s===-1&amp;&amp;(s=i.length,i.push(e)),s};function qt(e,t,n){if(e instanceof Array)return e.map(r=&gt;qt(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,i=Ta(e);return{rr_type:r,base64:i}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[qt(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:i}=e;return{rr_type:r,src:i}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",i=e.toDataURL();return{rr_type:r,src:i}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[qt(e.data,t,n),e.width,e.height]};if(ns(e,t)||typeof e=="object"){const r=e.constructor.name,i=ts(e,t,n);return{rr_type:r,index:i}}}}return e}const rs=(e,t,n)=&gt;e.map(r=&gt;qt(r,t,n)),ns=(e,t)=&gt;!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=&gt;typeof t[i]=="function").find(i=&gt;e instanceof t[i]);function Oa(e,t,n,r){const i=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const o of s)try{if(typeof t.CanvasRenderingContext2D.prototype[o]!="function")continue;const a=dt(t.CanvasRenderingContext2D.prototype,o,function(c){return function(...d){return te(this.canvas,n,r,!0)||setTimeout(()=&gt;{const u=rs(d,t,this);e(this.canvas,{type:ot["2D"],property:o,args:u})},0),c.apply(this,d)}});i.push(a)}catch{const c=sr(t.CanvasRenderingContext2D.prototype,o,{set(d){e(this.canvas,{type:ot["2D"],property:o,args:[d],setter:!0})}});i.push(c)}return()=&gt;{i.forEach(o=&gt;o())}}function Ra(e){return e==="experimental-webgl"?"webgl":e}function jn(e,t,n,r){const i=[];try{const s=dt(e.HTMLCanvasElement.prototype,"getContext",function(o){return function(a,...c){if(!te(this,t,n,!0)){const d=Ra(a);if("__context"in this||(this.__context=d),r&amp;&amp;["webgl","webgl2"].includes(d))if(c[0]&amp;&amp;typeof c[0]=="object"){const u=c[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return o.apply(this,[a,...c])}});i.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=&gt;{i.forEach(s=&gt;s())}}function Hn(e,t,n,r,i,s,o){const a=[],c=Object.getOwnPropertyNames(e);for(const d of c)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))try{if(typeof e[d]!="function")continue;const u=dt(e,d,function(p){return function(...f){const h=p.apply(this,f);if(ts(h,o,this),"tagName"in this.canvas&amp;&amp;!te(this.canvas,r,i,!0)){const m=rs(f,o,this),g={type:t,property:d,args:m};n(this.canvas,g)}return h}});a.push(u)}catch{const p=sr(e,d,{set(f){n(this.canvas,{type:t,property:d,args:[f],setter:!0})}});a.push(p)}return a}function Da(e,t,n,r,i){const s=[];return s.push(...Hn(t.WebGLRenderingContext.prototype,ot.WebGL,e,n,r,i,t)),typeof t.WebGL2RenderingContext&lt;"u"&amp;&amp;s.push(...Hn(t.WebGL2RenderingContext.prototype,ot.WebGL2,e,n,r,i,t)),()=&gt;{s.forEach(o=&gt;o())}}function Na(e,t){var n=e.toString(),r=n.split(`
`);r.pop(),r.shift();for(var i=r[0].search(/\S/),s=/(['"])__worker_loader_strict__(['"])/g,o=0,a=r.length;o&lt;a;++o)r[o]=r[o].substring(i).replace(s,"$1use strict$2")+`
`;return r}function Pa(e,t){var n=Na(e),r=new Blob(n,{type:"application/javascript"});return URL.createObjectURL(r)}function La(e,t){var n;return function(i){return n=n||Pa(e),new Worker(n,i)}}var $a=La(function(){(function(){"__worker_loader_strict__";/*! *****************************************************************************
    Copyright (c) Microsoft Corporation.

    Permission to use, copy, modify, and/or distribute this software for any
    purpose with or without fee is hereby granted.

    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    PERFORMANCE OF THIS SOFTWARE.
    ***************************************************************************** */function e(d,u,p,f){function h(m){return m instanceof p?m:new p(function(g){g(m)})}return new(p||(p=Promise))(function(m,g){function y(b){try{S(f.next(b))}catch(E){g(E)}}function I(b){try{S(f.throw(b))}catch(E){g(E)}}function S(b){b.done?m(b.value):h(b.value).then(y,I)}S((f=f.apply(d,[])).next())})}for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=typeof Uint8Array&gt;"u"?[]:new Uint8Array(256),r=0;r&lt;t.length;r++)n[t.charCodeAt(r)]=r;var i=function(d){var u=new Uint8Array(d),p,f=u.length,h="";for(p=0;p&lt;f;p+=3)h+=t[u[p]&gt;&gt;2],h+=t[(u[p]&amp;3)&lt;&lt;4|u[p+1]&gt;&gt;4],h+=t[(u[p+1]&amp;15)&lt;&lt;2|u[p+2]&gt;&gt;6],h+=t[u[p+2]&amp;63];return f%3===2?h=h.substring(0,h.length-1)+"=":f%3===1&amp;&amp;(h=h.substring(0,h.length-2)+"=="),h};const s=new Map,o=new Map;function a(d,u,p){return e(this,void 0,void 0,function*(){const f=`${d}-${u}`;if("OffscreenCanvas"in globalThis){if(o.has(f))return o.get(f);const h=new OffscreenCanvas(d,u);h.getContext("2d");const g=yield(yield h.convertToBlob(p)).arrayBuffer(),y=i(g);return o.set(f,y),y}else return""})}const c=self;c.onmessage=function(d){return e(this,void 0,void 0,function*(){if("OffscreenCanvas"in globalThis){const{id:u,bitmap:p,width:f,height:h,dataURLOptions:m}=d.data,g=a(f,h,m),y=new OffscreenCanvas(f,h);y.getContext("2d").drawImage(p,0,0),p.close();const S=yield y.convertToBlob(m),b=S.type,E=yield S.arrayBuffer(),M=i(E);if(!s.has(u)&amp;&amp;(yield g)===M)return s.set(u,M),c.postMessage({id:u});if(s.get(u)===M)return c.postMessage({id:u});c.postMessage({id:u,type:b,base64:M,width:f,height:h}),s.set(u,M)}else return c.postMessage({id:d.data.id})})}})()});class Fa{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&amp;&amp;this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(c,d)=&gt;{(this.rafStamps.invokeId&amp;&amp;this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&amp;&amp;(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(c)||this.pendingCanvasMutations.set(c,[]),this.pendingCanvasMutations.get(c).push(d)};const{sampling:n="all",win:r,blockClass:i,blockSelector:s,recordCanvas:o,dataURLOptions:a}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,o&amp;&amp;n==="all"&amp;&amp;this.initCanvasMutationObserver(r,i,s),o&amp;&amp;typeof n=="number"&amp;&amp;this.initCanvasFPSObserver(n,r,i,s,{dataURLOptions:a})}initCanvasFPSObserver(t,n,r,i,s){const o=jn(n,r,i,!0),a=new Map,c=new $a;c.onmessage=m=&gt;{const{id:g}=m.data;if(a.set(g,!1),!("base64"in m.data))return;const{base64:y,type:I,width:S,height:b}=m.data;this.mutationCb({id:g,type:ot["2D"],commands:[{property:"clearRect",args:[0,0,S,b]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:y}],type:I}]},0,0]}]})};const d=1e3/t;let u=0,p;const f=()=&gt;{const m=[];return n.document.querySelectorAll("canvas").forEach(g=&gt;{te(g,r,i,!0)||m.push(g)}),m},h=m=&gt;{if(u&amp;&amp;m-u&lt;d){p=requestAnimationFrame(h);return}u=m,f().forEach(g=&gt;Aa(this,void 0,void 0,function*(){var y;const I=this.mirror.getId(g);if(a.get(I)||g.width===0||g.height===0)return;if(a.set(I,!0),["webgl","webgl2"].includes(g.__context)){const b=g.getContext(g.__context);((y=b==null?void 0:b.getContextAttributes())===null||y===void 0?void 0:y.preserveDrawingBuffer)===!1&amp;&amp;b.clear(b.COLOR_BUFFER_BIT)}const S=yield createImageBitmap(g);c.postMessage({id:I,bitmap:S,width:g.width,height:g.height,dataURLOptions:s.dataURLOptions},[S])})),p=requestAnimationFrame(h)};p=requestAnimationFrame(h),this.resetObservers=()=&gt;{o(),cancelAnimationFrame(p)}}initCanvasMutationObserver(t,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=jn(t,n,r,!1),s=Oa(this.processMutation.bind(this),t,n,r),o=Da(this.processMutation.bind(this),t,n,r,this.mirror);this.resetObservers=()=&gt;{i(),s(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=&gt;this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=&gt;{this.rafStamps.latestId=n,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=&gt;{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),requestAnimationFrame(()=&gt;this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const i=r.map(o=&gt;Ca(o,["type"])),{type:s}=r[0];this.mutationCb({id:n,type:s,commands:i}),this.pendingCanvasMutations.delete(t)}}class Ba{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new ia,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&amp;&amp;this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},i=[];for(const s of t){let o;this.styleMirror.has(s)?o=this.styleMirror.getId(s):(o=this.styleMirror.add(s),i.push({styleId:o,rules:Array.from(s.rules||CSSRule,(a,c)=&gt;({rule:Ni(a),index:c}))})),r.styleIds.push(o)}i.length&gt;0&amp;&amp;(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class Ua{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame(()=&gt;{this.clear(),this.loop&amp;&amp;this.periodicallyClear()})}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&amp;&amp;Array.from(r).some(i=&gt;i!==n)}add(t,n){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function G(e){return Object.assign(Object.assign({},e),{timestamp:Vt()})}let W,jt,br,Kt=!1;const de=Do();function Mt(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:s=null,ignoreClass:o="rr-ignore",ignoreSelector:a=null,maskTextClass:c="rr-mask",maskTextSelector:d=null,inlineStylesheet:u=!0,maskAllInputs:p,maskInputOptions:f,slimDOMOptions:h,maskInputFn:m,maskTextFn:g,hooks:y,packFn:I,sampling:S={},dataURLOptions:b={},mousemoveWait:E,recordDOM:M=!0,recordCanvas:Y=!1,recordCrossOriginIframes:z=!1,recordAfter:F=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:B=!1,collectFonts:oe=!1,inlineImages:ae=!1,plugins:N,keepIframeSrcFn:Fe=()=&gt;!1,ignoreCSSAttributes:X=new Set([]),errorHandler:Te}=e;la(Te);const he=z?window.parent===window:!0;let Dt=!1;if(!he)try{window.parent.document&amp;&amp;(Dt=!1)}catch{Dt=!0}if(he&amp;&amp;!t)throw new Error("emit function is required");E!==void 0&amp;&amp;S.mousemove===void 0&amp;&amp;(S.mousemove=E),de.reset();const hr=p===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:f!==void 0?f:{password:!0},gr=h===!0||h==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:h==="all",headMetaDescKeywords:h==="all"}:h||{};na();let Mn,mr=0;const Tn=T=&gt;{for(const le of N||[])le.eventProcessor&amp;&amp;(T=le.eventProcessor(T));return I&amp;&amp;!Dt&amp;&amp;(T=I(T)),T};W=(T,le)=&gt;{var H;if(!((H=He[0])===null||H===void 0)&amp;&amp;H.isFrozen()&amp;&amp;T.type!==D.FullSnapshot&amp;&amp;!(T.type===D.IncrementalSnapshot&amp;&amp;T.data.source===O.Mutation)&amp;&amp;He.forEach(Z=&gt;Z.unfreeze()),he)t==null||t(Tn(T),le);else if(Dt){const Z={type:"rrweb",event:Tn(T),origin:window.location.origin,isCheckout:le};window.parent.postMessage(Z,"*")}if(T.type===D.FullSnapshot)Mn=T,mr=0;else if(T.type===D.IncrementalSnapshot){if(T.data.source===O.Mutation&amp;&amp;T.data.isAttachIframe)return;mr++;const Z=r&amp;&amp;mr&gt;=r,qe=n&amp;&amp;T.timestamp-Mn.timestamp&gt;n;(Z||qe)&amp;&amp;jt(!0)}};const Nt=T=&gt;{W(G({type:D.IncrementalSnapshot,data:Object.assign({source:O.Mutation},T)}))},xn=T=&gt;W(G({type:D.IncrementalSnapshot,data:Object.assign({source:O.Scroll},T)})),On=T=&gt;W(G({type:D.IncrementalSnapshot,data:Object.assign({source:O.CanvasMutation},T)})),co=T=&gt;W(G({type:D.IncrementalSnapshot,data:Object.assign({source:O.AdoptedStyleSheet},T)})),Be=new Ba({mutationCb:Nt,adoptedStyleSheetCb:co}),Ue=new Ia({mirror:de,mutationCb:Nt,stylesheetManager:Be,recordCrossOriginIframes:z,wrappedEmit:W});for(const T of N||[])T.getMirror&amp;&amp;T.getMirror({nodeMirror:de,crossOriginIframeMirror:Ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ue.crossOriginIframeStyleMirror});const _r=new Ua;br=new Fa({recordCanvas:Y,mutationCb:On,win:window,blockClass:i,blockSelector:s,mirror:de,sampling:S.canvas,dataURLOptions:b});const Pt=new Ea({mutationCb:Nt,scrollCb:xn,bypassOptions:{blockClass:i,blockSelector:s,maskTextClass:c,maskTextSelector:d,inlineStylesheet:u,maskInputOptions:hr,dataURLOptions:b,maskTextFn:g,maskInputFn:m,recordCanvas:Y,inlineImages:ae,sampling:S,slimDOMOptions:gr,iframeManager:Ue,stylesheetManager:Be,canvasManager:br,keepIframeSrcFn:Fe,processedNodeManager:_r},mirror:de});jt=(T=!1)=&gt;{if(!M)return;W(G({type:D.Meta,data:{href:window.location.href,width:Hi(),height:ji()}}),T),Be.reset(),Pt.init(),He.forEach(H=&gt;H.lock());const le=ta(document,{mirror:de,blockClass:i,blockSelector:s,maskTextClass:c,maskTextSelector:d,inlineStylesheet:u,maskAllInputs:hr,maskTextFn:g,slimDOM:gr,dataURLOptions:b,recordCanvas:Y,inlineImages:ae,onSerialize:H=&gt;{Vi(H,de)&amp;&amp;Ue.addIframe(H),Gi(H,de)&amp;&amp;Be.trackLinkElement(H),Br(H)&amp;&amp;Pt.addShadowRoot(H.shadowRoot,document)},onIframeLoad:(H,Z)=&gt;{Ue.attachIframe(H,Z),Pt.observeAttachShadow(H)},onStylesheetLoad:(H,Z)=&gt;{Be.attachLinkElement(H,Z)},keepIframeSrcFn:Fe});if(!le)return console.warn("Failed to snapshot the document");W(G({type:D.FullSnapshot,data:{node:le,initialOffset:qi(window)}}),T),He.forEach(H=&gt;H.unlock()),document.adoptedStyleSheets&amp;&amp;document.adoptedStyleSheets.length&gt;0&amp;&amp;Be.adoptStyleSheets(document.adoptedStyleSheets,de.getId(document))};try{const T=[],le=Z=&gt;{var qe;return R(ka)({mutationCb:Nt,mousemoveCb:(U,yr)=&gt;W(G({type:D.IncrementalSnapshot,data:{source:yr,positions:U}})),mouseInteractionCb:U=&gt;W(G({type:D.IncrementalSnapshot,data:Object.assign({source:O.MouseInteraction},U)})),scrollCb:xn,viewportResizeCb:U=&gt;W(G({type:D.IncrementalSnapshot,data:Object.assign({source:O.ViewportResize},U)})),inputCb:U=&gt;W(G({type:D.IncrementalSnapshot,data:Object.assign({source:O.Input},U)})),mediaInteractionCb:U=&gt;W(G({type:D.IncrementalSnapshot,data:Object.assign({source:O.MediaInteraction},U)})),styleSheetRuleCb:U=&gt;W(G({type:D.IncrementalSnapshot,data:Object.assign({source:O.StyleSheetRule},U)})),styleDeclarationCb:U=&gt;W(G({type:D.IncrementalSnapshot,data:Object.assign({source:O.StyleDeclaration},U)})),canvasMutationCb:On,fontCb:U=&gt;W(G({type:D.IncrementalSnapshot,data:Object.assign({source:O.Font},U)})),selectionCb:U=&gt;{W(G({type:D.IncrementalSnapshot,data:Object.assign({source:O.Selection},U)}))},customElementCb:U=&gt;{W(G({type:D.IncrementalSnapshot,data:Object.assign({source:O.CustomElement},U)}))},blockClass:i,ignoreClass:o,ignoreSelector:a,maskTextClass:c,maskTextSelector:d,maskInputOptions:hr,inlineStylesheet:u,sampling:S,recordDOM:M,recordCanvas:Y,inlineImages:ae,userTriggeredOnInput:B,collectFonts:oe,doc:Z,maskInputFn:m,maskTextFn:g,keepIframeSrcFn:Fe,blockSelector:s,slimDOMOptions:gr,dataURLOptions:b,mirror:de,iframeManager:Ue,stylesheetManager:Be,shadowDomManager:Pt,processedNodeManager:_r,canvasManager:br,ignoreCSSAttributes:X,plugins:((qe=N==null?void 0:N.filter(U=&gt;U.observer))===null||qe===void 0?void 0:qe.map(U=&gt;({observer:U.observer,options:U.options,callback:yr=&gt;W(G({type:D.Plugin,data:{plugin:U.name,payload:yr}}))})))||[]},y)};Ue.addLoadListener(Z=&gt;{try{T.push(le(Z.contentDocument))}catch(qe){console.warn(qe)}});const H=()=&gt;{jt(),T.push(le(document)),Kt=!0};return document.readyState==="interactive"||document.readyState==="complete"?H():(T.push(ee("DOMContentLoaded",()=&gt;{W(G({type:D.DomContentLoaded,data:{}})),F==="DOMContentLoaded"&amp;&amp;H()})),T.push(ee("load",()=&gt;{W(G({type:D.Load,data:{}})),F==="load"&amp;&amp;H()},window))),()=&gt;{T.forEach(Z=&gt;Z()),_r.destroy(),Kt=!1,da()}}catch(T){console.warn(T)}}Mt.addCustomEvent=(e,t)=&gt;{if(!Kt)throw new Error("please add custom event after start recording");W(G({type:D.Custom,data:{tag:e,payload:t}}))};Mt.freezePage=()=&gt;{He.forEach(e=&gt;e.freeze())};Mt.takeFullSnapshot=e=&gt;{if(!Kt)throw new Error("please take full snapshot after start recording");jt(e)};Mt.mirror=de;var is=(e=&gt;(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(is||{}),ge=(e=&gt;(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ge||{}),ke={DEBUG:!1,LIB_VERSION:"2.55.1"},C;if(typeof window&gt;"u"){var Wn={hostname:""};C={navigator:{userAgent:"",onLine:!0},document:{location:Wn,referrer:""},screen:{width:0,height:0},location:Wn}}else C=window;var yt=24*60*60*1e3,wr=8*1e3,or=Array.prototype,qa=Function.prototype,ss=Object.prototype,Oe=or.slice,Tt=ss.toString,ar=ss.hasOwnProperty,V=C.console,Re=C.navigator,L=C.document,Bt=C.opera,Yt=C.screen,me=Re.userAgent,Sr=qa.bind,zn=or.forEach,Vn=or.indexOf,Gn=or.map,ja=Array.isArray,qr={},l={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},P={log:function(){if(ke.DEBUG&amp;&amp;!l.isUndefined(V)&amp;&amp;V)try{V.log.apply(V,arguments)}catch{l.each(arguments,function(t){V.log(t)})}},warn:function(){if(ke.DEBUG&amp;&amp;!l.isUndefined(V)&amp;&amp;V){var e=["Mixpanel warning:"].concat(l.toArray(arguments));try{V.warn.apply(V,e)}catch{l.each(e,function(n){V.warn(n)})}}},error:function(){if(ke.DEBUG&amp;&amp;!l.isUndefined(V)&amp;&amp;V){var e=["Mixpanel error:"].concat(l.toArray(arguments));try{V.error.apply(V,e)}catch{l.each(e,function(n){V.error(n)})}}},critical:function(){if(!l.isUndefined(V)&amp;&amp;V){var e=["Mixpanel error:"].concat(l.toArray(arguments));try{V.error.apply(V,e)}catch{l.each(e,function(n){V.error(n)})}}}},kr=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(P,arguments)}},cr=function(e){return{log:kr(P.log,e),error:kr(P.error,e),critical:kr(P.critical,e)}};l.bind=function(e,t){var n,r;if(Sr&amp;&amp;e.bind===Sr)return Sr.apply(e,Oe.call(arguments,1));if(!l.isFunction(e))throw new TypeError;return n=Oe.call(arguments,2),r=function(){if(!(this instanceof r))return e.apply(t,n.concat(Oe.call(arguments)));var i={};i.prototype=e.prototype;var s=new i;i.prototype=null;var o=e.apply(s,n.concat(Oe.call(arguments)));return Object(o)===o?o:s},r};l.each=function(e,t,n){if(e!=null){if(zn&amp;&amp;e.forEach===zn)e.forEach(t,n);else if(e.length===+e.length){for(var r=0,i=e.length;r&lt;i;r++)if(r in e&amp;&amp;t.call(n,e[r],r,e)===qr)return}else for(var s in e)if(ar.call(e,s)&amp;&amp;t.call(n,e[s],s,e)===qr)return}};l.extend=function(e){return l.each(Oe.call(arguments,1),function(t){for(var n in t)t[n]!==void 0&amp;&amp;(e[n]=t[n])}),e};l.isArray=ja||function(e){return Tt.call(e)==="[object Array]"};l.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch{return!1}};l.isArguments=function(e){return!!(e&amp;&amp;ar.call(e,"callee"))};l.toArray=function(e){return e?e.toArray?e.toArray():l.isArray(e)||l.isArguments(e)?Oe.call(e):l.values(e):[]};l.map=function(e,t,n){if(Gn&amp;&amp;e.map===Gn)return e.map(t,n);var r=[];return l.each(e,function(i){r.push(t.call(n,i))}),r};l.keys=function(e){var t=[];return e===null||l.each(e,function(n,r){t[t.length]=r}),t};l.values=function(e){var t=[];return e===null||l.each(e,function(n){t[t.length]=n}),t};l.include=function(e,t){var n=!1;return e===null?n:Vn&amp;&amp;e.indexOf===Vn?e.indexOf(t)!=-1:(l.each(e,function(r){if(n||(n=r===t))return qr}),n)};l.includes=function(e,t){return e.indexOf(t)!==-1};l.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e};l.isObject=function(e){return e===Object(e)&amp;&amp;!l.isArray(e)};l.isEmptyObject=function(e){if(l.isObject(e)){for(var t in e)if(ar.call(e,t))return!1;return!0}return!1};l.isUndefined=function(e){return e===void 0};l.isString=function(e){return Tt.call(e)=="[object String]"};l.isDate=function(e){return Tt.call(e)=="[object Date]"};l.isNumber=function(e){return Tt.call(e)=="[object Number]"};l.isElement=function(e){return!!(e&amp;&amp;e.nodeType===1)};l.encodeDates=function(e){return l.each(e,function(t,n){l.isDate(t)?e[n]=l.formatDate(t):l.isObject(t)&amp;&amp;(e[n]=l.encodeDates(t))}),e};l.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()};l.formatDate=function(e){function t(n){return n&lt;10?"0"+n:n}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())};l.strip_empty_properties=function(e){var t={};return l.each(e,function(n,r){l.isString(n)&amp;&amp;n.length&gt;0&amp;&amp;(t[r]=n)}),t};l.truncate=function(e,t){var n;return typeof e=="string"?n=e.slice(0,t):l.isArray(e)?(n=[],l.each(e,function(r){n.push(l.truncate(r,t))})):l.isObject(e)?(n={},l.each(e,function(r,i){n[i]=l.truncate(r,t)})):n=e,n};l.JSONEncode=function(){return function(e){var t=e,n=function(i){var s=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return s.lastIndex=0,s.test(i)?'"'+i.replace(s,function(a){var c=o[a];return typeof c=="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+i+'"'},r=function(i,s){var o="",a="    ",c=0,d="",u="",p=0,f=o,h=[],m=s[i];switch(m&amp;&amp;typeof m=="object"&amp;&amp;typeof m.toJSON=="function"&amp;&amp;(m=m.toJSON(i)),typeof m){case"string":return n(m);case"number":return isFinite(m)?String(m):"null";case"boolean":case"null":return String(m);case"object":if(!m)return"null";if(o+=a,h=[],Tt.apply(m)==="[object Array]"){for(p=m.length,c=0;c&lt;p;c+=1)h[c]=r(c,m)||"null";return u=h.length===0?"[]":o?`[
`+o+h.join(`,
`+o)+`
`+f+"]":"["+h.join(",")+"]",o=f,u}for(d in m)ar.call(m,d)&amp;&amp;(u=r(d,m),u&amp;&amp;h.push(n(d)+(o?": ":":")+u));return u=h.length===0?"{}":o?"{"+h.join(",")+f+"}":"{"+h.join(",")+"}",o=f,u}};return r("",{"":t})}}();l.JSONDecode=function(){var e,t,n={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
`,r:"\r",t:"	"},r,i=function(h){var m=new SyntaxError(h);throw m.at=e,m.text=r,m},s=function(h){return h&amp;&amp;h!==t&amp;&amp;i("Expected '"+h+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},o=function(){var h,m="";for(t==="-"&amp;&amp;(m="-",s("-"));t&gt;="0"&amp;&amp;t&lt;="9";)m+=t,s();if(t===".")for(m+=".";s()&amp;&amp;t&gt;="0"&amp;&amp;t&lt;="9";)m+=t;if(t==="e"||t==="E")for(m+=t,s(),(t==="-"||t==="+")&amp;&amp;(m+=t,s());t&gt;="0"&amp;&amp;t&lt;="9";)m+=t,s();if(h=+m,!isFinite(h))i("Bad number");else return h},a=function(){var h,m,g="",y;if(t==='"')for(;s();){if(t==='"')return s(),g;if(t==="\\")if(s(),t==="u"){for(y=0,m=0;m&lt;4&amp;&amp;(h=parseInt(s(),16),!!isFinite(h));m+=1)y=y*16+h;g+=String.fromCharCode(y)}else if(typeof n[t]=="string")g+=n[t];else break;else g+=t}i("Bad string")},c=function(){for(;t&amp;&amp;t&lt;=" ";)s()},d=function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}i('Unexpected "'+t+'"')},u,p=function(){var h=[];if(t==="["){if(s("["),c(),t==="]")return s("]"),h;for(;t;){if(h.push(u()),c(),t==="]")return s("]"),h;s(","),c()}}i("Bad array")},f=function(){var h,m={};if(t==="{"){if(s("{"),c(),t==="}")return s("}"),m;for(;t;){if(h=a(),c(),s(":"),Object.hasOwnProperty.call(m,h)&amp;&amp;i('Duplicate key "'+h+'"'),m[h]=u(),c(),t==="}")return s("}"),m;s(","),c()}}i("Bad object")};return u=function(){switch(c(),t){case"{":return f();case"[":return p();case'"':return a();case"-":return o();default:return t&gt;="0"&amp;&amp;t&lt;="9"?o():d()}},function(h){var m;return r=h,e=0,t=" ",m=u(),c(),t&amp;&amp;i("Syntax error"),m}}();l.base64Encode=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n,r,i,s,o,a,c,d,u=0,p=0,f="",h=[];if(!e)return e;e=l.utf8Encode(e);do n=e.charCodeAt(u++),r=e.charCodeAt(u++),i=e.charCodeAt(u++),d=n&lt;&lt;16|r&lt;&lt;8|i,s=d&gt;&gt;18&amp;63,o=d&gt;&gt;12&amp;63,a=d&gt;&gt;6&amp;63,c=d&amp;63,h[p++]=t.charAt(s)+t.charAt(o)+t.charAt(a)+t.charAt(c);while(u&lt;e.length);switch(f=h.join(""),e.length%3){case 1:f=f.slice(0,-2)+"==";break;case 2:f=f.slice(0,-1)+"=";break}return f};l.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,`
`).replace(/\r/g,`
`);var t="",n,r,i=0,s;for(n=r=0,i=e.length,s=0;s&lt;i;s++){var o=e.charCodeAt(s),a=null;o&lt;128?r++:o&gt;127&amp;&amp;o&lt;2048?a=String.fromCharCode(o&gt;&gt;6|192,o&amp;63|128):a=String.fromCharCode(o&gt;&gt;12|224,o&gt;&gt;6&amp;63|128,o&amp;63|128),a!==null&amp;&amp;(r&gt;n&amp;&amp;(t+=e.substring(n,r)),t+=a,n=r=s+1)}return r&gt;n&amp;&amp;(t+=e.substring(n,e.length)),t};l.UUID=function(){var e=function(){var r=1*new Date,i;if(C.performance&amp;&amp;C.performance.now)i=C.performance.now();else for(i=0;r==1*new Date;)i++;return r.toString(16)+Math.floor(i).toString(16)},t=function(){return Math.random().toString(16).replace(".","")},n=function(){var r=me,i,s,o=[],a=0;function c(d,u){var p,f=0;for(p=0;p&lt;u.length;p++)f|=o[p]&lt;&lt;p*8;return d^f}for(i=0;i&lt;r.length;i++)s=r.charCodeAt(i),o.unshift(s&amp;255),o.length&gt;=4&amp;&amp;(a=c(a,o),o=[]);return o.length&gt;0&amp;&amp;(a=c(a,o)),a.toString(16)};return function(){var r=(Yt.height*Yt.width).toString(16);return e()+"-"+t()+"-"+n()+"-"+r+"-"+e()}}();var Kn=["ahrefsbot","ahrefssiteaudit","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];l.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t&lt;Kn.length;t++)if(e.indexOf(Kn[t])!==-1)return!0;return!1};l.HTTPBuildQuery=function(e,t){var n,r,i=[];return l.isUndefined(t)&amp;&amp;(t="&amp;"),l.each(e,function(s,o){n=encodeURIComponent(s.toString()),r=encodeURIComponent(o),i[i.length]=r+"="+n}),i.join(t)};l.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var n="[\\?&amp;]"+t+"=([^&amp;#]*)",r=new RegExp(n),i=r.exec(e);if(i===null||i&amp;&amp;typeof i[1]!="string"&amp;&amp;i[1].length)return"";var s=i[1];try{s=decodeURIComponent(s)}catch{P.error("Skipping decoding for malformed query param: "+s)}return s.replace(/\+/g," ")};l.cookie={get:function(e){for(var t=e+"=",n=L.cookie.split(";"),r=0;r&lt;n.length;r++){for(var i=n[r];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=l.JSONDecode(l.cookie.get(e))||{}}catch{}return t},set_seconds:function(e,t,n,r,i,s,o){var a="",c="",d="";if(o)a="; domain="+o;else if(r){var u=Yn(L.location.hostname);a=u?"; domain=."+u:""}if(n){var p=new Date;p.setTime(p.getTime()+n*1e3),c="; expires="+p.toGMTString()}s&amp;&amp;(i=!0,d="; SameSite=None"),i&amp;&amp;(d+="; secure"),L.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+d},set:function(e,t,n,r,i,s,o){var a="",c="",d="";if(o)a="; domain="+o;else if(r){var u=Yn(L.location.hostname);a=u?"; domain=."+u:""}if(n){var p=new Date;p.setTime(p.getTime()+n*24*60*60*1e3),c="; expires="+p.toGMTString()}s&amp;&amp;(i=!0,d="; SameSite=None"),i&amp;&amp;(d+="; secure");var f=e+"="+encodeURIComponent(t)+c+"; path=/"+a+d;return L.cookie=f,f},remove:function(e,t,n){l.cookie.set(e,"",-1,t,!1,!1,n)}};var Ir=null,Qt=function(e,t){if(Ir!==null&amp;&amp;!t)return Ir;var n=!0;try{e=e||window.localStorage;var r="__mplss_"+Zr(8),i="xyz";e.setItem(r,i),e.getItem(r)!==i&amp;&amp;(n=!1),e.removeItem(r)}catch{n=!1}return Ir=n,n};l.localStorage={is_supported:function(e){var t=Qt(null,e);return t||P.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){P.error("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(t){l.localStorage.error(t)}return null},parse:function(e){try{return l.JSONDecode(l.localStorage.get(e))||{}}catch{}return null},set:function(e,t){try{window.localStorage.setItem(e,t)}catch(n){l.localStorage.error(n)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(t){l.localStorage.error(t)}}};l.register_event=function(){var e=function(r,i,s,o,a){if(!r){P.error("No valid element provided to register_event");return}if(r.addEventListener&amp;&amp;!o)r.addEventListener(i,s,!!a);else{var c="on"+i,d=r[c];r[c]=t(r,s,d)}};function t(r,i,s){var o=function(a){if(a=a||n(window.event),!!a){var c=!0,d,u;return l.isFunction(s)&amp;&amp;(d=s(a)),u=i.call(r,a),(d===!1||u===!1)&amp;&amp;(c=!1),c}};return o}function n(r){return r&amp;&amp;(r.preventDefault=n.preventDefault,r.stopPropagation=n.stopPropagation),r}return n.preventDefault=function(){this.returnValue=!1},n.stopPropagation=function(){this.cancelBubble=!0},e}();var Ha=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');l.dom_query=function(){function e(i){return i.all?i.all:i.getElementsByTagName("*")}var t=/[\t\r\n]/g;function n(i,s){var o=" "+s+" ";return(" "+i.className+" ").replace(t," ").indexOf(o)&gt;=0}function r(i){if(!L.getElementsByTagName)return[];var s=i.split(" "),o,a,c,d,u,p,f,h,m,g,y=[L];for(p=0;p&lt;s.length;p++){if(o=s[p].replace(/^\s+/,"").replace(/\s+$/,""),o.indexOf("#")&gt;-1){a=o.split("#"),c=a[0];var I=a[1],S=L.getElementById(I);if(!S||c&amp;&amp;S.nodeName.toLowerCase()!=c)return[];y=[S];continue}if(o.indexOf(".")&gt;-1){a=o.split("."),c=a[0];var b=a[1];for(c||(c="*"),d=[],u=0,f=0;f&lt;y.length;f++)for(c=="*"?m=e(y[f]):m=y[f].getElementsByTagName(c),h=0;h&lt;m.length;h++)d[u++]=m[h];for(y=[],g=0,f=0;f&lt;d.length;f++)d[f].className&amp;&amp;l.isString(d[f].className)&amp;&amp;n(d[f],b)&amp;&amp;(y[g++]=d[f]);continue}var E=o.match(Ha);if(E){c=E[1];var M=E[2],Y=E[3],z=E[4];for(c||(c="*"),d=[],u=0,f=0;f&lt;y.length;f++)for(c=="*"?m=e(y[f]):m=y[f].getElementsByTagName(c),h=0;h&lt;m.length;h++)d[u++]=m[h];y=[],g=0;var F;switch(Y){case"=":F=function(B){return B.getAttribute(M)==z};break;case"~":F=function(B){return B.getAttribute(M).match(new RegExp("\\b"+z+"\\b"))};break;case"|":F=function(B){return B.getAttribute(M).match(new RegExp("^"+z+"-?"))};break;case"^":F=function(B){return B.getAttribute(M).indexOf(z)===0};break;case"$":F=function(B){return B.getAttribute(M).lastIndexOf(z)==B.getAttribute(M).length-z.length};break;case"*":F=function(B){return B.getAttribute(M).indexOf(z)&gt;-1};break;default:F=function(B){return B.getAttribute(M)}}for(y=[],g=0,f=0;f&lt;d.length;f++)F(d[f])&amp;&amp;(y[g++]=d[f]);continue}for(c=o,d=[],u=0,f=0;f&lt;y.length;f++)for(m=y[f].getElementsByTagName(c),h=0;h&lt;m.length;h++)d[u++]=m[h];y=d}return y}return function(i){return l.isElement(i)?[i]:l.isObject(i)&amp;&amp;!l.isUndefined(i.length)?i:r.call(this,i)}}();var Wa=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],za=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];l.info={campaignParams:function(e){var t="",n={};return l.each(Wa,function(r){t=l.getQueryParam(L.URL,r),t.length?n[r]=t:e!==void 0&amp;&amp;(n[r]=e)}),n},clickParams:function(){var e="",t={};return l.each(za,function(n){e=l.getQueryParam(L.URL,n),e.length&amp;&amp;(t[n]=e)}),t},marketingParams:function(){return l.extend(l.info.campaignParams(),l.info.clickParams())},searchEngine:function(e){return e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(e){var t=l.info.searchEngine(e),n=t!="yahoo"?"q":"p",r={};if(t!==null){r.$search_engine=t;var i=l.getQueryParam(e,n);i.length&amp;&amp;(r.mp_keyword=i)}return r},browser:function(e,t,n){return t=t||"",n||l.includes(e," OPR/")?l.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":l.includes(e,"IEMobile")||l.includes(e,"WPDesktop")?"Internet Explorer Mobile":l.includes(e,"SamsungBrowser/")?"Samsung Internet":l.includes(e,"Edge")||l.includes(e,"Edg/")?"Microsoft Edge":l.includes(e,"FBIOS")?"Facebook Mobile":l.includes(e,"Chrome")?"Chrome":l.includes(e,"CriOS")?"Chrome iOS":l.includes(e,"UCWEB")||l.includes(e,"UCBrowser")?"UC Browser":l.includes(e,"FxiOS")?"Firefox iOS":l.includes(t,"Apple")?l.includes(e,"Mobile")?"Mobile Safari":"Safari":l.includes(e,"Android")?"Android Mobile":l.includes(e,"Konqueror")?"Konqueror":l.includes(e,"Firefox")?"Firefox":l.includes(e,"MSIE")||l.includes(e,"Trident/")?"Internet Explorer":l.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r=l.info.browser(e,t,n),i={"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+)?)/},s=i[r];if(s===void 0)return null;var o=e.match(s);return o?parseFloat(o[o.length-2]):null},os:function(){var e=me;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length&gt;=3?t[2]:""},currentUrl:function(){return C.location.href},properties:function(e){return typeof e!="object"&amp;&amp;(e={}),l.extend(l.strip_empty_properties({$os:l.info.os(),$browser:l.info.browser(me,Re.vendor,Bt),$referrer:L.referrer,$referring_domain:l.info.referringDomain(L.referrer),$device:l.info.device(me)}),{$current_url:l.info.currentUrl(),$browser_version:l.info.browserVersion(me,Re.vendor,Bt),$screen_height:Yt.height,$screen_width:Yt.width,mp_lib:"web",$lib_version:ke.LIB_VERSION,$insert_id:Zr(),time:l.timestamp()/1e3},l.strip_empty_properties(e))},people_properties:function(){return l.extend(l.strip_empty_properties({$os:l.info.os(),$browser:l.info.browser(me,Re.vendor,Bt)}),{$browser_version:l.info.browserVersion(me,Re.vendor,Bt)})},mpPageViewProperties:function(){return l.strip_empty_properties({current_page_title:L.title,current_domain:C.location.hostname,current_url_path:C.location.pathname,current_url_protocol:C.location.protocol,current_url_search:C.location.search})}};var Zr=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},Va=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Ga=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Yn=function(e){var t=Ga,n=e.split("."),r=n[n.length-1];(r.length&gt;4||r==="com"||r==="org")&amp;&amp;(t=Va);var i=e.match(t);return i?i[0]:""},Ka=function(){var e=C.navigator.onLine;return l.isUndefined(e)||e},Jt=null,Xt=null;typeof JSON&lt;"u"&amp;&amp;(Jt=JSON.stringify,Xt=JSON.parse);Jt=Jt||l.JSONEncode;Xt=Xt||l.JSONDecode;l.toArray=l.toArray;l.isObject=l.isObject;l.JSONEncode=l.JSONEncode;l.JSONDecode=l.JSONDecode;l.isBlockedUA=l.isBlockedUA;l.isEmptyObject=l.isEmptyObject;l.info=l.info;l.info.device=l.info.device;l.info.browser=l.info.browser;l.info.browserVersion=l.info.browserVersion;l.info.properties=l.info.properties;var Ya="__mp_opt_in_out_";function Qa(e,t){cs(!0,e,t)}function Ja(e,t){cs(!1,e,t)}function Xa(e,t){return as(e,t)==="1"}function os(e,t){if(ec(t))return P.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var n=as(e,t)==="0";return n&amp;&amp;P.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),n}function Pe(e){return rn(e,function(t){return this.get_config(t)})}function Le(e){return rn(e,function(t){return this._get_config(t)})}function ut(e){return rn(e,function(t){return this._get_config(t)})}function Za(e,t){t=t||{},en(t).remove(tn(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function en(e){return e=e||{},e.persistenceType==="localStorage"?l.localStorage:l.cookie}function tn(e,t){return t=t||{},(t.persistencePrefix||Ya)+e}function as(e,t){return en(t).get(tn(e,t))}function ec(e){if(e&amp;&amp;e.ignoreDnt)return!1;var t=e&amp;&amp;e.window||C,n=t.navigator||{},r=!1;return l.each([n.doNotTrack,n.msDoNotTrack,t.doNotTrack],function(i){l.includes([!0,1,"1","yes"],i)&amp;&amp;(r=!0)}),r}function cs(e,t,n){if(!l.isString(t)||!t.length){P.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}n=n||{},en(n).set(tn(t,n),e?1:0,l.isNumber(n.cookieExpiration)?n.cookieExpiration:null,!!n.crossSubdomainCookie,!!n.secureCookie,!!n.crossSiteCookie,n.cookieDomain),n.track&amp;&amp;e&amp;&amp;n.track(n.trackEventName||"$opt_in",n.trackProperties,{send_immediately:!0})}function rn(e,t){return function(){var n=!1;try{var r=t.call(this,"token"),i=t.call(this,"ignore_dnt"),s=t.call(this,"opt_out_tracking_persistence_type"),o=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");r&amp;&amp;(n=os(r,{ignoreDnt:i,persistenceType:s,persistencePrefix:o,window:a}))}catch(d){P.error("Unexpected error when checking tracking opt-out status: "+d)}if(!n)return e.apply(this,arguments);var c=arguments[arguments.length-1];typeof c=="function"&amp;&amp;c(0)}}var tc=cr("lock"),ls=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};ls.prototype.withLock=function(e,t,n){!n&amp;&amp;typeof t!="function"&amp;&amp;(n=t,t=null);var r=n||new Date().getTime()+"|"+Math.random(),i=new Date().getTime(),s=this.storageKey,o=this.pollIntervalMS,a=this.timeoutMS,c=this.storage,d=s+":X",u=s+":Y",p=s+":Z",f=function(S){t&amp;&amp;t(S)},h=function(S){if(new Date().getTime()-i&gt;a){tc.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+r+"]"),c.removeItem(p),c.removeItem(u),y();return}setTimeout(function(){try{S()}catch(b){f(b)}},o*(Math.random()+.1))},m=function(S,b){S()?b():h(function(){m(S,b)})},g=function(){var S=c.getItem(u);if(S&amp;&amp;S!==r)return!1;if(c.setItem(u,r),c.getItem(u)===r)return!0;if(!Qt(c,!0))throw new Error("localStorage support dropped while acquiring lock");return!1},y=function(){c.setItem(d,r),m(g,function(){if(c.getItem(d)===r){I();return}h(function(){if(c.getItem(u)!==r){y();return}m(function(){return!c.getItem(p)},I)})})},I=function(){c.setItem(p,"1");try{e()}finally{c.removeItem(p),c.getItem(u)===r&amp;&amp;c.removeItem(u),c.getItem(d)===r&amp;&amp;c.removeItem(d)}};try{if(Qt(c,!0))y();else throw new Error("localStorage support check failed")}catch(S){f(S)}};var Qn=cr("batch"),$e=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||l.bind(Qn.error,Qn),this.lock=new ls(e,{storage:this.storage}),this.usePersistence=t.usePersistence,this.pid=t.pid||null,this.memQueue=[]};$e.prototype.enqueue=function(e,t,n){var r={id:Zr(),flushAfter:new Date().getTime()+t*2,payload:e};this.usePersistence?this.lock.withLock(l.bind(function(){var s;try{var o=this.readFromStorage();o.push(r),s=this.saveToStorage(o),s&amp;&amp;this.memQueue.push(r)}catch{this.reportError("Error enqueueing item",e),s=!1}n&amp;&amp;n(s)},this),l.bind(function(s){this.reportError("Error acquiring storage lock",s),n&amp;&amp;n(!1)},this),this.pid):(this.memQueue.push(r),n&amp;&amp;n(!0))};$e.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(this.usePersistence&amp;&amp;t.length&lt;e){var n=this.readFromStorage();if(n.length){var r={};l.each(t,function(o){r[o.id]=!0});for(var i=0;i&lt;n.length;i++){var s=n[i];if(new Date().getTime()&gt;s.flushAfter&amp;&amp;!r[s.id]&amp;&amp;(s.orphaned=!0,t.push(s),t.length&gt;=e))break}}}return t};var Jn=function(e,t){var n=[];return l.each(e,function(r){r.id&amp;&amp;!t[r.id]&amp;&amp;n.push(r)}),n};$e.prototype.removeItemsByID=function(e,t){var n={};if(l.each(e,function(i){n[i]=!0}),this.memQueue=Jn(this.memQueue,n),!this.usePersistence)t&amp;&amp;t(!0);else{var r=l.bind(function(){var i;try{var s=this.readFromStorage();if(s=Jn(s,n),i=this.saveToStorage(s),i){s=this.readFromStorage();for(var o=0;o&lt;s.length;o++){var a=s[o];if(a.id&amp;&amp;n[a.id])return this.reportError("Item not removed from storage"),!1}}}catch{this.reportError("Error removing items",e),i=!1}return i},this);this.lock.withLock(function(){var s=r();t&amp;&amp;t(s)},l.bind(function(s){var o=!1;if(this.reportError("Error acquiring storage lock",s),!Qt(this.storage,!0)&amp;&amp;(o=r(),!o))try{this.storage.removeItem(this.storageKey)}catch(a){this.reportError("Error clearing queue",a)}t&amp;&amp;t(o)},this),this.pid)}};var Xn=function(e,t){var n=[];return l.each(e,function(r){var i=r.id;if(i in t){var s=t[i];s!==null&amp;&amp;(r.payload=s,n.push(r))}else n.push(r)}),n};$e.prototype.updatePayloads=function(e,t){this.memQueue=Xn(this.memQueue,e),this.usePersistence?this.lock.withLock(l.bind(function(){var r;try{var i=this.readFromStorage();i=Xn(i,e),r=this.saveToStorage(i)}catch{this.reportError("Error updating items",e),r=!1}t&amp;&amp;t(r)},this),l.bind(function(r){this.reportError("Error acquiring storage lock",r),t&amp;&amp;t(!1)},this),this.pid):t&amp;&amp;t(!0)};$e.prototype.readFromStorage=function(){var e;try{e=this.storage.getItem(this.storageKey),e&amp;&amp;(e=Xt(e),l.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null))}catch(t){this.reportError("Error retrieving queue",t),e=null}return e||[]};$e.prototype.saveToStorage=function(e){try{return this.storage.setItem(this.storageKey,Jt(e)),!0}catch(t){return this.reportError("Error saving queue",t),!1}};$e.prototype.clear=function(){this.memQueue=[],this.usePersistence&amp;&amp;this.storage.removeItem(this.storageKey)};var rc=10*60*1e3,vt=cr("batch"),fe=function(e,t){this.errorReporter=t.errorReporter,this.queue=new $e(e,{errorReporter:l.bind(this.reportError,this),storage:t.storage,usePersistence:t.usePersistence}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1};fe.prototype.enqueue=function(e,t){this.queue.enqueue(e,this.flushInterval,t)};fe.prototype.start=function(){this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()};fe.prototype.stop=function(){this.stopped=!0,this.timeoutID&amp;&amp;(clearTimeout(this.timeoutID),this.timeoutID=null)};fe.prototype.clear=function(){this.queue.clear()};fe.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size};fe.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)};fe.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(l.bind(function(){this.stopped||this.flush()},this),this.flushInterval))};fe.prototype.flush=function(e){try{if(this.requestInProgress){vt.log("Flush: Request already in progress");return}e=e||{};var t=this.libConfig.batch_request_timeout_ms,n=new Date().getTime(),r=this.batchSize,i=this.queue.fillBatch(r),s=i.length===r,o=[],a={};if(l.each(i,function(u){var p=u.payload;if(this.beforeSendHook&amp;&amp;!u.orphaned&amp;&amp;(p=this.beforeSendHook(p)),p){p.event&amp;&amp;p.properties&amp;&amp;(p.properties=l.extend({},p.properties,{mp_sent_by_lib_version:ke.LIB_VERSION}));var f=!0,h=u.id;h?(this.itemIdsSentSuccessfully[h]||0)&gt;5&amp;&amp;(this.reportError("[dupe] item ID sent too many times, not sending",{item:u,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[h]}),f=!1):this.reportError("[dupe] found item with no ID",{item:u}),f&amp;&amp;o.push(p)}a[u.id]=p},this),o.length&lt;1){this.resetFlush();return}this.requestInProgress=!0;var c=l.bind(function(u){this.requestInProgress=!1;try{var p=!1;if(e.unloading)this.queue.updatePayloads(a);else if(l.isObject(u)&amp;&amp;u.error==="timeout"&amp;&amp;new Date().getTime()-n&gt;=t)this.reportError("Network timeout; retrying"),this.flush();else if(l.isObject(u)&amp;&amp;(u.httpStatusCode&gt;=500||u.httpStatusCode===429||u.httpStatusCode&lt;=0&amp;&amp;!Ka()||u.error==="timeout")){var f=this.flushInterval*2;u.retryAfter&amp;&amp;(f=parseInt(u.retryAfter,10)*1e3||f),f=Math.min(rc,f),this.reportError("Error; retry in "+f+" ms"),this.scheduleFlush(f)}else if(l.isObject(u)&amp;&amp;u.httpStatusCode===413)if(i.length&gt;1){var h=Math.max(1,Math.floor(r/2));this.batchSize=Math.min(this.batchSize,h,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),p=!0;else p=!0;p&amp;&amp;(this.queue.removeItemsByID(l.map(i,function(m){return m.id}),l.bind(function(m){m?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&amp;&amp;!s?this.resetFlush():this.flush()):(this.reportError("Failed to remove items from queue"),++this.consecutiveRemovalFailures&gt;5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush())},this)),l.each(i,l.bind(function(m){var g=m.id;g?(this.itemIdsSentSuccessfully[g]=this.itemIdsSentSuccessfully[g]||0,this.itemIdsSentSuccessfully[g]++,this.itemIdsSentSuccessfully[g]&gt;5&amp;&amp;this.reportError("[dupe] item ID sent too many times",{item:m,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[g]})):this.reportError("[dupe] found item with no ID while removing",{item:m})},this)))}catch(m){this.reportError("Error handling API response",m),this.resetFlush()}},this),d={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};e.unloading&amp;&amp;(d.transport="sendBeacon"),vt.log("MIXPANEL REQUEST:",o),this.sendRequest(o,d,c)}catch(u){this.reportError("Error flushing request queue",u),this.resetFlush()}};fe.prototype.reportError=function(e,t){if(vt.error.apply(vt.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(n){vt.error(n)}};var We=cr("recorder"),Zn=C.CompressionStream,nc={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},ic=new Set([ge.MouseMove,ge.MouseInteraction,ge.Scroll,ge.ViewportResize,ge.Input,ge.TouchMove,ge.MediaInteraction,ge.Drag,ge.Selection]);function sc(e){return e.type===is.IncrementalSnapshot&amp;&amp;ic.has(e.data.source)}var pe=function(e){this._mixpanel=e,this._stopRecording=null,this.recEvents=[],this.seqNo=0,this.replayId=null,this.replayStartTime=null,this.sendBatchId=null,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=yt,this.recordMinMs=0,this._initBatcher()};pe.prototype._initBatcher=function(){this.batcher=new fe("__mprec",{libConfig:nc,sendRequestFunc:l.bind(this.flushEventsWithOptOut,this),errorReporter:l.bind(this.reportError,this),flushOnlyOnInterval:!0,usePersistence:!1})};pe.prototype.get_config=function(e){return this._mixpanel.get_config(e)};pe.prototype.startRecording=function(e){if(this._stopRecording!==null){We.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.get_config("record_max_ms"),this.recordMaxMs&gt;yt&amp;&amp;(this.recordMaxMs=yt,We.critical("record_max_ms cannot be greater than "+yt+"ms. Capping value.")),this.recordMinMs=this.get_config("record_min_ms"),this.recordMinMs&gt;wr&amp;&amp;(this.recordMinMs=wr,We.critical("record_min_ms cannot be greater than "+wr+"ms. Capping value.")),this.recEvents=[],this.seqNo=0,this.replayStartTime=new Date().getTime(),this.replayId=l.UUID(),e||this.recordMinMs&gt;0?this.batcher.stop():this.batcher.start();var t=l.bind(function(){clearTimeout(this.idleTimeoutId),this.idleTimeoutId=setTimeout(l.bind(function(){We.log("Idle timeout reached, restarting recording."),this.resetRecording()},this),this.get_config("record_idle_timeout_ms"))},this),n=this.get_config("record_block_selector");(n===""||n===null)&amp;&amp;(n=void 0),this._stopRecording=Mt({emit:l.bind(function(r){this.batcher.enqueue(r),sc(r)&amp;&amp;(this.batcher.stopped&amp;&amp;new Date().getTime()-this.replayStartTime&gt;=this.recordMinMs&amp;&amp;this.batcher.start(),t())},this),blockClass:this.get_config("record_block_class"),blockSelector:n,collectFonts:this.get_config("record_collect_fonts"),inlineImages:this.get_config("record_inline_images"),maskAllInputs:!0,maskTextClass:this.get_config("record_mask_text_class"),maskTextSelector:this.get_config("record_mask_text_selector")}),t(),this.maxTimeoutId=setTimeout(l.bind(this.resetRecording,this),this.recordMaxMs)};pe.prototype.resetRecording=function(){this.stopRecording(),this.startRecording(!0)};pe.prototype.stopRecording=function(){this._stopRecording!==null&amp;&amp;(this._stopRecording(),this._stopRecording=null),this.batcher.stopped?this.batcher.clear():(this.batcher.flush(),this.batcher.stop()),this.replayId=null,clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId)};pe.prototype.flushEventsWithOptOut=function(e,t,n){this._flushEvents(e,t,n,l.bind(this._onOptOut,this))};pe.prototype._onOptOut=function(e){e===0&amp;&amp;(this.recEvents=[],this.stopRecording())};pe.prototype._sendRequest=function(e,t,n,r){var i=l.bind(function(s,o){s.status===200&amp;&amp;this.replayId===e&amp;&amp;this.seqNo++,r({status:0,httpStatusCode:s.status,responseBody:o,retryAfter:s.headers.get("Retry-After")})},this);C.fetch(this.get_config("api_host")+"/"+this.get_config("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.get_config("token")+":"),"Content-Type":"application/octet-stream"},body:n}).then(function(s){s.json().then(function(o){i(s,o)}).catch(function(o){r({error:o})})}).catch(function(s){r({error:s,httpStatusCode:0})})};pe.prototype._flushEvents=Pe(function(e,t,n){const r=e.length;if(r&gt;0){var i=this.replayId,s=e[0].timestamp;(this.seqNo===0||!this.replayStartTime)&amp;&amp;(this.seqNo!==0&amp;&amp;this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=s);var o=e[r-1].timestamp-this.replayStartTime,a={distinct_id:String(this._mixpanel.get_distinct_id()),seq:this.seqNo,batch_start_time:s/1e3,replay_id:i,replay_length_ms:o,replay_start_time:this.replayStartTime/1e3},c=l.JSONEncode(e),d=this._mixpanel.get_property("$device_id");d&amp;&amp;(a.$device_id=d);var u=this._mixpanel.get_property("$user_id");if(u&amp;&amp;(a.$user_id=u),Zn){var p=new Blob([c],{type:"application/json"}).stream(),f=p.pipeThrough(new Zn("gzip"));new Response(f).blob().then(l.bind(function(h){a.format="gzip",this._sendRequest(i,a,h,n)},this))}else a.format="body",this._sendRequest(i,a,c,n)}});pe.prototype.reportError=function(e,t){We.error.apply(We.error,arguments);try{!t&amp;&amp;!(e instanceof Error)&amp;&amp;(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(n){We.error(n)}};C.__mp_recorder=pe;var Me=function(){};Me.prototype.create_properties=function(){};Me.prototype.event_handler=function(){};Me.prototype.after_track_handler=function(){};Me.prototype.init=function(e){return this.mp=e,this};Me.prototype.track=function(e,t,n,r){var i=this,s=l.dom_query(e);if(s.length===0){P.error("The DOM query ("+e+") returned 0 elements");return}return l.each(s,function(o){l.register_event(o,this.override_event,function(a){var c={},d=i.create_properties(n,this),u=i.mp.get_config("track_links_timeout");i.event_handler(a,this,c),window.setTimeout(i.track_callback(r,d,c,!0),u),i.mp.track(t,d,i.track_callback(r,d,c))})},this),!0};Me.prototype.track_callback=function(e,t,n,r){r=r||!1;var i=this;return function(){n.callback_fired||(n.callback_fired=!0,!(e&amp;&amp;e(r,t)===!1)&amp;&amp;i.after_track_handler(t,n,r))}};Me.prototype.create_properties=function(e,t){var n;return typeof e=="function"?n=e(t):n=l.extend({},e),n};var at=function(){this.override_event="click"};l.inherit(at,Me);at.prototype.create_properties=function(e,t){var n=at.superclass.create_properties.apply(this,arguments);return t.href&amp;&amp;(n.url=t.href),n};at.prototype.event_handler=function(e,t,n){n.new_tab=e.which===2||e.metaKey||e.ctrlKey||t.target==="_blank",n.href=t.href,n.new_tab||e.preventDefault()};at.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var lr=function(){this.override_event="submit"};l.inherit(lr,Me);lr.prototype.event_handler=function(e,t,n){n.element=t,e.preventDefault()};lr.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var Ne="$set",ct="$set_once",ue="$unset",Ke="$add",_e="$append",Ye="$union",Ie="$remove",oc="$delete",ds={set_action:function(e,t){var n={},r={};return l.isObject(e)?l.each(e,function(i,s){this._is_reserved_property(s)||(r[s]=i)},this):r[e]=t,n[Ne]=r,n},unset_action:function(e){var t={},n=[];return l.isArray(e)||(e=[e]),l.each(e,function(r){this._is_reserved_property(r)||n.push(r)},this),t[ue]=n,t},set_once_action:function(e,t){var n={},r={};return l.isObject(e)?l.each(e,function(i,s){this._is_reserved_property(s)||(r[s]=i)},this):r[e]=t,n[ct]=r,n},union_action:function(e,t){var n={},r={};return l.isObject(e)?l.each(e,function(i,s){this._is_reserved_property(s)||(r[s]=l.isArray(i)?i:[i])},this):r[e]=l.isArray(t)?t:[t],n[Ye]=r,n},append_action:function(e,t){var n={},r={};return l.isObject(e)?l.each(e,function(i,s){this._is_reserved_property(s)||(r[s]=i)},this):r[e]=t,n[_e]=r,n},remove_action:function(e,t){var n={},r={};return l.isObject(e)?l.each(e,function(i,s){this._is_reserved_property(s)||(r[s]=i)},this):r[e]=t,n[Ie]=r,n},delete_action:function(){var e={};return e[oc]="",e}},j=function(){};l.extend(j.prototype,ds);j.prototype._init=function(e,t,n){this._mixpanel=e,this._group_key=t,this._group_id=n};j.prototype.set=ut(function(e,t,n){var r=this.set_action(e,t);return l.isObject(e)&amp;&amp;(n=t),this._send_request(r,n)});j.prototype.set_once=ut(function(e,t,n){var r=this.set_once_action(e,t);return l.isObject(e)&amp;&amp;(n=t),this._send_request(r,n)});j.prototype.unset=ut(function(e,t){var n=this.unset_action(e);return this._send_request(n,t)});j.prototype.union=ut(function(e,t,n){l.isObject(e)&amp;&amp;(n=t);var r=this.union_action(e,t);return this._send_request(r,n)});j.prototype.delete=ut(function(e){var t=this.delete_action();return this._send_request(t,e)});j.prototype.remove=ut(function(e,t,n){var r=this.remove_action(e,t);return this._send_request(r,n)});j.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var n=l.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:n,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)};j.prototype._is_reserved_property=function(e){return e==="$group_key"||e==="$group_id"};j.prototype._get_config=function(e){return this._mixpanel.get_config(e)};j.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id};j.prototype.remove=j.prototype.remove;j.prototype.set=j.prototype.set;j.prototype.set_once=j.prototype.set_once;j.prototype.union=j.prototype.union;j.prototype.unset=j.prototype.unset;j.prototype.toString=j.prototype.toString;var A=function(){};l.extend(A.prototype,ds);A.prototype._init=function(e){this._mixpanel=e};A.prototype.set=Le(function(e,t,n){var r=this.set_action(e,t);return l.isObject(e)&amp;&amp;(n=t),this._get_config("save_referrer")&amp;&amp;this._mixpanel.persistence.update_referrer_info(document.referrer),r[Ne]=l.extend({},l.info.people_properties(),r[Ne]),this._send_request(r,n)});A.prototype.set_once=Le(function(e,t,n){var r=this.set_once_action(e,t);return l.isObject(e)&amp;&amp;(n=t),this._send_request(r,n)});A.prototype.unset=Le(function(e,t){var n=this.unset_action(e);return this._send_request(n,t)});A.prototype.increment=Le(function(e,t,n){var r={},i={};return l.isObject(e)?(l.each(e,function(s,o){if(!this._is_reserved_property(o))if(isNaN(parseFloat(s))){P.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else i[o]=s},this),n=t):(l.isUndefined(t)&amp;&amp;(t=1),i[e]=t),r[Ke]=i,this._send_request(r,n)});A.prototype.append=Le(function(e,t,n){l.isObject(e)&amp;&amp;(n=t);var r=this.append_action(e,t);return this._send_request(r,n)});A.prototype.remove=Le(function(e,t,n){l.isObject(e)&amp;&amp;(n=t);var r=this.remove_action(e,t);return this._send_request(r,n)});A.prototype.union=Le(function(e,t,n){l.isObject(e)&amp;&amp;(n=t);var r=this.union_action(e,t);return this._send_request(r,n)});A.prototype.track_charge=Le(function(e,t,n){if(!l.isNumber(e)&amp;&amp;(e=parseFloat(e),isNaN(e))){P.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",l.extend({$amount:e},t),n)});A.prototype.clear_charges=function(e){return this.set("$transactions",[],e)};A.prototype.delete_user=function(){if(!this._identify_called()){P.error("mixpanel.people.delete_user() requires you to call identify() first");return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)};A.prototype.toString=function(){return this._mixpanel.toString()+".people"};A.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var n=this._mixpanel.get_property("$device_id"),r=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");n&amp;&amp;(e.$device_id=n),r&amp;&amp;(e.$user_id=r),i&amp;&amp;(e.$had_persisted_distinct_id=i);var s=l.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:s,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),l.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),l.truncate(s,255))};A.prototype._get_config=function(e){return this._mixpanel.get_config(e)};A.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0};A.prototype._enqueue=function(e){Ne in e?this._mixpanel.persistence._add_to_people_queue(Ne,e):ct in e?this._mixpanel.persistence._add_to_people_queue(ct,e):ue in e?this._mixpanel.persistence._add_to_people_queue(ue,e):Ke in e?this._mixpanel.persistence._add_to_people_queue(Ke,e):_e in e?this._mixpanel.persistence._add_to_people_queue(_e,e):Ie in e?this._mixpanel.persistence._add_to_people_queue(Ie,e):Ye in e?this._mixpanel.persistence._add_to_people_queue(Ye,e):P.error("Invalid call to _enqueue():",e)};A.prototype._flush_one_queue=function(e,t,n,r){var i=this,s=l.extend({},this._mixpanel.persistence.load_queue(e)),o=s;!l.isUndefined(s)&amp;&amp;l.isObject(s)&amp;&amp;!l.isEmptyObject(s)&amp;&amp;(i._mixpanel.persistence._pop_from_people_queue(e,s),i._mixpanel.persistence.save(),r&amp;&amp;(o=r(s)),t.call(i,o,function(a,c){a===0&amp;&amp;i._mixpanel.persistence._add_to_people_queue(e,s),l.isUndefined(n)||n(a,c)}))};A.prototype._flush=function(e,t,n,r,i,s,o){var a=this;this._flush_one_queue(Ne,this.set,e),this._flush_one_queue(ct,this.set_once,r),this._flush_one_queue(ue,this.unset,s,function(y){return l.keys(y)}),this._flush_one_queue(Ke,this.increment,t),this._flush_one_queue(Ye,this.union,i);var c=this._mixpanel.persistence.load_queue(_e);if(!l.isUndefined(c)&amp;&amp;l.isArray(c)&amp;&amp;c.length)for(var d,u=function(y,I){y===0&amp;&amp;a._mixpanel.persistence._add_to_people_queue(_e,d),l.isUndefined(n)||n(y,I)},p=c.length-1;p&gt;=0;p--)c=this._mixpanel.persistence.load_queue(_e),d=c.pop(),a._mixpanel.persistence.save(),l.isEmptyObject(d)||a.append(d,u);var f=this._mixpanel.persistence.load_queue(Ie);if(!l.isUndefined(f)&amp;&amp;l.isArray(f)&amp;&amp;f.length)for(var h,m=function(y,I){y===0&amp;&amp;a._mixpanel.persistence._add_to_people_queue(Ie,h),l.isUndefined(o)||o(y,I)},g=f.length-1;g&gt;=0;g--)f=this._mixpanel.persistence.load_queue(Ie),h=f.pop(),a._mixpanel.persistence.save(),l.isEmptyObject(h)||a.remove(h,m)};A.prototype._is_reserved_property=function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"};A.prototype.set=A.prototype.set;A.prototype.set_once=A.prototype.set_once;A.prototype.unset=A.prototype.unset;A.prototype.increment=A.prototype.increment;A.prototype.append=A.prototype.append;A.prototype.remove=A.prototype.remove;A.prototype.union=A.prototype.union;A.prototype.track_charge=A.prototype.track_charge;A.prototype.clear_charges=A.prototype.clear_charges;A.prototype.delete_user=A.prototype.delete_user;A.prototype.toString=A.prototype.toString;var nn="__mps",sn="__mpso",on="__mpus",an="__mpa",cn="__mpap",ln="__mpr",dn="__mpu",us="$people_distinct_id",Zt="__alias",St="__timers",ac=[nn,sn,on,an,cn,ln,dn,us,Zt,St],x=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;t!=="cookie"&amp;&amp;t!=="localStorage"&amp;&amp;(P.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),t==="localStorage"&amp;&amp;l.localStorage.is_supported()?this.storage=l.localStorage:this.storage=l.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};x.prototype.properties=function(){var e={};return this.load(),l.each(this.props,function(t,n){l.include(ac,n)||(e[n]=t)}),e};x.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&amp;&amp;(this.props=l.extend({},e))}};x.prototype.upgrade=function(){var e,t;this.storage===l.localStorage?(e=l.cookie.parse(this.name),l.cookie.remove(this.name),l.cookie.remove(this.name,!0),e&amp;&amp;this.register_once(e)):this.storage===l.cookie&amp;&amp;(t=l.localStorage.parse(this.name),l.localStorage.remove(this.name),t&amp;&amp;this.register_once(t))};x.prototype.save=function(){this.disabled||this.storage.set(this.name,l.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)};x.prototype.load_prop=function(e){return this.load(),this.props[e]};x.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)};x.prototype.clear=function(){this.remove(),this.props={}};x.prototype.register_once=function(e,t,n){return l.isObject(e)?(typeof t&gt;"u"&amp;&amp;(t="None"),this.expire_days=typeof n&gt;"u"?this.default_expiry:n,this.load(),l.each(e,function(r,i){(!this.props.hasOwnProperty(i)||this.props[i]===t)&amp;&amp;(this.props[i]=r)},this),this.save(),!0):!1};x.prototype.register=function(e,t){return l.isObject(e)?(this.expire_days=typeof t&gt;"u"?this.default_expiry:t,this.load(),l.extend(this.props,e),this.save(),!0):!1};x.prototype.unregister=function(e){this.load(),e in this.props&amp;&amp;(delete this.props[e],this.save())};x.prototype.update_search_keyword=function(e){this.register(l.info.searchInfo(e))};x.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:l.info.referringDomain(e)||"$direct"},"")};x.prototype.get_referrer_info=function(){return l.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};x.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)};x.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()};x.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&amp;&amp;(this.remove(),this.cookie_domain=e,this.save())};x.prototype.set_cross_site=function(e){e!==this.cross_site&amp;&amp;(this.cross_site=e,this.remove(),this.save())};x.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&amp;&amp;(this.cross_subdomain=e,this.remove(),this.save())};x.prototype.get_cross_subdomain=function(){return this.cross_subdomain};x.prototype.set_secure=function(e){e!==this.secure&amp;&amp;(this.secure=!!e,this.remove(),this.save())};x.prototype._add_to_people_queue=function(e,t){var n=this._get_queue_key(e),r=t[e],i=this._get_or_create_queue(Ne),s=this._get_or_create_queue(ct),o=this._get_or_create_queue(ue),a=this._get_or_create_queue(Ke),c=this._get_or_create_queue(Ye),d=this._get_or_create_queue(Ie,[]),u=this._get_or_create_queue(_e,[]);n===nn?(l.extend(i,r),this._pop_from_people_queue(Ke,r),this._pop_from_people_queue(Ye,r),this._pop_from_people_queue(ue,r)):n===sn?(l.each(r,function(p,f){f in s||(s[f]=p)}),this._pop_from_people_queue(ue,r)):n===on?l.each(r,function(p){l.each([i,s,a,c],function(f){p in f&amp;&amp;delete f[p]}),l.each(u,function(f){p in f&amp;&amp;delete f[p]}),o[p]=!0}):n===an?(l.each(r,function(p,f){f in i?i[f]+=p:(f in a||(a[f]=0),a[f]+=p)},this),this._pop_from_people_queue(ue,r)):n===dn?(l.each(r,function(p,f){l.isArray(p)&amp;&amp;(f in c||(c[f]=[]),c[f]=c[f].concat(p))}),this._pop_from_people_queue(ue,r)):n===ln?(d.push(r),this._pop_from_people_queue(_e,r)):n===cn&amp;&amp;(u.push(r),this._pop_from_people_queue(ue,r)),P.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),P.log(t),this.save()};x.prototype._pop_from_people_queue=function(e,t){var n=this.props[this._get_queue_key(e)];l.isUndefined(n)||l.each(t,function(r,i){e===_e||e===Ie?l.each(n,function(s){s[i]===r&amp;&amp;delete s[i]}):delete n[i]},this)};x.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))};x.prototype._get_queue_key=function(e){if(e===Ne)return nn;if(e===ct)return sn;if(e===ue)return on;if(e===Ke)return an;if(e===_e)return cn;if(e===Ie)return ln;if(e===Ye)return dn;P.error("Invalid queue:",e)};x.prototype._get_or_create_queue=function(e,t){var n=this._get_queue_key(e);return t=l.isUndefined(t)?{}:t,this.props[n]||(this.props[n]=t)};x.prototype.set_event_timer=function(e,t){var n=this.load_prop(St)||{};n[e]=t,this.props[St]=n,this.save()};x.prototype.remove_event_timer=function(e){var t=this.load_prop(St)||{},n=t[e];return l.isUndefined(n)||(delete this.props[St][e],this.save()),n};var un,fs=function(e,t){throw new Error(e+" not available in this build.")},Q,ps=0,cc=1,lc=function(e){return e},kt=function(){},ce="mixpanel",hs="base64",dc="json",fn="$device:",st=C.XMLHttpRequest&amp;&amp;"withCredentials"in new XMLHttpRequest,gs=!st&amp;&amp;me.indexOf("MSIE")===-1&amp;&amp;me.indexOf("Mozilla")===-1,er=null;Re.sendBeacon&amp;&amp;(er=function(){return Re.sendBeacon.apply(Re,arguments)});var ms={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},ei={api_host:"https://api-js.mixpanel.com",api_routes:ms,api_method:"POST",api_transport:"XHR",api_payload_format:hs,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:kt,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:kt,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_collect_fonts:!1,record_idle_timeout_ms:30*60*1e3,record_inline_images:!1,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:yt,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},_s=!1,_=function(){},jr=function(e,t,n){var r,i=n===ce?Q:Q[n];if(i&amp;&amp;un===ps)r=i;else{if(i&amp;&amp;!l.isArray(i)){P.error("You have already initialized "+n);return}r=new _}if(r._cached_groups={},r._init(e,t,n),r.people=new A,r.people._init(r),!r.get_config("skip_first_touch_marketing")){var s=l.info.campaignParams(null),o={},a=!1;l.each(s,function(c,d){o["initial_"+d]=c,c&amp;&amp;(a=!0)}),a&amp;&amp;r.people.set_once(o)}return ke.DEBUG=ke.DEBUG||r.get_config("debug"),!l.isUndefined(i)&amp;&amp;l.isArray(i)&amp;&amp;(r._execute_array.call(r.people,i.people),r._execute_array(i)),r};_.prototype.init=function(e,t,n){if(l.isUndefined(n)){this.report_error("You must name your new library: init(token, config, name)");return}if(n===ce){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var r=jr(e,t,n);return Q[n]=r,r._loaded(),r};_.prototype._init=function(e,t,n){t=t||{},this.__loaded=!0,this.config={};var r={};if(!("api_payload_format"in t)){var i=t.api_host||ei.api_host;i.match(/\.mixpanel\.com/)&amp;&amp;(r.api_payload_format=dc)}if(this.set_config(l.extend({},ei,r,t,{name:n,token:e,callback_fn:(n===ce?n:ce+"."+n)+"._jsc"})),this._jsc=kt,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!l.localStorage.is_supported(!0)||!st)this._batch_requests=!1,P.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),l.each(this.get_batcher_configs(),function(c){P.log("Clearing batch queue "+c.queue_key),l.localStorage.remove(c.queue_key)});else if(this.init_batchers(),er&amp;&amp;C.addEventListener){var s=l.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);C.addEventListener("pagehide",function(c){c.persisted&amp;&amp;s()}),C.addEventListener("visibilitychange",function(){L.visibilityState==="hidden"&amp;&amp;s()})}}this.persistence=this.cookie=new x(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=l.UUID();this.get_distinct_id()||this.register_once({distinct_id:fn+o,$device_id:o},"");var a=this.get_config("track_pageview");a&amp;&amp;this._init_url_change_tracking(a),this.get_config("record_sessions_percent")&gt;0&amp;&amp;Math.random()*100&lt;=this.get_config("record_sessions_percent")&amp;&amp;this.start_session_recording()};_.prototype.start_session_recording=Pe(function(){if(!C.MutationObserver){P.critical("Browser does not support MutationObserver; skipping session recording");return}var e=l.bind(function(){this._recorder=this._recorder||new C.__mp_recorder(this),this._recorder.startRecording()},this);l.isUndefined(C.__mp_recorder)?fs(this.get_config("recorder_src"),e):e()});_.prototype.stop_session_recording=function(){this._recorder?this._recorder.stopRecording():P.critical("Session recorder module not loaded")};_.prototype.get_session_recording_properties=function(){var e={};if(this._recorder){var t=this._recorder.replayId;t&amp;&amp;(e.$mp_replay_id=t)}return e};_.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&amp;&amp;this.get_config("stop_utm_persistence")){var e=l.info.campaignParams(null);l.each(e,(function(t,n){this.unregister(n)}).bind(this))}};_.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(L.referrer),this.get_config("store_google")&amp;&amp;!this.get_config("stop_utm_persistence")&amp;&amp;this.register(l.info.campaignParams()),this.get_config("save_referrer")&amp;&amp;this.persistence.update_referrer_info(L.referrer)};_.prototype._dom_loaded=function(){l.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||l.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue};_.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!_s)return this.__dom_loaded_queue.push([e,t]),!1;var n=new e().init(this);return n.track.apply(n,t)};_.prototype._init_url_change_tracking=function(e){var t="",n=this.track_pageview();if(n&amp;&amp;(t=l.info.currentUrl()),l.include(["full-url","url-with-path-and-query-string","url-with-path"],e)){C.addEventListener("popstate",function(){C.dispatchEvent(new Event("mp_locationchange"))}),C.addEventListener("hashchange",function(){C.dispatchEvent(new Event("mp_locationchange"))});var r=C.history.pushState;typeof r=="function"&amp;&amp;(C.history.pushState=function(s,o,a){r.call(C.history,s,o,a),C.dispatchEvent(new Event("mp_locationchange"))});var i=C.history.replaceState;typeof i=="function"&amp;&amp;(C.history.replaceState=function(s,o,a){i.call(C.history,s,o,a),C.dispatchEvent(new Event("mp_locationchange"))}),C.addEventListener("mp_locationchange",(function(){var s=l.info.currentUrl(),o=!1;if(e==="full-url"?o=s!==t:e==="url-with-path-and-query-string"?o=s.split("#")[0]!==t.split("#")[0]:e==="url-with-path"&amp;&amp;(o=s.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0]),o){var a=this.track_pageview();a&amp;&amp;(t=s)}}).bind(this))}};_.prototype._prepare_callback=function(e,t){if(l.isUndefined(e))return null;if(st){var n=function(o){e(o,t)};return n}else{var r=this._jsc,i=""+Math.floor(Math.random()*1e8),s=this.get_config("callback_fn")+"["+i+"]";return r[i]=function(o){delete r[i],e(o,t)},s}};_.prototype._send_request=function(e,t,n,r){var i=!0;if(gs)return this.__request_queue.push(arguments),i;var s={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},o=null;!r&amp;&amp;(l.isFunction(n)||typeof n=="string")&amp;&amp;(r=n,n=null),n=l.extend(s,n||{}),st||(n.method="GET");var a=n.method==="POST",c=er&amp;&amp;a&amp;&amp;n.transport.toLowerCase()==="sendbeacon",d=n.verbose;t.verbose&amp;&amp;(d=!0),this.get_config("test")&amp;&amp;(t.test=1),d&amp;&amp;(t.verbose=1),this.get_config("img")&amp;&amp;(t.img=1),st||(r?t.callback=r:(d||this.get_config("test"))&amp;&amp;(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=new Date().getTime().toString(),a&amp;&amp;(o="data="+encodeURIComponent(t.data),delete t.data),e+="?"+l.HTTPBuildQuery(t);var u=this;if("img"in t){var p=L.createElement("img");p.src=e,L.body.appendChild(p)}else if(c){try{i=er(e,o)}catch(I){u.report_error(I),i=!1}try{r&amp;&amp;r(i?1:0)}catch(I){u.report_error(I)}}else if(st)try{var f=new XMLHttpRequest;f.open(n.method,e,!0);var h=this.get_config("xhr_headers");if(a&amp;&amp;(h["Content-Type"]="application/x-www-form-urlencoded"),l.each(h,function(I,S){f.setRequestHeader(S,I)}),n.timeout_ms&amp;&amp;typeof f.timeout&lt;"u"){f.timeout=n.timeout_ms;var m=new Date().getTime()}f.withCredentials=!0,f.onreadystatechange=function(){if(f.readyState===4)if(f.status===200){if(r)if(d){var I;try{I=l.JSONDecode(f.responseText)}catch(E){if(u.report_error(E),n.ignore_json_errors)I=f.responseText;else return}r(I)}else r(Number(f.responseText))}else{var S;if(f.timeout&amp;&amp;!f.status&amp;&amp;new Date().getTime()-m&gt;=f.timeout?S="timeout":S="Bad HTTP status: "+f.status+" "+f.statusText,u.report_error(S),r)if(d){var b=f.responseHeaders||{};r({status:0,httpStatusCode:f.status,error:S,retryAfter:b["Retry-After"]})}else r(0)}},f.send(o)}catch(I){u.report_error(I),i=!1}else{var g=L.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var y=L.getElementsByTagName("script")[0];y.parentNode.insertBefore(g,y)}return i};_.prototype._execute_array=function(e){var t,n=[],r=[],i=[];l.each(e,function(o){o&amp;&amp;(t=o[0],l.isArray(t)?i.push(o):typeof o=="function"?o.call(this):l.isArray(o)&amp;&amp;t==="alias"?n.push(o):l.isArray(o)&amp;&amp;t.indexOf("track")!==-1&amp;&amp;typeof this[t]=="function"?i.push(o):r.push(o))},this);var s=function(o,a){l.each(o,function(c){if(l.isArray(c[0])){var d=a;l.each(c,function(u){d=d[u[0]].apply(d,u.slice(1))})}else this[c[0]].apply(this,c.slice(1))},a)};s(n,this),s(r,this),s(i,this)};_.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events};_.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+t.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+t.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+t.groups,queue_key:e+"_gr"}},this._batcher_configs};_.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=l.bind(function(n){return new fe(n.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:l.bind(function(r,i,s){this._send_request(this.get_config("api_host")+n.endpoint,this._encode_data_for_request(r),i,this._prepare_callback(s,r))},this),beforeSendHook:l.bind(function(r){return this._run_hook("before_send_"+n.type,r)},this),stopAllBatchingFunc:l.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&amp;&amp;this.start_batch_senders()};_.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&amp;&amp;(this._batch_requests=!0,l.each(this.request_batchers,function(e){e.start()}))};_.prototype.stop_batch_senders=function(){this._batch_requests=!1,l.each(this.request_batchers,function(e){e.stop(),e.clear()})};_.prototype.push=function(e){this._execute_array([e])};_.prototype.disable=function(e){typeof e&gt;"u"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)};_.prototype._encode_data_for_request=function(e){var t=l.JSONEncode(e);return this.get_config("api_payload_format")===hs&amp;&amp;(t=l.base64Encode(t)),{data:t}};_.prototype._track_or_batch=function(e,t){var n=l.truncate(e.data,255),r=e.endpoint,i=e.batcher,s=e.should_send_immediately,o=e.send_request_options||{};t=t||kt;var a=!0,c=l.bind(function(){return o.skip_hooks||(n=this._run_hook("before_send_"+e.type,n)),n?(P.log("MIXPANEL REQUEST:"),P.log(n),this._send_request(r,this._encode_data_for_request(n),o,this._prepare_callback(t,n))):null},this);return this._batch_requests&amp;&amp;!s?i.enqueue(n,function(d){d?t(1,n):c()}):a=c(),a&amp;&amp;n};_.prototype.track=Pe(function(e,t,n,r){!r&amp;&amp;typeof n=="function"&amp;&amp;(r=n,n=null),n=n||{};var i=n.transport;i&amp;&amp;(n.transport=i);var s=n.send_immediately;if(typeof r!="function"&amp;&amp;(r=kt),l.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){r(0);return}t=l.extend({},t),t.token=this.get_config("token");var o=this.persistence.remove_event_timer(e);if(!l.isUndefined(o)){var a=new Date().getTime()-o;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?l.info.marketingParams():{};t=l.extend({},l.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var d=this.get_config("property_blacklist");l.isArray(d)?l.each(d,function(f){delete t[f]}):this.report_error("Invalid value for property_blacklist config: "+d);var u={event:e,properties:t},p=this._track_or_batch({type:"events",data:u,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:n},r);return p});_.prototype.set_group=Pe(function(e,t,n){l.isArray(t)||(t=[t]);var r={};return r[e]=t,this.register(r),this.people.set(e,t,n)});_.prototype.add_group=Pe(function(e,t,n){var r=this.get_property(e),i={};return r===void 0?(i[e]=[t],this.register(i)):r.indexOf(t)===-1&amp;&amp;(r.push(t),i[e]=r,this.register(i)),this.people.union(e,t,n)});_.prototype.remove_group=Pe(function(e,t,n){var r=this.get_property(e);if(r!==void 0){var i=r.indexOf(t);i&gt;-1&amp;&amp;(r.splice(i,1),this.register({group_key:r})),r.length===0&amp;&amp;this.unregister(e)}return this.people.remove(e,t,n)});_.prototype.track_with_groups=Pe(function(e,t,n,r){var i=l.extend({},t||{});return l.each(n,function(s,o){s!=null&amp;&amp;(i[o]=s)}),this.track(e,i,r)});_.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)};_.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]};_.prototype.get_group=function(e,t){var n=this._create_map_key(e,t),r=this._cached_groups[n];return(r===void 0||r._group_key!==e||r._group_id!==t)&amp;&amp;(r=new j,r._init(this,e,t),this._cached_groups[n]=r),r};_.prototype.track_pageview=Pe(function(e,t){typeof e!="object"&amp;&amp;(e={}),t=t||{};var n=t.event_name||"$mp_web_page_view",r=l.extend(l.info.mpPageViewProperties(),l.info.campaignParams(),l.info.clickParams()),i=l.extend({},r,e);return this.track(n,i)});_.prototype.track_links=function(){return this._track_dom.call(this,at,arguments)};_.prototype.track_forms=function(){return this._track_dom.call(this,lr,arguments)};_.prototype.time_event=function(e){if(l.isUndefined(e)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var uc={persistent:!0},pn=function(e){var t;return l.isObject(e)?t=e:l.isUndefined(e)?t={}:t={days:e},l.extend({},uc,t)};_.prototype.register=function(e,t){var n=pn(t);n.persistent?this.persistence.register(e,n.days):l.extend(this.unpersisted_superprops,e)};_.prototype.register_once=function(e,t,n){var r=pn(n);r.persistent?this.persistence.register_once(e,t,r.days):(typeof t&gt;"u"&amp;&amp;(t="None"),l.each(e,function(i,s){(!this.unpersisted_superprops.hasOwnProperty(s)||this.unpersisted_superprops[s]===t)&amp;&amp;(this.unpersisted_superprops[s]=i)},this))};_.prototype.unregister=function(e,t){t=pn(t),t.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]};_.prototype._register_single=function(e,t){var n={};n[e]=t,this.register(n)};_.prototype.identify=function(e,t,n,r,i,s,o,a){var c=this.get_distinct_id();if(e&amp;&amp;c!==e){if(typeof e=="string"&amp;&amp;e.indexOf(fn)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var d=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:d},"")}e!==c&amp;&amp;e!==this.get_property(Zt)&amp;&amp;(this.unregister(Zt),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,n,r,i,s,o,a),e!==c&amp;&amp;this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0})};_.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=l.UUID();this.register_once({distinct_id:fn+e,$device_id:e},"")};_.prototype.get_distinct_id=function(){return this.get_property("distinct_id")};_.prototype.alias=function(e,t){if(e===this.get_property(us))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var n=this;return l.isUndefined(t)&amp;&amp;(t=this.get_distinct_id()),e!==t?(this._register_single(Zt,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){n.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)};_.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)};_.prototype.set_config=function(e){if(l.isObject(e)){l.extend(this.config,e);var t=e.batch_size;t&amp;&amp;l.each(this.request_batchers,function(n){n.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&amp;&amp;this.persistence.update_config(this.config),ke.DEBUG=ke.DEBUG||this.get_config("debug")}};_.prototype.get_config=function(e){return this.config[e]};_.prototype._run_hook=function(e){var t=(this.config.hooks[e]||lc).apply(this,Oe.call(arguments,1));return typeof t&gt;"u"&amp;&amp;(this.report_error(e+" hook did not return a value"),t=null),t};_.prototype.get_property=function(e){return this.persistence.load_prop([e])};_.prototype.toString=function(){var e=this.get_config("name");return e!==ce&amp;&amp;(e=ce+"."+e),e};_.prototype._event_is_disabled=function(e){return l.isBlockedUA(me)||this._flags.disable_all_events||l.include(this.__disabled_events,e)};_.prototype._gdpr_init=function(){var e=this.get_config("opt_out_tracking_persistence_type")==="localStorage";e&amp;&amp;l.localStorage.is_supported()&amp;&amp;(!this.has_opted_in_tracking()&amp;&amp;this.has_opted_in_tracking({persistence_type:"cookie"})&amp;&amp;this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&amp;&amp;this.has_opted_out_tracking({persistence_type:"cookie"})&amp;&amp;this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&amp;&amp;(this.get_config("opt_out_tracking_by_default")||l.cookie.get("mp_optout"))&amp;&amp;(l.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))};_.prototype._gdpr_update_persistence=function(e){var t;if(e&amp;&amp;e.clear_persistence)t=!0;else if(e&amp;&amp;e.enable_persistence)t=!1;else return;!this.get_config("disable_persistence")&amp;&amp;this.persistence.disabled!==t&amp;&amp;this.persistence.set_disabled(t),t?this.stop_batch_senders():this._batchers_were_started&amp;&amp;this.start_batch_senders()};_.prototype._gdpr_call_func=function(e,t){return t=l.extend({track:l.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),l.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})};_.prototype.opt_in_tracking=function(e){e=l.extend({enable_persistence:!0},e),this._gdpr_call_func(Qa,e),this._gdpr_update_persistence(e)};_.prototype.opt_out_tracking=function(e){e=l.extend({clear_persistence:!0,delete_user:!0},e),e.delete_user&amp;&amp;this.people&amp;&amp;this.people._identify_called()&amp;&amp;(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(Ja,e),this._gdpr_update_persistence(e)};_.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(Xa,e)};_.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(os,e)};_.prototype.clear_opt_in_out_tracking=function(e){e=l.extend({enable_persistence:!0},e),this._gdpr_call_func(Za,e),this._gdpr_update_persistence(e)};_.prototype.report_error=function(e,t){P.error.apply(P.error,arguments);try{!t&amp;&amp;!(e instanceof Error)&amp;&amp;(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(n){P.error(n)}};_.prototype.init=_.prototype.init;_.prototype.reset=_.prototype.reset;_.prototype.disable=_.prototype.disable;_.prototype.time_event=_.prototype.time_event;_.prototype.track=_.prototype.track;_.prototype.track_links=_.prototype.track_links;_.prototype.track_forms=_.prototype.track_forms;_.prototype.track_pageview=_.prototype.track_pageview;_.prototype.register=_.prototype.register;_.prototype.register_once=_.prototype.register_once;_.prototype.unregister=_.prototype.unregister;_.prototype.identify=_.prototype.identify;_.prototype.alias=_.prototype.alias;_.prototype.name_tag=_.prototype.name_tag;_.prototype.set_config=_.prototype.set_config;_.prototype.get_config=_.prototype.get_config;_.prototype.get_property=_.prototype.get_property;_.prototype.get_distinct_id=_.prototype.get_distinct_id;_.prototype.toString=_.prototype.toString;_.prototype.opt_out_tracking=_.prototype.opt_out_tracking;_.prototype.opt_in_tracking=_.prototype.opt_in_tracking;_.prototype.has_opted_out_tracking=_.prototype.has_opted_out_tracking;_.prototype.has_opted_in_tracking=_.prototype.has_opted_in_tracking;_.prototype.clear_opt_in_out_tracking=_.prototype.clear_opt_in_out_tracking;_.prototype.get_group=_.prototype.get_group;_.prototype.set_group=_.prototype.set_group;_.prototype.add_group=_.prototype.add_group;_.prototype.remove_group=_.prototype.remove_group;_.prototype.track_with_groups=_.prototype.track_with_groups;_.prototype.start_batch_senders=_.prototype.start_batch_senders;_.prototype.stop_batch_senders=_.prototype.stop_batch_senders;_.prototype.start_session_recording=_.prototype.start_session_recording;_.prototype.stop_session_recording=_.prototype.stop_session_recording;_.prototype.get_session_recording_properties=_.prototype.get_session_recording_properties;_.prototype.DEFAULT_API_ROUTES=ms;x.prototype.properties=x.prototype.properties;x.prototype.update_search_keyword=x.prototype.update_search_keyword;x.prototype.update_referrer_info=x.prototype.update_referrer_info;x.prototype.get_cross_subdomain=x.prototype.get_cross_subdomain;x.prototype.clear=x.prototype.clear;var it={},fc=function(){l.each(it,function(e,t){t!==ce&amp;&amp;(Q[t]=e)}),Q._=l},pc=function(){Q.init=function(e,t,n){if(n)return Q[n]||(Q[n]=it[n]=jr(e,t,n),Q[n]._loaded()),Q[n];var r=Q;it[ce]?r=it[ce]:e&amp;&amp;(r=jr(e,t,ce),r._loaded(),it[ce]=r),Q=r,un===cc&amp;&amp;(C[ce]=Q),fc()}},hc=function(){function e(){e.done||(e.done=!0,_s=!0,gs=!1,l.each(it,function(r){r._dom_loaded()}))}function t(){try{L.documentElement.doScroll("left")}catch{setTimeout(t,1);return}e()}if(L.addEventListener)L.readyState==="complete"?e():L.addEventListener("DOMContentLoaded",e,!1);else if(L.attachEvent){L.attachEvent("onreadystatechange",e);var n=!1;try{n=C.frameElement===null}catch{}L.documentElement.doScroll&amp;&amp;n&amp;&amp;t()}l.register_event(C,"load",e,!0)};function gc(e){return fs=e,un=ps,Q=new _,pc(),Q.init(),hc(),Q}function mc(e,t){t()}var lt=gc(mc);let ti=!1,Er=!1;const xt=()=&gt;{ti||Er||(Er=!0,lt.init("0dc7c7c34f69a18a0a6d27629971dd06",{debug:!1,track_pageview:"full-url",persistence:"localStorage"}),Er=!1,ti=!0)},_c=e=&gt;{xt(),lt.track_pageview(e)},yc=(e,t)=&gt;{xt(),lt.track(e,t)},vc=(e,t)=&gt;{xt(),e&amp;&amp;lt.identify(String(e)),t&amp;&amp;lt.people.set(t)},bc=()=&gt;{xt(),lt.reset()},wc={init:xt,logPageView:_c,logEvent:yc,setUser:vc,resetUser:bc};var ri={};/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const ys=function(e){const t=[];let n=0;for(let r=0;r&lt;e.length;r++){let i=e.charCodeAt(r);i&lt;128?t[n++]=i:i&lt;2048?(t[n++]=i&gt;&gt;6|192,t[n++]=i&amp;63|128):(i&amp;64512)===55296&amp;&amp;r+1&lt;e.length&amp;&amp;(e.charCodeAt(r+1)&amp;64512)===56320?(i=65536+((i&amp;1023)&lt;&lt;10)+(e.charCodeAt(++r)&amp;1023),t[n++]=i&gt;&gt;18|240,t[n++]=i&gt;&gt;12&amp;63|128,t[n++]=i&gt;&gt;6&amp;63|128,t[n++]=i&amp;63|128):(t[n++]=i&gt;&gt;12|224,t[n++]=i&gt;&gt;6&amp;63|128,t[n++]=i&amp;63|128)}return t},Sc=function(e){const t=[];let n=0,r=0;for(;n&lt;e.length;){const i=e[n++];if(i&lt;128)t[r++]=String.fromCharCode(i);else if(i&gt;191&amp;&amp;i&lt;224){const s=e[n++];t[r++]=String.fromCharCode((i&amp;31)&lt;&lt;6|s&amp;63)}else if(i&gt;239&amp;&amp;i&lt;365){const s=e[n++],o=e[n++],a=e[n++],c=((i&amp;7)&lt;&lt;18|(s&amp;63)&lt;&lt;12|(o&amp;63)&lt;&lt;6|a&amp;63)-65536;t[r++]=String.fromCharCode(55296+(c&gt;&gt;10)),t[r++]=String.fromCharCode(56320+(c&amp;1023))}else{const s=e[n++],o=e[n++];t[r++]=String.fromCharCode((i&amp;15)&lt;&lt;12|(s&amp;63)&lt;&lt;6|o&amp;63)}}return t.join("")},vs={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i&lt;e.length;i+=3){const s=e[i],o=i+1&lt;e.length,a=o?e[i+1]:0,c=i+2&lt;e.length,d=c?e[i+2]:0,u=s&gt;&gt;2,p=(s&amp;3)&lt;&lt;4|a&gt;&gt;4;let f=(a&amp;15)&lt;&lt;2|d&gt;&gt;6,h=d&amp;63;c||(h=64,o||(f=64)),r.push(n[u],n[p],n[f],n[h])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&amp;&amp;!t?btoa(e):this.encodeByteArray(ys(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&amp;&amp;!t?atob(e):Sc(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i&lt;e.length;){const s=n[e.charAt(i++)],a=i&lt;e.length?n[e.charAt(i)]:0;++i;const d=i&lt;e.length?n[e.charAt(i)]:64;++i;const p=i&lt;e.length?n[e.charAt(i)]:64;if(++i,s==null||a==null||d==null||p==null)throw new kc;const f=s&lt;&lt;2|a&gt;&gt;4;if(r.push(f),d!==64){const h=a&lt;&lt;4&amp;240|d&gt;&gt;2;if(r.push(h),p!==64){const m=d&lt;&lt;6&amp;192|p;r.push(m)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e&lt;this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e&gt;=this.ENCODED_VALS_BASE.length&amp;&amp;(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class kc extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Ic=function(e){const t=ys(e);return vs.encodeByteArray(t,!0)},bs=function(e){return Ic(e).replace(/\./g,"")},Ec=function(e){try{return vs.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Cc(){if(typeof self&lt;"u")return self;if(typeof window&lt;"u")return window;if(typeof global&lt;"u")return global;throw new Error("Unable to locate global object.")}/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Ac=()=&gt;Cc().__FIREBASE_DEFAULTS__,Mc=()=&gt;{if(typeof process&gt;"u"||typeof ri&gt;"u")return;const e=ri.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},Tc=()=&gt;{if(typeof document&gt;"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&amp;&amp;Ec(e[1]);return t&amp;&amp;JSON.parse(t)},xc=()=&gt;{try{return Ac()||Mc()||Tc()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},ws=()=&gt;{var e;return(e=xc())===null||e===void 0?void 0:e.config};/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Oc{constructor(){this.reject=()=&gt;{},this.resolve=()=&gt;{},this.promise=new Promise((t,n)=&gt;{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=&gt;{n?this.reject(n):this.resolve(r),typeof t=="function"&amp;&amp;(this.promise.catch(()=&gt;{}),t.length===1?t(n):t(n,r))}}}function Rc(){const e=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof e=="object"&amp;&amp;e.id!==void 0}function hn(){try{return typeof indexedDB=="object"}catch{return!1}}function gn(){return new Promise((e,t)=&gt;{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=&gt;{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=&gt;{n=!1},i.onerror=()=&gt;{var s;t(((s=i.error)===null||s===void 0?void 0:s.message)||"")}}catch(n){t(n)}})}function Ss(){return!(typeof navigator&gt;"u"||!navigator.cookieEnabled)}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Dc="FirebaseError";class Xe extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=Dc,Object.setPrototypeOf(this,Xe.prototype),Error.captureStackTrace&amp;&amp;Error.captureStackTrace(this,Ot.prototype.create)}}class Ot{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},i=`${this.service}/${t}`,s=this.errors[t],o=s?Nc(s,r):"Error",a=`${this.serviceName}: ${o} (${i}).`;return new Xe(i,a,r)}}function Nc(e,t){return e.replace(Pc,(n,r)=&gt;{const i=t[r];return i!=null?String(i):`&lt;${r}?&gt;`})}const Pc=/\{\$([^}]+)}/g;function tr(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const s=e[i],o=t[i];if(ni(s)&amp;&amp;ni(o)){if(!tr(s,o))return!1}else if(s!==o)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function ni(e){return e!==null&amp;&amp;typeof e=="object"}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Lc=1e3,$c=2,Fc=4*60*60*1e3,Bc=.5;function ii(e,t=Lc,n=$c){const r=t*Math.pow(n,e),i=Math.round(Bc*r*(Math.random()-.5)*2);return Math.min(Fc,r+i)}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function ft(e){return e&amp;&amp;e._delegate?e._delegate:e}class be{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const je="[DEFAULT]";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Uc{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new Oc;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&amp;&amp;r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){var n;const r=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),i=(n=t==null?void 0:t.optional)!==null&amp;&amp;n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(s){if(i)return null;throw s}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(jc(t))try{this.getOrInitializeService({instanceIdentifier:je})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const s=this.getOrInitializeService({instanceIdentifier:i});r.resolve(s)}catch{}}}}clearInstance(t=je){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=&gt;"INTERNAL"in n).map(n=&gt;n.INTERNAL.delete()),...t.filter(n=&gt;"_delete"in n).map(n=&gt;n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=je){return this.instances.has(t)}getOptions(t=je){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[s,o]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(s);r===a&amp;&amp;o.resolve(i)}return i}onInit(t,n){var r;const i=this.normalizeInstanceIdentifier(n),s=(r=this.onInitCallbacks.get(i))!==null&amp;&amp;r!==void 0?r:new Set;s.add(t),this.onInitCallbacks.set(i,s);const o=this.instances.get(i);return o&amp;&amp;t(o,i),()=&gt;{s.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&amp;&amp;this.component&amp;&amp;(r=this.component.instanceFactory(this.container,{instanceIdentifier:qc(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=je){return this.component?this.component.multipleInstances?t:je:t}shouldAutoInitialize(){return!!this.component&amp;&amp;this.component.instantiationMode!=="EXPLICIT"}}function qc(e){return e===je?void 0:e}function jc(e){return e.instantiationMode==="EAGER"}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Hc{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&amp;&amp;this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new Uc(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var q;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(q||(q={}));const Wc={debug:q.DEBUG,verbose:q.VERBOSE,info:q.INFO,warn:q.WARN,error:q.ERROR,silent:q.SILENT},zc=q.INFO,Vc={[q.DEBUG]:"log",[q.VERBOSE]:"log",[q.INFO]:"info",[q.WARN]:"warn",[q.ERROR]:"error"},Gc=(e,t,...n)=&gt;{if(t&lt;e.logLevel)return;const r=new Date().toISOString(),i=Vc[t];if(i)console[i](`[${r}]  ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class ks{constructor(t){this.name=t,this._logLevel=zc,this._logHandler=Gc,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in q))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?Wc[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&amp;&amp;this._userLogHandler(this,q.DEBUG,...t),this._logHandler(this,q.DEBUG,...t)}log(...t){this._userLogHandler&amp;&amp;this._userLogHandler(this,q.VERBOSE,...t),this._logHandler(this,q.VERBOSE,...t)}info(...t){this._userLogHandler&amp;&amp;this._userLogHandler(this,q.INFO,...t),this._logHandler(this,q.INFO,...t)}warn(...t){this._userLogHandler&amp;&amp;this._userLogHandler(this,q.WARN,...t),this._logHandler(this,q.WARN,...t)}error(...t){this._userLogHandler&amp;&amp;this._userLogHandler(this,q.ERROR,...t),this._logHandler(this,q.ERROR,...t)}}const Kc=(e,t)=&gt;t.some(n=&gt;e instanceof n);let si,oi;function Yc(){return si||(si=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Qc(){return oi||(oi=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Is=new WeakMap,Hr=new WeakMap,Es=new WeakMap,Cr=new WeakMap,mn=new WeakMap;function Jc(e){const t=new Promise((n,r)=&gt;{const i=()=&gt;{e.removeEventListener("success",s),e.removeEventListener("error",o)},s=()=&gt;{n(Ee(e.result)),i()},o=()=&gt;{r(e.error),i()};e.addEventListener("success",s),e.addEventListener("error",o)});return t.then(n=&gt;{n instanceof IDBCursor&amp;&amp;Is.set(n,e)}).catch(()=&gt;{}),mn.set(t,e),t}function Xc(e){if(Hr.has(e))return;const t=new Promise((n,r)=&gt;{const i=()=&gt;{e.removeEventListener("complete",s),e.removeEventListener("error",o),e.removeEventListener("abort",o)},s=()=&gt;{n(),i()},o=()=&gt;{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",s),e.addEventListener("error",o),e.addEventListener("abort",o)});Hr.set(e,t)}let Wr={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Hr.get(e);if(t==="objectStoreNames")return e.objectStoreNames||Es.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Ee(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&amp;&amp;(t==="done"||t==="store")?!0:t in e}};function Zc(e){Wr=e(Wr)}function el(e){return e===IDBDatabase.prototype.transaction&amp;&amp;!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(Ar(this),t,...n);return Es.set(r,t.sort?t.sort():[t]),Ee(r)}:Qc().includes(e)?function(...t){return e.apply(Ar(this),t),Ee(Is.get(this))}:function(...t){return Ee(e.apply(Ar(this),t))}}function tl(e){return typeof e=="function"?el(e):(e instanceof IDBTransaction&amp;&amp;Xc(e),Kc(e,Yc())?new Proxy(e,Wr):e)}function Ee(e){if(e instanceof IDBRequest)return Jc(e);if(Cr.has(e))return Cr.get(e);const t=tl(e);return t!==e&amp;&amp;(Cr.set(e,t),mn.set(t,e)),t}const Ar=e=&gt;mn.get(e);function dr(e,t,{blocked:n,upgrade:r,blocking:i,terminated:s}={}){const o=indexedDB.open(e,t),a=Ee(o);return r&amp;&amp;o.addEventListener("upgradeneeded",c=&gt;{r(Ee(o.result),c.oldVersion,c.newVersion,Ee(o.transaction),c)}),n&amp;&amp;o.addEventListener("blocked",c=&gt;n(c.oldVersion,c.newVersion,c)),a.then(c=&gt;{s&amp;&amp;c.addEventListener("close",()=&gt;s()),i&amp;&amp;c.addEventListener("versionchange",d=&gt;i(d.oldVersion,d.newVersion,d))}).catch(()=&gt;{}),a}function Mr(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&amp;&amp;n.addEventListener("blocked",r=&gt;t(r.oldVersion,r)),Ee(n).then(()=&gt;{})}const rl=["get","getKey","getAll","getAllKeys","count"],nl=["put","add","delete","clear"],Tr=new Map;function ai(e,t){if(!(e instanceof IDBDatabase&amp;&amp;!(t in e)&amp;&amp;typeof t=="string"))return;if(Tr.get(t))return Tr.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=nl.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||rl.includes(n)))return;const s=async function(o,...a){const c=this.transaction(o,i?"readwrite":"readonly");let d=c.store;return r&amp;&amp;(d=d.index(a.shift())),(await Promise.all([d[n](...a),i&amp;&amp;c.done]))[0]};return Tr.set(t,s),s}Zc(e=&gt;({...e,get:(t,n,r)=&gt;ai(t,n)||e.get(t,n,r),has:(t,n)=&gt;!!ai(t,n)||e.has(t,n)}));/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class il{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=&gt;{if(sl(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=&gt;n).join(" ")}}function sl(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const zr="@firebase/app",ci="0.10.15";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Ce=new ks("@firebase/app"),ol="@firebase/app-compat",al="@firebase/analytics-compat",cl="@firebase/analytics",ll="@firebase/app-check-compat",dl="@firebase/app-check",ul="@firebase/auth",fl="@firebase/auth-compat",pl="@firebase/database",hl="@firebase/data-connect",gl="@firebase/database-compat",ml="@firebase/functions",_l="@firebase/functions-compat",yl="@firebase/installations",vl="@firebase/installations-compat",bl="@firebase/messaging",wl="@firebase/messaging-compat",Sl="@firebase/performance",kl="@firebase/performance-compat",Il="@firebase/remote-config",El="@firebase/remote-config-compat",Cl="@firebase/storage",Al="@firebase/storage-compat",Ml="@firebase/firestore",Tl="@firebase/vertexai",xl="@firebase/firestore-compat",Ol="firebase";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Vr="[DEFAULT]",Rl={[zr]:"fire-core",[ol]:"fire-core-compat",[cl]:"fire-analytics",[al]:"fire-analytics-compat",[dl]:"fire-app-check",[ll]:"fire-app-check-compat",[ul]:"fire-auth",[fl]:"fire-auth-compat",[pl]:"fire-rtdb",[hl]:"fire-data-connect",[gl]:"fire-rtdb-compat",[ml]:"fire-fn",[_l]:"fire-fn-compat",[yl]:"fire-iid",[vl]:"fire-iid-compat",[bl]:"fire-fcm",[wl]:"fire-fcm-compat",[Sl]:"fire-perf",[kl]:"fire-perf-compat",[Il]:"fire-rc",[El]:"fire-rc-compat",[Cl]:"fire-gcs",[Al]:"fire-gcs-compat",[Ml]:"fire-fst",[xl]:"fire-fst-compat",[Tl]:"fire-vertex","fire-js":"fire-js",[Ol]:"fire-js-all"};/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const rr=new Map,Dl=new Map,Gr=new Map;function li(e,t){try{e.container.addComponent(t)}catch(n){Ce.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function Ae(e){const t=e.name;if(Gr.has(t))return Ce.debug(`There were multiple attempts to register component ${t}.`),!1;Gr.set(t,e);for(const n of rr.values())li(n,e);for(const n of Dl.values())li(n,e);return!0}function Rt(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&amp;&amp;n.triggerHeartbeat(),e.container.getProvider(t)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Nl={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},De=new Ot("app","Firebase",Nl);/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Pl{constructor(t,n,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new be("app",()=&gt;this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw De.create("app-deleted",{appName:this._name})}}function Cs(e,t={}){let n=e;typeof t!="object"&amp;&amp;(t={name:t});const r=Object.assign({name:Vr,automaticDataCollectionEnabled:!1},t),i=r.name;if(typeof i!="string"||!i)throw De.create("bad-app-name",{appName:String(i)});if(n||(n=ws()),!n)throw De.create("no-options");const s=rr.get(i);if(s){if(tr(n,s.options)&amp;&amp;tr(r,s.config))return s;throw De.create("duplicate-app",{appName:i})}const o=new Hc(i);for(const c of Gr.values())o.addComponent(c);const a=new Pl(n,r,o);return rr.set(i,a),a}function As(e=Vr){const t=rr.get(e);if(!t&amp;&amp;e===Vr&amp;&amp;ws())return Cs();if(!t)throw De.create("no-app",{appName:e});return t}function ye(e,t,n){var r;let i=(r=Rl[e])!==null&amp;&amp;r!==void 0?r:e;n&amp;&amp;(i+=`-${n}`);const s=i.match(/\s|\//),o=t.match(/\s|\//);if(s||o){const a=[`Unable to register library "${i}" with version "${t}":`];s&amp;&amp;a.push(`library name "${i}" contains illegal characters (whitespace or "/")`),s&amp;&amp;o&amp;&amp;a.push("and"),o&amp;&amp;a.push(`version name "${t}" contains illegal characters (whitespace or "/")`),Ce.warn(a.join(" "));return}Ae(new be(`${i}-version`,()=&gt;({library:i,version:t}),"VERSION"))}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Ll="firebase-heartbeat-database",$l=1,It="firebase-heartbeat-store";let xr=null;function Ms(){return xr||(xr=dr(Ll,$l,{upgrade:(e,t)=&gt;{switch(t){case 0:try{e.createObjectStore(It)}catch(n){console.warn(n)}}}}).catch(e=&gt;{throw De.create("idb-open",{originalErrorMessage:e.message})})),xr}async function Fl(e){try{const n=(await Ms()).transaction(It),r=await n.objectStore(It).get(Ts(e));return await n.done,r}catch(t){if(t instanceof Xe)Ce.warn(t.message);else{const n=De.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});Ce.warn(n.message)}}}async function di(e,t){try{const r=(await Ms()).transaction(It,"readwrite");await r.objectStore(It).put(t,Ts(e)),await r.done}catch(n){if(n instanceof Xe)Ce.warn(n.message);else{const r=De.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});Ce.warn(r.message)}}}function Ts(e){return`${e.name}!${e.options.appId}`}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Bl=1024,Ul=30*24*60*60*1e3;class ql{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new Hl(n),this._heartbeatsCachePromise=this._storage.read().then(r=&gt;(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var t,n;try{const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),s=ui();return((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&amp;&amp;(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===s||this._heartbeatsCache.heartbeats.some(o=&gt;o.date===s)?void 0:(this._heartbeatsCache.heartbeats.push({date:s,agent:i}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(o=&gt;{const a=new Date(o.date).valueOf();return Date.now()-a&lt;=Ul}),this._storage.overwrite(this._heartbeatsCache))}catch(r){Ce.warn(r)}}async getHeartbeatsHeader(){var t;try{if(this._heartbeatsCache===null&amp;&amp;await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=ui(),{heartbeatsToSend:r,unsentEntries:i}=jl(this._heartbeatsCache.heartbeats),s=bs(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,i.length&gt;0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),s}catch(n){return Ce.warn(n),""}}}function ui(){return new Date().toISOString().substring(0,10)}function jl(e,t=Bl){const n=[];let r=e.slice();for(const i of e){const s=n.find(o=&gt;o.agent===i.agent);if(s){if(s.dates.push(i.date),fi(n)&gt;t){s.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),fi(n)&gt;t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class Hl{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return hn()?gn().then(()=&gt;!0).catch(()=&gt;!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await Fl(this.app);return n!=null&amp;&amp;n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return di(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&amp;&amp;n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return di(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&amp;&amp;n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...t.heartbeats]})}else return}}function fi(e){return bs(JSON.stringify({version:2,heartbeats:e})).length}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Wl(e){Ae(new be("platform-logger",t=&gt;new il(t),"PRIVATE")),Ae(new be("heartbeat",t=&gt;new ql(t),"PRIVATE")),ye(zr,ci,e),ye(zr,ci,"esm2017"),ye("fire-js","")}Wl("");var zl="firebase",Vl="11.0.1";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */ye(zl,Vl,"app");const xs="@firebase/installations",_n="0.6.10";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Os=1e4,Rs=`w:${_n}`,Ds="FIS_v2",Gl="https://firebaseinstallations.googleapis.com/v1",Kl=60*60*1e3,Yl="installations",Ql="Installations";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Jl={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},Qe=new Ot(Yl,Ql,Jl);function Ns(e){return e instanceof Xe&amp;&amp;e.code.includes("request-failed")}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Ps({projectId:e}){return`${Gl}/projects/${e}/installations`}function Ls(e){return{token:e.token,requestStatus:2,expiresIn:Zl(e.expiresIn),creationTime:Date.now()}}async function $s(e,t){const r=(await t.json()).error;return Qe.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function Fs({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function Xl(e,{refreshToken:t}){const n=Fs(e);return n.append("Authorization",ed(t)),n}async function Bs(e){const t=await e();return t.status&gt;=500&amp;&amp;t.status&lt;600?e():t}function Zl(e){return Number(e.replace("s","000"))}function ed(e){return`${Ds} ${e}`}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function td({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=Ps(e),i=Fs(e),s=t.getImmediate({optional:!0});if(s){const d=await s.getHeartbeatsHeader();d&amp;&amp;i.append("x-firebase-client",d)}const o={fid:n,authVersion:Ds,appId:e.appId,sdkVersion:Rs},a={method:"POST",headers:i,body:JSON.stringify(o)},c=await Bs(()=&gt;fetch(r,a));if(c.ok){const d=await c.json();return{fid:d.fid||n,registrationStatus:2,refreshToken:d.refreshToken,authToken:Ls(d.authToken)}}else throw await $s("Create Installation",c)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Us(e){return new Promise(t=&gt;{setTimeout(t,e)})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function rd(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const nd=/^[cdef][\w-]{21}$/,Kr="";function id(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const n=sd(e);return nd.test(n)?n:Kr}catch{return Kr}}function sd(e){return rd(e).substr(0,22)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function ur(e){return`${e.appName}!${e.appId}`}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const qs=new Map;function js(e,t){const n=ur(e);Hs(n,t),od(n,t)}function Hs(e,t){const n=qs.get(e);if(n)for(const r of n)r(t)}function od(e,t){const n=ad();n&amp;&amp;n.postMessage({key:e,fid:t}),cd()}let ze=null;function ad(){return!ze&amp;&amp;"BroadcastChannel"in self&amp;&amp;(ze=new BroadcastChannel("[Firebase] FID Change"),ze.onmessage=e=&gt;{Hs(e.data.key,e.data.fid)}),ze}function cd(){qs.size===0&amp;&amp;ze&amp;&amp;(ze.close(),ze=null)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const ld="firebase-installations-database",dd=1,Je="firebase-installations-store";let Or=null;function yn(){return Or||(Or=dr(ld,dd,{upgrade:(e,t)=&gt;{switch(t){case 0:e.createObjectStore(Je)}}})),Or}async function nr(e,t){const n=ur(e),i=(await yn()).transaction(Je,"readwrite"),s=i.objectStore(Je),o=await s.get(n);return await s.put(t,n),await i.done,(!o||o.fid!==t.fid)&amp;&amp;js(e,t.fid),t}async function Ws(e){const t=ur(e),r=(await yn()).transaction(Je,"readwrite");await r.objectStore(Je).delete(t),await r.done}async function fr(e,t){const n=ur(e),i=(await yn()).transaction(Je,"readwrite"),s=i.objectStore(Je),o=await s.get(n),a=t(o);return a===void 0?await s.delete(n):await s.put(a,n),await i.done,a&amp;&amp;(!o||o.fid!==a.fid)&amp;&amp;js(e,a.fid),a}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function vn(e){let t;const n=await fr(e.appConfig,r=&gt;{const i=ud(r),s=fd(e,i);return t=s.registrationPromise,s.installationEntry});return n.fid===Kr?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function ud(e){const t=e||{fid:id(),registrationStatus:0};return zs(t)}function fd(e,t){if(t.registrationStatus===0){if(!navigator.onLine){const i=Promise.reject(Qe.create("app-offline"));return{installationEntry:t,registrationPromise:i}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=pd(e,n);return{installationEntry:n,registrationPromise:r}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:hd(e)}:{installationEntry:t}}async function pd(e,t){try{const n=await td(e,t);return nr(e.appConfig,n)}catch(n){throw Ns(n)&amp;&amp;n.customData.serverCode===409?await Ws(e.appConfig):await nr(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function hd(e){let t=await pi(e.appConfig);for(;t.registrationStatus===1;)await Us(100),t=await pi(e.appConfig);if(t.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await vn(e);return r||n}return t}function pi(e){return fr(e,t=&gt;{if(!t)throw Qe.create("installation-not-found");return zs(t)})}function zs(e){return gd(e)?{fid:e.fid,registrationStatus:0}:e}function gd(e){return e.registrationStatus===1&amp;&amp;e.registrationTime+Os&lt;Date.now()}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function md({appConfig:e,heartbeatServiceProvider:t},n){const r=_d(e,n),i=Xl(e,n),s=t.getImmediate({optional:!0});if(s){const d=await s.getHeartbeatsHeader();d&amp;&amp;i.append("x-firebase-client",d)}const o={installation:{sdkVersion:Rs,appId:e.appId}},a={method:"POST",headers:i,body:JSON.stringify(o)},c=await Bs(()=&gt;fetch(r,a));if(c.ok){const d=await c.json();return Ls(d)}else throw await $s("Generate Auth Token",c)}function _d(e,{fid:t}){return`${Ps(e)}/${t}/authTokens:generate`}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function bn(e,t=!1){let n;const r=await fr(e.appConfig,s=&gt;{if(!Vs(s))throw Qe.create("not-registered");const o=s.authToken;if(!t&amp;&amp;bd(o))return s;if(o.requestStatus===1)return n=yd(e,t),s;{if(!navigator.onLine)throw Qe.create("app-offline");const a=Sd(s);return n=vd(e,a),a}});return n?await n:r.authToken}async function yd(e,t){let n=await hi(e.appConfig);for(;n.authToken.requestStatus===1;)await Us(100),n=await hi(e.appConfig);const r=n.authToken;return r.requestStatus===0?bn(e,t):r}function hi(e){return fr(e,t=&gt;{if(!Vs(t))throw Qe.create("not-registered");const n=t.authToken;return kd(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function vd(e,t){try{const n=await md(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await nr(e.appConfig,r),n}catch(n){if(Ns(n)&amp;&amp;(n.customData.serverCode===401||n.customData.serverCode===404))await Ws(e.appConfig);else{const r=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await nr(e.appConfig,r)}throw n}}function Vs(e){return e!==void 0&amp;&amp;e.registrationStatus===2}function bd(e){return e.requestStatus===2&amp;&amp;!wd(e)}function wd(e){const t=Date.now();return t&lt;e.creationTime||e.creationTime+e.expiresIn&lt;t+Kl}function Sd(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}function kd(e){return e.requestStatus===1&amp;&amp;e.requestTime+Os&lt;Date.now()}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function Id(e){const t=e,{installationEntry:n,registrationPromise:r}=await vn(t);return r?r.catch(console.error):bn(t).catch(console.error),n.fid}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function Ed(e,t=!1){const n=e;return await Cd(n),(await bn(n,t)).token}async function Cd(e){const{registrationPromise:t}=await vn(e);t&amp;&amp;await t}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Ad(e){if(!e||!e.options)throw Rr("App Configuration");if(!e.name)throw Rr("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw Rr(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function Rr(e){return Qe.create("missing-app-config-values",{valueName:e})}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Gs="installations",Md="installations-internal",Td=e=&gt;{const t=e.getProvider("app").getImmediate(),n=Ad(t),r=Rt(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=&gt;Promise.resolve()}},xd=e=&gt;{const t=e.getProvider("app").getImmediate(),n=Rt(t,Gs).getImmediate();return{getId:()=&gt;Id(n),getToken:i=&gt;Ed(n,i)}};function Od(){Ae(new be(Gs,Td,"PUBLIC")),Ae(new be(Md,xd,"PRIVATE"))}Od();ye(xs,_n);ye(xs,_n,"esm2017");/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const ir="analytics",Rd="firebase_id",Dd="origin",Nd=60*1e3,Pd="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",wn="https://www.googletagmanager.com/gtag/js";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const J=new ks("@firebase/analytics");/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Ld={"already-exists":"A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-initialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."},se=new Ot("analytics","Analytics",Ld);/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function $d(e){if(!e.startsWith(wn)){const t=se.create("invalid-gtag-resource",{gtagURL:e});return J.warn(t.message),""}return e}function Ks(e){return Promise.all(e.map(t=&gt;t.catch(n=&gt;n)))}function Fd(e,t){let n;return window.trustedTypes&amp;&amp;(n=window.trustedTypes.createPolicy(e,t)),n}function Bd(e,t){const n=Fd("firebase-js-sdk-policy",{createScriptURL:$d}),r=document.createElement("script"),i=`${wn}?l=${e}&amp;id=${t}`;r.src=n?n==null?void 0:n.createScriptURL(i):i,r.async=!0,document.head.appendChild(r)}function Ud(e){let t=[];return Array.isArray(window[e])?t=window[e]:window[e]=t,t}async function qd(e,t,n,r,i,s){const o=r[i];try{if(o)await t[o];else{const c=(await Ks(n)).find(d=&gt;d.measurementId===i);c&amp;&amp;await t[c.appId]}}catch(a){J.error(a)}e("config",i,s)}async function jd(e,t,n,r,i){try{let s=[];if(i&amp;&amp;i.send_to){let o=i.send_to;Array.isArray(o)||(o=[o]);const a=await Ks(n);for(const c of o){const d=a.find(p=&gt;p.measurementId===c),u=d&amp;&amp;t[d.appId];if(u)s.push(u);else{s=[];break}}}s.length===0&amp;&amp;(s=Object.values(t)),await Promise.all(s),e("event",r,i||{})}catch(s){J.error(s)}}function Hd(e,t,n,r){async function i(s,...o){try{if(s==="event"){const[a,c]=o;await jd(e,t,n,a,c)}else if(s==="config"){const[a,c]=o;await qd(e,t,n,r,a,c)}else if(s==="consent"){const[a,c]=o;e("consent",a,c)}else if(s==="get"){const[a,c,d]=o;e("get",a,c,d)}else if(s==="set"){const[a]=o;e("set",a)}else e(s,...o)}catch(a){J.error(a)}}return i}function Wd(e,t,n,r,i){let s=function(...o){window[r].push(arguments)};return window[i]&amp;&amp;typeof window[i]=="function"&amp;&amp;(s=window[i]),window[i]=Hd(s,e,t,n),{gtagCore:s,wrappedGtag:window[i]}}function zd(e){const t=window.document.getElementsByTagName("script");for(const n of Object.values(t))if(n.src&amp;&amp;n.src.includes(wn)&amp;&amp;n.src.includes(e))return n;return null}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Vd=30,Gd=1e3;class Kd{constructor(t={},n=Gd){this.throttleMetadata=t,this.intervalMillis=n}getThrottleMetadata(t){return this.throttleMetadata[t]}setThrottleMetadata(t,n){this.throttleMetadata[t]=n}deleteThrottleMetadata(t){delete this.throttleMetadata[t]}}const Ys=new Kd;function Yd(e){return new Headers({Accept:"application/json","x-goog-api-key":e})}async function Qd(e){var t;const{appId:n,apiKey:r}=e,i={method:"GET",headers:Yd(r)},s=Pd.replace("{app-id}",n),o=await fetch(s,i);if(o.status!==200&amp;&amp;o.status!==304){let a="";try{const c=await o.json();!((t=c.error)===null||t===void 0)&amp;&amp;t.message&amp;&amp;(a=c.error.message)}catch{}throw se.create("config-fetch-failed",{httpStatus:o.status,responseMessage:a})}return o.json()}async function Jd(e,t=Ys,n){const{appId:r,apiKey:i,measurementId:s}=e.options;if(!r)throw se.create("no-app-id");if(!i){if(s)return{measurementId:s,appId:r};throw se.create("no-api-key")}const o=t.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},a=new eu;return setTimeout(async()=&gt;{a.abort()},Nd),Qs({appId:r,apiKey:i,measurementId:s},o,a,t)}async function Qs(e,{throttleEndTimeMillis:t,backoffCount:n},r,i=Ys){var s;const{appId:o,measurementId:a}=e;try{await Xd(r,t)}catch(c){if(a)return J.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${a} provided in the "measurementId" field in the local Firebase config. [${c==null?void 0:c.message}]`),{appId:o,measurementId:a};throw c}try{const c=await Qd(e);return i.deleteThrottleMetadata(o),c}catch(c){const d=c;if(!Zd(d)){if(i.deleteThrottleMetadata(o),a)return J.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${a} provided in the "measurementId" field in the local Firebase config. [${d==null?void 0:d.message}]`),{appId:o,measurementId:a};throw c}const u=Number((s=d==null?void 0:d.customData)===null||s===void 0?void 0:s.httpStatus)===503?ii(n,i.intervalMillis,Vd):ii(n,i.intervalMillis),p={throttleEndTimeMillis:Date.now()+u,backoffCount:n+1};return i.setThrottleMetadata(o,p),J.debug(`Calling attemptFetch again in ${u} millis`),Qs(e,p,r,i)}}function Xd(e,t){return new Promise((n,r)=&gt;{const i=Math.max(t-Date.now(),0),s=setTimeout(n,i);e.addEventListener(()=&gt;{clearTimeout(s),r(se.create("fetch-throttle",{throttleEndTimeMillis:t}))})})}function Zd(e){if(!(e instanceof Xe)||!e.customData)return!1;const t=Number(e.customData.httpStatus);return t===429||t===500||t===503||t===504}class eu{constructor(){this.listeners=[]}addEventListener(t){this.listeners.push(t)}abort(){this.listeners.forEach(t=&gt;t())}}async function tu(e,t,n,r,i){if(i&amp;&amp;i.global){e("event",n,r);return}else{const s=await t,o=Object.assign(Object.assign({},r),{send_to:s});e("event",n,o)}}async function ru(e,t,n,r){{const i=await t;e("config",i,{update:!0,user_id:n})}}async function nu(e,t,n,r){{const i=await t;e("config",i,{update:!0,user_properties:n})}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function iu(){if(hn())try{await gn()}catch(e){return J.warn(se.create("indexeddb-unavailable",{errorInfo:e==null?void 0:e.toString()}).message),!1}else return J.warn(se.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;return!0}async function su(e,t,n,r,i,s,o){var a;const c=Jd(e);c.then(h=&gt;{n[h.measurementId]=h.appId,e.options.measurementId&amp;&amp;h.measurementId!==e.options.measurementId&amp;&amp;J.warn(`The measurement ID in the local Firebase config (${e.options.measurementId}) does not match the measurement ID fetched from the server (${h.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(h=&gt;J.error(h)),t.push(c);const d=iu().then(h=&gt;{if(h)return r.getId()}),[u,p]=await Promise.all([c,d]);zd(s)||Bd(s,u.measurementId),i("js",new Date);const f=(a=o==null?void 0:o.config)!==null&amp;&amp;a!==void 0?a:{};return f[Dd]="firebase",f.update=!0,p!=null&amp;&amp;(f[Rd]=p),i("config",u.measurementId,f),u.measurementId}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class ou{constructor(t){this.app=t}_delete(){return delete Ve[this.app.options.appId],Promise.resolve()}}let Ve={},gi=[];const mi={};let Dr="dataLayer",au="gtag",_i,pr,yi=!1;function cu(){const e=[];if(Rc()&amp;&amp;e.push("This is a browser extension environment."),Ss()||e.push("Cookies are not available."),e.length&gt;0){const t=e.map((r,i)=&gt;`(${i+1}) ${r}`).join(" "),n=se.create("invalid-analytics-context",{errorInfo:t});J.warn(n.message)}}function lu(e,t,n){cu();const r=e.options.appId;if(!r)throw se.create("no-app-id");if(!e.options.apiKey)if(e.options.measurementId)J.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${e.options.measurementId} provided in the "measurementId" field in the local Firebase config.`);else throw se.create("no-api-key");if(Ve[r]!=null)throw se.create("already-exists",{id:r});if(!yi){Ud(Dr);const{wrappedGtag:s,gtagCore:o}=Wd(Ve,gi,mi,Dr,au);pr=s,_i=o,yi=!0}return Ve[r]=su(e,gi,mi,t,_i,Dr,n),new ou(e)}function du(e=As()){e=ft(e);const t=Rt(e,ir);return t.isInitialized()?t.getImmediate():uu(e)}function uu(e,t={}){const n=Rt(e,ir);if(n.isInitialized()){const i=n.getImmediate();if(tr(t,n.getOptions()))return i;throw se.create("already-initialized")}return n.initialize({options:t})}function Js(e,t,n){e=ft(e),ru(pr,Ve[e.app.options.appId],t).catch(r=&gt;J.error(r))}function fu(e,t,n){e=ft(e),nu(pr,Ve[e.app.options.appId],t).catch(r=&gt;J.error(r))}function Sn(e,t,n,r){e=ft(e),tu(pr,Ve[e.app.options.appId],t,n,r).catch(i=&gt;J.error(i))}const vi="@firebase/analytics",bi="0.10.9";function pu(){Ae(new be(ir,(t,{options:n})=&gt;{const r=t.getProvider("app").getImmediate(),i=t.getProvider("installations-internal").getImmediate();return lu(r,i,n)},"PUBLIC")),Ae(new be("analytics-internal",e,"PRIVATE")),ye(vi,bi),ye(vi,bi,"esm2017");function e(t){try{const n=t.getProvider(ir).getImmediate();return{logEvent:(r,i,s)=&gt;Sn(n,r,i,s)}}catch(n){throw se.create("interop-component-reg-failed",{reason:n})}}}pu();/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const hu="/firebase-messaging-sw.js",gu="/firebase-cloud-messaging-push-scope",Xs="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",mu="https://fcmregistrations.googleapis.com/v1",Zs="google.c.a.c_id",_u="google.c.a.c_l",yu="google.c.a.ts",vu="google.c.a.e";var wi;(function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(wi||(wi={}));/**
 * @license
 * Copyright 2018 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */var Et;(function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"})(Et||(Et={}));/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Se(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function bu(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/\-/g,"+").replace(/_/g,"/"),r=atob(n),i=new Uint8Array(r.length);for(let s=0;s&lt;r.length;++s)i[s]=r.charCodeAt(s);return i}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Nr="fcm_token_details_db",wu=5,Si="fcm_token_object_Store";async function Su(e){if("databases"in indexedDB&amp;&amp;!(await indexedDB.databases()).map(s=&gt;s.name).includes(Nr))return null;let t=null;return(await dr(Nr,wu,{upgrade:async(r,i,s,o)=&gt;{var a;if(i&lt;2||!r.objectStoreNames.contains(Si))return;const c=o.objectStore(Si),d=await c.index("fcmSenderId").get(e);if(await c.clear(),!!d){if(i===2){const u=d;if(!u.auth||!u.p256dh||!u.endpoint)return;t={token:u.fcmToken,createTime:(a=u.createTime)!==null&amp;&amp;a!==void 0?a:Date.now(),subscriptionOptions:{auth:u.auth,p256dh:u.p256dh,endpoint:u.endpoint,swScope:u.swScope,vapidKey:typeof u.vapidKey=="string"?u.vapidKey:Se(u.vapidKey)}}}else if(i===3){const u=d;t={token:u.fcmToken,createTime:u.createTime,subscriptionOptions:{auth:Se(u.auth),p256dh:Se(u.p256dh),endpoint:u.endpoint,swScope:u.swScope,vapidKey:Se(u.vapidKey)}}}else if(i===4){const u=d;t={token:u.fcmToken,createTime:u.createTime,subscriptionOptions:{auth:Se(u.auth),p256dh:Se(u.p256dh),endpoint:u.endpoint,swScope:u.swScope,vapidKey:Se(u.vapidKey)}}}}}})).close(),await Mr(Nr),await Mr("fcm_vapid_details_db"),await Mr("undefined"),ku(t)?t:null}function ku(e){if(!e||!e.subscriptionOptions)return!1;const{subscriptionOptions:t}=e;return typeof e.createTime=="number"&amp;&amp;e.createTime&gt;0&amp;&amp;typeof e.token=="string"&amp;&amp;e.token.length&gt;0&amp;&amp;typeof t.auth=="string"&amp;&amp;t.auth.length&gt;0&amp;&amp;typeof t.p256dh=="string"&amp;&amp;t.p256dh.length&gt;0&amp;&amp;typeof t.endpoint=="string"&amp;&amp;t.endpoint.length&gt;0&amp;&amp;typeof t.swScope=="string"&amp;&amp;t.swScope.length&gt;0&amp;&amp;typeof t.vapidKey=="string"&amp;&amp;t.vapidKey.length&gt;0}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Iu="firebase-messaging-database",Eu=1,Ct="firebase-messaging-store";let Pr=null;function eo(){return Pr||(Pr=dr(Iu,Eu,{upgrade:(e,t)=&gt;{switch(t){case 0:e.createObjectStore(Ct)}}})),Pr}async function Cu(e){const t=to(e),r=await(await eo()).transaction(Ct).objectStore(Ct).get(t);if(r)return r;{const i=await Su(e.appConfig.senderId);if(i)return await kn(e,i),i}}async function kn(e,t){const n=to(e),i=(await eo()).transaction(Ct,"readwrite");return await i.objectStore(Ct).put(t,n),await i.done,t}function to({appConfig:e}){return e.appId}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Au={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."},re=new Ot("messaging","Messaging",Au);/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function Mu(e,t){const n=await En(e),r=ro(t),i={method:"POST",headers:n,body:JSON.stringify(r)};let s;try{s=await(await fetch(In(e.appConfig),i)).json()}catch(o){throw re.create("token-subscribe-failed",{errorInfo:o==null?void 0:o.toString()})}if(s.error){const o=s.error.message;throw re.create("token-subscribe-failed",{errorInfo:o})}if(!s.token)throw re.create("token-subscribe-no-token");return s.token}async function Tu(e,t){const n=await En(e),r=ro(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)};let s;try{s=await(await fetch(`${In(e.appConfig)}/${t.token}`,i)).json()}catch(o){throw re.create("token-update-failed",{errorInfo:o==null?void 0:o.toString()})}if(s.error){const o=s.error.message;throw re.create("token-update-failed",{errorInfo:o})}if(!s.token)throw re.create("token-update-no-token");return s.token}async function xu(e,t){const r={method:"DELETE",headers:await En(e)};try{const s=await(await fetch(`${In(e.appConfig)}/${t}`,r)).json();if(s.error){const o=s.error.message;throw re.create("token-unsubscribe-failed",{errorInfo:o})}}catch(i){throw re.create("token-unsubscribe-failed",{errorInfo:i==null?void 0:i.toString()})}}function In({projectId:e}){return`${mu}/projects/${e}/registrations`}async function En({appConfig:e,installations:t}){const n=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function ro({p256dh:e,auth:t,endpoint:n,vapidKey:r}){const i={web:{endpoint:n,auth:t,p256dh:e}};return r!==Xs&amp;&amp;(i.web.applicationPubKey=r),i}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Ou=7*24*60*60*1e3;async function Ru(e){const t=await Nu(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:Se(t.getKey("auth")),p256dh:Se(t.getKey("p256dh"))},r=await Cu(e.firebaseDependencies);if(r){if(Pu(r.subscriptionOptions,n))return Date.now()&gt;=r.createTime+Ou?Du(e,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await xu(e.firebaseDependencies,r.token)}catch(i){console.warn(i)}return ki(e.firebaseDependencies,n)}else return ki(e.firebaseDependencies,n)}async function Du(e,t){try{const n=await Tu(e.firebaseDependencies,t),r=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await kn(e.firebaseDependencies,r),n}catch(n){throw n}}async function ki(e,t){const r={token:await Mu(e,t),createTime:Date.now(),subscriptionOptions:t};return await kn(e,r),r.token}async function Nu(e,t){const n=await e.pushManager.getSubscription();return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:bu(t)})}function Pu(e,t){const n=t.vapidKey===e.vapidKey,r=t.endpoint===e.endpoint,i=t.auth===e.auth,s=t.p256dh===e.p256dh;return n&amp;&amp;r&amp;&amp;i&amp;&amp;s}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Ii(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return Lu(t,e),$u(t,e),Fu(t,e),t}function Lu(e,t){if(!t.notification)return;e.notification={};const n=t.notification.title;n&amp;&amp;(e.notification.title=n);const r=t.notification.body;r&amp;&amp;(e.notification.body=r);const i=t.notification.image;i&amp;&amp;(e.notification.image=i);const s=t.notification.icon;s&amp;&amp;(e.notification.icon=s)}function $u(e,t){t.data&amp;&amp;(e.data=t.data)}function Fu(e,t){var n,r,i,s,o;if(!t.fcmOptions&amp;&amp;!(!((n=t.notification)===null||n===void 0)&amp;&amp;n.click_action))return;e.fcmOptions={};const a=(i=(r=t.fcmOptions)===null||r===void 0?void 0:r.link)!==null&amp;&amp;i!==void 0?i:(s=t.notification)===null||s===void 0?void 0:s.click_action;a&amp;&amp;(e.fcmOptions.link=a);const c=(o=t.fcmOptions)===null||o===void 0?void 0:o.analytics_label;c&amp;&amp;(e.fcmOptions.analyticsLabel=c)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Bu(e){return typeof e=="object"&amp;&amp;!!e&amp;&amp;Zs in e}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Uu(e){if(!e||!e.options)throw Lr("App Configuration Object");if(!e.name)throw Lr("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=e;for(const r of t)if(!n[r])throw Lr(r);return{appName:e.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function Lr(e){return re.create("missing-app-config-values",{valueName:e})}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class qu{constructor(t,n,r){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const i=Uu(t);this.firebaseDependencies={app:t,appConfig:i,installations:n,analyticsProvider:r}}_delete(){return Promise.resolve()}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function ju(e){try{e.swRegistration=await navigator.serviceWorker.register(hu,{scope:gu}),e.swRegistration.update().catch(()=&gt;{})}catch(t){throw re.create("failed-service-worker-registration",{browserErrorMessage:t==null?void 0:t.message})}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function Hu(e,t){if(!t&amp;&amp;!e.swRegistration&amp;&amp;await ju(e),!(!t&amp;&amp;e.swRegistration)){if(!(t instanceof ServiceWorkerRegistration))throw re.create("invalid-sw-registration");e.swRegistration=t}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function Wu(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=Xs)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function no(e,t){if(!navigator)throw re.create("only-available-in-window");if(Notification.permission==="default"&amp;&amp;await Notification.requestPermission(),Notification.permission!=="granted")throw re.create("permission-blocked");return await Wu(e,t==null?void 0:t.vapidKey),await Hu(e,t==null?void 0:t.serviceWorkerRegistration),Ru(e)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function zu(e,t,n){const r=Vu(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[Zs],message_name:n[_u],message_time:n[yu],message_device_time:Math.floor(Date.now()/1e3)})}function Vu(e){switch(e){case Et.NOTIFICATION_CLICKED:return"notification_open";case Et.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function Gu(e,t){const n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&amp;&amp;n.messageType===Et.PUSH_RECEIVED&amp;&amp;(typeof e.onMessageHandler=="function"?e.onMessageHandler(Ii(n)):e.onMessageHandler.next(Ii(n)));const r=n.data;Bu(r)&amp;&amp;r[vu]==="1"&amp;&amp;await zu(e,n.messageType,r)}const Ei="@firebase/messaging",Ci="0.12.13";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Ku=e=&gt;{const t=new qu(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=&gt;Gu(t,n)),t},Yu=e=&gt;{const t=e.getProvider("messaging").getImmediate();return{getToken:r=&gt;no(t,r)}};function Qu(){Ae(new be("messaging",Ku,"PUBLIC")),Ae(new be("messaging-internal",Yu,"PRIVATE")),ye(Ei,Ci),ye(Ei,Ci,"esm2017")}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function Ju(){try{await gn()}catch{return!1}return typeof window&lt;"u"&amp;&amp;hn()&amp;&amp;Ss()&amp;&amp;"serviceWorker"in navigator&amp;&amp;"PushManager"in window&amp;&amp;"Notification"in window&amp;&amp;"fetch"in window&amp;&amp;ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&amp;&amp;PushSubscription.prototype.hasOwnProperty("getKey")}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Xu(e=As()){return Ju().then(t=&gt;{if(!t)throw re.create("unsupported-browser")},t=&gt;{throw re.create("indexed-db-unsupported")}),Rt(ft(e),"messaging").getImmediate()}async function Zu(e,t){return e=ft(e),no(e,t)}Qu();const ef={apiKey:"AIzaSyDC_o5_c1vHf2MgU9AN4kekGqu68fkERqc",authDomain:"assistant-c1735.firebaseapp.com",databaseURL:"https://assistant-c1735.firebaseio.com",projectId:"assistant-c1735",storageBucket:"assistant-c1735.appspot.com",messagingSenderId:"1091797834720",appId:"1:1091797834720:web:4a72a9d18887e54491a985",measurementId:"G-BWL5BFFH09"};let ve,Yr;const tf=()=&gt;{const e=Cs(ef);ve=du(e),Yr=Xu(e)},rf=(e,t)=&gt;{ve&amp;&amp;Sn(ve,"page_view",{page_location:e,page_referrer:t,page_title:document.getElementsByTagName("title")[0].textContent||"",page_path:e})},nf=(e,t)=&gt;{ve&amp;&amp;Sn(ve,e,t)},sf=(e,t)=&gt;{ve&amp;&amp;(e&amp;&amp;Js(ve,String(e)),t&amp;&amp;fu(ve,t))},of=()=&gt;{ve&amp;&amp;Js(ve,null)},af=()=&gt;Yr?Zu(Yr,{vapidKey:"BEtPf-Mf5xqg4a67_0krlhWcegbcGuBVcwiVjj7DenWpdpDpnnpwve_SJKdsgCt6PpxbWoq3HfvmnwcxO4E9g5M"}):null,io={init:tf,logPageView:rf,logEvent:nf,setUser:sf,resetUser:of,getMessagingToken:af},so=typeof document&lt;"u"&amp;&amp;typeof window&lt;"u",ht=so?navigator.userAgent:null,Cn=()=&gt;{if(so){if(ht.match(/iPad/i)||ht.match(/iPhone/i)||ht.match(/iPod/i))return"iOS";if(ht.match(/Android/i))return"Android";if(ht.match(/Windows Phone/i))return"Windows Phone"}return!1};var Ti,xi,Oi,Ri;const An=window&amp;&amp;(typeof window.isAppInterface&gt;"u"?!window.AssistantAppInterface&amp;&amp;!((xi=(Ti=window.webkit)==null?void 0:Ti.messageHandlers)!=null&amp;&amp;xi.iOSAssistantInterface)&amp;&amp;!((Ri=(Oi=window.webkit)==null?void 0:Oi.messageHandlers)!=null&amp;&amp;Ri.iOSExtensionAssistantInterface):!window.isAppInterface),oo=(e,t,n,r)=&gt;{try{fetch("https://www.google-analytics.com/mp/collect?measurement_id=G-QH3G6YCPV0&amp;api_secret=i6Ays3ubRDuAv9WVfLYjkg",{referrerPolicy:"strict-origin-when-cross-origin",body:JSON.stringify({events:[{name:"slowResponseTime",params:{api_params_passed:n,api_url:e,device_details:r,response_time:t}}]}),method:"POST",mode:"cors",credentials:"include"})}catch{}},_f=async(e,t,n,r,i)=&gt;{try{const s=Date.now(),o=await fetch(e,{method:"POST",body:t,headers:new Headers({"Content-Type":"application/x-www-form-urlencoded","Cache-Control":"no-store",Pragma:"no-store",...n}),cache:"no-store",signal:r,mode:i}),c=Date.now()-s;if(c&gt;1e3&amp;&amp;oo(e,c,typeof t=="string"?t:t==null?void 0:t.toString(),`${Cn()||"desktop"} ${An?"browser":"app"}`),!o.ok)return console.log("Happy Diwali! API phat gayi:",e),{status:0,msg:(o==null?void 0:o.statusText)||"Something went wrong."};const d=await o.json();return Array.isArray(d)?d[0]:d}catch(s){return console.log("Kuch to gadbad hai daya:",e,s),{status:0,msg:s.message||String(s)||"Something went wrong."}}},yf=async(e,t,n,r)=&gt;{try{const i=Date.now(),s=await fetch(`${e}${t?`?${t}`:""}`,{method:"GET",cache:"no-store",headers:new Headers({"Cache-Control":"no-store",Pragma:"no-store"}),signal:n,mode:r}),a=Date.now()-i;if(a&gt;1e3&amp;&amp;oo(e,a,typeof t=="string"?t:t==null?void 0:t.toString(),`${Cn()||"desktop"} ${An?"browser":"app"}`),!s.ok)return console.log("Happy Diwali! API phat gayi:",e),{status:0,msg:(s==null?void 0:s.statusText)||"Something went wrong."};const c=await s.json();return Array.isArray(c)?c[0]:c}catch(i){return console.log("Kuch to gadbad hai daya:",e,i),{status:0,msg:i.message||String(i)||"Something went wrong."}}},vf=e=&gt;{const t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),s=String(e.getMinutes()).padStart(2,"0"),o=String(e.getSeconds()).padStart(2,"0");return`${t}-${n}-${r} ${i}:${s}:${o}`},bf=e=&gt;{let t=0,n=1/0;return e.forEach(r=&gt;{n=Math.min(Number(r.price),n),t+=Number(r.price)}),{minPrice:n,avgPrice:t/e.length}},wf=e=&gt;e.reduce((t,n)=&gt;{const r=parseInt(String(n.price));return isNaN(r)||(t.minPrice=Math.min(t.minPrice,r),t.maxPrice=Math.max(t.maxPrice,r)),t},{minPrice:1/0,maxPrice:-1/0}),Sf=e=&gt;{let t=e.split("~*~*");t=t.slice(0,t.length-1);const n=[];return t.forEach(r=&gt;{const[i,s]=r.split("~"),[o,a]=i.split(" ");n.push({date:o,time:a,price:s})}),n};function kf(e="",t=40){return e.length&gt;t?e.substring(0,t)+"...":e}const cf=e=&gt;{let t=e.toString();if(/\d+\.?\d*e[+-]*\d+/i.test(t)){const n="0",r=String(t).toLowerCase().split("e"),i=r.pop();let s=Math.abs(Number(i));const o=Number(i)/s,a=r[0].split(".");if(o===-1)t=n+"."+new Array(s).join(n)+a.join("");else{const c=a[1];c&amp;&amp;(s=s-c.length),t=a.join("")+new Array(s+1).join(n)}}return t},Ai=(e,t=2)=&gt;{const n=new RegExp(`^-?\\d*(?:.\\d{0,${t}})?`),r=cf(e);return r.toString().match(n)?r.toString().match(n)[0]:r},Mi=(e,t,n,r=2)=&gt;{let i;!e||Number.isNaN(e)?i="0":i=e.toString();const s=Ai(Number(i),t);n?(i=Ai(Number(i),n),i===s&amp;&amp;(i=s)):i=s,i=i.toString();let o="";i.indexOf(".")&gt;0?(o=i.substring(i.indexOf("."),i.length),o.length-1&lt;t&amp;&amp;(o+="0".repeat(t-(o.length-1)))):t&gt;0&amp;&amp;(o=`.${"0".repeat(t)}`);const a=Math.sign(Number(i))===-1?"-":"";i=Math.floor(Math.abs(Number(i))).toString();let c=i.substring(i.length-3);const d=i.substring(0,i.length-3);return d!==""&amp;&amp;(c=`,${c}`),a+d.replace(new RegExp(`\\B(?=(\\d{${r}})+(?!\\d))`,"g"),",")+c+o},If=(e=0,t={minimumFractionDigits:0,maximumFractionDigits:2},n="en-IN")=&gt;{const{minimumFractionDigits:r=0,maximumFractionDigits:i=Math.max(r,2)}=t;return n==="en-IN"?Mi(e,r,i,2):n==="en-US"?Mi(e,r,i,3):e?Number(e).toLocaleString(n,t):"0"},Ef=(e,t)=&gt;{const n=e.findIndex(r=&gt;r.pos===t.pos&amp;&amp;r.pid===t.pid);return n!==-1?e.unshift(...e.splice(n,1)):(e.unshift(t),e.length&gt;5&amp;&amp;e.pop()),e};function Cf(e,t,n){switch(e){case"Home":return[{id:"home",content:'{"@context": "https://schema.org", "@type": "Organization","name": "Buyhatke","url": "https://buyhatke.com/","logo": "https://compare.buyhatke.com/images/buyhatke_logo_big.png","sameAs": ["https://in.linkedin.com/company/buyhatke","https://www.youtube.com/@BuyHatke","https://www.instagram.com/buyhatke/"]}'}];case"Product":return[{id:"product",content:`
                        {"@context": "https://schema.org/",
                        "@type": "Product",
                        "name": "${$r((n==null?void 0:n.name)||""," ")} ${n==null?void 0:n.site_pos}_${n==null?void 0:n.internalPid}",
                        "image": "${n==null?void 0:n.image}",
						"description":"${$r((n==null?void 0:n.name)||""," ")} ${n==null?void 0:n.site_pos}_${n==null?void 0:n.internalPid}",
						"brand" : {
							"@type" : "Thing",
							"name" : "${n==null?void 0:n.brand}"
						},
						"offers": {
							"@type": "Offer",
							"priceCurrency": "INR",
							"availability": "${(n==null?void 0:n.inStock)===1?"https://schema.org/InStock":"https://schema.org/OutOfStock"}",
							"price" : "${n==null?void 0:n.cur_price}",
							"url": "${t}"
						}${n!=null&amp;&amp;n.rating&amp;&amp;(n!=null&amp;&amp;n.ratingCount)?`,"aggregateRating": {
							"@type": "AggregateRating",
							"ratingValue": "${(n==null?void 0:n.rating)||0}",
							"reviewCount": "${(n==null?void 0:n.ratingCount)||0}"
						}`:""}
                    }
                    `}];case"CreditCardHome":return[{id:"creditCardHome",content:`{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"How can you ensure your credit card usage remains secure?","acceptedAnswer":{"@type":"Answer","text":"To secure your credit card, avoid sharing details like card number, expiry date, CVV, PIN, or OTPs. Track transactions and report any suspicious activity or lost cards promptly."}},{"@type":"Question","name":"Which credit cards are compatible with Google Pay?","acceptedAnswer":{"@type":"Answer","text":"You can add RuPay credit cards as a payment method for UPI transactions made via Google Pay, enabling purchases and transfers even with insufficient balance in your linked savings account. Currently, only Visa and Mastercard credit cards can be linked for non-UPI online payments."}},{"@type":"Question","name":"What is a credit card statement?","acceptedAnswer":{"@type":"Answer","text":"A credit card statement summarizes all transactions made during a billing cycle, including purchases, payments, and other charges. It includes account details like credit limit, total dues, payment due date, and minimum due amount. It can be mailed or downloaded online."}},{"@type":"Question","name":"What is the basic functioning of credit cards for beginners?","acceptedAnswer":{"@type":"Answer","text":"Beginners can use credit cards to build credit history, understand card features, maximize savings, and analyze spending habits for potential upgrades."}},{"@type":"Question","name":"Which credit cards offer complimentary movie tickets?","acceptedAnswer":{"@type":"Answer","text":"Some credit cards offer free movie tickets based on monthly spending, like RBL Play and Kotak PVR. SBI Card ELITE provides up to Rs. 6,000 worth of free movie tickets per year without spending milestones.."}},{"@type":"Question","name":"What exactly is a credit card number?","acceptedAnswer":{"@type":"Answer","text":"The unique 14 to 16 digit code imprinted on your credit card is known as the credit card number. This number serves as a key identifier for the credit card network, issuer, and cardholder, ensuring secure and efficient transactions."}},{"@type":"Question","name":"When does the credit card annual fee get debited from your account?","acceptedAnswer":{"@type":"Answer","text":"The card annual fee is charged yearly in the same month as the joining month of the first year. For example, if your credit card was activated in March, you will be charged the fee in the March monthly statement every year."}},{"@type":"Question","name":"What is the top-rated bank credit card in India?","acceptedAnswer":{"@type":"Answer","text":"Popular banks in India offering credit cards include HDFC, SBI Card, ICICI, Amex, Axis, Citibank, Standard Chartered Bank, and Kotak Mahindra Bank. Choose the card that best suits your needs."}},{"@type":"Question","name":"What is a secured credit card?","acceptedAnswer":{"@type":"Answer","text":"A secured credit card is issued against an asset, such as a Fixed Deposit, making it a great option for individuals who may not qualify for a traditional unsecured credit card. This type of card offers a solid starting point for building credit history and financial responsibility."}},{"@type":"Question","name":"Is it possible to convert my credit card transactions into easy EMIs?","acceptedAnswer":{"@type":"Answer","text":"You can convert big purchases into easy EMIs with varying interest rates depending on the lender. Use the credit card EMI calculator to check rates. Some lenders offer discounted or interest-free EMIs in collaboration with brands. Check EMI options through net banking, mobile app, or customer care."}},{"@type":"Question","name":"Do all Indian credit cards have high annual fees?","acceptedAnswer":{"@type":"Answer","text":"There are credit cards in India that offer great deals, with some being free for a lifetime or having a minimal annual fee. Examples of such cards include HDFC Moneyback, HSBC Platinum, and ICICI Amazon Pay Credit Card. It's important to compare these cards based on their benefits and fees to make the right choice for your financial needs."}},{"@type":"Question","name":"What are Add-On credit cards?","acceptedAnswer":{"@type":"Answer","text":"Add-on credit cards are issued under a primary card, allowing transactions to be directed to a single account for payment. Useful for students away from parents or those without a card. Credit limit may be lower than primary card, with sub-limit distributed equally among additional cards. Terms vary by bank."}},{"@type":"Question","name":"What is the process for obtaining a credit card in India?","acceptedAnswer":{"@type":"Answer","text":"You can apply for a credit card directly through the issuer's website or branch, or through third-party websites."}},{"@type":"Question","name":"What does credit utilization ratio mean?","acceptedAnswer":{"@type":"Answer","text":"Your credit utilization ratio is the proportion of your card usage to the total credit limit available. For instance, let's say your credit card has a generous credit limit of Rs. 100,000. If you have already utilized Rs. 30,000 of this limit, your credit utilization ratio would stand at 30%. It's advisable to aim for maintaining a healthy credit utilization ratio of around 30% across all your credit cards."}},{"@type":"Question","name":"How can I transfer funds from my credit card to my bank account?","acceptedAnswer":{"@type":"Answer","text":"While most banks and NBFCs do not permit direct transfers from your credit card to your bank account, there are certain mobile apps that offer this service for a small fee. However, it is advisable to avoid using this method as a means to access cash."}},{"@type":"Question","name":"Do credit cards charge interest for missed payments?","acceptedAnswer":{"@type":"Answer","text":"Interest rates are levied on any outstanding balance on your credit card. Credit card interest rates are known to be among the highest compared to other debt instruments available to consumers. Typically ranging from 18% to 45% annually, these rates are influenced by factors like the type of card, issuer policies, and other variables."}},{"@type":"Question","name":"What does the foreign exchange mark-up fee entail?","acceptedAnswer":{"@type":"Answer","text":"When making purchases in a currency other than the Indian Rupee, most banks impose a foreign currency mark-up fee ranging from 1.75% to 3.5%, with variations between different credit cards."}},{"@type":"Question","name":"Is it possible to redeem my reward points for cash?","acceptedAnswer":{"@type":"Answer","text":"Certain cards allow converting reward points to statement credit, like SBI Elite where 4 points equal Rs. 1 for settling dues."}},{"@type":"Question","name":"What is the minimum payment required for a credit card?","acceptedAnswer":{"@type":"Answer","text":"The minimum amount due on your card is the smallest payment required by the due date. Typically, it is 5% of the total outstanding balance on your credit card. However, this amount may be higher if you have made purchases on EMI, exceeded your credit limit, or have unpaid dues from the previous month."}},{"@type":"Question","name":"What are the various methods to settle your credit card bills?","acceptedAnswer":{"@type":"Answer","text":"Multiple payment options available include net banking, mobile banking, bill desk, NEFT, and cheque. You can also pay in person at a bank branch, but cash payments may incur a fee."}},{"@type":"Question","name":"What are the consequences of late credit card bill payments?","acceptedAnswer":{"@type":"Answer","text":"Missing a credit card payment incurs a fixed late fee and ongoing interest charges, leading to a debt spiral and impacting your credit score."}},{"@type":"Question","name":"What exactly is the credit limit?","acceptedAnswer":{"@type":"Answer","text":"The credit limit is the maximum amount you can spend on your card. It is set by banks based on factors like credit score and repayment history. Avoid reaching the limit regularly to maintain a good credit score."}},{"@type":"Question","name":"What steps can I take to boost my credit limit?","acceptedAnswer":{"@type":"Answer","text":"To increase your credit limit, contact your card issuer via net banking or customer care to request a limit increase."}},{"@type":"Question","name":"Is it possible to utilize my credit card abroad?","acceptedAnswer":{"@type":"Answer","text":"Credit cards can be used domestically and internationally, with a typical 3.5% forex markup fee on overseas transactions."}},{"@type":"Question","name":"What exactly is a revolving credit facility?","acceptedAnswer":{"@type":"Answer","text":"A revolving credit facility provides you with the flexibility to borrow funds, use them as needed, repay the amount, and then access the funds again when required. However, your access to the funds is limited to the credit limit assigned to you."}}]}`}];default:return[{id:"default",content:'{"@context": "https://schema.org/","@type": "WebSite","name": "Buyhatke", "url": "https://buyhatke.com/","potentialAction": { "@type": "SearchAction", "target": "https://buyhatke.com/search?q={search_term_string}", "query-input": "required name=search_term_string"}}'}]}}function Af(e){const t=document.createElement("script");t.type="application/ld+json",t.dataset.id=e.id,t.innerHTML=e.content,document.body.appendChild(t)}const Mf=()=&gt;new Promise(e=&gt;{window.scrollTo({top:0,behavior:"smooth"}),setTimeout(()=&gt;{e()},1e3)}),lf=(e={})=&gt;(e.appVersion="3.6.1",e.isApp=!An,e={...e},e);function Tf(e,t){const n=lf(t);wc.logEvent(e,n),io.logEvent(e,n)}function xf(e,t){try{e&amp;&amp;io.logPageView(e,t)}catch(n){console.log("analytics in triggerScreenAnalytics",["dhoka",n],"fail")}}async function Of(){let e=!1;return window&amp;&amp;window.matchMedia&amp;&amp;window.matchMedia("(display-mode: standalone)").matches&amp;&amp;(e=!0),!e&amp;&amp;navigator&amp;&amp;(navigator!=null&amp;&amp;navigator.getInstalledRelatedApps)&amp;&amp;(e=(await navigator.getInstalledRelatedApps()).length&gt;0),e||localStorage.getItem("pwa_install")==="sucess"}function Rf(){let e=-1;const t=Cn();return t==="Android"?e=0:t==="iOS"&amp;&amp;(navigator.userAgent.match("CriOS")?e=2:e=1),e}function Df(){return typeof window&lt;"u"&amp;&amp;window.matchMedia("(max-width: 768px)").matches}const Nf=()=&gt;{{const e=/Chrome/.test(window.navigator.userAgent)&amp;&amp;/Google Inc/.test(window.navigator.vendor),t=!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent);return e&amp;&amp;t}},ie={"lifetime-free":"Lifetime Free",fuel:"Fuel",travel:"Travel",lifestyle:"Lifestyle",rewards:"Rewards","dine-in":"Dine In",movies:"Movies","airport-lounge":"Airport Lounge",shopping:"Shopping",ott:"Ott",cashback:"Cashback","railway-lounge":"Railwa y Lounge"},Pf=e=&gt;ie[e],Lf=(e,t)=&gt;{let n;return function(...r){clearTimeout(n),n=setTimeout(()=&gt;{e(...r)},t)}};function $f(e,t){let n,r=0;return function(...i){const s=Date.now();s-r&gt;=t?(e.apply(this,i),r=s):(clearTimeout(n),n=setTimeout(()=&gt;{e.apply(this,i),r=Date.now()},t-(s-r)))}}const Ff=(e,t,n,r,i)=&gt;{const s=n.toLowerCase().replace(/\s+/g,"-"),o=r.toLowerCase().replace(/\s+/g,"-");return`/${e}/${s}-credit-cards/${o}-${i}`},Bf=(e="credit-cards/compare-cards",t)=&gt;{const n=[];t.forEach(i=&gt;{n.push(`${i.name.toLowerCase().replace(/\s+/g,"-")}-${i.id}-vs-`)}),n.sort();let r=`/${e}/`;return n.forEach(i=&gt;{r=r+i}),r.includes("-vs-")?r.slice(0,r.length-4):r},Uf={"lifetime-free":[ie["lifetime-free"]],fuel:[ie.fuel],travel:[ie.travel],lifestyle:[ie.lifestyle],rewards:[ie.rewards],"dine-in":[ie["dine-in"]],movie:[ie.movie],"airport-lounge":[ie["airport-lounge"]],shopping:[ie.shopping],ott:[ie.ott],cashback:[ie.cashback],"railway-lounge":[ie["railway-lounge"]],"all-cards":[]};function qf(e){return e.split("-").map(n=&gt;n.charAt(0).toUpperCase()+n.slice(1)).join(" ")}const Ut=(e,t=1)=&gt;{var i;const n=(i=String(e))==null?void 0:i.split("."),r=n[0].concat(n[1]?`.${n[1].slice(0,t)}`:".0");return Number(r||e)||e},jf=(e,t=1)=&gt;e?e&gt;1e3&amp;&amp;e&lt;1e6?{amount:Ut(Number(e/1e3),t),type:"K"}:e&gt;1e6&amp;&amp;e&lt;1e9?{amount:Ut(Number(e/1e6),t),type:"M"}:e&gt;1e9?{amount:Ut(Number(e/1e9),t),type:"B"}:{amount:Number(Ut(Number(e),t)),type:""}:{amount:0,type:""},Hf=[{img:uo,slug:"hdfc-bank"},{img:lo,slug:"axis-bank"},{img:ho,slug:"icici-bank"},{img:fo,slug:"american-express"},{img:go,slug:"state-bank-of-india"},{img:mo,slug:"idfc-first-bank"},{img:po,slug:"au-small-finance-bank"},{img:_o,slug:"indusind-bank"}],Wf=[{img:wo,slug:"lifetime-free",title:"Lifetime Free"},{img:ko,slug:"rewards",title:"Rewards"},{img:vo,slug:"fuel",title:"Fuel"},{img:yo,slug:"dine-in",title:"Dine In"},{img:Io,slug:"travel",title:"Travel"},{img:So,slug:"movies",title:"Movies"},{img:bo,slug:"lifestyle",title:"LifeStyle"}],zf=()=&gt;{const e=new Date,t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0");return`${String(e.getDate()).padStart(2,"0")}/${n}/${t}`},Vf=e=&gt;{typeof document&lt;"u"&amp;&amp;ao("hatkeTrackPriceReferral")===null&amp;&amp;e&amp;&amp;df("hatkeTrackPriceReferral",e,3650)};function df(e,t,n){if(typeof document&lt;"u"){let r="";{const i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3),r="; expires="+i.toUTCString()}document.cookie=e+"="+(t||"")+r+"; path=/"}}function ao(e){if(typeof document&lt;"u"){const t=e+"=",n=document.cookie.split(";");for(let r=0;r&lt;n.length;r++){let i=n[r];for(;i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(t)==0)return i.substring(t.length,i.length)}}return null}function Gf(e){return/^\d{10}$/.test(e)}function Kf(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}export{Mf as A,Of as B,Rf as C,Nf as D,xf as E,io as F,Ff as G,Hf as H,Wf as I,Lf as J,Uf as K,Pf as L,wc as M,qf as N,$f as O,ff as P,Af as a,jf as b,kf as c,mf as d,Cn as e,hf as f,Cf as g,gf as h,An as i,zf as j,uf as k,Sf as l,If as m,Kf as n,bf as o,_f as p,Df as q,yf as r,vf as s,Tf as t,wf as u,Gf as v,Vf as w,Ef as x,pf as y,Bf as z};
</pre></body></html>