posthog-js 1.396.2 → 1.396.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/all-external-dependencies.js +1 -1
  2. package/dist/all-external-dependencies.js.map +1 -1
  3. package/dist/array.full.es5.js +1 -1
  4. package/dist/array.full.js +1 -1
  5. package/dist/array.full.js.map +1 -1
  6. package/dist/array.full.no-external.js +1 -1
  7. package/dist/array.full.no-external.js.map +1 -1
  8. package/dist/array.js +1 -1
  9. package/dist/array.no-external.js +1 -1
  10. package/dist/customizations.full.js +1 -1
  11. package/dist/default-extensions.js +1 -1
  12. package/dist/extension-bundles.js +1 -1
  13. package/dist/lazy-recorder.js +1 -1
  14. package/dist/main.js +1 -1
  15. package/dist/module.full.js +1 -1
  16. package/dist/module.full.js.map +1 -1
  17. package/dist/module.full.no-external.js +1 -1
  18. package/dist/module.full.no-external.js.map +1 -1
  19. package/dist/module.js +1 -1
  20. package/dist/module.no-external.js +1 -1
  21. package/dist/module.slim.js +1 -1
  22. package/dist/module.slim.no-external.js +1 -1
  23. package/dist/posthog-recorder.js +1 -1
  24. package/dist/product-tours.js +1 -1
  25. package/dist/src/entrypoints/web-vitals-with-attribution.d.ts +19 -0
  26. package/dist/src/entrypoints/web-vitals.d.ts +18 -0
  27. package/dist/surveys.js +1 -1
  28. package/dist/web-vitals-with-attribution.js +1 -1
  29. package/dist/web-vitals-with-attribution.js.map +1 -1
  30. package/dist/web-vitals.js +1 -1
  31. package/dist/web-vitals.js.map +1 -1
  32. package/lib/package.json +1 -1
  33. package/lib/src/entrypoints/web-vitals-with-attribution.d.ts +19 -0
  34. package/lib/src/entrypoints/web-vitals-with-attribution.js +3 -0
  35. package/lib/src/entrypoints/web-vitals-with-attribution.js.map +1 -1
  36. package/lib/src/entrypoints/web-vitals.d.ts +18 -0
  37. package/lib/src/entrypoints/web-vitals.js +3 -0
  38. package/lib/src/entrypoints/web-vitals.js.map +1 -1
  39. package/lib/src/utils/array-at-polyfill.d.ts +0 -0
  40. package/lib/src/utils/array-at-polyfill.js +33 -0
  41. package/lib/src/utils/array-at-polyfill.js.map +1 -0
  42. package/lib/tsconfig.tsbuildinfo +1 -1
  43. package/package.json +3 -3
@@ -1,2 +1,2 @@
1
- !function(t){"use strict";var e="undefined"!=typeof window?window:void 0,r="undefined"!=typeof globalThis?globalThis:e;"undefined"==typeof self&&(r.self=r),"undefined"==typeof File&&(r.File=function(){});var n=null==r?void 0:r.navigator,o=null==r?void 0:r.document;null!=r&&r.XMLHttpRequest&&new r.XMLHttpRequest;var i=null==n?void 0:n.userAgent,l=null!=e?e:{};function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;arguments.length>e;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},a.apply(null,arguments)}var u,s,c,h,d,f,p,v,m,g,b,y,w,x,_,k={},T=[],C=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,S=Array.isArray;function A(t,e){for(var r in e)t[r]=e[r];return t}function q(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function M(t,e,r,n,o){var i={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++c:o,__i:-1,__u:0};return null==o&&null!=s.vnode&&s.vnode(i),i}function E(t){return t.children}function L(t,e){this.props=t,this.context=e}function $(t,e){if(null==e)return t.__?$(t.__,t.__i+1):null;for(var r;t.__k.length>e;e++)if(null!=(r=t.__k[e])&&null!=r.__e)return r.__e;return"function"==typeof t.type?$(t):null}function I(t){if(t.__P&&t.__d){var e=t.__v,r=e.__e,n=[],o=[],i=A({},e);i.__v=e.__v+1,s.vnode&&s.vnode(i),B(t.__P,i,e,t.__n,t.__P.namespaceURI,32&e.__u?[r]:null,n,null==r?$(e):r,!!(32&e.__u),o),i.__v=e.__v,i.__.__k[i.__i]=i,U(n,i,o),e.__e=e.__=null,i.__e!=r&&z(i)}}function z(t){if(null!=(t=t.__)&&null!=t.__c)return t.__e=t.__c.base=null,t.__k.some((function(e){if(null!=e&&null!=e.__e)return t.__e=t.__c.base=e.__e})),z(t)}function j(t){(!t.__d&&(t.__d=!0)&&h.push(t)&&!R.__r++||d!=s.debounceRendering)&&((d=s.debounceRendering)||f)(R)}function R(){try{for(var t,e=1;h.length;)h.length>e&&h.sort(p),t=h.shift(),e=h.length,I(t)}finally{h.length=R.__r=0}}function P(t,e,r,n,o,i,l,a,u,s,c){var h,d,f,p,v,m,g,b=n&&n.__k||T,y=e.length;for(u=D(r,e,b,u,y),h=0;y>h;h++)null!=(f=r.__k[h])&&(d=-1!=f.__i&&b[f.__i]||k,f.__i=h,m=B(t,f,d,o,i,l,a,u,s,c),p=f.__e,f.ref&&d.ref!=f.ref&&(d.ref&&Y(d.ref,null,f),c.push(f.ref,f.__c||p,f)),null==v&&null!=p&&(v=p),(g=!!(4&f.__u))||d.__k===f.__k?(u=N(f,u,t,g),g&&d.__e&&(d.__e=null)):"function"==typeof f.type&&void 0!==m?u=m:p&&(u=p.nextSibling),f.__u&=-7);return r.__e=v,u}function D(t,e,r,n,o){var i,l,a,u,s,c=r.length,h=c,d=0;for(t.__k=new Array(o),i=0;o>i;i++)null!=(l=e[i])&&"boolean"!=typeof l&&"function"!=typeof l?("string"==typeof l||"number"==typeof l||"bigint"==typeof l||l.constructor==String?l=t.__k[i]=M(null,l,null,null,null):S(l)?l=t.__k[i]=M(E,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?l=t.__k[i]=M(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):t.__k[i]=l,u=i+d,l.__=t,l.__b=t.__b+1,a=null,-1!=(s=l.__i=Z(l,r,u,h))&&(h--,(a=r[s])&&(a.__u|=2)),null==a||null==a.__v?(-1==s&&(o>c?d--:c>o&&d++),"function"!=typeof l.type&&(l.__u|=4)):s!=u&&(s==u-1?d--:s==u+1?d++:(s>u?d--:d++,l.__u|=4))):t.__k[i]=null;if(h)for(i=0;c>i;i++)null!=(a=r[i])&&0==(2&a.__u)&&(a.__e==n&&(n=$(a)),K(a,a));return n}function N(t,e,r,n){var o,i;if("function"==typeof t.type){for(o=t.__k,i=0;o&&o.length>i;i++)o[i]&&(o[i].__=t,e=N(o[i],e,r,n));return e}t.__e!=e&&(n&&(e&&t.type&&!e.parentNode&&(e=$(t)),r.insertBefore(t.__e,e||null)),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function Z(t,e,r,n){var o,i,l,a=t.key,u=t.type,s=e[r],c=null!=s&&0==(2&s.__u);if(null===s&&null==a||c&&a==s.key&&u==s.type)return r;if(n>(c?1:0))for(o=r-1,i=r+1;o>=0||e.length>i;)if(null!=(s=e[l=0>o?i++:o--])&&0==(2&s.__u)&&a==s.key&&u==s.type)return l;return-1}function O(t,e,r){"-"==e[0]?t.setProperty(e,null==r?"":r):t[e]=null==r?"":"number"!=typeof r||C.test(e)?r:r+"px"}function F(t,e,r,n,o){var i,l;t:if("style"==e)if("string"==typeof r)t.style.cssText=r;else{if("string"==typeof n&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||O(t.style,e,"");if(r)for(e in r)n&&r[e]==n[e]||O(t.style,e,r[e])}else if("o"==e[0]&&"n"==e[1])i=e!=(e=e.replace(b,"$1")),l=e.toLowerCase(),e=l in t||"onFocusOut"==e||"onFocusIn"==e?l.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=r,r?n?r[g]=n[g]:(r[g]=y,t.addEventListener(e,i?x:w,i)):t.removeEventListener(e,i?x:w,i);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==r?"":r;break t}catch(t){}"function"==typeof r||(null==r||!1===r&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==r?"":r))}}function H(t){return function(e){if(this.l){var r=this.l[e.type+t];if(null==e[m])e[m]=y++;else if(r[g]>e[m])return;return r(s.event?s.event(e):e)}}}function B(t,e,r,n,o,i,l,a,u,c){var h,d,f,p,v,m,g,b,y,w,$,x,_,k,C,M=e.type;if(void 0!==e.constructor)return null;128&r.__u&&(u=!!(32&r.__u),i=[a=e.__e=r.__e]),(h=s.__b)&&h(e);t:if("function"==typeof M)try{if(b=e.props,y=M.prototype&&M.prototype.render,w=(h=M.contextType)&&n[h.__c],$=h?w?w.props.value:h.__:n,r.__c?g=(d=e.__c=r.__c).__=d.__E:(y?e.__c=d=new M(b,$):(e.__c=d=new L(b,$),d.constructor=M,d.render=G),w&&w.sub(d),d.state||(d.state={}),d.__n=n,f=d.__d=!0,d.__h=[],d._sb=[]),y&&null==d.__s&&(d.__s=d.state),y&&null!=M.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=A({},d.__s)),A(d.__s,M.getDerivedStateFromProps(b,d.__s))),p=d.props,v=d.state,d.__v=e,f)y&&null==M.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),y&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(y&&null==M.getDerivedStateFromProps&&b!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(b,$),e.__v==r.__v||!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(b,d.__s,$)){e.__v!=r.__v&&(d.props=b,d.state=d.__s,d.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.some((function(t){t&&(t.__=e)})),T.push.apply(d.__h,d._sb),d._sb=[],d.__h.length&&l.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(b,d.__s,$),y&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,v,m)}))}if(d.context=$,d.props=b,d.__P=t,d.__e=!1,x=s.__r,_=0,y)d.state=d.__s,d.__d=!1,x&&x(e),h=d.render(d.props,d.state,d.context),T.push.apply(d.__h,d._sb),d._sb=[];else do{d.__d=!1,x&&x(e),h=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&25>++_);d.state=d.__s,null!=d.getChildContext&&(n=A(A({},n),d.getChildContext())),y&&!f&&null!=d.getSnapshotBeforeUpdate&&(m=d.getSnapshotBeforeUpdate(p,v)),k=null!=h&&h.type===E&&null==h.key?Q(h.props.children):h,a=P(t,S(k)?k:[k],e,r,n,o,i,l,a,u,c),d.base=e.__e,e.__u&=-161,d.__h.length&&l.push(d),g&&(d.__E=d.__=null)}catch(t){if(e.__v=null,u||null!=i)if(t.then){for(e.__u|=u?160:128;a&&8==a.nodeType&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,e.__e=a}else{for(C=i.length;C--;)q(i[C]);V(e)}else e.__e=r.__e,e.__k=r.__k,t.then||V(e);s.__e(t,e,r)}else null==i&&e.__v==r.__v?(e.__k=r.__k,e.__e=r.__e):a=e.__e=W(r.__e,e,r,n,o,i,l,u,c);return(h=s.diffed)&&h(e),128&e.__u?void 0:a}function V(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(V))}function U(t,e,r){for(var n=0;r.length>n;n++)Y(r[n],r[++n],r[++n]);s.__c&&s.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){s.__e(t,e.__v)}}))}function Q(t){return"object"!=typeof t||null==t||t.__b>0?t:S(t)?t.map(Q):void 0!==t.constructor?null:A({},t)}function W(t,e,r,n,o,i,l,a,c){var h,d,f,p,v,m,g,b=r.props||k,y=e.props,w=e.type;if("svg"==w?o="http://www.w3.org/2000/svg":"math"==w?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(h=0;i.length>h;h++)if((v=i[h])&&"setAttribute"in v==!!w&&(w?v.localName==w:3==v.nodeType)){t=v,i[h]=null;break}if(null==t){if(null==w)return document.createTextNode(y);t=document.createElementNS(o,w,y.is&&y),a&&(s.__m&&s.__m(e,i),a=!1),i=null}if(null==w)b===y||a&&t.data==y||(t.data=y);else{if(i="textarea"==w&&null!=y.defaultValue?null:i&&u.call(t.childNodes),!a&&null!=i)for(b={},h=0;t.attributes.length>h;h++)b[(v=t.attributes[h]).name]=v.value;for(h in b)v=b[h],"dangerouslySetInnerHTML"==h?f=v:"children"==h||h in y||"value"==h&&"defaultValue"in y||"checked"==h&&"defaultChecked"in y||F(t,h,null,v,o);for(h in y)v=y[h],"children"==h?p=v:"dangerouslySetInnerHTML"==h?d=v:"value"==h?m=v:"checked"==h?g=v:a&&"function"!=typeof v||b[h]===v||F(t,h,v,b[h],o);if(d)a||f&&(d.__html==f.__html||d.__html==t.innerHTML)||(t.innerHTML=d.__html),e.__k=[];else if(f&&(t.innerHTML=""),P("template"==e.type?t.content:t,S(p)?p:[p],e,r,n,"foreignObject"==w?"http://www.w3.org/1999/xhtml":o,i,l,i?i[0]:r.__k&&$(r,0),a,c),null!=i)for(h=i.length;h--;)q(i[h]);a&&"textarea"!=w||(h="value","progress"==w&&null==m?t.removeAttribute("value"):null!=m&&(m!==t[h]||"progress"==w&&!m||"option"==w&&m!=b[h])&&F(t,h,m,b[h],o),h="checked",null!=g&&g!=t[h]&&F(t,h,g,b[h],o))}return t}function Y(t,e,r){try{if("function"==typeof t){var n="function"==typeof t.__u;n&&t.__u(),n&&null==e||(t.__u=t(e))}else t.current=e}catch(t){s.__e(t,r)}}function K(t,e,r){var n,o;if(s.unmount&&s.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||Y(n,null,e)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){s.__e(t,e)}n.base=n.__P=null}if(n=t.__k)for(o=0;n.length>o;o++)n[o]&&K(n[o],e,r||"function"!=typeof t.type);r||q(t.__e),t.__c=t.__=t.__e=void 0}function G(t,e,r){return this.constructor(t,r)}function X(t,e,r){var n,o,i;e==document&&(e=document.documentElement),s.__&&s.__(t,e),n=e.__k,o=[],i=[],B(e,t=e.__k=function(t,e,r){var n,o,i,l={};for(i in e)"key"==i?n=e[i]:"ref"==i?o=e[i]:l[i]=e[i];if(arguments.length>2&&(l.children=arguments.length>3?u.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===l[i]&&(l[i]=t.defaultProps[i]);return M(t,l,n,o,null)}(E,null,[t]),n||k,k,e.namespaceURI,n?null:e.firstChild?u.call(e.childNodes):null,o,n?n.__e:e.firstChild,!1,i),U(o,t,i)}u=T.slice,s={__e(t,e,r,n){for(var o,i,l;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,n||{}),l=o.__d),l)return o.__E=o}catch(e){t=e}throw t}},c=0,L.prototype.setState=function(t,e){var r;r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=A({},this.state),"function"==typeof t&&(t=t(A({},r),this.props)),t&&A(r,t),null!=t&&this.__v&&(e&&this._sb.push(e),j(this))},L.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),j(this))},L.prototype.render=E,h=[],f="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,p=function(t,e){return t.__v.__b-e.__v.__b},R.__r=0,v=Math.random().toString(8),m="__d"+v,g="__a"+v,b=/(PointerCapture)$|Capture$/i,y=0,w=H(!1),x=H(!0),_=0;var J="$product_tours_activated",tt={backgroundColor:"#ffffff",textColor:"#1d1f27",buttonColor:"#1d1f27",borderRadius:8,buttonBorderRadius:6,borderColor:"#e5e7eb",fontFamily:"system-ui",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",showOverlay:!0,whiteLabel:!1,dismissOnClickOutside:!0,zIndex:2147483646},et="product tour shown",rt="$product_tour_id",nt="$product_tour_name",ot="$product_tour_iteration",it="$product_tour_step_id",lt="$product_tour_step_order",at="$product_tour_button_action",ut="$product_tour_button_link",st="$product_tour_button_tour_id",ct="$product_tour_step_selector",ht="events",dt="cancelEvents",ft="tab",pt="top_left",vt="top_right",mt="top_center",gt="middle_left",bt="middle_right",yt="middle_center",wt="left",xt="center",_t="right",kt="widget",Tt="$survey_id",Ct="$survey_questions",St="$product_tour_id",{entries:At,setPrototypeOf:qt,isFrozen:Mt,getPrototypeOf:Et,getOwnPropertyDescriptor:Lt}=Object,{freeze:It,seal:zt,create:jt}=Object,{apply:Rt,construct:Pt}="undefined"!=typeof Reflect&&Reflect;It||(It=function(t){return t}),zt||(zt=function(t){return t}),Rt||(Rt=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;r>o;o++)n[o-2]=arguments[o];return t.apply(e,n)}),Pt||(Pt=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;e>n;n++)r[n-1]=arguments[n];return new t(...r)});var Dt,$t=Xt([].forEach),Nt=Xt([].lastIndexOf),Zt=Xt([].pop),Ot=Xt([].push),Ft=Xt([].splice),Ht=Xt("".toLowerCase),Bt=Xt("".toString),Vt=Xt("".match),Ut=Xt("".replace),Qt=Xt("".indexOf),Wt=Xt("".trim),Yt=Xt({}.hasOwnProperty),Kt=Xt(/t/.test),Gt=(Dt=TypeError,function(){for(var t=arguments.length,e=new Array(t),r=0;t>r;r++)e[r]=arguments[r];return Pt(Dt,e)});function Xt(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;r>o;o++)n[o-1]=arguments[o];return Rt(t,e,n)}}function Jt(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ht;qt&&qt(t,null);for(var n=e.length;n--;){var o=e[n];if("string"==typeof o){var i=r(o);i!==o&&(Mt(e)||(e[n]=i),o=i)}t[o]=!0}return t}function te(t){for(var e=0;t.length>e;e++)Yt(t,e)||(t[e]=null);return t}function ee(t){var e=jt(null);for(var[r,n]of At(t))Yt(t,r)&&(e[r]=Array.isArray(n)?te(n):n&&"object"==typeof n&&n.constructor===Object?ee(n):n);return e}function re(t,e){for(;null!==t;){var r=Lt(t,e);if(r){if(r.get)return Xt(r.get);if("function"==typeof r.value)return Xt(r.value)}t=Et(t)}return function(){return null}}var ne=It(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),oe=It(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ie=It(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),le=It(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ae=It(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ue=It(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),se=It(["#text"]),ce=It(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),he=It(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),de=It(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),fe=It(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pe=zt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ve=zt(/<%[\w\W]*|[\w\W]*%>/gm),me=zt(/\$\{[\w\W]*/gm),ge=zt(/^data-[\-\w.\u00B7-\uFFFF]+$/),be=zt(/^aria-[\-\w]+$/),ye=zt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),we=zt(/^(?:\w+script|data):/i),xe=zt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_e=zt(/^html$/i),ke=zt(/^[a-z][.\w]*(-[.\w]+)+$/i),Te=Object.freeze({__proto__:null,ARIA_ATTR:be,ATTR_WHITESPACE:xe,CUSTOM_ELEMENT:ke,DATA_ATTR:ge,DOCTYPE_NAME:_e,ERB_EXPR:ve,IS_ALLOWED_URI:ye,IS_SCRIPT_OR_DATA:we,MUSTACHE_EXPR:pe,TMPLIT_EXPR:me}),Ce=function(){return"undefined"==typeof window?null:window},Se=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ce(),r=e=>t(e);if(r.version="3.3.2",r.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return r.isSupported=!1,r;var n,{document:o}=e,i=o,l=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:u,Node:s,Element:c,NodeFilter:h,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:v}=e,m=c.prototype,g=re(m,"cloneNode"),b=re(m,"remove"),y=re(m,"nextSibling"),w=re(m,"childNodes"),x=re(m,"parentNode");if("function"==typeof u){var _=o.createElement("template");_.content&&_.content.ownerDocument&&(o=_.content.ownerDocument)}var k="",{implementation:T,createNodeIterator:C,createDocumentFragment:S,getElementsByTagName:A}=o,{importNode:q}=i,M={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof At&&"function"==typeof x&&T&&void 0!==T.createHTMLDocument;var{MUSTACHE_EXPR:E,ERB_EXPR:L,TMPLIT_EXPR:I,DATA_ATTR:z,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:R,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:D}=Te,{IS_ALLOWED_URI:N}=Te,Z=null,O=Jt({},[...ne,...oe,...ie,...ae,...se]),F=null,H=Jt({},[...ce,...he,...de,...fe]),B=Object.seal(jt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),V=null,U=null,Q=Object.seal(jt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),W=!0,Y=!0,K=!1,G=!0,X=!1,J=!0,tt=!1,et=!1,rt=!1,nt=!1,ot=!1,it=!1,lt=!0,at=!1,ut=!0,st=!1,ct={},ht=null,dt=Jt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ft=null,pt=Jt({},["audio","video","img","source","image","track"]),vt=null,mt=Jt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gt="http://www.w3.org/1998/Math/MathML",bt="http://www.w3.org/2000/svg",yt="http://www.w3.org/1999/xhtml",wt=yt,xt=!1,_t=null,kt=Jt({},[gt,bt,yt],Bt),Tt=Jt({},["mi","mo","mn","ms","mtext"]),Ct=Jt({},["annotation-xml"]),St=Jt({},["title","style","font","a","script"]),qt=null,Mt=["application/xhtml+xml","text/html"],Et=null,Lt=null,zt=o.createElement("form"),Rt=function(t){return t instanceof RegExp||t instanceof Function},Pt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Lt||Lt!==t){if(t&&"object"==typeof t||(t={}),t=ee(t),qt=-1===Mt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Et="application/xhtml+xml"===qt?Bt:Ht,Z=Yt(t,"ALLOWED_TAGS")?Jt({},t.ALLOWED_TAGS,Et):O,F=Yt(t,"ALLOWED_ATTR")?Jt({},t.ALLOWED_ATTR,Et):H,_t=Yt(t,"ALLOWED_NAMESPACES")?Jt({},t.ALLOWED_NAMESPACES,Bt):kt,vt=Yt(t,"ADD_URI_SAFE_ATTR")?Jt(ee(mt),t.ADD_URI_SAFE_ATTR,Et):mt,ft=Yt(t,"ADD_DATA_URI_TAGS")?Jt(ee(pt),t.ADD_DATA_URI_TAGS,Et):pt,ht=Yt(t,"FORBID_CONTENTS")?Jt({},t.FORBID_CONTENTS,Et):dt,V=Yt(t,"FORBID_TAGS")?Jt({},t.FORBID_TAGS,Et):ee({}),U=Yt(t,"FORBID_ATTR")?Jt({},t.FORBID_ATTR,Et):ee({}),ct=!!Yt(t,"USE_PROFILES")&&t.USE_PROFILES,W=!1!==t.ALLOW_ARIA_ATTR,Y=!1!==t.ALLOW_DATA_ATTR,K=t.ALLOW_UNKNOWN_PROTOCOLS||!1,G=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,X=t.SAFE_FOR_TEMPLATES||!1,J=!1!==t.SAFE_FOR_XML,tt=t.WHOLE_DOCUMENT||!1,nt=t.RETURN_DOM||!1,ot=t.RETURN_DOM_FRAGMENT||!1,it=t.RETURN_TRUSTED_TYPE||!1,rt=t.FORCE_BODY||!1,lt=!1!==t.SANITIZE_DOM,at=t.SANITIZE_NAMED_PROPS||!1,ut=!1!==t.KEEP_CONTENT,st=t.IN_PLACE||!1,N=t.ALLOWED_URI_REGEXP||ye,wt=t.NAMESPACE||yt,Tt=t.MATHML_TEXT_INTEGRATION_POINTS||Tt,Ct=t.HTML_INTEGRATION_POINTS||Ct,B=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&Rt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(B.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Rt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(B.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(B.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),X&&(Y=!1),ot&&(nt=!0),ct&&(Z=Jt({},se),F=jt(null),!0===ct.html&&(Jt(Z,ne),Jt(F,ce)),!0===ct.svg&&(Jt(Z,oe),Jt(F,he),Jt(F,fe)),!0===ct.svgFilters&&(Jt(Z,ie),Jt(F,he),Jt(F,fe)),!0===ct.mathMl&&(Jt(Z,ae),Jt(F,de),Jt(F,fe))),Yt(t,"ADD_TAGS")||(Q.tagCheck=null),Yt(t,"ADD_ATTR")||(Q.attributeCheck=null),t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?Q.tagCheck=t.ADD_TAGS:(Z===O&&(Z=ee(Z)),Jt(Z,t.ADD_TAGS,Et))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?Q.attributeCheck=t.ADD_ATTR:(F===H&&(F=ee(F)),Jt(F,t.ADD_ATTR,Et))),t.ADD_URI_SAFE_ATTR&&Jt(vt,t.ADD_URI_SAFE_ATTR,Et),t.FORBID_CONTENTS&&(ht===dt&&(ht=ee(ht)),Jt(ht,t.FORBID_CONTENTS,Et)),t.ADD_FORBID_CONTENTS&&(ht===dt&&(ht=ee(ht)),Jt(ht,t.ADD_FORBID_CONTENTS,Et)),ut&&(Z["#text"]=!0),tt&&Jt(Z,["html","head","body"]),Z.table&&(Jt(Z,["tbody"]),delete V.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw Gt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw Gt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=(n=t.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===n&&(n=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;var r=null,n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(r=e.getAttribute(n));var o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(v,l)),null!==n&&"string"==typeof k&&(k=n.createHTML(""));It&&It(t),Lt=t}},Dt=Jt({},[...oe,...ie,...le]),Xt=Jt({},[...ae,...ue]),te=function(t){Ot(r.removed,{element:t});try{x(t).removeChild(t)}catch(e){b(t)}},pe=function(t,e){try{Ot(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){Ot(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(nt||ot)try{te(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ve=function(t){var e=null,r=null;if(rt)t="<remove></remove>"+t;else{var i=Vt(t,/^[\r\n\t ]+/);r=i&&i[0]}"application/xhtml+xml"===qt&&wt===yt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var l=n?n.createHTML(t):t;if(wt===yt)try{e=(new p).parseFromString(l,qt)}catch(t){}if(!e||!e.documentElement){e=T.createDocument(wt,"template",null);try{e.documentElement.innerHTML=xt?k:l}catch(t){}}var a=e.body||e.documentElement;return t&&r&&a.insertBefore(o.createTextNode(r),a.childNodes[0]||null),wt===yt?A.call(e,tt?"html":"body")[0]:tt?e.documentElement:a},me=function(t){return C.call(t.ownerDocument||t,t,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},ge=function(t){return t instanceof f&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof d)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},be=function(t){return"function"==typeof s&&t instanceof s};function we(t,e,n){$t(t,(t=>{t.call(r,e,n,Lt)}))}var xe=function(t){var e=null;if(we(M.beforeSanitizeElements,t,null),ge(t))return te(t),!0;var n=Et(t.nodeName);if(we(M.uponSanitizeElement,t,{tagName:n,allowedTags:Z}),J&&t.hasChildNodes()&&!be(t.firstElementChild)&&Kt(/<[/\w!]/g,t.innerHTML)&&Kt(/<[/\w!]/g,t.textContent))return te(t),!0;if(7===t.nodeType)return te(t),!0;if(J&&8===t.nodeType&&Kt(/<[/\w]/g,t.data))return te(t),!0;if(!(Q.tagCheck instanceof Function&&Q.tagCheck(n))&&(!Z[n]||V[n])){if(!V[n]&&Se(n)){if(B.tagNameCheck instanceof RegExp&&Kt(B.tagNameCheck,n))return!1;if(B.tagNameCheck instanceof Function&&B.tagNameCheck(n))return!1}if(ut&&!ht[n]){var o=x(t)||t.parentNode,i=w(t)||t.childNodes;if(i&&o)for(var l=i.length-1;l>=0;--l){var a=g(i[l],!0);a.__removalCount=(t.__removalCount||0)+1,o.insertBefore(a,y(t))}}return te(t),!0}return t instanceof c&&!function(t){var e=x(t);e&&e.tagName||(e={namespaceURI:wt,tagName:"template"});var r=Ht(t.tagName),n=Ht(e.tagName);return!!_t[t.namespaceURI]&&(t.namespaceURI===bt?e.namespaceURI===yt?"svg"===r:e.namespaceURI===gt?"svg"===r&&("annotation-xml"===n||Tt[n]):Boolean(Dt[r]):t.namespaceURI===gt?e.namespaceURI===yt?"math"===r:e.namespaceURI===bt?"math"===r&&Ct[n]:Boolean(Xt[r]):t.namespaceURI===yt?!(e.namespaceURI===bt&&!Ct[n])&&!(e.namespaceURI===gt&&!Tt[n])&&!Xt[r]&&(St[r]||!Dt[r]):!("application/xhtml+xml"!==qt||!_t[t.namespaceURI]))}(t)?(te(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!Kt(/<\/no(script|embed|frames)/i,t.innerHTML)?(X&&3===t.nodeType&&(e=t.textContent,$t([E,L,I],(t=>{e=Ut(e,t," ")})),t.textContent!==e&&(Ot(r.removed,{element:t.cloneNode()}),t.textContent=e)),we(M.afterSanitizeElements,t,null),!1):(te(t),!0)},ke=function(t,e,r){if(U[e])return!1;if(lt&&("id"===e||"name"===e)&&(r in o||r in zt))return!1;if(Y&&!U[e]&&Kt(z,e));else if(W&&Kt(j,e));else if(Q.attributeCheck instanceof Function&&Q.attributeCheck(e,t));else if(!F[e]||U[e]){if(!(Se(t)&&(B.tagNameCheck instanceof RegExp&&Kt(B.tagNameCheck,t)||B.tagNameCheck instanceof Function&&B.tagNameCheck(t))&&(B.attributeNameCheck instanceof RegExp&&Kt(B.attributeNameCheck,e)||B.attributeNameCheck instanceof Function&&B.attributeNameCheck(e,t))||"is"===e&&B.allowCustomizedBuiltInElements&&(B.tagNameCheck instanceof RegExp&&Kt(B.tagNameCheck,r)||B.tagNameCheck instanceof Function&&B.tagNameCheck(r))))return!1}else if(vt[e]);else if(Kt(N,Ut(r,P,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==Qt(r,"data:")||!ft[t])if(K&&!Kt(R,Ut(r,P,"")));else if(r)return!1;return!0},Se=function(t){return"annotation-xml"!==t&&Vt(t,D)},Ae=function(t){we(M.beforeSanitizeAttributes,t,null);var{attributes:e}=t;if(e&&!ge(t)){for(var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0},i=e.length,l=function(){var l=e[i],{name:a,namespaceURI:u,value:s}=l,c=Et(a),h=s,d="value"===a?h:Wt(h);if(o.attrName=c,o.attrValue=d,o.keepAttr=!0,o.forceKeepAttr=void 0,we(M.uponSanitizeAttribute,t,o),d=o.attrValue,!at||"id"!==c&&"name"!==c||(pe(a,t),d="user-content-"+d),J&&Kt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d))return pe(a,t),0;if("attributename"===c&&Vt(d,"href"))return pe(a,t),0;if(o.forceKeepAttr)return 0;if(!o.keepAttr)return pe(a,t),0;if(!G&&Kt(/\/>/i,d))return pe(a,t),0;X&&$t([E,L,I],(t=>{d=Ut(d,t," ")}));var f=Et(t.nodeName);if(!ke(f,c,d))return pe(a,t),0;if(n&&"object"==typeof v&&"function"==typeof v.getAttributeType)if(u);else switch(v.getAttributeType(f,c)){case"TrustedHTML":d=n.createHTML(d);break;case"TrustedScriptURL":d=n.createScriptURL(d)}if(d!==h)try{u?t.setAttributeNS(u,a,d):t.setAttribute(a,d),ge(t)?te(t):Zt(r.removed)}catch(e){pe(a,t)}};i--;)l();we(M.afterSanitizeAttributes,t,null)}},qe=function t(e){var r=null,n=me(e);for(we(M.beforeSanitizeShadowDOM,e,null);r=n.nextNode();)we(M.uponSanitizeShadowNode,r,null),xe(r),Ae(r),r.content instanceof a&&t(r.content);we(M.afterSanitizeShadowDOM,e,null)};return r.sanitize=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,l=null,u=null,c=null;if((xt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!be(t)){if("function"!=typeof t.toString)throw Gt("toString is not a function");if("string"!=typeof(t=t.toString()))throw Gt("dirty is not a string, aborting")}if(!r.isSupported)return t;if(et||Pt(e),r.removed=[],"string"==typeof t&&(st=!1),st){if(t.nodeName){var h=Et(t.nodeName);if(!Z[h]||V[h])throw Gt("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof s)1===(l=(o=ve("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===l.nodeName||"HTML"===l.nodeName?o=l:o.appendChild(l);else{if(!nt&&!X&&!tt&&-1===t.indexOf("<"))return n&&it?n.createHTML(t):t;if(!(o=ve(t)))return nt?null:it?k:""}o&&rt&&te(o.firstChild);for(var d=me(st?t:o);u=d.nextNode();)xe(u),Ae(u),u.content instanceof a&&qe(u.content);if(st)return t;if(nt){if(ot)for(c=S.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(F.shadowroot||F.shadowrootmode)&&(c=q.call(i,c,!0)),c}var f=tt?o.outerHTML:o.innerHTML;return tt&&Z["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&Kt(_e,o.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+f),X&&$t([E,L,I],(t=>{f=Ut(f,t," ")})),n&&it?n.createHTML(f):f},r.setConfig=function(){Pt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),et=!0},r.clearConfig=function(){Lt=null,et=!1},r.isValidAttribute=function(t,e,r){Lt||Pt({});var n=Et(t),o=Et(e);return ke(n,o,r)},r.addHook=function(t,e){"function"==typeof e&&Ot(M[t],e)},r.removeHook=function(t,e){if(void 0!==e){var r=Nt(M[t],e);return-1===r?void 0:Ft(M[t],r,1)[0]}return Zt(M[t])},r.removeHooks=function(t){M[t]=[]},r.removeAllHooks=function(){M={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}();function Ae(t,e){return t.match(/\\?.|^$/g).reduce(((t,r)=>('"'!==r||t.sQuote?"'"!==r||t.quote?t.quote||t.sQuote||r!==e?t.a[t.a.length-1]+=r:t.a.push(""):(t.sQuote^=1,t.a[t.a.length-1]+=r):(t.quote^=1,t.a[t.a.length-1]+=r),t)),{a:[""]}).a}function qe(t,e){var r=t.parentNode;return r&&r.host&&11===r.nodeType?r.host:r===e?null:r}var Me,Ee,Le=function(t){return t.TopLeft="top_left",t.TopCenter="top_center",t.TopRight="top_right",t.MiddleLeft="middle_left",t.MiddleCenter="middle_center",t.MiddleRight="middle_right",t.Left="left",t.Right="right",t.Center="center",t}({}),Ie=function(t){return t.Regex="regex",t.NotRegex="not_regex",t.Exact="exact",t.IsNot="is_not",t.Icontains="icontains",t.NotIcontains="not_icontains",t}({}),ze={}.toString,je=Array.isArray||function(t){return"[object Array]"===ze.call(t)},Re=t=>"function"==typeof t,Pe=t=>void 0===t,De=t=>"[object String]"==ze.call(t),$e=t=>null===t,Ne=t=>Pe(t)||$e(t),Ze=(t,e,r)=>{function n(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),l=1;o>l;l++)i[l-1]=arguments[l];e((()=>{(0,r[n])(t,...i)}))}var o={debug(){for(var t=arguments.length,e=new Array(t),r=0;t>r;r++)e[r]=arguments[r];n("debug",...e)},info(){for(var t=arguments.length,e=new Array(t),r=0;t>r;r++)e[r]=arguments[r];n("log",...e)},warn(){for(var t=arguments.length,e=new Array(t),r=0;t>r;r++)e[r]=arguments[r];n("warn",...e)},error(){for(var t=arguments.length,e=new Array(t),r=0;t>r;r++)e[r]=arguments[r];n("error",...e)},critical(){for(var e=arguments.length,n=new Array(e),o=0;e>o;o++)n[o]=arguments[o];r.error(t,...n)},createLogger:n=>Ze(t+" "+n,e,r)};return o},Oe="Mobile",Fe="Android",He="Tablet",Be=Fe+" "+He,Ve="iPad",Ue="Apple Watch",Qe="BlackBerry",We="Nintendo",Ye="PlayStation",Ke="Xbox",Ge="Windows Phone",Xe="Nokia",Je="Ouya",tr="Generic",er=tr+" "+Oe.toLowerCase(),rr=tr+" "+He.toLowerCase(),nr=new RegExp(Ke,"i"),or=new RegExp(Ye+" \\w+","i"),ir=new RegExp(We+" \\w+","i"),lr=new RegExp(Qe+"|PlayBook|BB10","i"),ar=e,ur=(void 0===Me&&(Me=t=>t()),Ze("[Element Inference]",Me,(void 0===Ee&&(Ee=console),{log:Ee.log.bind(Ee),warn:Ee.warn.bind(Ee),error:Ee.error.bind(Ee),debug:Ee.debug.bind(Ee)})));function sr(t,e){try{var r=e.get(t);if(!Pe(r))return r;if(t.checkVisibility){var n=t.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0});return e.set(t,n),n}var o=ar.getComputedStyle(t);if("none"===o.display||"hidden"===o.visibility||0===parseFloat(o.opacity))return e.set(t,!1),!1;for(var i=t.parentElement;i;){var l=e.get(i);if(Pe(l)){var a=ar.getComputedStyle(i),u="none"!==a.display&&"hidden"!==a.visibility;if(e.set(i,u),!u)return!1;i=i.parentElement}else{if(!l)return!1;i=i.parentElement}}var s=t.getBoundingClientRect(),c=s.width>0||s.height>0||t.getClientRects().length>0;return e.set(t,c),c}catch(t){return!0}}function cr(t,e){var r=function(t){var e,r=null==(e=t.innerText)?void 0:e.trim();return!r||r.length>250?null:r}(t);return(null==r?void 0:r.toLowerCase())===e.toLowerCase()}function*hr(t,e,r){var n;try{n=function(t,e,r){return void 0===e&&(e=document),void 0===r&&(r=null),function(t,e,r,n){return void 0===n&&(n=null),t=function(t){function e(){n&&(l.length>0&&/^[~+>]$/.test(l[l.length-1])&&l.push(" "),l.push(n))}var r,n,o,i,l=[],a=[0],u=0,s=/(?:[^\\]|(?:^|[^\\])(?:\\\\)+)$/,c=/^\s+$/,h=[/\s+|\/\*|["'>~+[(]/g,/\s+|\/\*|["'[\]()]/g,/\s+|\/\*|["'[\]()]/g,null,/\*\//g];for(t=t.trim();;){if(n="",(o=h[a[a.length-1]]).lastIndex=u,!(r=o.exec(t))){n=t.substr(u),e();break}if(i=u,(u=o.lastIndex)-r[0].length>i&&(n=t.substring(i,u-r[0].length)),3>a[a.length-1]){if(e(),"["===r[0])a.push(1);else if("("===r[0])a.push(2);else if(/^["']$/.test(r[0]))a.push(3),h[3]=new RegExp(r[0],"g");else if("/*"===r[0])a.push(4);else if(/^[\])]$/.test(r[0])&&a.length>0)a.pop();else if(/^(?:\s+|[~+>])$/.test(r[0])&&(l.length>0&&!c.test(l[l.length-1])&&0===a[a.length-1]&&l.push(" "),1===a[a.length-1]&&5===l.length&&"="===l[2].charAt(l[2].length-1)&&(l[4]=" "+l[4]),c.test(r[0])))continue;l.push(r[0])}else l[l.length-1]+=n,s.test(l[l.length-1])&&(4===a[a.length-1]&&(2>l.length||c.test(l[l.length-2])?l.pop():l[l.length-1]=" ",r[0]=""),a.pop()),l[l.length-1]+=r[0]}return l.join("").trim()}(t),r.querySelector(t),document.head.createShadowRoot||document.head.attachShadow?Ae(t,",").reduce(((t,e)=>{var o=Ae(e.replace(/^\s+/g,"").replace(/\s*([>+~]+)\s*/g,"$1")," ").filter((t=>!!t)).map((t=>Ae(t,">"))),i=o.length-1,l=function(t,e,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=[];if(r)n=r;else{var o=function(t){for(var e=0;t.length>e;e++){var r=t[e];n.push(r),r.shadowRoot&&o(r.shadowRoot.querySelectorAll("*"))}};e.shadowRoot&&o(e.shadowRoot.querySelectorAll("*")),o(e.querySelectorAll("*"))}return t?n.filter((e=>e.matches(t))):n}(o[i][o[i].length-1],r,n),a=function(t,e,r){return n=>{for(var o=e,i=n,l=!1;i&&(h=i).nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&h.nodeType!==Node.DOCUMENT_NODE;){var a=!0;if(1===t[o].length)a=i.matches(t[o]);else{var u=[].concat(t[o]).reverse(),s=i;for(var c of u){if(!s||!s.matches(c)){a=!1;break}s=qe(s,r)}}if(a&&0===o){l=!0;break}a&&o--,i=qe(i,r)}var h;return l}}(o,i,r);return t.concat(l.filter(a))}),[]):r.querySelectorAll(t)}(t,0,e,r)}(t)}catch(t){return}for(var o of n){var i=o;e&&!cr(i,e)||sr(i,r)&&(yield i)}}function dr(t,e){var r=0;for(var n of t){if(r===e)return n;r++}return null}function fr(t){try{var e=JSON.parse(t.autoData);if(!je(null==e?void 0:e.textGroups)||!je(null==e?void 0:e.notextGroups))return ur.error("Invalid autoData structure:",e),null;var{text:r,excludeText:n,precision:o=1}=t,i=null!=r&&!n,l=(i?e.textGroups:e.notextGroups).sort(((t,e)=>t.cardinality-e.cardinality));if(0===l.length)return null;for(var a=Math.max(1,Math.ceil((1-o)*l.length)),u=new WeakMap,s=0;a>s;s++){var c=l[s],h=new Map,d=null,f=0;for(var{css:p,offset:v}of c.cssSelectors){var m,g=dr(hr(p,i?r:null,u),v);if(g){var b=(null!==(m=h.get(g))&&void 0!==m?m:0)+1;if(h.set(g,b),b>f&&(f=b,d=g,b>=Math.ceil(c.cssSelectors.length/2)))return d}}if(d)return d}return null}catch(t){return ur.error("Error finding element:",t),null}}var pr=function(t,r){var{debugEnabled:n}=void 0===r?{}:r,o={k(r){if(e&&(l.POSTHOG_DEBUG||n)&&!Pe(e.console)&&e.console){for(var o=("__rrweb_original__"in e.console[r]?e.console[r].__rrweb_original__:e.console[r]),i=arguments.length,a=new Array(i>1?i-1:0),u=1;i>u;u++)a[u-1]=arguments[u];o(t,...a)}},debug(){for(var t=arguments.length,e=new Array(t),r=0;t>r;r++)e[r]=arguments[r];o.k("debug",...e)},info(){for(var t=arguments.length,e=new Array(t),r=0;t>r;r++)e[r]=arguments[r];o.k("log",...e)},warn(){for(var t=arguments.length,e=new Array(t),r=0;t>r;r++)e[r]=arguments[r];o.k("warn",...e)},error(){for(var t=arguments.length,e=new Array(t),r=0;t>r;r++)e[r]=arguments[r];o.k("error",...e)},critical(){for(var e=arguments.length,r=new Array(e),n=0;e>n;n++)r[n]=arguments[n];console.error(t,...r)},uninitializedWarning(t){o.error("You must initialize PostHog before calling "+t)},createLogger:(e,r)=>pr(t+" "+e,r)};return o},vr=pr("[PostHog.js]"),mr=vr.createLogger,gr=mr("[Stylesheet Loader]");function br(t,e,r,n){var{capture:o=!1,passive:i=!0}=null!=n?n:{};null==t||t.addEventListener(e,r,{capture:o,passive:i})}mr("[Surveys]");var yr=function(t,e){if(!function(t){try{new RegExp(t)}catch(t){return!1}return!0}(e))return!1;try{return new RegExp(e).test(t)}catch(t){return!1}},wr={exact:(t,e)=>e.some((e=>t.some((t=>e===t)))),is_not:(t,e)=>e.every((e=>t.every((t=>e!==t)))),regex:(t,e)=>e.some((e=>t.some((t=>yr(e,t))))),not_regex:(t,e)=>e.every((e=>t.every((t=>!yr(e,t))))),icontains:(t,e)=>e.map(xr).some((e=>t.map(xr).some((t=>e.includes(t))))),not_icontains:(t,e)=>e.map(xr).every((e=>t.map(xr).every((t=>!e.includes(t))))),gt:(t,e)=>e.some((e=>{var r=parseFloat(e);return!isNaN(r)&&t.some((t=>r>parseFloat(t)))})),lt:(t,e)=>e.some((e=>{var r=parseFloat(e);return!isNaN(r)&&t.some((t=>r<parseFloat(t)))}))},xr=t=>t.toLowerCase();function _r(t,e){return!t||Object.entries(t).every((t=>{var[r,n]=t,o=null==e?void 0:e[r];if(Pe(o)||$e(o))return!1;var i=[String(o)],l=wr[n.operator];return!!l&&l(n.values,i)}))}Math.trunc||(Math.trunc=function(t){return 0>t?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return(t=>"[object Number]"==ze.call(t)&&t==t)(t)&&isFinite(t)&&Math.floor(t)===t}),e&&!Pe(e.crypto)&&crypto;var kr,Tr,Cr,Sr,Ar=null,qr={N(){if(!$e(Ar))return Ar;var t=!0;if(Pe(e))t=!1;else try{var r="__mplssupport__";qr.q(r,"xyz"),'"xyz"'!==qr.P(r)&&(t=!1),qr.A(r)}catch(e){t=!1}return t||vr.error("localStorage unsupported; falling back to cookie store"),Ar=t,t},D(t){vr.error("localStorage error: "+t)},P(t){try{return null==e?void 0:e.localStorage.getItem(t)}catch(t){qr.D(t)}return null},F(t){try{return JSON.parse(qr.P(t))||{}}catch(t){}return null},q(t,r){try{return null==e||e.localStorage.setItem(t,JSON.stringify(r)),!0}catch(t){qr.D(t)}return!1},A(t){try{null==e||e.localStorage.removeItem(t)}catch(t){qr.D(t)}}},Mr=null,Er={N(){if(!$e(Mr))return Mr;if(Mr=!0,Pe(e))Mr=!1;else try{var t="__support__";Er.q(t,"xyz"),'"xyz"'!==Er.P(t)&&(Mr=!1),Er.A(t)}catch(t){Mr=!1}return Mr},D(t){vr.error("sessionStorage error: ",t)},P(t){try{return null==e?void 0:e.sessionStorage.getItem(t)}catch(t){Er.D(t)}return null},F(t){try{return JSON.parse(Er.P(t))||null}catch(t){}return null},q(t,r){try{return null==e||e.sessionStorage.setItem(t,JSON.stringify(r)),!0}catch(t){Er.D(t)}return!1},A(t){try{null==e||e.sessionStorage.removeItem(t)}catch(t){Er.D(t)}}},Lr=0,Ir=[],zr=s,jr=zr.__b,Rr=zr.__r,Pr=zr.diffed,Dr=zr.__c,$r=zr.unmount,Nr=zr.__;function Zr(t,e){zr.__h&&zr.__h(Tr,t,Lr||e),Lr=0;var r=Tr.__H||(Tr.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function Or(t){return Lr=1,function(t,e,r){var n=Zr(kr++,2);if(n.t=t,!n.__c&&(n.__=[Xr(void 0,e),function(t){var e=n.__N?n.__N[0]:n.__[0],r=n.t(e,t);e!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=Tr,!Tr.__f)){var o=function(t,e,r){if(!n.__c.__H)return!0;var o=n.__c.__H.__.filter((function(t){return t.__c}));if(o.every((function(t){return!t.__N})))return!i||i.call(this,t,e,r);var l=n.__c.props!==t;return o.some((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(l=!0)}})),i&&i.call(this,t,e,r)||l};Tr.__f=!0;var i=Tr.shouldComponentUpdate,l=Tr.componentWillUpdate;Tr.componentWillUpdate=function(t,e,r){if(this.__e){var n=i;i=void 0,o(t,e,r),i=n}l&&l.call(this,t,e,r)},Tr.shouldComponentUpdate=o}return n.__N||n.__}(Xr,t)}function Fr(t,e){var r=Zr(kr++,3);!zr.__s&&Gr(r.__H,e)&&(r.__=t,r.u=e,Tr.__H.__h.push(r))}function Hr(t,e){var r=Zr(kr++,4);!zr.__s&&Gr(r.__H,e)&&(r.__=t,r.u=e,Tr.__h.push(r))}function Br(t){return Lr=5,Vr((function(){return{current:t}}),[])}function Vr(t,e){var r=Zr(kr++,7);return Gr(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function Ur(){for(var t;t=Ir.shift();){var e=t.__H;if(t.__P&&e)try{e.__h.some(Yr),e.__h.some(Kr),e.__h=[]}catch(r){e.__h=[],zr.__e(r,t.__v)}}}zr.__b=function(t){Tr=null,jr&&jr(t)},zr.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Nr&&Nr(t,e)},zr.__r=function(t){Rr&&Rr(t),kr=0;var e=(Tr=t.__c).__H;e&&(Cr===Tr?(e.__h=[],Tr.__h=[],e.__.some((function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0}))):(e.__h.some(Yr),e.__h.some(Kr),e.__h=[],kr=0)),Cr=Tr},zr.diffed=function(t){Pr&&Pr(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==Ir.push(e)&&Sr===zr.requestAnimationFrame||((Sr=zr.requestAnimationFrame)||Wr)(Ur)),e.__H.__.some((function(t){t.u&&(t.__H=t.u),t.u=void 0}))),Cr=Tr=null},zr.__c=function(t,e){e.some((function(t){try{t.__h.some(Yr),t.__h=t.__h.filter((function(t){return!t.__||Kr(t)}))}catch(r){e.some((function(t){t.__h&&(t.__h=[])})),e=[],zr.__e(r,t.__v)}})),Dr&&Dr(t,e)},zr.unmount=function(t){$r&&$r(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.some((function(t){try{Yr(t)}catch(t){e=t}})),r.__H=void 0,e&&zr.__e(e,r.__v))};var Qr="function"==typeof requestAnimationFrame;function Wr(t){var e,r=function(){clearTimeout(n),Qr&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,35);Qr&&(e=requestAnimationFrame(r))}function Yr(t){var e=Tr,r=t.__c;"function"==typeof r&&(t.__c=void 0,r()),Tr=e}function Kr(t){var e=Tr;t.__c=t.__(),Tr=e}function Gr(t,e){return!t||t.length!==e.length||e.some((function(e,r){return e!==t[r]}))}function Xr(t,e){return"function"==typeof e?e(t):e}var Jr="#020617",tn={backgroundColor:"#eeeded"};function en(t){if(t.startsWith("#")){var e=t.replace(/^#/,"");return/^[0-9A-Fa-f]{3}$/.test(e)&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),/^[0-9A-Fa-f]{6}$/.test(e)?"rgb("+parseInt(e.slice(0,2),16)+","+parseInt(e.slice(2,4),16)+","+parseInt(e.slice(4,6),16)+")":"rgb(255, 255, 255)"}return"rgb(255, 255, 255)"}function rn(t){var e;void 0===t&&(t=tn.backgroundColor),"#"===t[0]&&(e=en(t)),t.startsWith("rgb")&&(e=t);var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}[t.toLowerCase()];if(r&&(e=en(r)),!e)return Jr;var n=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);if(n){var o=parseInt(n[1]),i=parseInt(n[2]),l=parseInt(n[3]);return Math.sqrt(o*o*.299+i*i*.587+l*l*.114)>127.5?Jr:"white"}return Jr}!function(t){function e(t){var r,n;return this.getChildContext||(r=new Set,(n={})[e.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(t){this.props.value!=t.value&&r.forEach((function(t){t.__e=!0,j(t)}))},this.sub=function(t){r.add(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){r&&r.delete(t),e&&e.call(t)}}),t.children}e.__c="__cC"+_++,e.__=t,e.Provider=e.__l=(e.Consumer=function(t,e){return t.children(e)}).contextType=e}({isPreviewMode:!1,previewPageIndex:0,onPopupSurveyDismissed(){},isPopup:!0,onPreviewSubmit(){},onPreviewBack(){},surveySubmissionId:"",properties:void 0,surveyLanguage:null});var nn="ph_product_tour_shown_",on="ph_product_tour_completed_",ln="ph_product_tour_dismissed_",an="ph_active_product_tour",un="ph_last_seen_tour_date_",sn=mr("[Product Tours]"),cn=o,hn=e;function dn(t){var e=((t,e,r)=>{var n,o=t.createElement("style");return o.innerText=e,null!=r&&null!=(n=r.config)&&n.prepare_external_dependency_stylesheet&&(o=r.config.prepare_external_dependency_stylesheet(o)),o||(gr.error("prepare_external_dependency_stylesheet returned null"),null)})(cn,':host{--ph-tour-font-family:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI","Roboto",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ph-tour-background-color:#fff;--ph-tour-text-color:#1d1f27;--ph-tour-text-secondary-color:#6b7280;--ph-tour-button-color:#1d1f27;--ph-tour-button-text-color:#fff;--ph-tour-button-secondary-color:transparent;--ph-tour-button-secondary-text-color:#1d1f27;--ph-tour-border-color:#e5e7eb;--ph-tour-border-radius:8px;--ph-tour-button-border-radius:6px;--ph-tour-box-shadow:0 4px 12px rgba(0,0,0,.15);--ph-tour-max-width:320px;--ph-tour-padding:16px;--ph-tour-z-index:2147483646;--ph-tour-overlay-color:rgba(0,0,0,.5);--ph-tour-spotlight-padding:8px;--ph-tour-spotlight-border-radius:4px;--ph-tour-arrow-size:8px}.ph-tour-container *{box-sizing:border-box;font-family:var(--ph-tour-font-family);margin:0;padding:0}.ph-tour-click-overlay{bottom:0;left:0;pointer-events:auto;position:fixed;right:0;top:0;z-index:var(--ph-tour-z-index)}.ph-tour-spotlight{border-radius:var(--ph-tour-spotlight-border-radius);box-shadow:0 0 0 9999px var(--ph-tour-overlay-color)}.ph-tour-modal-overlay,.ph-tour-spotlight{pointer-events:none;position:fixed;z-index:var(--ph-tour-z-index)}.ph-tour-modal-overlay{background:var(--ph-tour-overlay-color);bottom:0;left:0;right:0;top:0}.ph-tour-tooltip{background:var(--ph-tour-background-color);border:1px solid var(--ph-tour-border-color);border-radius:var(--ph-tour-border-radius);max-width:min(var(--ph-tour-max-width),calc(100vw - 16px));min-width:min(280px,calc(100vw - 16px));padding:var(--ph-tour-padding);padding-top:calc(var(--ph-tour-padding) + 8px);pointer-events:auto;position:fixed;z-index:calc(var(--ph-tour-z-index) + 1)}.ph-tour-tooltip,.ph-tour-tooltip--modal{box-shadow:var(--ph-tour-box-shadow)}.ph-tour-arrow{--ph-tour-arrow-offset:0px;border:var(--ph-tour-arrow-size) solid transparent;height:0;position:absolute;width:0}.ph-tour-arrow--top{border-bottom-color:var(--ph-tour-background-color);bottom:100%}.ph-tour-arrow--bottom,.ph-tour-arrow--top{left:calc(50% + var(--ph-tour-arrow-offset));transform:translateX(-50%)}.ph-tour-arrow--bottom{border-top-color:var(--ph-tour-background-color);top:100%}.ph-tour-arrow--left{border-right-color:var(--ph-tour-background-color);right:100%}.ph-tour-arrow--left,.ph-tour-arrow--right{top:calc(50% + var(--ph-tour-arrow-offset));transform:translateY(-50%)}.ph-tour-arrow--right{border-left-color:var(--ph-tour-background-color);left:100%}.ph-tour-content{color:var(--ph-tour-text-color);font-size:14px;line-height:1.5;margin-bottom:16px;padding-right:24px}.ph-tour-content h1,.ph-tour-content h2{font-weight:600;margin-bottom:8px}.ph-tour-content h1{font-size:18px}.ph-tour-content h2{font-size:16px}.ph-tour-content p{margin-bottom:8px}.ph-tour-content p:last-child{margin-bottom:0}.ph-tour-content strong{font-weight:600}.ph-tour-content em{font-style:italic}.ph-tour-content ol,.ph-tour-content ul{margin-bottom:8px;margin-left:20px}.ph-tour-content h3{font-size:14px;font-weight:600;margin-bottom:8px}.ph-tour-content .ph-tour-link,.ph-tour-content a{color:inherit;text-decoration:underline}.ph-tour-content a:hover{opacity:.8}.ph-tour-content code{background:rgba(0,0,0,.06);border-radius:4px;font-size:.875em;padding:2px 6px}.ph-tour-content code,.ph-tour-content pre{font-family:SF Mono,Monaco,Consolas,monospace}.ph-tour-content pre{background:rgba(0,0,0,.04);border-radius:6px;font-size:13px;line-height:1.5;margin-bottom:8px;overflow-x:auto;padding:12px}.ph-tour-content pre code{background:transparent;border-radius:0;font-size:inherit;padding:0}.ph-tour-content code *,.ph-tour-content pre *{font-family:inherit}.ph-tour-content .hljs-comment,.ph-tour-content .hljs-quote{color:#6a737d;font-style:italic}.ph-tour-content .hljs-keyword,.ph-tour-content .hljs-selector-tag{color:#d73a49}.ph-tour-content .hljs-doctag,.ph-tour-content .hljs-regexp,.ph-tour-content .hljs-string{color:#032f62}.ph-tour-content .hljs-literal,.ph-tour-content .hljs-number,.ph-tour-content .hljs-template-variable,.ph-tour-content .hljs-variable{color:#005cc5}.ph-tour-content .hljs-section,.ph-tour-content .hljs-selector-class,.ph-tour-content .hljs-selector-id,.ph-tour-content .hljs-title,.ph-tour-content .hljs-title.function_{color:#6f42c1}.ph-tour-content .hljs-addition,.ph-tour-content .hljs-attr,.ph-tour-content .hljs-attribute,.ph-tour-content .hljs-built_in,.ph-tour-content .hljs-bullet,.ph-tour-content .hljs-name,.ph-tour-content .hljs-symbol{color:#22863a}.ph-tour-content .hljs-deletion,.ph-tour-content .hljs-subst{color:#b31d28}.ph-tour-content .hljs-meta{color:#032f62}.ph-tour-content .hljs-emphasis{font-style:italic}.ph-tour-content .hljs-strong{font-weight:700}.ph-tour-content .ph-tour-image,.ph-tour-content img{border-radius:6px;display:block;height:auto;margin:8px 0;max-width:100%}.ph-tour-content .ph-tour-embed{margin:8px 0}.ph-tour-content .ph-tour-embed-container{background:#000;border-radius:6px;overflow:hidden;padding-bottom:56.25%;position:relative;width:100%}.ph-tour-content .ph-tour-embed-container iframe{border:none;height:100%;left:0;position:absolute;top:0;width:100%}.ph-tour-content blockquote{border-left:3px solid var(--ph-tour-border-color);color:var(--ph-tour-text-secondary-color);font-style:italic;margin:8px 0;padding-left:12px}.ph-tour-footer{align-items:center;display:flex;gap:12px;justify-content:space-between}.ph-tour-progress{color:var(--ph-tour-text-secondary-color);font-size:12px}.ph-tour-buttons{display:flex;gap:8px;margin-left:auto}.ph-tour-button{align-items:center;border:none;border-radius:var(--ph-tour-button-border-radius);cursor:pointer;display:inline-flex;font-size:14px;font-weight:500;justify-content:center;padding:8px 16px;text-decoration:none;transition:opacity .15s ease,transform .1s ease}.ph-tour-button:hover{opacity:.9}.ph-tour-button:active{transform:scale(.98)}.ph-tour-button--primary{background:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}.ph-tour-button--secondary{background:var(--ph-tour-button-secondary-color);border:1px solid var(--ph-tour-border-color);color:var(--ph-tour-button-secondary-text-color)}.ph-tour-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;font-size:18px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}.ph-tour-branding{align-items:center;border-top:1px solid var(--ph-tour-border-color);color:var(--ph-tour-branding-text-color,var(--ph-tour-text-secondary-color));display:flex;font-size:11px;gap:6px;justify-content:center;margin-top:12px;padding-top:12px;text-decoration:none}.ph-tour-branding:hover{color:var(--ph-tour-branding-text-color,var(--ph-tour-text-color))}.ph-tour-branding svg{height:14px;width:auto}.ph-tour-hidden{display:none!important}.ph-tour-survey-step{min-width:min(300px,calc(100vw - 16px))}.ph-tour-survey-question{color:var(--ph-tour-text-color);font-size:15px;font-weight:500;line-height:1.4;margin-bottom:16px;padding-right:24px}.ph-tour-survey-input-container{display:flex;flex-direction:column;gap:12px}.ph-tour-survey-textarea{background:#fff;border:1px solid var(--ph-tour-border-color);border-radius:6px;box-sizing:border-box;color:var(--ph-tour-text-color);font-family:var(--ph-tour-font-family);font-size:14px;min-height:80px;padding:10px 12px;resize:vertical;width:100%}.ph-tour-survey-textarea:focus{border-color:var(--ph-tour-button-color);box-shadow:0 0 0 2px rgba(0,0,0,.05);outline:none}.ph-tour-survey-textarea::placeholder{color:var(--ph-tour-text-secondary-color)}.ph-tour-survey-submit{align-self:flex-end}.ph-tour-survey-rating-container{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}.ph-tour-survey-rating-labels{color:var(--ph-tour-text-secondary-color);display:flex;font-size:11px;justify-content:space-between}.ph-tour-survey-rating-emoji{display:flex;gap:8px;justify-content:center}.ph-tour-survey-emoji-button{align-items:center;background:var(--ph-tour-background-color);border:2px solid var(--ph-tour-border-color);border-radius:8px;cursor:pointer;display:flex;height:44px;justify-content:center;padding:0;transition:all .15s ease;width:44px}.ph-tour-survey-emoji-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active svg{fill:var(--ph-tour-button-text-color)}.ph-tour-survey-emoji-button svg{fill:var(--ph-tour-text-color);height:28px;transition:fill .15s ease;width:28px}.ph-tour-survey-rating-numbers{display:grid;gap:6px}.ph-tour-survey-number-button{align-items:center;background:var(--ph-tour-background-color);border:1px solid var(--ph-tour-border-color);border-radius:4px;color:var(--ph-tour-text-color);cursor:pointer;display:flex;font-family:var(--ph-tour-font-family);font-size:13px;font-weight:500;justify-content:center;padding:8px 4px;transition:all .15s ease}.ph-tour-survey-number-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-number-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}@keyframes ph-tour-banner-slide-in{0%{grid-template-rows:0fr}to{grid-template-rows:1fr}}.ph-tour-banner-wrapper{animation:ph-tour-banner-slide-in var(--ph-tour-banner-animation-duration,.3s) ease-out forwards;display:grid}.ph-tour-banner-slide{min-height:0;overflow:hidden}.ph-tour-banner{align-items:center;background:var(--ph-tour-background-color);border-bottom:1px solid var(--ph-tour-border-color);box-shadow:var(--ph-tour-box-shadow);display:flex;font-family:var(--ph-tour-font-family);gap:16px;justify-content:center;padding:12px 16px}a.ph-tour-banner{color:inherit;text-decoration:none}:host:has(.ph-tour-banner--sticky){position:sticky;top:0;z-index:var(--ph-tour-z-index)}.ph-tour-banner-content{color:var(--ph-tour-text-color);flex:1;font-size:14px;line-height:1.5;min-width:0;text-align:center}.ph-tour-banner-content p{margin:0}.ph-tour-banner-content strong{font-weight:600}.ph-tour-banner-content em{font-style:italic}.ph-tour-banner-content a{color:inherit;text-decoration:underline}.ph-tour-banner-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;flex-shrink:0;height:24px;justify-content:center;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-banner-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}',t);return null==e||e.setAttribute("data-ph-product-tour-style","true"),e}function fn(t){return t.useManualSelector?!!t.selector:!!t.inferenceData}function pn(t){var e;if(null!==(e=t.useManualSelector)&&void 0!==e&&e)return t.selector?function(t){try{var e=cn.querySelectorAll(t);if(0===e.length)return{element:null,error:"not_found",matchCount:0};var r=e[0];return function(t){var e=hn.getComputedStyle(t);if("none"===e.display||"hidden"===e.visibility||"0"===e.opacity)return!1;var r=t.getBoundingClientRect();return 0!==r.width&&0!==r.height}(r)?e.length>1?{element:r,error:"multiple_matches",matchCount:e.length}:{element:r,error:null,matchCount:1}:{element:null,error:"not_visible",matchCount:e.length}}catch(t){return{element:null,error:"not_found",matchCount:0}}}(t.selector):{element:null,error:"not_found",matchCount:0};if(!t.inferenceData)return{element:null,error:"not_found",matchCount:0};var r=fr(t.inferenceData);return r?{element:r,error:null,matchCount:1}:{element:null,error:"not_found",matchCount:0}}var vn=12,mn=8;function gn(t,e,r){var n=Math.max(mn+e/2,Math.min(r-mn-e/2,t));return{clamped:n,offset:t-n}}function bn(t,e){var r,n,o=a({},tt,e),i=t.style;i.setProperty("--ph-tour-background-color",o.backgroundColor),i.setProperty("--ph-tour-text-color",o.textColor),i.setProperty("--ph-tour-button-color",o.buttonColor),i.setProperty("--ph-tour-border-radius",o.borderRadius+"px"),i.setProperty("--ph-tour-button-border-radius",o.buttonBorderRadius+"px"),i.setProperty("--ph-tour-border-color",o.borderColor),i.setProperty("--ph-tour-font-family",function(t){if("inherit"===t)return"inherit";var e='BlinkMacSystemFont, "Inter", "Segoe UI", "Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';return t?t+", "+e:"-apple-system, "+e}(o.fontFamily)),i.setProperty("--ph-tour-text-secondary-color",(.6,(n=en(r=o.textColor).match(/^rgb\((\d+),(\d+),(\d+)\)$/))?"rgba("+n[1]+", "+n[2]+", "+n[3]+", 0.6)":r)),i.setProperty("--ph-tour-branding-text-color",rn(o.backgroundColor)),i.setProperty("--ph-tour-button-text-color",rn(o.buttonColor)),i.setProperty("--ph-tour-box-shadow",o.boxShadow),i.setProperty("--ph-tour-overlay-color",o.showOverlay?"rgba(0, 0, 0, 0.5)":"transparent"),i.setProperty("--ph-tour-z-index",String(o.zIndex)),i.setProperty("--ph-tour-button-secondary-color","transparent"),i.setProperty("--ph-tour-button-secondary-text-color",o.textColor),i.setProperty("--ph-tour-max-width","320px"),i.setProperty("--ph-tour-padding","16px")}function yn(t){var e;if(!t)return"";if("string"==typeof t)return xn(t);if("text"===t.type){var r=xn(t.text||"");if(t.marks)for(var n of t.marks)switch(n.type){case"bold":r="<strong>"+r+"</strong>";break;case"italic":r="<em>"+r+"</em>";break;case"underline":r="<u>"+r+"</u>";break;case"strike":r="<s>"+r+"</s>"}return r}var o=(null==(e=t.content)?void 0:e.map(yn).join(""))||"";switch(t.type){case"doc":default:return o;case"paragraph":return"<p>"+o+"</p>";case"heading":var i,l=(null==(i=t.attrs)?void 0:i.level)||1;return"<h"+l+">"+o+"</h"+l+">";case"bulletList":return"<ul>"+o+"</ul>";case"orderedList":return"<ol>"+o+"</ol>";case"listItem":return"<li>"+o+"</li>";case"hardBreak":return"<br>"}}function wn(t){return t.endsWith("/")?t.slice(0,-1):t}function xn(t){var e=cn.createElement("div");return e.textContent=t,e.innerHTML}function _n(t){var e=[];return t.content&&function t(r){var n,o;"image"===r.type&&null!=(n=r.attrs)&&n.src&&e.push(r.attrs.src),null==(o=r.content)||o.forEach(t)}(t.content),e}function kn(t){return t.contentHtml?Se.sanitize(t.contentHtml,{ADD_TAGS:["iframe"],ADD_ATTR:["allowfullscreen","frameborder","referrerpolicy"]}):yn(t.content)}var Tn=0;function Cn(t,e,r,n,o,i){e||(e={});var l,a,u=e;if("ref"in u)for(a in u={},e)"ref"==a?l=e[a]:u[a]=e[a];var c={type:t,props:u,key:r,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Tn,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof t&&(l=t.defaultProps))for(a in l)void 0===u[a]&&(u[a]=l[a]);return s.vnode&&s.vnode(c),c}var Sn=Cn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Cn("path",{d:"M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm146 272q66 0 121.5-35.5T682-393h-52q-23 40-63 61.5T480.5-310q-46.5 0-87-21T331-393h-53q26 61 81 96.5T480-261Zm0 181q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})}),An=Cn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Cn("path",{d:"M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm20 194h253v-49H354v49ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})}),qn=Cn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Cn("path",{d:"M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm146.174 116Q413-417 358.5-379.5T278-280h53q22-42 62.173-65t87.5-23Q528-368 567.5-344.5T630-280h52q-25-63-79.826-100-54.826-37-122-37ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})}),Mn=Cn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Cn("path",{d:"M480-417q-67 0-121.5 37.5T278-280h404q-25-63-80-100t-122-37Zm-183-72 50-45 45 45 31-36-45-45 45-45-31-36-45 45-50-45-31 36 45 45-45 45 31 36Zm272 0 44-45 51 45 31-36-45-45 45-45-31-36-51 45-44-45-31 36 44 45-44 45 31 36ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142 0 241-99t99-241q0-142-99-241t-241-99q-142 0-241 99t-99 241q0 142 99 241t241 99Z"})}),En=Cn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Cn("path",{d:"M479.504-261Q537-261 585.5-287q48.5-26 78.5-72.4 6-11.6-.75-22.6-6.75-11-20.25-11H316.918Q303-393 296.5-382t-.5 22.6q30 46.4 78.5 72.4 48.5 26 105.004 26ZM347-578l27 27q7.636 8 17.818 8Q402-543 410-551q8-8 8-18t-8-18l-42-42q-8.8-9-20.9-9-12.1 0-21.1 9l-42 42q-8 7.636-8 17.818Q276-559 284-551q8 8 18 8t18-8l27-27Zm267 0 27 27q7.714 8 18 8t18-8q8-7.636 8-17.818Q685-579 677-587l-42-42q-8.8-9-20.9-9-12.1 0-21.1 9l-42 42q-8 7.714-8 18t8 18q7.636 8 17.818 8Q579-543 587-551l27-27ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})});Cn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 0 24 24",width:"48",children:Cn("path",{d:"M2 20h2c.55 0 1-.45 1-1v-9c0-.55-.45-1-1-1H2v11zm19.83-7.12c.11-.25.17-.52.17-.8V11c0-1.1-.9-2-2-2h-5.5l.92-4.65c.05-.22.02-.46-.08-.66-.23-.45-.52-.86-.88-1.22L14 2 7.59 8.41C7.21 8.79 7 9.3 7 9.83v7.84C7 18.95 8.05 20 9.34 20h8.11c.7 0 1.36-.37 1.72-.97l2.66-6.15z"})}),Cn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 0 24 24",width:"48",children:Cn("path",{d:"M22 4h-2c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h2V4zM2.17 11.12c-.11.25-.17.52-.17.8V13c0 1.1.9 2 2 2h5.5l-.92 4.65c-.05.22-.02.46.08.66.23.45.52.86.88 1.22L10 22l6.41-6.41c.38-.38.59-.89.59-1.42V6.34C17 5.05 15.95 4 14.66 4H6.55c-.7 0-1.36.37-1.72.97l-2.66 6.15z"})});var Ln=function(t){var{fill:e="currentColor"}={};return Cn("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:e,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"close-survey-title-adam",children:[Cn("title",{id:"close-survey-title",className:"adam-testing",children:"Close survey"}),Cn("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.164752 0.164752C0.384422 -0.0549175 0.740578 -0.0549175 0.960248 0.164752L6 5.20451L11.0398 0.164752C11.2594 -0.0549175 11.6156 -0.0549175 11.8352 0.164752C12.0549 0.384422 12.0549 0.740578 11.8352 0.960248L6.79549 6L11.8352 11.0398C12.0549 11.2594 12.0549 11.6156 11.8352 11.8352C11.6156 12.0549 11.2594 12.0549 11.0398 11.8352L6 6.79549L0.960248 11.8352C0.740578 12.0549 0.384422 12.0549 0.164752 11.8352C-0.0549175 11.6156 -0.0549175 11.2594 0.164752 11.0398L5.20451 6L0.164752 0.960248C-0.0549175 0.740578 -0.0549175 0.384422 0.164752 0.164752Z",fill:e})]})},In=Cn("svg",{width:"77",height:"14",viewBox:"0 0 77 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Cn("g",{"clip-path":"url(#clip0_2415_6911)",children:[Cn("mask",{id:"mask0_2415_6911",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"77",height:"14",children:Cn("path",{d:"M0.5 0H76.5V14H0.5V0Z",fill:"white"})}),Cn("g",{mask:"url(#mask0_2415_6911)",children:[Cn("path",{d:"M5.77226 8.02931C5.59388 8.37329 5.08474 8.37329 4.90634 8.02931L4.4797 7.20672C4.41155 7.07535 4.41155 6.9207 4.4797 6.78933L4.90634 5.96669C5.08474 5.62276 5.59388 5.62276 5.77226 5.96669L6.19893 6.78933C6.26709 6.9207 6.26709 7.07535 6.19893 7.20672L5.77226 8.02931ZM5.77226 12.6946C5.59388 13.0386 5.08474 13.0386 4.90634 12.6946L4.4797 11.872C4.41155 11.7406 4.41155 11.586 4.4797 11.4546L4.90634 10.632C5.08474 10.288 5.59388 10.288 5.77226 10.632L6.19893 11.4546C6.26709 11.586 6.26709 11.7406 6.19893 11.872L5.77226 12.6946Z",fill:"#1D4AFF"}),Cn("path",{d:"M0.5 10.9238C0.5 10.508 1.02142 10.2998 1.32637 10.5938L3.54508 12.7327C3.85003 13.0267 3.63405 13.5294 3.20279 13.5294H0.984076C0.716728 13.5294 0.5 13.3205 0.5 13.0627V10.9238ZM0.5 8.67083C0.5 8.79459 0.551001 8.91331 0.641783 9.00081L5.19753 13.3927C5.28831 13.4802 5.41144 13.5294 5.53982 13.5294H8.0421C8.47337 13.5294 8.68936 13.0267 8.3844 12.7327L1.32637 5.92856C1.02142 5.63456 0.5 5.84278 0.5 6.25854V8.67083ZM0.5 4.00556C0.5 4.12932 0.551001 4.24802 0.641783 4.33554L10.0368 13.3927C10.1276 13.4802 10.2508 13.5294 10.3791 13.5294H12.8814C13.3127 13.5294 13.5287 13.0267 13.2237 12.7327L1.32637 1.26329C1.02142 0.969312 0.5 1.17752 0.5 1.59327V4.00556ZM5.33931 4.00556C5.33931 4.12932 5.39033 4.24802 5.4811 4.33554L14.1916 12.7327C14.4965 13.0267 15.0179 12.8185 15.0179 12.4028V9.99047C15.0179 9.86671 14.9669 9.74799 14.8762 9.66049L6.16568 1.26329C5.86071 0.969307 5.33931 1.17752 5.33931 1.59327V4.00556ZM11.005 1.26329C10.7 0.969307 10.1786 1.17752 10.1786 1.59327V4.00556C10.1786 4.12932 10.2296 4.24802 10.3204 4.33554L14.1916 8.06748C14.4965 8.36148 15.0179 8.15325 15.0179 7.7375V5.3252C15.0179 5.20144 14.9669 5.08272 14.8762 4.99522L11.005 1.26329Z",fill:"#F9BD2B"}),Cn("path",{d:"M21.0852 10.981L16.5288 6.58843C16.2238 6.29443 15.7024 6.50266 15.7024 6.91841V13.0627C15.7024 13.3205 15.9191 13.5294 16.1865 13.5294H23.2446C23.5119 13.5294 23.7287 13.3205 23.7287 13.0627V12.5032C23.7287 12.2455 23.511 12.0396 23.2459 12.0063C22.4323 11.9042 21.6713 11.546 21.0852 10.981ZM18.0252 12.0365C17.5978 12.0365 17.251 11.7021 17.251 11.2901C17.251 10.878 17.5978 10.5436 18.0252 10.5436C18.4527 10.5436 18.7996 10.878 18.7996 11.2901C18.7996 11.7021 18.4527 12.0365 18.0252 12.0365Z",fill:"currentColor"}),Cn("path",{d:"M0.5 13.0627C0.5 13.3205 0.716728 13.5294 0.984076 13.5294H3.20279C3.63405 13.5294 3.85003 13.0267 3.54508 12.7327L1.32637 10.5938C1.02142 10.2998 0.5 10.508 0.5 10.9238V13.0627ZM5.33931 5.13191L1.32637 1.26329C1.02142 0.969306 0.5 1.17752 0.5 1.59327V4.00556C0.5 4.12932 0.551001 4.24802 0.641783 4.33554L5.33931 8.86412V5.13191ZM1.32637 5.92855C1.02142 5.63455 0.5 5.84278 0.5 6.25853V8.67083C0.5 8.79459 0.551001 8.91331 0.641783 9.00081L5.33931 13.5294V9.79717L1.32637 5.92855Z",fill:"#1D4AFF"}),Cn("path",{d:"M10.1787 5.3252C10.1787 5.20144 10.1277 5.08272 10.0369 4.99522L6.16572 1.26329C5.8608 0.969306 5.33936 1.17752 5.33936 1.59327V4.00556C5.33936 4.12932 5.39037 4.24802 5.48114 4.33554L10.1787 8.86412V5.3252ZM5.33936 13.5294H8.04214C8.47341 13.5294 8.6894 13.0267 8.38443 12.7327L5.33936 9.79717V13.5294ZM5.33936 5.13191V8.67083C5.33936 8.79459 5.39037 8.91331 5.48114 9.00081L10.1787 13.5294V9.99047C10.1787 9.86671 10.1277 9.74803 10.0369 9.66049L5.33936 5.13191Z",fill:"#F54E00"}),Cn("path",{d:"M29.375 11.6667H31.3636V8.48772H33.0249C34.8499 8.48772 36.0204 7.4443 36.0204 5.83052C36.0204 4.21681 34.8499 3.17334 33.0249 3.17334H29.375V11.6667ZM31.3636 6.84972V4.81136H32.8236C33.5787 4.81136 34.0318 5.19958 34.0318 5.83052C34.0318 6.4615 33.5787 6.84972 32.8236 6.84972H31.3636ZM39.618 11.7637C41.5563 11.7637 42.9659 10.429 42.9659 8.60905C42.9659 6.78905 41.5563 5.45438 39.618 5.45438C37.6546 5.45438 36.2701 6.78905 36.2701 8.60905C36.2701 10.429 37.6546 11.7637 39.618 11.7637ZM38.1077 8.60905C38.1077 7.63838 38.7118 6.97105 39.618 6.97105C40.5116 6.97105 41.1157 7.63838 41.1157 8.60905C41.1157 9.57972 40.5116 10.2471 39.618 10.2471C38.7118 10.2471 38.1077 9.57972 38.1077 8.60905ZM46.1482 11.7637C47.6333 11.7637 48.6402 10.8658 48.6402 9.81025C48.6402 7.33505 45.2294 8.13585 45.2294 7.16518C45.2294 6.8983 45.5189 6.72843 45.9342 6.72843C46.3622 6.72843 46.8782 6.98318 47.0418 7.54132L48.527 6.94678C48.2375 6.06105 47.1677 5.45438 45.8713 5.45438C44.4743 5.45438 43.6058 6.25518 43.6058 7.21372C43.6058 9.53118 46.9663 8.88812 46.9663 9.84665C46.9663 10.1864 46.6391 10.417 46.1482 10.417C45.4434 10.417 44.9525 9.94376 44.8015 9.3735L43.3164 9.93158C43.6436 10.8537 44.6001 11.7637 46.1482 11.7637ZM53.4241 11.606L53.2982 10.0651C53.0843 10.1743 52.8074 10.2106 52.5808 10.2106C52.1278 10.2106 51.8257 9.89523 51.8257 9.34918V7.03172H53.3612V5.55145H51.8257V3.78001H49.9755V5.55145H48.9687V7.03172H49.9755V9.57972C49.9755 11.06 51.0202 11.7637 52.3921 11.7637C52.7696 11.7637 53.122 11.7031 53.4241 11.606ZM59.8749 3.17334V6.47358H56.376V3.17334H54.3874V11.6667H56.376V8.11158H59.8749V11.6667H61.8761V3.17334H59.8749ZM66.2899 11.7637C68.2281 11.7637 69.6378 10.429 69.6378 8.60905C69.6378 6.78905 68.2281 5.45438 66.2899 5.45438C64.3265 5.45438 62.942 6.78905 62.942 8.60905C62.942 10.429 64.3265 11.7637 66.2899 11.7637ZM64.7796 8.60905C64.7796 7.63838 65.3837 6.97105 66.2899 6.97105C67.1835 6.97105 67.7876 7.63838 67.7876 8.60905C67.7876 9.57972 67.1835 10.2471 66.2899 10.2471C65.3837 10.2471 64.7796 9.57972 64.7796 8.60905ZM73.2088 11.4725C73.901 11.4725 74.5177 11.242 74.845 10.8416V11.424C74.845 12.1034 74.2786 12.5767 73.4102 12.5767C72.7935 12.5767 72.2523 12.2854 72.1642 11.788L70.4776 12.0428C70.7042 13.1955 71.925 13.972 73.4102 13.972C75.361 13.972 76.6574 12.8679 76.6574 11.2298V5.55145H74.8324V6.07318C74.4926 5.69705 73.9136 5.45438 73.171 5.45438C71.409 5.45438 70.3014 6.61918 70.3014 8.46345C70.3014 10.3077 71.409 11.4725 73.2088 11.4725ZM72.1012 8.46345C72.1012 7.55345 72.655 6.97105 73.5109 6.97105C74.3793 6.97105 74.9331 7.55345 74.9331 8.46345C74.9331 9.37345 74.3793 9.95585 73.5109 9.95585C72.655 9.95585 72.1012 9.37345 72.1012 8.46345Z",fill:"currentColor"})]})]}),Cn("defs",{children:Cn("clipPath",{id:"clip0_2415_6911",children:Cn("rect",{width:"76",height:"14",fill:"white",transform:"translate(0.5)"})})})]});function zn(t){var{button:e,variant:r,onClick:n,cursorStyle:o}=t,i="ph-tour-button ph-tour-button--"+r;return"link"===e.action&&e.link?Cn("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",class:i,onClick:()=>n(e),children:e.text}):Cn("button",{class:i,onClick:()=>n(e),style:o,children:e.text})}function jn(t){var e,r,n,{step:o,appearance:i,stepIndex:l,totalSteps:a,onNext:u,onPrevious:s,onDismiss:c,onButtonClick:h}=t,d=null!==(e=null==i?void 0:i.whiteLabel)&&void 0!==e&&e,f=l>=a-1,p=0===l,v=!(o.buttons||"button"!==o.progressionTrigger&&fn(o)),m=!!o.buttons,g=!!(u||s||c||h),b=g?void 0:{cursor:"default"},y=!d&&p,w=t=>{h&&h(t)};return Cn(E,{children:[Cn("button",{class:"ph-tour-dismiss",onClick:c,"aria-label":"Close tour",style:b,children:Ln()}),Cn("div",{class:"ph-tour-content",dangerouslySetInnerHTML:{__html:kn(o)}}),Cn("div",{class:"ph-tour-footer",children:[a>1&&Cn("span",{class:"ph-tour-progress",children:[l+1," of ",a]}),Cn("div",{class:"ph-tour-buttons",children:[v&&Cn(E,{children:[!p&&Cn("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:s,style:b,children:"Back"}),Cn("button",{class:"ph-tour-button ph-tour-button--primary",onClick:u,style:b,children:f?"Done":"Next"})]}),m&&Cn(E,{children:[(null==(r=o.buttons)?void 0:r.secondary)&&Cn(zn,{button:o.buttons.secondary,variant:"secondary",onClick:w,cursorStyle:b}),(null==(n=o.buttons)?void 0:n.primary)&&Cn(zn,{button:o.buttons.primary,variant:"primary",onClick:w,cursorStyle:b})]})]})]}),y&&Cn("a",{href:g?"https://posthog.com/docs/product-tours":void 0,target:g?"_blank":void 0,rel:g?"noopener noreferrer":void 0,class:"ph-tour-branding",style:g?void 0:{cursor:"default",pointerEvents:"none"},children:["Tour by ",In]})]})}Cn("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Cn("path",{d:"M5.30769 10.6923L4.77736 11.2226C4.91801 11.3633 5.10878 11.4423 5.30769 11.4423C5.5066 11.4423 5.69737 11.3633 5.83802 11.2226L5.30769 10.6923ZM15.5303 1.53033C15.8232 1.23744 15.8232 0.762563 15.5303 0.46967C15.2374 0.176777 14.7626 0.176777 14.4697 0.46967L15.5303 1.53033ZM1.53033 5.85429C1.23744 5.56139 0.762563 5.56139 0.46967 5.85429C0.176777 6.14718 0.176777 6.62205 0.46967 6.91495L1.53033 5.85429ZM5.83802 11.2226L15.5303 1.53033L14.4697 0.46967L4.77736 10.162L5.83802 11.2226ZM0.46967 6.91495L4.77736 11.2226L5.83802 10.162L1.53033 5.85429L0.46967 6.91495Z",fill:"currentColor"})});var Rn=[qn,An,Sn],Pn=[Mn,qn,An,Sn,En];function Dn(t){var{value:e,onChange:r,onSubmit:n,isInteractive:o}=t,i=Br(null);return Fr((()=>{o&&setTimeout((()=>{var t;return null==(t=i.current)?void 0:t.focus()}),100)}),[o]),Cn("textarea",{ref:i,class:"ph-tour-survey-textarea",rows:3,placeholder:"Your feedback (optional)...",value:e,onInput:t=>r(t.target.value),onKeyDown(t){"Enter"===t.key&&t.metaKey&&o&&(t.preventDefault(),null==n||n())},disabled:!o,style:o?void 0:{cursor:"default"}})}function $n(t){var{survey:e,onSubmit:r,isInteractive:n}=t,[o,i]=Or(null),l=e.scale||5,a=t=>{n&&(i(t),null==r||r(t))};if("emoji"===(e.display||"emoji"))return Cn("div",{class:"ph-tour-survey-rating-container",children:[Cn("div",{class:"ph-tour-survey-rating-emoji",children:(3===l?Rn:Pn).map(((t,e)=>{var r=e+1;return Cn("button",{type:"button",class:"ph-tour-survey-emoji-button "+(o===r?"ph-tour-survey-emoji-button--active":""),onClick:()=>a(r),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+r,children:t},e)}))}),(e.lowerBoundLabel||e.upperBoundLabel)&&Cn("div",{class:"ph-tour-survey-rating-labels",children:[Cn("span",{children:e.lowerBoundLabel}),Cn("span",{children:e.upperBoundLabel})]})]});var u=function(t){switch(t){case 5:default:return[1,2,3,4,5];case 10:return[0,1,2,3,4,5,6,7,8,9,10]}}(l);return Cn("div",{class:"ph-tour-survey-rating-container",children:[Cn("div",{class:"ph-tour-survey-rating-numbers",style:{gridTemplateColumns:"repeat("+u.length+", minmax(0, 1fr))"},children:u.map((t=>Cn("button",{type:"button",class:"ph-tour-survey-number-button "+(o===t?"ph-tour-survey-number-button--active":""),onClick:()=>a(t),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+t,children:t},t)))}),(e.lowerBoundLabel||e.upperBoundLabel)&&Cn("div",{class:"ph-tour-survey-rating-labels",children:[Cn("span",{children:e.lowerBoundLabel}),Cn("span",{children:e.upperBoundLabel})]})]})}function Nn(t){var e,{step:r,appearance:n,stepIndex:o,totalSteps:i,onPrevious:l,onSubmit:a,onDismiss:u}=t,[s,c]=Or(""),h=r.survey,d=null!==(e=null==n?void 0:n.whiteLabel)&&void 0!==e&&e,f=0===o,p="open"===(null==h?void 0:h.type),v=!!(l||a||u),m=v?void 0:{cursor:"default"},g=()=>{null==a||a(s.trim()||null)};return h?Cn(E,{children:[Cn("button",{class:"ph-tour-dismiss",onClick:u,"aria-label":"Close survey",style:m,children:Ln()}),Cn("div",{class:"ph-tour-survey-question",children:h.questionText}),p?Cn(Dn,{value:s,onChange:c,onSubmit:g,isInteractive:v}):Cn($n,{survey:h,onSubmit:a,isInteractive:v}),Cn("div",{class:"ph-tour-footer",children:[Cn("span",{class:"ph-tour-progress",children:[o+1," of ",i]}),Cn("div",{class:"ph-tour-buttons",children:[!f&&Cn("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:l,style:m,children:h.backButtonText||"Back"}),p&&Cn("button",{class:"ph-tour-button ph-tour-button--primary",onClick:g,style:m,children:h.submitButtonText||"Submit"})]})]}),!d&&Cn("a",{href:v?"https://posthog.com/product-tours":void 0,target:v?"_blank":void 0,rel:v?"noopener noreferrer":void 0,class:"ph-tour-branding",style:v?void 0:{cursor:"default",pointerEvents:"none"},children:["Survey by ",In]})]}):Cn("div",{})}var Zn=e;function On(t){return{top:"bottom",bottom:"top",left:"right",right:"left"}[t]}function Fn(t){var e,{tour:r,step:n,stepIndex:o,totalSteps:i,targetElement:l,onNext:u,onPrevious:s,onDismiss:c,onSurveySubmit:h,onButtonClick:d}=t,[f,p]=Or("entering"),[v,m]=Or(null),[g,b]=Or(null),[y,w]=Or(!1),[x,_]=Or(n),[k,T]=Or(o),C=Br(null),S=Br(o),A=Br(!1),q=Br(l),M=!fn(x)||"survey"===x.type;Hr((()=>{q.current=l}),[l]);var E=function(t,e){return Lr=8,Vr((function(){return t}),[])}((()=>{var t=q.current;if(t&&C.current){var e=C.current.getBoundingClientRect(),r={width:e.width,height:e.height},n=t.getBoundingClientRect();m(function(t,e){var r=hn.innerWidth,n=hn.innerHeight,{width:o,height:i}=e,l=t.top,a=n-t.bottom,u=t.left,s=t.top+t.height/2,c=t.left+t.width/2;if(r-t.right>=o+vn){var h=t.right+vn,{clamped:d,offset:f}=gn(s,i,n);return{position:"right",top:d,left:h,arrowOffset:f}}if(u>=o+vn){var p=r-t.left+vn,{clamped:v,offset:m}=gn(s,i,n);return{position:"left",top:v,right:p,arrowOffset:m}}if(l>=i+vn&&i+vn>a){var g=n-t.top+vn,{clamped:b,offset:y}=gn(c,o,r);return{position:"top",bottom:g,left:b,arrowOffset:y}}var w=t.bottom+vn,{clamped:x,offset:_}=gn(c,o,r);return{position:"bottom",top:w,left:x,arrowOffset:_}}(n,r)),b(function(t,e){return void 0===e&&(e=8),{top:t.top-e+"px",left:t.left-e+"px",width:t.width+2*e+"px",height:t.height+2*e+"px"}}(n)),w(!0)}}));Hr((()=>{!M&&!y&&C.current&&l&&E()}),[M,y,l,E]),Fr((()=>{var t=o,e=()=>{S.current===t&&(p("visible"),A.current=!1)},r=()=>{q.current&&fn(n)&&(q.current.isConnected||(q.current=pn(n).element),q.current)?function(t,e){var r=t.getBoundingClientRect(),n=Zn.innerHeight,o=Zn.innerWidth,i=n/6,l=o/6;if(i>r.top||r.bottom>n-i||l>r.left||r.right>o-l){t.scrollIntoView({behavior:"smooth",block:"center"});var a=r.top,u=0,s=!1,c=()=>{if(!s){var r=t.getBoundingClientRect();if(1>Math.abs(r.top-a)){if(++u>=3)return s=!0,void e()}else u=0;a=r.top,setTimeout(c,50)}};setTimeout(c,30),setTimeout((()=>{s||(s=!0,e())}),500)}else e()}(q.current,(()=>{S.current===t&&(E(),setTimeout(e,50))})):setTimeout(e,50)};if(S.current===o)return S.current=o,A.current=!0,void r();S.current=o,A.current=!0,p("exiting"),setTimeout((()=>{S.current===t&&(fn(n)&&(m(null),b(null),w(!1)),_(n),T(o),p("entering"),r())}),150)}),[l,o,n,E]),Fr((()=>{if("visible"===f&&!M){var t=()=>{A.current||E()};return br(Zn,"scroll",t,{capture:!0}),br(Zn,"resize",t),()=>{null==Zn||Zn.removeEventListener("scroll",t,!0),null==Zn||Zn.removeEventListener("resize",t)}}}),[E,f,M]),Fr((()=>{var t=t=>{"Escape"===t.key&&c("escape_key")};return br(Zn,"keydown",t),()=>{null==Zn||Zn.removeEventListener("keydown",t)}}),[c]);var L,I,z="visible"===f,j="survey"===x.type,R=M||y,P=a({},x.maxWidth&&{width:"min("+x.maxWidth+"px, calc(100vw - 16px))",maxWidth:"min("+x.maxWidth+"px, calc(100vw - 16px))"},M?a({},{top:"auto",right:"auto",bottom:"auto",left:"auto",transform:"none"},(I=function(t,e,r){switch(void 0===e&&(e=_t),e){case pt:return{top:"0",left:"0",transform:"translate(30px, 30px)"};case vt:return{top:"0",right:"0",transform:"translate(-30px, 30px)"};case mt:return{top:"0",left:"50%",transform:"translate(-50%, 30px)"};case gt:return{top:"50%",left:"0",transform:"translate(30px, -50%)"};case bt:return{top:"50%",right:"0",transform:"translate(-30px, -50%)"};case yt:return{top:"50%",left:"50%",transform:"translate(-50%, -50%)"};case wt:return{left:"30px"};case xt:return{left:"50%",transform:"translateX(-50%)"};default:return{right:void 0===kt&&void 0===ft?"60px":"30px"}}}(0,null!==(L=x.modalPosition)&&void 0!==L?L:Le.MiddleCenter),"top"in I||"bottom"in I?I:a({},I,{bottom:"30px"}))):(()=>{if(!v)return{};var t="left"===v.position||"right"===v.position;return{top:Pe(v.top)?"auto":v.top+"px",bottom:Pe(v.bottom)?"auto":v.bottom+"px",left:Pe(v.left)?"auto":v.left+"px",right:Pe(v.right)?"auto":v.right+"px",transform:t?"translateY(-50%)":"translateX(-50%)"}})());return Cn("div",{class:"ph-tour-container",children:[!1!==(null==(e=r.appearance)?void 0:e.dismissOnClickOutside)&&Cn("div",{class:"ph-tour-click-overlay",onClick(t){t.stopPropagation(),c("user_clicked_outside")}}),Cn("div",{class:"ph-tour-modal-overlay",style:{opacity:M&&z?1:0,transition:"opacity 150ms ease-out",pointerEvents:"none"}}),Cn("div",{class:"ph-tour-spotlight",style:a({},z&&R&&g?g:{top:"50%",left:"50%",width:"0px",height:"0px"},{opacity:!M&&z&&R?1:0,transition:"opacity 150ms ease-out"},"click"===x.progressionTrigger&&!M&&{pointerEvents:"auto",cursor:"pointer"}),onClick:"click"!==x.progressionTrigger||M?void 0:t=>{t.stopPropagation(),q.current&&q.current.click(),u()}}),Cn("div",{ref:C,class:"ph-tour-tooltip "+(M?"ph-tour-tooltip--modal":"")+" "+(j?"ph-tour-survey-step":""),style:a({},P,{opacity:z&&R?1:0,transition:"opacity 150ms ease-out"}),onClick(t){t.stopPropagation()},children:[!M&&v&&Cn("div",{class:"ph-tour-arrow ph-tour-arrow--"+On(v.position),style:0!==v.arrowOffset?{"--ph-tour-arrow-offset":v.arrowOffset+"px"}:void 0}),j?Cn(Nn,{step:x,appearance:r.appearance,stepIndex:k,totalSteps:i,onSubmit:h,onPrevious:s,onDismiss:()=>c("user_clicked_skip")}):Cn(jn,{step:x,appearance:r.appearance,stepIndex:k,totalSteps:i,onNext:u,onPrevious:s,onDismiss:()=>c("user_clicked_skip"),onButtonClick:d})]})]})}function Hn(t){var{class:e,href:r,onClick:n,children:o}=t;return Cn("a",{class:e,href:r,target:"_blank",rel:"noopener noreferrer",onClick:n,children:o})}function Bn(t){var{class:e,onClick:r,children:n}=t;return Cn("div",{class:e,role:"button",tabIndex:0,onClick:r,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),r())},style:{cursor:"pointer"},children:n})}function Vn(t){var{class:e,children:r}=t;return Cn("div",{class:e,children:r})}function Un(t){return Cn("div",{class:"ph-tour-banner-wrapper",children:Cn("div",{class:"ph-tour-banner-slide",children:Cn(Qn,a({},t))})})}function Qn(t){var e,{step:r,onDismiss:n,onActionClick:o,displayFrequency:i}=t,l=null!==(e=r.bannerConfig)&&void 0!==e?e:{behavior:"sticky"},a=l.action,u="always"!==i,s=["ph-tour-banner","sticky"===l.behavior&&"ph-tour-banner--sticky","custom"===l.behavior&&"ph-tour-banner--custom"].filter(Boolean).join(" "),c=Cn(E,{children:[Cn("div",{class:"ph-tour-banner-content",dangerouslySetInnerHTML:{__html:kn(r)}}),u&&Cn("button",{class:"ph-tour-banner-dismiss",onClick(t){t.stopPropagation(),t.preventDefault(),n()},"aria-label":"Close banner",children:Ln()})]});return"link"===(null==a?void 0:a.type)&&a.link?Cn(Hn,{class:s,href:a.link,onClick:o,children:c}):"trigger_tour"===(null==a?void 0:a.type)&&o?Cn(Bn,{class:s,onClick:o,children:c}):Cn(Vn,{class:s,children:c})}function Wn(t){var e,r;return!(null==(e=t.conditions)||!e.events||0>=(null==(r=t.conditions.events.values)?void 0:r.length))}function Yn(t){var e,r;return!(null==(e=t.conditions)||!e.actions||0>=(null==(r=t.conditions.actions.values)?void 0:r.length))}class Kn{constructor(){this.Wr={}}on(t,e){return this.Wr[t]||(this.Wr[t]=[]),this.Wr[t].push(e),()=>{this.Wr[t]=this.Wr[t].filter((t=>t!==e))}}emit(t,e){for(var r of this.Wr[t]||[])r(e);for(var n of this.Wr["*"]||[])n(t,e)}}function Gn(t,e,r){if(Ne(t))return!1;switch(r){case"exact":return t===e;case"contains":var n=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(t);case"regex":try{return new RegExp(e).test(t)}catch(t){return!1}default:return!1}}class Xn{constructor(t){this.sn=new Kn,this.an=(t,e)=>this.ln(t,e)&&this.un(t,e)&&this.hn(t,e)&&this.dn(t,e),this.ln=(t,e)=>null==e||!e.event||(null==t?void 0:t.event)===(null==e?void 0:e.event),this._instance=t,this.cn=new Set,this.vn=new Set}init(){var t,e;Pe(null==(t=this._instance)?void 0:t._addCaptureHook)||(null==(e=this._instance)||e._addCaptureHook(((t,e)=>{this.on(t,e)})))}register(t){var e,r;if(!Pe(null==(e=this._instance)?void 0:e._addCaptureHook)&&(t.forEach((t=>{var e,r;null==(e=this.vn)||e.add(t),null==(r=t.steps)||r.forEach((t=>{var e;null==(e=this.cn)||e.add((null==t?void 0:t.event)||"")}))})),null!=(r=this._instance)&&r.autocapture)){var n,o=new Set;t.forEach((t=>{var e;null==(e=t.steps)||e.forEach((t=>{null!=t&&t.selector&&o.add(null==t?void 0:t.selector)}))})),null==(n=this._instance)||n.autocapture.setElementSelectors(o)}}on(t,e){var r;null!=e&&0!=t.length&&(this.cn.has(t)||this.cn.has(null==e?void 0:e.event))&&this.vn&&(null==(r=this.vn)?void 0:r.size)>0&&this.vn.forEach((t=>{this.fn(e,t)&&this.sn.emit("actionCaptured",t.name)}))}pn(t){this.onAction("actionCaptured",(e=>t(e)))}fn(t,e){if(null==(null==e?void 0:e.steps))return!1;for(var r of e.steps)if(this.an(t,r))return!0;return!1}onAction(t,e){return this.sn.on(t,e)}un(t,e){if(null!=e&&e.url){var r,n=null==t||null==(r=t.properties)?void 0:r.$current_url;if(!n||"string"!=typeof n)return!1;if(!Gn(n,e.url,e.url_matching||"contains"))return!1}return!0}hn(t,e){return!!this.gn(t,e)&&!!this.mn(t,e)&&!!this.yn(t,e)}gn(t,e){var r;if(null==e||!e.href)return!0;var n=this.bn(t);if(n.length>0)return n.some((t=>Gn(t.href,e.href,e.href_matching||"exact")));var o,i=(null==t||null==(r=t.properties)?void 0:r.$elements_chain)||"";return!!i&&Gn((o=i.match(/(?::|")href="(.*?)"/))?o[1]:"",e.href,e.href_matching||"exact")}mn(t,e){var r;if(null==e||!e.text)return!0;var n=this.bn(t);if(n.length>0)return n.some((t=>Gn(t.text,e.text,e.text_matching||"exact")||Gn(t.$el_text,e.text,e.text_matching||"exact")));var o,i,l,a=(null==t||null==(r=t.properties)?void 0:r.$elements_chain)||"";return!!a&&(o=function(t){for(var e,r=[],n=/(?::|")text="(.*?)"/g;!Ne(e=n.exec(t));)r.includes(e[1])||r.push(e[1]);return r}(a),i=e.text,l=e.text_matching||"exact",o.some((t=>Gn(t,i,l))))}yn(t,e){var r,n;if(null==e||!e.selector)return!0;var o=null==t||null==(r=t.properties)?void 0:r.$element_selectors;if(null!=o&&o.includes(e.selector))return!0;var i=(null==t||null==(n=t.properties)?void 0:n.$elements_chain)||"";if(e.selector_regex&&i)try{return new RegExp(e.selector_regex).test(i)}catch(t){return!1}return!1}bn(t){var e;return null==(null==t||null==(e=t.properties)?void 0:e.$elements)?[]:null==t?void 0:t.properties.$elements}dn(t,e){return null==e||!e.properties||0===e.properties.length||_r(e.properties.reduce(((t,e)=>{var r=je(e.value)?e.value.map(String):null!=e.value?[String(e.value)]:[];return t[e.key]={values:r,operator:e.operator||"exact"},t}),{}),null==t?void 0:t.properties)}}class Jn{constructor(t){this._n=[],this._instance=t,this.wn=new Map,this.xn=new Map,this.kn=new Map}Sn(t,e){return!!t&&_r(t.propertyFilters,null==e?void 0:e.properties)}Cn(t,e){var r=new Map;return t.forEach((t=>{var n;null==(n=t.conditions)||null==(n=n[e])||null==(n=n.values)||n.forEach((e=>{if(null!=e&&e.name){var n=r.get(e.name)||[];n.push(t.id),r.set(e.name,n)}}))})),r}In(t,e,r){var n=(r===ht?this.wn:this.xn).get(t),o=[];return this.Tn((t=>{o=t.filter((t=>null==n?void 0:n.includes(t.id)))})),o.filter((n=>{var o,i=null==(o=n.conditions)||null==(o=o[r])||null==(o=o.values)?void 0:o.find((e=>e.name===t));return this.Sn(i,e)}))}register(t){var e;Pe(null==(e=this._instance)?void 0:e._addCaptureHook)||(this.En(t),this.Mn(t))}Mn(t){var e=t.filter((t=>{var e,r;return(null==(e=t.conditions)?void 0:e.actions)&&(null==(r=t.conditions)||null==(r=r.actions)||null==(r=r.values)?void 0:r.length)>0}));0!==e.length&&(null==this.Pn&&(this.Pn=new Xn(this._instance),this.Pn.init(),this.Pn.pn((t=>{this.onAction(t)}))),e.forEach((t=>{var e,r,n,o,i;t.conditions&&null!=(e=t.conditions)&&e.actions&&null!=(r=t.conditions)&&null!=(r=r.actions)&&r.values&&(null==(n=t.conditions)||null==(n=n.actions)||null==(n=n.values)?void 0:n.length)>0&&(null==(o=this.Pn)||o.register(t.conditions.actions.values),null==(i=t.conditions)||null==(i=i.actions)||null==(i=i.values)||i.forEach((e=>{if(e&&e.name){var r=this.kn.get(e.name);r&&r.push(t.id),this.kn.set(e.name,r||[t.id])}})))})))}En(t){var e,r=t.filter((t=>{var e,r;return(null==(e=t.conditions)?void 0:e.events)&&(null==(r=t.conditions)||null==(r=r.events)||null==(r=r.values)?void 0:r.length)>0})),n=t.filter((t=>{var e,r;return(null==(e=t.conditions)?void 0:e.cancelEvents)&&(null==(r=t.conditions)||null==(r=r.cancelEvents)||null==(r=r.values)?void 0:r.length)>0}));0===r.length&&0===n.length||(null==(e=this._instance)||e._addCaptureHook(((t,e)=>{this.onEvent(t,e)})),this.wn=this.Cn(t,ht),this.xn=this.Cn(t,dt))}onEvent(t,e){var r,n,o=this.Rn(),i=(null==e||null==(r=e.properties)?void 0:r.$survey_id)||(null==e||null==(n=e.properties)?void 0:n.$product_tour_id);if(i&&this.getActivatedIds().includes(i)){var l=this.On(t,i);if("consume"===l)return o.info("event consumed activated item, removing it",{event:t,itemId:i}),void this.Ln([i]);if("persist"===l)return o.info("shown item promoted to persisted activation",{event:t,itemId:i}),void this.Fn(i)}if(this.xn.has(t)){var a=this.In(t,e,dt);a.length>0&&(o.info("cancel event matched, cancelling items",{event:t,itemsToCancel:a.map((t=>t.id))}),this.Ln(a.map((t=>t.id))),a.forEach((t=>this.An(t.id))))}if(this.wn.has(t)){o.info("event name matched",{event:t,eventPayload:e,items:this.wn.get(t)});var u=this.In(t,e,ht);this.$n(u.map((t=>t.id)))}}onAction(t){this.kn.has(t)&&this.$n(this.kn.get(t)||[])}$n(t){0!==t.length&&(this._n=[...new Set([...this._n,...t])],this.Rn().info("updating activated items",{activatedItems:this.getActivatedIds()}))}Fn(t){this._n=this._n.filter((e=>e!==t));var e=this.Dn();e.includes(t)||this.Nn([...e,t])}Ln(t){var e=new Set(t);this._n=this._n.filter((t=>!e.has(t)));var r=this.Dn(),n=r.filter((t=>!e.has(t)));n.length!==r.length&&this.Nn(n)}Dn(){var t,e=this.qn();return(null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[e])||[]}getActivatedIds(){return[...new Set([...this.Dn(),...this._n])].filter((t=>!this.jn(t)))}reset(){this._n=[],this.Dn().length>0&&this.Nn([])}getEventToItemsMap(){return this.wn}Bn(){return this.Pn}}var to=mr("[Product Tour Event Receiver]");class eo extends Jn{constructor(t){super(t)}qn(){return J}Hn(){return et}Tn(t){var e;null==(e=this._instance)||null==(e=e.productTours)||e.getProductTours(t)}An(t){var e;null==(e=this._instance)||null==(e=e.productTours)||e.cancelPendingTour(t)}Rn(){return to}Nn(t){var e;null==(e=this._instance)||null==(e=e.persistence)||e.register({[J]:t})}jn(t){if(!t)return!0;var e=""+ln+t;return!(!qr.P(""+on+t)&&!qr.P(e))}On(t){return t===this.Hn()?"consume":"ignore"}getTours(){return this.getActivatedIds()}}var ro,no=mr("[Product Tours]"),oo=o,io=e,lo=new Map;function ao(t){var e=new Date;return(!t.start_date||new Date(t.start_date)<=e)&&(!t.end_date||e<=new Date(t.end_date))}function uo(t,r){var o;return ao(t)&&function(t,r){var n=t.conditions;if(null==n||!n.url)return!0;var o=function(t){var r,n=null==e||null==(r=e.location)?void 0:r.href;return Pe(n)?void 0:function(t,e){var r,n=null==t||null==(r=t.config)?void 0:r.get_current_url;if(!Re(n))return e;try{var o=n(e);return De(o)&&o?o:e}catch(t){return vr.error("Error in get_current_url, falling back to window.location.href",t),e}}(t,n)}(r);if(!o)return!1;o!==ro&&(lo.clear(),ro=o);var i=lo.get(t.id);if(!Pe(i))return i;var l,a=n.urlMatchType||Ie.Icontains;return l=a===Ie.Exact?wn(o)===wn(n.url):wr[a]([n.url],[o]),lo.set(t.id,l),l}(t,r)&&function(t,r){var o,l,a;if(!t||0===t.length)return!0;if(!i)return!1;var u,s,c,h,d,f,p=(u={userAgentDataPlatform:null==n||null==(o=n.userAgentData)?void 0:o.platform,maxTouchPoints:null==n?void 0:n.maxTouchPoints,screenWidth:null==e||null==(l=e.screen)?void 0:l.width,screenHeight:null==e||null==(a=e.screen)?void 0:a.height,devicePixelRatio:null==e?void 0:e.devicePixelRatio},(f=function(t){return ir.test(t)?We:or.test(t)?Ye:nr.test(t)?Ke:new RegExp(Je,"i").test(t)?Je:new RegExp("("+Ge+"|WPDesktop)","i").test(t)?Ge:/iPad/.test(t)?Ve:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?Ue:lr.test(t)?Qe:/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(Xe,"i").test(t)?Xe:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(Oe).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?Fe:Be:new RegExp("(pda|"+Oe+")","i").test(t)?er:new RegExp(He,"i").test(t)&&!new RegExp(He+" pc","i").test(t)?rr:""}(i))===Ve||f===Be||"Kobo"===f||"Kindle Fire"===f||f===rr?He:f===We||f===Ke||f===Ye||f===Je?"Console":f===Ue?"Wearable":f?Oe:"Android"===(null==u?void 0:u.userAgentDataPlatform)&&(null!==(s=null==u?void 0:u.maxTouchPoints)&&void 0!==s?s:0)>0?600>Math.min(null!==(c=null==u?void 0:u.screenWidth)&&void 0!==c?c:0,null!==(h=null==u?void 0:u.screenHeight)&&void 0!==h?h:0)/(null!==(d=null==u?void 0:u.devicePixelRatio)&&void 0!==d?d:1)?Oe:He:"Desktop");return wr.icontains(t,[p])}(null==(o=t.conditions)?void 0:o.deviceTypes)}var so="ph-product-tour-container",co="data-ph-tour-trigger";class ho{constructor(t){var e=this;this.tc=null,this.ec=0,this.rc=!1,this.nc=!1,this.oc=null,this.ic=new Map,this.lc=new Map,this.ac=new Set,this.uc=new Set,this.sc=()=>{oo.hidden&&this.oc?(clearInterval(this.oc),this.oc=null):oo.hidden||this.oc||(this.oc=setInterval((()=>{this.cc()}),1e3),this.cc())},this.nextStep=()=>{this.tc&&(this.As("product tour step completed",{[rt]:this.tc.id,[it]:this.tc.steps[this.ec].id,[lt]:this.ec}),this.tc.steps.length-1>this.ec?(this.hc(this.ec+1),this.dc()):this.fc())},this.previousStep=()=>{this.tc&&0!==this.ec&&(this.hc(this.ec-1),this.dc())},this.dismissTour=function(t){void 0===t&&(t="user_clicked_skip"),e.tc&&(e.As("product tour dismissed",{[rt]:e.tc.id,[it]:e.tc.steps[e.ec].id,[lt]:e.ec,$product_tour_dismiss_reason:t}),e.rc||(qr.q(""+ln+e.tc.id,!0),e._instance.capture("$set",{$set:{["$product_tour_dismissed/"+e.tc.id]:!0}})),io.dispatchEvent(new CustomEvent("PHProductTourDismissed",{detail:{tourId:e.tc.id,reason:t}})),e.vc())},this.mc=()=>{var t;if(this.tc){var e=this.gc();if(e){var r=null==(t=e.bannerConfig)?void 0:t.action;this.As("product tour banner action clicked",{[rt]:this.tc.id,[nt]:this.tc.name,[ot]:this.tc.current_iteration||1,[it]:e.id,[lt]:this.ec,[at]:null==r?void 0:r.type,[ut]:null==r?void 0:r.link,[st]:null==r?void 0:r.tourId}),"trigger_tour"===(null==r?void 0:r.type)&&r.tourId&&(this.vc(),this.showTourById(r.tourId))}}},this.bc=t=>{if(this.tc){var e=this.tc.steps[this.ec];e&&this.As("product tour button clicked",a({[rt]:this.tc.id,[nt]:this.tc.name,[ot]:this.tc.current_iteration||1,[it]:e.id,[lt]:this.ec,$product_tour_button_text:t.text,[at]:t.action},t.link&&{[ut]:t.link},t.tourId&&{[st]:t.tourId}))}switch(t.action){case"dismiss":this.dismissTour("user_clicked_skip");break;case"next_step":this.nextStep();break;case"previous_step":this.previousStep();break;case"link":this.fc();break;case"trigger_tour":t.tourId&&(this.fc(),this.showTourById(t.tourId))}},this._instance=t,this.yc=new eo(t)}wc(t){var e=t.filter((t=>!t.disable_image_preload)).flatMap((t=>t.steps.flatMap(_n)));for(var r of e)this.uc.has(r)||(this.uc.add(r),(new Image).src=r)}gc(){var t;if(!this.tc)return null;var e=this.tc.steps[this.ec];if(!e)return null;var r=null!==(t=this._instance.config.override_display_language)&&void 0!==t?t:navigator.language||navigator.userLanguage;return function(t,e){var r;if(!e||!t.translations)return t;var n=t.translations,o=null!==(r=n[e])&&void 0!==r?r:n[e.split("-")[0]];if(!o)return sn.info('No matching translation for "'+e+'" in step '+t.id+", using default"),t;var i=a({},t);return Pe(o.content)||(i.content=o.content),Pe(o.contentHtml)||(i.contentHtml=o.contentHtml),o.buttons&&i.buttons&&(i.buttons={primary:i.buttons.primary&&a({},i.buttons.primary,o.buttons.primary),secondary:i.buttons.secondary&&a({},i.buttons.secondary,o.buttons.secondary)}),o.survey&&i.survey&&(i.survey=a({},i.survey,o.survey)),i}(e,null!=r?r:null)}hc(t){this.ec=t,this.xc()}xc(){this.tc&&!this.rc&&Er.q(an,{tourId:this.tc.id,stepIndex:this.ec})}_c(){Er.A(an)}kc(){var t=Er.P(an);if(!t)return null;try{return JSON.parse(t)}catch(t){return null}}start(){if(!this.oc){var t=this.kc();t?this.Tc(t.tourId,t.stepIndex,(()=>{this.Cc()})):this.Cc()}}Cc(){this.oc=setInterval((()=>{this.cc()}),1e3),this.cc(!0),br(oo,"visibilitychange",this.sc)}Tc(t,e,r){var n;null==(n=this._instance.productTours)||n.getProductTours((n=>{var o=n.find((e=>e.id===t));o?(this.tc=o,this.ec=e,this.nc=!0,this.dc()):n.length>0&&this._c(),r()}))}stop(){this.oc&&(clearInterval(this.oc),this.oc=null),oo.removeEventListener("visibilitychange",this.sc),this.Sc(),this.Ac(),this.vc()}cc(t){var e;null!=oo&&oo.getElementById("__POSTHOG_TOOLBAR__")||null==(e=this._instance.productTours)||e.getProductTours((t=>{if(0!==t.length){this.wc(t);var e=new Set,r=t.filter((t=>!this.ac.has(t.id)&&(Wn(t)||Yn(t))));r.length>0&&(this.yc.register(r),r.forEach((t=>this.ac.add(t.id))));var n=this.tc?[]:this.yc.getTours();for(var o of t){var i,l=null==(i=o.conditions)?void 0:i.selector;if(l&&(e.add(o.id),this.qc(o,l)),!this.tc){var a=Yn(o)||Wn(o);if(o.auto_launch&&this.Mc(o)){if(!a){this.Ec(o,"auto");continue}n.includes(o.id)&&this.Ec(o,"event")}}}this.ic.forEach((t=>{var{tour:r}=t;e.has(r.id)||this.Lc(r.id)}))}else this.Sc()}),t)}Ec(t,e){var r,n=(null==(r=t.conditions)?void 0:r.autoShowDelaySeconds)||0;n>0?this.isTourPending(t.id)||this.queueTourWithDelay(t.id,n,e):this.showTour(t,{reason:e})}Mc(t){var e,r,n;if(!uo(t,this._instance))return no.info("Tour "+t.id+" failed conditions check"),!1;var o,i,l=null!==(e=t.display_frequency)&&void 0!==e?e:"until_interacted",a=""+nn+t.id,u=""+on+t.id,s=""+ln+t.id;switch(l){case"show_once":if(qr.P(a))return no.info("Tour "+t.id+" already shown (show_once frequency)"),!1;break;case"until_interacted":if(qr.P(u)||qr.P(s))return no.info("Tour "+t.id+" already completed or dismissed"),!1}if(!function(t){if(!t)return!0;var{days:e,types:r}=t;if(!e||!r||0===r.length)return!0;var n=null;for(var o of r){var i=qr.P(""+un+o);if(i)try{var l=JSON.parse(i),a=new Date(l);isNaN(a.getTime())||n&&n>=a||(n=a)}catch(t){}}return!n||function(t,e){if(!t||!e)return!0;var r="string"==typeof e?new Date(e):e,n=new Date,o=Math.abs(n.getTime()-r.getTime());return Math.ceil(o/864e5)>t}(e,n)}(null==(r=t.conditions)?void 0:r.seenTourWaitPeriod))return no.info("Cannot show tour "+t.id+": user has seen a "+(null==(o=t.conditions)||null==(o=o.seenTourWaitPeriod)?void 0:o.types)+" tour within the last "+(null==(i=t.conditions)||null==(i=i.seenTourWaitPeriod)?void 0:i.days)+" days."),!1;if(!this.Ic({flagKey:t.internal_targeting_flag_key}))return no.info("Tour "+t.id+" failed feature flag check: "+t.internal_targeting_flag_key),!1;var c=null==(n=t.conditions)?void 0:n.linkedFlagVariant;return!!this.Ic({flagKey:t.linked_flag_key,flagVariant:c})||(no.info("Tour "+t.id+" failed feature flag check: "+t.linked_flag_key+", variant: "+c),!1)}showTour(t,e){var r,n=null!==(r=null==e?void 0:e.reason)&&void 0!==r?r:"auto";this.cancelPendingTour(t.id),this.tc=t,this.hc(0);var o=this.dc();return o?(this.As(et,{[rt]:t.id,[nt]:t.name,[ot]:t.current_iteration||1,$product_tour_render_reason:n,$product_tour_type:t.tour_type}),this.rc||(qr.q(""+nn+t.id,!0),qr.q(""+un+t.tour_type,(new Date).toISOString()),this._instance.capture("$set",{$set:{["$product_tour_shown/"+t.id]:!0}}))):this.vc(),o}showTourById(t,e){var r;no.info("showTourById("+t+")"),null==(r=this._instance.productTours)||r.getProductTours((r=>{var n=r.find((e=>e.id===t));n?this.showTour(n,{reason:null!=e?e:"api"}):no.warn("could not find tour",t)}))}previewTour(t){no.info("Previewing tour "+t.id),this.vc(),this.rc=!0,this.tc=t,this.ec=0,this.dc()}fc(){this.tc&&(this.As("product tour completed",{[rt]:this.tc.id,$product_tour_steps_count:this.tc.steps.length}),this.rc||(qr.q(""+on+this.tc.id,!0),this._instance.capture("$set",{$set:{["$product_tour_completed/"+this.tc.id]:!0}})),io.dispatchEvent(new CustomEvent("PHProductTourCompleted",{detail:{tourId:this.tc.id}})),this.vc())}dc(t){var e;if(void 0===t&&(t=0),!this.tc)return!1;var r=this.gc();if(!r)return no.warn("Step "+this.ec+" not found in tour "+this.tc.id),this.vc(),!1;if("banner"===r.type)return this.zc(),this.nc=!1,this.jc(),!0;if("survey"===r.type)return r.survey?(this.Rc(),!0):(no.warn("Unable to render survey step - survey data not found"),!1);if(!fn(r))return this.zc(),this.nc=!1,this.Pc(null),!0;var n=pn(r),o={$use_manual_selector:null!==(e=r.useManualSelector)&&void 0!==e&&e,$inference_data_present:!!r.inferenceData},i=this.ec>0?this.tc.steps[this.ec-1]:null,l="click"===(null==i?void 0:i.progressionTrigger)||this.nc;if("not_found"===n.error||"not_visible"===n.error){if(l&&20>t)return setTimeout((()=>{this.dc(t+1)}),100),!1;var u=100*t;return this.Dc(n,a({$product_tour_waited_for_element:l,$product_tour_wait_duration_ms:u},o)),0!==this.ec||this.nc?(no.warn('Tour "'+this.tc.name+'" dismissed: element for step '+this.ec+" became unavailable ("+n.error+")"+(l?" after waiting "+u+"ms":"")),this.dismissTour("element_unavailable"),!1):(no.warn('Tour "'+this.tc.name+'" failed to show: element for first step not found ('+n.error+")"),!1)}if("multiple_matches"===n.error&&this.Dc(n,o),!n.element)return!1;var s=n.element,c=function(t){var e;return{tag:t.tagName,id:t.id||void 0,classes:t.className||void 0,text:(null==(e=t.innerText)?void 0:e.slice(0,100))||void 0}}(s);return this.zc(a({[ct]:r.selector,$product_tour_step_selector_found:!0,$product_tour_step_element_tag:c.tag,$product_tour_step_element_id:c.id,$product_tour_step_element_classes:c.classes,$product_tour_step_element_text:c.text},o)),this.nc=!1,this.Pc(s),!0}Pc(t,e,r){if(this.tc){var n=this.gc();if(n){var{shadow:o}=function(t,e){var r=so+"-"+t.id,n=oo.querySelector("."+r);if(n&&n.shadowRoot)return{shadow:n.shadowRoot,isNewlyCreated:!1};var o=oo.createElement("div");o.className=r,bn(o,t.appearance);var i=o.attachShadow({mode:"open"}),l=dn(e);return l&&i.appendChild(l),oo.body.appendChild(o),{shadow:i,isNewlyCreated:!0}}(this.tc,this._instance);X(Cn(Fn,{tour:this.tc,step:n,stepIndex:this.ec,totalSteps:this.tc.steps.length,targetElement:t,onNext:this.nextStep,onPrevious:this.previousStep,onDismiss:r||this.dismissTour,onSurveySubmit:e,onButtonClick:this.bc}),o)}}}jc(){if(this.tc){var t=this.gc();if(t){var e,r=function(t,e,r){var n,o=so+"-"+t.id,i=oo.querySelector("."+o);if(i&&i.shadowRoot)return{shadow:i.shadowRoot,isNewlyCreated:!1};var l=oo.createElement("div");l.className=o,bn(l,t.appearance),Pe(null==r||null==(n=r.animation)?void 0:n.duration)||l.style.setProperty("--ph-tour-banner-animation-duration",r.animation.duration+"ms");var a=l.attachShadow({mode:"open"}),u=dn(e);if(u&&a.appendChild(u),"custom"===(null==r?void 0:r.behavior)&&r.selector){var s=oo.querySelector(r.selector);if(!s)return no.warn("Custom banner container not found: "+r.selector+". Banner will not be displayed."),null;s.appendChild(l)}else oo.body.insertBefore(l,oo.body.firstChild);return{shadow:a,isNewlyCreated:!0}}(this.tc,this._instance,t.bannerConfig);if(!r)return this.As("product tour banner container selector failed",{[rt]:this.tc.id,$product_tour_banner_selector:null==t||null==(e=t.bannerConfig)?void 0:e.selector}),void this.dismissTour("container_unavailable");var{shadow:n}=r;X(Cn(Un,{step:t,onDismiss:()=>this.dismissTour("user_clicked_skip"),onActionClick:this.mc,displayFrequency:this.tc.display_frequency}),n)}}}Rc(){var t,e,r;if(this.tc){var n=this.tc.id,o=this.gc();if(o){var i=o.linkedSurveyId,l=o.linkedSurveyQuestionId,u=(null==(t=o.survey)?void 0:t.questionText)||"";this.zc({$product_tour_linked_survey_id:i}),this.As("survey shown",{[Tt]:i,[St]:n,sessionRecordingUrl:null==(e=(r=this._instance).get_session_replay_url)?void 0:e.call(r)}),this.Pc(null,(t=>{var e,r,o=l?"$survey_response_"+l:"$survey_response";this.As("survey sent",a({[Tt]:i,[St]:n,[Ct]:[{id:l,question:u,response:t}],$survey_completed:!0,sessionRecordingUrl:null==(e=(r=this._instance).get_session_replay_url)?void 0:e.call(r)},!$e(t)&&{[o]:t})),no.info("Survey "+i+" completed",$e(t)?"(skipped)":"with response: "+t),this.nextStep()}),(t=>{var e,r;this.As("survey dismissed",{[Tt]:i,[St]:n,[Ct]:[{id:l,question:u,response:null}],$survey_partially_completed:!1,sessionRecordingUrl:null==(e=(r=this._instance).get_session_replay_url)?void 0:e.call(r)}),no.info("Survey "+i+" dismissed"),this.dismissTour(t)})),no.info("Rendered survey step for tour step "+this.ec)}}}Ic(t){var e,{flagKey:r,flagVariant:n}=t;if(!r)return!0;var o,i=!(null==(e=this._instance.featureFlags)||!e.isFeatureEnabled(r,{send_event:!r.startsWith("product-tour-targeting-")})),l=!0;return n&&(l=(null==(o=this._instance.featureFlags)?void 0:o.getFeatureFlag(r,{send_event:!1}))===n||"any"===n),i&&l}vc(){var t;this.tc&&(null!=(t=oo.querySelector("."+so+"-"+this.tc.id))&&t.shadowRoot&&X(null,t.shadowRoot),null==t||t.remove()),this.tc=null,this.ec=0,this.rc=!1,this.nc=!1,this._c()}qc(t,e){var r=oo.querySelector(e),n=this.ic.get(t.id);if(r){if(n){if(r===n.element)return;no.info("Trigger element changed for tour "+t.id+". Re-attaching listener."),this.Lc(t.id)}if(!r.hasAttribute(co)){var o=r=>{var n;if(this.tc)no.info("Tour "+t.id+" trigger clicked but another tour is active");else{var o;if(null==(n=this._instance.productTours)||n.getProductTours((e=>{o=e.find((e=>e.id===t.id))})),!o)return no.warn("Tour "+t.id+" no longer exists. Removing stale listener."),void this.Lc(t.id);ao(o)?(no.info("Tour "+t.id+" triggered by click on "+e),this.showTour(o,{reason:"trigger"})?r.preventDefault():no.info("Tour "+t.id+" failed to show; not intercepting click.")):no.warn("Tour "+t.id+" trigger clicked, but tour is not launched - not showing tour.")}};br(r,"click",o),r.setAttribute(co,t.id),this.ic.set(t.id,{element:r,listener:o,tour:t}),no.info("Attached trigger listener for tour "+t.id+" on "+e)}}else n&&this.Lc(t.id)}Lc(t){var e=this.ic.get(t);e&&(e.element.removeEventListener("click",e.listener),e.element.removeAttribute(co),this.ic.delete(t),no.info("Removed trigger listener for tour "+t))}Sc(){this.ic.forEach(((t,e)=>{this.Lc(e)}))}As(t,e){this.rc||this._instance.capture(t,e)}zc(t){if(this.tc){var e=this.tc.steps[this.ec];this.As("product tour step shown",a({[rt]:this.tc.id,[it]:e.id,[lt]:this.ec,$product_tour_step_type:e.type},t))}}Dc(t,e){if(this.tc){var r=this.tc.steps[this.ec];this.As("product tour step selector failed",a({[rt]:this.tc.id,[it]:r.id,[lt]:this.ec,[ct]:r.selector,$product_tour_error:t.error,$product_tour_matches_count:t.matchCount,$product_tour_failure_phase:"runtime"},e))}}getActiveProductTours(t){var e;null==(e=this._instance.productTours)||e.getProductTours(((e,r)=>{if(null!=r&&r.isLoaded){var n=e.filter((t=>this.Mc(t)));t(n,r)}else t([],r)}))}resetTour(t){qr.A(""+nn+t),qr.A(""+on+t),qr.A(""+ln+t)}resetAllTours(){var t=null==io?void 0:io.localStorage;if(t){for(var e=[],r=0;t.length>r;r++){var n=t.key(r);(null!=n&&n.startsWith(nn)||null!=n&&n.startsWith(on)||null!=n&&n.startsWith(ln)||null!=n&&n.startsWith(un))&&e.push(n)}e.forEach((t=>qr.A(t)))}}cancelPendingTour(t){var e=this.lc.get(t);e&&(clearTimeout(e),this.lc.delete(t),no.info("Cancelled pending tour: "+t))}Ac(){this.lc.forEach((t=>clearTimeout(t))),this.lc.clear()}isTourPending(t){return this.lc.has(t)}queueTourWithDelay(t,e,r){no.info("Queueing tour "+t+" with "+e+"s delay");var n=setTimeout((()=>{this.lc.delete(t),no.info("Delay elapsed for tour "+t+", showing now"),this.showTourById(t,r)}),1e3*e);this.lc.set(t,n)}}function fo(t,e){if(o){var r=new ho(t);return e&&r.start(),r}}l.__PosthogExtensions__=l.__PosthogExtensions__||{},l.__PosthogExtensions__.generateProductTours=fo,t.default=fo,t.elementIsVisible=sr,t.findElement=fr,t.getElementPath=function(t,e){if(void 0===e&&(e=4),!t)return null;for(var r=[],n=t;n&&e>r.length&&"BODY"!==n.tagName;){var o=n.tagName.toLowerCase();n.id?o+="#"+n.id:n.classList.length&&(o+="."+n.classList[0]),r.unshift(o),n=n.parentElement}return r.join(" > ")},Object.defineProperty(t,"__esModule",{value:!0})}({});
1
+ !function(t){"use strict";var e="undefined"!=typeof window?window:void 0,r="undefined"!=typeof globalThis?globalThis:e;"undefined"==typeof self&&(r.self=r),"undefined"==typeof File&&(r.File=function(){});var n=null==r?void 0:r.navigator,o=null==r?void 0:r.document;null!=r&&r.XMLHttpRequest&&new r.XMLHttpRequest;var i=null==n?void 0:n.userAgent,l=null!=e?e:{};function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;arguments.length>e;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},a.apply(null,arguments)}var u,s,c,h,d,f,p,v,m,g,b,y,w,x,_,k={},T=[],C=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,S=Array.isArray;function A(t,e){for(var r in e)t[r]=e[r];return t}function q(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function M(t,e,r,n,o){var i={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++c:o,__i:-1,__u:0};return null==o&&null!=s.vnode&&s.vnode(i),i}function E(t){return t.children}function L(t,e){this.props=t,this.context=e}function $(t,e){if(null==e)return t.__?$(t.__,t.__i+1):null;for(var r;t.__k.length>e;e++)if(null!=(r=t.__k[e])&&null!=r.__e)return r.__e;return"function"==typeof t.type?$(t):null}function I(t){if(t.__P&&t.__d){var e=t.__v,r=e.__e,n=[],o=[],i=A({},e);i.__v=e.__v+1,s.vnode&&s.vnode(i),B(t.__P,i,e,t.__n,t.__P.namespaceURI,32&e.__u?[r]:null,n,null==r?$(e):r,!!(32&e.__u),o),i.__v=e.__v,i.__.__k[i.__i]=i,U(n,i,o),e.__e=e.__=null,i.__e!=r&&z(i)}}function z(t){if(null!=(t=t.__)&&null!=t.__c)return t.__e=t.__c.base=null,t.__k.some((function(e){if(null!=e&&null!=e.__e)return t.__e=t.__c.base=e.__e})),z(t)}function j(t){(!t.__d&&(t.__d=!0)&&h.push(t)&&!R.__r++||d!=s.debounceRendering)&&((d=s.debounceRendering)||f)(R)}function R(){try{for(var t,e=1;h.length;)h.length>e&&h.sort(p),t=h.shift(),e=h.length,I(t)}finally{h.length=R.__r=0}}function P(t,e,r,n,o,i,l,a,u,s,c){var h,d,f,p,v,m,g,b=n&&n.__k||T,y=e.length;for(u=D(r,e,b,u,y),h=0;y>h;h++)null!=(f=r.__k[h])&&(d=-1!=f.__i&&b[f.__i]||k,f.__i=h,m=B(t,f,d,o,i,l,a,u,s,c),p=f.__e,f.ref&&d.ref!=f.ref&&(d.ref&&Y(d.ref,null,f),c.push(f.ref,f.__c||p,f)),null==v&&null!=p&&(v=p),(g=!!(4&f.__u))||d.__k===f.__k?(u=N(f,u,t,g),g&&d.__e&&(d.__e=null)):"function"==typeof f.type&&void 0!==m?u=m:p&&(u=p.nextSibling),f.__u&=-7);return r.__e=v,u}function D(t,e,r,n,o){var i,l,a,u,s,c=r.length,h=c,d=0;for(t.__k=new Array(o),i=0;o>i;i++)null!=(l=e[i])&&"boolean"!=typeof l&&"function"!=typeof l?("string"==typeof l||"number"==typeof l||"bigint"==typeof l||l.constructor==String?l=t.__k[i]=M(null,l,null,null,null):S(l)?l=t.__k[i]=M(E,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?l=t.__k[i]=M(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):t.__k[i]=l,u=i+d,l.__=t,l.__b=t.__b+1,a=null,-1!=(s=l.__i=Z(l,r,u,h))&&(h--,(a=r[s])&&(a.__u|=2)),null==a||null==a.__v?(-1==s&&(o>c?d--:c>o&&d++),"function"!=typeof l.type&&(l.__u|=4)):s!=u&&(s==u-1?d--:s==u+1?d++:(s>u?d--:d++,l.__u|=4))):t.__k[i]=null;if(h)for(i=0;c>i;i++)null!=(a=r[i])&&0==(2&a.__u)&&(a.__e==n&&(n=$(a)),K(a,a));return n}function N(t,e,r,n){var o,i;if("function"==typeof t.type){for(o=t.__k,i=0;o&&o.length>i;i++)o[i]&&(o[i].__=t,e=N(o[i],e,r,n));return e}t.__e!=e&&(n&&(e&&t.type&&!e.parentNode&&(e=$(t)),r.insertBefore(t.__e,e||null)),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function Z(t,e,r,n){var o,i,l,a=t.key,u=t.type,s=e[r],c=null!=s&&0==(2&s.__u);if(null===s&&null==a||c&&a==s.key&&u==s.type)return r;if(n>(c?1:0))for(o=r-1,i=r+1;o>=0||e.length>i;)if(null!=(s=e[l=0>o?i++:o--])&&0==(2&s.__u)&&a==s.key&&u==s.type)return l;return-1}function O(t,e,r){"-"==e[0]?t.setProperty(e,null==r?"":r):t[e]=null==r?"":"number"!=typeof r||C.test(e)?r:r+"px"}function F(t,e,r,n,o){var i,l;t:if("style"==e)if("string"==typeof r)t.style.cssText=r;else{if("string"==typeof n&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||O(t.style,e,"");if(r)for(e in r)n&&r[e]==n[e]||O(t.style,e,r[e])}else if("o"==e[0]&&"n"==e[1])i=e!=(e=e.replace(b,"$1")),l=e.toLowerCase(),e=l in t||"onFocusOut"==e||"onFocusIn"==e?l.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=r,r?n?r[g]=n[g]:(r[g]=y,t.addEventListener(e,i?x:w,i)):t.removeEventListener(e,i?x:w,i);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==r?"":r;break t}catch(t){}"function"==typeof r||(null==r||!1===r&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==r?"":r))}}function H(t){return function(e){if(this.l){var r=this.l[e.type+t];if(null==e[m])e[m]=y++;else if(r[g]>e[m])return;return r(s.event?s.event(e):e)}}}function B(t,e,r,n,o,i,l,a,u,c){var h,d,f,p,v,m,g,b,y,w,$,x,_,k,C,M=e.type;if(void 0!==e.constructor)return null;128&r.__u&&(u=!!(32&r.__u),i=[a=e.__e=r.__e]),(h=s.__b)&&h(e);t:if("function"==typeof M)try{if(b=e.props,y=M.prototype&&M.prototype.render,w=(h=M.contextType)&&n[h.__c],$=h?w?w.props.value:h.__:n,r.__c?g=(d=e.__c=r.__c).__=d.__E:(y?e.__c=d=new M(b,$):(e.__c=d=new L(b,$),d.constructor=M,d.render=G),w&&w.sub(d),d.state||(d.state={}),d.__n=n,f=d.__d=!0,d.__h=[],d._sb=[]),y&&null==d.__s&&(d.__s=d.state),y&&null!=M.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=A({},d.__s)),A(d.__s,M.getDerivedStateFromProps(b,d.__s))),p=d.props,v=d.state,d.__v=e,f)y&&null==M.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),y&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(y&&null==M.getDerivedStateFromProps&&b!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(b,$),e.__v==r.__v||!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(b,d.__s,$)){e.__v!=r.__v&&(d.props=b,d.state=d.__s,d.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.some((function(t){t&&(t.__=e)})),T.push.apply(d.__h,d._sb),d._sb=[],d.__h.length&&l.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(b,d.__s,$),y&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,v,m)}))}if(d.context=$,d.props=b,d.__P=t,d.__e=!1,x=s.__r,_=0,y)d.state=d.__s,d.__d=!1,x&&x(e),h=d.render(d.props,d.state,d.context),T.push.apply(d.__h,d._sb),d._sb=[];else do{d.__d=!1,x&&x(e),h=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&25>++_);d.state=d.__s,null!=d.getChildContext&&(n=A(A({},n),d.getChildContext())),y&&!f&&null!=d.getSnapshotBeforeUpdate&&(m=d.getSnapshotBeforeUpdate(p,v)),k=null!=h&&h.type===E&&null==h.key?Q(h.props.children):h,a=P(t,S(k)?k:[k],e,r,n,o,i,l,a,u,c),d.base=e.__e,e.__u&=-161,d.__h.length&&l.push(d),g&&(d.__E=d.__=null)}catch(t){if(e.__v=null,u||null!=i)if(t.then){for(e.__u|=u?160:128;a&&8==a.nodeType&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,e.__e=a}else{for(C=i.length;C--;)q(i[C]);V(e)}else e.__e=r.__e,e.__k=r.__k,t.then||V(e);s.__e(t,e,r)}else null==i&&e.__v==r.__v?(e.__k=r.__k,e.__e=r.__e):a=e.__e=W(r.__e,e,r,n,o,i,l,u,c);return(h=s.diffed)&&h(e),128&e.__u?void 0:a}function V(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(V))}function U(t,e,r){for(var n=0;r.length>n;n++)Y(r[n],r[++n],r[++n]);s.__c&&s.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){s.__e(t,e.__v)}}))}function Q(t){return"object"!=typeof t||null==t||t.__b>0?t:S(t)?t.map(Q):void 0!==t.constructor?null:A({},t)}function W(t,e,r,n,o,i,l,a,c){var h,d,f,p,v,m,g,b=r.props||k,y=e.props,w=e.type;if("svg"==w?o="http://www.w3.org/2000/svg":"math"==w?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(h=0;i.length>h;h++)if((v=i[h])&&"setAttribute"in v==!!w&&(w?v.localName==w:3==v.nodeType)){t=v,i[h]=null;break}if(null==t){if(null==w)return document.createTextNode(y);t=document.createElementNS(o,w,y.is&&y),a&&(s.__m&&s.__m(e,i),a=!1),i=null}if(null==w)b===y||a&&t.data==y||(t.data=y);else{if(i="textarea"==w&&null!=y.defaultValue?null:i&&u.call(t.childNodes),!a&&null!=i)for(b={},h=0;t.attributes.length>h;h++)b[(v=t.attributes[h]).name]=v.value;for(h in b)v=b[h],"dangerouslySetInnerHTML"==h?f=v:"children"==h||h in y||"value"==h&&"defaultValue"in y||"checked"==h&&"defaultChecked"in y||F(t,h,null,v,o);for(h in y)v=y[h],"children"==h?p=v:"dangerouslySetInnerHTML"==h?d=v:"value"==h?m=v:"checked"==h?g=v:a&&"function"!=typeof v||b[h]===v||F(t,h,v,b[h],o);if(d)a||f&&(d.__html==f.__html||d.__html==t.innerHTML)||(t.innerHTML=d.__html),e.__k=[];else if(f&&(t.innerHTML=""),P("template"==e.type?t.content:t,S(p)?p:[p],e,r,n,"foreignObject"==w?"http://www.w3.org/1999/xhtml":o,i,l,i?i[0]:r.__k&&$(r,0),a,c),null!=i)for(h=i.length;h--;)q(i[h]);a&&"textarea"!=w||(h="value","progress"==w&&null==m?t.removeAttribute("value"):null!=m&&(m!==t[h]||"progress"==w&&!m||"option"==w&&m!=b[h])&&F(t,h,m,b[h],o),h="checked",null!=g&&g!=t[h]&&F(t,h,g,b[h],o))}return t}function Y(t,e,r){try{if("function"==typeof t){var n="function"==typeof t.__u;n&&t.__u(),n&&null==e||(t.__u=t(e))}else t.current=e}catch(t){s.__e(t,r)}}function K(t,e,r){var n,o;if(s.unmount&&s.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||Y(n,null,e)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){s.__e(t,e)}n.base=n.__P=null}if(n=t.__k)for(o=0;n.length>o;o++)n[o]&&K(n[o],e,r||"function"!=typeof t.type);r||q(t.__e),t.__c=t.__=t.__e=void 0}function G(t,e,r){return this.constructor(t,r)}function X(t,e,r){var n,o,i;e==document&&(e=document.documentElement),s.__&&s.__(t,e),n=e.__k,o=[],i=[],B(e,t=e.__k=function(t,e,r){var n,o,i,l={};for(i in e)"key"==i?n=e[i]:"ref"==i?o=e[i]:l[i]=e[i];if(arguments.length>2&&(l.children=arguments.length>3?u.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===l[i]&&(l[i]=t.defaultProps[i]);return M(t,l,n,o,null)}(E,null,[t]),n||k,k,e.namespaceURI,n?null:e.firstChild?u.call(e.childNodes):null,o,n?n.__e:e.firstChild,!1,i),U(o,t,i)}u=T.slice,s={__e(t,e,r,n){for(var o,i,l;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,n||{}),l=o.__d),l)return o.__E=o}catch(e){t=e}throw t}},c=0,L.prototype.setState=function(t,e){var r;r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=A({},this.state),"function"==typeof t&&(t=t(A({},r),this.props)),t&&A(r,t),null!=t&&this.__v&&(e&&this._sb.push(e),j(this))},L.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),j(this))},L.prototype.render=E,h=[],f="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,p=function(t,e){return t.__v.__b-e.__v.__b},R.__r=0,v=Math.random().toString(8),m="__d"+v,g="__a"+v,b=/(PointerCapture)$|Capture$/i,y=0,w=H(!1),x=H(!0),_=0;var J="$product_tours_activated",tt={backgroundColor:"#ffffff",textColor:"#1d1f27",buttonColor:"#1d1f27",borderRadius:8,buttonBorderRadius:6,borderColor:"#e5e7eb",fontFamily:"system-ui",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",showOverlay:!0,whiteLabel:!1,dismissOnClickOutside:!0,zIndex:2147483646},et="product tour shown",rt="$product_tour_id",nt="$product_tour_name",ot="$product_tour_iteration",it="$product_tour_step_id",lt="$product_tour_step_order",at="$product_tour_button_action",ut="$product_tour_button_link",st="$product_tour_button_tour_id",ct="$product_tour_step_selector",ht="events",dt="cancelEvents",ft="tab",pt="top_left",vt="top_right",mt="top_center",gt="middle_left",bt="middle_right",yt="middle_center",wt="left",xt="center",_t="right",kt="widget",Tt="$survey_id",Ct="$survey_questions",St="$product_tour_id",{entries:At,setPrototypeOf:qt,isFrozen:Mt,getPrototypeOf:Et,getOwnPropertyDescriptor:Lt}=Object,{freeze:It,seal:zt,create:jt}=Object,{apply:Rt,construct:Pt}="undefined"!=typeof Reflect&&Reflect;It||(It=function(t){return t}),zt||(zt=function(t){return t}),Rt||(Rt=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;r>o;o++)n[o-2]=arguments[o];return t.apply(e,n)}),Pt||(Pt=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;e>n;n++)r[n-1]=arguments[n];return new t(...r)});var Dt,$t=Xt([].forEach),Nt=Xt([].lastIndexOf),Zt=Xt([].pop),Ot=Xt([].push),Ft=Xt([].splice),Ht=Xt("".toLowerCase),Bt=Xt("".toString),Vt=Xt("".match),Ut=Xt("".replace),Qt=Xt("".indexOf),Wt=Xt("".trim),Yt=Xt({}.hasOwnProperty),Kt=Xt(/t/.test),Gt=(Dt=TypeError,function(){for(var t=arguments.length,e=new Array(t),r=0;t>r;r++)e[r]=arguments[r];return Pt(Dt,e)});function Xt(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;r>o;o++)n[o-1]=arguments[o];return Rt(t,e,n)}}function Jt(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ht;qt&&qt(t,null);for(var n=e.length;n--;){var o=e[n];if("string"==typeof o){var i=r(o);i!==o&&(Mt(e)||(e[n]=i),o=i)}t[o]=!0}return t}function te(t){for(var e=0;t.length>e;e++)Yt(t,e)||(t[e]=null);return t}function ee(t){var e=jt(null);for(var[r,n]of At(t))Yt(t,r)&&(e[r]=Array.isArray(n)?te(n):n&&"object"==typeof n&&n.constructor===Object?ee(n):n);return e}function re(t,e){for(;null!==t;){var r=Lt(t,e);if(r){if(r.get)return Xt(r.get);if("function"==typeof r.value)return Xt(r.value)}t=Et(t)}return function(){return null}}var ne=It(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),oe=It(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ie=It(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),le=It(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ae=It(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ue=It(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),se=It(["#text"]),ce=It(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),he=It(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),de=It(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),fe=It(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pe=zt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ve=zt(/<%[\w\W]*|[\w\W]*%>/gm),me=zt(/\$\{[\w\W]*/gm),ge=zt(/^data-[\-\w.\u00B7-\uFFFF]+$/),be=zt(/^aria-[\-\w]+$/),ye=zt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),we=zt(/^(?:\w+script|data):/i),xe=zt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_e=zt(/^html$/i),ke=zt(/^[a-z][.\w]*(-[.\w]+)+$/i),Te=Object.freeze({__proto__:null,ARIA_ATTR:be,ATTR_WHITESPACE:xe,CUSTOM_ELEMENT:ke,DATA_ATTR:ge,DOCTYPE_NAME:_e,ERB_EXPR:ve,IS_ALLOWED_URI:ye,IS_SCRIPT_OR_DATA:we,MUSTACHE_EXPR:pe,TMPLIT_EXPR:me}),Ce=function(){return"undefined"==typeof window?null:window},Se=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ce(),r=e=>t(e);if(r.version="3.3.2",r.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return r.isSupported=!1,r;var n,{document:o}=e,i=o,l=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:u,Node:s,Element:c,NodeFilter:h,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:v}=e,m=c.prototype,g=re(m,"cloneNode"),b=re(m,"remove"),y=re(m,"nextSibling"),w=re(m,"childNodes"),x=re(m,"parentNode");if("function"==typeof u){var _=o.createElement("template");_.content&&_.content.ownerDocument&&(o=_.content.ownerDocument)}var k="",{implementation:T,createNodeIterator:C,createDocumentFragment:S,getElementsByTagName:A}=o,{importNode:q}=i,M={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof At&&"function"==typeof x&&T&&void 0!==T.createHTMLDocument;var{MUSTACHE_EXPR:E,ERB_EXPR:L,TMPLIT_EXPR:I,DATA_ATTR:z,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:R,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:D}=Te,{IS_ALLOWED_URI:N}=Te,Z=null,O=Jt({},[...ne,...oe,...ie,...ae,...se]),F=null,H=Jt({},[...ce,...he,...de,...fe]),B=Object.seal(jt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),V=null,U=null,Q=Object.seal(jt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),W=!0,Y=!0,K=!1,G=!0,X=!1,J=!0,tt=!1,et=!1,rt=!1,nt=!1,ot=!1,it=!1,lt=!0,at=!1,ut=!0,st=!1,ct={},ht=null,dt=Jt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ft=null,pt=Jt({},["audio","video","img","source","image","track"]),vt=null,mt=Jt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gt="http://www.w3.org/1998/Math/MathML",bt="http://www.w3.org/2000/svg",yt="http://www.w3.org/1999/xhtml",wt=yt,xt=!1,_t=null,kt=Jt({},[gt,bt,yt],Bt),Tt=Jt({},["mi","mo","mn","ms","mtext"]),Ct=Jt({},["annotation-xml"]),St=Jt({},["title","style","font","a","script"]),qt=null,Mt=["application/xhtml+xml","text/html"],Et=null,Lt=null,zt=o.createElement("form"),Rt=function(t){return t instanceof RegExp||t instanceof Function},Pt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Lt||Lt!==t){if(t&&"object"==typeof t||(t={}),t=ee(t),qt=-1===Mt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Et="application/xhtml+xml"===qt?Bt:Ht,Z=Yt(t,"ALLOWED_TAGS")?Jt({},t.ALLOWED_TAGS,Et):O,F=Yt(t,"ALLOWED_ATTR")?Jt({},t.ALLOWED_ATTR,Et):H,_t=Yt(t,"ALLOWED_NAMESPACES")?Jt({},t.ALLOWED_NAMESPACES,Bt):kt,vt=Yt(t,"ADD_URI_SAFE_ATTR")?Jt(ee(mt),t.ADD_URI_SAFE_ATTR,Et):mt,ft=Yt(t,"ADD_DATA_URI_TAGS")?Jt(ee(pt),t.ADD_DATA_URI_TAGS,Et):pt,ht=Yt(t,"FORBID_CONTENTS")?Jt({},t.FORBID_CONTENTS,Et):dt,V=Yt(t,"FORBID_TAGS")?Jt({},t.FORBID_TAGS,Et):ee({}),U=Yt(t,"FORBID_ATTR")?Jt({},t.FORBID_ATTR,Et):ee({}),ct=!!Yt(t,"USE_PROFILES")&&t.USE_PROFILES,W=!1!==t.ALLOW_ARIA_ATTR,Y=!1!==t.ALLOW_DATA_ATTR,K=t.ALLOW_UNKNOWN_PROTOCOLS||!1,G=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,X=t.SAFE_FOR_TEMPLATES||!1,J=!1!==t.SAFE_FOR_XML,tt=t.WHOLE_DOCUMENT||!1,nt=t.RETURN_DOM||!1,ot=t.RETURN_DOM_FRAGMENT||!1,it=t.RETURN_TRUSTED_TYPE||!1,rt=t.FORCE_BODY||!1,lt=!1!==t.SANITIZE_DOM,at=t.SANITIZE_NAMED_PROPS||!1,ut=!1!==t.KEEP_CONTENT,st=t.IN_PLACE||!1,N=t.ALLOWED_URI_REGEXP||ye,wt=t.NAMESPACE||yt,Tt=t.MATHML_TEXT_INTEGRATION_POINTS||Tt,Ct=t.HTML_INTEGRATION_POINTS||Ct,B=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&Rt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(B.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Rt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(B.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(B.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),X&&(Y=!1),ot&&(nt=!0),ct&&(Z=Jt({},se),F=jt(null),!0===ct.html&&(Jt(Z,ne),Jt(F,ce)),!0===ct.svg&&(Jt(Z,oe),Jt(F,he),Jt(F,fe)),!0===ct.svgFilters&&(Jt(Z,ie),Jt(F,he),Jt(F,fe)),!0===ct.mathMl&&(Jt(Z,ae),Jt(F,de),Jt(F,fe))),Yt(t,"ADD_TAGS")||(Q.tagCheck=null),Yt(t,"ADD_ATTR")||(Q.attributeCheck=null),t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?Q.tagCheck=t.ADD_TAGS:(Z===O&&(Z=ee(Z)),Jt(Z,t.ADD_TAGS,Et))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?Q.attributeCheck=t.ADD_ATTR:(F===H&&(F=ee(F)),Jt(F,t.ADD_ATTR,Et))),t.ADD_URI_SAFE_ATTR&&Jt(vt,t.ADD_URI_SAFE_ATTR,Et),t.FORBID_CONTENTS&&(ht===dt&&(ht=ee(ht)),Jt(ht,t.FORBID_CONTENTS,Et)),t.ADD_FORBID_CONTENTS&&(ht===dt&&(ht=ee(ht)),Jt(ht,t.ADD_FORBID_CONTENTS,Et)),ut&&(Z["#text"]=!0),tt&&Jt(Z,["html","head","body"]),Z.table&&(Jt(Z,["tbody"]),delete V.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw Gt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw Gt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=(n=t.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===n&&(n=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;var r=null,n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(r=e.getAttribute(n));var o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(v,l)),null!==n&&"string"==typeof k&&(k=n.createHTML(""));It&&It(t),Lt=t}},Dt=Jt({},[...oe,...ie,...le]),Xt=Jt({},[...ae,...ue]),te=function(t){Ot(r.removed,{element:t});try{x(t).removeChild(t)}catch(e){b(t)}},pe=function(t,e){try{Ot(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){Ot(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(nt||ot)try{te(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ve=function(t){var e=null,r=null;if(rt)t="<remove></remove>"+t;else{var i=Vt(t,/^[\r\n\t ]+/);r=i&&i[0]}"application/xhtml+xml"===qt&&wt===yt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var l=n?n.createHTML(t):t;if(wt===yt)try{e=(new p).parseFromString(l,qt)}catch(t){}if(!e||!e.documentElement){e=T.createDocument(wt,"template",null);try{e.documentElement.innerHTML=xt?k:l}catch(t){}}var a=e.body||e.documentElement;return t&&r&&a.insertBefore(o.createTextNode(r),a.childNodes[0]||null),wt===yt?A.call(e,tt?"html":"body")[0]:tt?e.documentElement:a},me=function(t){return C.call(t.ownerDocument||t,t,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},ge=function(t){return t instanceof f&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof d)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},be=function(t){return"function"==typeof s&&t instanceof s};function we(t,e,n){$t(t,(t=>{t.call(r,e,n,Lt)}))}var xe=function(t){var e=null;if(we(M.beforeSanitizeElements,t,null),ge(t))return te(t),!0;var n=Et(t.nodeName);if(we(M.uponSanitizeElement,t,{tagName:n,allowedTags:Z}),J&&t.hasChildNodes()&&!be(t.firstElementChild)&&Kt(/<[/\w!]/g,t.innerHTML)&&Kt(/<[/\w!]/g,t.textContent))return te(t),!0;if(7===t.nodeType)return te(t),!0;if(J&&8===t.nodeType&&Kt(/<[/\w]/g,t.data))return te(t),!0;if(!(Q.tagCheck instanceof Function&&Q.tagCheck(n))&&(!Z[n]||V[n])){if(!V[n]&&Se(n)){if(B.tagNameCheck instanceof RegExp&&Kt(B.tagNameCheck,n))return!1;if(B.tagNameCheck instanceof Function&&B.tagNameCheck(n))return!1}if(ut&&!ht[n]){var o=x(t)||t.parentNode,i=w(t)||t.childNodes;if(i&&o)for(var l=i.length-1;l>=0;--l){var a=g(i[l],!0);a.__removalCount=(t.__removalCount||0)+1,o.insertBefore(a,y(t))}}return te(t),!0}return t instanceof c&&!function(t){var e=x(t);e&&e.tagName||(e={namespaceURI:wt,tagName:"template"});var r=Ht(t.tagName),n=Ht(e.tagName);return!!_t[t.namespaceURI]&&(t.namespaceURI===bt?e.namespaceURI===yt?"svg"===r:e.namespaceURI===gt?"svg"===r&&("annotation-xml"===n||Tt[n]):Boolean(Dt[r]):t.namespaceURI===gt?e.namespaceURI===yt?"math"===r:e.namespaceURI===bt?"math"===r&&Ct[n]:Boolean(Xt[r]):t.namespaceURI===yt?!(e.namespaceURI===bt&&!Ct[n])&&!(e.namespaceURI===gt&&!Tt[n])&&!Xt[r]&&(St[r]||!Dt[r]):!("application/xhtml+xml"!==qt||!_t[t.namespaceURI]))}(t)?(te(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!Kt(/<\/no(script|embed|frames)/i,t.innerHTML)?(X&&3===t.nodeType&&(e=t.textContent,$t([E,L,I],(t=>{e=Ut(e,t," ")})),t.textContent!==e&&(Ot(r.removed,{element:t.cloneNode()}),t.textContent=e)),we(M.afterSanitizeElements,t,null),!1):(te(t),!0)},ke=function(t,e,r){if(U[e])return!1;if(lt&&("id"===e||"name"===e)&&(r in o||r in zt))return!1;if(Y&&!U[e]&&Kt(z,e));else if(W&&Kt(j,e));else if(Q.attributeCheck instanceof Function&&Q.attributeCheck(e,t));else if(!F[e]||U[e]){if(!(Se(t)&&(B.tagNameCheck instanceof RegExp&&Kt(B.tagNameCheck,t)||B.tagNameCheck instanceof Function&&B.tagNameCheck(t))&&(B.attributeNameCheck instanceof RegExp&&Kt(B.attributeNameCheck,e)||B.attributeNameCheck instanceof Function&&B.attributeNameCheck(e,t))||"is"===e&&B.allowCustomizedBuiltInElements&&(B.tagNameCheck instanceof RegExp&&Kt(B.tagNameCheck,r)||B.tagNameCheck instanceof Function&&B.tagNameCheck(r))))return!1}else if(vt[e]);else if(Kt(N,Ut(r,P,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==Qt(r,"data:")||!ft[t])if(K&&!Kt(R,Ut(r,P,"")));else if(r)return!1;return!0},Se=function(t){return"annotation-xml"!==t&&Vt(t,D)},Ae=function(t){we(M.beforeSanitizeAttributes,t,null);var{attributes:e}=t;if(e&&!ge(t)){for(var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0},i=e.length,l=function(){var l=e[i],{name:a,namespaceURI:u,value:s}=l,c=Et(a),h=s,d="value"===a?h:Wt(h);if(o.attrName=c,o.attrValue=d,o.keepAttr=!0,o.forceKeepAttr=void 0,we(M.uponSanitizeAttribute,t,o),d=o.attrValue,!at||"id"!==c&&"name"!==c||(pe(a,t),d="user-content-"+d),J&&Kt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d))return pe(a,t),0;if("attributename"===c&&Vt(d,"href"))return pe(a,t),0;if(o.forceKeepAttr)return 0;if(!o.keepAttr)return pe(a,t),0;if(!G&&Kt(/\/>/i,d))return pe(a,t),0;X&&$t([E,L,I],(t=>{d=Ut(d,t," ")}));var f=Et(t.nodeName);if(!ke(f,c,d))return pe(a,t),0;if(n&&"object"==typeof v&&"function"==typeof v.getAttributeType)if(u);else switch(v.getAttributeType(f,c)){case"TrustedHTML":d=n.createHTML(d);break;case"TrustedScriptURL":d=n.createScriptURL(d)}if(d!==h)try{u?t.setAttributeNS(u,a,d):t.setAttribute(a,d),ge(t)?te(t):Zt(r.removed)}catch(e){pe(a,t)}};i--;)l();we(M.afterSanitizeAttributes,t,null)}},qe=function t(e){var r=null,n=me(e);for(we(M.beforeSanitizeShadowDOM,e,null);r=n.nextNode();)we(M.uponSanitizeShadowNode,r,null),xe(r),Ae(r),r.content instanceof a&&t(r.content);we(M.afterSanitizeShadowDOM,e,null)};return r.sanitize=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,l=null,u=null,c=null;if((xt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!be(t)){if("function"!=typeof t.toString)throw Gt("toString is not a function");if("string"!=typeof(t=t.toString()))throw Gt("dirty is not a string, aborting")}if(!r.isSupported)return t;if(et||Pt(e),r.removed=[],"string"==typeof t&&(st=!1),st){if(t.nodeName){var h=Et(t.nodeName);if(!Z[h]||V[h])throw Gt("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof s)1===(l=(o=ve("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===l.nodeName||"HTML"===l.nodeName?o=l:o.appendChild(l);else{if(!nt&&!X&&!tt&&-1===t.indexOf("<"))return n&&it?n.createHTML(t):t;if(!(o=ve(t)))return nt?null:it?k:""}o&&rt&&te(o.firstChild);for(var d=me(st?t:o);u=d.nextNode();)xe(u),Ae(u),u.content instanceof a&&qe(u.content);if(st)return t;if(nt){if(ot)for(c=S.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(F.shadowroot||F.shadowrootmode)&&(c=q.call(i,c,!0)),c}var f=tt?o.outerHTML:o.innerHTML;return tt&&Z["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&Kt(_e,o.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+f),X&&$t([E,L,I],(t=>{f=Ut(f,t," ")})),n&&it?n.createHTML(f):f},r.setConfig=function(){Pt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),et=!0},r.clearConfig=function(){Lt=null,et=!1},r.isValidAttribute=function(t,e,r){Lt||Pt({});var n=Et(t),o=Et(e);return ke(n,o,r)},r.addHook=function(t,e){"function"==typeof e&&Ot(M[t],e)},r.removeHook=function(t,e){if(void 0!==e){var r=Nt(M[t],e);return-1===r?void 0:Ft(M[t],r,1)[0]}return Zt(M[t])},r.removeHooks=function(t){M[t]=[]},r.removeAllHooks=function(){M={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}();function Ae(t,e){return t.match(/\\?.|^$/g).reduce(((t,r)=>('"'!==r||t.sQuote?"'"!==r||t.quote?t.quote||t.sQuote||r!==e?t.a[t.a.length-1]+=r:t.a.push(""):(t.sQuote^=1,t.a[t.a.length-1]+=r):(t.quote^=1,t.a[t.a.length-1]+=r),t)),{a:[""]}).a}function qe(t,e){var r=t.parentNode;return r&&r.host&&11===r.nodeType?r.host:r===e?null:r}var Me,Ee,Le=function(t){return t.TopLeft="top_left",t.TopCenter="top_center",t.TopRight="top_right",t.MiddleLeft="middle_left",t.MiddleCenter="middle_center",t.MiddleRight="middle_right",t.Left="left",t.Right="right",t.Center="center",t}({}),Ie=function(t){return t.Regex="regex",t.NotRegex="not_regex",t.Exact="exact",t.IsNot="is_not",t.Icontains="icontains",t.NotIcontains="not_icontains",t}({}),ze={}.toString,je=Array.isArray||function(t){return"[object Array]"===ze.call(t)},Re=t=>"function"==typeof t,Pe=t=>void 0===t,De=t=>"[object String]"==ze.call(t),$e=t=>null===t,Ne=t=>Pe(t)||$e(t),Ze=(t,e,r)=>{function n(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),l=1;o>l;l++)i[l-1]=arguments[l];e((()=>{(0,r[n])(t,...i)}))}var o={debug(){for(var t=arguments.length,e=new Array(t),r=0;t>r;r++)e[r]=arguments[r];n("debug",...e)},info(){for(var t=arguments.length,e=new Array(t),r=0;t>r;r++)e[r]=arguments[r];n("log",...e)},warn(){for(var t=arguments.length,e=new Array(t),r=0;t>r;r++)e[r]=arguments[r];n("warn",...e)},error(){for(var t=arguments.length,e=new Array(t),r=0;t>r;r++)e[r]=arguments[r];n("error",...e)},critical(){for(var e=arguments.length,n=new Array(e),o=0;e>o;o++)n[o]=arguments[o];r.error(t,...n)},createLogger:n=>Ze(t+" "+n,e,r)};return o},Oe="Mobile",Fe="Android",He="Tablet",Be=Fe+" "+He,Ve="iPad",Ue="Apple Watch",Qe="BlackBerry",We="Nintendo",Ye="PlayStation",Ke="Xbox",Ge="Windows Phone",Xe="Nokia",Je="Ouya",tr="Generic",er=tr+" "+Oe.toLowerCase(),rr=tr+" "+He.toLowerCase(),nr=new RegExp(Ke,"i"),or=new RegExp(Ye+" \\w+","i"),ir=new RegExp(We+" \\w+","i"),lr=new RegExp(Qe+"|PlayBook|BB10","i"),ar=e,ur=(void 0===Me&&(Me=t=>t()),Ze("[Element Inference]",Me,(void 0===Ee&&(Ee=console),{log:Ee.log.bind(Ee),warn:Ee.warn.bind(Ee),error:Ee.error.bind(Ee),debug:Ee.debug.bind(Ee)})));function sr(t,e){try{var r=e.get(t);if(!Pe(r))return r;if(t.checkVisibility){var n=t.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0});return e.set(t,n),n}var o=ar.getComputedStyle(t);if("none"===o.display||"hidden"===o.visibility||0===parseFloat(o.opacity))return e.set(t,!1),!1;for(var i=t.parentElement;i;){var l=e.get(i);if(Pe(l)){var a=ar.getComputedStyle(i),u="none"!==a.display&&"hidden"!==a.visibility;if(e.set(i,u),!u)return!1;i=i.parentElement}else{if(!l)return!1;i=i.parentElement}}var s=t.getBoundingClientRect(),c=s.width>0||s.height>0||t.getClientRects().length>0;return e.set(t,c),c}catch(t){return!0}}function cr(t,e){var r=function(t){var e,r=null==(e=t.innerText)?void 0:e.trim();return!r||r.length>250?null:r}(t);return(null==r?void 0:r.toLowerCase())===e.toLowerCase()}function*hr(t,e,r){var n;try{n=function(t,e,r){return void 0===e&&(e=document),void 0===r&&(r=null),function(t,e,r,n){return void 0===n&&(n=null),t=function(t){function e(){n&&(l.length>0&&/^[~+>]$/.test(l[l.length-1])&&l.push(" "),l.push(n))}var r,n,o,i,l=[],a=[0],u=0,s=/(?:[^\\]|(?:^|[^\\])(?:\\\\)+)$/,c=/^\s+$/,h=[/\s+|\/\*|["'>~+[(]/g,/\s+|\/\*|["'[\]()]/g,/\s+|\/\*|["'[\]()]/g,null,/\*\//g];for(t=t.trim();;){if(n="",(o=h[a[a.length-1]]).lastIndex=u,!(r=o.exec(t))){n=t.substr(u),e();break}if(i=u,(u=o.lastIndex)-r[0].length>i&&(n=t.substring(i,u-r[0].length)),3>a[a.length-1]){if(e(),"["===r[0])a.push(1);else if("("===r[0])a.push(2);else if(/^["']$/.test(r[0]))a.push(3),h[3]=new RegExp(r[0],"g");else if("/*"===r[0])a.push(4);else if(/^[\])]$/.test(r[0])&&a.length>0)a.pop();else if(/^(?:\s+|[~+>])$/.test(r[0])&&(l.length>0&&!c.test(l[l.length-1])&&0===a[a.length-1]&&l.push(" "),1===a[a.length-1]&&5===l.length&&"="===l[2].charAt(l[2].length-1)&&(l[4]=" "+l[4]),c.test(r[0])))continue;l.push(r[0])}else l[l.length-1]+=n,s.test(l[l.length-1])&&(4===a[a.length-1]&&(2>l.length||c.test(l[l.length-2])?l.pop():l[l.length-1]=" ",r[0]=""),a.pop()),l[l.length-1]+=r[0]}return l.join("").trim()}(t),r.querySelector(t),document.head.createShadowRoot||document.head.attachShadow?Ae(t,",").reduce(((t,e)=>{var o=Ae(e.replace(/^\s+/g,"").replace(/\s*([>+~]+)\s*/g,"$1")," ").filter((t=>!!t)).map((t=>Ae(t,">"))),i=o.length-1,l=function(t,e,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=[];if(r)n=r;else{var o=function(t){for(var e=0;t.length>e;e++){var r=t[e];n.push(r),r.shadowRoot&&o(r.shadowRoot.querySelectorAll("*"))}};e.shadowRoot&&o(e.shadowRoot.querySelectorAll("*")),o(e.querySelectorAll("*"))}return t?n.filter((e=>e.matches(t))):n}(o[i][o[i].length-1],r,n),a=function(t,e,r){return n=>{for(var o=e,i=n,l=!1;i&&(h=i).nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&h.nodeType!==Node.DOCUMENT_NODE;){var a=!0;if(1===t[o].length)a=i.matches(t[o]);else{var u=[].concat(t[o]).reverse(),s=i;for(var c of u){if(!s||!s.matches(c)){a=!1;break}s=qe(s,r)}}if(a&&0===o){l=!0;break}a&&o--,i=qe(i,r)}var h;return l}}(o,i,r);return t.concat(l.filter(a))}),[]):r.querySelectorAll(t)}(t,0,e,r)}(t)}catch(t){return}for(var o of n){var i=o;e&&!cr(i,e)||sr(i,r)&&(yield i)}}function dr(t,e){var r=0;for(var n of t){if(r===e)return n;r++}return null}function fr(t){try{var e=JSON.parse(t.autoData);if(!je(null==e?void 0:e.textGroups)||!je(null==e?void 0:e.notextGroups))return ur.error("Invalid autoData structure:",e),null;var{text:r,excludeText:n,precision:o=1}=t,i=null!=r&&!n,l=(i?e.textGroups:e.notextGroups).sort(((t,e)=>t.cardinality-e.cardinality));if(0===l.length)return null;for(var a=Math.max(1,Math.ceil((1-o)*l.length)),u=new WeakMap,s=0;a>s;s++){var c=l[s],h=new Map,d=null,f=0;for(var{css:p,offset:v}of c.cssSelectors){var m,g=dr(hr(p,i?r:null,u),v);if(g){var b=(null!==(m=h.get(g))&&void 0!==m?m:0)+1;if(h.set(g,b),b>f&&(f=b,d=g,b>=Math.ceil(c.cssSelectors.length/2)))return d}}if(d)return d}return null}catch(t){return ur.error("Error finding element:",t),null}}var pr=function(t,r){var{debugEnabled:n}=void 0===r?{}:r,o={k(r){if(e&&(l.POSTHOG_DEBUG||n)&&!Pe(e.console)&&e.console){for(var o=("__rrweb_original__"in e.console[r]?e.console[r].__rrweb_original__:e.console[r]),i=arguments.length,a=new Array(i>1?i-1:0),u=1;i>u;u++)a[u-1]=arguments[u];o(t,...a)}},debug(){for(var t=arguments.length,e=new Array(t),r=0;t>r;r++)e[r]=arguments[r];o.k("debug",...e)},info(){for(var t=arguments.length,e=new Array(t),r=0;t>r;r++)e[r]=arguments[r];o.k("log",...e)},warn(){for(var t=arguments.length,e=new Array(t),r=0;t>r;r++)e[r]=arguments[r];o.k("warn",...e)},error(){for(var t=arguments.length,e=new Array(t),r=0;t>r;r++)e[r]=arguments[r];o.k("error",...e)},critical(){for(var e=arguments.length,r=new Array(e),n=0;e>n;n++)r[n]=arguments[n];console.error(t,...r)},uninitializedWarning(t){o.error("You must initialize PostHog before calling "+t)},createLogger:(e,r)=>pr(t+" "+e,r)};return o},vr=pr("[PostHog.js]"),mr=vr.createLogger,gr=mr("[Stylesheet Loader]");function br(t,e,r,n){var{capture:o=!1,passive:i=!0}=null!=n?n:{};null==t||t.addEventListener(e,r,{capture:o,passive:i})}mr("[Surveys]");var yr=function(t,e){if(!function(t){try{new RegExp(t)}catch(t){return!1}return!0}(e))return!1;try{return new RegExp(e).test(t)}catch(t){return!1}},wr={exact:(t,e)=>e.some((e=>t.some((t=>e===t)))),is_not:(t,e)=>e.every((e=>t.every((t=>e!==t)))),regex:(t,e)=>e.some((e=>t.some((t=>yr(e,t))))),not_regex:(t,e)=>e.every((e=>t.every((t=>!yr(e,t))))),icontains:(t,e)=>e.map(xr).some((e=>t.map(xr).some((t=>e.includes(t))))),not_icontains:(t,e)=>e.map(xr).every((e=>t.map(xr).every((t=>!e.includes(t))))),gt:(t,e)=>e.some((e=>{var r=parseFloat(e);return!isNaN(r)&&t.some((t=>r>parseFloat(t)))})),lt:(t,e)=>e.some((e=>{var r=parseFloat(e);return!isNaN(r)&&t.some((t=>r<parseFloat(t)))}))},xr=t=>t.toLowerCase();function _r(t,e){return!t||Object.entries(t).every((t=>{var[r,n]=t,o=null==e?void 0:e[r];if(Pe(o)||$e(o))return!1;var i=[String(o)],l=wr[n.operator];return!!l&&l(n.values,i)}))}Math.trunc||(Math.trunc=function(t){return 0>t?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return(t=>"[object Number]"==ze.call(t)&&t==t)(t)&&isFinite(t)&&Math.floor(t)===t}),e&&!Pe(e.crypto)&&crypto;var kr,Tr,Cr,Sr,Ar=null,qr={N(){if(!$e(Ar))return Ar;var t=!0;if(Pe(e))t=!1;else try{var r="__mplssupport__";qr.q(r,"xyz"),'"xyz"'!==qr.A(r)&&(t=!1),qr.P(r)}catch(e){t=!1}return t||vr.error("localStorage unsupported; falling back to cookie store"),Ar=t,t},D(t){vr.error("localStorage error: "+t)},A(t){try{return null==e?void 0:e.localStorage.getItem(t)}catch(t){qr.D(t)}return null},F(t){try{return JSON.parse(qr.A(t))||{}}catch(t){}return null},q(t,r){try{return null==e||e.localStorage.setItem(t,JSON.stringify(r)),!0}catch(t){qr.D(t)}return!1},P(t){try{null==e||e.localStorage.removeItem(t)}catch(t){qr.D(t)}}},Mr=null,Er={N(){if(!$e(Mr))return Mr;if(Mr=!0,Pe(e))Mr=!1;else try{var t="__support__";Er.q(t,"xyz"),'"xyz"'!==Er.A(t)&&(Mr=!1),Er.P(t)}catch(t){Mr=!1}return Mr},D(t){vr.error("sessionStorage error: ",t)},A(t){try{return null==e?void 0:e.sessionStorage.getItem(t)}catch(t){Er.D(t)}return null},F(t){try{return JSON.parse(Er.A(t))||null}catch(t){}return null},q(t,r){try{return null==e||e.sessionStorage.setItem(t,JSON.stringify(r)),!0}catch(t){Er.D(t)}return!1},P(t){try{null==e||e.sessionStorage.removeItem(t)}catch(t){Er.D(t)}}},Lr=0,Ir=[],zr=s,jr=zr.__b,Rr=zr.__r,Pr=zr.diffed,Dr=zr.__c,$r=zr.unmount,Nr=zr.__;function Zr(t,e){zr.__h&&zr.__h(Tr,t,Lr||e),Lr=0;var r=Tr.__H||(Tr.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function Or(t){return Lr=1,function(t,e,r){var n=Zr(kr++,2);if(n.t=t,!n.__c&&(n.__=[Xr(void 0,e),function(t){var e=n.__N?n.__N[0]:n.__[0],r=n.t(e,t);e!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=Tr,!Tr.__f)){var o=function(t,e,r){if(!n.__c.__H)return!0;var o=n.__c.__H.__.filter((function(t){return t.__c}));if(o.every((function(t){return!t.__N})))return!i||i.call(this,t,e,r);var l=n.__c.props!==t;return o.some((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(l=!0)}})),i&&i.call(this,t,e,r)||l};Tr.__f=!0;var i=Tr.shouldComponentUpdate,l=Tr.componentWillUpdate;Tr.componentWillUpdate=function(t,e,r){if(this.__e){var n=i;i=void 0,o(t,e,r),i=n}l&&l.call(this,t,e,r)},Tr.shouldComponentUpdate=o}return n.__N||n.__}(Xr,t)}function Fr(t,e){var r=Zr(kr++,3);!zr.__s&&Gr(r.__H,e)&&(r.__=t,r.u=e,Tr.__H.__h.push(r))}function Hr(t,e){var r=Zr(kr++,4);!zr.__s&&Gr(r.__H,e)&&(r.__=t,r.u=e,Tr.__h.push(r))}function Br(t){return Lr=5,Vr((function(){return{current:t}}),[])}function Vr(t,e){var r=Zr(kr++,7);return Gr(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function Ur(){for(var t;t=Ir.shift();){var e=t.__H;if(t.__P&&e)try{e.__h.some(Yr),e.__h.some(Kr),e.__h=[]}catch(r){e.__h=[],zr.__e(r,t.__v)}}}zr.__b=function(t){Tr=null,jr&&jr(t)},zr.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Nr&&Nr(t,e)},zr.__r=function(t){Rr&&Rr(t),kr=0;var e=(Tr=t.__c).__H;e&&(Cr===Tr?(e.__h=[],Tr.__h=[],e.__.some((function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0}))):(e.__h.some(Yr),e.__h.some(Kr),e.__h=[],kr=0)),Cr=Tr},zr.diffed=function(t){Pr&&Pr(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==Ir.push(e)&&Sr===zr.requestAnimationFrame||((Sr=zr.requestAnimationFrame)||Wr)(Ur)),e.__H.__.some((function(t){t.u&&(t.__H=t.u),t.u=void 0}))),Cr=Tr=null},zr.__c=function(t,e){e.some((function(t){try{t.__h.some(Yr),t.__h=t.__h.filter((function(t){return!t.__||Kr(t)}))}catch(r){e.some((function(t){t.__h&&(t.__h=[])})),e=[],zr.__e(r,t.__v)}})),Dr&&Dr(t,e)},zr.unmount=function(t){$r&&$r(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.some((function(t){try{Yr(t)}catch(t){e=t}})),r.__H=void 0,e&&zr.__e(e,r.__v))};var Qr="function"==typeof requestAnimationFrame;function Wr(t){var e,r=function(){clearTimeout(n),Qr&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,35);Qr&&(e=requestAnimationFrame(r))}function Yr(t){var e=Tr,r=t.__c;"function"==typeof r&&(t.__c=void 0,r()),Tr=e}function Kr(t){var e=Tr;t.__c=t.__(),Tr=e}function Gr(t,e){return!t||t.length!==e.length||e.some((function(e,r){return e!==t[r]}))}function Xr(t,e){return"function"==typeof e?e(t):e}var Jr="#020617",tn={backgroundColor:"#eeeded"};function en(t){if(t.startsWith("#")){var e=t.replace(/^#/,"");return/^[0-9A-Fa-f]{3}$/.test(e)&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),/^[0-9A-Fa-f]{6}$/.test(e)?"rgb("+parseInt(e.slice(0,2),16)+","+parseInt(e.slice(2,4),16)+","+parseInt(e.slice(4,6),16)+")":"rgb(255, 255, 255)"}return"rgb(255, 255, 255)"}function rn(t){var e;void 0===t&&(t=tn.backgroundColor),"#"===t[0]&&(e=en(t)),t.startsWith("rgb")&&(e=t);var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}[t.toLowerCase()];if(r&&(e=en(r)),!e)return Jr;var n=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);if(n){var o=parseInt(n[1]),i=parseInt(n[2]),l=parseInt(n[3]);return Math.sqrt(o*o*.299+i*i*.587+l*l*.114)>127.5?Jr:"white"}return Jr}!function(t){function e(t){var r,n;return this.getChildContext||(r=new Set,(n={})[e.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(t){this.props.value!=t.value&&r.forEach((function(t){t.__e=!0,j(t)}))},this.sub=function(t){r.add(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){r&&r.delete(t),e&&e.call(t)}}),t.children}e.__c="__cC"+_++,e.__=t,e.Provider=e.__l=(e.Consumer=function(t,e){return t.children(e)}).contextType=e}({isPreviewMode:!1,previewPageIndex:0,onPopupSurveyDismissed(){},isPopup:!0,onPreviewSubmit(){},onPreviewBack(){},surveySubmissionId:"",properties:void 0,surveyLanguage:null});var nn="ph_product_tour_shown_",on="ph_product_tour_completed_",ln="ph_product_tour_dismissed_",an="ph_active_product_tour",un="ph_last_seen_tour_date_",sn=mr("[Product Tours]"),cn=o,hn=e;function dn(t){var e=((t,e,r)=>{var n,o=t.createElement("style");return o.innerText=e,null!=r&&null!=(n=r.config)&&n.prepare_external_dependency_stylesheet&&(o=r.config.prepare_external_dependency_stylesheet(o)),o||(gr.error("prepare_external_dependency_stylesheet returned null"),null)})(cn,':host{--ph-tour-font-family:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI","Roboto",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ph-tour-background-color:#fff;--ph-tour-text-color:#1d1f27;--ph-tour-text-secondary-color:#6b7280;--ph-tour-button-color:#1d1f27;--ph-tour-button-text-color:#fff;--ph-tour-button-secondary-color:transparent;--ph-tour-button-secondary-text-color:#1d1f27;--ph-tour-border-color:#e5e7eb;--ph-tour-border-radius:8px;--ph-tour-button-border-radius:6px;--ph-tour-box-shadow:0 4px 12px rgba(0,0,0,.15);--ph-tour-max-width:320px;--ph-tour-padding:16px;--ph-tour-z-index:2147483646;--ph-tour-overlay-color:rgba(0,0,0,.5);--ph-tour-spotlight-padding:8px;--ph-tour-spotlight-border-radius:4px;--ph-tour-arrow-size:8px}.ph-tour-container *{box-sizing:border-box;font-family:var(--ph-tour-font-family);margin:0;padding:0}.ph-tour-click-overlay{bottom:0;left:0;pointer-events:auto;position:fixed;right:0;top:0;z-index:var(--ph-tour-z-index)}.ph-tour-spotlight{border-radius:var(--ph-tour-spotlight-border-radius);box-shadow:0 0 0 9999px var(--ph-tour-overlay-color)}.ph-tour-modal-overlay,.ph-tour-spotlight{pointer-events:none;position:fixed;z-index:var(--ph-tour-z-index)}.ph-tour-modal-overlay{background:var(--ph-tour-overlay-color);bottom:0;left:0;right:0;top:0}.ph-tour-tooltip{background:var(--ph-tour-background-color);border:1px solid var(--ph-tour-border-color);border-radius:var(--ph-tour-border-radius);max-width:min(var(--ph-tour-max-width),calc(100vw - 16px));min-width:min(280px,calc(100vw - 16px));padding:var(--ph-tour-padding);padding-top:calc(var(--ph-tour-padding) + 8px);pointer-events:auto;position:fixed;z-index:calc(var(--ph-tour-z-index) + 1)}.ph-tour-tooltip,.ph-tour-tooltip--modal{box-shadow:var(--ph-tour-box-shadow)}.ph-tour-arrow{--ph-tour-arrow-offset:0px;border:var(--ph-tour-arrow-size) solid transparent;height:0;position:absolute;width:0}.ph-tour-arrow--top{border-bottom-color:var(--ph-tour-background-color);bottom:100%}.ph-tour-arrow--bottom,.ph-tour-arrow--top{left:calc(50% + var(--ph-tour-arrow-offset));transform:translateX(-50%)}.ph-tour-arrow--bottom{border-top-color:var(--ph-tour-background-color);top:100%}.ph-tour-arrow--left{border-right-color:var(--ph-tour-background-color);right:100%}.ph-tour-arrow--left,.ph-tour-arrow--right{top:calc(50% + var(--ph-tour-arrow-offset));transform:translateY(-50%)}.ph-tour-arrow--right{border-left-color:var(--ph-tour-background-color);left:100%}.ph-tour-content{color:var(--ph-tour-text-color);font-size:14px;line-height:1.5;margin-bottom:16px;padding-right:24px}.ph-tour-content h1,.ph-tour-content h2{font-weight:600;margin-bottom:8px}.ph-tour-content h1{font-size:18px}.ph-tour-content h2{font-size:16px}.ph-tour-content p{margin-bottom:8px}.ph-tour-content p:last-child{margin-bottom:0}.ph-tour-content strong{font-weight:600}.ph-tour-content em{font-style:italic}.ph-tour-content ol,.ph-tour-content ul{margin-bottom:8px;margin-left:20px}.ph-tour-content h3{font-size:14px;font-weight:600;margin-bottom:8px}.ph-tour-content .ph-tour-link,.ph-tour-content a{color:inherit;text-decoration:underline}.ph-tour-content a:hover{opacity:.8}.ph-tour-content code{background:rgba(0,0,0,.06);border-radius:4px;font-size:.875em;padding:2px 6px}.ph-tour-content code,.ph-tour-content pre{font-family:SF Mono,Monaco,Consolas,monospace}.ph-tour-content pre{background:rgba(0,0,0,.04);border-radius:6px;font-size:13px;line-height:1.5;margin-bottom:8px;overflow-x:auto;padding:12px}.ph-tour-content pre code{background:transparent;border-radius:0;font-size:inherit;padding:0}.ph-tour-content code *,.ph-tour-content pre *{font-family:inherit}.ph-tour-content .hljs-comment,.ph-tour-content .hljs-quote{color:#6a737d;font-style:italic}.ph-tour-content .hljs-keyword,.ph-tour-content .hljs-selector-tag{color:#d73a49}.ph-tour-content .hljs-doctag,.ph-tour-content .hljs-regexp,.ph-tour-content .hljs-string{color:#032f62}.ph-tour-content .hljs-literal,.ph-tour-content .hljs-number,.ph-tour-content .hljs-template-variable,.ph-tour-content .hljs-variable{color:#005cc5}.ph-tour-content .hljs-section,.ph-tour-content .hljs-selector-class,.ph-tour-content .hljs-selector-id,.ph-tour-content .hljs-title,.ph-tour-content .hljs-title.function_{color:#6f42c1}.ph-tour-content .hljs-addition,.ph-tour-content .hljs-attr,.ph-tour-content .hljs-attribute,.ph-tour-content .hljs-built_in,.ph-tour-content .hljs-bullet,.ph-tour-content .hljs-name,.ph-tour-content .hljs-symbol{color:#22863a}.ph-tour-content .hljs-deletion,.ph-tour-content .hljs-subst{color:#b31d28}.ph-tour-content .hljs-meta{color:#032f62}.ph-tour-content .hljs-emphasis{font-style:italic}.ph-tour-content .hljs-strong{font-weight:700}.ph-tour-content .ph-tour-image,.ph-tour-content img{border-radius:6px;display:block;height:auto;margin:8px 0;max-width:100%}.ph-tour-content .ph-tour-embed{margin:8px 0}.ph-tour-content .ph-tour-embed-container{background:#000;border-radius:6px;overflow:hidden;padding-bottom:56.25%;position:relative;width:100%}.ph-tour-content .ph-tour-embed-container iframe{border:none;height:100%;left:0;position:absolute;top:0;width:100%}.ph-tour-content blockquote{border-left:3px solid var(--ph-tour-border-color);color:var(--ph-tour-text-secondary-color);font-style:italic;margin:8px 0;padding-left:12px}.ph-tour-footer{align-items:center;display:flex;gap:12px;justify-content:space-between}.ph-tour-progress{color:var(--ph-tour-text-secondary-color);font-size:12px}.ph-tour-buttons{display:flex;gap:8px;margin-left:auto}.ph-tour-button{align-items:center;border:none;border-radius:var(--ph-tour-button-border-radius);cursor:pointer;display:inline-flex;font-size:14px;font-weight:500;justify-content:center;padding:8px 16px;text-decoration:none;transition:opacity .15s ease,transform .1s ease}.ph-tour-button:hover{opacity:.9}.ph-tour-button:active{transform:scale(.98)}.ph-tour-button--primary{background:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}.ph-tour-button--secondary{background:var(--ph-tour-button-secondary-color);border:1px solid var(--ph-tour-border-color);color:var(--ph-tour-button-secondary-text-color)}.ph-tour-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;font-size:18px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}.ph-tour-branding{align-items:center;border-top:1px solid var(--ph-tour-border-color);color:var(--ph-tour-branding-text-color,var(--ph-tour-text-secondary-color));display:flex;font-size:11px;gap:6px;justify-content:center;margin-top:12px;padding-top:12px;text-decoration:none}.ph-tour-branding:hover{color:var(--ph-tour-branding-text-color,var(--ph-tour-text-color))}.ph-tour-branding svg{height:14px;width:auto}.ph-tour-hidden{display:none!important}.ph-tour-survey-step{min-width:min(300px,calc(100vw - 16px))}.ph-tour-survey-question{color:var(--ph-tour-text-color);font-size:15px;font-weight:500;line-height:1.4;margin-bottom:16px;padding-right:24px}.ph-tour-survey-input-container{display:flex;flex-direction:column;gap:12px}.ph-tour-survey-textarea{background:#fff;border:1px solid var(--ph-tour-border-color);border-radius:6px;box-sizing:border-box;color:var(--ph-tour-text-color);font-family:var(--ph-tour-font-family);font-size:14px;min-height:80px;padding:10px 12px;resize:vertical;width:100%}.ph-tour-survey-textarea:focus{border-color:var(--ph-tour-button-color);box-shadow:0 0 0 2px rgba(0,0,0,.05);outline:none}.ph-tour-survey-textarea::placeholder{color:var(--ph-tour-text-secondary-color)}.ph-tour-survey-submit{align-self:flex-end}.ph-tour-survey-rating-container{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}.ph-tour-survey-rating-labels{color:var(--ph-tour-text-secondary-color);display:flex;font-size:11px;justify-content:space-between}.ph-tour-survey-rating-emoji{display:flex;gap:8px;justify-content:center}.ph-tour-survey-emoji-button{align-items:center;background:var(--ph-tour-background-color);border:2px solid var(--ph-tour-border-color);border-radius:8px;cursor:pointer;display:flex;height:44px;justify-content:center;padding:0;transition:all .15s ease;width:44px}.ph-tour-survey-emoji-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active svg{fill:var(--ph-tour-button-text-color)}.ph-tour-survey-emoji-button svg{fill:var(--ph-tour-text-color);height:28px;transition:fill .15s ease;width:28px}.ph-tour-survey-rating-numbers{display:grid;gap:6px}.ph-tour-survey-number-button{align-items:center;background:var(--ph-tour-background-color);border:1px solid var(--ph-tour-border-color);border-radius:4px;color:var(--ph-tour-text-color);cursor:pointer;display:flex;font-family:var(--ph-tour-font-family);font-size:13px;font-weight:500;justify-content:center;padding:8px 4px;transition:all .15s ease}.ph-tour-survey-number-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-number-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}@keyframes ph-tour-banner-slide-in{0%{grid-template-rows:0fr}to{grid-template-rows:1fr}}.ph-tour-banner-wrapper{animation:ph-tour-banner-slide-in var(--ph-tour-banner-animation-duration,.3s) ease-out forwards;display:grid}.ph-tour-banner-slide{min-height:0;overflow:hidden}.ph-tour-banner{align-items:center;background:var(--ph-tour-background-color);border-bottom:1px solid var(--ph-tour-border-color);box-shadow:var(--ph-tour-box-shadow);display:flex;font-family:var(--ph-tour-font-family);gap:16px;justify-content:center;padding:12px 16px}a.ph-tour-banner{color:inherit;text-decoration:none}:host:has(.ph-tour-banner--sticky){position:sticky;top:0;z-index:var(--ph-tour-z-index)}.ph-tour-banner-content{color:var(--ph-tour-text-color);flex:1;font-size:14px;line-height:1.5;min-width:0;text-align:center}.ph-tour-banner-content p{margin:0}.ph-tour-banner-content strong{font-weight:600}.ph-tour-banner-content em{font-style:italic}.ph-tour-banner-content a{color:inherit;text-decoration:underline}.ph-tour-banner-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;flex-shrink:0;height:24px;justify-content:center;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-banner-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}',t);return null==e||e.setAttribute("data-ph-product-tour-style","true"),e}function fn(t){return t.useManualSelector?!!t.selector:!!t.inferenceData}function pn(t){var e;if(null!==(e=t.useManualSelector)&&void 0!==e&&e)return t.selector?function(t){try{var e=cn.querySelectorAll(t);if(0===e.length)return{element:null,error:"not_found",matchCount:0};var r=e[0];return function(t){var e=hn.getComputedStyle(t);if("none"===e.display||"hidden"===e.visibility||"0"===e.opacity)return!1;var r=t.getBoundingClientRect();return 0!==r.width&&0!==r.height}(r)?e.length>1?{element:r,error:"multiple_matches",matchCount:e.length}:{element:r,error:null,matchCount:1}:{element:null,error:"not_visible",matchCount:e.length}}catch(t){return{element:null,error:"not_found",matchCount:0}}}(t.selector):{element:null,error:"not_found",matchCount:0};if(!t.inferenceData)return{element:null,error:"not_found",matchCount:0};var r=fr(t.inferenceData);return r?{element:r,error:null,matchCount:1}:{element:null,error:"not_found",matchCount:0}}var vn=12,mn=8;function gn(t,e,r){var n=Math.max(mn+e/2,Math.min(r-mn-e/2,t));return{clamped:n,offset:t-n}}function bn(t,e){var r,n,o=a({},tt,e),i=t.style;i.setProperty("--ph-tour-background-color",o.backgroundColor),i.setProperty("--ph-tour-text-color",o.textColor),i.setProperty("--ph-tour-button-color",o.buttonColor),i.setProperty("--ph-tour-border-radius",o.borderRadius+"px"),i.setProperty("--ph-tour-button-border-radius",o.buttonBorderRadius+"px"),i.setProperty("--ph-tour-border-color",o.borderColor),i.setProperty("--ph-tour-font-family",function(t){if("inherit"===t)return"inherit";var e='BlinkMacSystemFont, "Inter", "Segoe UI", "Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';return t?t+", "+e:"-apple-system, "+e}(o.fontFamily)),i.setProperty("--ph-tour-text-secondary-color",(.6,(n=en(r=o.textColor).match(/^rgb\((\d+),(\d+),(\d+)\)$/))?"rgba("+n[1]+", "+n[2]+", "+n[3]+", 0.6)":r)),i.setProperty("--ph-tour-branding-text-color",rn(o.backgroundColor)),i.setProperty("--ph-tour-button-text-color",rn(o.buttonColor)),i.setProperty("--ph-tour-box-shadow",o.boxShadow),i.setProperty("--ph-tour-overlay-color",o.showOverlay?"rgba(0, 0, 0, 0.5)":"transparent"),i.setProperty("--ph-tour-z-index",String(o.zIndex)),i.setProperty("--ph-tour-button-secondary-color","transparent"),i.setProperty("--ph-tour-button-secondary-text-color",o.textColor),i.setProperty("--ph-tour-max-width","320px"),i.setProperty("--ph-tour-padding","16px")}function yn(t){var e;if(!t)return"";if("string"==typeof t)return xn(t);if("text"===t.type){var r=xn(t.text||"");if(t.marks)for(var n of t.marks)switch(n.type){case"bold":r="<strong>"+r+"</strong>";break;case"italic":r="<em>"+r+"</em>";break;case"underline":r="<u>"+r+"</u>";break;case"strike":r="<s>"+r+"</s>"}return r}var o=(null==(e=t.content)?void 0:e.map(yn).join(""))||"";switch(t.type){case"doc":default:return o;case"paragraph":return"<p>"+o+"</p>";case"heading":var i,l=(null==(i=t.attrs)?void 0:i.level)||1;return"<h"+l+">"+o+"</h"+l+">";case"bulletList":return"<ul>"+o+"</ul>";case"orderedList":return"<ol>"+o+"</ol>";case"listItem":return"<li>"+o+"</li>";case"hardBreak":return"<br>"}}function wn(t){return t.endsWith("/")?t.slice(0,-1):t}function xn(t){var e=cn.createElement("div");return e.textContent=t,e.innerHTML}function _n(t){var e=[];return t.content&&function t(r){var n,o;"image"===r.type&&null!=(n=r.attrs)&&n.src&&e.push(r.attrs.src),null==(o=r.content)||o.forEach(t)}(t.content),e}function kn(t){return t.contentHtml?Se.sanitize(t.contentHtml,{ADD_TAGS:["iframe"],ADD_ATTR:["allowfullscreen","frameborder","referrerpolicy"]}):yn(t.content)}var Tn=0;function Cn(t,e,r,n,o,i){e||(e={});var l,a,u=e;if("ref"in u)for(a in u={},e)"ref"==a?l=e[a]:u[a]=e[a];var c={type:t,props:u,key:r,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Tn,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof t&&(l=t.defaultProps))for(a in l)void 0===u[a]&&(u[a]=l[a]);return s.vnode&&s.vnode(c),c}var Sn=Cn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Cn("path",{d:"M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm146 272q66 0 121.5-35.5T682-393h-52q-23 40-63 61.5T480.5-310q-46.5 0-87-21T331-393h-53q26 61 81 96.5T480-261Zm0 181q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})}),An=Cn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Cn("path",{d:"M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm20 194h253v-49H354v49ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})}),qn=Cn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Cn("path",{d:"M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm146.174 116Q413-417 358.5-379.5T278-280h53q22-42 62.173-65t87.5-23Q528-368 567.5-344.5T630-280h52q-25-63-79.826-100-54.826-37-122-37ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})}),Mn=Cn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Cn("path",{d:"M480-417q-67 0-121.5 37.5T278-280h404q-25-63-80-100t-122-37Zm-183-72 50-45 45 45 31-36-45-45 45-45-31-36-45 45-50-45-31 36 45 45-45 45 31 36Zm272 0 44-45 51 45 31-36-45-45 45-45-31-36-51 45-44-45-31 36 44 45-44 45 31 36ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142 0 241-99t99-241q0-142-99-241t-241-99q-142 0-241 99t-99 241q0 142 99 241t241 99Z"})}),En=Cn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Cn("path",{d:"M479.504-261Q537-261 585.5-287q48.5-26 78.5-72.4 6-11.6-.75-22.6-6.75-11-20.25-11H316.918Q303-393 296.5-382t-.5 22.6q30 46.4 78.5 72.4 48.5 26 105.004 26ZM347-578l27 27q7.636 8 17.818 8Q402-543 410-551q8-8 8-18t-8-18l-42-42q-8.8-9-20.9-9-12.1 0-21.1 9l-42 42q-8 7.636-8 17.818Q276-559 284-551q8 8 18 8t18-8l27-27Zm267 0 27 27q7.714 8 18 8t18-8q8-7.636 8-17.818Q685-579 677-587l-42-42q-8.8-9-20.9-9-12.1 0-21.1 9l-42 42q-8 7.714-8 18t8 18q7.636 8 17.818 8Q579-543 587-551l27-27ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})});Cn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 0 24 24",width:"48",children:Cn("path",{d:"M2 20h2c.55 0 1-.45 1-1v-9c0-.55-.45-1-1-1H2v11zm19.83-7.12c.11-.25.17-.52.17-.8V11c0-1.1-.9-2-2-2h-5.5l.92-4.65c.05-.22.02-.46-.08-.66-.23-.45-.52-.86-.88-1.22L14 2 7.59 8.41C7.21 8.79 7 9.3 7 9.83v7.84C7 18.95 8.05 20 9.34 20h8.11c.7 0 1.36-.37 1.72-.97l2.66-6.15z"})}),Cn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 0 24 24",width:"48",children:Cn("path",{d:"M22 4h-2c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h2V4zM2.17 11.12c-.11.25-.17.52-.17.8V13c0 1.1.9 2 2 2h5.5l-.92 4.65c-.05.22-.02.46.08.66.23.45.52.86.88 1.22L10 22l6.41-6.41c.38-.38.59-.89.59-1.42V6.34C17 5.05 15.95 4 14.66 4H6.55c-.7 0-1.36.37-1.72.97l-2.66 6.15z"})});var Ln=function(t){var{fill:e="currentColor"}={};return Cn("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:e,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"close-survey-title-adam",children:[Cn("title",{id:"close-survey-title",className:"adam-testing",children:"Close survey"}),Cn("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.164752 0.164752C0.384422 -0.0549175 0.740578 -0.0549175 0.960248 0.164752L6 5.20451L11.0398 0.164752C11.2594 -0.0549175 11.6156 -0.0549175 11.8352 0.164752C12.0549 0.384422 12.0549 0.740578 11.8352 0.960248L6.79549 6L11.8352 11.0398C12.0549 11.2594 12.0549 11.6156 11.8352 11.8352C11.6156 12.0549 11.2594 12.0549 11.0398 11.8352L6 6.79549L0.960248 11.8352C0.740578 12.0549 0.384422 12.0549 0.164752 11.8352C-0.0549175 11.6156 -0.0549175 11.2594 0.164752 11.0398L5.20451 6L0.164752 0.960248C-0.0549175 0.740578 -0.0549175 0.384422 0.164752 0.164752Z",fill:e})]})},In=Cn("svg",{width:"77",height:"14",viewBox:"0 0 77 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Cn("g",{"clip-path":"url(#clip0_2415_6911)",children:[Cn("mask",{id:"mask0_2415_6911",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"77",height:"14",children:Cn("path",{d:"M0.5 0H76.5V14H0.5V0Z",fill:"white"})}),Cn("g",{mask:"url(#mask0_2415_6911)",children:[Cn("path",{d:"M5.77226 8.02931C5.59388 8.37329 5.08474 8.37329 4.90634 8.02931L4.4797 7.20672C4.41155 7.07535 4.41155 6.9207 4.4797 6.78933L4.90634 5.96669C5.08474 5.62276 5.59388 5.62276 5.77226 5.96669L6.19893 6.78933C6.26709 6.9207 6.26709 7.07535 6.19893 7.20672L5.77226 8.02931ZM5.77226 12.6946C5.59388 13.0386 5.08474 13.0386 4.90634 12.6946L4.4797 11.872C4.41155 11.7406 4.41155 11.586 4.4797 11.4546L4.90634 10.632C5.08474 10.288 5.59388 10.288 5.77226 10.632L6.19893 11.4546C6.26709 11.586 6.26709 11.7406 6.19893 11.872L5.77226 12.6946Z",fill:"#1D4AFF"}),Cn("path",{d:"M0.5 10.9238C0.5 10.508 1.02142 10.2998 1.32637 10.5938L3.54508 12.7327C3.85003 13.0267 3.63405 13.5294 3.20279 13.5294H0.984076C0.716728 13.5294 0.5 13.3205 0.5 13.0627V10.9238ZM0.5 8.67083C0.5 8.79459 0.551001 8.91331 0.641783 9.00081L5.19753 13.3927C5.28831 13.4802 5.41144 13.5294 5.53982 13.5294H8.0421C8.47337 13.5294 8.68936 13.0267 8.3844 12.7327L1.32637 5.92856C1.02142 5.63456 0.5 5.84278 0.5 6.25854V8.67083ZM0.5 4.00556C0.5 4.12932 0.551001 4.24802 0.641783 4.33554L10.0368 13.3927C10.1276 13.4802 10.2508 13.5294 10.3791 13.5294H12.8814C13.3127 13.5294 13.5287 13.0267 13.2237 12.7327L1.32637 1.26329C1.02142 0.969312 0.5 1.17752 0.5 1.59327V4.00556ZM5.33931 4.00556C5.33931 4.12932 5.39033 4.24802 5.4811 4.33554L14.1916 12.7327C14.4965 13.0267 15.0179 12.8185 15.0179 12.4028V9.99047C15.0179 9.86671 14.9669 9.74799 14.8762 9.66049L6.16568 1.26329C5.86071 0.969307 5.33931 1.17752 5.33931 1.59327V4.00556ZM11.005 1.26329C10.7 0.969307 10.1786 1.17752 10.1786 1.59327V4.00556C10.1786 4.12932 10.2296 4.24802 10.3204 4.33554L14.1916 8.06748C14.4965 8.36148 15.0179 8.15325 15.0179 7.7375V5.3252C15.0179 5.20144 14.9669 5.08272 14.8762 4.99522L11.005 1.26329Z",fill:"#F9BD2B"}),Cn("path",{d:"M21.0852 10.981L16.5288 6.58843C16.2238 6.29443 15.7024 6.50266 15.7024 6.91841V13.0627C15.7024 13.3205 15.9191 13.5294 16.1865 13.5294H23.2446C23.5119 13.5294 23.7287 13.3205 23.7287 13.0627V12.5032C23.7287 12.2455 23.511 12.0396 23.2459 12.0063C22.4323 11.9042 21.6713 11.546 21.0852 10.981ZM18.0252 12.0365C17.5978 12.0365 17.251 11.7021 17.251 11.2901C17.251 10.878 17.5978 10.5436 18.0252 10.5436C18.4527 10.5436 18.7996 10.878 18.7996 11.2901C18.7996 11.7021 18.4527 12.0365 18.0252 12.0365Z",fill:"currentColor"}),Cn("path",{d:"M0.5 13.0627C0.5 13.3205 0.716728 13.5294 0.984076 13.5294H3.20279C3.63405 13.5294 3.85003 13.0267 3.54508 12.7327L1.32637 10.5938C1.02142 10.2998 0.5 10.508 0.5 10.9238V13.0627ZM5.33931 5.13191L1.32637 1.26329C1.02142 0.969306 0.5 1.17752 0.5 1.59327V4.00556C0.5 4.12932 0.551001 4.24802 0.641783 4.33554L5.33931 8.86412V5.13191ZM1.32637 5.92855C1.02142 5.63455 0.5 5.84278 0.5 6.25853V8.67083C0.5 8.79459 0.551001 8.91331 0.641783 9.00081L5.33931 13.5294V9.79717L1.32637 5.92855Z",fill:"#1D4AFF"}),Cn("path",{d:"M10.1787 5.3252C10.1787 5.20144 10.1277 5.08272 10.0369 4.99522L6.16572 1.26329C5.8608 0.969306 5.33936 1.17752 5.33936 1.59327V4.00556C5.33936 4.12932 5.39037 4.24802 5.48114 4.33554L10.1787 8.86412V5.3252ZM5.33936 13.5294H8.04214C8.47341 13.5294 8.6894 13.0267 8.38443 12.7327L5.33936 9.79717V13.5294ZM5.33936 5.13191V8.67083C5.33936 8.79459 5.39037 8.91331 5.48114 9.00081L10.1787 13.5294V9.99047C10.1787 9.86671 10.1277 9.74803 10.0369 9.66049L5.33936 5.13191Z",fill:"#F54E00"}),Cn("path",{d:"M29.375 11.6667H31.3636V8.48772H33.0249C34.8499 8.48772 36.0204 7.4443 36.0204 5.83052C36.0204 4.21681 34.8499 3.17334 33.0249 3.17334H29.375V11.6667ZM31.3636 6.84972V4.81136H32.8236C33.5787 4.81136 34.0318 5.19958 34.0318 5.83052C34.0318 6.4615 33.5787 6.84972 32.8236 6.84972H31.3636ZM39.618 11.7637C41.5563 11.7637 42.9659 10.429 42.9659 8.60905C42.9659 6.78905 41.5563 5.45438 39.618 5.45438C37.6546 5.45438 36.2701 6.78905 36.2701 8.60905C36.2701 10.429 37.6546 11.7637 39.618 11.7637ZM38.1077 8.60905C38.1077 7.63838 38.7118 6.97105 39.618 6.97105C40.5116 6.97105 41.1157 7.63838 41.1157 8.60905C41.1157 9.57972 40.5116 10.2471 39.618 10.2471C38.7118 10.2471 38.1077 9.57972 38.1077 8.60905ZM46.1482 11.7637C47.6333 11.7637 48.6402 10.8658 48.6402 9.81025C48.6402 7.33505 45.2294 8.13585 45.2294 7.16518C45.2294 6.8983 45.5189 6.72843 45.9342 6.72843C46.3622 6.72843 46.8782 6.98318 47.0418 7.54132L48.527 6.94678C48.2375 6.06105 47.1677 5.45438 45.8713 5.45438C44.4743 5.45438 43.6058 6.25518 43.6058 7.21372C43.6058 9.53118 46.9663 8.88812 46.9663 9.84665C46.9663 10.1864 46.6391 10.417 46.1482 10.417C45.4434 10.417 44.9525 9.94376 44.8015 9.3735L43.3164 9.93158C43.6436 10.8537 44.6001 11.7637 46.1482 11.7637ZM53.4241 11.606L53.2982 10.0651C53.0843 10.1743 52.8074 10.2106 52.5808 10.2106C52.1278 10.2106 51.8257 9.89523 51.8257 9.34918V7.03172H53.3612V5.55145H51.8257V3.78001H49.9755V5.55145H48.9687V7.03172H49.9755V9.57972C49.9755 11.06 51.0202 11.7637 52.3921 11.7637C52.7696 11.7637 53.122 11.7031 53.4241 11.606ZM59.8749 3.17334V6.47358H56.376V3.17334H54.3874V11.6667H56.376V8.11158H59.8749V11.6667H61.8761V3.17334H59.8749ZM66.2899 11.7637C68.2281 11.7637 69.6378 10.429 69.6378 8.60905C69.6378 6.78905 68.2281 5.45438 66.2899 5.45438C64.3265 5.45438 62.942 6.78905 62.942 8.60905C62.942 10.429 64.3265 11.7637 66.2899 11.7637ZM64.7796 8.60905C64.7796 7.63838 65.3837 6.97105 66.2899 6.97105C67.1835 6.97105 67.7876 7.63838 67.7876 8.60905C67.7876 9.57972 67.1835 10.2471 66.2899 10.2471C65.3837 10.2471 64.7796 9.57972 64.7796 8.60905ZM73.2088 11.4725C73.901 11.4725 74.5177 11.242 74.845 10.8416V11.424C74.845 12.1034 74.2786 12.5767 73.4102 12.5767C72.7935 12.5767 72.2523 12.2854 72.1642 11.788L70.4776 12.0428C70.7042 13.1955 71.925 13.972 73.4102 13.972C75.361 13.972 76.6574 12.8679 76.6574 11.2298V5.55145H74.8324V6.07318C74.4926 5.69705 73.9136 5.45438 73.171 5.45438C71.409 5.45438 70.3014 6.61918 70.3014 8.46345C70.3014 10.3077 71.409 11.4725 73.2088 11.4725ZM72.1012 8.46345C72.1012 7.55345 72.655 6.97105 73.5109 6.97105C74.3793 6.97105 74.9331 7.55345 74.9331 8.46345C74.9331 9.37345 74.3793 9.95585 73.5109 9.95585C72.655 9.95585 72.1012 9.37345 72.1012 8.46345Z",fill:"currentColor"})]})]}),Cn("defs",{children:Cn("clipPath",{id:"clip0_2415_6911",children:Cn("rect",{width:"76",height:"14",fill:"white",transform:"translate(0.5)"})})})]});function zn(t){var{button:e,variant:r,onClick:n,cursorStyle:o}=t,i="ph-tour-button ph-tour-button--"+r;return"link"===e.action&&e.link?Cn("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",class:i,onClick:()=>n(e),children:e.text}):Cn("button",{class:i,onClick:()=>n(e),style:o,children:e.text})}function jn(t){var e,r,n,{step:o,appearance:i,stepIndex:l,totalSteps:a,onNext:u,onPrevious:s,onDismiss:c,onButtonClick:h}=t,d=null!==(e=null==i?void 0:i.whiteLabel)&&void 0!==e&&e,f=l>=a-1,p=0===l,v=!(o.buttons||"button"!==o.progressionTrigger&&fn(o)),m=!!o.buttons,g=!!(u||s||c||h),b=g?void 0:{cursor:"default"},y=!d&&p,w=t=>{h&&h(t)};return Cn(E,{children:[Cn("button",{class:"ph-tour-dismiss",onClick:c,"aria-label":"Close tour",style:b,children:Ln()}),Cn("div",{class:"ph-tour-content",dangerouslySetInnerHTML:{__html:kn(o)}}),Cn("div",{class:"ph-tour-footer",children:[a>1&&Cn("span",{class:"ph-tour-progress",children:[l+1," of ",a]}),Cn("div",{class:"ph-tour-buttons",children:[v&&Cn(E,{children:[!p&&Cn("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:s,style:b,children:"Back"}),Cn("button",{class:"ph-tour-button ph-tour-button--primary",onClick:u,style:b,children:f?"Done":"Next"})]}),m&&Cn(E,{children:[(null==(r=o.buttons)?void 0:r.secondary)&&Cn(zn,{button:o.buttons.secondary,variant:"secondary",onClick:w,cursorStyle:b}),(null==(n=o.buttons)?void 0:n.primary)&&Cn(zn,{button:o.buttons.primary,variant:"primary",onClick:w,cursorStyle:b})]})]})]}),y&&Cn("a",{href:g?"https://posthog.com/docs/product-tours":void 0,target:g?"_blank":void 0,rel:g?"noopener noreferrer":void 0,class:"ph-tour-branding",style:g?void 0:{cursor:"default",pointerEvents:"none"},children:["Tour by ",In]})]})}Cn("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Cn("path",{d:"M5.30769 10.6923L4.77736 11.2226C4.91801 11.3633 5.10878 11.4423 5.30769 11.4423C5.5066 11.4423 5.69737 11.3633 5.83802 11.2226L5.30769 10.6923ZM15.5303 1.53033C15.8232 1.23744 15.8232 0.762563 15.5303 0.46967C15.2374 0.176777 14.7626 0.176777 14.4697 0.46967L15.5303 1.53033ZM1.53033 5.85429C1.23744 5.56139 0.762563 5.56139 0.46967 5.85429C0.176777 6.14718 0.176777 6.62205 0.46967 6.91495L1.53033 5.85429ZM5.83802 11.2226L15.5303 1.53033L14.4697 0.46967L4.77736 10.162L5.83802 11.2226ZM0.46967 6.91495L4.77736 11.2226L5.83802 10.162L1.53033 5.85429L0.46967 6.91495Z",fill:"currentColor"})});var Rn=[qn,An,Sn],Pn=[Mn,qn,An,Sn,En];function Dn(t){var{value:e,onChange:r,onSubmit:n,isInteractive:o}=t,i=Br(null);return Fr((()=>{o&&setTimeout((()=>{var t;return null==(t=i.current)?void 0:t.focus()}),100)}),[o]),Cn("textarea",{ref:i,class:"ph-tour-survey-textarea",rows:3,placeholder:"Your feedback (optional)...",value:e,onInput:t=>r(t.target.value),onKeyDown(t){"Enter"===t.key&&t.metaKey&&o&&(t.preventDefault(),null==n||n())},disabled:!o,style:o?void 0:{cursor:"default"}})}function $n(t){var{survey:e,onSubmit:r,isInteractive:n}=t,[o,i]=Or(null),l=e.scale||5,a=t=>{n&&(i(t),null==r||r(t))};if("emoji"===(e.display||"emoji"))return Cn("div",{class:"ph-tour-survey-rating-container",children:[Cn("div",{class:"ph-tour-survey-rating-emoji",children:(3===l?Rn:Pn).map(((t,e)=>{var r=e+1;return Cn("button",{type:"button",class:"ph-tour-survey-emoji-button "+(o===r?"ph-tour-survey-emoji-button--active":""),onClick:()=>a(r),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+r,children:t},e)}))}),(e.lowerBoundLabel||e.upperBoundLabel)&&Cn("div",{class:"ph-tour-survey-rating-labels",children:[Cn("span",{children:e.lowerBoundLabel}),Cn("span",{children:e.upperBoundLabel})]})]});var u=function(t){switch(t){case 5:default:return[1,2,3,4,5];case 10:return[0,1,2,3,4,5,6,7,8,9,10]}}(l);return Cn("div",{class:"ph-tour-survey-rating-container",children:[Cn("div",{class:"ph-tour-survey-rating-numbers",style:{gridTemplateColumns:"repeat("+u.length+", minmax(0, 1fr))"},children:u.map((t=>Cn("button",{type:"button",class:"ph-tour-survey-number-button "+(o===t?"ph-tour-survey-number-button--active":""),onClick:()=>a(t),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+t,children:t},t)))}),(e.lowerBoundLabel||e.upperBoundLabel)&&Cn("div",{class:"ph-tour-survey-rating-labels",children:[Cn("span",{children:e.lowerBoundLabel}),Cn("span",{children:e.upperBoundLabel})]})]})}function Nn(t){var e,{step:r,appearance:n,stepIndex:o,totalSteps:i,onPrevious:l,onSubmit:a,onDismiss:u}=t,[s,c]=Or(""),h=r.survey,d=null!==(e=null==n?void 0:n.whiteLabel)&&void 0!==e&&e,f=0===o,p="open"===(null==h?void 0:h.type),v=!!(l||a||u),m=v?void 0:{cursor:"default"},g=()=>{null==a||a(s.trim()||null)};return h?Cn(E,{children:[Cn("button",{class:"ph-tour-dismiss",onClick:u,"aria-label":"Close survey",style:m,children:Ln()}),Cn("div",{class:"ph-tour-survey-question",children:h.questionText}),p?Cn(Dn,{value:s,onChange:c,onSubmit:g,isInteractive:v}):Cn($n,{survey:h,onSubmit:a,isInteractive:v}),Cn("div",{class:"ph-tour-footer",children:[Cn("span",{class:"ph-tour-progress",children:[o+1," of ",i]}),Cn("div",{class:"ph-tour-buttons",children:[!f&&Cn("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:l,style:m,children:h.backButtonText||"Back"}),p&&Cn("button",{class:"ph-tour-button ph-tour-button--primary",onClick:g,style:m,children:h.submitButtonText||"Submit"})]})]}),!d&&Cn("a",{href:v?"https://posthog.com/product-tours":void 0,target:v?"_blank":void 0,rel:v?"noopener noreferrer":void 0,class:"ph-tour-branding",style:v?void 0:{cursor:"default",pointerEvents:"none"},children:["Survey by ",In]})]}):Cn("div",{})}var Zn=e;function On(t){return{top:"bottom",bottom:"top",left:"right",right:"left"}[t]}function Fn(t){var e,{tour:r,step:n,stepIndex:o,totalSteps:i,targetElement:l,onNext:u,onPrevious:s,onDismiss:c,onSurveySubmit:h,onButtonClick:d}=t,[f,p]=Or("entering"),[v,m]=Or(null),[g,b]=Or(null),[y,w]=Or(!1),[x,_]=Or(n),[k,T]=Or(o),C=Br(null),S=Br(o),A=Br(!1),q=Br(l),M=!fn(x)||"survey"===x.type;Hr((()=>{q.current=l}),[l]);var E=function(t,e){return Lr=8,Vr((function(){return t}),[])}((()=>{var t=q.current;if(t&&C.current){var e=C.current.getBoundingClientRect(),r={width:e.width,height:e.height},n=t.getBoundingClientRect();m(function(t,e){var r=hn.innerWidth,n=hn.innerHeight,{width:o,height:i}=e,l=t.top,a=n-t.bottom,u=t.left,s=t.top+t.height/2,c=t.left+t.width/2;if(r-t.right>=o+vn){var h=t.right+vn,{clamped:d,offset:f}=gn(s,i,n);return{position:"right",top:d,left:h,arrowOffset:f}}if(u>=o+vn){var p=r-t.left+vn,{clamped:v,offset:m}=gn(s,i,n);return{position:"left",top:v,right:p,arrowOffset:m}}if(l>=i+vn&&i+vn>a){var g=n-t.top+vn,{clamped:b,offset:y}=gn(c,o,r);return{position:"top",bottom:g,left:b,arrowOffset:y}}var w=t.bottom+vn,{clamped:x,offset:_}=gn(c,o,r);return{position:"bottom",top:w,left:x,arrowOffset:_}}(n,r)),b(function(t,e){return void 0===e&&(e=8),{top:t.top-e+"px",left:t.left-e+"px",width:t.width+2*e+"px",height:t.height+2*e+"px"}}(n)),w(!0)}}));Hr((()=>{!M&&!y&&C.current&&l&&E()}),[M,y,l,E]),Fr((()=>{var t=o,e=()=>{S.current===t&&(p("visible"),A.current=!1)},r=()=>{q.current&&fn(n)&&(q.current.isConnected||(q.current=pn(n).element),q.current)?function(t,e){var r=t.getBoundingClientRect(),n=Zn.innerHeight,o=Zn.innerWidth,i=n/6,l=o/6;if(i>r.top||r.bottom>n-i||l>r.left||r.right>o-l){t.scrollIntoView({behavior:"smooth",block:"center"});var a=r.top,u=0,s=!1,c=()=>{if(!s){var r=t.getBoundingClientRect();if(1>Math.abs(r.top-a)){if(++u>=3)return s=!0,void e()}else u=0;a=r.top,setTimeout(c,50)}};setTimeout(c,30),setTimeout((()=>{s||(s=!0,e())}),500)}else e()}(q.current,(()=>{S.current===t&&(E(),setTimeout(e,50))})):setTimeout(e,50)};if(S.current===o)return S.current=o,A.current=!0,void r();S.current=o,A.current=!0,p("exiting"),setTimeout((()=>{S.current===t&&(fn(n)&&(m(null),b(null),w(!1)),_(n),T(o),p("entering"),r())}),150)}),[l,o,n,E]),Fr((()=>{if("visible"===f&&!M){var t=()=>{A.current||E()};return br(Zn,"scroll",t,{capture:!0}),br(Zn,"resize",t),()=>{null==Zn||Zn.removeEventListener("scroll",t,!0),null==Zn||Zn.removeEventListener("resize",t)}}}),[E,f,M]),Fr((()=>{var t=t=>{"Escape"===t.key&&c("escape_key")};return br(Zn,"keydown",t),()=>{null==Zn||Zn.removeEventListener("keydown",t)}}),[c]);var L,I,z="visible"===f,j="survey"===x.type,R=M||y,P=a({},x.maxWidth&&{width:"min("+x.maxWidth+"px, calc(100vw - 16px))",maxWidth:"min("+x.maxWidth+"px, calc(100vw - 16px))"},M?a({},{top:"auto",right:"auto",bottom:"auto",left:"auto",transform:"none"},(I=function(t,e,r){switch(void 0===e&&(e=_t),e){case pt:return{top:"0",left:"0",transform:"translate(30px, 30px)"};case vt:return{top:"0",right:"0",transform:"translate(-30px, 30px)"};case mt:return{top:"0",left:"50%",transform:"translate(-50%, 30px)"};case gt:return{top:"50%",left:"0",transform:"translate(30px, -50%)"};case bt:return{top:"50%",right:"0",transform:"translate(-30px, -50%)"};case yt:return{top:"50%",left:"50%",transform:"translate(-50%, -50%)"};case wt:return{left:"30px"};case xt:return{left:"50%",transform:"translateX(-50%)"};default:return{right:void 0===kt&&void 0===ft?"60px":"30px"}}}(0,null!==(L=x.modalPosition)&&void 0!==L?L:Le.MiddleCenter),"top"in I||"bottom"in I?I:a({},I,{bottom:"30px"}))):(()=>{if(!v)return{};var t="left"===v.position||"right"===v.position;return{top:Pe(v.top)?"auto":v.top+"px",bottom:Pe(v.bottom)?"auto":v.bottom+"px",left:Pe(v.left)?"auto":v.left+"px",right:Pe(v.right)?"auto":v.right+"px",transform:t?"translateY(-50%)":"translateX(-50%)"}})());return Cn("div",{class:"ph-tour-container",children:[!1!==(null==(e=r.appearance)?void 0:e.dismissOnClickOutside)&&Cn("div",{class:"ph-tour-click-overlay",onClick(t){t.stopPropagation(),c("user_clicked_outside")}}),Cn("div",{class:"ph-tour-modal-overlay",style:{opacity:M&&z?1:0,transition:"opacity 150ms ease-out",pointerEvents:"none"}}),Cn("div",{class:"ph-tour-spotlight",style:a({},z&&R&&g?g:{top:"50%",left:"50%",width:"0px",height:"0px"},{opacity:!M&&z&&R?1:0,transition:"opacity 150ms ease-out"},"click"===x.progressionTrigger&&!M&&{pointerEvents:"auto",cursor:"pointer"}),onClick:"click"!==x.progressionTrigger||M?void 0:t=>{t.stopPropagation(),q.current&&q.current.click(),u()}}),Cn("div",{ref:C,class:"ph-tour-tooltip "+(M?"ph-tour-tooltip--modal":"")+" "+(j?"ph-tour-survey-step":""),style:a({},P,{opacity:z&&R?1:0,transition:"opacity 150ms ease-out"}),onClick(t){t.stopPropagation()},children:[!M&&v&&Cn("div",{class:"ph-tour-arrow ph-tour-arrow--"+On(v.position),style:0!==v.arrowOffset?{"--ph-tour-arrow-offset":v.arrowOffset+"px"}:void 0}),j?Cn(Nn,{step:x,appearance:r.appearance,stepIndex:k,totalSteps:i,onSubmit:h,onPrevious:s,onDismiss:()=>c("user_clicked_skip")}):Cn(jn,{step:x,appearance:r.appearance,stepIndex:k,totalSteps:i,onNext:u,onPrevious:s,onDismiss:()=>c("user_clicked_skip"),onButtonClick:d})]})]})}function Hn(t){var{class:e,href:r,onClick:n,children:o}=t;return Cn("a",{class:e,href:r,target:"_blank",rel:"noopener noreferrer",onClick:n,children:o})}function Bn(t){var{class:e,onClick:r,children:n}=t;return Cn("div",{class:e,role:"button",tabIndex:0,onClick:r,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),r())},style:{cursor:"pointer"},children:n})}function Vn(t){var{class:e,children:r}=t;return Cn("div",{class:e,children:r})}function Un(t){return Cn("div",{class:"ph-tour-banner-wrapper",children:Cn("div",{class:"ph-tour-banner-slide",children:Cn(Qn,a({},t))})})}function Qn(t){var e,{step:r,onDismiss:n,onActionClick:o,displayFrequency:i}=t,l=null!==(e=r.bannerConfig)&&void 0!==e?e:{behavior:"sticky"},a=l.action,u="always"!==i,s=["ph-tour-banner","sticky"===l.behavior&&"ph-tour-banner--sticky","custom"===l.behavior&&"ph-tour-banner--custom"].filter(Boolean).join(" "),c=Cn(E,{children:[Cn("div",{class:"ph-tour-banner-content",dangerouslySetInnerHTML:{__html:kn(r)}}),u&&Cn("button",{class:"ph-tour-banner-dismiss",onClick(t){t.stopPropagation(),t.preventDefault(),n()},"aria-label":"Close banner",children:Ln()})]});return"link"===(null==a?void 0:a.type)&&a.link?Cn(Hn,{class:s,href:a.link,onClick:o,children:c}):"trigger_tour"===(null==a?void 0:a.type)&&o?Cn(Bn,{class:s,onClick:o,children:c}):Cn(Vn,{class:s,children:c})}function Wn(t){var e,r;return!(null==(e=t.conditions)||!e.events||0>=(null==(r=t.conditions.events.values)?void 0:r.length))}function Yn(t){var e,r;return!(null==(e=t.conditions)||!e.actions||0>=(null==(r=t.conditions.actions.values)?void 0:r.length))}class Kn{constructor(){this.Wr={}}on(t,e){return this.Wr[t]||(this.Wr[t]=[]),this.Wr[t].push(e),()=>{this.Wr[t]=this.Wr[t].filter((t=>t!==e))}}emit(t,e){for(var r of this.Wr[t]||[])r(e);for(var n of this.Wr["*"]||[])n(t,e)}}function Gn(t,e,r){if(Ne(t))return!1;switch(r){case"exact":return t===e;case"contains":var n=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(t);case"regex":try{return new RegExp(e).test(t)}catch(t){return!1}default:return!1}}class Xn{constructor(t){this.sn=new Kn,this.an=(t,e)=>this.ln(t,e)&&this.un(t,e)&&this.hn(t,e)&&this.dn(t,e),this.ln=(t,e)=>null==e||!e.event||(null==t?void 0:t.event)===(null==e?void 0:e.event),this._instance=t,this.cn=new Set,this.vn=new Set}init(){var t,e;Pe(null==(t=this._instance)?void 0:t._addCaptureHook)||(null==(e=this._instance)||e._addCaptureHook(((t,e)=>{this.on(t,e)})))}register(t){var e,r;if(!Pe(null==(e=this._instance)?void 0:e._addCaptureHook)&&(t.forEach((t=>{var e,r;null==(e=this.vn)||e.add(t),null==(r=t.steps)||r.forEach((t=>{var e;null==(e=this.cn)||e.add((null==t?void 0:t.event)||"")}))})),null!=(r=this._instance)&&r.autocapture)){var n,o=new Set;t.forEach((t=>{var e;null==(e=t.steps)||e.forEach((t=>{null!=t&&t.selector&&o.add(null==t?void 0:t.selector)}))})),null==(n=this._instance)||n.autocapture.setElementSelectors(o)}}on(t,e){var r;null!=e&&0!=t.length&&(this.cn.has(t)||this.cn.has(null==e?void 0:e.event))&&this.vn&&(null==(r=this.vn)?void 0:r.size)>0&&this.vn.forEach((t=>{this.fn(e,t)&&this.sn.emit("actionCaptured",t.name)}))}pn(t){this.onAction("actionCaptured",(e=>t(e)))}fn(t,e){if(null==(null==e?void 0:e.steps))return!1;for(var r of e.steps)if(this.an(t,r))return!0;return!1}onAction(t,e){return this.sn.on(t,e)}un(t,e){if(null!=e&&e.url){var r,n=null==t||null==(r=t.properties)?void 0:r.$current_url;if(!n||"string"!=typeof n)return!1;if(!Gn(n,e.url,e.url_matching||"contains"))return!1}return!0}hn(t,e){return!!this.gn(t,e)&&!!this.mn(t,e)&&!!this.yn(t,e)}gn(t,e){var r;if(null==e||!e.href)return!0;var n=this.bn(t);if(n.length>0)return n.some((t=>Gn(t.href,e.href,e.href_matching||"exact")));var o,i=(null==t||null==(r=t.properties)?void 0:r.$elements_chain)||"";return!!i&&Gn((o=i.match(/(?::|")href="(.*?)"/))?o[1]:"",e.href,e.href_matching||"exact")}mn(t,e){var r;if(null==e||!e.text)return!0;var n=this.bn(t);if(n.length>0)return n.some((t=>Gn(t.text,e.text,e.text_matching||"exact")||Gn(t.$el_text,e.text,e.text_matching||"exact")));var o,i,l,a=(null==t||null==(r=t.properties)?void 0:r.$elements_chain)||"";return!!a&&(o=function(t){for(var e,r=[],n=/(?::|")text="(.*?)"/g;!Ne(e=n.exec(t));)r.includes(e[1])||r.push(e[1]);return r}(a),i=e.text,l=e.text_matching||"exact",o.some((t=>Gn(t,i,l))))}yn(t,e){var r,n;if(null==e||!e.selector)return!0;var o=null==t||null==(r=t.properties)?void 0:r.$element_selectors;if(null!=o&&o.includes(e.selector))return!0;var i=(null==t||null==(n=t.properties)?void 0:n.$elements_chain)||"";if(e.selector_regex&&i)try{return new RegExp(e.selector_regex).test(i)}catch(t){return!1}return!1}bn(t){var e;return null==(null==t||null==(e=t.properties)?void 0:e.$elements)?[]:null==t?void 0:t.properties.$elements}dn(t,e){return null==e||!e.properties||0===e.properties.length||_r(e.properties.reduce(((t,e)=>{var r=je(e.value)?e.value.map(String):null!=e.value?[String(e.value)]:[];return t[e.key]={values:r,operator:e.operator||"exact"},t}),{}),null==t?void 0:t.properties)}}class Jn{constructor(t){this._n=[],this._instance=t,this.wn=new Map,this.xn=new Map,this.kn=new Map}Sn(t,e){return!!t&&_r(t.propertyFilters,null==e?void 0:e.properties)}Cn(t,e){var r=new Map;return t.forEach((t=>{var n;null==(n=t.conditions)||null==(n=n[e])||null==(n=n.values)||n.forEach((e=>{if(null!=e&&e.name){var n=r.get(e.name)||[];n.push(t.id),r.set(e.name,n)}}))})),r}In(t,e,r){var n=(r===ht?this.wn:this.xn).get(t),o=[];return this.Tn((t=>{o=t.filter((t=>null==n?void 0:n.includes(t.id)))})),o.filter((n=>{var o,i=null==(o=n.conditions)||null==(o=o[r])||null==(o=o.values)?void 0:o.find((e=>e.name===t));return this.Sn(i,e)}))}register(t){var e;Pe(null==(e=this._instance)?void 0:e._addCaptureHook)||(this.En(t),this.Mn(t))}Mn(t){var e=t.filter((t=>{var e,r;return(null==(e=t.conditions)?void 0:e.actions)&&(null==(r=t.conditions)||null==(r=r.actions)||null==(r=r.values)?void 0:r.length)>0}));0!==e.length&&(null==this.Pn&&(this.Pn=new Xn(this._instance),this.Pn.init(),this.Pn.pn((t=>{this.onAction(t)}))),e.forEach((t=>{var e,r,n,o,i;t.conditions&&null!=(e=t.conditions)&&e.actions&&null!=(r=t.conditions)&&null!=(r=r.actions)&&r.values&&(null==(n=t.conditions)||null==(n=n.actions)||null==(n=n.values)?void 0:n.length)>0&&(null==(o=this.Pn)||o.register(t.conditions.actions.values),null==(i=t.conditions)||null==(i=i.actions)||null==(i=i.values)||i.forEach((e=>{if(e&&e.name){var r=this.kn.get(e.name);r&&r.push(t.id),this.kn.set(e.name,r||[t.id])}})))})))}En(t){var e,r=t.filter((t=>{var e,r;return(null==(e=t.conditions)?void 0:e.events)&&(null==(r=t.conditions)||null==(r=r.events)||null==(r=r.values)?void 0:r.length)>0})),n=t.filter((t=>{var e,r;return(null==(e=t.conditions)?void 0:e.cancelEvents)&&(null==(r=t.conditions)||null==(r=r.cancelEvents)||null==(r=r.values)?void 0:r.length)>0}));0===r.length&&0===n.length||(null==(e=this._instance)||e._addCaptureHook(((t,e)=>{this.onEvent(t,e)})),this.wn=this.Cn(t,ht),this.xn=this.Cn(t,dt))}onEvent(t,e){var r,n,o=this.Rn(),i=(null==e||null==(r=e.properties)?void 0:r.$survey_id)||(null==e||null==(n=e.properties)?void 0:n.$product_tour_id);if(i&&this.getActivatedIds().includes(i)){var l=this.On(t,i);if("consume"===l)return o.info("event consumed activated item, removing it",{event:t,itemId:i}),void this.Ln([i]);if("persist"===l)return o.info("shown item promoted to persisted activation",{event:t,itemId:i}),void this.Fn(i)}if(this.xn.has(t)){var a=this.In(t,e,dt);a.length>0&&(o.info("cancel event matched, cancelling items",{event:t,itemsToCancel:a.map((t=>t.id))}),this.Ln(a.map((t=>t.id))),a.forEach((t=>this.An(t.id))))}if(this.wn.has(t)){o.info("event name matched",{event:t,eventPayload:e,items:this.wn.get(t)});var u=this.In(t,e,ht);this.$n(u.map((t=>t.id)))}}onAction(t){this.kn.has(t)&&this.$n(this.kn.get(t)||[])}$n(t){0!==t.length&&(this._n=[...new Set([...this._n,...t])],this.Rn().info("updating activated items",{activatedItems:this.getActivatedIds()}))}Fn(t){this._n=this._n.filter((e=>e!==t));var e=this.Dn();e.includes(t)||this.Nn([...e,t])}Ln(t){var e=new Set(t);this._n=this._n.filter((t=>!e.has(t)));var r=this.Dn(),n=r.filter((t=>!e.has(t)));n.length!==r.length&&this.Nn(n)}Dn(){var t,e=this.qn();return(null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[e])||[]}getActivatedIds(){return[...new Set([...this.Dn(),...this._n])].filter((t=>!this.jn(t)))}reset(){this._n=[],this.Dn().length>0&&this.Nn([])}getEventToItemsMap(){return this.wn}Bn(){return this.Pn}}var to=mr("[Product Tour Event Receiver]");class eo extends Jn{constructor(t){super(t)}qn(){return J}Hn(){return et}Tn(t){var e;null==(e=this._instance)||null==(e=e.productTours)||e.getProductTours(t)}An(t){var e;null==(e=this._instance)||null==(e=e.productTours)||e.cancelPendingTour(t)}Rn(){return to}Nn(t){var e;null==(e=this._instance)||null==(e=e.persistence)||e.register({[J]:t})}jn(t){if(!t)return!0;var e=""+ln+t;return!(!qr.A(""+on+t)&&!qr.A(e))}On(t){return t===this.Hn()?"consume":"ignore"}getTours(){return this.getActivatedIds()}}var ro,no=mr("[Product Tours]"),oo=o,io=e,lo=new Map;function ao(t){var e=new Date;return(!t.start_date||new Date(t.start_date)<=e)&&(!t.end_date||e<=new Date(t.end_date))}function uo(t,r){var o;return ao(t)&&function(t,r){var n=t.conditions;if(null==n||!n.url)return!0;var o=function(t){var r,n=null==e||null==(r=e.location)?void 0:r.href;return Pe(n)?void 0:function(t,e){var r,n=null==t||null==(r=t.config)?void 0:r.get_current_url;if(!Re(n))return e;try{var o=n(e);return De(o)&&o?o:e}catch(t){return vr.error("Error in get_current_url, falling back to window.location.href",t),e}}(t,n)}(r);if(!o)return!1;o!==ro&&(lo.clear(),ro=o);var i=lo.get(t.id);if(!Pe(i))return i;var l,a=n.urlMatchType||Ie.Icontains;return l=a===Ie.Exact?wn(o)===wn(n.url):wr[a]([n.url],[o]),lo.set(t.id,l),l}(t,r)&&function(t,r){var o,l,a;if(!t||0===t.length)return!0;if(!i)return!1;var u,s,c,h,d,f,p=(u={userAgentDataPlatform:null==n||null==(o=n.userAgentData)?void 0:o.platform,maxTouchPoints:null==n?void 0:n.maxTouchPoints,screenWidth:null==e||null==(l=e.screen)?void 0:l.width,screenHeight:null==e||null==(a=e.screen)?void 0:a.height,devicePixelRatio:null==e?void 0:e.devicePixelRatio},(f=function(t){return ir.test(t)?We:or.test(t)?Ye:nr.test(t)?Ke:new RegExp(Je,"i").test(t)?Je:new RegExp("("+Ge+"|WPDesktop)","i").test(t)?Ge:/iPad/.test(t)?Ve:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?Ue:lr.test(t)?Qe:/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(Xe,"i").test(t)?Xe:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(Oe).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?Fe:Be:new RegExp("(pda|"+Oe+")","i").test(t)?er:new RegExp(He,"i").test(t)&&!new RegExp(He+" pc","i").test(t)?rr:""}(i))===Ve||f===Be||"Kobo"===f||"Kindle Fire"===f||f===rr?He:f===We||f===Ke||f===Ye||f===Je?"Console":f===Ue?"Wearable":f?Oe:"Android"===(null==u?void 0:u.userAgentDataPlatform)&&(null!==(s=null==u?void 0:u.maxTouchPoints)&&void 0!==s?s:0)>0?600>Math.min(null!==(c=null==u?void 0:u.screenWidth)&&void 0!==c?c:0,null!==(h=null==u?void 0:u.screenHeight)&&void 0!==h?h:0)/(null!==(d=null==u?void 0:u.devicePixelRatio)&&void 0!==d?d:1)?Oe:He:"Desktop");return wr.icontains(t,[p])}(null==(o=t.conditions)?void 0:o.deviceTypes)}var so="ph-product-tour-container",co="data-ph-tour-trigger";class ho{constructor(t){var e=this;this.tc=null,this.ec=0,this.rc=!1,this.nc=!1,this.oc=null,this.ic=new Map,this.lc=new Map,this.ac=new Set,this.uc=new Set,this.sc=()=>{oo.hidden&&this.oc?(clearInterval(this.oc),this.oc=null):oo.hidden||this.oc||(this.oc=setInterval((()=>{this.cc()}),1e3),this.cc())},this.nextStep=()=>{this.tc&&(this.As("product tour step completed",{[rt]:this.tc.id,[it]:this.tc.steps[this.ec].id,[lt]:this.ec}),this.tc.steps.length-1>this.ec?(this.hc(this.ec+1),this.dc()):this.fc())},this.previousStep=()=>{this.tc&&0!==this.ec&&(this.hc(this.ec-1),this.dc())},this.dismissTour=function(t){void 0===t&&(t="user_clicked_skip"),e.tc&&(e.As("product tour dismissed",{[rt]:e.tc.id,[it]:e.tc.steps[e.ec].id,[lt]:e.ec,$product_tour_dismiss_reason:t}),e.rc||(qr.q(""+ln+e.tc.id,!0),e._instance.capture("$set",{$set:{["$product_tour_dismissed/"+e.tc.id]:!0}})),io.dispatchEvent(new CustomEvent("PHProductTourDismissed",{detail:{tourId:e.tc.id,reason:t}})),e.vc())},this.mc=()=>{var t;if(this.tc){var e=this.gc();if(e){var r=null==(t=e.bannerConfig)?void 0:t.action;this.As("product tour banner action clicked",{[rt]:this.tc.id,[nt]:this.tc.name,[ot]:this.tc.current_iteration||1,[it]:e.id,[lt]:this.ec,[at]:null==r?void 0:r.type,[ut]:null==r?void 0:r.link,[st]:null==r?void 0:r.tourId}),"trigger_tour"===(null==r?void 0:r.type)&&r.tourId&&(this.vc(),this.showTourById(r.tourId))}}},this.bc=t=>{if(this.tc){var e=this.tc.steps[this.ec];e&&this.As("product tour button clicked",a({[rt]:this.tc.id,[nt]:this.tc.name,[ot]:this.tc.current_iteration||1,[it]:e.id,[lt]:this.ec,$product_tour_button_text:t.text,[at]:t.action},t.link&&{[ut]:t.link},t.tourId&&{[st]:t.tourId}))}switch(t.action){case"dismiss":this.dismissTour("user_clicked_skip");break;case"next_step":this.nextStep();break;case"previous_step":this.previousStep();break;case"link":this.fc();break;case"trigger_tour":t.tourId&&(this.fc(),this.showTourById(t.tourId))}},this._instance=t,this.yc=new eo(t)}wc(t){var e=t.filter((t=>!t.disable_image_preload)).flatMap((t=>t.steps.flatMap(_n)));for(var r of e)this.uc.has(r)||(this.uc.add(r),(new Image).src=r)}gc(){var t;if(!this.tc)return null;var e=this.tc.steps[this.ec];if(!e)return null;var r=null!==(t=this._instance.config.override_display_language)&&void 0!==t?t:navigator.language||navigator.userLanguage;return function(t,e){var r;if(!e||!t.translations)return t;var n=t.translations,o=null!==(r=n[e])&&void 0!==r?r:n[e.split("-")[0]];if(!o)return sn.info('No matching translation for "'+e+'" in step '+t.id+", using default"),t;var i=a({},t);return Pe(o.content)||(i.content=o.content),Pe(o.contentHtml)||(i.contentHtml=o.contentHtml),o.buttons&&i.buttons&&(i.buttons={primary:i.buttons.primary&&a({},i.buttons.primary,o.buttons.primary),secondary:i.buttons.secondary&&a({},i.buttons.secondary,o.buttons.secondary)}),o.survey&&i.survey&&(i.survey=a({},i.survey,o.survey)),i}(e,null!=r?r:null)}hc(t){this.ec=t,this.xc()}xc(){this.tc&&!this.rc&&Er.q(an,{tourId:this.tc.id,stepIndex:this.ec})}_c(){Er.P(an)}kc(){var t=Er.A(an);if(!t)return null;try{return JSON.parse(t)}catch(t){return null}}start(){if(!this.oc){var t=this.kc();t?this.Tc(t.tourId,t.stepIndex,(()=>{this.Cc()})):this.Cc()}}Cc(){this.oc=setInterval((()=>{this.cc()}),1e3),this.cc(!0),br(oo,"visibilitychange",this.sc)}Tc(t,e,r){var n;null==(n=this._instance.productTours)||n.getProductTours((n=>{var o=n.find((e=>e.id===t));o?(this.tc=o,this.ec=e,this.nc=!0,this.dc()):n.length>0&&this._c(),r()}))}stop(){this.oc&&(clearInterval(this.oc),this.oc=null),oo.removeEventListener("visibilitychange",this.sc),this.Sc(),this.Ac(),this.vc()}cc(t){var e;null!=oo&&oo.getElementById("__POSTHOG_TOOLBAR__")||null==(e=this._instance.productTours)||e.getProductTours((t=>{if(0!==t.length){this.wc(t);var e=new Set,r=t.filter((t=>!this.ac.has(t.id)&&(Wn(t)||Yn(t))));r.length>0&&(this.yc.register(r),r.forEach((t=>this.ac.add(t.id))));var n=this.tc?[]:this.yc.getTours();for(var o of t){var i,l=null==(i=o.conditions)?void 0:i.selector;if(l&&(e.add(o.id),this.qc(o,l)),!this.tc){var a=Yn(o)||Wn(o);if(o.auto_launch&&this.Mc(o)){if(!a){this.Ec(o,"auto");continue}n.includes(o.id)&&this.Ec(o,"event")}}}this.ic.forEach((t=>{var{tour:r}=t;e.has(r.id)||this.Lc(r.id)}))}else this.Sc()}),t)}Ec(t,e){var r,n=(null==(r=t.conditions)?void 0:r.autoShowDelaySeconds)||0;n>0?this.isTourPending(t.id)||this.queueTourWithDelay(t.id,n,e):this.showTour(t,{reason:e})}Mc(t){var e,r,n;if(!uo(t,this._instance))return no.info("Tour "+t.id+" failed conditions check"),!1;var o,i,l=null!==(e=t.display_frequency)&&void 0!==e?e:"until_interacted",a=""+nn+t.id,u=""+on+t.id,s=""+ln+t.id;switch(l){case"show_once":if(qr.A(a))return no.info("Tour "+t.id+" already shown (show_once frequency)"),!1;break;case"until_interacted":if(qr.A(u)||qr.A(s))return no.info("Tour "+t.id+" already completed or dismissed"),!1}if(!function(t){if(!t)return!0;var{days:e,types:r}=t;if(!e||!r||0===r.length)return!0;var n=null;for(var o of r){var i=qr.A(""+un+o);if(i)try{var l=JSON.parse(i),a=new Date(l);isNaN(a.getTime())||n&&n>=a||(n=a)}catch(t){}}return!n||function(t,e){if(!t||!e)return!0;var r="string"==typeof e?new Date(e):e,n=new Date,o=Math.abs(n.getTime()-r.getTime());return Math.ceil(o/864e5)>t}(e,n)}(null==(r=t.conditions)?void 0:r.seenTourWaitPeriod))return no.info("Cannot show tour "+t.id+": user has seen a "+(null==(o=t.conditions)||null==(o=o.seenTourWaitPeriod)?void 0:o.types)+" tour within the last "+(null==(i=t.conditions)||null==(i=i.seenTourWaitPeriod)?void 0:i.days)+" days."),!1;if(!this.Ic({flagKey:t.internal_targeting_flag_key}))return no.info("Tour "+t.id+" failed feature flag check: "+t.internal_targeting_flag_key),!1;var c=null==(n=t.conditions)?void 0:n.linkedFlagVariant;return!!this.Ic({flagKey:t.linked_flag_key,flagVariant:c})||(no.info("Tour "+t.id+" failed feature flag check: "+t.linked_flag_key+", variant: "+c),!1)}showTour(t,e){var r,n=null!==(r=null==e?void 0:e.reason)&&void 0!==r?r:"auto";this.cancelPendingTour(t.id),this.tc=t,this.hc(0);var o=this.dc();return o?(this.As(et,{[rt]:t.id,[nt]:t.name,[ot]:t.current_iteration||1,$product_tour_render_reason:n,$product_tour_type:t.tour_type}),this.rc||(qr.q(""+nn+t.id,!0),qr.q(""+un+t.tour_type,(new Date).toISOString()),this._instance.capture("$set",{$set:{["$product_tour_shown/"+t.id]:!0}}))):this.vc(),o}showTourById(t,e){var r;no.info("showTourById("+t+")"),null==(r=this._instance.productTours)||r.getProductTours((r=>{var n=r.find((e=>e.id===t));n?this.showTour(n,{reason:null!=e?e:"api"}):no.warn("could not find tour",t)}))}previewTour(t){no.info("Previewing tour "+t.id),this.vc(),this.rc=!0,this.tc=t,this.ec=0,this.dc()}fc(){this.tc&&(this.As("product tour completed",{[rt]:this.tc.id,$product_tour_steps_count:this.tc.steps.length}),this.rc||(qr.q(""+on+this.tc.id,!0),this._instance.capture("$set",{$set:{["$product_tour_completed/"+this.tc.id]:!0}})),io.dispatchEvent(new CustomEvent("PHProductTourCompleted",{detail:{tourId:this.tc.id}})),this.vc())}dc(t){var e;if(void 0===t&&(t=0),!this.tc)return!1;var r=this.gc();if(!r)return no.warn("Step "+this.ec+" not found in tour "+this.tc.id),this.vc(),!1;if("banner"===r.type)return this.zc(),this.nc=!1,this.jc(),!0;if("survey"===r.type)return r.survey?(this.Rc(),!0):(no.warn("Unable to render survey step - survey data not found"),!1);if(!fn(r))return this.zc(),this.nc=!1,this.Pc(null),!0;var n=pn(r),o={$use_manual_selector:null!==(e=r.useManualSelector)&&void 0!==e&&e,$inference_data_present:!!r.inferenceData},i=this.ec>0?this.tc.steps[this.ec-1]:null,l="click"===(null==i?void 0:i.progressionTrigger)||this.nc;if("not_found"===n.error||"not_visible"===n.error){if(l&&20>t)return setTimeout((()=>{this.dc(t+1)}),100),!1;var u=100*t;return this.Dc(n,a({$product_tour_waited_for_element:l,$product_tour_wait_duration_ms:u},o)),0!==this.ec||this.nc?(no.warn('Tour "'+this.tc.name+'" dismissed: element for step '+this.ec+" became unavailable ("+n.error+")"+(l?" after waiting "+u+"ms":"")),this.dismissTour("element_unavailable"),!1):(no.warn('Tour "'+this.tc.name+'" failed to show: element for first step not found ('+n.error+")"),!1)}if("multiple_matches"===n.error&&this.Dc(n,o),!n.element)return!1;var s=n.element,c=function(t){var e;return{tag:t.tagName,id:t.id||void 0,classes:t.className||void 0,text:(null==(e=t.innerText)?void 0:e.slice(0,100))||void 0}}(s);return this.zc(a({[ct]:r.selector,$product_tour_step_selector_found:!0,$product_tour_step_element_tag:c.tag,$product_tour_step_element_id:c.id,$product_tour_step_element_classes:c.classes,$product_tour_step_element_text:c.text},o)),this.nc=!1,this.Pc(s),!0}Pc(t,e,r){if(this.tc){var n=this.gc();if(n){var{shadow:o}=function(t,e){var r=so+"-"+t.id,n=oo.querySelector("."+r);if(n&&n.shadowRoot)return{shadow:n.shadowRoot,isNewlyCreated:!1};var o=oo.createElement("div");o.className=r,bn(o,t.appearance);var i=o.attachShadow({mode:"open"}),l=dn(e);return l&&i.appendChild(l),oo.body.appendChild(o),{shadow:i,isNewlyCreated:!0}}(this.tc,this._instance);X(Cn(Fn,{tour:this.tc,step:n,stepIndex:this.ec,totalSteps:this.tc.steps.length,targetElement:t,onNext:this.nextStep,onPrevious:this.previousStep,onDismiss:r||this.dismissTour,onSurveySubmit:e,onButtonClick:this.bc}),o)}}}jc(){if(this.tc){var t=this.gc();if(t){var e,r=function(t,e,r){var n,o=so+"-"+t.id,i=oo.querySelector("."+o);if(i&&i.shadowRoot)return{shadow:i.shadowRoot,isNewlyCreated:!1};var l=oo.createElement("div");l.className=o,bn(l,t.appearance),Pe(null==r||null==(n=r.animation)?void 0:n.duration)||l.style.setProperty("--ph-tour-banner-animation-duration",r.animation.duration+"ms");var a=l.attachShadow({mode:"open"}),u=dn(e);if(u&&a.appendChild(u),"custom"===(null==r?void 0:r.behavior)&&r.selector){var s=oo.querySelector(r.selector);if(!s)return no.warn("Custom banner container not found: "+r.selector+". Banner will not be displayed."),null;s.appendChild(l)}else oo.body.insertBefore(l,oo.body.firstChild);return{shadow:a,isNewlyCreated:!0}}(this.tc,this._instance,t.bannerConfig);if(!r)return this.As("product tour banner container selector failed",{[rt]:this.tc.id,$product_tour_banner_selector:null==t||null==(e=t.bannerConfig)?void 0:e.selector}),void this.dismissTour("container_unavailable");var{shadow:n}=r;X(Cn(Un,{step:t,onDismiss:()=>this.dismissTour("user_clicked_skip"),onActionClick:this.mc,displayFrequency:this.tc.display_frequency}),n)}}}Rc(){var t,e,r;if(this.tc){var n=this.tc.id,o=this.gc();if(o){var i=o.linkedSurveyId,l=o.linkedSurveyQuestionId,u=(null==(t=o.survey)?void 0:t.questionText)||"";this.zc({$product_tour_linked_survey_id:i}),this.As("survey shown",{[Tt]:i,[St]:n,sessionRecordingUrl:null==(e=(r=this._instance).get_session_replay_url)?void 0:e.call(r)}),this.Pc(null,(t=>{var e,r,o=l?"$survey_response_"+l:"$survey_response";this.As("survey sent",a({[Tt]:i,[St]:n,[Ct]:[{id:l,question:u,response:t}],$survey_completed:!0,sessionRecordingUrl:null==(e=(r=this._instance).get_session_replay_url)?void 0:e.call(r)},!$e(t)&&{[o]:t})),no.info("Survey "+i+" completed",$e(t)?"(skipped)":"with response: "+t),this.nextStep()}),(t=>{var e,r;this.As("survey dismissed",{[Tt]:i,[St]:n,[Ct]:[{id:l,question:u,response:null}],$survey_partially_completed:!1,sessionRecordingUrl:null==(e=(r=this._instance).get_session_replay_url)?void 0:e.call(r)}),no.info("Survey "+i+" dismissed"),this.dismissTour(t)})),no.info("Rendered survey step for tour step "+this.ec)}}}Ic(t){var e,{flagKey:r,flagVariant:n}=t;if(!r)return!0;var o,i=!(null==(e=this._instance.featureFlags)||!e.isFeatureEnabled(r,{send_event:!r.startsWith("product-tour-targeting-")})),l=!0;return n&&(l=(null==(o=this._instance.featureFlags)?void 0:o.getFeatureFlag(r,{send_event:!1}))===n||"any"===n),i&&l}vc(){var t;this.tc&&(null!=(t=oo.querySelector("."+so+"-"+this.tc.id))&&t.shadowRoot&&X(null,t.shadowRoot),null==t||t.remove()),this.tc=null,this.ec=0,this.rc=!1,this.nc=!1,this._c()}qc(t,e){var r=oo.querySelector(e),n=this.ic.get(t.id);if(r){if(n){if(r===n.element)return;no.info("Trigger element changed for tour "+t.id+". Re-attaching listener."),this.Lc(t.id)}if(!r.hasAttribute(co)){var o=r=>{var n;if(this.tc)no.info("Tour "+t.id+" trigger clicked but another tour is active");else{var o;if(null==(n=this._instance.productTours)||n.getProductTours((e=>{o=e.find((e=>e.id===t.id))})),!o)return no.warn("Tour "+t.id+" no longer exists. Removing stale listener."),void this.Lc(t.id);ao(o)?(no.info("Tour "+t.id+" triggered by click on "+e),this.showTour(o,{reason:"trigger"})?r.preventDefault():no.info("Tour "+t.id+" failed to show; not intercepting click.")):no.warn("Tour "+t.id+" trigger clicked, but tour is not launched - not showing tour.")}};br(r,"click",o),r.setAttribute(co,t.id),this.ic.set(t.id,{element:r,listener:o,tour:t}),no.info("Attached trigger listener for tour "+t.id+" on "+e)}}else n&&this.Lc(t.id)}Lc(t){var e=this.ic.get(t);e&&(e.element.removeEventListener("click",e.listener),e.element.removeAttribute(co),this.ic.delete(t),no.info("Removed trigger listener for tour "+t))}Sc(){this.ic.forEach(((t,e)=>{this.Lc(e)}))}As(t,e){this.rc||this._instance.capture(t,e)}zc(t){if(this.tc){var e=this.tc.steps[this.ec];this.As("product tour step shown",a({[rt]:this.tc.id,[it]:e.id,[lt]:this.ec,$product_tour_step_type:e.type},t))}}Dc(t,e){if(this.tc){var r=this.tc.steps[this.ec];this.As("product tour step selector failed",a({[rt]:this.tc.id,[it]:r.id,[lt]:this.ec,[ct]:r.selector,$product_tour_error:t.error,$product_tour_matches_count:t.matchCount,$product_tour_failure_phase:"runtime"},e))}}getActiveProductTours(t){var e;null==(e=this._instance.productTours)||e.getProductTours(((e,r)=>{if(null!=r&&r.isLoaded){var n=e.filter((t=>this.Mc(t)));t(n,r)}else t([],r)}))}resetTour(t){qr.P(""+nn+t),qr.P(""+on+t),qr.P(""+ln+t)}resetAllTours(){var t=null==io?void 0:io.localStorage;if(t){for(var e=[],r=0;t.length>r;r++){var n=t.key(r);(null!=n&&n.startsWith(nn)||null!=n&&n.startsWith(on)||null!=n&&n.startsWith(ln)||null!=n&&n.startsWith(un))&&e.push(n)}e.forEach((t=>qr.P(t)))}}cancelPendingTour(t){var e=this.lc.get(t);e&&(clearTimeout(e),this.lc.delete(t),no.info("Cancelled pending tour: "+t))}Ac(){this.lc.forEach((t=>clearTimeout(t))),this.lc.clear()}isTourPending(t){return this.lc.has(t)}queueTourWithDelay(t,e,r){no.info("Queueing tour "+t+" with "+e+"s delay");var n=setTimeout((()=>{this.lc.delete(t),no.info("Delay elapsed for tour "+t+", showing now"),this.showTourById(t,r)}),1e3*e);this.lc.set(t,n)}}function fo(t,e){if(o){var r=new ho(t);return e&&r.start(),r}}l.__PosthogExtensions__=l.__PosthogExtensions__||{},l.__PosthogExtensions__.generateProductTours=fo,t.default=fo,t.elementIsVisible=sr,t.findElement=fr,t.getElementPath=function(t,e){if(void 0===e&&(e=4),!t)return null;for(var r=[],n=t;n&&e>r.length&&"BODY"!==n.tagName;){var o=n.tagName.toLowerCase();n.id?o+="#"+n.id:n.classList.length&&(o+="."+n.classList[0]),r.unshift(o),n=n.parentElement}return r.join(" > ")},Object.defineProperty(t,"__esModule",{value:!0})}({});
2
2
  //# sourceMappingURL=product-tours.js.map