posthog-js 1.316.1 → 1.317.0
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.
- package/dist/array.full.es5.js +1 -1
- package/dist/array.full.js +1 -1
- package/dist/array.full.no-external.js +1 -1
- package/dist/array.js +1 -1
- package/dist/array.no-external.js +1 -1
- package/dist/customizations.full.js +1 -1
- package/dist/element-inference.d.ts +21 -0
- package/dist/element-inference.js +2 -0
- package/dist/element-inference.js.map +1 -0
- package/dist/lazy-recorder.js +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/module.d.ts +12 -0
- package/dist/module.full.d.ts +12 -0
- package/dist/module.full.js +1 -1
- package/dist/module.full.js.map +1 -1
- package/dist/module.full.no-external.d.ts +12 -0
- package/dist/module.full.no-external.js +1 -1
- package/dist/module.full.no-external.js.map +1 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/dist/module.no-external.d.ts +12 -0
- package/dist/module.no-external.js +1 -1
- package/dist/module.no-external.js.map +1 -1
- package/dist/posthog-recorder.js +1 -1
- package/dist/product-tours-preview.d.ts +12 -0
- package/dist/product-tours-preview.js +1 -1
- package/dist/product-tours-preview.js.map +1 -1
- package/dist/product-tours.js +1 -1
- package/dist/product-tours.js.map +1 -1
- package/dist/src/entrypoints/element-inference.es.d.ts +1 -0
- package/dist/src/entrypoints/product-tours.d.ts +2 -0
- package/dist/src/extensions/product-tours/element-inference.d.ts +30 -0
- package/dist/src/extensions/product-tours/index.d.ts +2 -0
- package/dist/src/extensions/product-tours/product-tours-utils.d.ts +2 -1
- package/dist/src/posthog-product-tours-types.d.ts +7 -0
- package/dist/surveys-preview.d.ts +12 -0
- package/lib/package.json +5 -1
- package/lib/src/entrypoints/element-inference.es.d.ts +1 -0
- package/lib/src/entrypoints/element-inference.es.js +8 -0
- package/lib/src/entrypoints/element-inference.es.js.map +1 -0
- package/lib/src/entrypoints/product-tours.d.ts +2 -0
- package/lib/src/entrypoints/product-tours.js +5 -0
- package/lib/src/entrypoints/product-tours.js.map +1 -1
- package/lib/src/extensions/product-tours/components/ProductTourTooltip.js +5 -2
- package/lib/src/extensions/product-tours/components/ProductTourTooltip.js.map +1 -1
- package/lib/src/extensions/product-tours/components/ProductTourTooltipInner.js +1 -1
- package/lib/src/extensions/product-tours/components/ProductTourTooltipInner.js.map +1 -1
- package/lib/src/extensions/product-tours/element-inference.d.ts +30 -0
- package/lib/src/extensions/product-tours/element-inference.js +296 -0
- package/lib/src/extensions/product-tours/element-inference.js.map +1 -0
- package/lib/src/extensions/product-tours/index.d.ts +2 -0
- package/lib/src/extensions/product-tours/index.js +4 -1
- package/lib/src/extensions/product-tours/index.js.map +1 -1
- package/lib/src/extensions/product-tours/preview.js +1 -1
- package/lib/src/extensions/product-tours/preview.js.map +1 -1
- package/lib/src/extensions/product-tours/product-tours-utils.d.ts +2 -1
- package/lib/src/extensions/product-tours/product-tours-utils.js +12 -0
- package/lib/src/extensions/product-tours/product-tours-utils.js.map +1 -1
- package/lib/src/extensions/product-tours/product-tours.js +15 -31
- package/lib/src/extensions/product-tours/product-tours.js.map +1 -1
- package/lib/src/posthog-product-tours-types.d.ts +7 -0
- package/lib/src/posthog-product-tours-types.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -3
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { JSX } from 'preact';
|
|
2
2
|
|
|
3
|
+
interface InferredSelector {
|
|
4
|
+
autoData: string;
|
|
5
|
+
text: string | null;
|
|
6
|
+
excludeText?: boolean;
|
|
7
|
+
}
|
|
8
|
+
|
|
3
9
|
interface JSONContent {
|
|
4
10
|
type?: string;
|
|
5
11
|
attrs?: Record<string, any>;
|
|
@@ -30,12 +36,18 @@ interface ProductTourStep {
|
|
|
30
36
|
selector?: string;
|
|
31
37
|
progressionTrigger: 'button' | 'click';
|
|
32
38
|
content: JSONContent | null;
|
|
39
|
+
/** Pre-rendered HTML content from the editor. If present, SDK should use this instead of rendering from JSONContent. */
|
|
40
|
+
contentHtml?: string;
|
|
33
41
|
/** Inline survey question config - if present, this is a survey step */
|
|
34
42
|
survey?: ProductTourSurveyQuestion;
|
|
35
43
|
/** ID of the auto-created survey for this step (set by backend) */
|
|
36
44
|
linkedSurveyId?: string;
|
|
37
45
|
/** ID of the survey question (set by backend, used for event tracking) */
|
|
38
46
|
linkedSurveyQuestionId?: string;
|
|
47
|
+
/** Enhanced element data for more reliable lookup at runtime */
|
|
48
|
+
inferenceData?: InferredSelector;
|
|
49
|
+
/** Maximum tooltip width in pixels (defaults to 320px) */
|
|
50
|
+
maxWidth?: number;
|
|
39
51
|
}
|
|
40
52
|
interface ProductTourAppearance {
|
|
41
53
|
backgroundColor?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function r(){return r=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var e in o)({}).hasOwnProperty.call(o,e)&&(r[e]=o[e])}return r},r.apply(null,arguments)}var t,o,e,n,i,l,u,a,s={},f=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=Array.isArray;function p(r,t){for(var o in t)r[o]=t[o];return r}function h(r){var t=r.parentNode;t&&t.removeChild(r)}function v(r,t,n,i,l){var u={type:r,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==l?++e:l,__i:-1,__u:0};return null==l&&null!=o.vnode&&o.vnode(u),u}function b(r){return r.children}function g(r,t){this.props=r,this.context=t}function m(r,t){if(null==t)return r.__?m(r.__,r.__i+1):null;for(var o;t<r.__k.length;t++)if(null!=(o=r.__k[t])&&null!=o.__e)return o.__e;return"function"==typeof r.type?m(r):null}function y(r){var t,o;if(null!=(r=r.__)&&null!=r.__c){for(r.__e=r.__c.base=null,t=0;t<r.__k.length;t++)if(null!=(o=r.__k[t])&&null!=o.__e){r.__e=r.__c.base=o.__e;break}return y(r)}}function x(r){(!r.__d&&(r.__d=!0)&&n.push(r)&&!w.__r++||i!==o.debounceRendering)&&((i=o.debounceRendering)||l)(w)}function w(){var r,t,e,i,l,a,s,f,c;for(n.sort(u);r=n.shift();)r.__d&&(t=n.length,i=void 0,a=(l=(e=r).__v).__e,f=[],c=[],(s=e.__P)&&((i=p({},l)).__v=l.__v+1,o.vnode&&o.vnode(i),M(s,i,l,e.__n,void 0!==s.ownerSVGElement,32&l.__u?[a]:null,f,null==a?m(l):a,!!(32&l.__u),c),i.__.__k[i.__i]=i,V(f,i,c),i.__e!=a&&y(i)),n.length>t&&n.sort(u));w.__r=0}function C(r,t,o,e,n,i,l,u,a,c,p){var h,g,y,x,w,C=e&&e.__k||f,T=t.length;for(o.__d=a,function(r,t,o){var e,n,i,l,u,a=t.length,s=o.length,f=s,c=0;for(r.__k=[],e=0;e<a;e++)null!=(n=r.__k[e]=null==(n=t[e])||"boolean"==typeof n||"function"==typeof n?null:"string"==typeof n||"number"==typeof n||"bigint"==typeof n||n.constructor==String?v(null,n,null,null,n):d(n)?v(b,{children:n},null,null,null):void 0===n.constructor&&n.__b>0?v(n.type,n.props,n.key,n.ref?n.ref:null,n.__v):n)?(n.__=r,n.__b=r.__b+1,u=k(n,o,l=e+c,f),n.__i=u,i=null,-1!==u&&(f--,(i=o[u])&&(i.__u|=131072)),null==i||null===i.__v?(-1==u&&c--,"function"!=typeof n.type&&(n.__u|=65536)):u!==l&&(u===l+1?c++:u>l?f>a-l?c+=u-l:c--:c=u<l&&u==l-1?u-l:0,u!==e+c&&(n.__u|=65536))):(i=o[e])&&null==i.key&&i.__e&&(i.__e==r.__d&&(r.__d=m(i)),j(i,i,!1),o[e]=null,f--);if(f)for(e=0;e<s;e++)null!=(i=o[e])&&0==(131072&i.__u)&&(i.__e==r.__d&&(r.__d=m(i)),j(i,i))}(o,t,C),a=o.__d,h=0;h<T;h++)null!=(y=o.__k[h])&&"boolean"!=typeof y&&"function"!=typeof y&&(g=-1===y.__i?s:C[y.__i]||s,y.__i=h,M(r,y,g,n,i,l,u,a,c,p),x=y.__e,y.ref&&g.ref!=y.ref&&(g.ref&&S(g.ref,null,y),p.push(y.ref,y.__c||x,y)),null==w&&null!=x&&(w=x),65536&y.__u||g.__k===y.__k?a=q(y,a,r):"function"==typeof y.type&&void 0!==y.__d?a=y.__d:x&&(a=x.nextSibling),y.__d=void 0,y.__u&=-196609);o.__d=a,o.__e=w}function q(r,t,o){var e,n;if("function"==typeof r.type){for(e=r.__k,n=0;e&&n<e.length;n++)e[n]&&(e[n].__=r,t=q(e[n],t,o));return t}return r.__e!=t&&(o.insertBefore(r.__e,t||null),t=r.__e),t&&t.nextSibling}function k(r,t,o,e){var n=r.key,i=r.type,l=o-1,u=o+1,a=t[o];if(null===a||a&&n==a.key&&i===a.type)return o;if(e>(null!=a&&0==(131072&a.__u)?1:0))for(;l>=0||u<t.length;){if(l>=0){if((a=t[l])&&0==(131072&a.__u)&&n==a.key&&i===a.type)return l;l--}if(u<t.length){if((a=t[u])&&0==(131072&a.__u)&&n==a.key&&i===a.type)return u;u++}}return-1}function T(r,t,o){"-"===t[0]?r.setProperty(t,null==o?"":o):r[t]=null==o?"":"number"!=typeof o||c.test(t)?o:o+"px"}function _(r,t,o,e,n){var i;r:if("style"===t)if("string"==typeof o)r.style.cssText=o;else{if("string"==typeof e&&(r.style.cssText=e=""),e)for(t in e)o&&t in o||T(r.style,t,"");if(o)for(t in o)e&&o[t]===e[t]||T(r.style,t,o[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in r?t.toLowerCase().slice(2):t.slice(2),r.l||(r.l={}),r.l[t+i]=o,o?e?o.u=e.u:(o.u=Date.now(),r.addEventListener(t,i?L:Z,i)):r.removeEventListener(t,i?L:Z,i);else{if(n)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in r)try{r[t]=null==o?"":o;break r}catch(r){}"function"==typeof o||(null==o||!1===o&&"-"!==t[4]?r.removeAttribute(t):r.setAttribute(t,o))}}function Z(r){var t=this.l[r.type+!1];if(r.t){if(r.t<=t.u)return}else r.t=Date.now();return t(o.event?o.event(r):r)}function L(r){return this.l[r.type+!0](o.event?o.event(r):r)}function M(r,t,e,n,i,l,u,a,s,f){var c,h,v,m,y,x,w,q,k,T,_,$,Z,L,M,V=t.type;if(void 0!==t.constructor)return null;128&e.__u&&(s=!!(32&e.__u),l=[a=t.__e=e.__e]),(c=o.__b)&&c(t);r:if("function"==typeof V)try{if(q=t.props,k=(c=V.contextType)&&n[c.__c],T=c?k?k.props.value:c.__:n,e.__c?w=(h=t.__c=e.__c).__=h.__E:("prototype"in V&&V.prototype.render?t.__c=h=new V(q,T):(t.__c=h=new g(q,T),h.constructor=V,h.render=I),k&&k.sub(h),h.props=q,h.state||(h.state={}),h.context=T,h.__n=n,v=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=V.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=p({},h.__s)),p(h.__s,V.getDerivedStateFromProps(q,h.__s))),m=h.props,y=h.state,h.__v=t,v)null==V.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==V.getDerivedStateFromProps&&q!==m&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(q,T),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(q,h.__s,T)||t.__v===e.__v)){for(t.__v!==e.__v&&(h.props=q,h.state=h.__s,h.__d=!1),t.__e=e.__e,t.__k=e.__k,t.__k.forEach((function(r){r&&(r.__=t)})),_=0;_<h._sb.length;_++)h.__h.push(h._sb[_]);h._sb=[],h.__h.length&&u.push(h);break r}null!=h.componentWillUpdate&&h.componentWillUpdate(q,h.__s,T),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(m,y,x)}))}if(h.context=T,h.props=q,h.__P=r,h.__e=!1,$=o.__r,Z=0,"prototype"in V&&V.prototype.render){for(h.state=h.__s,h.__d=!1,$&&$(t),c=h.render(h.props,h.state,h.context),L=0;L<h._sb.length;L++)h.__h.push(h._sb[L]);h._sb=[]}else do{h.__d=!1,$&&$(t),c=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++Z<25);h.state=h.__s,null!=h.getChildContext&&(n=p(p({},n),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(x=h.getSnapshotBeforeUpdate(m,y)),C(r,d(M=null!=c&&c.type===b&&null==c.key?c.props.children:c)?M:[M],t,e,n,i,l,u,a,s,f),h.base=t.__e,t.__u&=-161,h.__h.length&&u.push(h),w&&(h.__E=h.__=null)}catch(r){t.__v=null,s||null!=l?(t.__e=a,t.__u|=s?160:32,l[l.indexOf(a)]=null):(t.__e=e.__e,t.__k=e.__k),o.__e(r,t,e)}else null==l&&t.__v===e.__v?(t.__k=e.__k,t.__e=e.__e):t.__e=H(e.__e,t,e,n,i,l,u,s,f);(c=o.diffed)&&c(t)}function V(r,t,e){t.__d=void 0;for(var n=0;n<e.length;n++)S(e[n],e[++n],e[++n]);o.__c&&o.__c(t,r),r.some((function(t){try{r=t.__h,t.__h=[],r.some((function(r){r.call(t)}))}catch(r){o.__e(r,t.__v)}}))}function H(r,o,e,n,i,l,u,a,f){var c,p,v,b,g,y,x,w=e.props,q=o.props,k=o.type;if("svg"===k&&(i=!0),null!=l)for(c=0;c<l.length;c++)if((g=l[c])&&"setAttribute"in g==!!k&&(k?g.localName===k:3===g.nodeType)){r=g,l[c]=null;break}if(null==r){if(null===k)return document.createTextNode(q);r=i?document.createElementNS("http://www.w3.org/2000/svg",k):document.createElement(k,q.is&&q),l=null,a=!1}if(null===k)w===q||a&&r.data===q||(r.data=q);else{if(l=l&&t.call(r.childNodes),w=e.props||s,!a&&null!=l)for(w={},c=0;c<r.attributes.length;c++)w[(g=r.attributes[c]).name]=g.value;for(c in w)g=w[c],"children"==c||("dangerouslySetInnerHTML"==c?v=g:"key"===c||c in q||_(r,c,null,g,i));for(c in q)g=q[c],"children"==c?b=g:"dangerouslySetInnerHTML"==c?p=g:"value"==c?y=g:"checked"==c?x=g:"key"===c||a&&"function"!=typeof g||w[c]===g||_(r,c,g,w[c],i);if(p)a||v&&(p.__html===v.__html||p.__html===r.innerHTML)||(r.innerHTML=p.__html),o.__k=[];else if(v&&(r.innerHTML=""),C(r,d(b)?b:[b],o,e,n,i&&"foreignObject"!==k,l,u,l?l[0]:e.__k&&m(e,0),a,f),null!=l)for(c=l.length;c--;)null!=l[c]&&h(l[c]);a||(c="value",void 0!==y&&(y!==r[c]||"progress"===k&&!y||"option"===k&&y!==w[c])&&_(r,c,y,w[c],!1),c="checked",void 0!==x&&x!==r[c]&&_(r,c,x,w[c],!1))}return r}function S(r,t,e){try{"function"==typeof r?r(t):r.current=t}catch(r){o.__e(r,e)}}function j(r,t,e){var n,i;if(o.unmount&&o.unmount(r),(n=r.ref)&&(n.current&&n.current!==r.__e||S(n,null,t)),null!=(n=r.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(r){o.__e(r,t)}n.base=n.__P=null,r.__c=void 0}if(n=r.__k)for(i=0;i<n.length;i++)n[i]&&j(n[i],t,e||"function"!=typeof r.type);e||null==r.__e||h(r.__e),r.__=r.__e=r.__d=void 0}function I(r,t,o){return this.constructor(r,o)}function z(r,e,n){var i,l,u;o.__&&o.__(r,e),i=!1?null:e.__k,l=[],u=[],M(e,r=e.__k=function(r,o,e){var n,i,l,u={};for(l in o)"key"==l?n=o[l]:"ref"==l?i=o[l]:u[l]=o[l];if(arguments.length>2&&(u.children=arguments.length>3?t.call(arguments,2):e),"function"==typeof r&&null!=r.defaultProps)for(l in r.defaultProps)void 0===u[l]&&(u[l]=r.defaultProps[l]);return v(r,u,n,i,null)}(b,null,[r]),i||s,s,void 0!==e.ownerSVGElement,i?null:e.firstChild?t.call(e.childNodes):null,l,i?i.__e:e.firstChild,false,u),V(l,r,u)}t=f.slice,o={__e:function(r,t,o,e){for(var n,i,l;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(r)),l=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(r,e||{}),l=n.__d),l)return n.__E=n}catch(t){r=t}throw r}},e=0,g.prototype.setState=function(r,t){var o;o=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof r&&(r=r(p({},o),this.props)),r&&p(o,r),null!=r&&this.__v&&(t&&this._sb.push(t),x(this))},g.prototype.forceUpdate=function(r){this.__v&&(this.__e=!0,r&&this.__h.push(r),x(this))},g.prototype.render=b,n=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(r,t){return r.__v.__b-t.__v.__b},w.__r=0,a=0;var Q="undefined"!=typeof window?window:void 0,A="undefined"!=typeof globalThis?globalThis:Q;"undefined"==typeof self&&(A.self=A),"undefined"==typeof File&&(A.File=function(){});var B=null==A?void 0:A.navigator,F=null==A?void 0:A.document;null==A||A.location,null==A||A.fetch,null!=A&&A.XMLHttpRequest&&"withCredentials"in new A.XMLHttpRequest&&A.XMLHttpRequest,null==A||A.AbortController,null==B||B.userAgent;var P,D,E,N,U=null!=Q?Q:{},R=0,O=[],Y=[],X=o.__b,K=o.__r,W=o.diffed,G=o.__c,J=o.unmount;function rr(r,t){o.__h&&o.__h(D,r,R||t),R=0;var e=D.__H||(D.__H={__:[],__h:[]});return r>=e.__.length&&e.__.push({__V:Y}),e.__[r]}function tr(r){return R=1,function(r,t,o){var e=rr(P++,2);if(e.t=r,!e.__c&&(e.__=[sr(void 0,t),function(r){var t=e.__N?e.__N[0]:e.__[0],o=e.t(t,r);t!==o&&(e.__N=[o,e.__[1]],e.__c.setState({}))}],e.__c=D,!D.u)){var n=function(r,t,o){if(!e.__c.__H)return!0;var n=e.__c.__H.__.filter((function(r){return r.__c}));if(n.every((function(r){return!r.__N})))return!i||i.call(this,r,t,o);var l=!1;return n.forEach((function(r){if(r.__N){var t=r.__[0];r.__=r.__N,r.__N=void 0,t!==r.__[0]&&(l=!0)}})),!(!l&&e.__c.props===r)&&(!i||i.call(this,r,t,o))};D.u=!0;var i=D.shouldComponentUpdate,l=D.componentWillUpdate;D.componentWillUpdate=function(r,t,o){if(this.__e){var e=i;i=void 0,n(r,t,o),i=e}l&&l.call(this,r,t,o)},D.shouldComponentUpdate=n}return e.__N||e.__}(sr,r)}function or(r){return R=5,function(r,t){var o=rr(P++,7);return ar(o.__H,t)?(o.__V=r(),o.i=t,o.__h=r,o.__V):o.__}((function(){return{current:r}}),[])}function er(){for(var r;r=O.shift();)if(r.__P&&r.__H)try{r.__H.__h.forEach(lr),r.__H.__h.forEach(ur),r.__H.__h=[]}catch(t){r.__H.__h=[],o.__e(t,r.__v)}}o.__b=function(r){D=null,X&&X(r)},o.__r=function(r){K&&K(r),P=0;var t=(D=r.__c).__H;t&&(E===D?(t.__h=[],D.__h=[],t.__.forEach((function(r){r.__N&&(r.__=r.__N),r.__V=Y,r.__N=r.i=void 0}))):(t.__h.forEach(lr),t.__h.forEach(ur),t.__h=[],P=0)),E=D},o.diffed=function(r){W&&W(r);var t=r.__c;t&&t.__H&&(t.__H.__h.length&&(1!==O.push(t)&&N===o.requestAnimationFrame||((N=o.requestAnimationFrame)||ir)(er)),t.__H.__.forEach((function(r){r.i&&(r.__H=r.i),r.__V!==Y&&(r.__=r.__V),r.i=void 0,r.__V=Y}))),E=D=null},o.__c=function(r,t){t.some((function(r){try{r.__h.forEach(lr),r.__h=r.__h.filter((function(r){return!r.__||ur(r)}))}catch(e){t.some((function(r){r.__h&&(r.__h=[])})),t=[],o.__e(e,r.__v)}})),G&&G(r,t)},o.unmount=function(r){J&&J(r);var t,e=r.__c;e&&e.__H&&(e.__H.__.forEach((function(r){try{lr(r)}catch(r){t=r}})),e.__H=void 0,t&&o.__e(t,e.__v))};var nr="function"==typeof requestAnimationFrame;function ir(r){var t,o=function(){clearTimeout(e),nr&&cancelAnimationFrame(t),setTimeout(r)},e=setTimeout(o,100);nr&&(t=requestAnimationFrame(o))}function lr(r){var t=D,o=r.__c;"function"==typeof o&&(r.__c=void 0,o()),D=t}function ur(r){var t=D;r.__c=r.__(),D=t}function ar(r,t){return!r||r.length!==t.length||t.some((function(t,o){return t!==r[o]}))}function sr(r,t){return"function"==typeof t?t(r):t}var fr=0;function cr(r,t,e,n,i,l){var u,a,s={};for(a in t)"ref"==a?u=t[a]:s[a]=t[a];var f={type:r,props:s,key:e,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--fr,__i:-1,__u:0,__source:i,__self:l};if("function"==typeof r&&(u=r.defaultProps))for(a in u)void 0===s[a]&&(s[a]=u[a]);return o.vnode&&o.vnode(f),f}var dr=cr("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:cr("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"})}),pr=cr("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:cr("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"})}),hr=cr("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:cr("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"})}),vr=cr("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:cr("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"})}),br=cr("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:cr("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"})}),gr=cr("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"close-survey-title",children:[cr("title",{id:"close-survey-title",children:"Close survey"}),cr("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:"black"})]}),mr=cr("svg",{width:"77",height:"14",viewBox:"0 0 77 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[cr("g",{"clip-path":"url(#clip0_2415_6911)",children:[cr("mask",{id:"mask0_2415_6911",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"77",height:"14",children:cr("path",{d:"M0.5 0H76.5V14H0.5V0Z",fill:"white"})}),cr("g",{mask:"url(#mask0_2415_6911)",children:[cr("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"}),cr("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"}),cr("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"}),cr("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"}),cr("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"}),cr("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"})]})]}),cr("defs",{children:cr("clipPath",{id:"clip0_2415_6911",children:cr("rect",{width:"76",height:"14",fill:"white",transform:"translate(0.5)"})})})]});cr("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:cr("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 yr=[hr,pr,dr],xr=[vr,hr,pr,dr,br];function wr(r){var{value:t,onChange:e,onSubmit:n,isInteractive:i}=r,l=or(null);!function(r,t){var e=rr(P++,3);!o.__s&&ar(e.__H,t)&&(e.__=r,e.i=t,D.__H.__h.push(e))}((()=>{i&&setTimeout((()=>{var r;return null==(r=l.current)?void 0:r.focus()}),100)}),[i]);return cr("textarea",{ref:l,class:"ph-tour-survey-textarea",rows:3,placeholder:"Your feedback (optional)...",value:t,onInput:r=>e(r.target.value),onKeyDown:r=>{"Enter"===r.key&&r.metaKey&&i&&(r.preventDefault(),null==n||n())},disabled:!i,style:i?void 0:{cursor:"default"}})}function Cr(r){var{survey:t,onSubmit:o,isInteractive:e}=r,[n,i]=tr(null),l=t.display||"emoji",u=t.scale||5,a=r=>{e&&(i(r),null==o||o(r))};if("emoji"===l)return cr("div",{class:"ph-tour-survey-rating-container",children:[cr("div",{class:"ph-tour-survey-rating-emoji",children:(3===u?yr:xr).map(((r,t)=>{var o=t+1;return cr("button",{type:"button",class:"ph-tour-survey-emoji-button "+(n===o?"ph-tour-survey-emoji-button--active":""),onClick:()=>a(o),style:e?void 0:{cursor:"default"},"aria-label":"Rate "+o,children:r},t)}))}),(t.lowerBoundLabel||t.upperBoundLabel)&&cr("div",{class:"ph-tour-survey-rating-labels",children:[cr("span",{children:t.lowerBoundLabel}),cr("span",{children:t.upperBoundLabel})]})]});var s=function(r){switch(r){case 5:default:return[1,2,3,4,5];case 10:return[0,1,2,3,4,5,6,7,8,9,10]}}(u);return cr("div",{class:"ph-tour-survey-rating-container",children:[cr("div",{class:"ph-tour-survey-rating-numbers",style:{gridTemplateColumns:"repeat("+s.length+", minmax(0, 1fr))"},children:s.map((r=>cr("button",{type:"button",class:"ph-tour-survey-number-button "+(n===r?"ph-tour-survey-number-button--active":""),onClick:()=>a(r),style:e?void 0:{cursor:"default"},"aria-label":"Rate "+r,children:r},r)))}),(t.lowerBoundLabel||t.upperBoundLabel)&&cr("div",{class:"ph-tour-survey-rating-labels",children:[cr("span",{children:t.lowerBoundLabel}),cr("span",{children:t.upperBoundLabel})]})]})}function qr(r){var t,{step:o,appearance:e,stepIndex:n,totalSteps:i,onPrevious:l,onSubmit:u,onDismiss:a}=r,[s,f]=tr(""),c=o.survey,d=null!==(t=null==e?void 0:e.whiteLabel)&&void 0!==t&&t,p=0===n,h="open"===(null==c?void 0:c.type),v=!!(l||u||a),g=v?void 0:{cursor:"default"},m=()=>{null==u||u(s.trim()||null)};return c?cr(b,{children:[cr("button",{class:"ph-tour-dismiss",onClick:a,"aria-label":"Close survey",style:g,children:gr}),cr("div",{class:"ph-tour-survey-question",children:c.questionText}),h?cr(wr,{value:s,onChange:f,onSubmit:m,isInteractive:v}):cr(Cr,{survey:c,onSubmit:u,isInteractive:v}),cr("div",{class:"ph-tour-footer",children:[cr("span",{class:"ph-tour-progress",children:[n+1," of ",i]}),cr("div",{class:"ph-tour-buttons",children:[!p&&cr("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:l,style:g,children:"Back"}),h&&cr("button",{class:"ph-tour-button ph-tour-button--primary",onClick:m,style:g,children:"Submit"})]})]}),!d&&cr("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 ",mr]})]}):cr("div",{})}var kr={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},Tr=function(r,t){var{debugEnabled:o}=void 0===t?{}:t,e={o:function(t){if(Q&&(U.POSTHOG_DEBUG||o)&&!(r=>void 0===r)(Q.console)&&Q.console){for(var e=("__rrweb_original__"in Q.console[t]?Q.console[t].__rrweb_original__:Q.console[t]),n=arguments.length,i=new Array(n>1?n-1:0),l=1;l<n;l++)i[l-1]=arguments[l];e(r,...i)}},info:function(){for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];e.o("log",...t)},warn:function(){for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];e.o("warn",...t)},error:function(){for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];e.o("error",...t)},critical:function(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];console.error(r,...o)},uninitializedWarning:r=>{e.error("You must initialize PostHog before calling "+r)},createLogger:(t,o)=>Tr(r+" "+t,o)};return e},_r=Tr("[PostHog.js]").createLogger,Zr=_r("[Stylesheet Loader]"),Lr=(r,t,o)=>{var e=r.createElement("style");return e.innerText=t,e||(Zr.error("prepare_external_dependency_stylesheet returned null"),null)};_r("[Surveys]"),null!=B&&B.sendBeacon;var Mr="#020617",Vr={backgroundColor:"#eeeded"};function Hr(r){if(r.startsWith("#")){var t=r.replace(/^#/,"");return/^[0-9A-Fa-f]{3}$/.test(t)&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),/^[0-9A-Fa-f]{6}$/.test(t)?"rgb("+parseInt(t.slice(0,2),16)+","+parseInt(t.slice(2,4),16)+","+parseInt(t.slice(4,6),16)+")":"rgb(255, 255, 255)"}return"rgb(255, 255, 255)"}function Sr(r){var t;void 0===r&&(r=Vr.backgroundColor),"#"===r[0]&&(t=Hr(r)),r.startsWith("rgb")&&(t=r);var o={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"}[r.toLowerCase()];if(o&&(t=Hr(o)),!t)return Mr;var e=t.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);if(e){var n=parseInt(e[1]),i=parseInt(e[2]),l=parseInt(e[3]);return Math.sqrt(n*n*.299+i*i*.587+l*l*.114)>127.5?Mr:"white"}return Mr}!function(r,t){var o={__c:t="__cC"+a++,__:r,Consumer:function(r,t){return r.children(t)},Provider:function(r){var o,e;return this.getChildContext||(o=[],(e={})[t]=this,this.getChildContext=function(){return e},this.shouldComponentUpdate=function(r){this.props.value!==r.value&&o.some((function(r){r.__e=!0,x(r)}))},this.sub=function(r){o.push(r);var t=r.componentWillUnmount;r.componentWillUnmount=function(){o.splice(o.indexOf(r),1),t&&t.call(r)}}),r.children}};o.Provider.__=o.Consumer.contextType=o}({isPreviewMode:!1,previewPageIndex:0,onPopupSurveyDismissed:()=>{},isPopup:!0,onPreviewSubmit:()=>{},surveySubmissionId:""});var jr=':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);box-shadow:var(--ph-tour-box-shadow);max-width:var(--ph-tour-max-width);min-width:280px;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--modal{box-shadow:0 8px 32px rgba(0,0,0,.2),0 2px 8px rgba(0,0,0,.1);left:50%;top:50%;transform:translate(-50%,-50%)}.ph-tour-arrow{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%;left:50%;transform:translateX(-50%)}.ph-tour-arrow--bottom{border-top-color:var(--ph-tour-background-color);left:50%;top:100%;transform:translateX(-50%)}.ph-tour-arrow--left{border-right-color:var(--ph-tour-background-color);right:100%;top:50%;transform:translateY(-50%)}.ph-tour-arrow--right{border-left-color:var(--ph-tour-background-color);left:100%;top:50%;transform:translateY(-50%)}.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-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}.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;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:300px}.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)}',Ir=F;function zr(t,o){var e,n,i,l=r({},kr,o),u=t.style;u.setProperty("--ph-tour-background-color",l.backgroundColor),u.setProperty("--ph-tour-text-color",l.textColor),u.setProperty("--ph-tour-button-color",l.buttonColor),u.setProperty("--ph-tour-border-radius",l.borderRadius+"px"),u.setProperty("--ph-tour-button-border-radius",l.buttonBorderRadius+"px"),u.setProperty("--ph-tour-border-color",l.borderColor),u.setProperty("--ph-tour-font-family",function(r){if("inherit"===r)return"inherit";var t='BlinkMacSystemFont, "Inter", "Segoe UI", "Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';return r?r+", "+t:"-apple-system, "+t}(l.fontFamily)),u.setProperty("--ph-tour-text-secondary-color",(e=l.textColor,n=.6,(i=Hr(e).match(/^rgb\((\d+),(\d+),(\d+)\)$/))?"rgba("+i[1]+", "+i[2]+", "+i[3]+", "+n+")":e)),u.setProperty("--ph-tour-branding-text-color",Sr(l.backgroundColor)),u.setProperty("--ph-tour-button-text-color",Sr(l.buttonColor)),u.setProperty("--ph-tour-box-shadow",l.boxShadow),u.setProperty("--ph-tour-overlay-color",l.showOverlay?"rgba(0, 0, 0, 0.5)":"transparent"),u.setProperty("--ph-tour-button-secondary-color","transparent"),u.setProperty("--ph-tour-button-secondary-text-color",l.textColor),u.setProperty("--ph-tour-max-width","320px"),u.setProperty("--ph-tour-padding","16px")}function Qr(r){var t;if(!r)return"";if("string"==typeof r)return Ar(r);if("text"===r.type){var o=Ar(r.text||"");if(r.marks)for(var e of r.marks)switch(e.type){case"bold":o="<strong>"+o+"</strong>";break;case"italic":o="<em>"+o+"</em>";break;case"underline":o="<u>"+o+"</u>";break;case"strike":o="<s>"+o+"</s>"}return o}var n=(null==(t=r.content)?void 0:t.map(Qr).join(""))||"";switch(r.type){case"doc":default:return n;case"paragraph":return"<p>"+n+"</p>";case"heading":var i,l=(null==(i=r.attrs)?void 0:i.level)||1;return"<h"+l+">"+n+"</h"+l+">";case"bulletList":return"<ul>"+n+"</ul>";case"orderedList":return"<ol>"+n+"</ol>";case"listItem":return"<li>"+n+"</li>";case"hardBreak":return"<br>"}}function Ar(r){var t=Ir.createElement("div");return t.textContent=r,t.innerHTML}function Br(r){var t,{step:o,appearance:e,stepIndex:n,totalSteps:i,onNext:l,onPrevious:u,onDismiss:a}=r,s=null!==(t=null==e?void 0:e.whiteLabel)&&void 0!==t&&t,f=n>=i-1,c=0===n,d="button"===o.progressionTrigger||"modal"===o.type,p=!!(l||u||a),h=p?void 0:{cursor:"default"};return cr(b,{children:[cr("button",{class:"ph-tour-dismiss",onClick:a,"aria-label":"Close tour",style:h,children:gr}),cr("div",{class:"ph-tour-content",dangerouslySetInnerHTML:{__html:Qr(o.content)}}),cr("div",{class:"ph-tour-footer",children:[cr("span",{class:"ph-tour-progress",children:[n+1," of ",i]}),cr("div",{class:"ph-tour-buttons",children:[!c&&cr("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:u,style:h,children:"Back"}),d&&cr("button",{class:"ph-tour-button ph-tour-button--primary",onClick:l,style:h,children:f?"Done":"Next"})]})]}),!s&&cr("a",{href:p?"https://posthog.com/product-tours":void 0,target:p?"_blank":void 0,rel:p?"noopener noreferrer":void 0,class:"ph-tour-branding",style:p?void 0:{cursor:"default",pointerEvents:"none"},children:["Tour by ",mr]})]})}var Fr=F;function Pr(t){var{step:o,appearance:e,parentElement:n,stepIndex:i=0,totalSteps:l=1,style:u}=t;n.innerHTML="";var a=Fr.createElement("div");zr(a,e),n.appendChild(a);var s=a.attachShadow({mode:"open"}),f=function(){var r=Lr(Ir,jr);return null==r||r.setAttribute("data-ph-product-tour-style","true"),r}();f&&s.appendChild(f);var c=Fr.createElement("div");s.appendChild(c);var d="survey"===o.type;z(cr("div",{class:"ph-tour-container",children:cr("div",{class:d?"ph-tour-tooltip ph-tour-survey-step":"ph-tour-tooltip",style:r({position:"relative",animation:"none"},u),children:cr(d?qr:Br,{step:o,appearance:e,stepIndex:i,totalSteps:l})})}),c)}export{Pr as renderProductTourPreview};
|
|
1
|
+
function t(){return t=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)({}).hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},t.apply(null,arguments)}var e,r,o,n,i,a,l,u,s={},c=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,p=Array.isArray;function d(t,e){for(var r in e)t[r]=e[r];return t}function h(t){var e=t.parentNode;e&&e.removeChild(t)}function m(t,e,n,i,a){var l={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++o:a,__i:-1,__u:0};return null==a&&null!=r.vnode&&r.vnode(l),l}function v(t){return t.children}function b(t,e){this.props=t,this.context=e}function g(t,e){if(null==e)return t.__?g(t.__,t.__i+1):null;for(var r;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e)return r.__e;return"function"==typeof t.type?g(t):null}function y(t){var e,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return y(t)}}function x(t){(!t.__d&&(t.__d=!0)&&n.push(t)&&!w.__r++||i!==r.debounceRendering)&&((i=r.debounceRendering)||a)(w)}function w(){var t,e,o,i,a,u,s,c,f;for(n.sort(l);t=n.shift();)t.__d&&(e=n.length,i=void 0,u=(a=(o=t).__v).__e,c=[],f=[],(s=o.__P)&&((i=d({},a)).__v=a.__v+1,r.vnode&&r.vnode(i),A(s,i,a,o.__n,void 0!==s.ownerSVGElement,32&a.__u?[u]:null,c,null==u?g(a):u,!!(32&a.__u),f),i.__.__k[i.__i]=i,M(c,i,f),i.__e!=u&&y(i)),n.length>e&&n.sort(l));w.__r=0}function k(t,e,r,o,n,i,a,l,u,f,d){var h,b,y,x,w,k=o&&o.__k||c,_=e.length;for(r.__d=u,function(t,e,r){var o,n,i,a,l,u=e.length,s=r.length,c=s,f=0;for(t.__k=[],o=0;o<u;o++)null!=(n=t.__k[o]=null==(n=e[o])||"boolean"==typeof n||"function"==typeof n?null:"string"==typeof n||"number"==typeof n||"bigint"==typeof n||n.constructor==String?m(null,n,null,null,n):p(n)?m(v,{children:n},null,null,null):void 0===n.constructor&&n.__b>0?m(n.type,n.props,n.key,n.ref?n.ref:null,n.__v):n)?(n.__=t,n.__b=t.__b+1,l=T(n,r,a=o+f,c),n.__i=l,i=null,-1!==l&&(c--,(i=r[l])&&(i.__u|=131072)),null==i||null===i.__v?(-1==l&&f--,"function"!=typeof n.type&&(n.__u|=65536)):l!==a&&(l===a+1?f++:l>a?c>u-a?f+=l-a:f--:f=l<a&&l==a-1?l-a:0,l!==o+f&&(n.__u|=65536))):(i=r[o])&&null==i.key&&i.__e&&(i.__e==t.__d&&(t.__d=g(i)),E(i,i,!1),r[o]=null,c--);if(c)for(o=0;o<s;o++)null!=(i=r[o])&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=g(i)),E(i,i))}(r,e,k),u=r.__d,h=0;h<_;h++)null!=(y=r.__k[h])&&"boolean"!=typeof y&&"function"!=typeof y&&(b=-1===y.__i?s:k[y.__i]||s,y.__i=h,A(t,y,b,n,i,a,l,u,f,d),x=y.__e,y.ref&&b.ref!=y.ref&&(b.ref&&z(b.ref,null,y),d.push(y.ref,y.__c||x,y)),null==w&&null!=x&&(w=x),65536&y.__u||b.__k===y.__k?u=C(y,u,t):"function"==typeof y.type&&void 0!==y.__d?u=y.__d:x&&(u=x.nextSibling),y.__d=void 0,y.__u&=-196609);r.__d=u,r.__e=w}function C(t,e,r){var o,n;if("function"==typeof t.type){for(o=t.__k,n=0;o&&n<o.length;n++)o[n]&&(o[n].__=t,e=C(o[n],e,r));return e}return t.__e!=e&&(r.insertBefore(t.__e,e||null),e=t.__e),e&&e.nextSibling}function T(t,e,r,o){var n=t.key,i=t.type,a=r-1,l=r+1,u=e[r];if(null===u||u&&n==u.key&&i===u.type)return r;if(o>(null!=u&&0==(131072&u.__u)?1:0))for(;a>=0||l<e.length;){if(a>=0){if((u=e[a])&&0==(131072&u.__u)&&n==u.key&&i===u.type)return a;a--}if(l<e.length){if((u=e[l])&&0==(131072&u.__u)&&n==u.key&&i===u.type)return l;l++}}return-1}function _(t,e,r){"-"===e[0]?t.setProperty(e,null==r?"":r):t[e]=null==r?"":"number"!=typeof r||f.test(e)?r:r+"px"}function q(t,e,r,o,n){var i;t:if("style"===e)if("string"==typeof r)t.style.cssText=r;else{if("string"==typeof o&&(t.style.cssText=o=""),o)for(e in o)r&&e in r||_(t.style,e,"");if(r)for(e in r)o&&r[e]===o[e]||_(t.style,e,r[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/(PointerCapture)$|Capture$/,"$1")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=r,r?o?r.u=o.u:(r.u=Date.now(),t.addEventListener(e,i?L:S,i)):t.removeEventListener(e,i?L:S,i);else{if(n)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&&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,r))}}function S(t){var e=this.l[t.type+!1];if(t.t){if(t.t<=e.u)return}else t.t=Date.now();return e(r.event?r.event(t):t)}function L(t){return this.l[t.type+!0](r.event?r.event(t):t)}function A(t,e,o,n,i,a,l,u,s,c){var f,h,m,g,y,x,w,C,T,_,q,$,S,L,A,M=e.type;if(void 0!==e.constructor)return null;128&o.__u&&(s=!!(32&o.__u),a=[u=e.__e=o.__e]),(f=r.__b)&&f(e);t:if("function"==typeof M)try{if(C=e.props,T=(f=M.contextType)&&n[f.__c],_=f?T?T.props.value:f.__:n,o.__c?w=(h=e.__c=o.__c).__=h.__E:("prototype"in M&&M.prototype.render?e.__c=h=new M(C,_):(e.__c=h=new b(C,_),h.constructor=M,h.render=Z),T&&T.sub(h),h.props=C,h.state||(h.state={}),h.context=_,h.__n=n,m=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=M.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=d({},h.__s)),d(h.__s,M.getDerivedStateFromProps(C,h.__s))),g=h.props,y=h.state,h.__v=e,m)null==M.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==M.getDerivedStateFromProps&&C!==g&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(C,_),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(C,h.__s,_)||e.__v===o.__v)){for(e.__v!==o.__v&&(h.props=C,h.state=h.__s,h.__d=!1),e.__e=o.__e,e.__k=o.__k,e.__k.forEach((function(t){t&&(t.__=e)})),q=0;q<h._sb.length;q++)h.__h.push(h._sb[q]);h._sb=[],h.__h.length&&l.push(h);break t}null!=h.componentWillUpdate&&h.componentWillUpdate(C,h.__s,_),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(g,y,x)}))}if(h.context=_,h.props=C,h.__P=t,h.__e=!1,$=r.__r,S=0,"prototype"in M&&M.prototype.render){for(h.state=h.__s,h.__d=!1,$&&$(e),f=h.render(h.props,h.state,h.context),L=0;L<h._sb.length;L++)h.__h.push(h._sb[L]);h._sb=[]}else do{h.__d=!1,$&&$(e),f=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++S<25);h.state=h.__s,null!=h.getChildContext&&(n=d(d({},n),h.getChildContext())),m||null==h.getSnapshotBeforeUpdate||(x=h.getSnapshotBeforeUpdate(g,y)),k(t,p(A=null!=f&&f.type===v&&null==f.key?f.props.children:f)?A:[A],e,o,n,i,a,l,u,s,c),h.base=e.__e,e.__u&=-161,h.__h.length&&l.push(h),w&&(h.__E=h.__=null)}catch(t){e.__v=null,s||null!=a?(e.__e=u,e.__u|=s?160:32,a[a.indexOf(u)]=null):(e.__e=o.__e,e.__k=o.__k),r.__e(t,e,o)}else null==a&&e.__v===o.__v?(e.__k=o.__k,e.__e=o.__e):e.__e=j(o.__e,e,o,n,i,a,l,s,c);(f=r.diffed)&&f(e)}function M(t,e,o){e.__d=void 0;for(var n=0;n<o.length;n++)z(o[n],o[++n],o[++n]);r.__c&&r.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){r.__e(t,e.__v)}}))}function j(t,r,o,n,i,a,l,u,c){var f,d,m,v,b,y,x,w=o.props,C=r.props,T=r.type;if("svg"===T&&(i=!0),null!=a)for(f=0;f<a.length;f++)if((b=a[f])&&"setAttribute"in b==!!T&&(T?b.localName===T:3===b.nodeType)){t=b,a[f]=null;break}if(null==t){if(null===T)return document.createTextNode(C);t=i?document.createElementNS("http://www.w3.org/2000/svg",T):document.createElement(T,C.is&&C),a=null,u=!1}if(null===T)w===C||u&&t.data===C||(t.data=C);else{if(a=a&&e.call(t.childNodes),w=o.props||s,!u&&null!=a)for(w={},f=0;f<t.attributes.length;f++)w[(b=t.attributes[f]).name]=b.value;for(f in w)b=w[f],"children"==f||("dangerouslySetInnerHTML"==f?m=b:"key"===f||f in C||q(t,f,null,b,i));for(f in C)b=C[f],"children"==f?v=b:"dangerouslySetInnerHTML"==f?d=b:"value"==f?y=b:"checked"==f?x=b:"key"===f||u&&"function"!=typeof b||w[f]===b||q(t,f,b,w[f],i);if(d)u||m&&(d.__html===m.__html||d.__html===t.innerHTML)||(t.innerHTML=d.__html),r.__k=[];else if(m&&(t.innerHTML=""),k(t,p(v)?v:[v],r,o,n,i&&"foreignObject"!==T,a,l,a?a[0]:o.__k&&g(o,0),u,c),null!=a)for(f=a.length;f--;)null!=a[f]&&h(a[f]);u||(f="value",void 0!==y&&(y!==t[f]||"progress"===T&&!y||"option"===T&&y!==w[f])&&q(t,f,y,w[f],!1),f="checked",void 0!==x&&x!==t[f]&&q(t,f,x,w[f],!1))}return t}function z(t,e,o){try{"function"==typeof t?t(e):t.current=e}catch(t){r.__e(t,o)}}function E(t,e,o){var n,i;if(r.unmount&&r.unmount(t),(n=t.ref)&&(n.current&&n.current!==t.__e||z(n,null,e)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){r.__e(t,e)}n.base=n.__P=null,t.__c=void 0}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&E(n[i],e,o||"function"!=typeof t.type);o||null==t.__e||h(t.__e),t.__=t.__e=t.__d=void 0}function Z(t,e,r){return this.constructor(t,r)}function I(t,o,n){var i,a,l;r.__&&r.__(t,o),i=!1?null:o.__k,a=[],l=[],A(o,t=o.__k=function(t,r,o){var n,i,a,l={};for(a in r)"key"==a?n=r[a]:"ref"==a?i=r[a]:l[a]=r[a];if(arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):o),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===l[a]&&(l[a]=t.defaultProps[a]);return m(t,l,n,i,null)}(v,null,[t]),i||s,s,void 0!==o.ownerSVGElement,i?null:o.firstChild?e.call(o.childNodes):null,a,i?i.__e:o.firstChild,false,l),M(a,t,l)}e=c.slice,r={__e:function(t,e,r,o){for(var n,i,a;e=e.__;)if((n=e.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(t)),a=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t,o||{}),a=n.__d),a)return n.__E=n}catch(e){t=e}throw t}},o=0,b.prototype.setState=function(t,e){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof t&&(t=t(d({},r),this.props)),t&&d(r,t),null!=t&&this.__v&&(e&&this._sb.push(e),x(this))},b.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),x(this))},b.prototype.render=v,n=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(t,e){return t.__v.__b-e.__v.__b},w.__r=0,u=0;var R="undefined"!=typeof window?window:void 0,D="undefined"!=typeof globalThis?globalThis:R;"undefined"==typeof self&&(D.self=D),"undefined"==typeof File&&(D.File=function(){});var H=null==D?void 0:D.navigator,F=null==D?void 0:D.document;null==D||D.location,null==D||D.fetch,null!=D&&D.XMLHttpRequest&&"withCredentials"in new D.XMLHttpRequest&&D.XMLHttpRequest,null==D||D.AbortController,null==H||H.userAgent;var V,O,P,N,B=null!=R?R:{},Q=0,U=[],W=[],Y=r.__b,X=r.__r,G=r.diffed,K=r.__c,J=r.unmount;function tt(t,e){r.__h&&r.__h(O,t,Q||e),Q=0;var o=O.__H||(O.__H={__:[],__h:[]});return t>=o.__.length&&o.__.push({__V:W}),o.__[t]}function et(t){return Q=1,function(t,e,r){var o=tt(V++,2);if(o.t=t,!o.__c&&(o.__=[st(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],r=o.t(e,t);e!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=O,!O.u)){var n=function(t,e,r){if(!o.__c.__H)return!0;var n=o.__c.__H.__.filter((function(t){return t.__c}));if(n.every((function(t){return!t.__N})))return!i||i.call(this,t,e,r);var a=!1;return n.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),!(!a&&o.__c.props===t)&&(!i||i.call(this,t,e,r))};O.u=!0;var i=O.shouldComponentUpdate,a=O.componentWillUpdate;O.componentWillUpdate=function(t,e,r){if(this.__e){var o=i;i=void 0,n(t,e,r),i=o}a&&a.call(this,t,e,r)},O.shouldComponentUpdate=n}return o.__N||o.__}(st,t)}function rt(t){return Q=5,function(t,e){var r=tt(V++,7);return ut(r.__H,e)?(r.__V=t(),r.i=e,r.__h=t,r.__V):r.__}((function(){return{current:t}}),[])}function ot(){for(var t;t=U.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(at),t.__H.__h.forEach(lt),t.__H.__h=[]}catch(e){t.__H.__h=[],r.__e(e,t.__v)}}r.__b=function(t){O=null,Y&&Y(t)},r.__r=function(t){X&&X(t),V=0;var e=(O=t.__c).__H;e&&(P===O?(e.__h=[],O.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=W,t.__N=t.i=void 0}))):(e.__h.forEach(at),e.__h.forEach(lt),e.__h=[],V=0)),P=O},r.diffed=function(t){G&&G(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==U.push(e)&&N===r.requestAnimationFrame||((N=r.requestAnimationFrame)||it)(ot)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==W&&(t.__=t.__V),t.i=void 0,t.__V=W}))),P=O=null},r.__c=function(t,e){e.some((function(t){try{t.__h.forEach(at),t.__h=t.__h.filter((function(t){return!t.__||lt(t)}))}catch(o){e.some((function(t){t.__h&&(t.__h=[])})),e=[],r.__e(o,t.__v)}})),K&&K(t,e)},r.unmount=function(t){J&&J(t);var e,o=t.__c;o&&o.__H&&(o.__H.__.forEach((function(t){try{at(t)}catch(t){e=t}})),o.__H=void 0,e&&r.__e(e,o.__v))};var nt="function"==typeof requestAnimationFrame;function it(t){var e,r=function(){clearTimeout(o),nt&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(r,100);nt&&(e=requestAnimationFrame(r))}function at(t){var e=O,r=t.__c;"function"==typeof r&&(t.__c=void 0,r()),O=e}function lt(t){var e=O;t.__c=t.__(),O=e}function ut(t,e){return!t||t.length!==e.length||e.some((function(e,r){return e!==t[r]}))}function st(t,e){return"function"==typeof e?e(t):e}var ct=0;function ft(t,e,o,n,i,a){var l,u,s={};for(u in e)"ref"==u?l=e[u]:s[u]=e[u];var c={type:t,props:s,key:o,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--ct,__i:-1,__u:0,__source:i,__self:a};if("function"==typeof t&&(l=t.defaultProps))for(u in l)void 0===s[u]&&(s[u]=l[u]);return r.vnode&&r.vnode(c),c}var pt=ft("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:ft("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"})}),dt=ft("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:ft("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"})}),ht=ft("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:ft("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"})}),mt=ft("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:ft("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"})}),vt=ft("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:ft("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"})}),bt=ft("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"close-survey-title",children:[ft("title",{id:"close-survey-title",children:"Close survey"}),ft("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:"black"})]}),gt=ft("svg",{width:"77",height:"14",viewBox:"0 0 77 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft("g",{"clip-path":"url(#clip0_2415_6911)",children:[ft("mask",{id:"mask0_2415_6911",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"77",height:"14",children:ft("path",{d:"M0.5 0H76.5V14H0.5V0Z",fill:"white"})}),ft("g",{mask:"url(#mask0_2415_6911)",children:[ft("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"}),ft("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"}),ft("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"}),ft("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"}),ft("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"}),ft("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"})]})]}),ft("defs",{children:ft("clipPath",{id:"clip0_2415_6911",children:ft("rect",{width:"76",height:"14",fill:"white",transform:"translate(0.5)"})})})]});ft("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ft("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 yt=[ht,dt,pt],xt=[mt,ht,dt,pt,vt];function wt(t){var{value:e,onChange:o,onSubmit:n,isInteractive:i}=t,a=rt(null);!function(t,e){var o=tt(V++,3);!r.__s&&ut(o.__H,e)&&(o.__=t,o.i=e,O.__H.__h.push(o))}((()=>{i&&setTimeout((()=>{var t;return null==(t=a.current)?void 0:t.focus()}),100)}),[i]);return ft("textarea",{ref:a,class:"ph-tour-survey-textarea",rows:3,placeholder:"Your feedback (optional)...",value:e,onInput:t=>o(t.target.value),onKeyDown:t=>{"Enter"===t.key&&t.metaKey&&i&&(t.preventDefault(),null==n||n())},disabled:!i,style:i?void 0:{cursor:"default"}})}function kt(t){var{survey:e,onSubmit:r,isInteractive:o}=t,[n,i]=et(null),a=e.display||"emoji",l=e.scale||5,u=t=>{o&&(i(t),null==r||r(t))};if("emoji"===a)return ft("div",{class:"ph-tour-survey-rating-container",children:[ft("div",{class:"ph-tour-survey-rating-emoji",children:(3===l?yt:xt).map(((t,e)=>{var r=e+1;return ft("button",{type:"button",class:"ph-tour-survey-emoji-button "+(n===r?"ph-tour-survey-emoji-button--active":""),onClick:()=>u(r),style:o?void 0:{cursor:"default"},"aria-label":"Rate "+r,children:t},e)}))}),(e.lowerBoundLabel||e.upperBoundLabel)&&ft("div",{class:"ph-tour-survey-rating-labels",children:[ft("span",{children:e.lowerBoundLabel}),ft("span",{children:e.upperBoundLabel})]})]});var s=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 ft("div",{class:"ph-tour-survey-rating-container",children:[ft("div",{class:"ph-tour-survey-rating-numbers",style:{gridTemplateColumns:"repeat("+s.length+", minmax(0, 1fr))"},children:s.map((t=>ft("button",{type:"button",class:"ph-tour-survey-number-button "+(n===t?"ph-tour-survey-number-button--active":""),onClick:()=>u(t),style:o?void 0:{cursor:"default"},"aria-label":"Rate "+t,children:t},t)))}),(e.lowerBoundLabel||e.upperBoundLabel)&&ft("div",{class:"ph-tour-survey-rating-labels",children:[ft("span",{children:e.lowerBoundLabel}),ft("span",{children:e.upperBoundLabel})]})]})}function Ct(t){var e,{step:r,appearance:o,stepIndex:n,totalSteps:i,onPrevious:a,onSubmit:l,onDismiss:u}=t,[s,c]=et(""),f=r.survey,p=null!==(e=null==o?void 0:o.whiteLabel)&&void 0!==e&&e,d=0===n,h="open"===(null==f?void 0:f.type),m=!!(a||l||u),b=m?void 0:{cursor:"default"},g=()=>{null==l||l(s.trim()||null)};return f?ft(v,{children:[ft("button",{class:"ph-tour-dismiss",onClick:u,"aria-label":"Close survey",style:b,children:bt}),ft("div",{class:"ph-tour-survey-question",children:f.questionText}),h?ft(wt,{value:s,onChange:c,onSubmit:g,isInteractive:m}):ft(kt,{survey:f,onSubmit:l,isInteractive:m}),ft("div",{class:"ph-tour-footer",children:[ft("span",{class:"ph-tour-progress",children:[n+1," of ",i]}),ft("div",{class:"ph-tour-buttons",children:[!d&&ft("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:a,style:b,children:"Back"}),h&&ft("button",{class:"ph-tour-button ph-tour-button--primary",onClick:g,style:b,children:"Submit"})]})]}),!p&&ft("a",{href:m?"https://posthog.com/product-tours":void 0,target:m?"_blank":void 0,rel:m?"noopener noreferrer":void 0,class:"ph-tour-branding",style:m?void 0:{cursor:"default",pointerEvents:"none"},children:["Survey by ",gt]})]}):ft("div",{})}var{entries:Tt,setPrototypeOf:_t,isFrozen:qt,getPrototypeOf:St,getOwnPropertyDescriptor:Lt}=Object,{freeze:At,seal:Mt,create:jt}=Object,{apply:zt,construct:Et}="undefined"!=typeof Reflect&&Reflect;At||(At=function(t){return t}),Mt||(Mt=function(t){return t}),zt||(zt=function(t,e){for(var r=arguments.length,o=new Array(r>2?r-2:0),n=2;n<r;n++)o[n-2]=arguments[n];return t.apply(e,o)}),Et||(Et=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];return new t(...r)});var Zt,It=Yt(Array.prototype.forEach),Rt=Yt(Array.prototype.lastIndexOf),Dt=Yt(Array.prototype.pop),Ht=Yt(Array.prototype.push),Ft=Yt(Array.prototype.splice),Vt=Yt(String.prototype.toLowerCase),Ot=Yt(String.prototype.toString),Pt=Yt(String.prototype.match),Nt=Yt(String.prototype.replace),Bt=Yt(String.prototype.indexOf),Qt=Yt(String.prototype.trim),Ut=Yt(Object.prototype.hasOwnProperty),$t=Yt(RegExp.prototype.test),Wt=(Zt=TypeError,function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Et(Zt,e)});function Yt(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,o=new Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];return zt(t,e,o)}}function Xt(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Vt;_t&&_t(t,null);for(var o=e.length;o--;){var n=e[o];if("string"==typeof n){var i=r(n);i!==n&&(qt(e)||(e[o]=i),n=i)}t[n]=!0}return t}function Gt(t){for(var e=0;e<t.length;e++){Ut(t,e)||(t[e]=null)}return t}function Kt(t){var e=jt(null);for(var[r,o]of Tt(t)){Ut(t,r)&&(Array.isArray(o)?e[r]=Gt(o):o&&"object"==typeof o&&o.constructor===Object?e[r]=Kt(o):e[r]=o)}return e}function Jt(t,e){for(;null!==t;){var r=Lt(t,e);if(r){if(r.get)return Yt(r.get);if("function"==typeof r.value)return Yt(r.value)}t=St(t)}return function(){return null}}var te=At(["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"]),ee=At(["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"]),re=At(["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"]),oe=At(["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"]),ne=At(["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"]),ie=At(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ae=At(["#text"]),le=At(["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"]),ue=At(["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"]),se=At(["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"]),ce=At(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),fe=Mt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pe=Mt(/<%[\w\W]*|[\w\W]*%>/gm),de=Mt(/\$\{[\w\W]*/gm),he=Mt(/^data-[\-\w.\u00B7-\uFFFF]+$/),me=Mt(/^aria-[\-\w]+$/),ve=Mt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),be=Mt(/^(?:\w+script|data):/i),ge=Mt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ye=Mt(/^html$/i),xe=Mt(/^[a-z][.\w]*(-[.\w]+)+$/i),we=Object.freeze({__proto__:null,ARIA_ATTR:me,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:xe,DATA_ATTR:he,DOCTYPE_NAME:ye,ERB_EXPR:pe,IS_ALLOWED_URI:ve,IS_SCRIPT_OR_DATA:be,MUSTACHE_EXPR:fe,TMPLIT_EXPR:de}),ke=1,Ce=3,Te=7,_e=8,qe=9,Se=function(){return"undefined"==typeof window?null:window};var Le=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Se(),r=e=>t(e);if(r.version="3.3.1",r.removed=[],!e||!e.document||e.document.nodeType!==qe||!e.Element)return r.isSupported=!1,r;var o,{document:n}=e,i=n,a=i.currentScript,{DocumentFragment:l,HTMLTemplateElement:u,Node:s,Element:c,NodeFilter:f,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:m}=e,v=c.prototype,b=Jt(v,"cloneNode"),g=Jt(v,"remove"),y=Jt(v,"nextSibling"),x=Jt(v,"childNodes"),w=Jt(v,"parentNode");if("function"==typeof u){var k=n.createElement("template");k.content&&k.content.ownerDocument&&(n=k.content.ownerDocument)}var C="",{implementation:T,createNodeIterator:_,createDocumentFragment:q,getElementsByTagName:S}=n,{importNode:L}=i,A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof Tt&&"function"==typeof w&&T&&void 0!==T.createHTMLDocument;var{MUSTACHE_EXPR:M,ERB_EXPR:j,TMPLIT_EXPR:z,DATA_ATTR:E,ARIA_ATTR:Z,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:R,CUSTOM_ELEMENT:D}=we,{IS_ALLOWED_URI:H}=we,F=null,V=Xt({},[...te,...ee,...re,...ne,...ae]),O=null,P=Xt({},[...le,...ue,...se,...ce]),N=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}})),B=null,Q=null,U=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,X=!1,G=!0,K=!1,J=!0,tt=!1,et=!1,rt=!1,ot=!1,nt=!1,it=!1,at=!0,lt=!1,ut=!0,st=!1,ct={},ft=null,pt=Xt({},["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"]),dt=null,ht=Xt({},["audio","video","img","source","image","track"]),mt=null,vt=Xt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),bt="http://www.w3.org/1998/Math/MathML",gt="http://www.w3.org/2000/svg",yt="http://www.w3.org/1999/xhtml",xt=yt,wt=!1,kt=null,Ct=Xt({},[bt,gt,yt],Ot),_t=Xt({},["mi","mo","mn","ms","mtext"]),qt=Xt({},["annotation-xml"]),St=Xt({},["title","style","font","a","script"]),Lt=null,Mt=["application/xhtml+xml","text/html"],zt=null,Et=null,Zt=n.createElement("form"),Yt=function(t){return t instanceof RegExp||t instanceof Function},Gt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Et||Et!==t){if(t&&"object"==typeof t||(t={}),t=Kt(t),Lt=-1===Mt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,zt="application/xhtml+xml"===Lt?Ot:Vt,F=Ut(t,"ALLOWED_TAGS")?Xt({},t.ALLOWED_TAGS,zt):V,O=Ut(t,"ALLOWED_ATTR")?Xt({},t.ALLOWED_ATTR,zt):P,kt=Ut(t,"ALLOWED_NAMESPACES")?Xt({},t.ALLOWED_NAMESPACES,Ot):Ct,mt=Ut(t,"ADD_URI_SAFE_ATTR")?Xt(Kt(vt),t.ADD_URI_SAFE_ATTR,zt):vt,dt=Ut(t,"ADD_DATA_URI_TAGS")?Xt(Kt(ht),t.ADD_DATA_URI_TAGS,zt):ht,ft=Ut(t,"FORBID_CONTENTS")?Xt({},t.FORBID_CONTENTS,zt):pt,B=Ut(t,"FORBID_TAGS")?Xt({},t.FORBID_TAGS,zt):Kt({}),Q=Ut(t,"FORBID_ATTR")?Xt({},t.FORBID_ATTR,zt):Kt({}),ct=!!Ut(t,"USE_PROFILES")&&t.USE_PROFILES,W=!1!==t.ALLOW_ARIA_ATTR,Y=!1!==t.ALLOW_DATA_ATTR,X=t.ALLOW_UNKNOWN_PROTOCOLS||!1,G=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,K=t.SAFE_FOR_TEMPLATES||!1,J=!1!==t.SAFE_FOR_XML,tt=t.WHOLE_DOCUMENT||!1,ot=t.RETURN_DOM||!1,nt=t.RETURN_DOM_FRAGMENT||!1,it=t.RETURN_TRUSTED_TYPE||!1,rt=t.FORCE_BODY||!1,at=!1!==t.SANITIZE_DOM,lt=t.SANITIZE_NAMED_PROPS||!1,ut=!1!==t.KEEP_CONTENT,st=t.IN_PLACE||!1,H=t.ALLOWED_URI_REGEXP||ve,xt=t.NAMESPACE||yt,_t=t.MATHML_TEXT_INTEGRATION_POINTS||_t,qt=t.HTML_INTEGRATION_POINTS||qt,N=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&Yt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(N.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Yt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(N.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(N.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(Y=!1),nt&&(ot=!0),ct&&(F=Xt({},ae),O=[],!0===ct.html&&(Xt(F,te),Xt(O,le)),!0===ct.svg&&(Xt(F,ee),Xt(O,ue),Xt(O,ce)),!0===ct.svgFilters&&(Xt(F,re),Xt(O,ue),Xt(O,ce)),!0===ct.mathMl&&(Xt(F,ne),Xt(O,se),Xt(O,ce))),t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?U.tagCheck=t.ADD_TAGS:(F===V&&(F=Kt(F)),Xt(F,t.ADD_TAGS,zt))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?U.attributeCheck=t.ADD_ATTR:(O===P&&(O=Kt(O)),Xt(O,t.ADD_ATTR,zt))),t.ADD_URI_SAFE_ATTR&&Xt(mt,t.ADD_URI_SAFE_ATTR,zt),t.FORBID_CONTENTS&&(ft===pt&&(ft=Kt(ft)),Xt(ft,t.FORBID_CONTENTS,zt)),t.ADD_FORBID_CONTENTS&&(ft===pt&&(ft=Kt(ft)),Xt(ft,t.ADD_FORBID_CONTENTS,zt)),ut&&(F["#text"]=!0),tt&&Xt(F,["html","head","body"]),F.table&&(Xt(F,["tbody"]),delete B.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw Wt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw Wt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');o=t.TRUSTED_TYPES_POLICY,C=o.createHTML("")}else void 0===o&&(o=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(r=e.getAttribute(o));var n="dompurify"+(r?"#"+r:"");try{return t.createPolicy(n,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+n+" could not be created."),null}}(m,a)),null!==o&&"string"==typeof C&&(C=o.createHTML(""));At&&At(t),Et=t}},fe=Xt({},[...ee,...re,...oe]),pe=Xt({},[...ne,...ie]),de=function(t){Ht(r.removed,{element:t});try{w(t).removeChild(t)}catch(e){g(t)}},he=function(t,e){try{Ht(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){Ht(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(ot||nt)try{de(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},me=function(t){var e=null,r=null;if(rt)t="<remove></remove>"+t;else{var i=Pt(t,/^[\r\n\t ]+/);r=i&&i[0]}"application/xhtml+xml"===Lt&&xt===yt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var a=o?o.createHTML(t):t;if(xt===yt)try{e=(new h).parseFromString(a,Lt)}catch(t){}if(!e||!e.documentElement){e=T.createDocument(xt,"template",null);try{e.documentElement.innerHTML=wt?C:a}catch(t){}}var l=e.body||e.documentElement;return t&&r&&l.insertBefore(n.createTextNode(r),l.childNodes[0]||null),xt===yt?S.call(e,tt?"html":"body")[0]:tt?e.documentElement:l},be=function(t){return _.call(t.ownerDocument||t,t,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},ge=function(t){return t instanceof d&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof p)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},xe=function(t){return"function"==typeof s&&t instanceof s};function Le(t,e,o){It(t,(t=>{t.call(r,e,o,Et)}))}var Ae=function(t){var e=null;if(Le(A.beforeSanitizeElements,t,null),ge(t))return de(t),!0;var o=zt(t.nodeName);if(Le(A.uponSanitizeElement,t,{tagName:o,allowedTags:F}),J&&t.hasChildNodes()&&!xe(t.firstElementChild)&&$t(/<[/\w!]/g,t.innerHTML)&&$t(/<[/\w!]/g,t.textContent))return de(t),!0;if(t.nodeType===Te)return de(t),!0;if(J&&t.nodeType===_e&&$t(/<[/\w]/g,t.data))return de(t),!0;if(!(U.tagCheck instanceof Function&&U.tagCheck(o))&&(!F[o]||B[o])){if(!B[o]&&je(o)){if(N.tagNameCheck instanceof RegExp&&$t(N.tagNameCheck,o))return!1;if(N.tagNameCheck instanceof Function&&N.tagNameCheck(o))return!1}if(ut&&!ft[o]){var n=w(t)||t.parentNode,i=x(t)||t.childNodes;if(i&&n)for(var a=i.length-1;a>=0;--a){var l=b(i[a],!0);l.__removalCount=(t.__removalCount||0)+1,n.insertBefore(l,y(t))}}return de(t),!0}return t instanceof c&&!function(t){var e=w(t);e&&e.tagName||(e={namespaceURI:xt,tagName:"template"});var r=Vt(t.tagName),o=Vt(e.tagName);return!!kt[t.namespaceURI]&&(t.namespaceURI===gt?e.namespaceURI===yt?"svg"===r:e.namespaceURI===bt?"svg"===r&&("annotation-xml"===o||_t[o]):Boolean(fe[r]):t.namespaceURI===bt?e.namespaceURI===yt?"math"===r:e.namespaceURI===gt?"math"===r&&qt[o]:Boolean(pe[r]):t.namespaceURI===yt?!(e.namespaceURI===gt&&!qt[o])&&!(e.namespaceURI===bt&&!_t[o])&&!pe[r]&&(St[r]||!fe[r]):!("application/xhtml+xml"!==Lt||!kt[t.namespaceURI]))}(t)?(de(t),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!$t(/<\/no(script|embed|frames)/i,t.innerHTML)?(K&&t.nodeType===Ce&&(e=t.textContent,It([M,j,z],(t=>{e=Nt(e,t," ")})),t.textContent!==e&&(Ht(r.removed,{element:t.cloneNode()}),t.textContent=e)),Le(A.afterSanitizeElements,t,null),!1):(de(t),!0)},Me=function(t,e,r){if(at&&("id"===e||"name"===e)&&(r in n||r in Zt))return!1;if(Y&&!Q[e]&&$t(E,e));else if(W&&$t(Z,e));else if(U.attributeCheck instanceof Function&&U.attributeCheck(e,t));else if(!O[e]||Q[e]){if(!(je(t)&&(N.tagNameCheck instanceof RegExp&&$t(N.tagNameCheck,t)||N.tagNameCheck instanceof Function&&N.tagNameCheck(t))&&(N.attributeNameCheck instanceof RegExp&&$t(N.attributeNameCheck,e)||N.attributeNameCheck instanceof Function&&N.attributeNameCheck(e,t))||"is"===e&&N.allowCustomizedBuiltInElements&&(N.tagNameCheck instanceof RegExp&&$t(N.tagNameCheck,r)||N.tagNameCheck instanceof Function&&N.tagNameCheck(r))))return!1}else if(mt[e]);else if($t(H,Nt(r,R,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==Bt(r,"data:")||!dt[t]){if(X&&!$t(I,Nt(r,R,"")));else if(r)return!1}else;return!0},je=function(t){return"annotation-xml"!==t&&Pt(t,D)},ze=function(t){Le(A.beforeSanitizeAttributes,t,null);var{attributes:e}=t;if(e&&!ge(t)){for(var n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:O,forceKeepAttr:void 0},i=e.length,a=function(){var a=e[i],{name:l,namespaceURI:u,value:s}=a,c=zt(l),f=s,p="value"===l?f:Qt(f);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,Le(A.uponSanitizeAttribute,t,n),p=n.attrValue,!lt||"id"!==c&&"name"!==c||(he(l,t),p="user-content-"+p),J&&$t(/((--!?|])>)|<\/(style|title|textarea)/i,p))return he(l,t),0;if("attributename"===c&&Pt(p,"href"))return he(l,t),0;if(n.forceKeepAttr)return 0;if(!n.keepAttr)return he(l,t),0;if(!G&&$t(/\/>/i,p))return he(l,t),0;K&&It([M,j,z],(t=>{p=Nt(p,t," ")}));var d=zt(t.nodeName);if(!Me(d,c,p))return he(l,t),0;if(o&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(u);else switch(m.getAttributeType(d,c)){case"TrustedHTML":p=o.createHTML(p);break;case"TrustedScriptURL":p=o.createScriptURL(p)}if(p!==f)try{u?t.setAttributeNS(u,l,p):t.setAttribute(l,p),ge(t)?de(t):Dt(r.removed)}catch(e){he(l,t)}};i--;)a();Le(A.afterSanitizeAttributes,t,null)}},Ee=function t(e){var r=null,o=be(e);for(Le(A.beforeSanitizeShadowDOM,e,null);r=o.nextNode();)Le(A.uponSanitizeShadowNode,r,null),Ae(r),ze(r),r.content instanceof l&&t(r.content);Le(A.afterSanitizeShadowDOM,e,null)};return r.sanitize=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,u=null,c=null;if((wt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!xe(t)){if("function"!=typeof t.toString)throw Wt("toString is not a function");if("string"!=typeof(t=t.toString()))throw Wt("dirty is not a string, aborting")}if(!r.isSupported)return t;if(et||Gt(e),r.removed=[],"string"==typeof t&&(st=!1),st){if(t.nodeName){var f=zt(t.nodeName);if(!F[f]||B[f])throw Wt("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof s)(a=(n=me("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType===ke&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a);else{if(!ot&&!K&&!tt&&-1===t.indexOf("<"))return o&&it?o.createHTML(t):t;if(!(n=me(t)))return ot?null:it?C:""}n&&rt&&de(n.firstChild);for(var p=be(st?t:n);u=p.nextNode();)Ae(u),ze(u),u.content instanceof l&&Ee(u.content);if(st)return t;if(ot){if(nt)for(c=q.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return(O.shadowroot||O.shadowrootmode)&&(c=L.call(i,c,!0)),c}var d=tt?n.outerHTML:n.innerHTML;return tt&&F["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&$t(ye,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),K&&It([M,j,z],(t=>{d=Nt(d,t," ")})),o&&it?o.createHTML(d):d},r.setConfig=function(){Gt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),et=!0},r.clearConfig=function(){Et=null,et=!1},r.isValidAttribute=function(t,e,r){Et||Gt({});var o=zt(t),n=zt(e);return Me(o,n,r)},r.addHook=function(t,e){"function"==typeof e&&Ht(A[t],e)},r.removeHook=function(t,e){if(void 0!==e){var r=Rt(A[t],e);return-1===r?void 0:Ft(A[t],r,1)[0]}return Dt(A[t])},r.removeHooks=function(t){A[t]=[]},r.removeAllHooks=function(){A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}(),Ae={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},Me=function(t,e){var{debugEnabled:r}=void 0===e?{}:e,o={o:function(e){if(R&&(B.POSTHOG_DEBUG||r)&&!(t=>void 0===t)(R.console)&&R.console){for(var o=("__rrweb_original__"in R.console[e]?R.console[e].__rrweb_original__:R.console[e]),n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];o(t,...i)}},info:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];o.o("log",...e)},warn:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];o.o("warn",...e)},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];o.o("error",...e)},critical:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];console.error(t,...r)},uninitializedWarning:t=>{o.error("You must initialize PostHog before calling "+t)},createLogger:(e,r)=>Me(t+" "+e,r)};return o},je=Me("[PostHog.js]").createLogger,ze=je("[Stylesheet Loader]"),Ee=(t,e,r)=>{var o=t.createElement("style");return o.innerText=e,o||(ze.error("prepare_external_dependency_stylesheet returned null"),null)};je("[Surveys]"),null!=H&&H.sendBeacon;var Ze="#020617",Ie={backgroundColor:"#eeeded"};function Re(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 De(t){var e;void 0===t&&(t=Ie.backgroundColor),"#"===t[0]&&(e=Re(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=Re(r)),!e)return Ze;var o=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);if(o){var n=parseInt(o[1]),i=parseInt(o[2]),a=parseInt(o[3]);return Math.sqrt(n*n*.299+i*i*.587+a*a*.114)>127.5?Ze:"white"}return Ze}!function(t,e){var r={__c:e="__cC"+u++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var r,o;return this.getChildContext||(r=[],(o={})[e]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&r.some((function(t){t.__e=!0,x(t)}))},this.sub=function(t){r.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){r.splice(r.indexOf(t),1),e&&e.call(t)}}),t.children}};r.Provider.__=r.Consumer.contextType=r}({isPreviewMode:!1,previewPageIndex:0,onPopupSurveyDismissed:()=>{},isPopup:!0,onPreviewSubmit:()=>{},surveySubmissionId:""});var He=':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);box-shadow:var(--ph-tour-box-shadow);max-width:var(--ph-tour-max-width);min-width:280px;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--modal{box-shadow:0 8px 32px rgba(0,0,0,.2),0 2px 8px rgba(0,0,0,.1);left:50%;top:50%;transform:translate(-50%,-50%)}.ph-tour-arrow{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%;left:50%;transform:translateX(-50%)}.ph-tour-arrow--bottom{border-top-color:var(--ph-tour-background-color);left:50%;top:100%;transform:translateX(-50%)}.ph-tour-arrow--left{border-right-color:var(--ph-tour-background-color);right:100%;top:50%;transform:translateY(-50%)}.ph-tour-arrow--right{border-left-color:var(--ph-tour-background-color);left:100%;top:50%;transform:translateY(-50%)}.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:var(--ph-tour-button-color);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}.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;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:300px}.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)}',Fe=F;function Ve(e,r){var o,n,i,a=t({},Ae,r),l=e.style;l.setProperty("--ph-tour-background-color",a.backgroundColor),l.setProperty("--ph-tour-text-color",a.textColor),l.setProperty("--ph-tour-button-color",a.buttonColor),l.setProperty("--ph-tour-border-radius",a.borderRadius+"px"),l.setProperty("--ph-tour-button-border-radius",a.buttonBorderRadius+"px"),l.setProperty("--ph-tour-border-color",a.borderColor),l.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}(a.fontFamily)),l.setProperty("--ph-tour-text-secondary-color",(o=a.textColor,n=.6,(i=Re(o).match(/^rgb\((\d+),(\d+),(\d+)\)$/))?"rgba("+i[1]+", "+i[2]+", "+i[3]+", "+n+")":o)),l.setProperty("--ph-tour-branding-text-color",De(a.backgroundColor)),l.setProperty("--ph-tour-button-text-color",De(a.buttonColor)),l.setProperty("--ph-tour-box-shadow",a.boxShadow),l.setProperty("--ph-tour-overlay-color",a.showOverlay?"rgba(0, 0, 0, 0.5)":"transparent"),l.setProperty("--ph-tour-button-secondary-color","transparent"),l.setProperty("--ph-tour-button-secondary-text-color",a.textColor),l.setProperty("--ph-tour-max-width","320px"),l.setProperty("--ph-tour-padding","16px")}function Oe(t){var e;if(!t)return"";if("string"==typeof t)return Pe(t);if("text"===t.type){var r=Pe(t.text||"");if(t.marks)for(var o of t.marks)switch(o.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 n=(null==(e=t.content)?void 0:e.map(Oe).join(""))||"";switch(t.type){case"doc":default:return n;case"paragraph":return"<p>"+n+"</p>";case"heading":var i,a=(null==(i=t.attrs)?void 0:i.level)||1;return"<h"+a+">"+n+"</h"+a+">";case"bulletList":return"<ul>"+n+"</ul>";case"orderedList":return"<ol>"+n+"</ol>";case"listItem":return"<li>"+n+"</li>";case"hardBreak":return"<br>"}}function Pe(t){var e=Fe.createElement("div");return e.textContent=t,e.innerHTML}function Ne(t){return t.contentHtml?Le.sanitize(t.contentHtml,{ADD_TAGS:["iframe"],ADD_ATTR:["allowfullscreen","frameborder","referrerpolicy"]}):Oe(t.content)}function Be(t){var e,{step:r,appearance:o,stepIndex:n,totalSteps:i,onNext:a,onPrevious:l,onDismiss:u}=t,s=null!==(e=null==o?void 0:o.whiteLabel)&&void 0!==e&&e,c=n>=i-1,f=0===n,p="button"===r.progressionTrigger||"modal"===r.type,d=!!(a||l||u),h=d?void 0:{cursor:"default"};return ft(v,{children:[ft("button",{class:"ph-tour-dismiss",onClick:u,"aria-label":"Close tour",style:h,children:bt}),ft("div",{class:"ph-tour-content",dangerouslySetInnerHTML:{__html:Ne(r)}}),ft("div",{class:"ph-tour-footer",children:[ft("span",{class:"ph-tour-progress",children:[n+1," of ",i]}),ft("div",{class:"ph-tour-buttons",children:[!f&&ft("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:l,style:h,children:"Back"}),p&&ft("button",{class:"ph-tour-button ph-tour-button--primary",onClick:a,style:h,children:c?"Done":"Next"})]})]}),!s&&ft("a",{href:d?"https://posthog.com/product-tours":void 0,target:d?"_blank":void 0,rel:d?"noopener noreferrer":void 0,class:"ph-tour-branding",style:d?void 0:{cursor:"default",pointerEvents:"none"},children:["Tour by ",gt]})]})}var Qe=F;function Ue(e){var{step:r,appearance:o,parentElement:n,stepIndex:i=0,totalSteps:a=1,style:l}=e;n.innerHTML="";var u=Qe.createElement("div");Ve(u,o),n.appendChild(u);var s=u.attachShadow({mode:"open"}),c=function(){var t=Ee(Fe,He);return null==t||t.setAttribute("data-ph-product-tour-style","true"),t}();c&&s.appendChild(c);var f=Qe.createElement("div");s.appendChild(f);var p="survey"===r.type;I(ft("div",{class:"ph-tour-container",children:ft("div",{class:p?"ph-tour-tooltip ph-tour-survey-step":"ph-tour-tooltip",style:t({position:"relative",animation:"none"},r.maxWidth&&{width:r.maxWidth+"px",maxWidth:r.maxWidth+"px"},l),children:ft(p?Ct:Be,{step:r,appearance:o,stepIndex:i,totalSteps:a})})}),f)}export{Ue as renderProductTourPreview};
|
|
2
2
|
//# sourceMappingURL=product-tours-preview.js.map
|