PageSourceSearch

https://goteleport.com/blog/_next/static/chunks/pages/_app-67bce29a5da2efd5.js?dpl=36692313122

js goteleport.com collected 2026-10-02 02:30:50 UTC 161,339 bytes, 36 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{92:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(82241)}])},3422:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.destroyCookie=t.setCookie=t.parseCookies=void 0;var i=r(53441),o=r(92493),s=r(38167);function a(e,t){var r,n;return(null==(n=null==(r=null==e?void 0:e.req)?void 0:r.headers)?void 0:n.cookie)?i.parse(e.req.headers.cookie,t):s.isBrowser()?i.parse(document.cookie,t):{}}function c(e,t,r,a){var c,u;if(void 0===a&&(a={}),(null==(c=null==e?void 0:e.res)?void 0:c.getHeader)&&e.res.setHeader){if(null==(u=null==e?void 0:e.res)?void 0:u.finished)return console.warn('Not setting "'+t+'" cookie. Response has finished.'),console.warn("You should set cookie before res.send()"),{};var l=e.res.getHeader("Set-Cookie")||[];"string"==typeof l&&(l=[l]),"number"==typeof l&&(l=[]);var d=o.parse(l,{decodeValues:!1}),f=s.createCookie(t,r,a),h=[];d.forEach(function(e){if(!s.areCookiesEqual(e,f)){var t=i.serialize(e.name,e.value,n({encode:function(e){return e}},e));h.push(t)}}),h.push(i.serialize(t,r,a)),e.res.setHeader("Set-Cookie",h)}if(s.isBrowser()){if(a&&a.httpOnly)throw Error("Can not set a httpOnly cookie in the browser.");document.cookie=i.serialize(t,r,a)}return{}}function u(e,t,r){return c(e,t,"",n(n({},r||{}),{maxAge:-1}))}t.parseCookies=a,t.setCookie=c,t.destroyCookie=u,t.default={set:c,get:a,destroy:u}},21626:(e,t,r)=>{"use strict";r.d(t,{NP:()=>eA,DU:()=>e$,Ay:()=>eM});var n,i,o,s=r(37639),a=r(14232),c=r(33875),u=r.n(c);let l=function(e){function t(e,t,n){var i=t.trim().split(p);t=i;var o=i.length,s=e.length;switch(s){case 0:case 1:var a=0;for(e=0===s?"":e[0]+" ";a<o;++a)t[a]=r(e,t[a],n).trim();break;default:var c=a=0;for(t=[];a<o;++a)for(var u=0;u<s;++u)t[c++]=r(e[u]+" ",i[a],n).trim()}return t}function r(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<+r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function n(e,t,r,o){var s=e+";",a=2*t+3*r+4*o;if(944===a){e=s.indexOf(":",9)+1;var c=s.substring(e,s.length-1).trim();return c=s.substring(0,e).trim()+c+";",1===I||2===I&&i(c,1)?"-webkit-"+c+c:c}if(0===I||2===I&&!i(s,1))return s;switch(a){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(C,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(c=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+c+s;case 1005:return f.test(s)?s.replace(d,":-webkit-")+s.replace(d,":-moz-")+s:s;case 1e3:switch(t=(c=s.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=s.replace(y,"tb");break;case 232:c=s.replace(y,"tb-rl");break;case 220:c=s.replace(y,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+c+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,a=(c=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCo
vendor: 5,294 bytes, line 1
1deAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:s=s.replace(c,"-webkit-"+c)+";"+s;break;case 207:case 102:s=s.replace(c,"-webkit-"+(102<a?"inline-":"")+"box")+";"+s.replace(c,"-webkit-"+c)+";"+s.replace(c,"-ms-"+c+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return c=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+c+"-ms-flex-"+c+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(k,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(k,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?n(e.replace("stretch","fill-available"),t,r,o).replace(":fill-available",":stretch"):s.replace(c,"-webkit-"+c)+s.replace(c,"-moz-"+c.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===r+o&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+s}return s}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),T(2!==t?n:n.replace(S,"$1"),r,t)}function o(e,t){var r=n(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(w," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,i,o,s,a,u,l){for(var d,f=0,h=t;f<R;++f)switch(d=O[f].call(c,e,h,r,n,i,o,s,a,u,l)){case void 0:case!1:case!0:case null:break;default:h=d}if(h!==t)return h}function a(e){return void 0!==(e=e.prefix)&&(T=null,e?"function"!=typeof e?I=1:(I=2,T=e):I=0),a}function c(e,r){var a=e;if(33>a.charCodeAt(0)&&(a=a.trim()),a=[a],0<R){var c=s(-1,r,a,a,F,P,0,0,0,0);void 0!==c&&"string"==typeof c&&(r=c)}var d=function e(r,a,c,d,f){for(var h,p,g,y,w,k=0,S=0,x=0,C=0,O=0,T=0,M=g=h=0,D=0,j=0,N=0,L=0,B=c.length,H=B-1,z="",q="",W="",U="";D<B;){if(p=c.charCodeAt(D),D===H&&0!==S+C+x+k&&(0!==S&&(p=47===S?10:47),C=x=k=0,B++,H++),0===S+C+x+k){if(D===H&&(0<j&&(z=z.replace(l,"")),0<z.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:z+=c.charAt(D)}p=59}switch(p){case 123:for(h=(z=z.trim()).charCodeAt(0),g=1,L=++D;D<B;){switch(p=c.charCodeAt(D)){case 123:g++;break;case 125:g--;break;case 47:switch(p=c.charCodeAt(D+1)){case 42:case 47:e:{for(M=D+1;M<H;++M)switch(c.charCodeAt(M)){case 47:if(42===p&&42===c.charCodeAt(M-1)&&D+2!==M){D=M+1;break e}break;case 10:if(47===p){D=M+1;break e}}D=M}}break;case 91:p++;case 40:p++;case 34:case 39:for(;D++<H&&c.charCodeAt(D)!==p;);}if(0===g)break;D++}if(g=c.substring(L,D),0===h&&(h=(z=z.replace(u,"").trim()).charCodeAt(0)),64===h){switch(0<j&&(z=z.replace(l,"")),p=z.charCodeAt(1)){case 100:case 109:case 115:case 45:j=a;break;default:j=A}if(L=(g=e(a,j,g,p,f+1)).length,0<R&&(w=s(3,g,j=t(A,z,N),a,F,P,L,p,f,d),z=j.join(""),void 0!==w&&0===(L=(g=w.trim()).length)&&(p=0,g="")),0<L)switch(p){case 115:z=z.replace(b,o);case 100:case 109:case 45:g=z+"{"+g+"}";break;case 107:g=(z=z.replace(v,"$1 $2"))+"{"+g+"}",g=1===I||2===I&&i("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=z+g,112===d&&(q+=g,g="")}else g=""}else g=e(a,t(a,z,N),g,d,f+1);W+=g,g=N=j=M=h=0,z="",p=c.charCodeAt(++D);break;case 125:case 59:if(1<(L=(z=(0<j?z.replace(l,""):z).trim()).length))switch(0===M&&(45===(h=z.charCodeAt(0))||96<h&&123>h)&&(L=(z=z.replace(" ",":")).length),0<R&&void 0!==(w=s(1,z,a,r,F,P,q.length,d,f,d))&&0===(L=(z=w.trim()).length)&&(z="\0\0"),h=z.charCodeAt(0),p=z.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){U+=z+c.charAt(D);break}default:58!==z.charCodeAt(L-1)&&(q+=n(z,h,p,z.charCodeAt(2)))}N=j=M=h=0,z="",p=c.charCodeAt(++D)}}switch(p){case 13:case 10:47===S?S=0:0===1+h&&107!==d&&0<z.length&&(j=1,z+="\0"),0<R*$&&s(0,z,a,r,F,P,q.length,d,f,d),P=1,F++;break;case 59:case 125:if(0===S+C+x+k){P++;break}default:switch(P++,y=c.charAt(D),p){case 9:case 32:if(0===C+k+S)switch(O){case 44:case 58:case 9:case 32:y="";break;default:32!==p&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===C+S+k&&(j=N=1,y="\f"+y);break;case 108:if(0===C+S+k+E&&0<M)switch(D-M){case 2:112===O&&58===c.charCodeAt(D-3)&&(E=O);case 8:111===T&&(E=T)}break;case 58:0===C+S+k&&(M=D);break;case 44:0===S+x+C+k&&(j=1,y+="\r");break;case 34:case 39:0===S&&(C=C===p?0:0===C?p:C);break;case 91:0===C+S+x&&k++;break;case 93:0===C+S+x&&k--;break;case 41:0===C+S+k&&x--;break;case 40:0===C+S+k&&(0===h&&(2*O+3*T==533||(h=1)),x++);break;case 64:0===S+x+C+k+M+g&&(g=1);break;case 42:case 47:if(!(0<C+k+x))switch(S){case 0:switch(2*p+3*c.charCodeAt(D+1)){case 235:S=47;break;case 220:L=D,S=42}break;case 42:47===p&&42===O&&L+2!==D&&(33===c.charCodeAt(L+2)&&(q+=c.substring(L,D+1)),y="",S=0)}}0===S&&(z+=y)}T=O,O=p,D++}if(0<(L=q.length)){if(j=a,0<R&&void 0!==(w=s(2,q,j,r,F,P,L,d,f,d))&&0===(q=w).length)return U+q+W;if(q=j.join(",")+"{"+q+"}",0!=I*E){switch(2!==I||i(q,2)||(E=0),E){case 111:q=q.replace(m,":-moz-$1")+q;break;case 112:q=q.replace(_,"::-webkit-input-$1")+q.replace(_,"::-moz-$1")+q.replace(_,":-ms-input-$1")+q}E=0}}return U+q+W}(A,a,r,0,0);return 0<R&&void 0!==(c=s(-2,d,a,a,F,P,d.length,0,0,0))&&(d=c),E=0,P=F=1,d}var u=/^\0+/g,l=/[\0\r\f]/g,d=/: */g,f=/zoo|gra/,h=/([,: ])(transform)/g,p=/,\r+?/g,g=
1/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,_=/::(place)/g,m=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,b=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,k=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,P=1,F=1,E=0,I=1,A=[],O=[],R=0,T=null,$=0;return c.use=function e(t){switch(t){case void 0:case null:R=O.length=0;break;default:if("function"==typeof t)O[R++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else $=0|!!t}return e},c.set=a,void 0!==e&&a(e),c},d={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var f=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,h=(n=function(e){return f.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)},i=Object.create(null),function(e){return void 0===i[e]&&(i[e]=n(e)),i[e]}),p=r(23520),g=r.n(p),v=r(65364);function _(){return(_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 4,858 bytes, line 1
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var m=function(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r},y=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,s.QP)(e)},b=Object.freeze([]),w=Object.freeze({});function k(e){return"function"==typeof e}function S(e){return e.displayName||e.name||"Component"}function x(e){return e&&"string"==typeof e.styledComponentId}var C=void 0!==v&&void 0!==v.env&&(v.env.REACT_APP_SC_ATTR||v.env.SC_ATTR)||"data-styled",P="u">typeof window&&"HTMLElement"in window,F=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==v&&void 0!==v.env&&(void 0!==v.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==v.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==v.env.REACT_APP_SC_DISABLE_SPEEDY&&v.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==v.env.SC_DISABLE_SPEEDY&&""!==v.env.SC_DISABLE_SPEEDY&&"false"!==v.env.SC_DISABLE_SPEEDY&&v.env.SC_DISABLE_SPEEDY)),E={};function I(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var A=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)(i<<=1)<0&&I(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o<i;o++)this.groupSizes[o]=0}for(var s=this.indexOfGroup(e+1),a=0,c=t.length;a<c;a++)this.tag.insertRule(s,t[a])&&(this.groupSizes[e]++,s++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),O=new Map,R=new Map,T=1,$=function(e){if(O.has(e))return O.get(e);for(;R.has(T);)T++;var t=T++;return O.set(e,t),R.set(t,e),t},M=function(e,t){t>=T&&(T=t+1),O.set(e,t),R.set(t,e)},D="style["+C+'][data-styled-version="5.3.11"]',j=RegExp("^"+C+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),N=function(e,t,r){for(var n,i=r.split(","),o=0,s=i.length;o<s;o++)(n=i[o])&&e.registerName(t,n)},L=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],i=0,o=r.length;i<o;i++){var s=r[i].trim();if(s){var a=s.match(j);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(M(u,c),N(e,u,a[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(s)}}},B=function(){return r.nc},H=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(C))return n}}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(C,"active"),n.setAttribute("data-styled-version","5.3.11");var s=B();return s&&n.setAttribute("nonce",s),r.insertBefore(n,o),n},z=function(){function e(e){var t=this.element=H(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}I(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),q=function(){function e(e){var t=this.element=H(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),W=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=P,V={isServer:!P,useCSSOMInjection:!F},G=function(){function e(e,t,r){void 0===e&&(e=w),void 0===t&&(t={}),this.options=_({},V,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&P&&U&&(U=!1,function(e){for(var t=document.querySelectorAll(D),r=0,n=t.length;r<n;r++){var i=t[r];
1i&&"active"!==i.getAttribute(C)&&(L(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return $(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(_({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){var e,t,r,n;return this.tag||(this.tag=(t=(e=this.options).isServer,r=e.useCSSOMInjection,n=e.target,new A(t?new W(n):r?new z(n):new q(n))))},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if($(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules($(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup($(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=0;i<r;i++){var o,s=(o=i,R.get(o));if(void 0!==s){var a=e.names.get(s),c=t.getGroup(i);if(a&&c&&a.size){var u=C+".g"+i+'[id="'+s+'"]',l="";void 0!==a&&a.forEach(function(e){e.length>0&&(l+=e+",")}),n+=""+c+u+'{content:"'+l+'"}/*!sc*/\n'}}}return n}(this)},e}(),Y=/(a)(d)/gi,Q=function(e){return String.fromCharCode(e+(e>25?39:97))};function X(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Q(t%52)+r;return(Q(t%52)+r).replace(Y,"$1-$2")}var J=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},K=function(e){return J(5381,e)};function Z(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(k(r)&&!x(r))return!1}return!0}var ee=K("5.3.11"),et=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Z(e),this.componentId=t,this.baseHash=J(ee,t),this.baseStyle=r,G.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))i.push(this.staticRulesId);else{var o=ey(this.rules,e,t,r).join(""),s=X(J(this.baseHash,o)>>>0);if(!t.hasNameForId(n,s)){var a=r(o,"."+s,void 0,n);t.insertRules(n,s,a)}i.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,u=J(this.baseHash,r.hash),l="",d=0;d<c;d++){var f=this.rules[d];if("string"==typeof f)l+=f;else if(f){var h=ey(f,e,t,r),p=Array.isArray(h)?h.join(""):h;u=J(u,p+d),l+=p}}if(l){var g=X(u>>>0);if(!t.hasNameForId(n,g)){var v=r(l,"."+g,void 0,n);t.insertRules(n,g,v)}i.push(g)}}return i.join(" ")},e}(),er=/^\s*\/\/.*$/gm,en=[":","[",".","#"];function ei(e){var t,r,n,i,o=void 0===e?w:e,s=o.options,a=void 0===s?w:s,c=o.plugins,u=void 0===c?b:c,d=new l(a),f=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,i,o,s,a,c,u,l,d){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(i[0]+n),"";default:return n+(0===d?"/*|*/":"")}case -2:n.split("/*|*/}").forEach(t)}}}(function(e){f.push(e)}),p=function(e,n,o){return 0===n&&-1!==en.indexOf(o[r.length])||o.match(i)?e:"."+t};function g(e,o,s,a){void 0===a&&(a="&");var c=e.replace(er,""),u=o&&s?s+" "+o+" { "+c+" }":c;return t=a,n=RegExp("\\"+(r=o)+"\\b","g"),i=RegExp("(\\"+r+"\\b){2,}"),d(s||!o?"":o,u)}return d.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,p))},h,function(e){if(-2===e){var t=f;return f=[],t}}])),g.hash=u.length?u.reduce(function(e,t){return t.name||I(15),J(e,t.name)},5381).toString():"",g}var eo=a.createContext(),es=(eo.Consumer,a.createContext()),ea=(es.Consumer,new G),ec=ei();function eu(){return(0,a.useContext)(eo)||ea}function el(){return(0,a.useContext)(es)||ec}function ed(e){var t=(0,a.useState)(e.stylisPlugins),r=t[0],n=t[1],i=eu(),o=(0,a.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),s=(0,a.useMemo)(function(){return ei({options:{prefix:!e.disableVendorPrefixes},plugins:r})},[e.disableVendorPrefixes,r]);
1return(0,a.useEffect)(function(){u()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),a.createElement(eo.Provider,{value:o},a.createElement(es.Provider,{value:s},e.children))}var ef=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=ec);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return I(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ec),this.name+e.hash},e}(),eh=/([A-Z])/,ep=/([A-Z])/g,eg=/^ms-/,ev=function(e){return"-"+e.toLowerCase()};function e_(e){return eh.test(e)?e.replace(ep,ev).replace(eg,"-ms-"):e}var em=function(e){return null==e||!1===e||""===e};function ey(e,t,r,n){if(Array.isArray(e)){for(var i,o=[],s=0,a=e.length;s<a;s+=1)""!==(i=ey(e[s],t,r,n))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}return em(e)?"":x(e)?"."+e.styledComponentId:k(e)?"function"!=typeof e||e.prototype&&e.prototype.isReactComponent||!t?e:ey(e(t),t,r,n):e instanceof ef?r?(e.inject(r,n),e.getName(n)):e:y(e)?function e(t,r){var n,i=[];for(var o in t)t.hasOwnProperty(o)&&!em(t[o])&&(Array.isArray(t[o])&&t[o].isCss||k(t[o])?i.push(e_(o)+":",t[o],";"):y(t[o])?i.push.apply(i,e(t[o],o)):i.push(e_(o)+": "+(null==(n=t[o])||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||o in d||o.startsWith("--")?String(n).trim():n+"px")+";"));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString()}var eb=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ew(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return k(e)||y(e)?eb(ey(m(b,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:eb(ey(m(e,r)))}var ek=function(e,t,r){return void 0===r&&(r=w),e.theme!==r.theme&&e.theme||t||r.theme},eS=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ex=/(^-|-$)/g;function eC(e){return e.replace(eS,"-").replace(ex,"")}var eP=function(e){return X(K(e)>>>0)};function eF(e){return"string"==typeof e}var eE=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},eI=a.createContext();function eA(e){var t=(0,a.useContext)(eI),r=(0,a.useMemo)(function(){var r;return r=e.theme,r?k(r)?r(t):Array.isArray(r)||"object"!=typeof r?I(8):t?_({},t,{},r):r:I(14)},[e.theme,t]);return e.children?a.createElement(eI.Provider,{value:r},e.children):null}eI.Consumer;var eO={},eR=function(e){return function e(t,r,n){if(void 0===n&&(n=w),!(0,s.Hy)(r))return I(1,String(r));var i=function(){return t(r,n,ew.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,r,_({},n,{},i))},i.attrs=function(i){return e(t,r,_({},n,{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},i}(function e(t,r,n){var i=x(t),o=!eF(t),s=r.attrs,c=void 0===s?b:s,u=r.componentId,l=void 0===u?(y=r.displayName,C=r.parentComponentId,eO[P="string"!=typeof y?"sc":eC(y)]=(eO[P]||0)+1,F=P+"-"+eP("5.3.11"+P+eO[P]),C?C+"-"+F:F):u,d=r.displayName,f=void 0===d?eF(t)?"styled."+t:"Styled("+S(t)+")":d,p=r.displayName&&r.componentId?eC(r.displayName)+"-"+r.componentId:r.componentId||l,v=i&&t.attrs?Array.prototype.concat(t.attrs,c).filter(Boolean):c,m=r.shouldForwardProp;i&&t.shouldForwardProp&&(m=r.shouldForwardProp?function(e,n,i){return t.shouldForwardProp(e,n,i)&&r.shouldForwardProp(e,n,i)}:t.shouldForwardProp);var y,C,P,F,E,I=new et(n,p,i?t.componentStyle:void 0),A=I.isStatic&&0===c.length,O=function(e,t){return function(e,t,r,n){var i,o,s,c,u,l=e.attrs,d=e.componentStyle,f=e.defaultProps,p=e.foldedComponentIds,g=e.shouldForwardProp,v=e.styledComponentId,m=e.target,y=(i=ek(t,(0,a.useContext)(eI),f)||w,void 0===i&&(i=w),o=_({},t,{theme:i}),s={},l.forEach(function(e){var t,r,n,i=e;for(t in k(i)&&(i=i(o)),i)o[t]=s[t]="className"===t?(r=s[t],n=i[t],r&&n?r+" "+n:r||n):i[t]}),[o,s]),b=y[0],S=y[1],x=(c=eu(),u=el(),n?d.generateAndInjectStyles(w,c,u):d.generateAndInjectStyles(b,c,u)),C=S.$as||t.$as||S.as||t.as||m,P=eF(C),F=S!==t?_({},t,{},S):t,E={};for(var I in F)"$"!==I[0]&&"as"!==I&&("forwardedAs"===I?E.as=F[I]:(g?g(I,h,C):!P||h(I))&&(E[I]=F[I]));return t.style&&S.style!==t.style&&(E.style=_({},t.style,{},S.style)),E.className=Array.prototype.concat(p,v,x!==v?x:null,t.className,S.className).filter(
1Boolean).join(" "),E.ref=r,(0,a.createElement)(C,E)}(E,e,t,A)};return O.displayName=f,(E=a.forwardRef(O)).attrs=v,E.componentStyle=I,E.displayName=f,E.shouldForwardProp=m,E.foldedComponentIds=i?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):b,E.styledComponentId=p,E.target=i?t.target:t,E.withComponent=function(t){var i=r.componentId,o=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}(r,["componentId"]),s=i&&i+"-"+(eF(t)?t:eC(S(t)));return e(t,_({},o,{attrs:v,componentId:s}),n)},Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(var o=0;o<n.length;o++){var s=n[o];if(eE(s))for(var a in s)"__proto__"!==a&&"constructor"!==a&&"prototype"!==a&&function(t,r,n){var i=t[n];eE(r)&&eE(i)?e(i,r):t[n]=r}(t,s[a],a)}return t}({},t.defaultProps,e):e}}),Object.defineProperty(E,"toString",{value:function(){return"."+E.styledComponentId}}),o&&g()(E,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),E},e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){eR[e]=eR(e)});var eT=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Z(e),G.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var i=n(ey(this.rules,t,r,n).join(""),""),o=this.componentId+e;r.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&G.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function e$(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=ew.apply(void 0,[e].concat(r)),o="sc-global-"+eP(JSON.stringify(i)),s=new eT(i,o);function c(e){var t=eu(),r=el(),n=(0,a.useContext)(eI),i=(0,a.useRef)(t.allocateGSInstance(o)).current;return t.server&&u(i,e,t,n,r),(0,a.useLayoutEffect)(function(){if(!t.server)return u(i,e,t,n,r),function(){return s.removeStyles(i,t)}},[i,e,t,n,r]),null}function u(e,t,r,n,i){if(s.isStatic)s.renderStyles(e,E,r,i);else{var o=_({},t,{theme:ek(t,n,c.defaultProps)});s.renderStyles(e,o,r,i)}}return a.memo(c)}(o=(function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=B();return"<style "+[r&&'nonce="'+r+'"',C+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?I(2):e._emitSheetCSS()}
1,this.getStyleElement=function(){if(e.sealed)return I(2);var t,r=((t={})[C]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=B();return n&&(r.nonce=n),[a.createElement("style",_({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new G({isServer:!0}),this.sealed=!1}).prototype).collectStyles=function(e){return this.sealed?I(2):a.createElement(ed,{sheet:this.instance},e)},o.interleaveWithNodeStream=function(e){return I(3)};let eM=eR},23021:e=>{e.exports={style:{fontFamily:"'Ubuntu Mono', 'Ubuntu Mono Fallback'",fontWeight:400,fontStyle:"normal"},className:"__className_7dcba2",variable:"__variable_7dcba2"}},23520:(e,t,r)=>{"use strict";var n=r(68128),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(e){return n.isMemo(e)?s:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var u=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=h(r);i&&i!==p&&e(t,i,n)}var s=l(r);d&&(s=s.concat(d(r)));for(var a=c(t),g=c(r),v=0;v<s.length;++v){var _=s[v];if(!o[_]&&!(n&&n[_])&&!(g&&g[_])&&!(a&&a[_])){var m=f(r,_);try{u(t,_,m)}catch(e){}}}}return t}},29044:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,_=r?Symbol.for("react.block"):60121,m=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case d:case o:case a:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case g:case c:return e;default:return t}}case i:return t}}}function k(e){return w(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Lazy=v,t.Memo=g,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return k(e)||w(e)===l},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===a||e===s||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===f||e.$$typeof===m||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_)},t.typeOf=w},33875:e=>{e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),c=0;c<o.length;c++){var u=o[c];if(!a(u))return!1;var l=e[u],d=t[u];
1if(!1===(i=r?r.call(n,l,d,u):void 0)||void 0===i&&l!==d)return!1}return!0}},37639:(e,t)=>{"use strict";var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");t.Hy=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===s||e===o||e===l||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===c||e.$$typeof===a||e.$$typeof===u||e.$$typeof===g||void 0!==e.getModuleId)||!1},t.QP=function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case o:case l:case d:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case h:case f:case a:return e;default:return t}}case n:return t}}}},38167:function(e,t){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function n(e,t){var r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertyNames(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++){var o=r[i];if(e[o]!==t[o])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.areCookiesEqual=t.hasSameProperties=t.createCookie=t.isBrowser=void 0,t.isBrowser=function(){return"u">typeof window},t.createCookie=function(e,t,n){var i=n.sameSite;!0===i&&(i="strict"),(void 0===i||!1===i)&&(i="lax");var o=r(r({},n),{sameSite:i});return delete o.encode,r({name:e,value:t},o)},t.hasSameProperties=n,t.areCookiesEqual=function(e,t){var i=e.sameSite===t.sameSite;return"string"==typeof e.sameSite&&"string"==typeof t.sameSite&&(i=e.sameSite.toLowerCase()===t.sameSite.toLowerCase()),n(r(r({},e),{sameSite:void 0}),r(r({},t),{sameSite:void 0}))&&i}},41621:e=>{e.exports={style:{fontFamily:"'Lato', 'Lato Fallback'",fontStyle:"normal"},className:"__className_61fed1",variable:"__variable_61fed1"}},45105:(e,t,r)=>{e.exports=r(13209)},47696:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=d(e);r=t?Reflect.construct(n,arguments,d(this).constructor):n.apply(this,arguments);if(r&&("object"==typeof r||"function"==typeof r))return r;if(void 0!==r)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this}}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],s=!0,a=!1;try{for(r=r.call(e);!(s=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==r.return||r.return()}finally{if(a)throw i}}return o}}(e,t)||v(e,t)||function(){throw TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function m(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=v(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}r.d(t,{bC:()=>rz,HA:()=>rW,vl:()=>rq});var y,b,w={DEBUG:!1,LIB_VERSION:"1.88.1"},k=Array.isArray,S=Object.prototype,x=S.hasOwnProperty,C=S.toString,P=k||function(e){return"[object Array]"===C.call(e)},F=function(e){return"[object Uint8Array]"===C.call(e)},E=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},I=function(e){return e===Object(e)&&!P(e)},A=function(e){if(I(e)){for(var t in e)if(x.call(e,t))return!1;return!0}return!1},O=function(e){return void 0===e},R=function(e){return"[object String]"==C.call(e)},T=function(e){return null===e},$=function(e){return"[object Number]"==C.call(e)},M=function(e){return"[object Boolean]"===C.call(e)},D=Array.prototype,j=D.forEach,N=D.indexOf,L="u">typeof window?window:{},B=L.navigator||{userAgent:""},H=L.document||{},z=B.userAgent,q="[PostHog.js]",W={_log:function(e){if((w.DEBUG||L.POSTHOG_DEBUG)&&!O(L.console)&&L.console){for(var t=("__rrweb_original__"in L.console[e])?L.console[e].__rrweb_original__:L.console[e],r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];t.apply(void 0,[q].concat(n))}},info:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];W._log.apply(W,["log"].concat(t))},warn:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];W._log.apply(W,["warn"].concat(t))},error:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];W._log.apply(W,["error"].concat(t))},critical:function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];(e=console).error.apply(e,[q].concat(r))},uninitializedWarning:function(e){W.error("You must initialize PostHog before calling ".concat(e))}},U={},V=function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function G(e,t,r){if(P(e)){if(j&&e.forEach===j)e.forEach(t,r);else if("length"in e&&e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n)===U)return}}}function Y(e,t,r){if(!T(e)&&!O(e)){if(P(e))return G(e,t,r);for(var n in e)if(x.call(e,n)&&t.call(r,e[n],n)===U)return}}var Q=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return G(r,function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e};function X(e,t){return -1!==e.indexOf(t)}var J=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},K=function(e){try{return e()}catch(e){return}},Z=function(e){return function(){try{for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(this,r)}catch(e){W.critical("Implementation error. Please turn on debug and contact [email protected]."),W.critical(e)}}},ee=function(e){var t={};return Y(e,function(e,r){R(e)&&e.length>0&&(t[r]=e)}),t},et=["$performance_raw"];function er(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/=",a=0,c=0,u="",l=[];if(!e)return e;e=en(e);do t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,l[c++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(i);while(a<e.length);switch(u=l.join(""),e.length%3){case 1:u=u.slice(0,-2)+"==";break;case 2:u=u.slice(0,-1)+"="}return u}var en=function(e){var t,r,n,i,o="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<n;i++){var s=e.charCodeAt(i),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),T(a)||(r>t&&(o+=e.substring(t,r)),o+=a,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o},ei=["ahrefsbot","applebot","baiduspider","bingbot","bingpreview","bot.htm","bot.php","crawler","duckduckbot","facebookexternal","facebookcatalog","gptbot","hubspot","linkedinbot","mj12bot","petalbot","pinterest","prerender","rogerbot","screaming frog","semrushbot","sitebulb","twitterbot","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"],eo=function(e,t){if(!e)return!1;var r=e.toLowerCase();return ei.concat(t||[]).some(function(e){var t=e.toLowerCase();return r.includes?r.includes(t):-1!==r.indexOf(t)})},es=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,i,o){if(t)if(t.addEventListener&&!i)t.addEventListener(r,n,!!o);else{var s="on"+r,a=t[s];t[s]=function(r){if(r=r||e(window.event)){var i,o=!0;E(a)&&(i=a(r));var s=n.call(t,r);return!1!==i&&!1!==s||(o=!1),o}}}else W.error("No valid element provided to register_event")}}();function ea(e,t){var r=function(){var r=H.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(e){return t(void 0,e)},r.onerror=function(e){return t(e)};var n,i=H.querySelectorAll("body > script");i.length>0?null==(n=i[0].parentNode)||n.insertBefore(r,i[0]):H.body.appendChild(r)};H.body?r():H.addEventListener("DOMContentLoaded",r)}function ec(e){switch(o(e.className)){case"string":return e.className;case"object":return("baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";default:return""}}function eu(e){var t="";return eg(e)&&!ev(e)&&e.childNodes&&e.childNodes.length&&Y(e.childNodes,function(e){ef(e)&&e.textContent&&(t+=V(e.textContent).split(/(\s+)/).filter(e_).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),V(t)}function el(e){return!!e&&1===e.nodeType}function ed(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function ef(e){return!!e&&3===e.nodeType}function eh(e){return!!e&&11===e.nodeType}var ep=["a","button","form","input","select","textarea","label"];function eg(e){for(var t=e;t.parentNode&&!ed(t,"body");t=t.parentNode){var r=ec(t).split(" ");if(X(r,"ph-sensitive")||X(r,"ph-no-capture"))return!1}if(X(ec(e).split(" "),"ph-include"))return!0;var n=e.type||"";if(R(n))switch(n.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!(R(i)&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,"")))}function ev(e){return!!(ed(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||ed(e,"select")||ed(e,"textarea")||"true"===e.getAttribute("contenteditable"))}function e_(e){return!(T(e)||O(e)||R(e)&&(e=V(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))&&!0}function em(e){var t=eu(e);return e_(t="".concat(t," ").concat(function e(t){var r="";return t&&t.childNodes&&t.childNodes.length&&Y(t.childNodes,function(t){var n;if(t&&"span"===(null==(n=t.tagName)?void 0:n.toLowerCase()))try{var i=eu(t);r="".concat(r," ").concat(i).trim(),t.childNodes&&t.childNodes.length&&(r="".concat(r," ").concat(e(t)).trim())}catch(e){W.error(e)}}),r}(e)).trim())?t:""}var ey=function(){function e(t){s(this,e),this.clicks=[],this.enabled=t}return c(e,[{key:"isRageClick",value:function(e,t,r){if(!this.enabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(t-n.y)<30&&r-n.timestamp<1e3){if(this.clicks.push({x:e,y:t,timestamp:r}),3===this.clicks.length)return!0}else this.clicks=[{x:e,y:t,timestamp:r}];return!1}}]),e}(),eb="$people_distinct_id",ew="__alias",ek="__timers",eS="$autocapture_disabled_server_side",ex="$session_recording_enabled_server_side",eC="$console_log_recording_enabled_server_side",eP="$session_recording_recorder_version_server_side",eF="$sesid",eE="$session_is_sampled",eI="$enabled_feature_flags",eA="$early_access_features",eO="$stored_person_properties",eR="$stored_group_properties",eT="$surveys",e$="$flag_call_reported",eM="$user_state",eD="$posthog_quota_limited",ej="$client_session_props",eN=[eb,ew,"__cmpns",ek,ex,eF,eI,eM,eD,eA,eR,eO,eT,e$,ej];function eL(e,t){return t.length>e?t.slice(0,e)+"...":t}var eB={_initializedTokens:[],_isDisabledServerSide:null,_isAutocaptureEnabled:!1,_setIsAutocaptureEnabled:function(e){var t,r=T(this._isDisabledServerSide)?!(null==(t=e.persistence)||!t.props[eS]):this._isDisabledServerSide,n=!!e.config.autocapture;this._isAutocaptureEnabled=n&&!r},_previousElementSibling:function(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!el(t));return t},_getAugmentPropertiesFromElement:function(e){if(!eg(e))return{};var t={};return Y(e.attributes,function(e){if(0===e.name.indexOf("data-ph-capture-attribute")){var r=e.name.replace("data-ph-capture-attribute-",""),n=e.value;r&&n&&e_(n)&&(t[r]=n)}}),t},_getPropertiesFromElement:function(e,t,r){var n,i=e.tagName.toLowerCase(),o={tag_name:i};ep.indexOf(i)>-1&&!r&&("a"===i.toLowerCase()||"button"===i.toLowerCase()?o.$el_text=eL(1024,em(e)):o.$el_text=eL(1024,eu(e)));var s=ec(e);s.length>0&&(o.classes=s.split(" ").filter(function(e){return""!==e}));var a=null==(n=this.config)?void 0:n.element_attribute_ignorelist;Y(e.attributes,function(r){var n;ev(e)&&-1===["name","id","class"].indexOf(r.name)||null!=a&&a.includes(r.name)||!t&&e_(r.value)&&(!R(n=r.name)||"_ngcontent"!==n.substring(0,10)&&"_nghost"!==n.substring(0,7))&&(o["attr__"+r.name]=eL(1024,r.value))});for(var c=1,u=1,l=e;l=this._previousElementSibling(l);)c++,l.tagName===e.tagName&&u++;return o.nth_child=c,o.nth_of_type=u,o},_getDefaultProperties:function(e){return{$event_type:e,$ce_version:1}},_extractCustomPropertyValue:function(e){var t=[];return Y(document.querySelectorAll(e.css_selector),function(e){var r;["input","select"].indexOf(e.tagName.toLowerCase())>-1?r=e.value:e.textContent&&(r=e.textContent),e_(r)&&t.push(r)}),t.join(", ")},_getCustomProperties:function(e){var t=this,r={};return Y(this._customProperties,function(n){Y(n.event_selectors,function(i){Y(document.querySelectorAll(i),function(i){X(e,i)&&eg(i)&&(r[n.name]=t._extractCustomPropertyValue(n))})})}),r},_getEventTarget:function(e){var t;return O(e.target)?e.srcElement||null:null!=(t=e.target)&&t.shadowRoot?e.composedPath()[0]||null:e.target||null},_captureEvent:function(e,t){var r,n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$autocapture",o=this._getEventTarget(e);if(ef(o)&&(o=o.parentNode||null),"$autocapture"===i&&"click"===e.type&&e instanceof MouseEvent&&null!=(r=this.rageclicks)&&r.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this._captureEvent(e,t,"$rageclick"),o&&function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!e||ed(e,"html")||!el(e))return!1;if(null!=r&&r.url_allowlist){var n=window.location.href,i=r.url_allowlist;if(i&&!i.some(function(e){return n.match(e)}))return!1}if(null!=r&&r.dom_event_allowlist){var o=r.dom_event_allowlist;if(o&&!o.some(function(e){return t.type===e}))return!1}if(null!=r&&r.element_allowlist){var s=r.element_allowlist;if(s&&!s.some(function(t){return e.tagName.toLowerCase()===t}))return!1}if(null!=r&&r.css_selector_allowlist){var a=r.css_selector_allowlist;if(a&&!a.some(function(t){return e.matches(t)}))return!1}for(var c=!1,u=[e],l=!0,d=e;d.parentNode&&!ed(d,"body");)if(eh(d.parentNode))u.push(d.parentNode.host),d=d.parentNode.host;else{if(!(l=d.parentNode||!1))break;if(ep.indexOf(l.tagName.toLowerCase())>-1)c=!0;else{var f=window.getComputedStyle(l);f&&"pointer"===f.getPropertyValue("cursor")&&(c=!0)}u.push(l),d=l}var h=window.getComputedStyle(e);
1if(h&&"pointer"===h.getPropertyValue("cursor")&&"click"===t.type)return!0;var p=e.tagName.toLowerCase();switch(p){case"html":return!1;case"form":return"submit"===t.type;case"input":case"select":case"textarea":return"change"===t.type||"click"===t.type;default:return c?"click"===t.type:"click"===t.type&&(ep.indexOf(p)>-1||"true"===e.getAttribute("contenteditable"))}}(o,e,this.config)){for(var s,a,c=[o],u=o;u.parentNode&&!ed(u,"body");)eh(u.parentNode)?(c.push(u.parentNode.host),u=u.parentNode.host):(c.push(u.parentNode),u=u.parentNode);var l,d=[],f={},h=!1;if(Y(c,function(e){var r=eg(e);"a"===e.tagName.toLowerCase()&&(l=e.getAttribute("href"),l=r&&e_(l)&&l),X(ec(e).split(" "),"ph-no-capture")&&(h=!0),d.push(n._getPropertiesFromElement(e,t.config.mask_all_element_attributes,t.config.mask_all_text)),Q(f,n._getAugmentPropertiesFromElement(e))}),t.config.mask_all_text||("a"===o.tagName.toLowerCase()||"button"===o.tagName.toLowerCase()?d[0].$el_text=em(o):d[0].$el_text=eu(o)),l&&(d[0].attr__href=l),h)return!1;var p=Q(this._getDefaultProperties(e.type),{$elements:d},null!=(s=d[0])&&s.$el_text?{$el_text:null==(a=d[0])?void 0:a.$el_text}:{},this._getCustomProperties(c),f);return t.capture(i,p),!0}},_navigate:function(e){window.location.href=e},_addDomEventHandlers:function(e){var t=this,r=function(r){r=r||window.event,t._captureEvent(r,e)};es(document,"submit",r,!1,!0),es(document,"change",r,!1,!0),es(document,"click",r,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(e){var t;M(e.__autocapture)||(this.config=e.__autocapture),null!=(t=this.config)&&t.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(e){return new RegExp(e)})),this.rageclicks=new ey(e.config.rageclick)},afterDecideResponse:function(e,t){var r=t.config.token;this._initializedTokens.indexOf(r)>-1?W.info('autocapture already initialized for token "'+r+'"'):(t.persistence&&t.persistence.register(u({},eS,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this._setIsAutocaptureEnabled(t),this._initializedTokens.push(r),e&&e.config&&e.config.enable_collect_everything&&this._isAutocaptureEnabled?(e.custom_properties&&(this._customProperties=e.custom_properties),this._addDomEventHandlers(t)):t.__autocapture=!1)},enabledForProject:function(e,t,r){if(!e)return!0;t=O(t)?10:t,r=O(r)?10:r;for(var n=0,i=0;i<e.length;i++)n+=e.charCodeAt(i);return n%t<r},isBrowserSupported:function(){return E(document.querySelectorAll)}};!function(e){for(var t in e)E(e[t])&&(e[t]=e[t].bind(e))}(eB),function(e){for(var t in e)E(e[t])&&(e[t]=Z(e[t]))}(eB);var eH,ez,eq="$active_feature_flags",eW="$override_feature_flags",eU="$feature_flag_payloads",eV=function(e){var t,r={},n=m(function(e){for(var t=Object.keys(e),r=t.length,n=Array(r);r--;)n[r]=[t[r],e[t[r]]];return n}(e||{}));try{for(n.s();!(t=n.n()).done;){var i=p(t.value,2),o=i[0],s=i[1];s&&(r[o]=s)}}catch(e){n.e(e)}finally{n.f()}return r},eG=function(){function e(t){s(this,e),this.instance=t,this._override_warning=!1,this.featureFlagEventHandlers=[],this.reloadFeatureFlagsQueued=!1,this.reloadFeatureFlagsInAction=!1}return c(e,[{key:"getFlags",value:function(){return Object.keys(this.getFlagVariants())}},{key:"getFlagVariants",value:function(){var e=this.instance.get_property(eI),t=this.instance.get_property(eW);if(!t)return e||{};for(var r=Q({},e),n=Object.keys(t),i=0;i<n.length;i++)!1===t[n[i]]?delete r[n[i]]:r[n[i]]=t[n[i]];return this._override_warning||(W.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:r}),this._override_warning=!0),r}},{key:"getFlagPayloads",value:function(){return this.instance.get_property(eU)||{}}},{key:"reloadFeatureFlags",value:function(){this.reloadFeatureFlagsQueued||(this.reloadFeatureFlagsQueued=!0,this._startReloadTimer())}},{key:"setAnonymousDistinctId",value:function(e){this.$anon_distinct_id=e}},{key:"setReloadingPaused",value:function(e){this.reloadFeatureFlagsInAction=e}},{key:"resetRequestQueue",value:function(){this.reloadFeatureFlagsQueued=!1}},{key:"_startReloadTimer",value:function(){var e=this;this.reloadFeatureFlagsQueued&&!this.reloadFeatureFlagsInAction&&setTimeout(function(){!e.reloadFeatureFlagsInAction&&e.reloadFeatureFlagsQueued&&(e.reloadFeatureFlagsQueued=!1,e._reloadFeatureFlagsRequest())},5)}},{key:"_reloadFeatureFlagsRequest",value:function(){var e=this;this.setReloadingPaused(!0);var t=this.instance.config.token,r=this.instance.get_property(eO),n=this.instance.get_property(eR),i=er(JSON.stringify({token:t,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:r,group_properties:n,disable_flags:this.instance.config.advanced_disable_feature_flags||void 0}));this.instance._send_request(this.instance.config.api_host+"/decide/?v=3",{data:i},{method:"POST"},this.instance._prepare_callback(function(t){e.$anon_distinct_id=void 0,e.receivedFeatureFlags(t),e.setReloadingPaused(!1),e._startReloadTimer()}))}},{key:"getFeatureFlag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var r,n=this.getFlagVariants()[e],i="".concat(n),o=this.instance.get_property(e$)||{};return!t.send_event&&"send_event"in t||e in o&&o[e].includes(i)||(P(o[e])?o[e].push(i):o[e]=[i],null==(r=this.instance.persistence)||r.register(u({},e$,o)),this.instance.capture("$feature_flag_called",{$feature_flag:e,$feature_flag_response:n})),n}W.warn('getFeatureFlag for key "'+e+"\" failed. Feature flags didn't load in time.")}},{key:"getFeatureFlagPayload",value:function(e){return this.getFlagPayloads()[e]}},{key:"isFeatureEnabled",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(e,t);W.warn('isFeatureEnabled for key "'+e+"\" failed. Feature flags didn't load in time.")}},{key:"addFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers.push(e)}},{key:"removeFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(t){return t!==e})}},{key:"receivedFeatureFlags",value:function(e){if(this.instance.persistence){this.instance.decideEndpointWasHit=!0;var t=this.getFlagVariants(),r=this.getFlagPayloads();!function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.featureFlags,s=e.featureFlagPayloads;if(o)if(P(o)){var a,c={};if(o)for(var l=0;l<o.length;l++)c[o[l]]=!0;t&&t.register((u(a={},eq,o),u(a,eI,c),a))}else{var d,f=o,h=s;e.errorsWhileComputingFlags&&(f=i(i({},r),f),h=i(i({},n),h)),t&&t.register((u(d={},eq,Object.keys(eV(f))),u(d,eI,f||{}),u(d,eU,h||{}),d))}}(e,this.instance.persistence,t,r),this._fireFeatureFlagsCallbacks()}}},{key:"override",value:function(e){if(!this.instance.__loaded||!this.instance.persistence)return W.uninitializedWarning("posthog.feature_flags.override");if(this._override_warning=!1,!1===e)this.instance.persistence.unregister(eW);else if(P(e)){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;this.instance.persistence.register(u({},eW,t))}else this.instance.persistence.register(u({},eW,e))}},{key:"onFeatureFlags",value:function(e){var t=this;if(this.addFeatureFlagsHandler(e),this.instance.decideEndpointWasHit){var r=this._prepareFeatureFlagsForCallbacks();e(r.flags,r.flagVariants)}return function(){return t.removeFeatureFlagsHandler(e)}}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,t){var r,n,o=u({},"$feature_enrollment/".concat(e),t);this.instance.capture("$feature_enrollment_update",{$feature_flag:e,$feature_enrollment:t,$set:o}),this.setPersonPropertiesForFlags(o,!1);var s=i(i({},this.getFlagVariants()),{},u({},e,t));null==(r=this.instance.persistence)||r.register((u(n={},eq,Object.keys(eV(s))),u(n,eI,s),n)),this._fireFeatureFlagsCallbacks()}},{key:"getEarlyAccessFeatures",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.instance.get_property(eA);if(n&&!r)return e(n);this.instance._send_request("".concat(this.instance.config.api_host,"/api/early_access_features/?token=").concat(this.instance.config.token),{},{method:"GET"},function(r){var n,i=r.earlyAccessFeatures;return null==(n=t.instance.persistence)||n.register(u({},eA,i)),e(i)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter(function(e){return t[e]}),flagVariants:Object.keys(t).filter(function(e){return t[e]}).reduce(function(e,r){return e[r]=t[r],e},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var e=this._prepareFeatureFlagsForCallbacks(),t=e.flags,r=e.flagVariants;
1this.featureFlagEventHandlers.forEach(function(e){return e(t,r)})}},{key:"setPersonPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.instance.get_property(eO)||{};this.instance.register(u({},eO,i(i({},r),e))),t&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(eO)}},{key:"setGroupPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.instance.get_property(eR)||{};0!==Object.keys(r).length&&Object.keys(r).forEach(function(t){r[t]=i(i({},r[t]),e[t]),delete e[t]}),this.instance.register(u({},eR,i(i({},r),e))),t&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(e){if(e){var t=this.instance.get_property(eR)||{};this.instance.register(u({},eR,i(i({},t),{},u({},e,{}))))}else this.instance.unregister(eR)}}]),e}(),eY=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,eQ={is_supported:function(){return!0},error:function(e){W.error("cookieStore error: "+e)},get:function(e){try{for(var t=e+"=",r=document.cookie.split(";").filter(function(e){return e.length}),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}}catch(e){}return null},parse:function(e){var t;try{t=JSON.parse(eQ.get(e))||{}}catch(e){}return t},set:function(e,t,r,n,i){try{var o="",s="",a="";if(n){var c=document.location.hostname.match(eY),u=c?c[0]:"";o=u?"; domain=."+u:""}if(r){var l=new Date;l.setTime(l.getTime()+24*r*36e5),s="; expires="+l.toUTCString()}i&&(a="; secure");var d=e+"="+encodeURIComponent(JSON.stringify(t))+s+"; SameSite=Lax; path=/"+o+a;return document.cookie=d,d}catch(e){return}},remove:function(e,t){try{eQ.set(e,"",-1,t)}catch(e){return}}},eX=null,eJ={is_supported:function(){if(!T(eX))return eX;var e=!0;if(O(window))e=!1;else try{var t="__mplssupport__";eJ.set(t,"xyz"),'"xyz"'!==eJ.get(t)&&(e=!1),eJ.remove(t)}catch(t){e=!1}return e||W.error("localStorage unsupported; falling back to cookie store"),eX=e,e},error:function(e){W.error("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(e){eJ.error(e)}return null},parse:function(e){try{return JSON.parse(eJ.get(e))||{}}catch(e){}return null},set:function(e,t){try{window.localStorage.setItem(e,JSON.stringify(t))}catch(e){eJ.error(e)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(e){eJ.error(e)}}},eK=["distinct_id",eF,eE],eZ=i(i({},eJ),{},{parse:function(e){try{var t={};try{t=eQ.parse(e)||{}}catch(e){}var r=Q(t,JSON.parse(eJ.get(e)||"{}"));return eJ.set(e,r),r}catch(e){}return null},set:function(e,t,r,n,i){try{eJ.set(e,t);var o={};eK.forEach(function(e){t[e]&&(o[e]=t[e])}),Object.keys(o).length&&eQ.set(e,o,r,n,i)}catch(e){eJ.error(e)}},remove:function(e,t){try{window.localStorage.removeItem(e),eQ.remove(e,t)}catch(e){eJ.error(e)}}}),e0={},e1={is_supported:function(){return!0},error:function(e){W.error("memoryStorage error: "+e)},get:function(e){return e0[e]||null},parse:function(e){return e0[e]||null},set:function(e,t){e0[e]=t},remove:function(e){delete e0[e]}},e2=null,e3={is_supported:function(){if(!T(e2))return e2;if(e2=!0,O(window))e2=!1;else try{var e="__support__";e3.set(e,"xyz"),'"xyz"'!==e3.get(e)&&(e2=!1),e3.remove(e)}catch(e){e2=!1}return e2},error:function(e){W.error("sessionStorage error: ",e)},get:function(e){try{return window.sessionStorage.getItem(e)}catch(e){e3.error(e)}return null},parse:function(e){try{return JSON.parse(e3.get(e))||null}catch(e){}return null},set:function(e,t){try{window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){e3.error(e)}},remove:function(e){try{window.sessionStorage.removeItem(e)}catch(e){e3.error(e)}}},e5=["localhost","127.0.0.1"],e4=function(e,t){for(var r,n=((e.split("#")[0]||"").split("?")[1]||"").split("&"),i=0;i<n.length;i++){var o=n[i].split("=");if(o[0]===t){r=o;break}}if(!P(r)||r.length<2)return"";var s=r[1];try{s=decodeURIComponent(s)}catch(e){W.error("Skipping decoding for malformed query param: "+s)}return s.replace(/\+/g," ")},e6=function(e,t){var r=e.match(RegExp(t+"=([^&]*)"));return r?r[1]:null},e8={campaignParams:function(e){var t=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(e||[]),r={};return Y(t,function(e){var t=e4(H.URL,e);t.length&&(r[e]=t)}),r},searchEngine:function(){var e=H.referrer;return e?0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null:null},searchInfo:function(){var e=e8.searchEngine(),t={};if(!T(e)){t.$search_engine=e;var r=e4(H.referrer,"yahoo"!=e?"q":"p");r.length&&(t.ph_keyword=r)}return t},browser:function(e,t,r){return t=t||"",r||X(e," OPR/")?X(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":X(e,"IEMobile")||X(e,"WPDesktop")?"Internet Explorer Mobile":X(e,"SamsungBrowser/")?"Samsung Internet":X(e,"Edge")||X(e,"Edg/")?"Microsoft Edge":X(e,"FBIOS")?"Facebook Mobile":X(e,"Chrome")?"Chrome":X(e,"CriOS")?"Chrome iOS":X(e,"UCWEB")||X(e,"UCBrowser")?"UC Browser":X(e,"FxiOS")?"Firefox iOS":X(t,"Apple")||X(e,"Safari")&&!X(e,"Chrome")&&!X(e,"Android")?X(e,"Mobile")?"Mobile Safari":"Safari":X(e,"Android")?"Android Mobile":X(e,"Konqueror")||X(e,"konqueror")?"Konqueror":X(e,"Firefox")?"Firefox":X(e,"MSIE")||X(e,"Trident/")?"Internet Explorer":X(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n={"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+)?)/i],BlackBerry:[/BlackBerry (\d+(\.\d+)?)/,/Version\/(\d+(\.\d+)?)/],"Android Mobile":[/android\s(\d+(\.\d+)?)/],"Samsung Internet":[/SamsungBrowser\/(\d+(\.\d+)?)/],"Internet Explorer":[/(rv:|MSIE )(\d+(\.\d+)?)/],Mozilla:[/rv:(\d+(\.\d+)?)/]}[e8.browser(e,t,r)];if(O(n))return null;for(var i=0;i<n.length;i++){var o=n[i],s=e.match(o);if(s)return parseFloat(s[s.length-2])}return null},browserLanguage:function(){return navigator.language||navigator.userLanguage},os:function(e){if(/Windows/i.test(e)){if(/Phone/.test(e)||/WPDesktop/.test(e))return{os_name:"Windows Phone",os_version:""};var t=/Windows NT ([0-9.]+)/i.exec(e);return t&&t[1]?{os_name:"Windows",os_version:t[1]}:{os_name:"Windows",os_version:""}}
1if(/(iPhone|iPad|iPod)/.test(e)){var r=/OS (\d+)_(\d+)_?(\d+)?/i.exec(e);return r&&r[1]?{os_name:"iOS",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(e)){var n=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(e);return n&&n[1]?{os_name:"Android",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(e))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(e)){var i=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(e);return i&&i[1]?{os_name:"Mac OS X",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(e)?{os_name:"Linux",os_version:""}:/CrOS/.test(e)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},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)&&!/Mobile/.test(e)?"Android Tablet":/Android/.test(e)?"Android":""},deviceType:function(e){var t=this.device(e);return"iPad"===t||"Android Tablet"===t?"Tablet":t?"Mobile":"Desktop"},referrer:function(){return H.referrer||"$direct"},referringDomain:function(){if(!H.referrer)return"$direct";var e=H.createElement("a");return e.href=H.referrer,e.host},properties:function(){var e,t,r,n,i,o,s,a=e8.os(z);return Q(ee({$os:a.os_name,$os_version:a.os_version,$browser:e8.browser(z,navigator.vendor,window.opera),$device:e8.device(z),$device_type:e8.deviceType(z)}),{$current_url:null==(e=window)?void 0:e.location.href,$host:null==(t=window)?void 0:t.location.host,$pathname:null==(r=window)?void 0:r.location.pathname,$raw_user_agent:z.length>1e3?z.substring(0,997)+"...":z,$browser_version:e8.browserVersion(z,navigator.vendor,window.opera),$browser_language:e8.browserLanguage(),$screen_height:null==(n=window)?void 0:n.screen.height,$screen_width:null==(i=window)?void 0:i.screen.width,$viewport_height:null==(o=window)?void 0:o.innerHeight,$viewport_width:null==(s=window)?void 0:s.innerWidth,$lib:"web",$lib_version:w.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:J()/1e3})},people_properties:function(){var e=e8.os(z);return Q(ee({$os:e.os_name,$os_version:e.os_version,$browser:e8.browser(z,navigator.vendor,window.opera)}),{$browser_version:e8.browserVersion(z,navigator.vendor,window.opera)})}},e9=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],e7=function(){function e(t){s(this,e);var r="";t.token&&(r=t.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),this.props={},this.campaign_params_saved=!1,this.custom_campaign_params=t.custom_campaign_params||[],t.persistence_name?this.name="ph_"+t.persistence_name:this.name="ph_"+r+"_posthog",-1===e9.indexOf(t.persistence.toLowerCase())&&(W.critical("Unknown persistence type "+t.persistence+"; falling back to cookie"),t.persistence="cookie");var n=t.persistence.toLowerCase();"localstorage"===n&&eJ.is_supported()?this.storage=eJ:"localstorage+cookie"===n&&eZ.is_supported()?this.storage=eZ:"sessionstorage"===n&&e3.is_supported()?this.storage=e3:this.storage="memory"===n?e1:eQ,this.user_state="anonymous",this.load(),this.update_config(t),this.save()}return c(e,[{key:"properties",value:function(){var e={};return Y(this.props,function(t,r){if(r===eI&&I(t))for(var n,i=Object.keys(t),o=0;o<i.length;o++)e["$feature/".concat(i[o])]=t[i[o]];else n=!1,(T(eN)?n:N&&eN.indexOf===N?-1!=eN.indexOf(r):(Y(eN,function(e){if(n||(n=e===r))return U}),n))||(e[r]=t)}),e}},{key:"load",value:function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=Q({},e))}}},{key:"save",value:function(){this.disabled||this.storage.set(this.name,this.props,this.expire_days,this.cross_subdomain,this.secure)}},{key:"remove",value:function(){this.storage.remove(this.name,!1),this.storage.remove(this.name,!0)}},{key:"clear",value:function(){this.remove(),this.props={}}},{key:"register_once",value:function(e,t,r){var n=this;if(I(e)){O(t)&&(t="None"),this.expire_days=O(r)?this.default_expiry:r;var i=!1;if(Y(e,function(e,r){n.props.hasOwnProperty(r)&&n.props[r]!==t||(n.props[r]=e,i=!0)}),i)return this.save(),!0}return!1}},{key:"register",value:function(e,t){var r=this;if(I(e)){this.expire_days=O(t)?this.default_expiry:t;var n=!1;if(Y(e,function(t,i){e.hasOwnProperty(i)&&r.props[i]!==t&&(r.props[i]=t,n=!0)}),n)return this.save(),!0}return!1}},{key:"unregister",value:function(e){e in this.props&&(delete this.props[e],this.save())}},{key:"update_campaign_params",value:function(){this.campaign_params_saved||(this.register(e8.campaignParams(this.custom_campaign_params)),this.campaign_params_saved=!0)}},{key:"update_search_keyword",value:function(){this.register(e8.searchInfo())}},{key:"update_referrer_info",value:function(){this.register({$referrer:this.props.$referrer||e8.referrer(),$referring_domain:this.props.$referring_domain||e8.referringDomain()})}},{key:"get_referrer_info",value:function(){return ee({$referrer:this.props.$referrer,$referring_domain:this.props.$referring_domain})}},{key:"safe_merge",value:function(e){return Y(this.props,function(t,r){r in e||(e[r]=t)}),e}},{key:"update_config",value:function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)}},{key:"set_disabled",value:function(e){this.disabled=e,this.disabled?this.remove():this.save()}},{key:"set_cross_subdomain",value:function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())}},{key:"get_cross_subdomain",value:function(){return!!this.cross_subdomain}},{key:"set_secure",value:function(e){e!==this.secure&&(this.secure=e,this.remove(),this.save())}},{key:"set_event_timer",value:function(e,t){var r=this.props[ek]||{};r[e]=t,this.props[ek]=r,this.save()}},{key:"remove_event_timer",value:function(e){var t=(this.props[ek]||{})[e];return O(t)||(delete this.props[ek][e],this.save()),t}},{key:"get_user_state",value:function(){return this.props[eM]||"anonymous"}},{key:"set_user_state",value:function(e){this.props[eM]=e,this.save()}},{key:"get_quota_limits",value:function(){return this.props[eD]||{}}},{key:"set_quota_limits",value:function(e){this.props[eD]=e,this.save()}}]),e}(),te=c(function e(t){var r,n,i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),u(this,"bucketSize",100),u(this,"refillRate",10),u(this,"mutationBuckets",{}),u(this,"loggedTracker",{}),u(this,"refillBuckets",function(){Object.keys(i.mutationBuckets).forEac
1h(function(e){i.mutationBuckets[e]=i.mutationBuckets[e]+i.refillRate,i.mutationBuckets[e]>=i.bucketSize&&delete i.mutationBuckets[e]})}),u(this,"getNodeOrRelevantParent",function(e){var t=i.rrweb.mirror.getNode(e);if("svg"!==(null==t?void 0:t.nodeName)&&t instanceof Element){var r=t.closest("svg");if(r)return[i.rrweb.mirror.getId(r),r]}return[e,t]}),u(this,"numberOfChanges",function(e){var t,r,n,i,o,s,a,c;return(null!=(t=null==(r=e.removes)?void 0:r.length)?t:0)+(null!=(n=null==(i=e.attributes)?void 0:i.length)?n:0)+(null!=(o=null==(s=e.texts)?void 0:s.length)?o:0)+(null!=(a=null==(c=e.adds)?void 0:c.length)?a:0)}),u(this,"throttleMutations",function(e){if(3!==e.type||0!==e.data.source)return e;var t=e.data,r=i.numberOfChanges(t);t.attributes&&(t.attributes=t.attributes.filter(function(e){var t,r,n,o=p(i.getNodeOrRelevantParent(e.id),2),s=o[0],a=o[1];return 0!==i.mutationBuckets[s]&&(i.mutationBuckets[s]=null!=(t=i.mutationBuckets[s])?t:i.bucketSize,i.mutationBuckets[s]=Math.max(i.mutationBuckets[s]-1,0),0===i.mutationBuckets[s]&&(i.loggedTracker[s]||(i.loggedTracker[s]=!0,null==(r=(n=i.options).onBlockedNode)||r.call(n,s,a))),e)}));var n=i.numberOfChanges(t);return 0!==n||r===n?e:void 0}),this.rrweb=t,this.options=o,this.refillRate=null!=(r=this.options.refillRate)?r:this.refillRate,this.bucketSize=null!=(n=this.options.bucketSize)?n:this.bucketSize,setInterval(function(){i.refillBuckets()},1e3)}),tt=((eH=tt||{})[eH.DomContentLoaded=0]="DomContentLoaded",eH[eH.Load=1]="Load",eH[eH.FullSnapshot=2]="FullSnapshot",eH[eH.IncrementalSnapshot=3]="IncrementalSnapshot",eH[eH.Meta=4]="Meta",eH[eH.Custom=5]="Custom",eH[eH.Plugin=6]="Plugin",eH);(tz=ez||(ez={}))[tz.Mutation=0]="Mutation",tz[tz.MouseMove=1]="MouseMove",tz[tz.MouseInteraction=2]="MouseInteraction",tz[tz.Scroll=3]="Scroll",tz[tz.ViewportResize=4]="ViewportResize",tz[tz.Input=5]="Input",tz[tz.TouchMove=6]="TouchMove",tz[tz.MediaInteraction=7]="MediaInteraction",tz[tz.StyleSheetRule=8]="StyleSheetRule",tz[tz.CanvasMutation=9]="CanvasMutation",tz[tz.Font=10]="Font",tz[tz.Log=11]="Log",tz[tz.Drag=12]="Drag",tz[tz.StyleDeclaration=13]="StyleDeclaration",tz[tz.Selection=14]="Selection",tz[tz.AdoptedStyleSheet=15]="AdoptedStyleSheet";var tr=[ez.MouseMove,ez.MouseInteraction,ez.Scroll,ez.ViewportResize,ez.Input,ez.TouchMove,ez.MediaInteraction,ez.Drag],tn=function(){function e(t){var r=this;if(s(this,e),u(this,"_linkedFlagSeen",!1),u(this,"_lastActivityTimestamp",Date.now()),u(this,"isIdle",!1),u(this,"_linkedFlag",null),u(this,"_sampleRate",null),u(this,"_minimumDuration",null),this.instance=t,this._captureStarted=!1,this._endpoint="/s/",this.stopRrweb=void 0,this.receivedDecide=!1,window.addEventListener("beforeunload",function(){r._flushBuffer()}),!this.instance.sessionManager)throw W.error("Session recording started without valid sessionManager"),Error("Session recording started without valid sessionManager. This is a bug.");var n=this.sessionManager.checkAndGetSessionAndWindowId(!0),i=n.sessionId,o=n.windowId;this.windowId=o,this.sessionId=i,this.buffer=this.clearBuffer()}return c(e,[{key:"started",get:function(){return this._captureStarted}},{key:"sessionManager",get:function(){if(!this.instance.sessionManager)throw W.error("Session recording started without valid sessionManager"),Error("Session recording started without valid sessionManager. This is a bug.");return this.instance.sessionManager}},{key:"isSampled",get:function(){return $(this._sampleRate)?this.instance.get_property(eE):null}},{key:"sessionDuration",get:function(){var e,t,r=null==(e=this.buffer)?void 0:e.data[(null==(t=this.buffer)?void 0:t.data.length)-1],n=this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionStartTimestamp;return r?r.timestamp-n:null}},{key:"isRecordingEnabled",get:function(){var e=!!this.instance.get_property(ex),t=!this.instance.config.disable_session_recording;return e&&t}},{key:"isConsoleLogCaptureEnabled",get:function(){var e=!!this.instance.get_property(eC),t=this.instance.config.enable_recording_console_log;return null!=t?t:e}},{key:"recordingVersion",get:function(){var e,t=this.instance.get_property(eP);return(null==(e=this.instance.config.session_recording)?void 0:e.recorderVersion)||t||"v1"}},{key:"status",get:function(){return this.receivedDecide?this.isRecordingEnabled?R(this._linkedFlag)&&!this._linkedFlagSeen?"buffering":M(this.isSampled)?this.isSampled?"sampled":"disabled":"active":"disabled":"buffering"}},{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled?this.startCaptureAndTrySendingQueuedSnapshots():(this.stopRecording(),this.clearBuffer())}},{key:"stopRecording",value:function(){this._captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this._captureStarted=!1)}},{key:"makeSamplingDecision",value:function(e){var t,r,n=this.sessionId!==e;if($(this._sampleRate)){var i,o=this.isSampled;(i=n||!M(o)?Math.random()<this._sampleRate:o)||W.warn("[SessionSampling] Sample rate (".concat(this._sampleRate,") has determined that this sessionId (").concat(e,") will not be sent to the server.")),null==(r=this.instance.persistence)||r.register(u({},eE,i))}else null==(t=this.instance.persistence)||t.register(u({},eE,null))}},{key:"afterDecideResponse",value:function(e){var t,r,n,i,o,s,a,c=this;this.instance.persistence&&this.instance.persistence.register((u(a={},ex,!!e.sessionRecording),u(a,eC,null==(o=e.sessionRecording)?void 0:o.consoleLogRecordingEnabled),u(a,eP,null==(s=e.sessionRecording)?void 0:s.recorderVersion),a));var l=null==(t=e.sessionRecording)?void 0:t.sampleRate;this._sampleRate=O(l)||T(l)?null:parseFloat(l);var d,f=null==(r=e.sessionRecording)?void 0:r.minimumDurationMilliseconds;if(this._minimumDuration=O(f)?null:f,this._linkedFlag=(null==(n=e.sessionRecording)?void 0:n.linkedFlag)||null,
1null!=(i=e.sessionRecording)&&i.endpoint&&(this._endpoint=null==(d=e.sessionRecording)?void 0:d.endpoint),$(this._sampleRate)&&this.sessionManager.onSessionId(function(e){c.makeSamplingDecision(e)}),R(this._linkedFlag)){var h=this._linkedFlag;this.instance.onFeatureFlags(function(e){c._linkedFlagSeen=e.includes(h)})}this.receivedDecide=!0,this.startRecordingIfEnabled()}},{key:"log",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";null==(t=this.instance.sessionRecording)||t.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:r,trace:[],payload:[JSON.stringify(e)]}},timestamp:J()})}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){this._startCapture()}},{key:"_startCapture",value:function(){var e=this;if(!O(Object.assign)&&!this._captureStarted&&!this.instance.config.disable_session_recording){this._captureStarted=!0,this.sessionManager.checkAndGetSessionAndWindowId();var t="v2"===this.recordingVersion?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.recordingVersion?ea(this.instance.config.api_host+"/static/".concat(t,"?v=").concat(w.LIB_VERSION),function(r){if(r)return W.error("Could not load ".concat(t),r);e._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(e){var t;return 3===e.type&&-1!==tr.indexOf(null==(t=e.data)?void 0:t.source)}},{key:"_updateWindowAndSessionIds",value:function(e){var t=this._isInteractiveEvent(e);if(t||this.isIdle||e.timestamp-this._lastActivityTimestamp>3e5&&(this.isIdle=!0),t&&(this._lastActivityTimestamp=e.timestamp,this.isIdle&&(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var r=this.sessionManager.checkAndGetSessionAndWindowId(!t,e.timestamp),n=r.windowId,i=r.sessionId,o=this.sessionId!==i,s=this.windowId!==n;this.windowId=n,this.sessionId=i,-1===[2,4].indexOf(e.type)&&(s||o)&&this._tryTakeFullSnapshot()}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this._captureStarted)return!1;try{var e;return null==(e=this.rrwebRecord)||e.takeFullSnapshot(),!0}catch(e){return W.error("Error taking full snapshot.",e),!1}}},{key:"_onScriptLoaded",value:function(){var e,t=this,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var n=this.instance.config.session_recording,o=0,s=Object.entries(n||{});o<s.length;o++){var a=p(s[o],2),c=a[0],u=a[1];c in r&&(r[c]=u)}this.rrwebRecord?(this.mutationRateLimiter=null!=(e=this.mutationRateLimiter)?e:new te(this.rrwebRecord,{onBlockedNode:function(e,r){var n="Too many mutations on node '".concat(e,"'. Rate limiting. This could be due to SVG animations or something similar");W.info(n,{node:r}),t.log("[PostHog Recorder] "+n,"warn")}}),this.stopRrweb=this.rrwebRecord(i({emit:function(e){t.onRRwebEmit(e)},plugins:window.rrwebConsoleRecord&&this.isConsoleLogCaptureEnabled?[window.rrwebConsoleRecord.getRecordConsolePlugin()]:[]},r)),this.instance._addCaptureHook(function(e){try{if("$pageview"===e){var r,n=t._maskUrl(window.location.href);if(!n)return;null==(r=t.rrwebRecord)||r.addCustomEvent("$pageview",{href:n})}}catch(e){W.error("Could not add $pageview to rrweb session",e)}}),this._lastActivityTimestamp=Date.now(),this.isIdle=!1):W.error("onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.")}},{key:"onRRwebEmit",value:function(e){if(e&&I(e)){if(e.type===tt.Meta){var t=this._maskUrl(e.data.href);if(!t)return;e.data.href=t}var r=this.mutationRateLimiter?this.mutationRateLimiter.throttleMutations(e):e;if(r){var n=function(e){if(e&&I(e)&&6===e.type&&I(e.data)&&"rrweb/console@1"===e.data.plugin){e.data.payload.payload.length>10&&(e.data.payload.payload=e.data.payload.payload.slice(0,10),e.data.payload.payload.push("...[truncated]"));for(var t=[],r=0;r<e.data.payload.payload.length;r++)e.data.payload.payload[r]&&e.data.payload.payload[r].length>2e3?t.push(e.data.payload.payload[r].slice(0,2e3)+"...[truncated]"):t.push(e.data.payload.payload[r]);return e.data.payload.payload=t,e}return e}(r),i={$snapshot_bytes:JSON.stringify(n).length,$snapshot_data:n,$session_id:this.sessionId,$window_id:this.windowId};this._updateWindowAndSessionIds(n),this.isIdle||("disabled"!==this.status?this._captureSnapshotBuffered(i):this.clearBuffer())}}}},{key:"_maskUrl",value:function(e){var t=this.instance.config.session_recording;
1if(t.maskNetworkRequestFn){var r,n={url:e};return null==(r=n=t.maskNetworkRequestFn(n))?void 0:r.url}return e}},{key:"clearBuffer",value:function(){return this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:"_flushBuffer",value:function(){var e=this;this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0);var t=this._minimumDuration,r=this.sessionDuration,n=$(t)&&$(r)&&r<t;return"buffering"===this.status||n?(this.flushBufferTimer=setTimeout(function(){e._flushBuffer()},2e3),this.buffer||this.clearBuffer()):this.buffer&&0!==this.buffer.data.length?(this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.clearBuffer()):this.buffer||this.clearBuffer()}},{key:"_captureSnapshotBuffered",value:function(e){var t,r=this,n=2+((null==(t=this.buffer)?void 0:t.data.length)||0);(!this.buffer||this.buffer.size+e.$snapshot_bytes+n>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=e.$snapshot_bytes,this.buffer.data.push(e.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout(function(){r._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(e){this.instance.capture("$snapshot",e,{transport:"XHR",method:"POST",endpoint:this._endpoint,_noTruncate:!0,_batchKey:"recordings",_metrics:{rrweb_full_snapshot:2===e.$snapshot_data.type}})}}]),e}(),ti={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},to=["first-input","navigation","paint","resource"],ts=["/s/","/e/"],ta=function(){function e(t){s(this,e),u(this,"_forceAllowLocalhost",!1),this.instance=t}return c(e,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var e,t,r=this;if(!this.observer)if(O(null==(e=window)||null==(t=e.PerformanceObserver)?void 0:t.supportedEntryTypes))W.info("[PerformanceObserver] not started because PerformanceObserver is not supported by this browser.");else if(!e5.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver(function(e){e.getEntries().forEach(function(e){r._capturePerformanceEvent(e)})}),PerformanceObserver.supportedEntryTypes.filter(function(e){return to.includes(e)}).forEach(function(e){var t;null==(t=r.observer)||t.observe({type:e,buffered:!0})})}catch(e){W.error("PostHog failed to start performance observer",e),this.stopObserving()}else W.info("[PerformanceObserver] not started because we are on localhost.")}},{key:"stopObserving",value:function(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var e,t;return null!=(e=null!=(t=this.instance.config.capture_performance)?t:this.remoteEnabled)&&e}},{key:"afterDecideResponse",value:function(e){this.remoteEnabled=e.capturePerformance||!1,this.isEnabled()&&this.startObserving()}},{key:"_capturePerformanceEvent",value:function(e){if(0===e.name.indexOf(this.instance.config.api_host)){var t=e.name.replace(this.instance.config.api_host,"");if(ts.find(function(e){return 0===t.indexOf(e)}))return}var r={url:e.name},n=this.instance.config.session_recording;if(n.maskNetworkRequestFn&&(r=n.maskNetworkRequestFn(r)),r){var i=e.toJSON();i.name=r.url;var o={},s=Math.floor(Date.now()-performance.now());for(var a in o[ti.timeOrigin]=s,o[ti.timestamp]=Math.floor(s+e.startTime),ti)O(i[a]
1)||(o[ti[a]]=i[a]);if(this.capturePerformanceEvent(o),tc(e)){var c,l=m(e.serverTiming||[]);try{for(l.s();!(c=l.n()).done;){var d,f=c.value;this.capturePerformanceEvent((u(d={},ti.timeOrigin,s),u(d,ti.timestamp,Math.floor(s+e.startTime)),u(d,ti.name,f.name),u(d,ti.duration,f.duration),u(d,ti.entryType,"serverTiming"),d))}}catch(e){l.e(e)}finally{l.f()}}}}},{key:"capturePerformanceEvent",value:function(e){var t,r=e[ti.timestamp];null==(t=this.instance.sessionRecording)||t.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:e},timestamp:r})}}]),e}(),tc=function(e){return"navigation"===e.entryType||"resource"===e.entryType},tu=function(){function e(t){s(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return c(e,[{key:"call",value:function(){var e=this,t=er(JSON.stringify({token:this.instance.config.token,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(eO),group_properties:this.instance.get_property(eR),disable_flags:this.instance.config.advanced_disable_feature_flags||this.instance.config.advanced_disable_feature_flags_on_first_load||void 0}));this.instance._send_request("".concat(this.instance.config.api_host,"/decide/?v=3"),{data:t,verbose:!0},{method:"POST"},function(t){return e.parseDecideResponse(t)})}},{key:"parseDecideResponse",value:function(e){var t,r,n,i,o=this;if(this.instance.featureFlags.setReloadingPaused(!1),this.instance.featureFlags._startReloadTimer(),0!==(null==e?void 0:e.status)){if(!document||!document.body)return W.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){o.parseDecideResponse(e)},500);this.instance.toolbar.afterDecideResponse(e),null==(t=this.instance.sessionRecording)||t.afterDecideResponse(e),eB.afterDecideResponse(e,this.instance),null==(r=this.instance.webPerformance)||r.afterDecideResponse(e),this.instance._afterDecideResponse(e),this.instance.config.advanced_disable_feature_flags_on_first_load||this.instance.featureFlags.receivedFeatureFlags(e);var s=null==(n=window)?void 0:n.extendPostHogWithSurveys;e.surveys&&!s&&ea(this.instance.config.api_host+"/static/surveys.js",function(e){if(e)return W.error("Could not load surveys script",e);window.extendPostHogWithSurveys(o.instance)});var a=null==(i=window)?void 0:i.extendPostHogWithExceptionAutoCapture;if(e.autocaptureExceptions&&e.autocaptureExceptions&&O(a)&&ea(this.instance.config.api_host+"/static/exception-autocapture.
1js",function(t){if(t)return W.error("Could not load exception autocapture script",t);window.extendPostHogWithExceptionAutocapture(o.instance,e)}),e.siteApps)if(this.instance.config.opt_in_site_apps){var c,u=this.instance.config.api_host,l=m(e.siteApps);try{for(l.s();!(c=l.n()).done;)!function(){var e=c.value,t=e.id,r=e.url,n=[u,"/"===u[u.length-1]&&"/"===r[0]?r.substring(1):r].join("");window["__$$ph_site_app_".concat(t)]=o.instance,ea(n,function(e){e&&W.error("Error while initializing PostHog app with config id ".concat(t),e)})}()}catch(e){l.e(e)}finally{l.f()}}else e.siteApps.length>0&&W.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else W.error("Failed to fetch feature flags from PostHog.")}}]),e}(),tl=["https://app.posthog.com","https://eu.posthog.com"],td=["source"],tf=L.location?e6(L.location.hash,"__posthog")||e6(location.hash,"state"):null,th=function(){function e(t){s(this,e),this.instance=t}return c(e,[{key:"afterDecideResponse",value:function(e){var t=e.toolbarParams||e.editorParams||(e.toolbarVersion?{toolbarVersion:e.toolbarVersion}:{});e.isAuthenticated&&t.toolbarVersion&&0===t.toolbarVersion.indexOf("toolbar")&&this.loadToolbar(i({},t))}},{key:"maybeLoadToolbar",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L.location,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L.history;try{if(!t){try{L.localStorage.setItem("test","test"),L.localStorage.removeItem("test")}catch(e){return!1}t=L.localStorage}var n,i=tf||e6(e.hash,"__posthog")||e6(e.hash,"state"),o=i?K(function(){return JSON.parse(atob(decodeURIComponent(i)))})||K(function(){return JSON.parse(decodeURIComponent(i))}):null;return o&&"ph_authorize"===o.action?((n=o).source="url",n&&Object.keys(n).length>0&&(o.desiredHash?e.hash=o.desiredHash:r?r.replaceState("",document.title,e.pathname+e.search):e.hash="")):((n=JSON.parse(t.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.config.token!==n.token)&&(this.loadToolbar(n),!0)}catch(e){return!1}}},{key:"loadToolbar",value:function(e){var t=this;if(L._postHogToolbarLoaded)return!1;L._postHogToolbarLoaded=!0;var r=this.instance.config.api_host,n=3e5*Math.floor(Date.now()/3e5),o="".concat(r).concat(r.endsWith("/")?"":"/","static/toolbar.js?t=").concat(n),s=!tl.includes(this.instance.config.api_host)&&this.instance.config.advanced_disable_toolbar_metrics,a=i(i({token:this.instance.config.token},e),{},{apiURL:r},s?{instrument:!1}:{});a.source;var c=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(a,td);return L.localStorage.setItem("_postHogToolbarParams",JSON.stringify(c)),ea(o,function(e){e?W.error("Failed to load toolbar",e):(L.ph_load_toolbar||L.ph_load_editor)(a,t.instance)}),es(L,"turbolinks:load",function(){L._postHogToolbarLoaded=!1,t.loadToolbar(a)}),!0}},{key:"_loadEditor",value:function(e){return this.loadToolbar(e)}},{key:"maybeLoadEditor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L.location,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L.history;return this.maybeLoadToolbar(e,t,r)}}]),e}();function tp(e,t){tk(!0,e,t)}function tg(e,t){tk(!1,e,t)}function tv(e,t){return"1"===tw(e,t)}function t_(e,t){return!!function(e){if(e&&e.respectDnt){var t=e&&e.window||L,r=t.navigator||{},n=!1;return Y([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){X([!0,1,"1","yes"],e)&&(n=!0)}),n}return!1}(t)||"0"===tw(e,t)}function tm(e,t){ty(t=t||{}).remove(tb(e,t),!!t.crossSubdomainCookie)}function ty(e){return"localStorage"===(e=e||{}).persistenceType?eJ:"localStorage+cookie"===e.persistenceType?eZ:eQ}function tb(e,t){return((t=t||{}).persistencePrefix||"__ph_opt_in_out_")+e}function tw(e,t){return ty(t).get(tb(e,t))}function tk(e,t,r){R(t)&&t.length?(ty(r=r||{}).set(tb(t,r),+!!e,$(r.cookieExpiration)?r.cookieExpiration:null,r.crossSubdomainCookie,r.secureCookie),r.capture&&e&&r.capture(r.captureEventName||"$opt_in",r.captureProperties||{},{send_instantly:!0}
1)):W.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}var tS=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3;s(this,e),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=t}return c(e,[{key:"setPollInterval",value:function(e){this._pollInterval=e,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return(new Date).getTime()}}]),e}(),tx=function(){l(t,tS);var e=h(t);function t(r){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3;return s(this,t),(n=e.call(this,i)).handlePollRequest=r,n}return c(t,[{key:"enqueue",value:function(e,t,r){this._event_queue.push({url:e,data:t,options:r}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var e=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(e._event_queue.length>0){var t=e.formatQueue();for(var r in t)!function(r){var n=t[r],i=n.url,o=n.data,s=n.options;Y(o,function(t,r){o[r].offset=Math.abs(o[r].timestamp-e.getTime()),delete o[r].timestamp}),e.handlePollRequest(i,o,s)}(r);e._event_queue.length=0,e._empty_queue_count=0}else e._empty_queue_count++;e._empty_queue_count>4&&(e.isPolling=!1,e._empty_queue_count=0),e.isPolling&&e.poll()},this._pollInterval)}},{key:"unload",value:function(){var e=this;clearTimeout(this._poller);var t=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var r=Object.values(t);[].concat(g(r.filter(function(e){return 0===e.url.indexOf("/e")})),g(r.filter(function(e){return 0!==e.url.indexOf("/e")}))).map(function(t){var r=t.url,n=t.data,o=t.options;e.handlePollRequest(r,n,i(i({},o),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var e={};return Y(this._event_queue,function(t){var r=t.url,n=t.data,i=t.options,o=(i?i._batchKey:null)||r;O(e[o])&&(e[o]={data:[],url:r,options:i}),i&&e[o].options&&e[o].options._metrics&&!e[o].options._metrics.rrweb_full_snapshot&&(e[o].options._metrics.rrweb_full_snapshot=i._metrics.rrweb_full_snapshot),e[o].data.push(n)}),e}}]),t}(),tC=Uint8Array,tP=Uint16Array,tF=Uint32Array,tE=new tC([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),tI=new tC([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),tA=new tC([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),tO=function(e,t){for(var r=new tP(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];var i=new tF(r[30]);for(n=1;n<30;++n)for(var o=r[n];o<r[n+1];++o)i[o]=o-r[n]<<5|n;return[r,i]},tR=tO(tE,2),tT=tR[0],t$=tR[1];tT[28]=258,t$[258]=28;for(var tM=tO(tI,0)[1],tD=new tP(32768),tj=0;tj<32768;++tj){var tN=(43690&tj)>>>1|(21845&tj)<<1;tN=(61680&(tN=(52428&tN)>>>2|(13107&tN)<<2))>>>4|(3855&tN)<<4,tD[tj]=((65280&tN)>>>8|(255&tN)<<8)>>>1}var tL=function(e,t,r){for(var n=e.length,i=0,o=new tP(t);i<n;++i)++o[e[i]-1];var s,a=new tP(t);for(i=0;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;if(r){s=new tP(1<<t);var c=15-t;for(i=0;i<n;++i)if(e[i])for(var u=i<<4|e[i],l=t-e[i],d=a[e[i]-1]++<<l,f=d|(1<<l)-1;d<=f;++d)s[tD[d]>>>c]=u}else for(s=new tP(n),i=0;i<n;++i)s[i]=tD[a[e[i]-1]++]>>>15-e[i];return s},tB=new tC(288);for(tj=0;tj<144;++tj)tB[tj]=8;for(tj=144;tj<256;++tj)tB[tj]=9;for(tj=256;tj<280;++tj)tB[tj]=7;for(tj=280;tj<288;++tj)tB[tj]=8;var tH=new tC(32);for(tj=0;tj<32;++tj)tH[tj]=5;var tz,tq,tW=tL(tB,9,0),tU=tL(tH,5,0),tV=function(e){return(e/8|0)+(7&e&&1)},tG=function(e,t,r){(null==t||t<0)&&(t=0),(null==r||r>e.length)&&(r=e.length);var n=new(e instanceof tP?tP:e instanceof tF?tF:tC)(r-t);return n.set(e.subarray(t,r)),n},tY=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>>8},tQ=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},tX=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,o=r.slice();if(!i)return[new tC(0),0];if(1==i){var s=new tC(r[0].s+1);return s[r[0].s]=1,[s,1]}r.sort(function(e,t){return e.f-t.f}),r.push({s:-1,f:25001});var a=r[0],c=r[1],u=0,l=1,d=2;for(r[0]={s:-1,f:a.f+c.f,l:a,r:c};l!=i-1;)a=r[r[u].f<r[d].f?u++:d++],c=r[u!=l&&r[u].f<r[d].f?u++:d++],r[l++]={s:-1,f:a.f+c.f,l:a,r:c};var f=o[0].s;for(n=1;n<i;++n)o[n].s>f&&(f=o[n].s);var h=new tP(f+1),p=tJ(r[l-1],h,0);if(p>t){n=0;var g=0,v=p-t,_=1<<v;for(o.sort(function(e,t){return h[t.s]-h[e.s]||e.f-t.f});n<i;++n){var m=o[n].s;if(!(h[m]>t))break;g+=_-(1<<p-h[m]),h[m]=t}for(g>>>=v;g>0;){var y=o[n].s;h[y]<t?g-=1<<t-h[y]++-1:++n}for(;n>=0&&g;--n){var b=o[n].s;h[b]==t&&(--h[b],++g)}p=t}return[new tC(h),p]},tJ=function e(t,r,n){return -1==t.s?Math.max(e(t.l,r,n+1),e(t.r,r,n+1)):r[t.s]=n},tK=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new tP(++t),n=0,i=e[0],o=1,s=function(e){r[n++]=e},a=1;a<=t;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return[r.subarray(0,n),t]},tZ=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},t0=function(e,t,r){var n=r.length,i=tV(t+2);e[i]=255&n,e[i+1]=n>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<n;++o)e[i+o+4]=r[o];return 8*(i+4+n)},t1=function(e,t,r,n,i,o,s,a,c,u,l){tY(t,l++,r),++i[256];for(var d=tX(i,15),f=d[0],h=d[1],p=tX(o,15),g=p[0],v=p[1],_=tK(f),m=_[0],y=_[1],b=tK(g),w=b[0],k=b[1],S=new tP(19),x=0;x<m.length;++x)S[31&m[x]]++;for(x=0;x<w.length;++x)S[31&w[x]]++;for(var C=tX(S,7),P=C[0],F=C[1],E=19;E>4&&!P[tA[E-1]];--E);var I,A,O,R,T=u+5<<3,$=tZ(i,tB)+tZ(o,tH)+s,M=tZ(i,f)+tZ(o,g)+s+14+3*E+tZ(S,P)+(2*S[16]+3*S[17]+7*S[18]);if(T<=$&&T<=M)return t0(t,l,e.subarray(c,c+u));if(tY(t,l,1+(M<$)),l+=2,M<$){I=tL(f,h,0),A=f,O=tL(g,v,0),R=g;var D=tL(P,F,0);for(tY(t,l,y-257),tY(t,l+5,k-1),tY(t,l+10,E-4),l+=14,x=0;x<E;++x)tY(t,l+3*x,P[tA[x]]);l+=3*E;for(var j=[m,w],N=0;N<2;++N){var L=j[N];for(x=0;x<L.length;++x){var B=31&L[x];tY(t,l,D[B]),l+=P[B],B>15&&(tY(t,l,L[x]>>>5&127),l+=L[x]>>>12)}}}else I=tW,A=tB,O=tU,R=tH;for(x=0;x<a;++x)if(n[x]>255){tQ(t,l,I[(B=n[x]>>>18&31)+257]),l+=A[B+257],B>7&&(tY(t,l,n[x]>>>23&31),l+=tE[B]);var H=31&n[x];tQ(t,l,O[H]),l+=R[H],H>3&&(tQ(t,l,n[x]>>>5&8191),l+=tI[H])}else tQ(t,l,I[n[x]]),l+=A[n[x]];return tQ(t,l,I[256]),l+A[256]},t2=new tF([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),t3=new tC(0),t5=function(){for(var e=new tF(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&0xedb88320)^r>>>1;e[t]=r}return e}(),t4=function(){var e=0xffffffff;return{p:function(t){for(var r=e,n=0;n<t.length;++n)r=t5[255&r^t[n]]^r>>>8;e=r},d:function(){return 0xffffffff^e}}},t6=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},t8=function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:2*(9==t.level),e[9]=3,0!=t.mtime&&t6(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var n=0;n<=r.length;++n)e[n+10]=r.charCodeAt(n)}};(rs=tq||(tq={})).GZipJS="gzip-js",rs.Base64="base64";var t9=function(e,t,r){var n=t||{};n.ip=+!!r.ip,n._=(new Date).getTime().toString(),n.ver=w.LIB_VERSION;var i=e.split("?");if(i.length>1){var o,s=m(i[1].split("&"));try{for(s.s();!(o=s.n()).done;){var a=o.value.split("=")[0];O(n[a])||delete n[a]}}catch(e){s.e(e)}finally{s.f()}}var c=e.indexOf("?")>-1?"&":"?";return e+c+function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&",i=[];return Y(e,function(e,n){O(e)||O(n)||"undefined"===n||(t=encodeURIComponent(e.toString()),r=encodeURIComponent(n),i[i.length]=r+"="+t)}),i.join(n)}(n)},t7=function e(t,r){var n;return r.blob&&t.buffer?new Blob([F(t)?t:t.buffer],{type:"text/plain"}):r.sendBeacon||r.blob?new Blob([e(t,{method:"POST"})],{type:"application/x-www-form-urlencoded"}):"POST"!==r.method?null:(n=P(t)||F(t)?"data="+encodeURIComponent(t):"data="+encodeURIComponent(t.data),"compression"in t&&t.compression&&(n+="&compression="+t.compression),n)},re=function(e){var t=e.url,r=e.data,n=e.headers,i=e.options,o=e.callback,s=e.retriesPerformedSoFar,a=e.retryQueue,c=e.onXHRError,u=e.timeout,l=e.onResponse;$(s)&&s>0&&(t=t9(t,{retry_count:s},{}));var d=new XMLHttpRequest;d.open(i.method||"GET",t,!0);var f=t7(r,i);Y(n,function(e,t){d.setRequestHeader(t,e)}),"POST"!==i.method||i.blob||d.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),d.timeout=void 0===u?6e4:u,d.withCredentials=!0,d.onreadystatechange=function(){if(4===d.readyState)if(null==l||l(d),200===d.status){if(o){var e;try{e=JSON.parse(d.responseText)}catch(e){return void W.error(e)}o(e)}}else E(c)&&c(d),(d.status<400||d.status>500)&&a.enqueue({url:t,data:r,options:i,headers:n,retriesPerformedSoFar:(s||0)+1,callback:o}),null==o||o({status:0})},d.send(f)},rt=function(){l(t,tS);var e=h(t);function t(r,n){var i;return s(this,t),(i=e.call(this)).isPolling=!1,i.queue=[],i.areWeOnline=!0,i.onXHRError=r,i.rateLimiter=n,!O(window)&&"onLine"in window.navigator&&(i.areWeOnline=window.navigator.onLine,window.addEventListener("online",function(){i._handleWeAreNowOnline()}),window.addEventListener("offline",function(){i.areWeOnline=!1})),i}return c(t,[{key:"enqueue",value:function(e){var t=e.retriesPerformedSoFar||0;if(!(t>=10)){var r,n,i,o=(i=(Math.random()-.5)*((n=Math.min(18e5,r=3e3*Math.pow(2,t)))-r/2),Math.ceil(n+i)),s=new Date(Date.now()+o);this.queue.push({retryAt:s,requestData:e});var a="Enqueued failed request for retry in ".concat(o);navigator.onLine||(a+=" (Browser is offline)"),W.warn(a),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var e=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){e.areWeOnline&&e.queue.length>0&&e.flush(),e.poll()},this._pollInterval)}},{key:"flush",value:function(){var e=new Date(Date.now()),t=this.queue.filter(function(t){return t.retryAt<e});if(t.length>0){this.queue=this.queue.filter(function(t){return t.retryAt>=e});var r,n=m(t);try{for(n.s();!(r=n.n()).done;){var i=r.value.requestData;this._executeXhrRequest(i)}}catch(e){n.e(e)}finally{n.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var e,t=m(this.queue);try{for(t.s();!(e=t.n()).done;){var r=e.value.requestData,n=r.url,o=r.data,s=r.options;if(this.rateLimiter.isRateLimited(s._batchKey))W.warn("[RetryQueue] is quota limited. Dropping request.");else try{window.navigator.sendBeacon(n,t7(o,i(i({},s),{},{sendBeacon:!0})))}catch(e){W.error(e)}}}catch(e){t.e(e)}finally{t.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(e){var t=e.url,r=e.data,n=e.options,i=e.headers,o=e.callback,s=e.retriesPerformedSoFar;this.rateLimiter.isRateLimited(n._batchKey)||re({url:t,data:r||{},options:n||{},headers:i||{},retriesPerformedSoFar:s||0,callback:o,retryQueue:this,onXHRError:this.onXHRError,onResponse:this.rateLimiter.checkForLimiting})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),t}();Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return $(e)&&isFinite(e)&&Math.floor(e)===e});var rr="0123456789abcdef",rn=function(){function e(t){if(s(this,e),this.bytes=t,16!==t.length)throw TypeError("not 128-bit length")}return c(e,[{key:"toString",value:function(){for(var e="",t=0;t<this.bytes.length;t++)e=e+rr.charAt(this.bytes[t]>>>4)+rr.charAt(15&this.bytes[t]),3!==t&&5!==t&&7!==t&&9!==t||(e+="-");if(36!==e.length)throw Error("Invalid UUIDv7 was generated");return e}},{key:"clone",value:function(){return new e(this.bytes.slice(0))}},{key:"equals",value:function(e){return 0===this.compareTo(e)}},{key:"compareTo",value:function(e){for(var t=0;t<16;t++){var r=this.bytes[t]-e.bytes[t];if(0!==r)return Math.sign(r)}return 0}}],[{key:"fromFieldsV7",value:function(t,r,n,i){if(!Number.isInteger(t)||!Number.isInteger(r)||!Number.isInteger(n)||!Number.isInteger(i)||t<0||r<0||n<0||i<0||t>0xffffffffffff||r>4095||n>0x3fffffff||i>0xffffffff)throw RangeError("invalid field value");var o=new Uint8Array(16);return o[0]=t/0x10000000000,o[1]=t/0x100000000,o[2]=t/0x1000000,o[3]=t/65536,o[4]=t/256,o[5]=t,o[6]=112|r>>>8,o[7]=r,o[8]=128|n>>>24,o[9]=n>
1>>16,o[10]=n>>>8,o[11]=n,o[12]=i>>>24,o[13]=i>>>16,o[14]=i>>>8,o[15]=i,new e(o)}}]),e}(),ri=function(){function e(){s(this,e),u(this,"timestamp",0),u(this,"counter",0),u(this,"random",new rc)}return c(e,[{key:"generate",value:function(){var e=this.generateOrAbort();if(O(e)){this.timestamp=0;var t=this.generateOrAbort();if(O(t))throw Error("Could not generate UUID after timestamp reset");return t}return e}},{key:"generateOrAbort",value:function(){var e=Date.now();if(e>this.timestamp)this.timestamp=e,this.resetCounter();else{if(!(e+1e4>this.timestamp))return;this.counter++,this.counter>0x3ffffffffff&&(this.timestamp++,this.resetCounter())}return rn.fromFieldsV7(this.timestamp,Math.trunc(this.counter/0x40000000),0x3fffffff&this.counter,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),e}(),ro=function(e){if("u">typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw Error("no cryptographically strong RNG available");for(var t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};!O(L.crypto)&&crypto.getRandomValues&&(ro=function(e){return crypto.getRandomValues(e)});var rs,ra,rc=function(){function e(){s(this,e),u(this,"buffer",new Uint32Array(8)),u(this,"cursor",1/0)}return c(e,[{key:"nextUint32",value:function(){return this.cursor>=this.buffer.length&&(ro(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),e}(),ru=function(){return rl().toString()},rl=function(){return(ra||(ra=new ri)).generate()},rd=function(){function e(t,r,n,i){s(this,e),u(this,"_sessionIdChangedHandlers",[]),this.config=t,this.persistence=r,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this._sessionIdGenerator=n||ru,this._windowIdGenerator=i||ru;var o=t.persistence_name||t.token,a=t.session_idle_timeout_seconds||1800;if($(a)?a>1800?W.warn("session_idle_timeout_seconds cannot be  greater than 30 minutes. Using 30 minutes instead."):a<60&&W.warn("session_idle_timeout_seconds cannot be less than 60 seconds. Using 60 seconds instead."):(W.warn("session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),a=1800),this._sessionTimeoutMs=1e3*Math.min(Math.max(a,60),1800),this._window_id_storage_key="ph_"+o+"_window_id",this._primary_window_exists_storage_key="ph_"+o+"_primary_window_exists",this._canUseSessionStorage()){var c=e3.parse(this._window_id_storage_key),l=e3.parse(this._primary_window_exists_storage_key);c&&!l?this._windowId=c:e3.remove(this._window_id_storage_key),e3.set(this._primary_window_exists_storage_key,!0)}this._listenToReloadWindow()}return c(e,[{key:"onSessionId",value:function(e){var t=this;return O(this._sessionIdChangedHandlers)&&(this._sessionIdChangedHandlers=[]),this._sessionIdChangedHandlers.push(e),this._sessionId&&e(this._sessionId,this._windowId),function(){t._sessionIdChangedHandlers=t._sessionIdChangedHandlers.filter(function(t){return t!==e})}}},{key:"_canUseSessionStorage",value:function(){return"memory"!==this.config.persistence&&!this.persistence.disabled&&e3.is_supported()}},{key:"_setWindowId",value:function(e){e!==this._windowId&&(this._windowId=e,this._canUseSessionStorage()&&e3.set(this._window_id_storage_key,e))}},{key:"_getWindowId",value:function(){return this._windowId?this._windowId:this._canUseSessionStorage()?e3.parse(this._window_id_storage_key):null}},{key:"_setSessionId",value:function(e,t,r){e===this._sessionId&&t===this._sessionActivityTimestamp&&r===this._sessionStartTimestamp||(this._sessionStartTimestamp=r,this._sessionActivityTimestamp=t,this._sessionId=e,this.persistence.register(u({},eF,[t,e,r])))}},{key:"_getSessionId",value:function(){if(this._sessionId&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this._sessionId,this._sessionStartTimestamp];var e=this.persistence.props[eF];return P(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}},{key:"resetSessionId",value:function(){this._setSessionId(null,null,null)}},{key:"_listenToReloadWindow",value:function(){var e=this;L.addEventListener("beforeunload",function(){e._canUseSessionStorage()&&e3.remove(e._primary_window_exists_storage_key)})}},{key:"checkAndGetSessionAndWindowId",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||(new Date).getTime(),r=p(this._getSessionId(),3),n=r[0],i=r[1],o=r[2],s=this._getWindowId(),a=o&&o>0&&Math.abs(t-o)>864e5,c=!1,u=!i,l=!e&&Math.abs(t-n)>this._sessionTimeoutMs;u||l||a?(i=this._sessionIdGenerator(),s=this._windowIdGenerator(),o=t,c=!0):s||(s=this._windowIdGenerator(),c=!0);var d=0===o?(new Date).getTime():o;return this._setWindowId(s),this._setSessionId(i,0===n||!e||a?t:n,d),c&&this._sessionIdChangedH
1andlers.forEach(function(e){return e(i,s)}),{sessionId:i,windowId:s,sessionStartTimestamp:d}}}]),e}(),rf=c(function e(t,r,n,i){s(this,e),this.name="posthog-js",this.setupOnce=function(e){e(function(e){if("error"!==e.level||!t.__loaded)return e;e.tags||(e.tags={});var o,s,a,c,u,l=t.config.ui_host||t.config.api_host;e.tags["PostHog Person URL"]=l+"/person/"+t.get_distinct_id(),t.sessionRecordingStarted()&&(e.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var d=(null==(o=e.exception)?void 0:o.values)||[],f={$exception_message:null==(s=d[0])?void 0:s.value,$exception_type:null==(a=d[0])?void 0:a.type,$exception_personURL:l+"/person/"+t.get_distinct_id(),$sentry_event_id:e.event_id,$sentry_exception:e.exception,$sentry_exception_message:null==(c=d[0])?void 0:c.value,$sentry_exception_type:null==(u=d[0])?void 0:u.type,$sentry_tags:e.tags};return r&&n&&(f.$sentry_url=(i||"https://sentry.io/organizations/")+r+"/issues/?project="+n+"&query="+e.event_id),t.capture("$exception",f),e})}}),rh=function(e){Promise&&Promise.resolve||W.warn("This browser does not have Promise support, and can not use the segment integration");var t=function(t,r){t.event.userId||t.event.anonymousId===e.get_distinct_id()||e.reset(),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(e.register({distinct_id:t.event.userId}),e.reloadFeatureFlags());var n=e._calculate_event_properties(r,t.event.properties);return t.event.properties=Object.assign({},n,t.event.properties),t};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(e){return t(e,e.event.event)},page:function(e){return t(e,"$pageview")},identify:function(e){return t(e,"$identify")},screen:function(e){return t(e,"$screen")}}},rp=function(){function e(){var t=this;s(this,e),u(this,"_hasSeenPageView",!1),u(this,"_updateScrollData",function(){t._pageViewData||(t._pageViewData=t._createPageViewData());var e,r,n,i,o=t._pageViewData,s=t._scrollY(),a=t._scrollHeight(),c=t._contentY(),u=t._contentHeight();o.lastScrollY=s,o.maxScrollY=Math.max(s,null!=(e=o.maxScrollY)?e:0),o.maxScrollHeight=Math.max(a,null!=(r=o.maxScrollHeight)?r:0),o.lastContentY=c,o.maxContentY=Math.max(c,null!=(n=o.maxContentY)?n:0),o.maxContentHeight=Math.max(u,null!=(i=o.maxContentHeight)?i:0)})}return c(e,[{key:"_createPageViewData",value:function(){return{pathname:L.location.pathname}}},{key:"doPageView",value:function(){var e,t;return this._hasSeenPageView?(t=this._pageViewData,this._pageViewData=this._createPageViewData()):(this._hasSeenPageView=!0,t=void 0,this._pageViewData||(this._pageViewData=this._createPageViewData())),setTimeout(this._updateScrollData,0),i({$prev_pageview_pathname:null==(e=t)?void 0:e.pathname},this._calculatePrevPageScrollProperties(t))}},{key:"doPageLeave",value:function(){var e=this._pageViewData;return i({$prev_pageview_pathname:null==e?void 0:e.pathname},this._calculatePrevPageScrollProperties(e))}},{key:"_calculatePrevPageScrollProperties",value:function(e){if(!e||null==e.maxScrollHeight||null==e.lastScrollY||null==e.maxScrollY||null==e.maxContentHeight||null==e.lastContentY||null==e.maxContentY)return{};var t=e.maxScrollHeight,r=e.lastScrollY,n=e.maxScrollY,i=e.maxContentHeight,o=e.lastContentY,s=e.maxContentY;return t=Math.ceil(t),r=Math.ceil(r),n=Math.ceil(n),i=Math.ceil(i),o=Math.ceil(o),s=Math.ceil(s),{$prev_pageview_last_scroll:r,$prev_pageview_last_scroll_percentage:t<=1?1:rg(r/t,0,1),$prev_pageview_max_scroll:n,$prev_pageview_max_scroll_percentage:t<=1?1:rg(n/t,0,1),$prev_pageview_last_content:o,$prev_pageview_last_content_percentage:i<=1?1:rg(o/i,0,1),$prev_pageview_max_content:s,$prev_pageview_max_content_percentage:i<=1?1:rg(s/i,0,1)}}},{key:"startMeasuringScrollPosition",value:function(){L.addEventListener("scroll",this._updateScrollData),L.addEventListener("scrollend",this._updateScrollData),L.addEventListener("resize",this._updateScrollData)}},{key:"stopMeasuringScrollPosition",value:function(){L.removeEventListener("scroll",this._updateScrollData),L.removeEventListener("scrollend",this._updateScrollData),L.removeEventListener("resize",this._updateScrollData)}},{key:"_scrollHeight",value:function(){return Math.max(0,L.document.documentElement.scrollHeight-L.document.documentElement.clientHeight)}},{key:"_scrollY",value:function(){return L.scrollY||L.pageYOffset||L.document.documentElement.scrollTop||0}},{key:"_contentHeight",value:function(){return L.document.documentElement.scrollHeight||0}},{key:"_contentY",value:function(){var e=L.document.documentElement.clientHeight||0;return this._scrollY()+e}}]),e}();function rg(e,t,r){return Math.max(t,Math.min(e,r))}var rv,r_,rm,ry={icontains:function(e){return window.location.href.toLowerCase().indexOf(e.toLowerCase())>-1},regex:function(e){var t;return t=window.location.href,!!function(e){try{new RegExp(e)}catch(e){return!1}return!0}(e)&&new RegExp(e).test(t)},exact:function(e){return window.location.href===e}},rb=function(){function e(t){s(this,e),this.instance=t}return c(e,[{key:"getSurveys",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.instance.get_property(eT);if(n&&!r)return e(n);this.instance._send_request("".concat(this.instance.config.api_host,"/api/surveys/?token=").concat(this.instance.config.token),{},{method:"GET"},function(r){var n,i=r.surveys||[];return null==(n=t.instance.persistence)||n.register(u({},eT,i)),e(i)})}},{key:"getActiveMatchingSurveys",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];
1this.getSurveys(function(r){return e(r.filter(function(e){return!(!e.start_date||e.end_date)}).filter(function(e){if(!e.conditions)return!0;var t,r,n,i,o=null==(t=e.conditions)||!t.url||ry[null!=(r=null==(n=e.conditions)?void 0:n.urlMatchType)?r:"icontains"](e.conditions.url),s=null==(i=e.conditions)||!i.selector||document.querySelector(e.conditions.selector);return o&&s}).filter(function(e){if(!e.linked_flag_key&&!e.targeting_flag_key)return!0;var r=!e.linked_flag_key||t.instance.featureFlags.isFeatureEnabled(e.linked_flag_key),n=!e.targeting_flag_key||t.instance.featureFlags.isFeatureEnabled(e.targeting_flag_key);return r&&n}))},r)}}]),e}(),rw=function(){function e(){var t=this;s(this,e),u(this,"limits",{}),u(this,"checkForLimiting",function(e){try{var r=e.responseText;if(!r||!r.length)return;(JSON.parse(r).quota_limited||[]).forEach(function(e){W.info("[RateLimiter] ".concat(e||"events"," is quota limited.")),t.limits[e]=(new Date).getTime()+6e4})}catch(e){return void W.error(e)}})}return c(e,[{key:"isRateLimited",value:function(e){var t=this.limits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}]),e}(),rk=function(){return i({initialPathName:L.location.pathname,referringDomain:e8.referringDomain()},e8.campaignParams())},rS=function(){function e(t,r,n){var i=this;s(this,e),u(this,"_onSessionIdCallback",function(e){var t=i._getStoredProps();if(!t||t.sessionId!==e){var r={sessionId:e,props:i._sessionSourceParamGenerator()};i._persistence.register(u({},ej,r))}}),this._sessionIdManager=t,this._persistence=r,this._sessionSourceParamGenerator=n||rk,this._sessionIdManager.onSessionId(this._onSessionIdCallback)}return c(e,[{key:"_getStoredProps",value:function(){return this._persistence.props[ej]}},{key:"getSessionProps",value:function(){var e,t=null==(e=this._getStoredProps())?void 0:e.props;return t?{$client_session_initial_referring_host:t.referringDomain,$client_session_initial_pathname:t.initialPathName,$client_session_initial_utm_source:t.utm_source,$client_session_initial_utm_campaign:t.utm_campaign,$client_session_initial_utm_medium:t.utm_medium,$client_session_initial_utm_content:t.utm_content,$client_session_initial_utm_term:t.utm_term}:{}}}]),e}();(r$=rv||(rv={}))[r$.INIT_MODULE=0]="INIT_MODULE",r$[r$.INIT_SNIPPET=1]="INIT_SNIPPET";for(var rx=function(){},rC={},rP="posthog",rF=L.XMLHttpRequest&&("withCredentials"in new XMLHttpRequest),rE=!rF&&-1===z.indexOf("MSIE")&&-1===z.indexOf("Mozilla"),rI=function(){var e,t,r;return{api_host:"https://app.posthog.com",api_method:"POST",api_transport:"XHR",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:!!R(r=null==(t=null==H?void 0:H.location)?void 0:t.hostname)&&"herokuapp.com"!==r.split(".").slice(-2).join("."),persistence:"cookie",persistence_name:"",cookie_name:"",loaded:rx,store_google:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageview:!0,capture_pageleave:!0,debug:!1,verbose:!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_cookie:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==L||null==(e=L.location)?void 0:e.protocol),ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_blacklist:[],respect_dnt:!1,sanitize_properties:null,xhr_headers:{},inapp_protocol:"//",inapp_link_new_window:!1,request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_disable_toolbar_metrics:!1,on_xhr_error:function(e){var t="Bad HTTP status: "+e.status+" "+e.statusText;W.error(t)},get_device_id:function(e){return e},_onCapture:rx,capture_performance:void 0,name:"posthog",callback_fn:"posthog._jsc",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800}},rA=function(e,t,r,n){var i,o=r!==rP&&rm?r?rm[r]:void 0:rm,s={initComplete:!1,syncCode:!1},a=function(e){return function(t){s[e]||(s[e]=!0,s.initComplete&&s.syncCode&&(null==n||n(t)))}};if(o&&r_===rv.INIT_MODULE)i=o;else{if(o&&!P(o))return void W.error("You have already initialized "+r);i=new rO}return i._init(e,t,r,a("initComplete")),i.toolbar.maybeLoadToolbar(),i.sessionRecording=new tn(i),i.sessionRecording.startRecordingIfEnabled(),i.webPerformance=new ta(i),i.webPerformance.startObservingIfEnabled(),i.config.__preview_measure_pageview_stats&&i.pageViewM
1anager.startMeasuringScrollPosition(),i.__autocapture=i.config.autocapture,eB._setIsAutocaptureEnabled(i),eB._isAutocaptureEnabled&&(i.__autocapture=i.config.autocapture,eB.enabledForProject(i.config.token,100,100)?eB.isBrowserSupported()?eB.init(i):(i.__autocapture=!1,W.info("Disabling Automatic Event Collection because this browser is not supported")):(i.__autocapture=!1,W.info("Not in active bucket: disabling Automatic Event Collection."))),w.DEBUG=w.DEBUG||i.config.debug,!O(o)&&P(o)&&(i._execute_array.call(i.people,o.people),i._execute_array(o)),a("syncCode")(i),i},rO=function(){function e(){var t=this;s(this,e),this.config=rI(),this.compression={},this.decideEndpointWasHit=!1,this.SentryIntegration=rf,this.segmentIntegration=function(){return rh(t)},this.__captureHooks=[],this.__request_queue=[],this.__loaded=!1,this.__loaded_recorder_version=void 0,this.__autocapture=void 0,this._jsc=function(){},this.analyticsDefaultEndpoint="/e/",this.featureFlags=new eG(this),this.toolbar=new th(this),this.pageViewManager=new rp,this.surveys=new rb(this),this.rateLimiter=new rw,this.people={set:function(e,r,n){var i=R(e)?u({},e,r):e;t.setPersonProperties(i),null==n||n({})},set_once:function(e,r,n){var i=R(e)?u({},e,r):e;t.setPersonProperties(void 0,i),null==n||n({})}}}return c(e,[{key:"init",value:function(e,t,r){if(O(r))W.critical("You must name your new library: init(token, config, name)");else{if(r!==rP){var n=rA(e,t,r,function(e){rm[r]=e,e._loaded()});return rm[r]=n,n}W.critical("You must initialize the main posthog object right after you include the PostHog js snippet")}}},{key:"_init",value:function(e){var t,r,n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var c,u={segmentRegister:!1,syncCode:!1},l=function(e){return function(){u[e]||(u[e]=!0,u.segmentRegister&&u.syncCode&&(null==a||a(n)))}};if(this.set_config(Q({},rI(),o,{name:s,token:e,callback_fn:(s===rP?s:rP+"."+s)+"._jsc"})),this._jsc=function(){},(null!=L&&null!=(t=L.rrweb)&&t.record||null!=L&&L.rrwebRecord)&&(this.__loaded_recorder_version=null==L||null==(c=L.rrweb)?void 0:c.version),this.persistence=new e7(this.config),this._requestQueue=new tx(this._handle_queued_event.bind(this)),this._retryQueue=new rt(this.config.on_xhr_error,this.rateLimiter),this.__captureHooks=[],this.__request_queue=[],this.sessionManager=new rd(this.config,this.persistence),this.sessionPropsManager=new rS(this.sessionManager,this.persistence),this.sessionPersistence="sessionStorage"===this.config.persistence?this.persistence:new e7(i(i({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),o.segment?(this.config.get_device_id=function(){return o.segment.user().anonymousId()},o.segment.user().id()&&(this.register({distinct_id:o.segment.user().id()}),this.persistence.set_user_state("identified")),o.segment.register(this.segmentIntegration()).then(l("segmentRegister"))):l("segmentRegister")(),void 0!==(null==(r=o.bootstrap)?void 0:r.distinctID)){var d,f,h=this.config.get_device_id(ru()),p=null!=(d=o.bootstrap)&&d.isIdentifiedID?h:o.bootstrap.distinctID;this.persistence.set_user_state(null!=(f=o.bootstrap)&&f.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:o.bootstrap.distinctID,$device_id:p})}if(this._hasBootstrappedFeatureFlags()){var g,v,_=Object.keys((null==(g=o.bootstrap)?void 0:g.featureFlags)||{}).filter(function(e){var t,r;return!(null==(t=o.bootstrap)||null==(r=t.featureFlags)||!r[e])}).reduce(function(e,t){var r,n;return e[t]=(null==(r=o.bootstrap)||null==(n=r.featureFlags)?void 0:n[t])||!1,e},{}),m=Object.keys((null==(v=o.bootstrap)?void 0:v.featureFlagPayloads)||{}).filter(function(e){return _[e]}).reduce(function(e,t){var r,n,i,s;return null!=(r=o.bootstrap)&&null!=(n=r.featureFlagPayloads)&&n[t]&&(e[t]=null==(i=o.bootstrap)||null==(s=i.featureFlagPayloads)?void 0:s[t]),e},{});this.featureFlags.receivedFeatureFlags({featureFlags:_,featureFlagPayloads:m})}if(!this.get_distinct_id()){var y=this.config.get_device_id(ru());this.register_once({distinct_id:y,$device_id:y},""),this.persistence.set_user_state("anonymous")}L.addEventListener&&L.addEventListener("onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),l("syncCode")()}},{key:"_afterDecideResponse",value:function(e){var t;if(this.compression={},e.supportedCompression&&!this.config.disable_compression){var r,n={},i=m(e.supportedCompression);try{for(i.s();!(r=i.n()).done;)n[r.value]=!0}catch(e){i.e(e)}finally{i.f()}this.compression=n}
1null!=(t=e.analytics)&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint)}},{key:"_loaded",value:function(){var e=this.config.advanced_disable_decide;e||this.featureFlags.setReloadingPaused(!0);try{this.config.loaded(this)}catch(e){W.critical("`loaded` function failed",e)}this._start_queue_if_opted_in(),this.config.capture_pageview&&this.capture("$pageview",{title:H.title},{send_instantly:!0}),e||(new tu(this).call(),this.featureFlags.resetRequestQueue())}},{key:"_start_queue_if_opted_in",value:function(){var e;this.has_opted_out_capturing()||this.config.request_batching&&(null==(e=this._requestQueue)||e.poll())}},{key:"_dom_loaded",value:function(){var e=this;this.has_opted_out_capturing()||G(this.__request_queue,function(t){e._send_request.apply(e,g(t))}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(e,t){if(O(e))return null;if(rF)return function(r){e(r,t)};var r=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.config.callback_fn+"["+n+"]";return r[n]=function(i){delete r[n],e(i,t)},i}},{key:"_handle_unload",value:function(){var e,t;this.config.request_batching?(this.config.capture_pageview&&this.config.capture_pageleave&&this.capture("$pageleave"),null==(e=this._requestQueue)||e.unload(),null==(t=this._retryQueue)||t.unload()):this.config.capture_pageview&&this.config.capture_pageleave&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(e,t,r){var n=JSON.stringify(t);this.__compress_and_send_json_request(e,n,r||rC,rx)}},{key:"__compress_and_send_json_request",value:function(e,t,r,n){var o,s,a,c,u,l,d,f,h=p((o=this.compression[tq.GZipJS]?tq.GZipJS:tq.Base64,o===tq.GZipJS?[(s=function(e){var t=e.length;if("u">typeof TextEncoder)return(new TextEncoder).encode(e);for(var r=new tC(e.length+(e.length>>>1)),n=0,i=function(e){r[n++]=e},o=0;o<t;++o){if(n+5>r.length){var s=new tC(n+8+(t-o<<1));s.set(r),r=s}var a=e.charCodeAt(o);a<128?i(a):(a<2048?i(192|a>>>6):(a>55295&&a<57344?(i(240|(a=65536+(1047552&a)|1023&e.charCodeAt(++o))>>>18),i(128|a>>>12&63)):i(224|a>>>12),i(128|a>>>6&63)),i(128|63&a))}return tG(r,0,n)}(t),a={mtime:0},c=t4(),u=s.length,c.p(s),f=(l=10+(a.filename&&a.filename.length+1||0),d=function(e,t,r,n,i){var o=e.length,s=new tC(n+o+5*(1+Math.floor(o/7e3))+8),a=s.subarray(n,s.length-8),c=0;if(!t||o<8)for(var u=0;u<=o;u+=65535){var l=u+65535;l<o?c=t0(a,c,e.subarray(u,l)):(a[u]=i,c=t0(a,c,e.subarray(u,o)))}else{for(var d=t2[t-1],f=d>>>13,h=8191&d,p=(1<<r)-1,g=new tP(32768),v=new tP(p+1),_=Math.ceil(r/3),m=2*_,y=function(t){return(e[t]^e[t+1]<<_^e[t+2]<<m)&p},b=new tF(25e3),w=new tP(288),k=new tP(32),S=0,x=0,C=(u=0,0),P=0,F=0;u<o;++u){var E=y(u),I=32767&u,A=v[E];if(g[I]=A,v[E]=I,P<=u){var O=o-u;if((S>7e3||C>24576)&&O>423){c=t1(e,a,0,b,w,k,x,C,F,u-F,c),C=S=x=0,F=u;for(var R=0;R<286;++R)w[R]=0;for(R=0;R<30;++R)k[R]=0}var T=2,$=0,M=h,D=I-A&32767;if(O>2&&E==y(u-D))for(var j=Math.min(f,O)-1,N=Math.min(32767,u),L=Math.min(258,O);D<=N&&--M&&I!=A;){if(e[u+T]==e[u+T-D]){for(var B=0;B<L&&e[u+B]==e[u+B-D];++B);if(B>T){if(T=B,$=D,B>j)break;var H=Math.min(D,B-2),z=0;for(R=0;R<H;++R){var q=u-D+R+32768&32767,W=q-g[q]+32768&32767;W>z&&(z=W,A=q)}}}D+=(I=A)-(A=g[I])+32768&32767}if($){b[C++]=0x10000000|t$[T]<<18|tM[$];var U=31&t$[T],V=31&tM[$];x+=tE[U]+tI[V],++w[257+U],++k[V],P=u+T,++S}else b[C++]=e[u],++w[e[u]]}}c=t1(e,a,i,b,w,k,x,C,F,u-F,c),i||(c=t0(a,c,t3))}return tG(s,0,n+tV(c)+8)}(s,null==a.level?6:a.level,null==a.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):12+a.mem,l,!0)).length,t8(d,a),t6(d,f-8,c.d()),t6(d,f-4,u),d),i(i({},r),{},{blob:!0,urlQueryArgs:{compression:tq.GZipJS}})]:[{data:er(t)},r]),2),g=h[0],v=h[1];this._send_request(e,g,v,n)}},{key:"_send_request",value:function(e,t,r,n){if(this.__loaded&&this._retryQueue&&!this.rateLimiter.isRateLimited(r._batchKey))if(rE)this.__request_queue.push([e,t,r,n]);else{r=Q({method:this.config.api_method,transport:this.config.api_transport,verbose:this.config.verbose},r||{}),rF||(r.method="GET");var o="sendBeacon"in L.navigator&&"sendBeacon"===r.transport;if(e=t9(e,r.urlQueryArgs||{},{ip:this.config.ip}),o)try{L.navigator.sendBeacon(e,t7(t,i(i({},r),{},{sendBeacon:!0})))}catch(e){}else if(rF)try{re({url:e,data:t,headers:this.config.xhr_headers,options:r,callback:n,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.config.on_xhr_error,onResponse:this.rateLimiter.checkForLimiting})}catch(e){W.error(e)}else{var s,a=H.createElement("script");a.type="text/javascript",a.async=!0,a.defer=!0,a.src=e;var c=H.getElementsByTagName("script")[0];null==(s=c.parentNode)||s.insertBefore(a,c)}}}},{key:"_execute_array",value:function(e){var t,r=this,n=[],i=[],o=[];G(e,function(e){e&&(P(t=e[0])?o.push(e):E(e)?e.call(r):P(e)&&"alias"===t?n.push(e):P(e)&&-1!==t.indexOf("capture")&&E(r[t])?o.push(e):i.push(e))});var s=function(e,t){G(e,function(e){if(P(e[0])){var r=t;
1Y(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};s(n,this),s(i,this),s(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var e,t;return(null==(e=this.config.bootstrap)?void 0:e.featureFlags)&&Object.keys(null==(t=this.config.bootstrap)?void 0:t.featureFlags).length>0||!1}},{key:"push",value:function(e){this._execute_array([e])}},{key:"capture",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rC;if(!this.__loaded||!this.sessionPersistence||!this._requestQueue)return W.uninitializedWarning("posthog.capture");if(!function(e){var t=!1;try{var r=e.config.token,n=e.config.respect_dnt,i=e.config.opt_out_capturing_persistence_type,o=e.config.opt_out_capturing_cookie_prefix||void 0,s=e.config.window;r&&(t=t_(r,{respectDnt:n,persistenceType:i,persistencePrefix:o,window:s}))}catch(e){W.error("Unexpected error when checking capturing opt-out status: "+e)}return t}(this)){var n=(r=r||rC).transport;if(n&&(r.transport=n),!O(e)&&R(e)){if(!eo(z,this.config.custom_blocked_useragents)){this.sessionPersistence.update_search_keyword(),this.config.store_google&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info();var o,s,a,c,u={uuid:ru(),event:e,properties:this._calculate_event_properties(e,t||{})};"$identify"===e&&(u.$set=r.$set,u.$set_once=r.$set_once),(o=u,s=r._noTruncate?null:this.config.properties_string_max_length,a=function(e,t){return t&&et.indexOf(t)>-1?e:R(e)&&!T(s)?e.slice(0,s):e},c=new Set,u=function e(t,r){var n;return t!==Object(t)?a?a(t,r):t:c.has(t)?void 0:(c.add(t),P(t)?(n=[],G(t,function(t){n.push(e(t))})):(n={},Y(t,function(t,r){c.has(t)||(n[r]=e(t,r))})),n)}(o)).timestamp=r.timestamp||new Date;var l=i(i({},u.properties.$set),u.$set);A(l)||this.setPersonPropertiesForFlags(l),W.info("send",u);var d=JSON.stringify(u),f=this.config.api_host+(r.endpoint||this.analyticsDefaultEndpoint),h=r!==rC;return!this.config.request_batching||h&&!r._batchKey||r.send_instantly?this.__compress_and_send_json_request(f,d,r):this._requestQueue.enqueue(f,u,r),this._invokeCaptureHooks(e,u),u}}else W.error("No event name provided to posthog.capture")}}},{key:"_addCaptureHook",value:function(e){this.__captureHooks.push(e)}},{key:"_invokeCaptureHooks",value:function(e,t){this.config._onCapture(e,t),Y(this.__captureHooks,function(t){return t(e)})}},{key:"_calculate_event_properties",value:function(e,t){if(!this.persistence||!this.sessionPersistence)return t;var r=this.persistence.remove_event_timer(e),n=i({},t);if(n.token=this.config.token,"$snapshot"===e){var o=i(i({},this.persistence.properties()),this.sessionPersistence.properties());return n.distinct_id=o.distinct_id,n}var s=e8.properties();if(this.sessionManager){var a=this.sessionManager.checkAndGetSessionAndWindowId(),c=a.sessionId,u=a.windowId;n.$session_id=c,n.$window_id=u}if(this.sessionPropsManager&&this.config.__preview_send_client_session_params&&("$pageview"===e||"$pageleave"===e||"$autocapture"===e)){var l=this.sessionPropsManager.getSessionProps();n=Q(n,l)}if(this.config.__preview_measure_pageview_stats){var d={};"$pageview"===e?d=this.pageViewManager.doPageView():"$pageleave"===e&&(d=this.pageViewManager.doPageLeave()),n=Q(n,d)}if("$pageview"===e&&(n.title=H.title),"$performance_event"===e){var f=this.persistence.properties();return n.distinct_id=f.distinct_id,n.$current_url=s.$current_url,n}if(!O(r)){var h=(new Date).getTime()-r;n.$duration=parseFloat((h/1e3).toFixed(3))}n=Q({},e8.properties(),this.persistence.properties(),this.sessionPersistence.properties(),n);var p=this.config.property_blacklist;P(p)?Y(p,function(e){delete n[e]}):W.error("Invalid value for property_blacklist config: "+p);var g=this.config.sanitize_properties;return g&&(n=g(n,e)),n}},{key:"register",value:function(e,t){var r;null==(r=this.persistence)||r.register(e,t)}},{key:"register_once",value:function(e,t,r){var n;null==(n=this.persistence)||n.register_once(e,t,r)}},{key:"register_for_session",value:function(e){var t;null==(t=this.sessionPersistence)||t.register(e)}},{key:"unregister",value:function(e){var t;null==(t=this.persistence)||t.unregister(e)}},{key:"unregister_for_session",value:function(e){var t;null==(t=this.sessionPersistence)||t.unregister(e)}},{key:"_register_single",value:function(e,t){this.register(u({},e,t))}},{key:"getFeatureFlag",value:function(e,t){return this.featureFlags.getFeatureFlag(e,t)}},{key:"getFeatureFlagPayload",value:function(e){var t=this.featureFlags.getFeatureFlagPayload(e);try{return JSON.parse(t)}catch(e){return t}}},{key:"isFeatureEnabled",value:function(e,t){return this.featureFlags.isFeatureEnabled(e,t)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,t){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,t)}},{key:"getEarlyAccessFeatures",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(e,t)}},{key:"onFeatureFlags",value:function(e){return this.featureFlags.onFeatureFlags(e)}},{key:"onSessionId",value:function(e){var t,r;return null!=(t=null==(r=this.sessionManager)?void 0:r.onSessionId(e))?t:function(){}}},{key:"getSurveys",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.surveys.getSurveys(e,t)}},{key:"getActiveMatchingSurveys",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.surveys.getActiveMatchingSurveys(e,t)}},{key:"identify",value:function(e,t,r){if(!this.__loaded||!this.persistence)return W.uninitializedWarning("posthog.identify");if(e){var n=this.get_distinct_id();this.register({$user_id:e}),this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:n},""),e!==n&&e!==this.get_property(ew)&&(this.unregister(ew),this.register({distinct_id:e}));var i="anonymous"===this.persistence.get_user_state();e!==n&&i?(this.persistence.set_user_state("identified"),this.setPersonPropertiesForFlags(t||{},!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:n},{$set:t||{},$set_once:r||{}}),this.featureFlags.setAnonymousDistinctId(n)):(t||r)&&this.setPersonProperties(t,r),e!==n&&(this.reloadFeatureFlags(),this.unregister(e$))}else W.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(e,t){(e||t)&&(this.setPersonPropertiesForFlags(e||{}),this.capture("$set",{$set:e||{},$set_once:t||{}}))}},{key:"group",value:function(e,t,r){if(e&&t){var n=this.getGroups();n[e]!==t&&this.resetGroupPropertiesForFlags(e),this.register({$groups:i(i({},n),{},u({},e,t))}),r&&(this.capture("$groupidentify",{$group_type:e,$group_key:t,$group_set:r}),this.setGroupPropertiesForFlags(u({},e,r))),n[e]===t||r||this.reloadFeatureFlags()}else W.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.featureFlags.setPersonPropertiesForFlags(e,t)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.featureFlags.setGroupPropertiesForFlags(e,t)}},{key:"resetGroupPropertiesForFlags",value:function(e){this.featureFlags.resetGroupPropertiesForFlags(e)}},{key:"reset",value:function(e){if(!this.__loaded)return W.uninitializedWarning("posthog.reset");var t,r,n,i,o=this.get_property("$device_id");null==(t=this.persistence)||t.clear(),null==(r=this.sessionPersistence)||r.clear(),null==(n=this.persistence)||n.set_user_state("anonymous"),null==(i=this.sessionManager)||i.resetSessionId();var s=this.config.get_device_id(ru());this.register_once({distinct_id:s,$device_id:e?s:o},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){var e,t;return null!=(e=null==(t=this.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)?e:""}},{key:"get_session_replay_url",value:function(e){if(!this.sessionManager)return"";var t=this.config.ui_host||this.config.api_host,r=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=r.sessionId,i=r.sessionStartTimestamp,o=t+"/replay/"+n;if(null!=e&&e.withTimestamp&&i){var s,a=null!=(s=e.timestampLookBack)?s:10;if(!i)return o;
1var c=Math.max(Math.floor(((new Date).getTime()-i)/1e3)-a,0);o+="?t=".concat(c)}return o}},{key:"alias",value:function(e,t){return e===this.get_property(eb)?(W.critical("Attempting to create alias for existing People user - aborting."),-2):(O(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(ew,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(W.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1))}},{key:"set_config",value:function(e){var t,r,n=i({},this.config);I(e)&&(Q(this.config,e),this.config.persistence_name||(this.config.persistence_name=this.config.cookie_name),this.config.disable_persistence||(this.config.disable_persistence=this.config.disable_cookie),null==(t=this.persistence)||t.update_config(this.config),null==(r=this.sessionPersistence)||r.update_config(this.config),eJ.is_supported()&&"true"===eJ.get("ph_debug")&&(this.config.debug=!0),this.config.debug&&(w.DEBUG=!0),this.sessionRecording&&!O(e.disable_session_recording)&&n.disable_session_recording!==e.disable_session_recording&&(e.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var e;return!(null==(e=this.sessionRecording)||!e.started)}},{key:"loadToolbar",value:function(e){return this.toolbar.loadToolbar(e)}},{key:"get_property",value:function(e){var t;return null==(t=this.persistence)?void 0:t.props[e]}},{key:"getSessionProperty",value:function(e){var t;return null==(t=this.sessionPersistence)?void 0:t.props[e]}},{key:"toString",value:function(){var e,t=null!=(e=this.config.name)?e:rP;return t!==rP&&(t=rP+"."+t),t}},{key:"_gdpr_init",value:function(){"localStorage"===this.config.opt_out_capturing_persistence_type&&eJ.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_capturing()&&(this.config.opt_out_capturing_by_default||eQ.get("ph_optout"))&&(eQ.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.config.opt_out_persistence_by_default}))}},{key:"_gdpr_update_persistence",value:function(e){var t,r,n,i,o;if(e&&e.clear_persistence)n=!0;else{if(!e||!e.enable_persistence)return;n=!1}this.config.disable_persistence||(null==(t=this.persistence)?void 0:t.disabled)===n||null==(i=this.persistence)||i.set_disabled(n),this.config.disable_persistence||(null==(r=this.sessionPersistence)?void 0:r.disabled)===n||null==(o=this.sessionPersistence)||o.set_disabled(n)}},{key:"_gdpr_call_func",value:function(e,t){return t=Q({capture:this.capture.bind(this),persistence_type:this.config.opt_out_capturing_persistence_type,cookie_prefix:this.config.opt_out_capturing_cookie_prefix,cookie_expiration:this.config.cookie_expiration,cross_subdomain_cookie:this.config.cross_subdomain_cookie,secure_cookie:this.config.secure_cookie},t||{}),eJ.is_supported()||"localStorage"!==t.persistence_type||(t.persistence_type="cookie"),e(this.config.token,{capture:t.capture,captureEventName:t.capture_event_name,captureProperties:t.capture_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieExpiration:t.cookie_expiration,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie})}},{key:"opt_in_capturing",value:function(e){e=Q({enable_persistence:!0},e||{}),this._gdpr_call_func(tp,e),this._gdpr_update_persistence(e)}},{key:"opt_out_capturing",value:function(e){var t=Q({clear_persistence:!0},e||{});this._gdpr_call_func(tg,t),this._gdpr_update_persistence(t)}},{key:"has_opted_in_capturing",value:function(e){return this._gdpr_call_func(tv,e)}},{key:"has_opted_out_capturing",value:function(e){return this._gdpr_call_func(t_,e)}},{key:"clear_opt_in_out_capturing",value:function(e){var t=Q({enable_persistence:!0},null!=e?e:{});this._gdpr_call_func(tm,t),this._gdpr_update_persistence(t)}}
1,{key:"debug",value:function(e){!1===e?(L.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(L.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),e}(),rR=["identify"],rT=0;rT<rR.length;rT++)rO.prototype[rR[rT]]=Z(rO.prototype[rR[rT]]);var r$,rM,rD,rj={};(y=rM||(rM={})).Popover="popover",y.API="api",(b=rD||(rD={})).Open="open",b.MultipleChoice="multiple_choice",b.SingleChoice="single_choice",b.Rating="rating",b.Link="link";var rN=(r_=rv.INIT_MODULE,(rm=new rO).init=function(e,t,r){if(r)return rm[r]||(rm[r]=rj[r]=rA(e||"",t||{},r,function(e){rm[r]=rj[r]=e,e._loaded()})),rm[r];var n=rm;return rj[rP]?n=rj[rP]:e&&(n=rA(e,t||{},rP,function(e){rj[rP]=e,e._loaded()}),rj[rP]=n),rm=n,r_===rv.INIT_SNIPPET&&(L[rP]=rm),Y(rj,function(e,t){t!==rP&&(rm[t]=e)}),n},rm.init(),function(){function e(){e.done||(e.done=!0,rE=!1,Y(rj,function(e){e._dom_loaded()}))}H.addEventListener&&("complete"===H.readyState?e():H.addEventListener("DOMContentLoaded",e,!1)),es(L,"load",e,!0)}(),rm);let rL="goteleport_com",rB="https://reporting.teleportinfra.sh",rH=!1,rz=async()=>new Promise(e=>{rH?e(rN):rB&&rL?rN.init(rL,{api_host:rB,get_device_id:e=>`web.${e}`,loaded:t=>{rH=!0,window.posthog=t,e(t)}}):e(void 0)}),rq=async()=>{let e=await rz();e?.capture("$pageview")},rW=async(e,t)=>{let r=await rz();r?.capture("web.btn.click",{"web.btn.id":e,"web.btn.text":t})}},48434:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n={breakpoints:["975px","1200px"],colors:{"page-bg":"#f6f8f9","dark-purple":"#512FC9","light-purple":"#651FFF",white:"#FFFFFF","lightest-gray":"#F0F2F4","lighter-gray":"#D2DBDF","light-blue":"#0091ea","light-gray":"#b5bec7",gray:"#607D8B",green:"#00bfa5",red:"#f50057","dark-gray":"#455A64",darkest:"#37474F",black:"#000000",warning:"#FFB400",danger:"#F80061",text:"#263238",code:"#1e293b",tip:"#00C7AE",note:"#009CF1","gray-800":"#344556"},fonts:{body:"'Lato', sans-serif",serif:"Georgia, serif",monospace:"Ubuntu Mono, monospace"},fontSizes:{"text-xs":10,"text-sm":12,"text-md":14,"text-lg":16,"text-xl":18,"header-4":20,"header-3":24,"header-2":28,"header-1":32,banner:36,"section-header":40,"hero-header":52,"article-h1":64},fontWeights:{regular:400,bold:700,black:900},lineHeights:{sm:"16px",sm2:"18px",sm3:"21px",sm4:"22px",md:"24px",lg:"32px",xl:"40px",xxl:"48px","hero-header":"68px"},textStyles:{"text-xs":{fontSize:"text-xs",lineHeight:"md"},"text-sm":{fontSize:"text-sm",lineHeight:"md"},"text-md":{fontSize:"text-md",lineHeight:"md"},"text-lg":{fontSize:"text-lg",lineHeight:"md"},"text-xl":{fontSize:"text-xl",lineHeight:"md"},titleXXS:{fontSize:"text-md",lineHeight:"sm2",fontWeight:"bold"},"header-4":{fontSize:"header-4",lineHeight:"lg"},"header-3":{fontSize:"header-3",lineHeight:"xl"},"header-2":{fontSize:"header-2",lineHeight:"xl"},"header-1":{fontSize:"header-1",lineHeight:"xxl"},"section-header":{fontSize:"section-header",lineHeight:"hero-header",fontWeight:"bold"},"hero-header":{fontSize:"hero-header",lineHeight:"hero-header",fontWeight:"black"},nav:{fontSize:"text-md",lineHeight:"sm3",fontWeight:"regular"},headerTitle:{fontSize:"text-md",lineHeight:"sm3",fontWeight:"bold"},textXXS:{fontSize:"text-sm",lineHeight:"sm",fontWeight:"regular"},textSM:{fontSize:"text-md",lineHeight:"sm2",fontWeight:"regular"},textMD:{fontSize:"text-lg",lineHeight:"md",fontWeight:"regular"},textLG:{fontSize:"text-xl",lineHeight:"md2",fontWeight:"regular"},titleMD:{fontSize:"header-2",lineHeight:"lg2",fontWeight:"bold"},titleLG:{fontSize:"header-1",lineHeight:"xl",fontWeight:"bold"},titleXL:{fontSize:"section-header",lineHeight:"xxl",fontWeight:"black"},titleXS:{fontSize:"text-xl",lineHeight:"sm4",fontWeight:"bold"}},space:[0,4,8,16,24,32,40,48,56,64,72,80],media:{sm:"@media screen and (max-device-width: 975px), screen and (max-width: 975px)",md:"@media screen and (max-device-width: 1200px), screen and (max-width: 1200px)",mdVertical:"@media screen and (max-height: 880px)"},gradients:{grayToWhite:{background:"linear-gradient(125deg, rgba(240,242,244,.56), white)"},lightGrayToWhite:{background:"linear-gradient(91.32deg, #f0f2f4 0.16%, #ffffff 99.84%)"},lightGrayToDark:{background:"linear-gradient(42deg, #ffffff 0%, #f4f5f7 81%, #f3f4f6 100%, #f0f2f4 100%)"},purpleToBlack:{background:"linear-gradient(54deg, #391c70 0%, #0c143d 100%)"},purpleToBlackRadial:{background:"radial-gradient(#391C70, #0C143D)"}},transitionTimings:{fast:150,interaction:300,shift:600,slow:1200},radii:{sm:2,md:8,lg:16,default:4,circle:99999}}},53441:(e,t)=>{"use strict";t.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");var r={},n=e.length,i=n-2;if(i<0)return r;var o=t&&t.decode||u,s=0,l=0,d=0;do{if(-1===(l=e.indexOf("=",s)))break;if(-1===(d=e.indexOf(";",s)))d=n;else if(l>d){s=e.lastIndexOf(";",l-1)+1;continue}var f=a(e,s,l),h=c(e,l,f),p=e.slice(f,h);if(void 0===r[p]){var g=a(e,l+1,d),v=c(e,d,g);34===e.charCodeAt(g)&&34===e.charCodeAt(v-1)&&(g++,v--);var _=e.slice(g,v);r[p]=function(e,t){try{return t(e)}catch(t){return e}}(_,o)}s=d+1}while(s<i);return r},t.serialize=function(e,t,a){var c=a||{},u=c.encode||l;if("function"!=typeof u)throw TypeError("option encode is invali
1d");if(!n.test(e))throw TypeError("argument name is invalid");var d=u(t);if(d&&!i.test(d))throw TypeError("argument val is invalid");var f=e+"="+d;if(null!=c.maxAge){var h=c.maxAge-0;if(!isFinite(h))throw TypeError("option maxAge is invalid");f+="; Max-Age="+Math.floor(h)}if(c.domain){if(!o.test(c.domain))throw TypeError("option domain is invalid");f+="; Domain="+c.domain}if(c.path){if(!s.test(c.path))throw TypeError("option path is invalid");f+="; Path="+c.path}if(c.expires){var p,g=c.expires;if(p=g,"[object Date]"!==r.call(p)&&!(p instanceof Date)||isNaN(g.valueOf()))throw TypeError("option expires is invalid");f+="; Expires="+g.toUTCString()}if(c.httpOnly&&(f+="; HttpOnly"),c.secure&&(f+="; Secure"),c.partitioned&&(f+="; Partitioned"),c.priority)switch("string"==typeof c.priority?c.priority.toLowerCase():c.priority){case"low":f+="; Priority=Low";break;case"medium":f+="; Priority=Medium";break;case"high":f+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(c.sameSite)switch("string"==typeof c.sameSite?c.sameSite.toLowerCase():c.sameSite){case!0:case"strict":f+="; SameSite=Strict";break;case"lax":f+="; SameSite=Lax";break;case"none":f+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return f};var r=Object.prototype.toString,n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,i=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,o=/^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/;function a(e,t,r){do{var n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<r);return r}function c(e,t,r){for(;t>r;){var n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return r}
1function u(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}function l(e){return encodeURIComponent(e)}},68128:(e,t,r)=>{"use strict";e.exports=r(29044)},82241:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w,lato:()=>v(),ubuntu_mono:()=>m()});var n=r(37876),i=r(45105),o=r.n(i),s=r(14232),a=r(21626),c=r(89099),u=r(3422),l=r(48434);let d={utm_campaign:!0,utm_medium:!0,utm_source:!0,utm_term:!0,utm_content:!0},f={gclid:!0,gaid:!0},h=(0,a.DU)(["html,body{margin:0;padding:0;}body{font-family:Lato,sans-serif;}"]);var p=r(47696),g=r(41621),v=r.n(g),_=r(23021),m=r.n(_);let y="GTM-WMR7H6",b=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o(),{id:"add_dataLayer",children:"window.dataLayer = window.dataLayer || []"}),(0,n.jsx)(o(),{id:"munchkin-script",children:`
2        (function() {
3          var didInit = false;
4          function initMunchkin() {
5            if(didInit === false) {
6              didInit = true;
7              Munchkin.init('819-WHT-483');
8            }
9          }
10          var s = document.createElement('script');
11          s.type = 'text/javascript';
12          s.async = true;
13          s.src = '//munchkin.marketo.net/munchkin.js';
14          s.onreadystatechange = function() {
15            if (this.readyState == 'complete' || this.readyState == 'loaded') {
16              initMunchkin();
17            }
18          };
19          s.onload = initMunchkin;
20          document.getElementsByTagName('head')[0].appendChild(s);
21        })();
22      `}),(0,n.jsx)(o(),{id:"g2script",strategy:"lazyOnload",children:`
23        (function (c, p, d, u, id, i) {
24          id = ''; // Optional Custom ID for user in your system
25          u = 'https://tracking.g2crowd.com/attribution_tracking/conversions/' + c + '.js?p=' + encodeURI(p) + '&e=' + id;
26          i = document.createElement('script');
27          i.type = 'application/javascript';
28          i.async = true;
29          i.src = u;
30          d.getElementsByTagName('head')[0].appendChild(i);
31        }("1009803", document.location.href, document));
32        `}),y&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o(),{id:"script_gtm",strategy:"afterInteractive",children:`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
33                  new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
34                  j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
35                  'https://goteleport.com/m/'+dl;f.parentNode.insertBefore(j,f);
36                  })(window,document,'script','dataLayer','${y}');`}),(0,n.jsx)("noscript",{dangerouslySetInnerHTML:{__html:'<iframe src="https://goteleport.com/m/" height="0" width="0" style="display:none;visibility:hidden"></iframe>'}})]}),(0,n.jsx)(o(),{id:"reddit-pixel",children:"!function(w,d){if(!w.rdt){var p=w.rdt=function(){p.sendEvent?p.sendEvent.apply(p,arguments):p.callQueue.push(arguments)};p.callQueue=[];var t=d.createElement(\"script\");t.src=\"https://www.redditstatic.com/ads/pixel.js\",t.async=!0;var s=d.getElementsByTagName(\"script\")[0];s.parentNode.insertBefore(t,s)}}(window,document);rdt('init','t2_ig6xr4ch');rdt('track', 'PageVisit');"})]}),w=({Component:e,pageProps:t})=>{let r=(0,c.useRouter)();return(0,s.useEffect)(()=>((0,p.bC)(),r.events.on("routeChangeComplete",p.vl),()=>{r.events.off("routeChangeComplete",p.vl)}),[r.events]),(0,s.useEffect)(()=>{let e=r.query,t=(0,u.parseCookies)(),n=!1;for(let e in d)t[e]&&(n=!0);for(let t in e)f.hasOwnProperty(t)&&(0,u.setCookie)(null,t,e[t],{maxAge:31536e3,path:"/"}),!n&&d.hasOwnProperty(t)&&(0,u.setCookie)(null,t,e[t],{maxAge:31536e3,path:"/"})},[r.query]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b,{}),(0,n.jsxs)(a.NP,{theme:l.A,children:[(0,n.jsx)(h,{}),(0,n.jsx)(e,{...t})]}),(0,n.jsx)(o(),{src:"https://static.claydar.com/init.v1.js?id=cQAbHkxXzz"})]})}},89099:(e,t,r)=>{e.exports=r(59603)},92493:e=>{"use strict";var t={decodeValues:!0,map:!1,silent:!1};function r(e){return"string"==typeof e&&!!e.trim()}function n(e,n){var i,o,s,a,c=e.split(";").filter(r),u=(i=c.shift(),o="",s="",(a=i.split("=")).length>1?(o=a.shift(),s=a.join("=")):s=i,{name:o,value:s}),l=u.name,d=u.value;n=n?Object.assign({},t,n):t;try{d=n.decodeValues?decodeURIComponent(d):d}catch(e){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+d+"'. Set options.decodeValues to false to disable this feature.",e)}var f={name:l,value:d};
36return c.forEach(function(e){var t=e.split("="),r=t.shift().trimLeft().toLowerCase(),n=t.join("=");"expires"===r?f.expires=new Date(n):"max-age"===r?f.maxAge=parseInt(n,10):"secure"===r?f.secure=!0:"httponly"===r?f.httpOnly=!0:"samesite"===r?f.sameSite=n:f[r]=n}),f}function i(e,i){if(i=i?Object.assign({},t,i):t,!e)if(!i.map)return[];else return{};if(e.headers)if("function"==typeof e.headers.getSetCookie)e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var o=e.headers[Object.keys(e.headers).find(function(e){return"set-cookie"===e.toLowerCase()})];o||!e.headers.cookie||i.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=o}return(Array.isArray(e)||(e=[e]),(i=i?Object.assign({},t,i):t).map)?e.filter(r).reduce(function(e,t){var r=n(t,i);return e[r.name]=r,e},{}):e.filter(r).map(function(e){return n(e,i)})}e.exports=i,e.exports.parse=i,e.exports.parseString=n,e.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!=typeof e)return[];var t,r,n,i,o,s=[],a=0;function c(){for(;a<e.length&&/\s/.test(e.charAt(a));)a+=1;return a<e.length}for(;a<e.length;){for(t=a,o=!1;c();)if(","===(r=e.charAt(a))){for(n=a,a+=1,c(),i=a;a<e.length&&"="!==(r=e.charAt(a))&&";"!==r&&","!==r;)a+=1;a<e.length&&"="===e.charAt(a)?(o=!0,a=i,s.push(e.substring(t,n)),t=a):a=n+1}else a+=1;(!o||a>=e.length)&&s.push(e.substring(t,e.length))}return s}}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(92),t(59603))),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.