(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[996],{7760:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regionAPIs=void 0,t.regionAPIs=new Map([["us","https://api-iam.intercom.io"],["eu","https://api-iam.eu.intercom.io"],["ap","https://api-iam.au.intercom.io"]])},5575:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};Object.defineProperty(t,"__esModule",{value:!0}),t.onUserEmailSupplied=t.showConversation=t.showTicket=t.startChecklist=t.startSurvey=t.showNews=t.showArticle=t.startTour=t.getVisitorId=t.trackEvent=t.onUnreadCountChange=t.onShow=t.onHide=t.showNewMessage=t.showMessages=t.showSpace=t.show=t.hide=t.update=t.shutdown=t.boot=t.Intercom=void 0;let i=n(7760),o=n(3952),s=(e,...t)=>{window.Intercom?window.Intercom(e,...t):console.warn("Please ensure Intercom is setup and running on client-side!")};t.Intercom=e=>{if("object"!=typeof e){console.warn("Intercom initialiser called with invalid parameters.");return}let{region:t="us"}=e,n=r(e,["region"]);"undefined"==typeof window||o.ref||(window.intercomSettings=Object.assign(Object.assign({},n),{api_base:i.regionAPIs.get(t)}),(0,o.init)())},t.default=t.Intercom,t.boot=e=>s("boot",e),t.shutdown=()=>s("shutdown"),t.update=e=>s("update",e),t.hide=()=>s("hide"),t.show=()=>s("show"),t.showSpace=e=>s("showSpace",e),t.showMessages=()=>s("showMessages"),t.showNewMessage=e=>s("showNewMessage",e),t.onHide=e=>s("onHide",e),t.onShow=e=>s("onShow",e),t.onUnreadCountChange=e=>s("onUnreadCountChange",e),t.trackEvent=(...e)=>s("trackEvent",...e),t.getVisitorId=()=>s("getVisitorId"),t.startTour=e=>s("startTour",e),t.showArticle=e=>s("showArticle",e),t.showNews=e=>s("showNews",e),t.startSurvey=e=>s("startSurvey",e),t.startChecklist=e=>s("startChecklist",e),t.showTicket=e=>s("showTicket",e),t.showConversation=e=>s("showConversation",e),t.onUserEmailSupplied=e=>s("onUserEmailSupplied",e)},3952:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ref=t.init=void 0;let r="_intercom_npm_loader",i=function(){i.loaderQueue(arguments)};i.q=[],i.loaderQueue=function(e){i.q.push(e)};let o=function(){var e,t,n=document;if(!n.getElementById(r)){var i=n.createElement("script");i.type="text/javascript",i.async=!0,i.id=r,i.src="https://widget.intercom.io/widget/"+(null===(e=window.intercomSettings)||void 0===e?void 0:e.app_id);var o=n.getElementsByTagName("script")[0];null===(t=o.parentNode)||void 0===t||t.insertBefore(i,o)}},s=()=>"complete"===document.readyState||"interactive"===document.readyState;t.init=()=>n(void 0,void 0,void 0,function*(){var e=window,t=e.Intercom;e.intercomSettings&&(e.intercomSettings.installation_type="npm-package"),"function"==typeof t?(t("reattach_activator"),t("update",e.intercomSettings)):(e.Intercom=i,s()?o():(document.addEventListener("readystatechange",function(){s()&&o()}),e.attachEvent?e.attachEvent("onload",o):e.addEventListener("load",o,!1)))}),t.ref=void 0},703:function(e,t,n){"use strict";n.d(t,{default:function(){return i.a}});var r=n(7447),i=n.n(r)},8792:function(e,t,n){"use strict";n.d(t,{default:function(){return i.a}});var r=n(5250),i=n.n(r)},9079:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(3127)},3127:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u=[],l=!1,c=-1;function d(){l&&r&&(l=!1,r.length?u=r.concat(u):c=-1,u.length&&f())}function f(){if(!l){var e=a(d);l=!0;for(var t=u.length;t;){for(r=u,u=[];++c<t;)r&&r[c].run();c=-1,t=u.length}r=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||l||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},s=!0;try{t[e](o,o.exports,r),s=!1}finally{s&&delete n[e]}return o.exports}r.ab="//";var i=r(229);e.exports=i}()},7447:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getImageProps:function(){return a},default:function(){return u}});let r=n(6921),i=n(8630),o=n(1749),s=r._(n(536)),a=e=>{let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}},u=o.Image},1251:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}}(e,t)||f(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(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 f(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}n.d(t,{ZP:function(){return rH}});var g={DEBUG:!1,LIB_VERSION:"1.116.6"},v=Array.isArray,_=Object.prototype,m=_.hasOwnProperty,y=_.toString,b=v||function(e){return"[object Array]"===y.call(e)},w=function(e){return"function"==typeof e},k=function(e){return e===Object(e)&&!b(e)},S=function(e){return void 0===e},E=function(e){return"[object String]"==y.call(e)},F=function(e){return null===e},P=function(e){return S(e)||F(e)},T=function(e){return"[object Number]"==y.call(e)},x=function(e){return"[object Boolean]"===y.call(e)},R="undefined"!=typeof window?window:void 0,C="undefined"!=typeof globalThis?globalThis:R,I=Array.prototype,O=I.forEach,A=I.indexOf,M=null==C?void 0:C.navigator,L=null==C?void 0:C.document,$=null==C?void 0:C.location,D=null==C?void 0:C.fetch,q=null!=C&&C.XMLHttpRequest&&"withCredentials"in new C.XMLHttpRequest?C.XMLHttpRequest:void 0,N=null==C?void 0:C.AbortController,H=null==M?void 0:M.userAgent,B=null!=R?R:{},j="[PostHog.js]",U={_log:function(e){if(R&&(g.DEBUG||B.POSTHOG_DEBUG)&&!S(R.console)&&R.console){for(var t=("__rrweb_original__"in R.console[e])?R.console[e].__rrweb_original__:R.console[e],n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.apply(void 0,[j].concat(r))}},info:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];U._log.apply(U,["log"].concat(t))},warn:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];U._log.apply(U,["warn"].concat(t))},error:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];U._log.apply(U,["error"].concat(t))},critical:function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=console).error.apply(e,[j].concat(n))},uninitializedWarning:function(e){U.error("You must initialize PostHog before calling ".concat(e))}},W={},V=function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function z(e,t,n){if(b(e)){if(O&&e.forEach===O)e.forEach(t,n);else if("length"in e&&e.length===+e.length){for(var r=0,i=e.length;r<i;r++)if(r in e&&t.call(n,e[r],r)===W)return}}}function G(e,t,n){if(!P(e)){if(b(e))return z(e,t,n);if(e instanceof FormData){var r,i=h(e.entries());try{for(i.s();!(r=i.n()).done;){var o=r.value;if(t.call(n,o[1],o[0])===W)return}}catch(e){i.e(e)}finally{i.f()}}else for(var s in e)if(m.call(e,s)&&t.call(n,e[s],s)===W)return}}var Y=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return z(n,function(t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])}),e};function Q(e,t){return -1!==e.indexOf(t)}function J(e){for(var t=Object.keys(e),n=t.length,r=Array(n);n--;)r[n]=[t[n],e[t[n]]];return r}var K=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},X=function(e){try{return e()}catch(e){return}},Z=function(e){return function(){try{for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this,n)}catch(e){U.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),U.critical(e)}}},ee=function(e){var t={};return G(e,function(e,n){E(e)&&e.length>0&&(t[n]=e)}),t},et=function(e){var t,n,r,i,o="";for(t=n=0,r=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<r;i++){var s=e.charCodeAt(i),a=null;s<128?n++: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),F(a)||(n>t&&(o+=e.substring(t,n)),o+=a,t=n=i+1)}return n>t&&(o+=e.substring(t,e.length)),o},en=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,n,r,i,o){if(t){if(t.addEventListener&&!i)t.addEventListener(n,r,!!o);else{var s="on"+n,a=t[s];t[s]=function(n){if(n=n||e(null==R?void 0:R.event)){var i,o=!0;w(a)&&(i=a(n));var s=r.call(t,n);return!1!==i&&!1!==s||(o=!1),o}}}}else U.error("No valid element provided to register_event")}}();function er(e,t){var n=function(){if(!L)return t("document not found");var n=L.createElement("script");n.type="text/javascript",n.src=e,n.onload=function(e){return t(void 0,e)},n.onerror=function(e){return t(e)};var r,i=L.querySelectorAll("body > script");i.length>0?null===(r=i[0].parentNode)||void 0===r||r.insertBefore(n,i[0]):L.body.appendChild(n)};null!=L&&L.body?n():null==L||L.addEventListener("DOMContentLoaded",n)}function ei(e){return e?V(e).split(/\s+/):[]}function eo(e){var t="";switch(o(e.className)){case"string":t=e.className;break;case"object":t=("baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return ei(t)}function es(e){return P(e)?null:V(e).split(/(\s+)/).filter(function(e){return ew(e)}).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function ea(e){var t="";return ep(e)&&!eh(e)&&e.childNodes&&e.childNodes.length&&G(e.childNodes,function(e){var n;ec(e)&&e.textContent&&(t+=null!==(n=es(e.textContent))&&void 0!==n?n:"")}),V(t)}function eu(e){return!!e&&1===e.nodeType}function el(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function ec(e){return!!e&&3===e.nodeType}function ed(e){return!!e&&11===e.nodeType}var ef=["a","button","form","input","select","textarea","label"];function ep(e){for(var t=e;t.parentNode&&!el(t,"body");t=t.parentNode){var n=eo(t);if(Q(n,"ph-sensitive")||Q(n,"ph-no-capture"))return!1}if(Q(eo(e),"ph-include"))return!0;var r=e.type||"";if(E(r))switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!(E(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 eh(e){return!!(el(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||el(e,"select")||el(e,"textarea")||"true"===e.getAttribute("contenteditable"))}var eg="(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})",ev=new RegExp("^(?:".concat(eg,")$")),e_=new RegExp(eg),em="\\d{3}-?\\d{2}-?\\d{4}",ey=new RegExp("^(".concat(em,")$")),eb=new RegExp("(".concat(em,")"));function ew(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!(P(e)||E(e)&&(e=V(e),(t?ev:e_).test((e||"").replace(/[- ]/g,""))||(t?ey:eb).test(e)))}function ek(e){var t=ea(e);return ew(t="".concat(t," ").concat(function e(t){var n="";return t&&t.childNodes&&t.childNodes.length&&G(t.childNodes,function(t){var r;if(t&&"span"===(null===(r=t.tagName)||void 0===r?void 0:r.toLowerCase()))try{var i=ea(t);n="".concat(n," ").concat(i).trim(),t.childNodes&&t.childNodes.length&&(n="".concat(n," ").concat(e(t)).trim())}catch(e){U.error(e)}}),n}(e)).trim())?t:""}function eS(e){return e.replace(/"|\\"/g,'\\"')}var eE=function(){function e(t){s(this,e),this.clicks=[],this.enabled=t}return u(e,[{key:"isRageClick",value:function(e,t,n){if(!this.enabled)return!1;var r=this.clicks[this.clicks.length-1];if(r&&Math.abs(e-r.x)+Math.abs(t-r.y)<30&&n-r.timestamp<1e3){if(this.clicks.push({x:e,y:t,timestamp:n}),3===this.clicks.length)return!0}else this.clicks=[{x:e,y:t,timestamp:n}];return!1}}]),e}(),eF="$people_distinct_id",eP="__alias",eT="__timers",ex="$autocapture_disabled_server_side",eR="$session_recording_enabled_server_side",eC="$console_log_recording_enabled_server_side",eI="$session_recording_network_payload_capture",eO="$session_recording_canvas_recording",eA="$sesid",eM="$session_is_sampled",eL="$enabled_feature_flags",e$="$early_access_features",eD="$stored_person_properties",eq="$stored_group_properties",eN="$surveys",eH="$flag_call_reported",eB="$user_state",ej="$posthog_quota_limited",eU="$client_session_props",eW=[eF,eP,"__cmpns",eT,eR,eA,eL,eB,ej,e$,eq,eD,eN,eH,eU],eV="$copy_autocapture";function ez(e,t){return t.length>e?t.slice(0,e)+"...":t}var eG,eY={_initializedTokens:[],_isDisabledServerSide:null,_isAutocaptureEnabled:!1,_setIsAutocaptureEnabled:function(e){var t,n=F(this._isDisabledServerSide)?!(null===(t=e.persistence)||void 0===t||!t.props[ex]):this._isDisabledServerSide,r=!!e.config.autocapture;this._isAutocaptureEnabled=r&&!n},_previousElementSibling:function(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!eu(t));return t},_getAugmentPropertiesFromElement:function(e){if(!ep(e))return{};var t={};return G(e.attributes,function(e){if(0===e.name.indexOf("data-ph-capture-attribute")){var n=e.name.replace("data-ph-capture-attribute-",""),r=e.value;n&&r&&ew(r)&&(t[n]=r)}}),t},_getPropertiesFromElement:function(e,t,n){var r,i=e.tagName.toLowerCase(),o={tag_name:i};ef.indexOf(i)>-1&&!n&&("a"===i.toLowerCase()||"button"===i.toLowerCase()?o.$el_text=ez(1024,ek(e)):o.$el_text=ez(1024,ea(e)));var s=eo(e);s.length>0&&(o.classes=s.filter(function(e){return""!==e}));var a=null===(r=this.config)||void 0===r?void 0:r.element_attribute_ignorelist;G(e.attributes,function(n){var r;if((!eh(e)||-1!==["name","id","class"].indexOf(n.name))&&(null==a||!a.includes(n.name))&&!t&&ew(n.value)&&(!E(r=n.name)||"_ngcontent"!==r.substring(0,10)&&"_nghost"!==r.substring(0,7))){var i=n.value;"class"===n.name&&(i=ei(i).join(" ")),o["attr__"+n.name]=ez(1024,i)}});for(var u=1,l=1,c=e;c=this._previousElementSibling(c);)u++,c.tagName===e.tagName&&l++;return o.nth_child=u,o.nth_of_type=l,o},_getDefaultProperties:function(e){return{$event_type:e,$ce_version:1}},_extractCustomPropertyValue:function(e){var t=[];return G(null==L?void 0:L.querySelectorAll(e.css_selector),function(e){var n;["input","select"].indexOf(e.tagName.toLowerCase())>-1?n=e.value:e.textContent&&(n=e.textContent),ew(n)&&t.push(n)}),t.join(", ")},_getCustomProperties:function(e){var t=this,n={};return G(this._customProperties,function(r){G(r.event_selectors,function(i){G(null==L?void 0:L.querySelectorAll(i),function(i){Q(e,i)&&ep(i)&&(n[r.name]=t._extractCustomPropertyValue(r))})})}),n},_getEventTarget:function(e){var t;return S(e.target)?e.srcElement||null:null!==(t=e.target)&&void 0!==t&&t.shadowRoot?e.composedPath()[0]||null:e.target||null},_captureEvent:function(e,t){var n,r=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$autocapture",a=arguments.length>3?arguments[3]:void 0,u=this._getEventTarget(e);ec(u)&&(u=u.parentNode||null),"$autocapture"===s&&"click"===e.type&&e instanceof MouseEvent&&null!==(n=this.rageclicks)&&void 0!==n&&n.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this._captureEvent(e,t,"$rageclick");var l=s===eV;if(u&&function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;if(!R||!e||el(e,"html")||!eu(e))return!1;if(null!=n&&n.url_allowlist){var s=R.location.href,a=n.url_allowlist;if(a&&!a.some(function(e){return s.match(e)}))return!1}if(null!=n&&n.dom_event_allowlist){var u=n.dom_event_allowlist;if(u&&!u.some(function(e){return t.type===e}))return!1}for(var l=!1,c=[e],d=!0,f=e;f.parentNode&&!el(f,"body");)if(ed(f.parentNode))c.push(f.parentNode.host),f=f.parentNode.host;else{if(!(d=function(e){var t=e.parentNode;return!(!t||!eu(t))&&t}(f)))break;if(r||ef.indexOf(d.tagName.toLowerCase())>-1)l=!0;else{var p=R.getComputedStyle(d);p&&"pointer"===p.getPropertyValue("cursor")&&(l=!0)}c.push(d),f=d}if(!function(e,t){var n=null==t?void 0:t.element_allowlist;if(S(n))return!0;var r,i=h(e);try{for(i.s();!(r=i.n()).done;){var s=function(){var e=r.value;if(n.some(function(t){return e.tagName.toLowerCase()===t}))return{v:!0}}();if("object"===o(s))return s.v}}catch(e){i.e(e)}finally{i.f()}return!1}(c,n)||!function(e,t){var n=null==t?void 0:t.css_selector_allowlist;if(S(n))return!0;var r,i=h(e);try{for(i.s();!(r=i.n()).done;){var s=function(){var e=r.value;if(n.some(function(t){return e.matches(t)}))return{v:!0}}();if("object"===o(s))return s.v}}catch(e){i.e(e)}finally{i.f()}return!1}(c,n))return!1;var g=R.getComputedStyle(e);if(g&&"pointer"===g.getPropertyValue("cursor")&&"click"===t.type)return!0;var v=e.tagName.toLowerCase();switch(v){case"html":return!1;case"form":return(i||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(i||["change","click"]).indexOf(t.type)>=0;default:return l?(i||["click"]).indexOf(t.type)>=0:(i||["click"]).indexOf(t.type)>=0&&(ef.indexOf(v)>-1||"true"===e.getAttribute("contenteditable"))}}(u,e,this.config,l,l?["copy","cut"]:void 0)){for(var d,f,p=[u],g=u;g.parentNode&&!el(g,"body");)ed(g.parentNode)?(p.push(g.parentNode.host),g=g.parentNode.host):(p.push(g.parentNode),g=g.parentNode);var v,_=[],m={},y=!1;if(G(p,function(e){var n=ep(e);"a"===e.tagName.toLowerCase()&&(v=e.getAttribute("href"),v=n&&ew(v)&&v),Q(eo(e),"ph-no-capture")&&(y=!0),_.push(r._getPropertiesFromElement(e,t.config.mask_all_element_attributes,t.config.mask_all_text)),Y(m,r._getAugmentPropertiesFromElement(e))}),t.config.mask_all_text||("a"===u.tagName.toLowerCase()||"button"===u.tagName.toLowerCase()?_[0].$el_text=ek(u):_[0].$el_text=ea(u)),v&&(_[0].attr__href=v),y)return!1;var w=Y(this._getDefaultProperties(e.type),t.elementsChainAsString?{$elements_chain:_.map(function(e){var t,n,r,i={text:null===(n=e.$el_text)||void 0===n?void 0:n.slice(0,400),tag_name:e.tag_name,href:null===(r=e.attr__href)||void 0===r?void 0:r.slice(0,2048),attr_class:(t=e.attr__class)?b(t)?t:ei(t):void 0,attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return J(e).filter(function(e){return 0===c(e,1)[0].indexOf("attr__")}).forEach(function(e){var t=c(e,2),n=t[0],r=t[1];return i.attributes[n]=r}),i}).map(function(e){var t,n,r="";if(e.tag_name&&(r+=e.tag_name),e.attr_class){e.attr_class.sort();var o,s=h(e.attr_class);try{for(s.s();!(o=s.n()).done;){var a=o.value;r+=".".concat(a.replace(/"/g,""))}}catch(e){s.e(e)}finally{s.f()}}var u=i(i(i(i({},e.text?{text:e.text}:{}),{},{"nth-child":null!==(t=e.nth_child)&&void 0!==t?t:0,"nth-of-type":null!==(n=e.nth_of_type)&&void 0!==n?n:0},e.href?{href:e.href}:{}),e.attr_id?{attr_id:e.attr_id}:{}),e.attributes),l={};return J(u).sort(function(e,t){var n=c(e,1)[0],r=c(t,1)[0];return n.localeCompare(r)}).forEach(function(e){var t=c(e,2),n=t[0],r=t[1];return l[eS(n.toString())]=eS(r.toString())}),r+=":"+J(u).map(function(e){var t=c(e,2),n=t[0],r=t[1];return"".concat(n,'="').concat(r,'"')}).join("")}).join(";")}:{$elements:_},null!==(d=_[0])&&void 0!==d&&d.$el_text?{$el_text:null===(f=_[0])||void 0===f?void 0:f.$el_text}:{},this._getCustomProperties(p),m,a||{});if(s===eV){var k,E=es(null==R||null===(k=R.getSelection())||void 0===k?void 0:k.toString()),F=e.type||"clipboard";if(!E)return!1;w.$selected_content=E,w.$copy_type=F}return t.capture(s,w),!0}},_navigate:function(e){R&&(R.location.href=e)},_addDomEventHandlers:function(e){var t=this;if(R&&L){var n=function(n){n=n||(null==R?void 0:R.event),t._captureEvent(n,e)},r=function(n){n=n||(null==R?void 0:R.event),t._captureEvent(n,e,eV)};en(L,"submit",n,!1,!0),en(L,"change",n,!1,!0),en(L,"click",n,!1,!0),k(e.config.autocapture)&&e.config.autocapture.capture_copied_text&&(en(L,"copy",r,!1,!0),en(L,"cut",r,!1,!0))}},_customProperties:[],rageclicks:null,config:void 0,init:function(e){var t;x(e.__autocapture)||(this.config=e.__autocapture),null!==(t=this.config)&&void 0!==t&&t.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(e){return new RegExp(e)})),this.rageclicks=new eE(e.config.rageclick)},afterDecideResponse:function(e,t){var n=t.config.token;this._initializedTokens.indexOf(n)>-1?U.info('autocapture already initialized for token "'+n+'"'):(t.persistence&&t.persistence.register(l({},ex,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this._setIsAutocaptureEnabled(t),this._initializedTokens.push(n),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,n){if(!e)return!0;t=S(t)?10:t,n=S(n)?10:n;for(var r=0,i=0;i<e.length;i++)r+=e.charCodeAt(i);return r%t<n},isBrowserSupported:function(){return w(null==L?void 0:L.querySelectorAll)}};!function(e){for(var t in e)w(e[t])&&(e[t]=e[t].bind(e))}(eY),function(e){for(var t in e)w(e[t])&&(e[t]=Z(e[t]))}(eY),(e5=eG||(eG={})).GZipJS="gzip-js",e5.Base64="base64";var eQ="$active_feature_flags",eJ="$override_feature_flags",eK="$feature_flag_payloads",eX=function(e){var t,n={},r=h(J(e||{}));try{for(r.s();!(t=r.n()).done;){var i=c(t.value,2),o=i[0],s=i[1];s&&(n[o]=s)}}catch(e){r.e(e)}finally{r.f()}return n},eZ=function(){function e(t){s(this,e),this.instance=t,this._override_warning=!1,this.featureFlagEventHandlers=[],this.reloadFeatureFlagsQueued=!1,this.reloadFeatureFlagsInAction=!1}return u(e,[{key:"getFlags",value:function(){return Object.keys(this.getFlagVariants())}},{key:"getFlagVariants",value:function(){var e=this.instance.get_property(eL),t=this.instance.get_property(eJ);if(!t)return e||{};for(var n=Y({},e),r=Object.keys(t),i=0;i<r.length;i++)!1===t[r[i]]?delete n[r[i]]:n[r[i]]=t[r[i]];return this._override_warning||(U.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:n}),this._override_warning=!0),n}},{key:"getFlagPayloads",value:function(){return this.instance.get_property(eK)||{}}},{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;if(!this.instance.config.advanced_disable_feature_flags){this.setReloadingPaused(!0);var t=this.instance.config.token,n=this.instance.get_property(eD),r=this.instance.get_property(eq),i={token:t,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:n,group_properties:r,disable_flags:this.instance.config.advanced_disable_feature_flags||void 0};this.instance._send_request({method:"POST",url:this.instance.requestRouter.endpointFor("api","/decide/?v=3"),data:i,compression:eG.Base64,timeout:this.instance.config.feature_flag_request_timeout_ms,callback:function(t){e.setReloadingPaused(!1);var n,r=!0;200===t.statusCode&&(e.$anon_distinct_id=void 0,r=!1),e.receivedFeatureFlags(null!==(n=t.json)&&void 0!==n?n:{},r),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 n,r=this.getFlagVariants()[e],i="".concat(r),o=this.instance.get_property(eH)||{};return!t.send_event&&"send_event"in t||e in o&&o[e].includes(i)||(b(o[e])?o[e].push(i):o[e]=[i],null===(n=this.instance.persistence)||void 0===n||n.register(l({},eH,o)),this.instance.capture("$feature_flag_called",{$feature_flag:e,$feature_flag_response:r})),r}U.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);U.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,t){if(this.instance.persistence){this.instance.decideEndpointWasHit=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads();(function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=e.featureFlags,a=e.featureFlagPayloads;if(s){if(b(s)){var u,c={};if(s)for(var d=0;d<s.length;d++)c[s[d]]=!0;t&&t.register((l(u={},eQ,s),l(u,eL,c),u))}else{var f=s,p=a;e.errorsWhileComputingFlags&&(f=i(i({},r),f),p=i(i({},o),p)),t&&t.register((l(n={},eQ,Object.keys(eX(f))),l(n,eL,f||{}),l(n,eK,p||{}),n))}}})(e,this.instance.persistence,n,r),this._fireFeatureFlagsCallbacks(t)}}},{key:"override",value:function(e){if(!this.instance.__loaded||!this.instance.persistence)return U.uninitializedWarning("posthog.feature_flags.override");if(this._override_warning=!1,!1===e)this.instance.persistence.unregister(eJ);else if(b(e)){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;this.instance.persistence.register(l({},eJ,t))}else this.instance.persistence.register(l({},eJ,e))}},{key:"onFeatureFlags",value:function(e){var t=this;if(this.addFeatureFlagsHandler(e),this.instance.decideEndpointWasHit){var n=this._prepareFeatureFlagsForCallbacks();e(n.flags,n.flagVariants)}return function(){return t.removeFeatureFlagsHandler(e)}}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,t){var n,r,o=l({},"$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()),{},l({},e,t));null===(n=this.instance.persistence)||void 0===n||n.register((l(r={},eQ,Object.keys(eX(s))),l(r,eL,s),r)),this._fireFeatureFlagsCallbacks()}},{key:"getEarlyAccessFeatures",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.instance.get_property(e$);if(r&&!n)return e(r);this.instance._send_request({transport:"XHR",url:this.instance.requestRouter.endpointFor("api","/api/early_access_features/?token=".concat(this.instance.config.token)),method:"GET",callback:function(n){var r;if(n.json){var i=n.json.earlyAccessFeatures;return null===(r=t.instance.persistence)||void 0===r||r.register(l({},e$,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,n){return e[n]=t[n],e},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(e){var t=this._prepareFeatureFlagsForCallbacks(),n=t.flags,r=t.flagVariants;this.featureFlagEventHandlers.forEach(function(t){return t(n,r,{errorsLoading:e})})}},{key:"setPersonPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.instance.get_property(eD)||{};this.instance.register(l({},eD,i(i({},n),e))),t&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(eD)}},{key:"setGroupPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.instance.get_property(eq)||{};0!==Object.keys(n).length&&Object.keys(n).forEach(function(t){n[t]=i(i({},n[t]),e[t]),delete e[t]}),this.instance.register(l({},eq,i(i({},n),e))),t&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(e){if(e){var t=this.instance.get_property(eq)||{};this.instance.register(l({},eq,i(i({},t),{},l({},e,{}))))}else this.instance.unregister(eq)}}]),e}();Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return T(e)&&isFinite(e)&&Math.floor(e)===e});var e0="0123456789abcdef",e1=function(){function e(t){if(s(this,e),this.bytes=t,16!==t.length)throw TypeError("not 128-bit length")}return u(e,[{key:"toString",value:function(){for(var e="",t=0;t<this.bytes.length;t++)e=e+e0.charAt(this.bytes[t]>>>4)+e0.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 n=this.bytes[t]-e.bytes[t];if(0!==n)return Math.sign(n)}return 0}}],[{key:"fromFieldsV7",value:function(t,n,r,i){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||t<0||n<0||r<0||i<0||t>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw RangeError("invalid field value");var o=new Uint8Array(16);return o[0]=t/1099511627776,o[1]=t/4294967296,o[2]=t/16777216,o[3]=t/65536,o[4]=t/256,o[5]=t,o[6]=112|n>>>8,o[7]=n,o[8]=128|r>>>24,o[9]=r>>>16,o[10]=r>>>8,o[11]=r,o[12]=i>>>24,o[13]=i>>>16,o[14]=i>>>8,o[15]=i,new e(o)}}]),e}(),e2=function(){function e(){s(this,e),l(this,"timestamp",0),l(this,"counter",0),l(this,"random",new e8)}return u(e,[{key:"generate",value:function(){var e=this.generateOrAbort();if(S(e)){this.timestamp=0;var t=this.generateOrAbort();if(S(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>4398046511103&&(this.timestamp++,this.resetCounter())}return e1.fromFieldsV7(this.timestamp,Math.trunc(this.counter/1073741824),1073741823&this.counter,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),e}(),e3=function(e){if("undefined"!=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};R&&!S(R.crypto)&&crypto.getRandomValues&&(e3=function(e){return crypto.getRandomValues(e)});var e5,e6,e4,e8=function(){function e(){s(this,e),l(this,"buffer",new Uint32Array(8)),l(this,"cursor",1/0)}return u(e,[{key:"nextUint32",value:function(){return this.cursor>=this.buffer.length&&(e3(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),e}(),e7=function(){return e9().toString()},e9=function(){return(e6||(e6=new e2)).generate()},te="",tt=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,tn={is_supported:function(){return!!L},error:function(e){U.error("cookieStore error: "+e)},get:function(e){if(L){try{for(var t=e+"=",n=L.cookie.split(";").filter(function(e){return e.length}),r=0;r<n.length;r++){for(var i=n[r];" "==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(tn.get(e))||{}}catch(e){}return t},set:function(e,t,n,r,i){if(L)try{var o="",s="",a=function(e,t){if(t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L;if(te)return te;if(!t||["localhost","127.0.0.1"].includes(e))return"";for(var n=e.split("."),r=Math.min(n.length,8),i="dmn_chk_"+e7(),o=RegExp("(^|;)\\s*"+i+"=1");!te&&r--;){var s=n.slice(r).join("."),a=i+"=1;domain=."+s;t.cookie=a,o.test(t.cookie)&&(t.cookie=a+";expires=Thu, 01 Jan 1970 00:00:00 GMT",te=s)}return te}(e);if(!n){var r,i=(r=e.match(tt))?r[0]:"";i!==n&&U.info("Warning: cookie subdomain discovery mismatch",i,n),n=i}return n?"; domain=."+n:""}return""}(L.location.hostname,r);if(n){var u=new Date;u.setTime(u.getTime()+24*n*36e5),o="; expires="+u.toUTCString()}i&&(s="; secure");var l=e+"="+encodeURIComponent(JSON.stringify(t))+o+"; SameSite=Lax; path=/"+a+s;return l.length>3686.4&&U.warn("cookieStore warning: large cookie, len="+l.length),L.cookie=l,l}catch(e){return}},remove:function(e,t){try{tn.set(e,"",-1,t)}catch(e){return}}},tr=null,ti={is_supported:function(){if(!F(tr))return tr;var e=!0;if(S(R))e=!1;else try{var t="__mplssupport__";ti.set(t,"xyz"),'"xyz"'!==ti.get(t)&&(e=!1),ti.remove(t)}catch(t){e=!1}return e||U.error("localStorage unsupported; falling back to cookie store"),tr=e,e},error:function(e){U.error("localStorage error: "+e)},get:function(e){try{return null==R?void 0:R.localStorage.getItem(e)}catch(e){ti.error(e)}return null},parse:function(e){try{return JSON.parse(ti.get(e))||{}}catch(e){}return null},set:function(e,t){try{null==R||R.localStorage.setItem(e,JSON.stringify(t))}catch(e){ti.error(e)}},remove:function(e){try{null==R||R.localStorage.removeItem(e)}catch(e){ti.error(e)}}},to=["distinct_id",eA,eM],ts=i(i({},ti),{},{parse:function(e){try{var t={};try{t=tn.parse(e)||{}}catch(e){}var n=Y(t,JSON.parse(ti.get(e)||"{}"));return ti.set(e,n),n}catch(e){}return null},set:function(e,t,n,r,i){try{ti.set(e,t);var o={};to.forEach(function(e){t[e]&&(o[e]=t[e])}),Object.keys(o).length&&tn.set(e,o,n,r,i)}catch(e){ti.error(e)}},remove:function(e,t){try{null==R||R.localStorage.removeItem(e),tn.remove(e,t)}catch(e){ti.error(e)}}}),ta={},tu={is_supported:function(){return!0},error:function(e){U.error("memoryStorage error: "+e)},get:function(e){return ta[e]||null},parse:function(e){return ta[e]||null},set:function(e,t){ta[e]=t},remove:function(e){delete ta[e]}},tl=null,tc={is_supported:function(){if(!F(tl))return tl;if(tl=!0,S(R))tl=!1;else try{var e="__support__";tc.set(e,"xyz"),'"xyz"'!==tc.get(e)&&(tl=!1),tc.remove(e)}catch(e){tl=!1}return tl},error:function(e){U.error("sessionStorage error: ",e)},get:function(e){try{return null==R?void 0:R.sessionStorage.getItem(e)}catch(e){tc.error(e)}return null},parse:function(e){try{return JSON.parse(tc.get(e))||null}catch(e){}return null},set:function(e,t){try{null==R||R.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){tc.error(e)}},remove:function(e){try{null==R||R.sessionStorage.removeItem(e)}catch(e){tc.error(e)}}},td=["localhost","127.0.0.1"],tf=function(e){var t=null==L?void 0:L.createElement("a");return S(t)?null:(t.href=e,t)},tp=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&",i=[];return G(e,function(e,r){S(e)||S(r)||"undefined"===r||(t=encodeURIComponent(e instanceof File?e.name:e.toString()),n=encodeURIComponent(r),i[i.length]=n+"="+t)}),i.join(r)},th=function(e,t){for(var n,r=((e.split("#")[0]||"").split("?")[1]||"").split("&"),i=0;i<r.length;i++){var o=r[i].split("=");if(o[0]===t){n=o;break}}if(!b(n)||n.length<2)return"";var s=n[1];try{s=decodeURIComponent(s)}catch(e){U.error("Skipping decoding for malformed query param: "+s)}return s.replace(/\+/g," ")},tg=function(e,t){var n=e.match(RegExp(t+"=([^&]*)"));return n?n[1]:null},tv="Mobile",t_="Android",tm="Tablet",ty=t_+" "+tm,tb="iPad",tw="Apple",tk=tw+" Watch",tS="Safari",tE="BlackBerry",tF="Samsung",tP=tF+"Browser",tT=tF+" Internet",tx="Chrome",tR=tx+" OS",tC=tx+" iOS",tI="Internet Explorer",tO=tI+" "+tv,tA="Opera",tM=tA+" Mini",tL="Edge",t$="Microsoft "+tL,tD="Firefox",tq=tD+" iOS",tN="Nintendo",tH="PlayStation",tB="Xbox",tj=t_+" "+tv,tU=tv+" "+tS,tW="Windows",tV=tW+" Phone",tz="Nokia",tG="Ouya",tY="Generic",tQ=tY+" "+tv.toLowerCase(),tJ=tY+" "+tm.toLowerCase(),tK="Konqueror",tX="(\\d+(\\.\\d+)?)",tZ=RegExp("Version/"+tX),t0=RegExp(tB,"i"),t1=RegExp(tH+" \\w+","i"),t2=RegExp(tN+" \\w+","i"),t3=RegExp(tE+"|PlayBook|BB10","i"),t5={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},t6=function(e,t){var n,r;return t=t||"",Q(e," OPR/")&&Q(e,"Mini")?tM:Q(e," OPR/")?tA:t3.test(e)?tE:Q(e,"IE"+tv)||Q(e,"WPDesktop")?tO:Q(e,tP)?tT:Q(e,tL)||Q(e,"Edg/")?t$:Q(e,"FBIOS")?"Facebook "+tv:Q(e,tx)?tx:Q(e,"CriOS")?tC:Q(e,"UCWEB")||Q(e,"UCBrowser")?"UC Browser":Q(e,"FxiOS")?tq:Q(e,t_)?tj:Q(e.toLowerCase(),tK.toLowerCase())?tK:(n=e,(r=t)&&Q(r,tw)||Q(n,tS)&&!Q(n,tx)&&!Q(n,t_))?Q(e,tv)?tU:tS:Q(e,tD)?tD:Q(e,"MSIE")||Q(e,"Trident/")?tI:Q(e,"Gecko")?tD:""},t4=(l(e4={},tO,[RegExp("rv:"+tX)]),l(e4,t$,[RegExp(tL+"?\\/"+tX)]),l(e4,tx,[RegExp(tx+"/"+tX)]),l(e4,tC,[RegExp("CriOS\\/"+tX)]),l(e4,"UC Browser",[RegExp("(UCBrowser|UCWEB)\\/"+tX)]),l(e4,tS,[tZ]),l(e4,tU,[tZ]),l(e4,tA,[RegExp("(Opera|OPR)\\/"+tX)]),l(e4,tD,[RegExp(tD+"\\/"+tX)]),l(e4,tq,[RegExp("FxiOS\\/"+tX)]),l(e4,tK,[RegExp("Konqueror[:/]?"+tX,"i")]),l(e4,tE,[RegExp(tE+" "+tX),tZ]),l(e4,tj,[RegExp("android\\s"+tX)]),l(e4,tT,[RegExp(tP+"\\/"+tX)]),l(e4,tI,[RegExp("(rv:|MSIE )"+tX)]),l(e4,"Mozilla",[RegExp("rv:"+tX)]),e4),t8=[[RegExp(tB+"; "+tB+" (.*?)[);]","i"),function(e){return[tB,e&&e[1]||""]}],[RegExp(tN,"i"),[tN,""]],[RegExp(tH,"i"),[tH,""]],[t3,[tE,""]],[RegExp(tW,"i"),function(e,t){if(/Phone/.test(t)||/WPDesktop/.test(t))return[tV,""];if(new RegExp(tv).test(t)&&!/IEMobile\b/.test(t))return[tW+" "+tv,""];var n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){var r=t5[n[1]]||"";return/arm/i.test(t)&&(r="RT"),[tW,r]}return[tW,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,function(e){return e&&e[3]?["iOS",[e[3],e[4],e[5]||"0"].join(".")]:["iOS",""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,function(e){var t="";return e&&e.length>=3&&(t=S(e[2])?e[3]:e[2]),["watchOS",t]}],[RegExp("("+t_+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+t_+")","i"),function(e){return e&&e[2]?[t_,[e[2],e[3],e[4]||"0"].join(".")]:[t_,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,function(e){var t=["Mac OS X",""];if(e&&e[1]){var n=[e[1],e[2],e[3]||"0"];t[1]=n.join(".")}return t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[tR,""]],[/Linux|debian/i,["Linux",""]]],t7=function(e){return t2.test(e)?tN:t1.test(e)?tH:t0.test(e)?tB:RegExp(tG,"i").test(e)?tG:RegExp("("+tV+"|WPDesktop)","i").test(e)?tV:/iPad/.test(e)?tb:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?tk:t3.test(e)?tE:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":RegExp(tz,"i").test(e)?tz:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?!new RegExp(tv).test(e)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)?/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?t_:ty:t_:RegExp("(pda|"+tv+")","i").test(e)?tQ:RegExp(tm,"i").test(e)&&!RegExp(tm+" pc","i").test(e)?tJ:""},t9="https?://(.*)",ne={campaignParams:function(e){var t=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","gad_source","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","mc_cid","igshid","ttclid"].concat(e||[]),n={};return G(t,function(e){var t=L?th(L.URL,e):"";t.length&&(n[e]=t)}),n},searchEngine:function(){var e=null==L?void 0:L.referrer;return e?0===e.search(t9+"google.([^/?]*)")?"google":0===e.search(t9+"bing.com")?"bing":0===e.search(t9+"yahoo.com")?"yahoo":0===e.search(t9+"duckduckgo.com")?"duckduckgo":null:null},searchInfo:function(){var e=ne.searchEngine(),t={};if(!F(e)){t.$search_engine=e;var n=L?th(L.referrer,"yahoo"!=e?"q":"p"):"";n.length&&(t.ph_keyword=n)}return t},browser:t6,browserVersion:function(e,t){var n=t4[t6(e,t)];if(S(n))return null;for(var r=0;r<n.length;r++){var i=n[r],o=e.match(i);if(o)return parseFloat(o[o.length-2])}return null},browserLanguage:function(){return navigator.language||navigator.userLanguage},os:function(e){for(var t=0;t<t8.length;t++){var n=c(t8[t],2),r=n[0],i=n[1],o=r.exec(e),s=o&&(w(i)?i(o,e):i);if(s)return s}return["",""]},device:t7,deviceType:function(e){var t=t7(e);return t===tb||t===ty||"Kobo"===t||"Kindle Fire"===t||t===tJ?tm:t===tN||t===tB||t===tH||t===tG?"Console":t===tk?"Wearable":t?tv:"Desktop"},referrer:function(){return(null==L?void 0:L.referrer)||"$direct"},referringDomain:function(){var e;return null!=L&&L.referrer&&(null===(e=tf(L.referrer))||void 0===e?void 0:e.host)||"$direct"},properties:function(){if(!H)return{};var e=c(ne.os(H),2);return Y(ee({$os:e[0],$os_version:e[1],$browser:ne.browser(H,navigator.vendor),$device:ne.device(H),$device_type:ne.deviceType(H)}),{$current_url:null==$?void 0:$.href,$host:null==$?void 0:$.host,$pathname:null==$?void 0:$.pathname,$raw_user_agent:H.length>1e3?H.substring(0,997)+"...":H,$browser_version:ne.browserVersion(H,navigator.vendor),$browser_language:ne.browserLanguage(),$screen_height:null==R?void 0:R.screen.height,$screen_width:null==R?void 0:R.screen.width,$viewport_height:null==R?void 0:R.innerHeight,$viewport_width:null==R?void 0:R.innerWidth,$lib:"web",$lib_version:g.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:K()/1e3})},people_properties:function(){if(!H)return{};var e=c(ne.os(H),2);return Y(ee({$os:e[0],$os_version:e[1],$browser:ne.browser(H,navigator.vendor)}),{$browser_version:ne.browserVersion(H,navigator.vendor)})}},nt=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],nn=function(){function e(t){var n;s(this,e),this.config=t,this.props={},this.campaign_params_saved=!1,this.name=(n="",t.token&&(n=t.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),t.persistence_name?"ph_"+t.persistence_name:"ph_"+n+"_posthog"),this.storage=this.buildStorage(t),this.load(),this.update_config(t,t),this.save()}return u(e,[{key:"buildStorage",value:function(e){-1===nt.indexOf(e.persistence.toLowerCase())&&(U.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t=e.persistence.toLowerCase();return"localstorage"===t&&ti.is_supported()?ti:"localstorage+cookie"===t&&ts.is_supported()?ts:"sessionstorage"===t&&tc.is_supported()?tc:"memory"===t?tu:"cookie"===t?tn:ts.is_supported()?ts:tn}},{key:"properties",value:function(){var e={};return G(this.props,function(t,n){if(n===eL&&k(t))for(var r,i=Object.keys(t),o=0;o<i.length;o++)e["$feature/".concat(i[o])]=t[i[o]];else r=!1,(F(eW)?r:A&&eW.indexOf===A?-1!=eW.indexOf(n):(G(eW,function(e){if(r||(r=e===n))return W}),r))||(e[n]=t)}),e}},{key:"load",value:function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=Y({},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,n){var r=this;if(k(e)){S(t)&&(t="None"),this.expire_days=S(n)?this.default_expiry:n;var i=!1;if(G(e,function(e,n){r.props.hasOwnProperty(n)&&r.props[n]!==t||(r.props[n]=e,i=!0)}),i)return this.save(),!0}return!1}},{key:"register",value:function(e,t){var n=this;if(k(e)){this.expire_days=S(t)?this.default_expiry:t;var r=!1;if(G(e,function(t,i){e.hasOwnProperty(i)&&n.props[i]!==t&&(n.props[i]=t,r=!0)}),r)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(ne.campaignParams(this.config.custom_campaign_params)),this.campaign_params_saved=!0)}},{key:"update_search_keyword",value:function(){this.register(ne.searchInfo())}},{key:"update_referrer_info",value:function(){this.register({$referrer:this.props.$referrer||ne.referrer(),$referring_domain:this.props.$referring_domain||ne.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 G(this.props,function(t,n){n in e||(e[n]=t)}),e}},{key:"update_config",value:function(e,t){if(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),e.persistence!==t.persistence){var n=this.buildStorage(e),r=this.props;this.clear(),this.storage=n,this.props=r,this.save()}}},{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 n=this.props[eT]||{};n[e]=t,this.props[eT]=n,this.save()}},{key:"remove_event_timer",value:function(e){var t=(this.props[eT]||{})[e];return S(t)||(delete this.props[eT][e],this.save()),t}},{key:"get_user_state",value:function(){return this.props[eB]||"anonymous"}},{key:"set_user_state",value:function(e){this.props[eB]=e,this.save()}},{key:"get_quota_limits",value:function(){return this.props[ej]||{}}},{key:"set_quota_limits",value:function(e){this.props[ej]=e,this.save()}}]),e}(),nr=u(function e(t){var n,r,i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),l(this,"bucketSize",100),l(this,"refillRate",10),l(this,"mutationBuckets",{}),l(this,"loggedTracker",{}),l(this,"refillBuckets",function(){Object.keys(i.mutationBuckets).forEach(function(e){i.mutationBuckets[e]=i.mutationBuckets[e]+i.refillRate,i.mutationBuckets[e]>=i.bucketSize&&delete i.mutationBuckets[e]})}),l(this,"getNodeOrRelevantParent",function(e){var t=i.rrweb.mirror.getNode(e);if("svg"!==(null==t?void 0:t.nodeName)&&t instanceof Element){var n=t.closest("svg");if(n)return[i.rrweb.mirror.getId(n),n]}return[e,t]}),l(this,"numberOfChanges",function(e){var t,n,r,i,o,s,a,u;return(null!==(t=null===(n=e.removes)||void 0===n?void 0:n.length)&&void 0!==t?t:0)+(null!==(r=null===(i=e.attributes)||void 0===i?void 0:i.length)&&void 0!==r?r:0)+(null!==(o=null===(s=e.texts)||void 0===s?void 0:s.length)&&void 0!==o?o:0)+(null!==(a=null===(u=e.adds)||void 0===u?void 0:u.length)&&void 0!==a?a:0)}),l(this,"throttleMutations",function(e){if(3!==e.type||0!==e.data.source)return e;var t=e.data,n=i.numberOfChanges(t);t.attributes&&(t.attributes=t.attributes.filter(function(e){var t,n,r,o=c(i.getNodeOrRelevantParent(e.id),2),s=o[0],a=o[1];return 0!==i.mutationBuckets[s]&&(i.mutationBuckets[s]=null!==(t=i.mutationBuckets[s])&&void 0!==t?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===(n=(r=i.options).onBlockedNode)||void 0===n||n.call(r,s,a))),e)}));var r=i.numberOfChanges(t);return 0!==r||n===r?e:void 0}),this.rrweb=t,this.options=o,this.refillRate=null!==(n=this.options.refillRate)&&void 0!==n?n:this.refillRate,this.bucketSize=null!==(r=this.options.bucketSize)&&void 0!==r?r:this.bucketSize,setInterval(function(){i.refillBuckets()},1e3)}),ni=((nQ=ni||{})[nQ.DomContentLoaded=0]="DomContentLoaded",nQ[nQ.Load=1]="Load",nQ[nQ.FullSnapshot=2]="FullSnapshot",nQ[nQ.IncrementalSnapshot=3]="IncrementalSnapshot",nQ[nQ.Meta=4]="Meta",nQ[nQ.Custom=5]="Custom",nQ[nQ.Plugin=6]="Plugin",nQ),no="[SessionRecording]",ns={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],maskRequestFn:function(e){return e},recordHeaders:!1,recordBody:!1,recordInitialRequests:!1,recordPerformance:!1,performanceEntryTypeToObserve:["first-input","navigation","paint","resource"],payloadSizeLimitBytes:1e6},na=["authorization","x-forwarded-for","authorization","cookie","set-cookie","x-api-key","x-real-ip","remote-addr","forwarded","proxy-authorization","x-csrf-token","x-csrftoken","x-xsrf-token"],nu=["password","secret","passwd","api_key","apikey","auth","credentials","mysql_pwd","privatekey","private_key","token"],nl=["/s/","/e/","/i/"];function nc(e,t,n,r){if(P(e))return e;var i=(null==t?void 0:t["content-length"])||new Blob([e]).size;return E(i)&&(i=parseInt(i)),i>n?no+" ".concat(r," body too large to record (").concat(i," bytes)"):e}function nd(e,t){if(P(e))return e;var n=e;return ew(n,!1)||(n=no+" "+t+" body redacted"),G(nu,function(e){var r,i;null!==(r=n)&&void 0!==r&&r.length&&-1!==(null===(i=n)||void 0===i?void 0:i.indexOf(e))&&(n=no+" "+t+" body redacted as might contain: "+e)}),n}var nf=function(e,t){var n,r,o={payloadSizeLimitBytes:ns.payloadSizeLimitBytes,performanceEntryTypeToObserve:d(ns.performanceEntryTypeToObserve)},s=!1!==e.session_recording.recordHeaders&&t.recordHeaders,a=!1!==e.session_recording.recordBody&&t.recordBody,u=!1!==e.capture_performance&&t.recordPerformance,l=(r=Math.min(1e6,null!==(n=o.payloadSizeLimitBytes)&&void 0!==n?n:1e6),function(e){return null!=e&&e.requestBody&&(e.requestBody=nc(e.requestBody,e.requestHeaders,r,"Request")),null!=e&&e.responseBody&&(e.responseBody=nc(e.responseBody,e.responseHeaders,r,"Response")),e}),c=function(e){var t;return l(function(e){var t=tf(e.name);if(!(t&&t.pathname&&nl.some(function(e){return 0===t.pathname.indexOf(e)})))return e}((G(Object.keys(null!==(t=e.requestHeaders)&&void 0!==t?t:{}),function(t){var n;na.includes(t.toLowerCase())&&(null===(n=e.requestHeaders)||void 0===n||delete n[t])}),e)))},f=w(e.session_recording.maskNetworkRequestFn);return f&&w(e.session_recording.maskCapturedNetworkRequestFn)&&U.warn("Both `maskNetworkRequestFn` and `maskCapturedNetworkRequestFn` are defined. `maskNetworkRequestFn` will be ignored."),f&&(e.session_recording.maskCapturedNetworkRequestFn=function(t){var n=e.session_recording.maskNetworkRequestFn({url:t.name});return i(i({},t),{},{name:null==n?void 0:n.url})}),o.maskRequestFn=w(e.session_recording.maskCapturedNetworkRequestFn)?function(t){var n,r,i,o=c(t);return o&&null!==(n=null===(r=(i=e.session_recording).maskCapturedNetworkRequestFn)||void 0===r?void 0:r.call(i,o))&&void 0!==n?n:void 0}:function(e){return function(e){if(!S(e))return e.requestBody=nd(e.requestBody,"Request"),e.responseBody=nd(e.responseBody,"Response"),e}(c(e))},i(i(i({},ns),o),{},{recordHeaders:s,recordBody:a,recordPerformance:u,recordInitialRequests:u})};function np(e,t){nw(!0,e,t)}function nh(e,t){nw(!1,e,t)}function ng(e,t){return"1"===nb(e,t)}function nv(e,t){return!!function(e){if(e&&e.respectDnt){var t=e&&e.window||R,n=null==t?void 0:t.navigator,r=!1;return G([null==n?void 0:n.doNotTrack,n.msDoNotTrack,t.doNotTrack],function(e){Q([!0,1,"1","yes"],e)&&(r=!0)}),r}return!1}(t)||"0"===nb(e,t)}function n_(e,t){nm(t=t||{}).remove(ny(e,t),!!t.crossSubdomainCookie)}function nm(e){return"localStorage"===(e=e||{}).persistenceType?ti:"localStorage+cookie"===e.persistenceType?ts:tn}function ny(e,t){return((t=t||{}).persistencePrefix||"__ph_opt_in_out_")+e}function nb(e,t){return nm(t).get(ny(e,t))}function nw(e,t,n){E(t)&&t.length?(nm(n=n||{}).set(ny(t,n),e?1:0,T(n.cookieExpiration)?n.cookieExpiration:null,n.crossSubdomainCookie,n.secureCookie),n.capture&&e&&n.capture(n.captureEventName||"$opt_in",n.captureProperties||{},{send_instantly:!0})):U.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function nk(e){var t=!1;try{var n=e.config.token,r=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;n&&(t=nv(n,{respectDnt:r,persistenceType:i,persistencePrefix:o,window:s}))}catch(e){U.error("Unexpected error when checking capturing opt-out status: "+e)}return t}(nK=nJ||(nJ={}))[nK.Mutation=0]="Mutation",nK[nK.MouseMove=1]="MouseMove",nK[nK.MouseInteraction=2]="MouseInteraction",nK[nK.Scroll=3]="Scroll",nK[nK.ViewportResize=4]="ViewportResize",nK[nK.Input=5]="Input",nK[nK.TouchMove=6]="TouchMove",nK[nK.MediaInteraction=7]="MediaInteraction",nK[nK.StyleSheetRule=8]="StyleSheetRule",nK[nK.CanvasMutation=9]="CanvasMutation",nK[nK.Font=10]="Font",nK[nK.Log=11]="Log",nK[nK.Drag=12]="Drag",nK[nK.StyleDeclaration=13]="StyleDeclaration",nK[nK.Selection=14]="Selection",nK[nK.AdoptedStyleSheet=15]="AdoptedStyleSheet";var nS=[nJ.MouseMove,nJ.MouseInteraction,nJ.Scroll,nJ.ViewportResize,nJ.Input,nJ.TouchMove,nJ.MediaInteraction,nJ.Drag],nE=function(e){return{rrwebMethod:e,enqueuedAt:Date.now(),attempt:1}},nF="[SessionRecording]",nP=function(){function e(t){var n=this;if(s(this,e),l(this,"queuedRRWebEvents",[]),l(this,"isIdle",!1),l(this,"_linkedFlagSeen",!1),l(this,"_lastActivityTimestamp",Date.now()),l(this,"windowId",null),l(this,"sessionId",null),l(this,"_linkedFlag",null),l(this,"_sampleRate",null),l(this,"_minimumDuration",null),l(this,"_forceAllowLocalhostNetworkCapture",!1),this.instance=t,this._captureStarted=!1,this._endpoint="/s/",this.stopRrweb=void 0,this.receivedDecide=!1,null==R||R.addEventListener("beforeunload",function(){n._flushBuffer()}),null==R||R.addEventListener("offline",function(){n._tryAddCustomEvent("browser offline",{})}),null==R||R.addEventListener("online",function(){n._tryAddCustomEvent("browser online",{})}),null==R||R.addEventListener("visibilitychange",function(){if(null!=L&&L.visibilityState){var e="window "+L.visibilityState;n._tryAddCustomEvent(e,{})}}),!this.instance.sessionManager)throw U.error(nF+" started without valid sessionManager"),Error(nF+" started without valid sessionManager. This is a bug.");this.buffer=this.clearBuffer()}return u(e,[{key:"rrwebRecord",get:function(){var e;return null==B||null===(e=B.rrweb)||void 0===e?void 0:e.record}},{key:"started",get:function(){return this._captureStarted}},{key:"sessionManager",get:function(){if(!this.instance.sessionManager)throw U.error(nF+" started without valid sessionManager"),Error(nF+" started without valid sessionManager. This is a bug.");return this.instance.sessionManager}},{key:"isSampled",get:function(){return T(this._sampleRate)?this.instance.get_property(eM):null}},{key:"sessionDuration",get:function(){var e,t,n=null===(e=this.buffer)||void 0===e?void 0:e.data[(null===(t=this.buffer)||void 0===t?void 0:t.data.length)-1],r=this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionStartTimestamp;return n?n.timestamp-r:null}},{key:"isRecordingEnabled",get:function(){var e=!!this.instance.get_property(eR),t=!this.instance.config.disable_session_recording;return R&&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:"canvasRecording",get:function(){var e=this.instance.get_property(eO);return e&&e.fps&&e.quality?{enabled:e.enabled,fps:e.fps,quality:e.quality}:void 0}},{key:"networkPayloadCapture",get:function(){var e,t,n=this.instance.get_property(eI),r={recordHeaders:null===(e=this.instance.config.session_recording)||void 0===e?void 0:e.recordHeaders,recordBody:null===(t=this.instance.config.session_recording)||void 0===t?void 0:t.recordBody},i=(null==r?void 0:r.recordHeaders)||(null==n?void 0:n.recordHeaders),o=(null==r?void 0:r.recordBody)||(null==n?void 0:n.recordBody),s=this.instance.config.capture_performance||(null==n?void 0:n.capturePerformance);return i||o||s?{recordHeaders:i,recordBody:o,recordPerformance:s}:void 0}},{key:"status",get:function(){return this.receivedDecide?this.isRecordingEnabled?P(this._linkedFlag)||this._linkedFlagSeen?x(this.isSampled)?this.isSampled?"sampled":"disabled":"active":"buffering":"disabled":"buffering"}},{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled?(this._startCapture(),U.info(nF+" started")):(this.stopRecording(),this.clearBuffer())}},{key:"stopRecording",value:function(){this._captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this._captureStarted=!1,U.info(nF+" stopped"))}},{key:"makeSamplingDecision",value:function(e){var t,n,r=this.sessionId!==e,i=this._sampleRate;if(T(i)){var o,s=this.isSampled,a=r||!x(s);(o=a?Math.random()<i:s)||!a||U.warn(nF+" Sample rate (".concat(i,") has determined that this sessionId (").concat(e,") will not be sent to the server.")),this._tryAddCustomEvent("samplingDecisionMade",{sampleRate:i}),null===(n=this.instance.persistence)||void 0===n||n.register(l({},eM,o))}else null===(t=this.instance.persistence)||void 0===t||t.register(l({},eM,null))}},{key:"afterDecideResponse",value:function(e){var t,n,r,o,s,a,u,c,d,f,p=this;this.instance.persistence&&this.instance.persistence.register((l(f={},eR,!!e.sessionRecording),l(f,eC,null===(s=e.sessionRecording)||void 0===s?void 0:s.consoleLogRecordingEnabled),l(f,eI,i({capturePerformance:e.capturePerformance},null===(a=e.sessionRecording)||void 0===a?void 0:a.networkPayloadCapture)),l(f,eO,{enabled:null===(u=e.sessionRecording)||void 0===u?void 0:u.recordCanvas,fps:null===(c=e.sessionRecording)||void 0===c?void 0:c.canvasFps,quality:null===(d=e.sessionRecording)||void 0===d?void 0:d.canvasQuality}),f));var h=null===(t=e.sessionRecording)||void 0===t?void 0:t.sampleRate;this._sampleRate=P(h)?null:parseFloat(h);var g,v=null===(n=e.sessionRecording)||void 0===n?void 0:n.minimumDurationMilliseconds;if(this._minimumDuration=S(v)?null:v,this._linkedFlag=(null===(r=e.sessionRecording)||void 0===r?void 0:r.linkedFlag)||null,null!==(o=e.sessionRecording)&&void 0!==o&&o.endpoint&&(this._endpoint=null===(g=e.sessionRecording)||void 0===g?void 0:g.endpoint),T(this._sampleRate)&&this.sessionManager.onSessionId(function(e){p.makeSamplingDecision(e)}),!P(this._linkedFlag)){var _=E(this._linkedFlag)?this._linkedFlag:this._linkedFlag.flag,m=E(this._linkedFlag)?null:this._linkedFlag.variant;this.instance.onFeatureFlags(function(e,t){var n=k(t)&&_ in t,r=m?t[_]===m:n;if(r){var i={linkedFlag:_,linkedVariant:m},o="linked flag matched";U.info(nF+" "+o,i),p._tryAddCustomEvent(o,i)}p._linkedFlagSeen=r})}this.receivedDecide=!0,this.startRecordingIfEnabled()}},{key:"log",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";null===(t=this.instance.sessionRecording)||void 0===t||t.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:n,trace:[],payload:[JSON.stringify(e)]}},timestamp:K()})}},{key:"_startCapture",value:function(){var e=this;S(Object.assign)||this._captureStarted||this.instance.config.disable_session_recording||nk(this.instance)||(this._captureStarted=!0,this.sessionManager.checkAndGetSessionAndWindowId(),this.rrwebRecord?this._onScriptLoaded():er(this.instance.requestRouter.endpointFor("assets","/static/recorder.js?v=".concat(g.LIB_VERSION)),function(t){if(t)return U.error(nF+" could not load recorder.js",t);e._onScriptLoaded()}))}},{key:"_isInteractiveEvent",value:function(e){var t;return 3===e.type&&-1!==nS.indexOf(null===(t=e.data)||void 0===t?void 0:t.source)}},{key:"_updateWindowAndSessionIds",value:function(e){var t=this._isInteractiveEvent(e);t||this.isIdle||e.timestamp-this._lastActivityTimestamp>3e5&&(this.isIdle=!0,this._tryAddCustomEvent("sessionIdle",{reason:"user inactivity",timeSinceLastActive:e.timestamp-this._lastActivityTimestamp,threshold:3e5}));var n=!1;if(t&&(this._lastActivityTimestamp=e.timestamp,this.isIdle&&(this.isIdle=!1,this._tryAddCustomEvent("sessionNoLongerIdle",{reason:"user activity",type:e.type}),n=!0)),!this.isIdle){var r=this.sessionManager.checkAndGetSessionAndWindowId(!t,e.timestamp),i=r.windowId,o=r.sessionId,s=this.sessionId!==o,a=this.windowId!==i;this.windowId=i,this.sessionId=o,(n||-1===[2,4].indexOf(e.type)&&(a||s))&&this._tryTakeFullSnapshot()}}},{key:"_tryRRWebMethod",value:function(e){try{return e.rrwebMethod(),!0}catch(t){return this.queuedRRWebEvents.length<10?this.queuedRRWebEvents.push({enqueuedAt:e.enqueuedAt||Date.now(),attempt:e.attempt++,rrwebMethod:e.rrwebMethod}):U.warn(nF+" could not emit queued rrweb event.",t,e),!1}}},{key:"_tryAddCustomEvent",value:function(e,t){var n=this;return this._tryRRWebMethod(nE(function(){return n.rrwebRecord.addCustomEvent(e,t)}))}},{key:"_tryTakeFullSnapshot",value:function(){var e=this;return this._tryRRWebMethod(nE(function(){return e.rrwebRecord.takeFullSnapshot()}))}},{key:"_onScriptLoaded",value:function(){for(var e,t=this,n={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},r=this.instance.config.session_recording,o=0,s=Object.entries(r||{});o<s.length;o++){var a=c(s[o],2),u=a[0],l=a[1];u in n&&(n[u]=l)}if(this.canvasRecording&&this.canvasRecording.enabled&&(n.recordCanvas=!0,n.sampling={canvas:this.canvasRecording.fps},n.dataURLOptions={type:"image/webp",quality:this.canvasRecording.quality}),this.rrwebRecord){this.mutationRateLimiter=null!==(e=this.mutationRateLimiter)&&void 0!==e?e:new nr(this.rrwebRecord,{onBlockedNode:function(e,n){var r="Too many mutations on node '".concat(e,"'. Rate limiting. This could be due to SVG animations or something similar");U.info(r,{node:n}),t.log(nF+" "+r,"warn")}}),this._scheduleFullSnapshot();var d=this._gatherRRWebPlugins();this.stopRrweb=this.rrwebRecord(i({emit:function(e){t.onRRwebEmit(e)},plugins:d},n)),this.instance._addCaptureHook(function(e){try{if("$pageview"===e){var n=R?t._maskUrl(R.location.href):"";if(!n)return;t._tryAddCustomEvent("$pageview",{href:n}),t._tryTakeFullSnapshot()}}catch(e){U.error("Could not add $pageview to rrweb session",e)}}),this._lastActivityTimestamp=Date.now(),this.isIdle=!1,this._tryAddCustomEvent("$session_options",{sessionRecordingOptions:n,activePlugins:d.map(function(e){return null==e?void 0:e.name})}),this._tryAddCustomEvent("$posthog_config",{config:this.instance.config})}else U.error(nF+"onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.")}},{key:"_scheduleFullSnapshot",value:function(){var e=this;this._fullSnapshotTimer&&clearInterval(this._fullSnapshotTimer),this._fullSnapshotTimer=setInterval(function(){e._tryTakeFullSnapshot()},3e5)}},{key:"_gatherRRWebPlugins",value:function(){var e=[];return B.rrwebConsoleRecord&&this.isConsoleLogCaptureEnabled&&e.push(B.rrwebConsoleRecord.getRecordConsolePlugin()),this.networkPayloadCapture&&w(B.getRecordNetworkPlugin)&&(!td.includes(location.hostname)||this._forceAllowLocalhostNetworkCapture?e.push(B.getRecordNetworkPlugin(nf(this.instance.config,this.networkPayloadCapture))):U.info(nF+" NetworkCapture not started because we are on localhost.")),e}},{key:"onRRwebEmit",value:function(e){if(this._processQueuedEvents(),e&&k(e)){if(e.type===ni.Meta){var t=this._maskUrl(e.data.href);if(this._lastHref=t,!t)return;e.data.href=t}else this._pageViewFallBack();e.type===ni.FullSnapshot&&this._scheduleFullSnapshot();var n=this.mutationRateLimiter?this.mutationRateLimiter.throttleMutations(e):e;if(n){var r=function(e){if(e&&k(e)&&6===e.type&&k(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=[],n=0;n<e.data.payload.payload.length;n++)e.data.payload.payload[n]&&e.data.payload.payload[n].length>2e3?t.push(e.data.payload.payload[n].slice(0,2e3)+"...[truncated]"):t.push(e.data.payload.payload[n]);return e.data.payload.payload=t,e}return e}(n),i=JSON.stringify(r).length;if(this._updateWindowAndSessionIds(r),!this.isIdle||r.type===ni.Custom){var o={$snapshot_bytes:i,$snapshot_data:r,$session_id:this.sessionId,$window_id:this.windowId};"disabled"!==this.status?this._captureSnapshotBuffered(o):this.clearBuffer()}}}}},{key:"_pageViewFallBack",value:function(){if(!this.instance.config.capture_pageview&&R){var e=this._maskUrl(R.location.href);this._lastHref!==e&&(this._tryAddCustomEvent("$url_changed",{href:e}),this._lastHref=e)}}},{key:"_processQueuedEvents",value:function(){var e=this;if(this.queuedRRWebEvents.length){var t=d(this.queuedRRWebEvents);this.queuedRRWebEvents=[],t.forEach(function(n){Date.now()-n.enqueuedAt>2e3?e._tryAddCustomEvent("rrwebQueueTimeout",{enqueuedAt:n.enqueuedAt,attempt:n.attempt,queueLength:t.length}):e._tryRRWebMethod(n)&&e._tryAddCustomEvent("rrwebQueueSuccess",{enqueuedAt:n.enqueuedAt,attempt:n.attempt,queueLength:t.length})})}}},{key:"_maskUrl",value:function(e){var t=this.instance.config.session_recording;if(t.maskNetworkRequestFn){var n,r={url:e};return null===(n=r=t.maskNetworkRequestFn(r))||void 0===n?void 0:n.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,n=this.sessionDuration,r=T(n)&&n>=0,i=T(t)&&r&&n<t;return"buffering"===this.status||i?(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,n=this,r=2+((null===(t=this.buffer)||void 0===t?void 0:t.data.length)||0);(!this.buffer||this.buffer.size+e.$snapshot_bytes+r>943718.4||this.buffer.sessionId&&this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),F(this.buffer.sessionId)&&!F(this.sessionId)&&(this.buffer.sessionId=this.sessionId,this.buffer.windowId=this.windowId),this.buffer.size+=e.$snapshot_bytes,this.buffer.data.push(e.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout(function(){n._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(e){this.instance.capture("$snapshot",e,{_url:this.instance.requestRouter.endpointFor("api",this._endpoint),_noTruncate:!0,_batchKey:"recordings"})}}]),e}(),nT=function(){function e(t){s(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return u(e,[{key:"call",value:function(){var e=this,t={token:this.instance.config.token,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(eD),group_properties:this.instance.get_property(eq),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({method:"POST",url:this.instance.requestRouter.endpointFor("api","/decide/?v=3"),data:t,compression:eG.Base64,timeout:this.instance.config.feature_flag_request_timeout_ms,callback:function(t){return e.parseDecideResponse(t.json)}})}},{key:"parseDecideResponse",value:function(e){var t,n=this;this.instance.featureFlags.setReloadingPaused(!1),this.instance.featureFlags._startReloadTimer();var r=!e;if(this.instance.config.advanced_disable_feature_flags_on_first_load||this.instance.config.advanced_disable_feature_flags||this.instance.featureFlags.receivedFeatureFlags(null!=e?e:{},r),r)U.error("Failed to fetch feature flags from PostHog.");else{if(!L||!L.body)return U.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){n.parseDecideResponse(e)},500);this.instance.toolbar.afterDecideResponse(e),null===(t=this.instance.sessionRecording)||void 0===t||t.afterDecideResponse(e),eY.afterDecideResponse(e,this.instance),this.instance._afterDecideResponse(e);var i=null==R?void 0:R.extendPostHogWithSurveys;e.surveys&&!i&&er(this.instance.requestRouter.endpointFor("assets","/static/surveys.js"),function(e){if(e)return U.error("Could not load surveys script",e);R.extendPostHogWithSurveys(n.instance)});var o=null==R?void 0:R.extendPostHogWithExceptionAutoCapture;if(e.autocaptureExceptions&&e.autocaptureExceptions&&S(o)&&er(this.instance.requestRouter.endpointFor("assets","/static/exception-autocapture.js"),function(t){if(t)return U.error("Could not load exception autocapture script",t);R.extendPostHogWithExceptionAutocapture(n.instance,e)}),e.siteApps){if(this.instance.config.opt_in_site_apps){var s,a=h(e.siteApps);try{for(a.s();!(s=a.n()).done;)(function(){var e=s.value,t=e.id,r=e.url,i=n.instance.requestRouter.endpointFor("api",r);B["__$$ph_site_app_".concat(t)]=n.instance,er(i,function(e){e&&U.error("Error while initializing PostHog app with config id ".concat(t),e)})})()}catch(e){a.e(e)}finally{a.f()}}else e.siteApps.length>0&&U.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}}}]),e}(),nx=null!=R&&R.location?tg(R.location.hash,"__posthog")||tg(location.hash,"state"):null,nR="_postHogToolbarParams",nC=function(){function e(t){s(this,e),l(this,"_toolbarScriptLoaded",!1),this.instance=t}return u(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,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!R||!L)return!1;n=null!==(e=n)&&void 0!==e?e:R.location,i=null!==(t=i)&&void 0!==t?t:R.history;try{if(!r){try{R.localStorage.setItem("test","test"),R.localStorage.removeItem("test")}catch(e){return!1}r=null==R?void 0:R.localStorage}var o,s=nx||tg(n.hash,"__posthog")||tg(n.hash,"state"),a=s?X(function(){return JSON.parse(atob(decodeURIComponent(s)))})||X(function(){return JSON.parse(decodeURIComponent(s))}):null;return a&&"ph_authorize"===a.action?((o=a).source="url",o&&Object.keys(o).length>0&&(a.desiredHash?n.hash=a.desiredHash:i?i.replaceState("",L.title,n.pathname+n.search):n.hash="")):((o=JSON.parse(r.getItem(nR)||"{}")).source="localstorage",delete o.userIntent),!(!o.token||this.instance.config.token!==o.token)&&(this.loadToolbar(o),!0)}catch(e){return!1}}},{key:"_callLoadToolbar",value:function(e){(B.ph_load_toolbar||B.ph_load_editor)(e,this.instance)}},{key:"loadToolbar",value:function(e){var t=this;if(!R||R.localStorage.getItem(nR)&&this._toolbarScriptLoaded)return!1;var n="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,r=i(i({token:this.instance.config.token},e),{},{apiURL:this.instance.requestRouter.endpointFor("ui")},n?{instrument:!1}:{});if(R.localStorage.setItem(nR,JSON.stringify(i(i({},r),{},{source:void 0}))),this._toolbarScriptLoaded)this._callLoadToolbar(r);else{this._toolbarScriptLoaded=!0;var o=3e5*Math.floor(Date.now()/3e5);er(this.instance.requestRouter.endpointFor("assets","/static/toolbar.js?t=".concat(o)),function(e){if(e)return U.error("Failed to load toolbar",e),void(t._toolbarScriptLoaded=!1);t._callLoadToolbar(r)}),en(R,"turbolinks:load",function(){t._toolbarScriptLoaded=!1,t.loadToolbar(r)})}return!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]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return this.maybeLoadToolbar(e,t,n)}}]),e}(),nI=function(){function e(t){s(this,e),l(this,"isPaused",!0),l(this,"queue",[]),l(this,"flushTimeoutMs",3e3),this.sendRequest=t}return u(e,[{key:"enqueue",value:function(e){this.queue.push(e),this.flushTimeout||this.setFlushTimeout()}},{key:"unload",value:function(){var e=this;this.clearFlushTimeout();var t=Object.values(this.queue.length>0?this.formatQueue():{});[].concat(d(t.filter(function(e){return 0===e.url.indexOf("/e")})),d(t.filter(function(e){return 0!==e.url.indexOf("/e")}))).map(function(t){e.sendRequest(i(i({},t),{},{transport:"sendBeacon"}))})}},{key:"enable",value:function(){this.isPaused=!1,this.setFlushTimeout()}},{key:"setFlushTimeout",value:function(){var e=this;this.isPaused||(this.flushTimeout=setTimeout(function(){if(e.clearFlushTimeout(),e.queue.length>0){var t=e.formatQueue();for(var n in t)(function(n){var r=t[n],i=(new Date).getTime();r.data&&b(r.data)&&G(r.data,function(e){e.offset=Math.abs(e.timestamp-i),delete e.timestamp}),e.sendRequest(r)})(n)}},this.flushTimeoutMs))}},{key:"clearFlushTimeout",value:function(){clearTimeout(this.flushTimeout),this.flushTimeout=void 0}},{key:"formatQueue",value:function(){var e={};return G(this.queue,function(t){var n,r=(t?t.batchKey:null)||t.url;S(e[r])&&(e[r]=i(i({},t),{},{data:[]})),null===(n=e[r].data)||void 0===n||n.push(t.data)}),this.queue=[],e}}]),e}(),nO=Uint8Array,nA=Uint16Array,nM=Uint32Array,nL=new nO([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]),n$=new nO([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]),nD=new nO([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),nq=function(e,t){for(var n=new nA(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new nM(n[30]);for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},nN=nq(nL,2),nH=nN[0],nB=nN[1];nH[28]=258,nB[258]=28;for(var nj=nq(n$,0)[1],nU=new nA(32768),nW=0;nW<32768;++nW){var nV=(43690&nW)>>>1|(21845&nW)<<1;nV=(61680&(nV=(52428&nV)>>>2|(13107&nV)<<2))>>>4|(3855&nV)<<4,nU[nW]=((65280&nV)>>>8|(255&nV)<<8)>>>1}var nz=function(e,t,n){for(var r=e.length,i=0,o=new nA(t);i<r;++i)++o[e[i]-1];var s,a=new nA(t);for(i=0;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;if(n){s=new nA(1<<t);var u=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],c=t-e[i],d=a[e[i]-1]++<<c,f=d|(1<<c)-1;d<=f;++d)s[nU[d]>>>u]=l}else for(s=new nA(r),i=0;i<r;++i)s[i]=nU[a[e[i]-1]++]>>>15-e[i];return s},nG=new nO(288);for(nW=0;nW<144;++nW)nG[nW]=8;for(nW=144;nW<256;++nW)nG[nW]=9;for(nW=256;nW<280;++nW)nG[nW]=7;for(nW=280;nW<288;++nW)nG[nW]=8;var nY=new nO(32);for(nW=0;nW<32;++nW)nY[nW]=5;var nQ,nJ,nK,nX,nZ=nz(nG,9,0),n0=nz(nY,5,0),n1=function(e){return(e/8>>0)+(7&e&&1)},n2=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof nA?nA:e instanceof nM?nM:nO)(n-t);return r.set(e.subarray(t,n)),r},n3=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},n5=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},n6=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[new nO(0),0];if(1==i){var s=new nO(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var a=n[0],u=n[1],l=0,c=1,d=2;for(n[0]={s:-1,f:a.f+u.f,l:a,r:u};c!=i-1;)a=n[n[l].f<n[d].f?l++:d++],u=n[l!=c&&n[l].f<n[d].f?l++:d++],n[c++]={s:-1,f:a.f+u.f,l:a,r:u};var f=o[0].s;for(r=1;r<i;++r)o[r].s>f&&(f=o[r].s);var p=new nA(f+1),h=n4(n[c-1],p,0);if(h>t){r=0;var g=0,v=h-t,_=1<<v;for(o.sort(function(e,t){return p[t.s]-p[e.s]||e.f-t.f});r<i;++r){var m=o[r].s;if(!(p[m]>t))break;g+=_-(1<<h-p[m]),p[m]=t}for(g>>>=v;g>0;){var y=o[r].s;p[y]<t?g-=1<<t-p[y]++-1:++r}for(;r>=0&&g;--r){var b=o[r].s;p[b]==t&&(--p[b],++g)}h=t}return[new nO(p),h]},n4=function e(t,n,r){return -1==t.s?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},n8=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new nA(++t),r=0,i=e[0],o=1,s=function(e){n[r++]=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[n.subarray(0,r),t]},n7=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},n9=function(e,t,n){var r=n.length,i=n1(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return 8*(i+4+r)},re=function(e,t,n,r,i,o,s,a,u,l,c){n3(t,c++,n),++i[256];for(var d=n6(i,15),f=d[0],p=d[1],h=n6(o,15),g=h[0],v=h[1],_=n8(f),m=_[0],y=_[1],b=n8(g),w=b[0],k=b[1],S=new nA(19),E=0;E<m.length;++E)S[31&m[E]]++;for(E=0;E<w.length;++E)S[31&w[E]]++;for(var F=n6(S,7),P=F[0],T=F[1],x=19;x>4&&!P[nD[x-1]];--x);var R,C,I,O,A=l+5<<3,M=n7(i,nG)+n7(o,nY)+s,L=n7(i,f)+n7(o,g)+s+14+3*x+n7(S,P)+(2*S[16]+3*S[17]+7*S[18]);if(A<=M&&A<=L)return n9(t,c,e.subarray(u,u+l));if(n3(t,c,1+(L<M)),c+=2,L<M){R=nz(f,p,0),C=f,I=nz(g,v,0),O=g;var $=nz(P,T,0);for(n3(t,c,y-257),n3(t,c+5,k-1),n3(t,c+10,x-4),c+=14,E=0;E<x;++E)n3(t,c+3*E,P[nD[E]]);c+=3*x;for(var D=[m,w],q=0;q<2;++q){var N=D[q];for(E=0;E<N.length;++E){var H=31&N[E];n3(t,c,$[H]),c+=P[H],H>15&&(n3(t,c,N[E]>>>5&127),c+=N[E]>>>12)}}}else R=nZ,C=nG,I=n0,O=nY;for(E=0;E<a;++E)if(r[E]>255){n5(t,c,R[(H=r[E]>>>18&31)+257]),c+=C[H+257],H>7&&(n3(t,c,r[E]>>>23&31),c+=nL[H]);var B=31&r[E];n5(t,c,I[B]),c+=O[B],B>3&&(n5(t,c,r[E]>>>5&8191),c+=n$[B])}else n5(t,c,R[r[E]]),c+=C[r[E]];return n5(t,c,R[256]),c+C[256]},rt=new nM([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),rn=new nO(0),rr=function(){for(var e=new nM(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),ri=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},ro=!!q||!!D,rs="text/plain",ra=function(e,t){var n=c(e.split("?"),2),r=n[0],o=n[1],s=i({},t);null==o||o.split("&").forEach(function(e){var t=c(e.split("="),1)[0];delete s[t]});var a=tp(s);return a=a?(o?o+"&":"")+a:o,"".concat(r,"?").concat(a)},ru=function(e){var t=e.data,n=e.compression;if(t){if(n===eG.GZipJS){var r,i,o,s,a,u,l,c,d,f=(i=function(e,t){var n=e.length;if(!t&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var r=new nO(e.length+(e.length>>>1)),i=0,o=function(e){r[i++]=e},s=0;s<n;++s){if(i+5>r.length){var a=new nO(i+8+(n-s<<1));a.set(r),r=a}var u=e.charCodeAt(s);u<128||t?o(u):(u<2048?o(192|u>>>6):(u>55295&&u<57344?(o(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++s))>>>18),o(128|u>>>12&63)):o(224|u>>>12),o(128|u>>>6&63)),o(128|63&u))}return n2(r,0,i)}(JSON.stringify(t)),o={mtime:0},s=4294967295,a={p:function(e){for(var t=s,n=0;n<e.length;++n)t=rr[255&t^e[n]]^t>>>8;s=t},d:function(){return 4294967295^s}},u=i.length,a.p(i),d=(l=10+(o.filename&&o.filename.length+1||0),c=function(e,t,n,r,i,o){var s=e.length,a=new nO(r+s+5*(1+Math.floor(s/7e3))+i),u=a.subarray(r,a.length-i),l=0;if(!t||s<8)for(var c=0;c<=s;c+=65535){var d=c+65535;d<s?l=n9(u,l,e.subarray(c,d)):(u[c]=o,l=n9(u,l,e.subarray(c,s)))}else{for(var f=rt[t-1],p=f>>>13,h=8191&f,g=(1<<n)-1,v=new nA(32768),_=new nA(g+1),m=Math.ceil(n/3),y=2*m,b=function(t){return(e[t]^e[t+1]<<m^e[t+2]<<y)&g},w=new nM(25e3),k=new nA(288),S=new nA(32),E=0,F=0,P=(c=0,0),T=0,x=0;c<s;++c){var R=b(c),C=32767&c,I=_[R];if(v[C]=I,_[R]=C,T<=c){var O=s-c;if((E>7e3||P>24576)&&O>423){l=re(e,u,0,w,k,S,F,P,x,c-x,l),P=E=F=0,x=c;for(var A=0;A<286;++A)k[A]=0;for(A=0;A<30;++A)S[A]=0}var M=2,L=0,$=h,D=C-I&32767;if(O>2&&R==b(c-D))for(var q=Math.min(p,O)-1,N=Math.min(32767,c),H=Math.min(258,O);D<=N&&--$&&C!=I;){if(e[c+M]==e[c+M-D]){for(var B=0;B<H&&e[c+B]==e[c+B-D];++B);if(B>M){if(M=B,L=D,B>q)break;var j=Math.min(D,B-2),U=0;for(A=0;A<j;++A){var W=c-D+A+32768&32767,V=W-v[W]+32768&32767;V>U&&(U=V,I=W)}}}D+=(C=I)-(I=v[C])+32768&32767}if(L){w[P++]=268435456|nB[M]<<18|nj[L];var z=31&nB[M],G=31&nj[L];F+=nL[z]+n$[G],++k[257+z],++S[G],T=c+M,++E}else w[P++]=e[c],++k[e[c]]}}l=re(e,u,o,w,k,S,F,P,x,c-x,l),o||(l=n9(u,l,rn))}return n2(a,0,r+n1(l)+i)}(i,null==o.level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+o.mem,l,8,!0)).length,function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&ri(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}}(c,o),ri(c,d-8,a.d()),ri(c,d-4,u),c);return{contentType:rs,body:new Blob([f],{type:rs})}}return n===eG.Base64?{contentType:"application/x-www-form-urlencoded",body:"data="+encodeURIComponent("string"==typeof(r=function(e){var t,n,r,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,u=0,l="",c=[];if(!e)return e;e=et(e);do t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,c[u++]=s.charAt(t)+s.charAt(n)+s.charAt(r)+s.charAt(i);while(a<e.length);switch(l=c.join(""),e.length%3){case 1:l=l.slice(0,-2)+"==";break;case 2:l=l.slice(0,-1)+"="}return l}(JSON.stringify(t)))?r:JSON.stringify(r))}:{contentType:"application/json",body:JSON.stringify(t)}}},rl=function(e){var t,n=new q;n.open(e.method||"GET",e.url,!0);var r=null!==(t=ru(e))&&void 0!==t?t:{},i=r.contentType,o=r.body;G(e.headers,function(e,t){n.setRequestHeader(t,e)}),i&&n.setRequestHeader("Content-Type",i),e.timeout&&(n.timeout=e.timeout),n.withCredentials=!0,n.onreadystatechange=function(){if(4===n.readyState){var t,r={statusCode:n.status,text:n.responseText};if(200===n.status)try{r.json=JSON.parse(n.responseText)}catch(e){}null===(t=e.callback)||void 0===t||t.call(e,r)}},n.send(o)},rc=function(e){var t,n,r=null!==(t=ru(e))&&void 0!==t?t:{},i=r.contentType,o=r.body,s=new Headers;G(s,function(e,t){s.append(t,e)}),i&&s.append("Content-Type",i);var a=e.url,u=null;if(N){var l=new N;u={signal:l.signal,timeout:setTimeout(function(){return l.abort()},e.timeout)}}D(a,{method:(null==e?void 0:e.method)||"GET",headers:s,keepalive:"POST"===e.method,body:o,signal:null===(n=u)||void 0===n?void 0:n.signal}).then(function(t){return t.text().then(function(n){var r,i={statusCode:t.status,text:n};if(200===t.status)try{i.json=JSON.parse(n)}catch(e){U.error(e)}null===(r=e.callback)||void 0===r||r.call(e,i)})}).catch(function(t){var n;U.error(t),null===(n=e.callback)||void 0===n||n.call(e,{statusCode:0,text:t})}).finally(function(){return u?clearTimeout(u.timeout):null})},rd=function(e){var t=ra(e.url,{beacon:"1"});try{var n,r=null!==(n=ru(e))&&void 0!==n?n:{},i=r.contentType,o=r.body,s="string"==typeof o?new Blob([o],{type:i}):o;M.sendBeacon(t,s)}catch(e){}},rf=function(e){var t;if(L){var n=L.createElement("script");n.type="text/javascript",n.async=!0,n.defer=!0,n.src=e.url;var r=L.getElementsByTagName("script")[0];null===(t=r.parentNode)||void 0===t||t.insertBefore(n,r)}},rp=["retriesPerformedSoFar"],rh=function(){function e(t){var n=this;s(this,e),l(this,"isPolling",!1),l(this,"pollIntervalMs",3e3),l(this,"queue",[]),this.instance=t,this.queue=[],this.areWeOnline=!0,!S(R)&&"onLine"in R.navigator&&(this.areWeOnline=R.navigator.onLine,R.addEventListener("online",function(){n.areWeOnline=!0,n.flush()}),R.addEventListener("offline",function(){n.areWeOnline=!1}))}return u(e,[{key:"retriableRequest",value:function(e){var t=this,n=e.retriesPerformedSoFar,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,rp);T(n)&&n>0&&(r.url=ra(r.url,{retry_count:n})),this.instance._send_request(i(i({},r),{},{callback:function(e){var o;200!==e.statusCode&&(e.statusCode<400||e.statusCode>=500)&&(null!=n?n:0)<10?t.enqueue(i({},r)):null===(o=r.callback)||void 0===o||o.call(r,e)}}))}},{key:"enqueue",value:function(e){var t,n,r,i=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=i+1;var o=(r=(Math.random()-.5)*((n=Math.min(18e5,t=3e3*Math.pow(2,i)))-t/2),Math.ceil(n+r)),s=Date.now()+o;this.queue.push({retryAt:s,requestOptions:e});var a="Enqueued failed request for retry in ".concat(o);navigator.onLine||(a+=" (Browser is offline)"),U.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.pollIntervalMs)}},{key:"flush",value:function(){var e=Date.now(),t=[],n=this.queue.filter(function(n){return n.retryAt<e||(t.push(n),!1)});if(this.queue=t,n.length>0){var r,i=h(n);try{for(i.s();!(r=i.n()).done;){var o=r.value.requestOptions;this.retriableRequest(o)}}catch(e){i.e(e)}finally{i.f()}}}},{key:"unload",value:function(){this.poller&&(clearTimeout(this.poller),this.poller=void 0);var e,t=h(this.queue);try{for(t.s();!(e=t.n()).done;){var n=e.value.requestOptions;try{this.instance._send_request(i(i({},n),{},{transport:"sendBeacon"}))}catch(e){U.error(e)}}}catch(e){t.e(e)}finally{t.f()}this.queue=[]}}]),e}(),rg=function(){function e(t,n,r,i){s(this,e),l(this,"_sessionIdChangedHandlers",[]),this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this._sessionIdGenerator=r||e7,this._windowIdGenerator=i||e7;var o=t.persistence_name||t.token,a=t.session_idle_timeout_seconds||1800;if(T(a)?a>1800?U.warn("session_idle_timeout_seconds cannot be  greater than 30 minutes. Using 30 minutes instead."):a<60&&U.warn("session_idle_timeout_seconds cannot be less than 60 seconds. Using 60 seconds instead."):(U.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 u=tc.parse(this._window_id_storage_key),c=tc.parse(this._primary_window_exists_storage_key);u&&!c?this._windowId=u:tc.remove(this._window_id_storage_key),tc.set(this._primary_window_exists_storage_key,!0)}this._listenToReloadWindow()}return u(e,[{key:"onSessionId",value:function(e){var t=this;return S(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&&tc.is_supported()}},{key:"_setWindowId",value:function(e){e!==this._windowId&&(this._windowId=e,this._canUseSessionStorage()&&tc.set(this._window_id_storage_key,e))}},{key:"_getWindowId",value:function(){return this._windowId?this._windowId:this._canUseSessionStorage()?tc.parse(this._window_id_storage_key):null}},{key:"_setSessionId",value:function(e,t,n){e===this._sessionId&&t===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=t,this._sessionId=e,this.persistence.register(l({},eA,[t,e,n])))}},{key:"_getSessionId",value:function(){if(this._sessionId&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this._sessionId,this._sessionStartTimestamp];var e=this.persistence.props[eA];return b(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;null==R||R.addEventListener("beforeunload",function(){e._canUseSessionStorage()&&tc.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(),n=c(this._getSessionId(),3),r=n[0],i=n[1],o=n[2],s=this._getWindowId(),a=o&&o>0&&Math.abs(t-o)>864e5,u=!1,l=!i,d=!e&&Math.abs(t-r)>this._sessionTimeoutMs;l||d||a?(i=this._sessionIdGenerator(),s=this._windowIdGenerator(),U.info("[SessionId] new session ID generated",{sessionId:i,windowId:s,changeReason:{noSessionId:l,activityTimeout:d,sessionPastMaximumLength:a}}),o=t,u=!0):s||(s=this._windowIdGenerator(),u=!0);var f=0===r||!e||a?t:r,p=0===o?(new Date).getTime():o;return this._setWindowId(s),this._setSessionId(i,f,p),u&&this._sessionIdChangedHandlers.forEach(function(e){return e(i,s)}),{sessionId:i,windowId:s,sessionStartTimestamp:p}}}]),e}();(rM=nX||(nX={})).US="us",rM.EU="eu",rM.CUSTOM="custom";var rv=function(){function e(t){s(this,e),l(this,"_regionCache",{}),this.instance=t}return u(e,[{key:"apiHost",get:function(){return this.instance.config.api_host.trim().replace(/\/$/,"")}},{key:"uiHost",get:function(){var e;return null===(e=this.instance.config.ui_host)||void 0===e?void 0:e.replace(/\/$/,"")}},{key:"region",get:function(){return this._regionCache[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this._regionCache[this.apiHost]=nX.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this._regionCache[this.apiHost]=nX.EU:this._regionCache[this.apiHost]=nX.CUSTOM),this._regionCache[this.apiHost]}},{key:"endpointFor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t&&(t="/"===t[0]?t:"/".concat(t)),"ui"===e)return(this.uiHost||this.apiHost)+t;if(this.region===nX.CUSTOM)return this.apiHost+t;var n="i.posthog.com"+t;switch(e){case"assets":return"https://".concat(this.region,"-assets.").concat(n);case"api":return"https://".concat(this.region,".").concat(n)}}}]),e}(),r_=u(function e(t,n,r,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,u,l,c=t.requestRouter.endpointFor("ui","/person/"+t.get_distinct_id());e.tags["PostHog Person URL"]=c,t.sessionRecordingStarted()&&(e.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var d=(null===(o=e.exception)||void 0===o?void 0:o.values)||[],f={$exception_message:null===(s=d[0])||void 0===s?void 0:s.value,$exception_type:null===(a=d[0])||void 0===a?void 0:a.type,$exception_personURL:c,$sentry_event_id:e.event_id,$sentry_exception:e.exception,$sentry_exception_message:null===(u=d[0])||void 0===u?void 0:u.value,$sentry_exception_type:null===(l=d[0])||void 0===l?void 0:l.type,$sentry_tags:e.tags};return n&&r&&(f.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+e.event_id),t.capture("$exception",f),e})}}),rm=function(){function e(t){var n=this;s(this,e),l(this,"_hasSeenPageView",!1),l(this,"_updateScrollData",function(){n._pageViewData||(n._pageViewData=n._createPageViewData());var e,t,r,i,o=n._pageViewData,s=n._scrollY(),a=n._scrollHeight(),u=n._contentY(),l=n._contentHeight();o.lastScrollY=s,o.maxScrollY=Math.max(s,null!==(e=o.maxScrollY)&&void 0!==e?e:0),o.maxScrollHeight=Math.max(a,null!==(t=o.maxScrollHeight)&&void 0!==t?t:0),o.lastContentY=u,o.maxContentY=Math.max(u,null!==(r=o.maxContentY)&&void 0!==r?r:0),o.maxContentHeight=Math.max(l,null!==(i=o.maxContentHeight)&&void 0!==i?i:0)}),this._instance=t}return u(e,[{key:"_createPageViewData",value:function(){var e;return{pathname:null!==(e=null==R?void 0:R.location.pathname)&&void 0!==e?e:""}}},{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?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,n=e.lastScrollY,r=e.maxScrollY,i=e.maxContentHeight,o=e.lastContentY,s=e.maxContentY;return t=Math.ceil(t),n=Math.ceil(n),r=Math.ceil(r),i=Math.ceil(i),o=Math.ceil(o),s=Math.ceil(s),{$prev_pageview_last_scroll:n,$prev_pageview_last_scroll_percentage:t<=1?1:ry(n/t,0,1),$prev_pageview_max_scroll:r,$prev_pageview_max_scroll_percentage:t<=1?1:ry(r/t,0,1),$prev_pageview_last_content:o,$prev_pageview_last_content_percentage:i<=1?1:ry(o/i,0,1),$prev_pageview_max_content:s,$prev_pageview_max_content_percentage:i<=1?1:ry(s/i,0,1)}}},{key:"startMeasuringScrollPosition",value:function(){null==R||R.addEventListener("scroll",this._updateScrollData,!0),null==R||R.addEventListener("scrollend",this._updateScrollData,!0),null==R||R.addEventListener("resize",this._updateScrollData)}},{key:"stopMeasuringScrollPosition",value:function(){null==R||R.removeEventListener("scroll",this._updateScrollData),null==R||R.removeEventListener("scrollend",this._updateScrollData),null==R||R.removeEventListener("resize",this._updateScrollData)}},{key:"_scrollElement",value:function(){if(!this._instance.config.scroll_root_selector)return null==R?void 0:R.document.documentElement;var e,t=h(b(this._instance.config.scroll_root_selector)?this._instance.config.scroll_root_selector:[this._instance.config.scroll_root_selector]);try{for(t.s();!(e=t.n()).done;){var n=e.value,r=null==R?void 0:R.document.querySelector(n);if(r)return r}}catch(e){t.e(e)}finally{t.f()}}},{key:"_scrollHeight",value:function(){var e=this._scrollElement();return e?Math.max(0,e.scrollHeight-e.clientHeight):0}},{key:"_scrollY",value:function(){if(this._instance.config.scroll_root_selector){var e=this._scrollElement();return e&&e.scrollTop||0}return R&&(R.scrollY||R.pageYOffset||R.document.documentElement.scrollTop)||0}},{key:"_contentHeight",value:function(){var e=this._scrollElement();return(null==e?void 0:e.scrollHeight)||0}},{key:"_contentY",value:function(){var e=this._scrollElement(),t=(null==e?void 0:e.clientHeight)||0;return this._scrollY()+t}}]),e}();function ry(e,t,n){return Math.max(t,Math.min(e,n))}var rb={icontains:function(e){return!!R&&R.location.href.toLowerCase().indexOf(e.toLowerCase())>-1},regex:function(e){var t;return!!R&&(t=R.location.href,!!function(e){try{new RegExp(e)}catch(e){return!1}return!0}(e)&&new RegExp(e).test(t))},exact:function(e){return(null==R?void 0:R.location.href)===e}},rw=function(){function e(t){s(this,e),this.instance=t}return u(e,[{key:"getSurveys",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.instance.get_property(eN);if(r&&!n)return e(r);this.instance._send_request({url:this.instance.requestRouter.endpointFor("api","/api/surveys/?token=".concat(this.instance.config.token)),method:"GET",transport:"XHR",callback:function(n){if(200!==n.statusCode||!n.json)return e([]);var r,i=n.json.surveys||[];return null===(r=t.instance.persistence)||void 0===r||r.register(l({},eN,i)),e(i)}})}},{key:"getActiveMatchingSurveys",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.getSurveys(function(n){return e(n.filter(function(e){return!(!e.start_date||e.end_date)}).filter(function(e){if(!e.conditions)return!0;var t,n,r,i,o=null===(t=e.conditions)||void 0===t||!t.url||rb[null!==(n=null===(r=e.conditions)||void 0===r?void 0:r.urlMatchType)&&void 0!==n?n:"icontains"](e.conditions.url),s=null===(i=e.conditions)||void 0===i||!i.selector||(null==L?void 0:L.querySelector(e.conditions.selector));return o&&s}).filter(function(e){if(!e.linked_flag_key&&!e.targeting_flag_key)return!0;var n=!e.linked_flag_key||t.instance.featureFlags.isFeatureEnabled(e.linked_flag_key),r=!e.targeting_flag_key||t.instance.featureFlags.isFeatureEnabled(e.targeting_flag_key);return n&&r}))},n)}}]),e}(),rk=function(){function e(){var t=this;s(this,e),l(this,"limits",{}),l(this,"checkForLimiting",function(e){var n=e.text;if(n&&n.length)try{(JSON.parse(n).quota_limited||[]).forEach(function(e){U.info("[RateLimiter] ".concat(e||"events"," is quota limited.")),t.limits[e]=(new Date).getTime()+6e4})}catch(e){return void U.warn('[RateLimiter] could not rate limit - continuing. Error: "'.concat(null==e?void 0:e.message,'"'),{text:n})}})}return u(e,[{key:"isRateLimited",value:function(e){var t=this.limits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}]),e}(),rS=function(){return i({initialPathName:(null==$?void 0:$.pathname)||"",referringDomain:ne.referringDomain()},ne.campaignParams())},rE=function(){function e(t,n,r){var i=this;s(this,e),l(this,"_onSessionIdCallback",function(e){var t=i._getStoredProps();if(!t||t.sessionId!==e){var n={sessionId:e,props:i._sessionSourceParamGenerator()};i._persistence.register(l({},eU,n))}}),this._sessionIdManager=t,this._persistence=n,this._sessionSourceParamGenerator=r||rS,this._sessionIdManager.onSessionId(this._onSessionIdCallback)}return u(e,[{key:"_getStoredProps",value:function(){return this._persistence.props[eU]}},{key:"getSessionProps",value:function(){var e,t=null===(e=this._getStoredProps())||void 0===e?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}(),rF=["ahrefsbot","ahrefssiteaudit","applebot","baiduspider","bingbot","bingpreview","bot.htm","bot.php","crawler","duckduckbot","facebookexternal","facebookcatalog","gptbot","http://yandex.com/bots","hubspot","ia_archiver","linkedinbot","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","semrushbot","sitebulb","slurp","turnitin","twitterbot","vercelbot","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"],rP=function(e,t){if(!e)return!1;var n=e.toLowerCase();return rF.concat(t||[]).some(function(e){var t=e.toLowerCase();return n.includes?n.includes(t):-1!==n.indexOf(t)})},rT={},rx=function(){},rR="posthog",rC=!ro&&-1===(null==H?void 0:H.indexOf("MSIE"))&&-1===(null==H?void 0:H.indexOf("Mozilla")),rI=function(){var e,t,n;return{api_host:"https://app.posthog.com",api_transport:"XHR",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:!!E(n=null==(t=null==L?void 0:L.location)?void 0:t.hostname)&&"herokuapp.com"!==n.split(".").slice(-2).join("."),persistence:"localStorage+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==R||null===(e=R.location)||void 0===e?void 0:e.protocol),ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_blacklist:[],property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_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,feature_flag_request_timeout_ms:3e3,on_request_error:function(e){var t="Bad HTTP status: "+e.statusCode+" "+e.text;U.error(t)},get_device_id:function(e){return e},_onCapture:rx,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800}},rO=function(){function e(){s(this,e),l(this,"__forceAllowLocalhost",!1)}return u(e,[{key:"_forceAllowLocalhost",get:function(){return this.__forceAllowLocalhost},set:function(e){U.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}]),e}(),rA=function(){function e(){var t=this;s(this,e),l(this,"webPerformance",new rO),this.config=rI(),this.decideEndpointWasHit=!1,this.SentryIntegration=r_,this.segmentIntegration=function(){var e;return Promise&&Promise.resolve||U.warn("This browser does not have Promise support, and can not use the segment integration"),e=function(e,n){e.event.userId||e.event.anonymousId===t.get_distinct_id()||t.reset(),e.event.userId&&e.event.userId!==t.get_distinct_id()&&(t.register({distinct_id:e.event.userId}),t.reloadFeatureFlags());var r=t._calculate_event_properties(n,e.event.properties);return e.event.properties=Object.assign({},r,e.event.properties),e},{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(t){return e(t,t.event.event)},page:function(t){return e(t,"$pageview")},identify:function(t){return e(t,"$identify")},screen:function(t){return e(t,"$screen")}}},this.__captureHooks=[],this.__request_queue=[],this.__loaded=!1,this.__autocapture=void 0,this.analyticsDefaultEndpoint="/e/",this.elementsChainAsString=!1,this.featureFlags=new eZ(this),this.toolbar=new nC(this),this.pageViewManager=new rm(this),this.surveys=new rw(this),this.rateLimiter=new rk,this.requestRouter=new rv(this),this.people={set:function(e,n,r){var i=E(e)?l({},e,n):e;t.setPersonProperties(i),null==r||r({})},set_once:function(e,n,r){var i=E(e)?l({},e,n):e;t.setPersonProperties(void 0,i),null==r||r({})}}}return u(e,[{key:"init",value:function(t,n,r){if(r&&r!==rR){var i,o=null!==(i=rT[r])&&void 0!==i?i:new e;return o._init(t,n,r),rT[r]=o,rT[rR][r]=o,o}return this._init(t,n,r)}},{key:"_init",value:function(e){var t,n,r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;if(S(e)||E(e)&&0===e.trim().length)return U.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return U.warn("You have already initialized PostHog! Re-initializing is a no-op"),this;if(this.__loaded=!0,this.config={},this._triggered_notifs=[],o.request_headers=o.request_headers||o.xhr_headers,this.set_config(Y({},rI(),o,{name:s,token:e})),this.compression=o.disable_compression?void 0:eG.Base64,this.persistence=new nn(this.config),this.sessionPersistence="sessionStorage"===this.config.persistence?this.persistence:new nn(i(i({},this.config),{},{persistence:"sessionStorage"})),this._requestQueue=new nI(function(e){return r._send_request(e)}),this._retryQueue=new rh(this),this.__captureHooks=[],this.__request_queue=[],this.sessionManager=new rg(this.config,this.persistence),this.sessionPropsManager=new rE(this.sessionManager,this.persistence),this.sessionRecording=new nP(this),this.sessionRecording.startRecordingIfEnabled(),this.config.disable_scroll_properties||this.pageViewManager.startMeasuringScrollPosition(),this.__autocapture=this.config.autocapture,eY._setIsAutocaptureEnabled(this),eY._isAutocaptureEnabled&&(this.__autocapture=this.config.autocapture,eY.enabledForProject(this.config.token,100,100)?eY.isBrowserSupported()?eY.init(this):(this.__autocapture=!1,U.info("Disabling Automatic Event Collection because this browser is not supported")):(this.__autocapture=!1,U.info("Not in active bucket: disabling Automatic Event Collection."))),g.DEBUG=g.DEBUG||this.config.debug,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"))),void 0!==(null===(t=o.bootstrap)||void 0===t?void 0:t.distinctID)){var a,u,l=this.config.get_device_id(e7()),c=null!==(a=o.bootstrap)&&void 0!==a&&a.isIdentifiedID?l:o.bootstrap.distinctID;this.persistence.set_user_state(null!==(u=o.bootstrap)&&void 0!==u&&u.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:o.bootstrap.distinctID,$device_id:c})}if(this._hasBootstrappedFeatureFlags()){var d,f,p=Object.keys((null===(d=o.bootstrap)||void 0===d?void 0:d.featureFlags)||{}).filter(function(e){var t,n;return!(null===(t=o.bootstrap)||void 0===t||null===(n=t.featureFlags)||void 0===n||!n[e])}).reduce(function(e,t){var n,r;return e[t]=(null===(n=o.bootstrap)||void 0===n||null===(r=n.featureFlags)||void 0===r?void 0:r[t])||!1,e},{}),h=Object.keys((null===(f=o.bootstrap)||void 0===f?void 0:f.featureFlagPayloads)||{}).filter(function(e){return p[e]}).reduce(function(e,t){var n,r,i,s;return null!==(n=o.bootstrap)&&void 0!==n&&null!==(r=n.featureFlagPayloads)&&void 0!==r&&r[t]&&(e[t]=null===(i=o.bootstrap)||void 0===i||null===(s=i.featureFlagPayloads)||void 0===s?void 0:s[t]),e},{});this.featureFlags.receivedFeatureFlags({featureFlags:p,featureFlagPayloads:h})}if(!this.get_distinct_id()){var v=this.config.get_device_id(e7());this.register_once({distinct_id:v,$device_id:v},""),this.persistence.set_user_state("anonymous")}return null==R||null===(n=R.addEventListener)||void 0===n||n.call(R,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),this.toolbar.maybeLoadToolbar(),o.segment?o.segment.register(this.segmentIntegration()).then(function(){r._loaded()}):this._loaded(),this}},{key:"_afterDecideResponse",value:function(e){var t;this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=Q(e.supportedCompression,eG.GZipJS)?eG.GZipJS:Q(e.supportedCompression,eG.Base64)?eG.Base64:void 0),null!==(t=e.analytics)&&void 0!==t&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),e.elementsChainAsString&&(this.elementsChainAsString=e.elementsChainAsString)}},{key:"_loaded",value:function(){var e=this,t=this.config.advanced_disable_decide;t||this.featureFlags.setReloadingPaused(!0);try{this.config.loaded(this)}catch(e){U.critical("`loaded` function failed",e)}this._start_queue_if_opted_in(),this.config.capture_pageview&&setTimeout(function(){L&&e.capture("$pageview",{title:L.title},{send_instantly:!0})},1),t||(new nT(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)||void 0===e||e.enable())}},{key:"_dom_loaded",value:function(){var e=this;this.has_opted_out_capturing()||z(this.__request_queue,function(t){return e._send_retriable_request(t)}),this.__request_queue=[],this._start_queue_if_opted_in()}},{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)||void 0===e||e.unload(),null===(t=this._retryQueue)||void 0===t||t.unload()):this.config.capture_pageview&&this.config.capture_pageleave&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_send_request",value:function(e){var t,n,r=this;this.__loaded&&(rC?this.__request_queue.push(e):this.rateLimiter.isRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=ra(e.url,{ip:this.config.ip?1:0}),e.headers=this.config.request_headers,e.compression="best-available"===e.compression?this.compression:e.compression,t=i(i({},e),{},{callback:function(t){var n,i,o;r.rateLimiter.checkForLimiting(t),t.statusCode>=400&&(null===(i=(o=r.config).on_request_error)||void 0===i||i.call(o,t)),null===(n=e.callback)||void 0===n||n.call(e,t)}}),(n=i({},t)).timeout=n.timeout||6e4,n.url=ra(n.url,{_:(new Date).getTime().toString(),ver:g.LIB_VERSION,compression:n.compression}),"sendBeacon"===n.transport&&null!=M&&M.sendBeacon?rd(n):"fetch"===n.transport&&D?rc(n):q||!L?rl(n):rf(n)))}},{key:"_send_retriable_request",value:function(e){this._retryQueue?this._retryQueue.retriableRequest(e):this._send_request(e)}},{key:"_execute_array",value:function(e){var t,n=this,r=[],i=[],o=[];z(e,function(e){e&&(b(t=e[0])?o.push(e):w(e)?e.call(n):b(e)&&"alias"===t?r.push(e):b(e)&&-1!==t.indexOf("capture")&&w(n[t])?o.push(e):i.push(e))});var s=function(e,t){z(e,function(e){if(b(e[0])){var n=t;G(e,function(e){n=n[e[0]].apply(n,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};s(r,this),s(i,this),s(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var e,t;return(null===(e=this.config.bootstrap)||void 0===e?void 0:e.featureFlags)&&Object.keys(null===(t=this.config.bootstrap)||void 0===t?void 0:t.featureFlags).length>0||!1}},{key:"push",value:function(e){this._execute_array([e])}},{key:"capture",value:function(e,t,n){var r;if(!this.__loaded||!this.sessionPersistence||!this._requestQueue)return U.uninitializedWarning("posthog.capture");if(!nk(this)){if(!S(e)&&E(e)){if(!H||this.config.opt_out_useragent_filter||!rP(H,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,u,l={uuid:e7(),event:e,properties:this._calculate_event_properties(e,t||{})};"$identify"===e&&(l.$set=null==n?void 0:n.$set,l.$set_once=null==n?void 0:n.$set_once),(o=l,s=null!=n&&n._noTruncate?null:this.config.properties_string_max_length,a=function(e){return E(e)&&!F(s)?e.slice(0,s):e},u=new Set,l=function e(t,n){var r;return t!==Object(t)?a?a(t,n):t:u.has(t)?void 0:(u.add(t),b(t)?(r=[],z(t,function(t){r.push(e(t))})):(r={},G(t,function(t,n){u.has(t)||(r[n]=e(t,n))})),r)}(o)).timestamp=(null==n?void 0:n.timestamp)||new Date,S(null==n?void 0:n.timestamp)||(l.properties.$event_time_override_provided=!0,l.properties.$event_time_override_system_time=new Date);var c=i(i({},l.properties.$set),l.$set);(function(e){if(k(e)){for(var t in e)if(m.call(e,t))return!1;return!0}return!1})(c)||this.setPersonPropertiesForFlags(c),U.info("send",l);var d={method:"POST",url:null!==(r=null==n?void 0:n._url)&&void 0!==r?r:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:l,compression:"best-available",batchKey:null==n?void 0:n._batchKey};return!this.config.request_batching||n&&(null==n||!n._batchKey)||null!=n&&n.send_instantly?this._send_retriable_request(d):this._requestQueue.enqueue(d),this._invokeCaptureHooks(e,l),l}}else U.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),G(this.__captureHooks,function(t){return t(e)})}},{key:"_calculate_event_properties",value:function(e,t){if(!this.persistence||!this.sessionPersistence)return t;var n=this.persistence.remove_event_timer(e),r=i({},t);if(r.token=this.config.token,"$snapshot"===e){var o=i(i({},this.persistence.properties()),this.sessionPersistence.properties());return r.distinct_id=o.distinct_id,r}var s=ne.properties();if(this.sessionManager){var a=this.sessionManager.checkAndGetSessionAndWindowId(),u=a.sessionId,l=a.windowId;r.$session_id=u,r.$window_id=l}if(this.requestRouter.region===nX.CUSTOM&&(r.$lib_custom_api_host=this.config.api_host),this.sessionPropsManager&&this.config.__preview_send_client_session_params&&("$pageview"===e||"$pageleave"===e||"$autocapture"===e)){var c=this.sessionPropsManager.getSessionProps();r=Y(r,c)}if(!this.config.disable_scroll_properties){var f={};"$pageview"===e?f=this.pageViewManager.doPageView():"$pageleave"===e&&(f=this.pageViewManager.doPageLeave()),r=Y(r,f)}if("$pageview"===e&&L&&(r.title=L.title),"$performance_event"===e){var p=this.persistence.properties();return r.distinct_id=p.distinct_id,r.$current_url=s.$current_url,r}if(!S(n)){var h=(new Date).getTime()-n;r.$duration=parseFloat((h/1e3).toFixed(3))}(H&&this.config.opt_out_useragent_filter&&(r.$browser_type=rP(H,this.config.custom_blocked_useragents)?"bot":"browser"),r=Y({},ne.properties(),this.persistence.properties(),this.sessionPersistence.properties(),r),b(this.config.property_denylist)&&b(this.config.property_blacklist))?G([].concat(d(this.config.property_blacklist),d(this.config.property_denylist)),function(e){delete r[e]}):U.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var g=this.config.sanitize_properties;return g&&(r=g(r,e)),r}},{key:"register",value:function(e,t){var n;null===(n=this.persistence)||void 0===n||n.register(e,t)}},{key:"register_once",value:function(e,t,n){var r;null===(r=this.persistence)||void 0===r||r.register_once(e,t,n)}},{key:"register_for_session",value:function(e){var t;null===(t=this.sessionPersistence)||void 0===t||t.register(e)}},{key:"unregister",value:function(e){var t;null===(t=this.persistence)||void 0===t||t.unregister(e)}},{key:"unregister_for_session",value:function(e){var t;null===(t=this.sessionPersistence)||void 0===t||t.unregister(e)}},{key:"_register_single",value:function(e,t){this.register(l({},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,n;return null!==(t=null===(n=this.sessionManager)||void 0===n?void 0:n.onSessionId(e))&&void 0!==t?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,n){if(!this.__loaded||!this.persistence)return U.uninitializedWarning("posthog.identify");if(T(e)&&(e=e.toString(),U.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),e){if(["distinct_id","distinctid"].includes(e.toLowerCase()))U.critical('The string "'.concat(e,'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'));else{var r=this.get_distinct_id();this.register({$user_id:e}),this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:r},""),e!==r&&e!==this.get_property(eP)&&(this.unregister(eP),this.register({distinct_id:e}));var i="anonymous"===this.persistence.get_user_state();e!==r&&i?(this.persistence.set_user_state("identified"),this.setPersonPropertiesForFlags(t||{},!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:r},{$set:t||{},$set_once:n||{}}),this.featureFlags.setAnonymousDistinctId(r)):(t||n)&&this.setPersonProperties(t,n),e!==r&&(this.reloadFeatureFlags(),this.unregister(eH))}}else U.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,n){if(e&&t){var r=this.getGroups();r[e]!==t&&this.resetGroupPropertiesForFlags(e),this.register({$groups:i(i({},r),{},l({},e,t))}),n&&(this.capture("$groupidentify",{$group_type:e,$group_key:t,$group_set:n}),this.setGroupPropertiesForFlags(l({},e,n))),r[e]===t||n||this.reloadFeatureFlags()}else U.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 U.uninitializedWarning("posthog.reset");var t,n,r,i,o=this.get_property("$device_id");null===(t=this.persistence)||void 0===t||t.clear(),null===(n=this.sessionPersistence)||void 0===n||n.clear(),null===(r=this.persistence)||void 0===r||r.set_user_state("anonymous"),null===(i=this.sessionManager)||void 0===i||i.resetSessionId();var s=this.config.get_device_id(e7());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?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)&&void 0!==e?e:""}},{key:"get_session_replay_url",value:function(e){if(!this.sessionManager)return"";var t=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=t.sessionId,r=t.sessionStartTimestamp,i=this.requestRouter.endpointFor("ui","/replay/"+n);if(null!=e&&e.withTimestamp&&r){var o,s=null!==(o=e.timestampLookBack)&&void 0!==o?o:10;if(!r)return i;var a=Math.max(Math.floor(((new Date).getTime()-r)/1e3)-s,0);i+="?t=".concat(a)}return i}},{key:"alias",value:function(e,t){return e===this.get_property(eF)?(U.critical("Attempting to create alias for existing People user - aborting."),-2):(S(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(eP,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(U.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1))}},{key:"set_config",value:function(e){var t,n=i({},this.config);if(k(e)&&(Y(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)||void 0===t||t.update_config(this.config,n),this.sessionPersistence="sessionStorage"===this.config.persistence?this.persistence:new nn(i(i({},this.config),{},{persistence:"sessionStorage"})),ti.is_supported()&&"true"===ti.get("ph_debug")&&(this.config.debug=!0),this.config.debug&&(g.DEBUG=!0),this.sessionRecording&&!S(e.disable_session_recording))){var r=n.disable_session_recording!==e.disable_session_recording,o=!nk(this)&&!e.disable_session_recording&&!this.sessionRecording.started;(r||o)&&(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)||void 0===e||!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?void 0:t.props[e]}},{key:"getSessionProperty",value:function(e){var t;return null===(t=this.sessionPersistence)||void 0===t?void 0:t.props[e]}},{key:"toString",value:function(){var e,t=null!==(e=this.config.name)&&void 0!==e?e:rR;return t!==rR&&(t=rR+"."+t),t}},{key:"_gdpr_init",value:function(){"localStorage"===this.config.opt_out_capturing_persistence_type&&ti.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||tn.get("ph_optout"))&&(tn.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,n,r,i,o;if(e&&e.clear_persistence)r=!0;else{if(!e||!e.enable_persistence)return;r=!1}this.config.disable_persistence||(null===(t=this.persistence)||void 0===t?void 0:t.disabled)===r||null===(i=this.persistence)||void 0===i||i.set_disabled(r),this.config.disable_persistence||(null===(n=this.sessionPersistence)||void 0===n?void 0:n.disabled)===r||null===(o=this.sessionPersistence)||void 0===o||o.set_disabled(r)}},{key:"_gdpr_call_func",value:function(e,t){return t=Y({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||{}),ti.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=Y({enable_persistence:!0},e||{}),this._gdpr_call_func(np,e),this._gdpr_update_persistence(e)}},{key:"opt_out_capturing",value:function(e){var t=Y({clear_persistence:!0},e||{});this._gdpr_call_func(nh,t),this._gdpr_update_persistence(t)}},{key:"has_opted_in_capturing",value:function(e){return this._gdpr_call_func(ng,e)}},{key:"has_opted_out_capturing",value:function(e){return this._gdpr_call_func(nv,e)}},{key:"clear_opt_in_out_capturing",value:function(e){var t=Y({enable_persistence:!0},null!=e?e:{});this._gdpr_call_func(n_,t),this._gdpr_update_persistence(t)}},{key:"debug",value:function(e){!1===e?(null==R||R.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(null==R||R.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}();!function(e,t){for(var n=0;n<t.length;n++)e.prototype[t[n]]=Z(e.prototype[t[n]])}(rA,["identify"]),(rL=rD||(rD={})).Popover="popover",rL.API="api",rL.Widget="widget",(r$=rq||(rq={})).Open="open",r$.MultipleChoice="multiple_choice",r$.SingleChoice="single_choice",r$.Rating="rating",r$.Link="link";var rM,rL,r$,rD,rq,rN,rH=(rN=rT[rR]=new rA,function(){function e(){e.done||(e.done=!0,rC=!1,G(rT,function(e){e._dom_loaded()}))}null!=L&&L.addEventListener&&("complete"===L.readyState?e():L.addEventListener("DOMContentLoaded",e,!1)),R&&en(R,"load",e,!0)}(),rN)},3994:function(e,t,n){"use strict";n.d(t,{zf:function(){return s}});var r=n(1251),i=n(2265),o=(0,i.createContext)({client:r.ZP});function s(e){var t=e.children,n=e.client,s=e.apiKey,a=e.options,u=(0,i.useMemo)(function(){return(n&&s&&console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."),n&&a&&console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."),n)?n:(s&&(r.ZP.__loaded&&console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."),r.ZP.init(s,a)),r.ZP)},[n,s]);return i.createElement(o.Provider,{value:{client:u}},t)}},9646:function(e){e.exports={style:{fontFamily:"'__Inter_d65c78', '__Inter_Fallback_d65c78'",fontStyle:"normal"},className:"__className_d65c78"}},3728:function(e,t,n){"use strict";function r(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function i(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function o(e){let t=null;return()=>(null==t&&(t=e()),t)}n.d(t,{pJ:function(){return ej},lG:function(){return eH},V2:function(){return eB}});let s=o(function(){return i(/^Mac/i)}),a=o(function(){return i(/^iPhone/i)}),u=o(function(){return i(/^iPad/i)||s()&&navigator.maxTouchPoints>1}),l=o(function(){return a()||u()});o(function(){return s()||l()}),o(function(){return r(/AppleWebKit/i)&&!c()});let c=o(function(){return r(/Chrome/i)}),d=o(function(){return r(/Android/i)});o(function(){return r(/Firefox/i)});let f=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},p=e=>e&&"window"in e&&e.window===e?e:f(e).defaultView||window;var h,g,v,_,m,y,b,w,k,S=n(2265);let E=null,F=new Set,P=new Map,T=!1,x=!1,R={Tab:!0,Escape:!0};function C(e,t){for(let n of F)n(e,t)}function I(e){T=!0,e.metaKey||!s()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(E="keyboard",C("keyboard",e))}function O(e){E="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(T=!0,C("pointer",e))}function A(e){(0===e.mozInputSource&&e.isTrusted||(d()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType))&&(T=!0,E="virtual")}function M(e){e.target!==window&&e.target!==document&&(T||x||(E="virtual",C("virtual",e)),T=!1,x=!1)}function L(){T=!1,x=!0}function $(e){if("undefined"==typeof window||P.get(p(e)))return;let t=p(e),n=f(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){T=!0,r.apply(this,arguments)},n.addEventListener("keydown",I,!0),n.addEventListener("keyup",I,!0),n.addEventListener("click",A,!0),t.addEventListener("focus",M,!0),t.addEventListener("blur",L,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",O,!0),n.addEventListener("pointermove",O,!0),n.addEventListener("pointerup",O,!0)):(n.addEventListener("mousedown",O,!0),n.addEventListener("mousemove",O,!0),n.addEventListener("mouseup",O,!0)),t.addEventListener("beforeunload",()=>{D(e)},{once:!0}),P.set(t,{focus:r})}let D=(e,t)=>{let n=p(e),r=f(e);t&&r.removeEventListener("DOMContentLoaded",t),P.has(n)&&(n.HTMLElement.prototype.focus=P.get(n).focus,r.removeEventListener("keydown",I,!0),r.removeEventListener("keyup",I,!0),r.removeEventListener("click",A,!0),n.removeEventListener("focus",M,!0),n.removeEventListener("blur",L,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",O,!0),r.removeEventListener("pointermove",O,!0),r.removeEventListener("pointerup",O,!0)):(r.removeEventListener("mousedown",O,!0),r.removeEventListener("mousemove",O,!0),r.removeEventListener("mouseup",O,!0)),P.delete(n))};function q(){return"pointer"!==E}"undefined"!=typeof document&&function(e){let t;let n=f(e);"loading"!==n.readyState?$(e):(t=()=>{$(e)},n.addEventListener("DOMContentLoaded",t)),()=>D(e,t)}();let N=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),H="undefined"!=typeof document?S.useLayoutEffect:()=>{};class B{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function j(e){let t=(0,S.useRef)({isFocused:!1,observer:null});H(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let n=function(e){let t=(0,S.useRef)(null);return H(()=>{t.current=e},[e]),(0,S.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)},[])}(t=>{null==e||e(t)});return(0,S.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener("focusout",e=>{t.current.isFocused=!1,r.disabled&&n(new B("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let U=!1,W=0;function V(){U=!0,setTimeout(()=>{U=!1},50)}function z(e){"touch"===e.pointerType&&V()}function G(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",z):document.addEventListener("touchend",V),W++,()=>{--W>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",z):document.removeEventListener("touchend",V))}}var Y=Object.defineProperty,Q=(e,t,n)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J=(e,t,n)=>(Q(e,"symbol"!=typeof t?t+"":t,n),n);class K{constructor(){J(this,"current",this.detect()),J(this,"handoffState","pending"),J(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}let X=new K;function Z(e){return X.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function ee(){let e=[],t={addEventListener:(e,n,r,i)=>(e.addEventListener(n,r,i),t.add(()=>e.removeEventListener(n,r,i))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){var n;let r={current:!0};return n=()=>{r.current&&e[0]()},"function"==typeof queueMicrotask?queueMicrotask(n):Promise.resolve().then(n).catch(e=>setTimeout(()=>{throw e})),t.add(()=>{r.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=ee();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function et(){let[e]=(0,S.useState)(ee);return(0,S.useEffect)(()=>()=>e.dispose(),[e]),e}let en=(e,t)=>{X.isServer?(0,S.useEffect)(e,t):(0,S.useLayoutEffect)(e,t)},er=function(e){let t;let n=(t=(0,S.useRef)(e),en(()=>{t.current=e},[e]),t);return S.useCallback((...e)=>n.current(...e),[n])},ei=Symbol();function eo(...e){let t=(0,S.useRef)(e);(0,S.useEffect)(()=>{t.current=e},[e]);let n=er(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)});return e.every(e=>null==e||(null==e?void 0:e[ei]))?void 0:n}var es=n(9079);void 0!==es&&"undefined"!=typeof globalThis&&(null==(w=null==es?void 0:es.env)?void 0:w.NODE_ENV)==="test"&&void 0===Element.prototype.getAnimations&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
`)),[]});var ea=((h=ea||{})[h.None=0]="None",h[h.Closed=1]="Closed",h[h.Enter=2]="Enter",h[h.Leave=4]="Leave",h);let eu=(0,S.createContext)(()=>{});function el(e){let{value:t,children:n}=e;return S.createElement(eu.Provider,{value:t},n)}let ec=(0,S.createContext)(null);ec.displayName="OpenClosedContext";var ed=((g=ed||{})[g.Open=1]="Open",g[g.Closed=2]="Closed",g[g.Closing=4]="Closing",g[g.Opening=8]="Opening",g);function ef({value:e,children:t}){return S.createElement(ec.Provider,{value:e},t)}function ep({children:e}){return S.createElement(ec.Provider,{value:null},e)}function eh(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,eh),r}function eg(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}var ev=((v=ev||{})[v.None=0]="None",v[v.RenderStrategy=1]="RenderStrategy",v[v.Static=2]="Static",v),e_=((_=e_||{})[_.Unmount=0]="Unmount",_[_.Hidden=1]="Hidden",_);function em({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s,mergeRefs:a}){a=null!=a?a:ew;let u=ek(t,e);if(o)return ey(u,n,r,s,a);let l=null!=i?i:0;if(2&l){let{static:e=!1,...t}=u;if(e)return ey(t,n,r,s,a)}if(1&l){let{unmount:e=!0,...t}=u;return eh(e?0:1,{0:()=>null,1:()=>ey({...t,hidden:!0,style:{display:"none"}},n,r,s,a)})}return ey(u,n,r,s,a)}function ey(e,t={},n,r,i){let{as:o=n,children:s,refName:a="ref",...u}=eP(e,["unmount","static"]),l=void 0!==e.ref?{[a]:e.ref}:{},c="function"==typeof s?s(t):s;"className"in u&&u.className&&"function"==typeof u.className&&(u.className=u.className(t)),u["aria-labelledby"]&&u["aria-labelledby"]===u.id&&(u["aria-labelledby"]=void 0);let d={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e)for(let e of(d["data-headlessui-state"]=n.join(" "),n))d[`data-${e}`]=""}if(o===S.Fragment&&(Object.keys(eF(u)).length>0||Object.keys(eF(d)).length>0)){if(!(0,S.isValidElement)(c)||Array.isArray(c)&&c.length>1){if(Object.keys(eF(u)).length>0)throw Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(eF(u)).concat(Object.keys(eF(d))).map(e=>`  - ${e}`).join(`
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>`  - ${e}`).join(`
`)].join(`
`))}else{let e=c.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>eg(t(...e),u.className):eg(t,u.className),r=ek(c.props,eF(eP(u,["ref"])));for(let e in d)e in r&&delete d[e];return(0,S.cloneElement)(c,Object.assign({},r,d,l,{ref:i(c.ref,l.ref)},n?{className:n}:{}))}}return(0,S.createElement)(o,Object.assign({},eP(u,["ref"]),o!==S.Fragment&&l,o!==S.Fragment&&d),c)}function eb(){let e=(0,S.useRef)([]),t=(0,S.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]);return(...n)=>{if(!n.every(e=>null==e))return e.current=n,t}}function ew(...e){return e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function ek(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...r){for(let i of n[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;i(t,...r)}}});return t}function eS(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let e in n)Object.assign(t,{[e](...t){for(let r of n[e])null==r||r(...t)}});return t}function eE(e){var t;return Object.assign((0,S.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function eF(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function eP(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}let eT=null!=(k=S.startTransition)?k:function(e){e()};var ex=((m=ex||{}).Space=" ",m.Enter="Enter",m.Escape="Escape",m.Backspace="Backspace",m.Delete="Delete",m.ArrowLeft="ArrowLeft",m.ArrowUp="ArrowUp",m.ArrowRight="ArrowRight",m.ArrowDown="ArrowDown",m.Home="Home",m.End="End",m.PageUp="PageUp",m.PageDown="PageDown",m.Tab="Tab",m),eR=((y=eR||{})[y.Open=0]="Open",y[y.Closed=1]="Closed",y),eC=((b=eC||{})[b.ToggleDisclosure=0]="ToggleDisclosure",b[b.CloseDisclosure=1]="CloseDisclosure",b[b.SetButtonId=2]="SetButtonId",b[b.SetPanelId=3]="SetPanelId",b[b.SetButtonElement=4]="SetButtonElement",b[b.SetPanelElement=5]="SetPanelElement",b);let eI={0:e=>({...e,disclosureState:eh(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId},4:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},5:(e,t)=>e.panelElement===t.element?e:{...e,panelElement:t.element}},eO=(0,S.createContext)(null);function eA(e){let t=(0,S.useContext)(eO);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Disclosure /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eA),t}return t}eO.displayName="DisclosureContext";let eM=(0,S.createContext)(null);eM.displayName="DisclosureAPIContext";let eL=(0,S.createContext)(null);function e$(e,t){return eh(t.type,eI,e,t)}eL.displayName="DisclosurePanelContext";let eD=S.Fragment,eq=ev.RenderStrategy|ev.Static,eN=eE(function(e,t){let{defaultOpen:n=!1,...r}=e,i=(0,S.useRef)(null),o=eo(t,function(e,t=!0){return Object.assign(e,{[ei]:t})}(e=>{i.current=e},void 0===e.as||e.as===S.Fragment)),s=(0,S.useReducer)(e$,{disclosureState:n?0:1,buttonElement:null,panelElement:null,buttonId:null,panelId:null}),[{disclosureState:a,buttonId:u},l]=s,c=er(e=>{l({type:1});let t=Z(i);if(!t||!u)return;let n=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(u):t.getElementById(u);null==n||n.focus()}),d=(0,S.useMemo)(()=>({close:c}),[c]),f=(0,S.useMemo)(()=>({open:0===a,close:c}),[a,c]);return S.createElement(eO.Provider,{value:s},S.createElement(eM.Provider,{value:d},S.createElement(el,{value:c},S.createElement(ef,{value:eh(a,{0:ed.Open,1:ed.Closed})},em({ourProps:{ref:o},theirProps:r,slot:f,defaultTag:eD,name:"Disclosure"})))))}),eH=eE(function(e,t){var n;let r=(0,S.useId)(),{id:i="headlessui-disclosure-button-".concat(r),disabled:o=!1,autoFocus:s=!1,...a}=e,[u,l]=eA("Disclosure.Button"),c=(0,S.useContext)(eL),d=null!==c&&c===u.panelId,h=eo((0,S.useRef)(null),t,er(e=>{if(!d)return l({type:4,element:e})})),g=eb();(0,S.useEffect)(()=>{if(!d)return l({type:2,buttonId:i}),()=>{l({type:2,buttonId:null})}},[i,l,d]);let v=er(e=>{var t;if(d){if(1===u.disclosureState)return;switch(e.key){case ex.Space:case ex.Enter:e.preventDefault(),e.stopPropagation(),l({type:0}),null==(t=u.buttonElement)||t.focus()}}else switch(e.key){case ex.Space:case ex.Enter:e.preventDefault(),e.stopPropagation(),l({type:0})}}),_=er(e=>{e.key===ex.Space&&e.preventDefault()}),m=er(e=>{var t;(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r})(e.currentTarget)||o||(d?(l({type:0}),null==(t=u.buttonElement)||t.focus()):l({type:0}))}),{isFocusVisible:y,focusProps:b}=function(e={}){var t,n;let{autoFocus:r=!1,isTextInput:i,within:o}=e,s=(0,S.useRef)({isFocused:!1,isFocusVisible:r||q()}),[a,u]=(0,S.useState)(!1),[l,c]=(0,S.useState)(()=>s.current.isFocused&&s.current.isFocusVisible),d=(0,S.useCallback)(()=>c(s.current.isFocused&&s.current.isFocusVisible),[]),h=(0,S.useCallback)(e=>{s.current.isFocused=e,u(e),d()},[d]);t=e=>{s.current.isFocusVisible=e,d()},n={isTextInput:i},$(),(0,S.useEffect)(()=>{let e=(e,r)=>{(function(e,t,n){var r;let i="undefined"!=typeof window?p(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?p(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s="undefined"!=typeof window?p(null==n?void 0:n.target).HTMLElement:HTMLElement,a="undefined"!=typeof window?p(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof i&&!N.has(null==n?void 0:null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof o||(null==n?void 0:n.target)instanceof s&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof a&&!R[n.key])})(!!(null==n?void 0:n.isTextInput),e,r)&&t(q())};return F.add(e),()=>{F.delete(e)}},[]);let{focusProps:g}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,o=(0,S.useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),s=j(o),a=(0,S.useCallback)(e=>{let t=f(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),i&&i(!0),s(e))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:!t&&(r||i)?o:void 0}}}({isDisabled:o,onFocusChange:h}),{focusWithinProps:v}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=(0,S.useRef)({isFocusWithin:!1}),s=(0,S.useCallback)(e=>{o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(e),i&&i(!1))},[n,i,o]),a=j(s),u=(0,S.useCallback)(e=>{o.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),i&&i(!0),o.current.isFocusWithin=!0,a(e))},[r,i,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:s}}}({isDisabled:!o,onFocusWithinChange:h});return{isFocused:a,isFocusVisible:l,focusProps:o?v:g}}({autoFocus:s}),{isHovered:w,hoverProps:k}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=(0,S.useState)(!1),a=(0,S.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,S.useEffect)(G,[]);let{hoverProps:u,triggerHoverEnd:l}=(0,S.useMemo)(()=>{let e=(e,r)=>{if(a.pointerType=r,i||"touch"===r||a.isHovered||!e.currentTarget.contains(e.target))return;a.isHovered=!0;let o=e.currentTarget;a.target=o,t&&t({type:"hoverstart",target:o,pointerType:r}),n&&n(!0),s(!0)},o=(e,t)=>{if(a.pointerType="",a.target=null,"touch"===t||!a.isHovered)return;a.isHovered=!1;let i=e.currentTarget;r&&r({type:"hoverend",target:i,pointerType:t}),n&&n(!1),s(!1)},u={};return"undefined"!=typeof PointerEvent?(u.onPointerEnter=t=>{U&&"mouse"===t.pointerType||e(t,t.pointerType)},u.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,e.pointerType)}):(u.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},u.onMouseEnter=t=>{a.ignoreEmulatedMouseEvents||U||e(t,"mouse"),a.ignoreEmulatedMouseEvents=!1},u.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,"mouse")}),{hoverProps:u,triggerHoverEnd:o}},[t,n,r,i,a]);return(0,S.useEffect)(()=>{i&&l({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:u,isHovered:o}}({isDisabled:o}),{pressed:E,pressProps:P}=function({disabled:e=!1}={}){let t=(0,S.useRef)(null),[n,r]=(0,S.useState)(!1),i=et(),o=er(()=>{t.current=null,r(!1),i.dispose()}),s=er(e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=Z(e.currentTarget);i.addEventListener(n,"pointerup",o,!1),i.addEventListener(n,"pointermove",e=>{if(t.current){var n,i;let o,s;r((o=e.width/2,s=e.height/2,n={top:e.clientY-s,right:e.clientX+o,bottom:e.clientY+s,left:e.clientX-o},i=t.current.getBoundingClientRect(),!(!n||!i||n.right<i.left||n.left>i.right||n.bottom<i.top||n.top>i.bottom)))}},!1),i.addEventListener(n,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}({disabled:o}),T=(0,S.useMemo)(()=>({open:0===u.disclosureState,hover:w,active:E,disabled:o,focus:y,autofocus:s}),[u,w,E,y,o,s]),x=(n=u.buttonElement,(0,S.useMemo)(()=>{var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";if("string"==typeof r&&"button"===r.toLowerCase()||(null==n?void 0:n.tagName)==="BUTTON"&&!n.hasAttribute("type"))return"button"},[e.type,e.as,n]));return em({mergeRefs:g,ourProps:d?eS({ref:h,type:x,disabled:o||void 0,autoFocus:s,onKeyDown:v,onClick:m},b,k,P):eS({ref:h,id:i,type:x,"aria-expanded":0===u.disclosureState,"aria-controls":u.panelElement?u.panelId:void 0,disabled:o||void 0,autoFocus:s,onKeyDown:v,onKeyUp:_,onClick:m},b,k,P),theirProps:a,slot:T,defaultTag:"button",name:"Disclosure.Button"})}),eB=eE(function(e,t){let n=(0,S.useId)(),{id:r="headlessui-disclosure-panel-".concat(n),transition:i=!1,...o}=e,[s,a]=eA("Disclosure.Panel"),{close:u}=function e(t){let n=(0,S.useContext)(eM);if(null===n){let n=Error("<".concat(t," /> is missing a parent <Disclosure /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(n,e),n}return n}("Disclosure.Panel"),l=eb(),[c,d]=(0,S.useState)(null),f=eo(t,er(e=>{eT(()=>a({type:5,element:e}))}),d);(0,S.useEffect)(()=>(a({type:3,panelId:r}),()=>{a({type:3,panelId:null})}),[r,a]);let p=(0,S.useContext)(ec),[h,g]=function(e,t,n,r){let[i,o]=(0,S.useState)(n),{hasFlag:s,addFlag:a,removeFlag:u}=function(e=0){let[t,n]=(0,S.useState)(e),r=(0,S.useCallback)(e=>n(e),[t]),i=(0,S.useCallback)(e=>n(t=>t|e),[t]),o=(0,S.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:(0,S.useCallback)(e=>n(t=>t&~e),[n]),toggleFlag:(0,S.useCallback)(e=>n(t=>t^e),[n])}}(e&&i?3:0),l=(0,S.useRef)(!1),c=(0,S.useRef)(!1);return en(()=>{var i;if(e){if(n&&o(!0),!t){n&&a(3);return}return null==(i=null==r?void 0:r.start)||i.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:i}){let o=ee();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(function(e,t){var n,r;let i=ee();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let s=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===s.length?t():Promise.allSettled(s.map(e=>e.finished)).then(()=>{o||t()}),i.dispose}(e,r))})}),o.dispose}(t,{inFlight:l,prepare(){c.current?c.current=!1:c.current=l.current,l.current=!0,c.current||(n?(a(3),u(4)):(a(4),u(2)))},run(){c.current?n?(u(3),a(4)):(u(4),a(3)):n?u(1):a(1)},done(){var e;c.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(l.current=!1,u(7),n||o(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})}},[e,n,t,et()]),e?[i,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}(i,c,null!==p?(p&ed.Open)===ed.Open:0===s.disclosureState),v=(0,S.useMemo)(()=>({open:0===s.disclosureState,close:u}),[s.disclosureState,u]),_={ref:f,id:r,...function(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}(g)};return S.createElement(ep,null,S.createElement(eL.Provider,{value:s.panelId},em({mergeRefs:l,ourProps:_,theirProps:o,slot:v,defaultTag:"div",features:eq,visible:h,name:"Disclosure.Panel"})))}),ej=Object.assign(eN,{Button:eH,Panel:eB})},7960:function(e,t,n){"use strict";var r=n(2265);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))});t.Z=i},8005:function(e,t,n){"use strict";var r=n(2265);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))});t.Z=i}}]);