posthog-js 1.316.0 → 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.
Files changed (86) hide show
  1. package/dist/all-external-dependencies.js +1 -1
  2. package/dist/all-external-dependencies.js.map +1 -1
  3. package/dist/array.full.es5.js +1 -1
  4. package/dist/array.full.es5.js.map +1 -1
  5. package/dist/array.full.js +1 -1
  6. package/dist/array.full.js.map +1 -1
  7. package/dist/array.full.no-external.js +1 -1
  8. package/dist/array.full.no-external.js.map +1 -1
  9. package/dist/array.js +1 -1
  10. package/dist/array.no-external.js +1 -1
  11. package/dist/customizations.full.js +1 -1
  12. package/dist/element-inference.d.ts +21 -0
  13. package/dist/element-inference.js +2 -0
  14. package/dist/element-inference.js.map +1 -0
  15. package/dist/lazy-recorder.js +1 -1
  16. package/dist/main.js +1 -1
  17. package/dist/main.js.map +1 -1
  18. package/dist/module.d.ts +12 -0
  19. package/dist/module.full.d.ts +12 -0
  20. package/dist/module.full.js +1 -1
  21. package/dist/module.full.js.map +1 -1
  22. package/dist/module.full.no-external.d.ts +12 -0
  23. package/dist/module.full.no-external.js +1 -1
  24. package/dist/module.full.no-external.js.map +1 -1
  25. package/dist/module.js +1 -1
  26. package/dist/module.js.map +1 -1
  27. package/dist/module.no-external.d.ts +12 -0
  28. package/dist/module.no-external.js +1 -1
  29. package/dist/module.no-external.js.map +1 -1
  30. package/dist/posthog-recorder.js +1 -1
  31. package/dist/product-tours-preview.d.ts +12 -0
  32. package/dist/product-tours-preview.js +1 -1
  33. package/dist/product-tours-preview.js.map +1 -1
  34. package/dist/product-tours.js +1 -1
  35. package/dist/product-tours.js.map +1 -1
  36. package/dist/src/entrypoints/element-inference.es.d.ts +1 -0
  37. package/dist/src/entrypoints/product-tours.d.ts +2 -0
  38. package/dist/src/extensions/product-tours/element-inference.d.ts +30 -0
  39. package/dist/src/extensions/product-tours/index.d.ts +2 -0
  40. package/dist/src/extensions/product-tours/product-tours-utils.d.ts +2 -1
  41. package/dist/src/extensions/surveys.d.ts +2 -2
  42. package/dist/src/posthog-product-tours-types.d.ts +7 -0
  43. package/dist/src/utils/survey-branching.d.ts +11 -0
  44. package/dist/src/utils/survey-url-prefill.d.ts +7 -5
  45. package/dist/surveys-preview.d.ts +18 -1
  46. package/dist/surveys-preview.js +1 -1
  47. package/dist/surveys-preview.js.map +1 -1
  48. package/dist/surveys.js +1 -1
  49. package/dist/surveys.js.map +1 -1
  50. package/lib/package.json +5 -1
  51. package/lib/src/entrypoints/element-inference.es.d.ts +1 -0
  52. package/lib/src/entrypoints/element-inference.es.js +8 -0
  53. package/lib/src/entrypoints/element-inference.es.js.map +1 -0
  54. package/lib/src/entrypoints/product-tours.d.ts +2 -0
  55. package/lib/src/entrypoints/product-tours.js +5 -0
  56. package/lib/src/entrypoints/product-tours.js.map +1 -1
  57. package/lib/src/extensions/product-tours/components/ProductTourTooltip.js +5 -2
  58. package/lib/src/extensions/product-tours/components/ProductTourTooltip.js.map +1 -1
  59. package/lib/src/extensions/product-tours/components/ProductTourTooltipInner.js +1 -1
  60. package/lib/src/extensions/product-tours/components/ProductTourTooltipInner.js.map +1 -1
  61. package/lib/src/extensions/product-tours/element-inference.d.ts +30 -0
  62. package/lib/src/extensions/product-tours/element-inference.js +296 -0
  63. package/lib/src/extensions/product-tours/element-inference.js.map +1 -0
  64. package/lib/src/extensions/product-tours/index.d.ts +2 -0
  65. package/lib/src/extensions/product-tours/index.js +4 -1
  66. package/lib/src/extensions/product-tours/index.js.map +1 -1
  67. package/lib/src/extensions/product-tours/preview.js +1 -1
  68. package/lib/src/extensions/product-tours/preview.js.map +1 -1
  69. package/lib/src/extensions/product-tours/product-tours-utils.d.ts +2 -1
  70. package/lib/src/extensions/product-tours/product-tours-utils.js +12 -0
  71. package/lib/src/extensions/product-tours/product-tours-utils.js.map +1 -1
  72. package/lib/src/extensions/product-tours/product-tours.js +15 -31
  73. package/lib/src/extensions/product-tours/product-tours.js.map +1 -1
  74. package/lib/src/extensions/surveys.d.ts +2 -2
  75. package/lib/src/extensions/surveys.js +5 -94
  76. package/lib/src/extensions/surveys.js.map +1 -1
  77. package/lib/src/posthog-product-tours-types.d.ts +7 -0
  78. package/lib/src/posthog-product-tours-types.js.map +1 -1
  79. package/lib/src/utils/survey-branching.d.ts +11 -0
  80. package/lib/src/utils/survey-branching.js +106 -0
  81. package/lib/src/utils/survey-branching.js.map +1 -0
  82. package/lib/src/utils/survey-url-prefill.d.ts +7 -5
  83. package/lib/src/utils/survey-url-prefill.js +30 -18
  84. package/lib/src/utils/survey-url-prefill.js.map +1 -1
  85. package/lib/tsconfig.tsbuildinfo +1 -1
  86. package/package.json +7 -3
@@ -1,2 +1,2 @@
1
- !function(){"use strict";var t="undefined"!=typeof window?window:void 0,r="undefined"!=typeof globalThis?globalThis:t;"undefined"==typeof self&&(r.self=r),"undefined"==typeof File&&(r.File=function(){});var e=null==r?void 0:r.navigator,o=null==r?void 0:r.document;null==r||r.location,null==r||r.fetch,null!=r&&r.XMLHttpRequest&&"withCredentials"in new r.XMLHttpRequest&&r.XMLHttpRequest,null==r||r.AbortController,null==e||e.userAgent;var n=null!=t?t:{};function i(){return i=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var o in e)({}).hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},i.apply(null,arguments)}var u,l,s,a,c,d,h,p,f={},v=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function _(t,r){for(var e in r)t[e]=r[e];return t}function m(t){var r=t.parentNode;r&&r.removeChild(t)}function y(t,r,e,o,n){var i={type:t,props:r,key:e,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==n?++s:n,__i:-1,__u:0};return null==n&&null!=l.vnode&&l.vnode(i),i}function x(t){return t.children}function w(t,r){this.props=t,this.context=r}function C(t,r){if(null==r)return t.__?C(t.__,t.__i+1):null;for(var e;r<t.__k.length;r++)if(null!=(e=t.__k[r])&&null!=e.__e)return e.__e;return"function"==typeof t.type?C(t):null}function k(t){var r,e;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,r=0;r<t.__k.length;r++)if(null!=(e=t.__k[r])&&null!=e.__e){t.__e=t.__c.base=e.__e;break}return k(t)}}function T(t){(!t.__d&&(t.__d=!0)&&a.push(t)&&!q.__r++||c!==l.debounceRendering)&&((c=l.debounceRendering)||d)(q)}function q(){var t,r,e,o,n,i,u,s,c;for(a.sort(h);t=a.shift();)t.__d&&(r=a.length,o=void 0,i=(n=(e=t).__v).__e,s=[],c=[],(u=e.__P)&&((o=_({},n)).__v=n.__v+1,l.vnode&&l.vnode(o),j(u,o,n,e.__n,void 0!==u.ownerSVGElement,32&n.__u?[i]:null,s,null==i?C(n):i,!!(32&n.__u),c),o.__.__k[o.__i]=o,A(s,o,c),o.__e!=i&&k(o)),a.length>r&&a.sort(h));q.__r=0}function S(t,r,e,o,n,i,u,l,s,a,c){var d,h,p,g,_,m=o&&o.__k||v,w=r.length;for(e.__d=s,function(t,r,e){var o,n,i,u,l,s=r.length,a=e.length,c=a,d=0;for(t.__k=[],o=0;o<s;o++)null!=(n=t.__k[o]=null==(n=r[o])||"boolean"==typeof n||"function"==typeof n?null:"string"==typeof n||"number"==typeof n||"bigint"==typeof n||n.constructor==String?y(null,n,null,null,n):b(n)?y(x,{children:n},null,null,null):void 0===n.constructor&&n.__b>0?y(n.type,n.props,n.key,n.ref?n.ref:null,n.__v):n)?(n.__=t,n.__b=t.__b+1,l=M(n,e,u=o+d,c),n.__i=l,i=null,-1!==l&&(c--,(i=e[l])&&(i.__u|=131072)),null==i||null===i.__v?(-1==l&&d--,"function"!=typeof n.type&&(n.__u|=65536)):l!==u&&(l===u+1?d++:l>u?c>s-u?d+=l-u:d--:d=l<u&&l==u-1?l-u:0,l!==o+d&&(n.__u|=65536))):(i=e[o])&&null==i.key&&i.__e&&(i.__e==t.__d&&(t.__d=C(i)),z(i,i,!1),e[o]=null,c--);if(c)for(o=0;o<a;o++)null!=(i=e[o])&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=C(i)),z(i,i))}(e,r,m),s=e.__d,d=0;d<w;d++)null!=(p=e.__k[d])&&"boolean"!=typeof p&&"function"!=typeof p&&(h=-1===p.__i?f:m[p.__i]||f,p.__i=d,j(t,p,h,n,i,u,l,s,a,c),g=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&E(h.ref,null,p),c.push(p.ref,p.__c||g,p)),null==_&&null!=g&&(_=g),65536&p.__u||h.__k===p.__k?s=L(p,s,t):"function"==typeof p.type&&void 0!==p.__d?s=p.__d:g&&(s=g.nextSibling),p.__d=void 0,p.__u&=-196609);e.__d=s,e.__e=_}function L(t,r,e){var o,n;if("function"==typeof t.type){for(o=t.__k,n=0;o&&n<o.length;n++)o[n]&&(o[n].__=t,r=L(o[n],r,e));return r}return t.__e!=r&&(e.insertBefore(t.__e,r||null),r=t.__e),r&&r.nextSibling}function M(t,r,e,o){var n=t.key,i=t.type,u=e-1,l=e+1,s=r[e];if(null===s||s&&n==s.key&&i===s.type)return e;if(o>(null!=s&&0==(131072&s.__u)?1:0))for(;u>=0||l<r.length;){if(u>=0){if((s=r[u])&&0==(131072&s.__u)&&n==s.key&&i===s.type)return u;u--}if(l<r.length){if((s=r[l])&&0==(131072&s.__u)&&n==s.key&&i===s.type)return l;l++}}return-1}function Z(t,r,e){"-"===r[0]?t.setProperty(r,null==e?"":e):t[r]=null==e?"":"number"!=typeof e||g.test(r)?e:e+"px"}function I(t,r,e,o,n){var i;t:if("style"===r)if("string"==typeof e)t.style.cssText=e;else{if("string"==typeof o&&(t.style.cssText=o=""),o)for(r in o)e&&r in e||Z(t.style,r,"");if(e)for(r in e)o&&e[r]===o[r]||Z(t.style,r,e[r])}else if("o"===r[0]&&"n"===r[1])i=r!==(r=r.replace(/(PointerCapture)$|Capture$/,"$1")),r=r.toLowerCase()in t?r.toLowerCase().slice(2):r.slice(2),t.l||(t.l={}),t.l[r+i]=e,e?o?e.u=o.u:(e.u=Date.now(),t.addEventListener(r,i?H:V,i)):t.removeEventListener(r,i?H:V,i);else{if(n)r=r.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==r&&"height"!==r&&"href"!==r&&"list"!==r&&"form"!==r&&"tabIndex"!==r&&"download"!==r&&"rowSpan"!==r&&"colSpan"!==r&&"role"!==r&&r in t)try{t[r]=null==e?"":e;break t}catch(t){}"function"==typeof e||(null==e||!1===e&&"-"!==r[4]?t.removeAttribute(r):t.setAttribute(r,e))}}function V(t){var r=this.l[t.type+!1];if(t.t){if(t.t<=r.u)return}else t.t=Date.now();return r(l.event?l.event(t):t)}function H(t){return this.l[t.type+!0](l.event?l.event(t):t)}function j(t,r,e,o,n,i,u,s,a,c){var d,h,p,f,v,g,m,y,C,k,T,$,q,L,M,Z=r.type;if(void 0!==r.constructor)return null;128&e.__u&&(a=!!(32&e.__u),i=[s=r.__e=e.__e]),(d=l.__b)&&d(r);t:if("function"==typeof Z)try{if(y=r.props,C=(d=Z.contextType)&&o[d.__c],k=d?C?C.props.value:d.__:o,e.__c?m=(h=r.__c=e.__c).__=h.__E:("prototype"in Z&&Z.prototype.render?r.__c=h=new Z(y,k):(r.__c=h=new w(y,k),h.constructor=Z,h.render=N),C&&C.sub(h),h.props=y,h.state||(h.state={}),h.context=k,h.__n=o,p=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=Z.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=_({},h.__s)),_(h.__s,Z.getDerivedStateFromProps(y,h.__s))),f=h.props,v=h.state,h.__v=r,p)null==Z.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==Z.getDerivedStateFromProps&&y!==f&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(y,k),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(y,h.__s,k)||r.__v===e.__v)){for(r.__v!==e.__v&&(h.props=y,h.state=h.__s,h.__d=!1),r.__e=e.__e,r.__k=e.__k,r.__k.forEach((function(t){t&&(t.__=r)})),T=0;T<h._sb.length;T++)h.__h.push(h._sb[T]);h._sb=[],h.__h.length&&u.push(h);break t}null!=h.componentWillUpdate&&h.componentWillUpdate(y,h.__s,k),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(f,v,g)}))}if(h.context=k,h.props=y,h.__P=t,h.__e=!1,$=l.__r,q=0,"prototype"in Z&&Z.prototype.render){for(h.state=h.__s,h.__d=!1,$&&$(r),d=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,$&&$(r),d=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++q<25);h.state=h.__s,null!=h.getChildContext&&(o=_(_({},o),h.getChildContext())),p||null==h.getSnapshotBeforeUpdate||(g=h.getSnapshotBeforeUpdate(f,v)),S(t,b(M=null!=d&&d.type===x&&null==d.key?d.props.children:d)?M:[M],r,e,o,n,i,u,s,a,c),h.base=r.__e,r.__u&=-161,h.__h.length&&u.push(h),m&&(h.__E=h.__=null)}catch(t){r.__v=null,a||null!=i?(r.__e=s,r.__u|=a?160:32,i[i.indexOf(s)]=null):(r.__e=e.__e,r.__k=e.__k),l.__e(t,r,e)}else null==i&&r.__v===e.__v?(r.__k=e.__k,r.__e=e.__e):r.__e=P(e.__e,r,e,o,n,i,u,a,c);(d=l.diffed)&&d(r)}function A(t,r,e){r.__d=void 0;for(var o=0;o<e.length;o++)E(e[o],e[++o],e[++o]);l.__c&&l.__c(r,t),t.some((function(r){try{t=r.__h,r.__h=[],t.some((function(t){t.call(r)}))}catch(t){l.__e(t,r.__v)}}))}function P(t,r,e,o,n,i,l,s,a){var c,d,h,p,v,g,_,y=e.props,x=r.props,w=r.type;if("svg"===w&&(n=!0),null!=i)for(c=0;c<i.length;c++)if((v=i[c])&&"setAttribute"in v==!!w&&(w?v.localName===w:3===v.nodeType)){t=v,i[c]=null;break}if(null==t){if(null===w)return document.createTextNode(x);t=n?document.createElementNS("http://www.w3.org/2000/svg",w):document.createElement(w,x.is&&x),i=null,s=!1}if(null===w)y===x||s&&t.data===x||(t.data=x);else{if(i=i&&u.call(t.childNodes),y=e.props||f,!s&&null!=i)for(y={},c=0;c<t.attributes.length;c++)y[(v=t.attributes[c]).name]=v.value;for(c in y)v=y[c],"children"==c||("dangerouslySetInnerHTML"==c?h=v:"key"===c||c in x||I(t,c,null,v,n));for(c in x)v=x[c],"children"==c?p=v:"dangerouslySetInnerHTML"==c?d=v:"value"==c?g=v:"checked"==c?_=v:"key"===c||s&&"function"!=typeof v||y[c]===v||I(t,c,v,y[c],n);if(d)s||h&&(d.__html===h.__html||d.__html===t.innerHTML)||(t.innerHTML=d.__html),r.__k=[];else if(h&&(t.innerHTML=""),S(t,b(p)?p:[p],r,e,o,n&&"foreignObject"!==w,i,l,i?i[0]:e.__k&&C(e,0),s,a),null!=i)for(c=i.length;c--;)null!=i[c]&&m(i[c]);s||(c="value",void 0!==g&&(g!==t[c]||"progress"===w&&!g||"option"===w&&g!==y[c])&&I(t,c,g,y[c],!1),c="checked",void 0!==_&&_!==t[c]&&I(t,c,_,y[c],!1))}return t}function E(t,r,e){try{"function"==typeof t?t(r):t.current=r}catch(t){l.__e(t,e)}}function z(t,r,e){var o,n;if(l.unmount&&l.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||E(o,null,r)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){l.__e(t,r)}o.base=o.__P=null,t.__c=void 0}if(o=t.__k)for(n=0;n<o.length;n++)o[n]&&z(o[n],r,e||"function"!=typeof t.type);e||null==t.__e||m(t.__e),t.__=t.__e=t.__d=void 0}function N(t,r,e){return this.constructor(t,e)}function Q(t,r,e){var o,n,i;l.__&&l.__(t,r),o=!1?null:r.__k,n=[],i=[],j(r,t=r.__k=function(t,r,e){var o,n,i,l={};for(i in r)"key"==i?o=r[i]:"ref"==i?n=r[i]:l[i]=r[i];if(arguments.length>2&&(l.children=arguments.length>3?u.call(arguments,2):e),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===l[i]&&(l[i]=t.defaultProps[i]);return y(t,l,o,n,null)}(x,null,[t]),o||f,f,void 0!==r.ownerSVGElement,o?null:r.firstChild?u.call(r.childNodes):null,n,o?o.__e:r.firstChild,false,i),A(n,t,i)}u=v.slice,l={__e:function(t,r,e,o){for(var n,i,u;r=r.__;)if((n=r.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(t)),u=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t,o||{}),u=n.__d),u)return n.__E=n}catch(r){t=r}throw t}},s=0,w.prototype.setState=function(t,r){var e;e=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=_({},this.state),"function"==typeof t&&(t=t(_({},e),this.props)),t&&_(e,t),null!=t&&this.__v&&(r&&this._sb.push(r),T(this))},w.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),T(this))},w.prototype.render=x,a=[],d="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,h=function(t,r){return t.__v.__b-r.__v.__b},q.__r=0,p=0;var B=function(t){return t.Activation="events",t.Cancellation="cancelEvents",t}({}),D=function(t){return t.SHOWN="survey shown",t.DISMISSED="survey dismissed",t.SENT="survey sent",t.ABANDONED="survey abandoned",t}({}),F=function(t){return t.SURVEY_ID="$survey_id",t.SURVEY_NAME="$survey_name",t.SURVEY_RESPONSE="$survey_response",t.SURVEY_ITERATION="$survey_iteration",t.SURVEY_ITERATION_START_DATE="$survey_iteration_start_date",t.SURVEY_PARTIALLY_COMPLETED="$survey_partially_completed",t.SURVEY_SUBMISSION_ID="$survey_submission_id",t.SURVEY_QUESTIONS="$survey_questions",t.SURVEY_COMPLETED="$survey_completed",t.PRODUCT_TOUR_ID="$product_tour_id",t.SURVEY_LAST_SEEN_DATE="$survey_last_seen_date",t}({}),R={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},O=function(t){return t.Regex="regex",t.NotRegex="not_regex",t.Exact="exact",t.IsNot="is_not",t.Icontains="icontains",t.NotIcontains="not_icontains",t}({}),U=Array.isArray,J=Object.prototype.toString,Y=U||function(t){return"[object Array]"===J.call(t)},W=t=>void 0===t,K=t=>null===t,X=t=>W(t)||K(t),G=function(r,e){var{debugEnabled:o}=void 0===e?{}:e,i={o:function(e){if(t&&(n.POSTHOG_DEBUG||o)&&!W(t.console)&&t.console){for(var i=("__rrweb_original__"in t.console[e]?t.console[e].__rrweb_original__:t.console[e]),u=arguments.length,l=new Array(u>1?u-1:0),s=1;s<u;s++)l[s-1]=arguments[s];i(r,...l)}},info:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];i.o("log",...r)},warn:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];i.o("warn",...r)},error:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];i.o("error",...r)},critical:function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];console.error(r,...e)},uninitializedWarning:t=>{i.error("You must initialize PostHog before calling "+t)},createLogger:(t,e)=>G(r+" "+t,e)};return i},tt=G("[PostHog.js]"),rt=tt.createLogger,et=rt("[Stylesheet Loader]"),ot=(t,r,e)=>{var o=t.createElement("style");return o.innerText=r,o||(et.error("prepare_external_dependency_stylesheet returned null"),null)};function nt(t,r,e,o){var{capture:n=!1,passive:i=!0}=null!=o?o:{};null==t||t.addEventListener(r,e,{capture:n,passive:i})}rt("[Surveys]"),null!=e&&e.sendBeacon;var it=function(t,r){if(!function(t){try{new RegExp(t)}catch(t){return!1}return!0}(r))return!1;try{return new RegExp(r).test(t)}catch(t){return!1}},ut={exact:(t,r)=>r.some((r=>t.some((t=>r===t)))),is_not:(t,r)=>r.every((r=>t.every((t=>r!==t)))),regex:(t,r)=>r.some((r=>t.some((t=>it(r,t))))),not_regex:(t,r)=>r.every((r=>t.every((t=>!it(r,t))))),icontains:(t,r)=>r.map(lt).some((r=>t.map(lt).some((t=>r.includes(t))))),not_icontains:(t,r)=>r.map(lt).every((r=>t.map(lt).every((t=>!r.includes(t))))),gt:(t,r)=>r.some((r=>{var e=parseFloat(r);return!isNaN(e)&&t.some((t=>e>parseFloat(t)))})),lt:(t,r)=>r.some((r=>{var e=parseFloat(r);return!isNaN(e)&&t.some((t=>e<parseFloat(t)))}))},lt=t=>t.toLowerCase();function st(t,r){return!t||Object.entries(t).every((t=>{var[e,o]=t,n=null==r?void 0:r[e];if(W(n)||K(n))return!1;var i=[String(n)],u=ut[o.operator];return!!u&&u(o.values,i)}))}var at,ct,dt,ht,pt=0,ft=[],vt=[],gt=l.__b,bt=l.__r,_t=l.diffed,mt=l.__c,yt=l.unmount;function xt(t,r){l.__h&&l.__h(ct,t,pt||r),pt=0;var e=ct.__H||(ct.__H={__:[],__h:[]});return t>=e.__.length&&e.__.push({__V:vt}),e.__[t]}function wt(t){return pt=1,function(t,r,e){var o=xt(at++,2);if(o.t=t,!o.__c&&(o.__=[It(void 0,r),function(t){var r=o.__N?o.__N[0]:o.__[0],e=o.t(r,t);r!==e&&(o.__N=[e,o.__[1]],o.__c.setState({}))}],o.__c=ct,!ct.u)){var n=function(t,r,e){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,r,e);var u=!1;return n.forEach((function(t){if(t.__N){var r=t.__[0];t.__=t.__N,t.__N=void 0,r!==t.__[0]&&(u=!0)}})),!(!u&&o.__c.props===t)&&(!i||i.call(this,t,r,e))};ct.u=!0;var i=ct.shouldComponentUpdate,u=ct.componentWillUpdate;ct.componentWillUpdate=function(t,r,e){if(this.__e){var o=i;i=void 0,n(t,r,e),i=o}u&&u.call(this,t,r,e)},ct.shouldComponentUpdate=n}return o.__N||o.__}(It,t)}function Ct(t,r){var e=xt(at++,3);!l.__s&&Zt(e.__H,r)&&(e.__=t,e.i=r,ct.__H.__h.push(e))}function kt(t){return pt=5,Tt((function(){return{current:t}}),[])}function Tt(t,r){var e=xt(at++,7);return Zt(e.__H,r)?(e.__V=t(),e.i=r,e.__h=t,e.__V):e.__}function qt(){for(var t;t=ft.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Lt),t.__H.__h.forEach(Mt),t.__H.__h=[]}catch(r){t.__H.__h=[],l.__e(r,t.__v)}}l.__b=function(t){ct=null,gt&&gt(t)},l.__r=function(t){bt&&bt(t),at=0;var r=(ct=t.__c).__H;r&&(dt===ct?(r.__h=[],ct.__h=[],r.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=vt,t.__N=t.i=void 0}))):(r.__h.forEach(Lt),r.__h.forEach(Mt),r.__h=[],at=0)),dt=ct},l.diffed=function(t){_t&&_t(t);var r=t.__c;r&&r.__H&&(r.__H.__h.length&&(1!==ft.push(r)&&ht===l.requestAnimationFrame||((ht=l.requestAnimationFrame)||$t)(qt)),r.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==vt&&(t.__=t.__V),t.i=void 0,t.__V=vt}))),dt=ct=null},l.__c=function(t,r){r.some((function(t){try{t.__h.forEach(Lt),t.__h=t.__h.filter((function(t){return!t.__||Mt(t)}))}catch(e){r.some((function(t){t.__h&&(t.__h=[])})),r=[],l.__e(e,t.__v)}})),mt&&mt(t,r)},l.unmount=function(t){yt&&yt(t);var r,e=t.__c;e&&e.__H&&(e.__H.__.forEach((function(t){try{Lt(t)}catch(t){r=t}})),e.__H=void 0,r&&l.__e(r,e.__v))};var St="function"==typeof requestAnimationFrame;function $t(t){var r,e=function(){clearTimeout(o),St&&cancelAnimationFrame(r),setTimeout(t)},o=setTimeout(e,100);St&&(r=requestAnimationFrame(e))}function Lt(t){var r=ct,e=t.__c;"function"==typeof e&&(t.__c=void 0,e()),ct=r}function Mt(t){var r=ct;t.__c=t.__(),ct=r}function Zt(t,r){return!t||t.length!==r.length||r.some((function(r,e){return r!==t[e]}))}function It(t,r){return"function"==typeof r?r(t):r}var Vt="#020617",Ht={backgroundColor:"#eeeded"};function jt(t){if(t.startsWith("#")){var r=t.replace(/^#/,"");return/^[0-9A-Fa-f]{3}$/.test(r)&&(r=r[0]+r[0]+r[1]+r[1]+r[2]+r[2]),/^[0-9A-Fa-f]{6}$/.test(r)?"rgb("+parseInt(r.slice(0,2),16)+","+parseInt(r.slice(2,4),16)+","+parseInt(r.slice(4,6),16)+")":"rgb(255, 255, 255)"}return"rgb(255, 255, 255)"}function At(t){var r;void 0===t&&(t=Ht.backgroundColor),"#"===t[0]&&(r=jt(t)),t.startsWith("rgb")&&(r=t);var e={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(e&&(r=jt(e)),!r)return Vt;var o=r.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);if(o){var n=parseInt(o[1]),i=parseInt(o[2]),u=parseInt(o[3]);return Math.sqrt(n*n*.299+i*i*.587+u*u*.114)>127.5?Vt:"white"}return Vt}!function(t,r){var e={__c:r="__cC"+p++,__:t,Consumer:function(t,r){return t.children(r)},Provider:function(t){var e,o;return this.getChildContext||(e=[],(o={})[r]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&e.some((function(t){t.__e=!0,T(t)}))},this.sub=function(t){e.push(t);var r=t.componentWillUnmount;t.componentWillUnmount=function(){e.splice(e.indexOf(t),1),r&&r.call(t)}}),t.children}};e.Provider.__=e.Consumer.contextType=e}({isPreviewMode:!1,previewPageIndex:0,onPopupSurveyDismissed:()=>{},isPopup:!0,onPreviewSubmit:()=>{},surveySubmissionId:""});var Pt=':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)}',Et=o,zt=t;function Nt(t){try{var r=Et.querySelectorAll(t);if(0===r.length)return{element:null,error:"not_found",matchCount:0};var e=r[0];return function(t){var r=zt.getComputedStyle(t);if("none"===r.display||"hidden"===r.visibility||"0"===r.opacity)return!1;var e=t.getBoundingClientRect();if(0===e.width||0===e.height)return!1;return!0}(e)?r.length>1?{element:e,error:"multiple_matches",matchCount:r.length}:{element:e,error:null,matchCount:1}:{element:null,error:"not_visible",matchCount:r.length}}catch(t){return{element:null,error:"not_found",matchCount:0}}}var Qt=12,Bt=320,Dt=180;function Ft(t,r){var e,o,n,u=i({},R,r),l=t.style;l.setProperty("--ph-tour-background-color",u.backgroundColor),l.setProperty("--ph-tour-text-color",u.textColor),l.setProperty("--ph-tour-button-color",u.buttonColor),l.setProperty("--ph-tour-border-radius",u.borderRadius+"px"),l.setProperty("--ph-tour-button-border-radius",u.buttonBorderRadius+"px"),l.setProperty("--ph-tour-border-color",u.borderColor),l.setProperty("--ph-tour-font-family",function(t){if("inherit"===t)return"inherit";var r='BlinkMacSystemFont, "Inter", "Segoe UI", "Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';return t?t+", "+r:"-apple-system, "+r}(u.fontFamily)),l.setProperty("--ph-tour-text-secondary-color",(e=u.textColor,o=.6,(n=jt(e).match(/^rgb\((\d+),(\d+),(\d+)\)$/))?"rgba("+n[1]+", "+n[2]+", "+n[3]+", "+o+")":e)),l.setProperty("--ph-tour-branding-text-color",At(u.backgroundColor)),l.setProperty("--ph-tour-button-text-color",At(u.buttonColor)),l.setProperty("--ph-tour-box-shadow",u.boxShadow),l.setProperty("--ph-tour-overlay-color",u.showOverlay?"rgba(0, 0, 0, 0.5)":"transparent"),l.setProperty("--ph-tour-button-secondary-color","transparent"),l.setProperty("--ph-tour-button-secondary-text-color",u.textColor),l.setProperty("--ph-tour-max-width","320px"),l.setProperty("--ph-tour-padding","16px")}function Rt(t){var r;if(!t)return"";if("string"==typeof t)return Ut(t);if("text"===t.type){var e=Ut(t.text||"");if(t.marks)for(var o of t.marks)switch(o.type){case"bold":e="<strong>"+e+"</strong>";break;case"italic":e="<em>"+e+"</em>";break;case"underline":e="<u>"+e+"</u>";break;case"strike":e="<s>"+e+"</s>"}return e}var n=(null==(r=t.content)?void 0:r.map(Rt).join(""))||"";switch(t.type){case"doc":default:return n;case"paragraph":return"<p>"+n+"</p>";case"heading":var i,u=(null==(i=t.attrs)?void 0:i.level)||1;return"<h"+u+">"+n+"</h"+u+">";case"bulletList":return"<ul>"+n+"</ul>";case"orderedList":return"<ol>"+n+"</ol>";case"listItem":return"<li>"+n+"</li>";case"hardBreak":return"<br>"}}function Ot(t){return t.endsWith("/")?t.slice(0,-1):t}function Ut(t){var r=Et.createElement("div");return r.textContent=t,r.innerHTML}var Jt=0;function Yt(t,r,e,o,n,i){var u,s,a={};for(s in r)"ref"==s?u=r[s]:a[s]=r[s];var c={type:t,props:a,key:e,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Jt,__i:-1,__u:0,__source:n,__self:i};if("function"==typeof t&&(u=t.defaultProps))for(s in u)void 0===a[s]&&(a[s]=u[s]);return l.vnode&&l.vnode(c),c}var Wt=Yt("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Yt("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"})}),Kt=Yt("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Yt("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"})}),Xt=Yt("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Yt("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"})}),Gt=Yt("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Yt("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"})}),tr=Yt("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Yt("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"})}),rr=Yt("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:[Yt("title",{id:"close-survey-title",children:"Close survey"}),Yt("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"})]}),er=Yt("svg",{width:"77",height:"14",viewBox:"0 0 77 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Yt("g",{"clip-path":"url(#clip0_2415_6911)",children:[Yt("mask",{id:"mask0_2415_6911",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"77",height:"14",children:Yt("path",{d:"M0.5 0H76.5V14H0.5V0Z",fill:"white"})}),Yt("g",{mask:"url(#mask0_2415_6911)",children:[Yt("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"}),Yt("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"}),Yt("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"}),Yt("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"}),Yt("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"}),Yt("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"})]})]}),Yt("defs",{children:Yt("clipPath",{id:"clip0_2415_6911",children:Yt("rect",{width:"76",height:"14",fill:"white",transform:"translate(0.5)"})})})]});function or(t){var r,{step:e,appearance:o,stepIndex:n,totalSteps:i,onNext:u,onPrevious:l,onDismiss:s}=t,a=null!==(r=null==o?void 0:o.whiteLabel)&&void 0!==r&&r,c=n>=i-1,d=0===n,h="button"===e.progressionTrigger||"modal"===e.type,p=!!(u||l||s),f=p?void 0:{cursor:"default"};return Yt(x,{children:[Yt("button",{class:"ph-tour-dismiss",onClick:s,"aria-label":"Close tour",style:f,children:rr}),Yt("div",{class:"ph-tour-content",dangerouslySetInnerHTML:{__html:Rt(e.content)}}),Yt("div",{class:"ph-tour-footer",children:[Yt("span",{class:"ph-tour-progress",children:[n+1," of ",i]}),Yt("div",{class:"ph-tour-buttons",children:[!d&&Yt("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:l,style:f,children:"Back"}),h&&Yt("button",{class:"ph-tour-button ph-tour-button--primary",onClick:u,style:f,children:c?"Done":"Next"})]})]}),!a&&Yt("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 ",er]})]})}Yt("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Yt("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 nr=[Xt,Kt,Wt],ir=[Gt,Xt,Kt,Wt,tr];function ur(t){var{value:r,onChange:e,onSubmit:o,isInteractive:n}=t,i=kt(null);Ct((()=>{n&&setTimeout((()=>{var t;return null==(t=i.current)?void 0:t.focus()}),100)}),[n]);return Yt("textarea",{ref:i,class:"ph-tour-survey-textarea",rows:3,placeholder:"Your feedback (optional)...",value:r,onInput:t=>e(t.target.value),onKeyDown:t=>{"Enter"===t.key&&t.metaKey&&n&&(t.preventDefault(),null==o||o())},disabled:!n,style:n?void 0:{cursor:"default"}})}function lr(t){var{survey:r,onSubmit:e,isInteractive:o}=t,[n,i]=wt(null),u=r.display||"emoji",l=r.scale||5,s=t=>{o&&(i(t),null==e||e(t))};if("emoji"===u)return Yt("div",{class:"ph-tour-survey-rating-container",children:[Yt("div",{class:"ph-tour-survey-rating-emoji",children:(3===l?nr:ir).map(((t,r)=>{var e=r+1;return Yt("button",{type:"button",class:"ph-tour-survey-emoji-button "+(n===e?"ph-tour-survey-emoji-button--active":""),onClick:()=>s(e),style:o?void 0:{cursor:"default"},"aria-label":"Rate "+e,children:t},r)}))}),(r.lowerBoundLabel||r.upperBoundLabel)&&Yt("div",{class:"ph-tour-survey-rating-labels",children:[Yt("span",{children:r.lowerBoundLabel}),Yt("span",{children:r.upperBoundLabel})]})]});var a=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 Yt("div",{class:"ph-tour-survey-rating-container",children:[Yt("div",{class:"ph-tour-survey-rating-numbers",style:{gridTemplateColumns:"repeat("+a.length+", minmax(0, 1fr))"},children:a.map((t=>Yt("button",{type:"button",class:"ph-tour-survey-number-button "+(n===t?"ph-tour-survey-number-button--active":""),onClick:()=>s(t),style:o?void 0:{cursor:"default"},"aria-label":"Rate "+t,children:t},t)))}),(r.lowerBoundLabel||r.upperBoundLabel)&&Yt("div",{class:"ph-tour-survey-rating-labels",children:[Yt("span",{children:r.lowerBoundLabel}),Yt("span",{children:r.upperBoundLabel})]})]})}function sr(t){var r,{step:e,appearance:o,stepIndex:n,totalSteps:i,onPrevious:u,onSubmit:l,onDismiss:s}=t,[a,c]=wt(""),d=e.survey,h=null!==(r=null==o?void 0:o.whiteLabel)&&void 0!==r&&r,p=0===n,f="open"===(null==d?void 0:d.type),v=!!(u||l||s),g=v?void 0:{cursor:"default"},b=()=>{null==l||l(a.trim()||null)};return d?Yt(x,{children:[Yt("button",{class:"ph-tour-dismiss",onClick:s,"aria-label":"Close survey",style:g,children:rr}),Yt("div",{class:"ph-tour-survey-question",children:d.questionText}),f?Yt(ur,{value:a,onChange:c,onSubmit:b,isInteractive:v}):Yt(lr,{survey:d,onSubmit:l,isInteractive:v}),Yt("div",{class:"ph-tour-footer",children:[Yt("span",{class:"ph-tour-progress",children:[n+1," of ",i]}),Yt("div",{class:"ph-tour-buttons",children:[!p&&Yt("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:u,style:g,children:"Back"}),f&&Yt("button",{class:"ph-tour-button ph-tour-button--primary",onClick:b,style:g,children:"Submit"})]})]}),!h&&Yt("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 ",er]})]}):Yt("div",{})}var ar=t;function cr(t){return{top:"bottom",bottom:"top",left:"right",right:"left"}[t]}var dr=150;function hr(t){var{tour:r,step:e,stepIndex:o,totalSteps:n,targetElement:u,onNext:l,onPrevious:s,onDismiss:a,onSurveySubmit:c}=t,[d,h]=wt("entering"),[p,f]=wt(null),[v,g]=wt(null),[b,_]=wt(e),[m,y]=wt(o),x=kt(o),w=kt(!1),C="modal"===b.type||"survey"===b.type,k=function(t,r){return pt=8,Tt((function(){return t}),r)}((()=>{if(u){var t,r,e=u.getBoundingClientRect();f(function(t){var r,e,o,n=zt.innerWidth,i=zt.innerHeight-t.bottom,u=t.left;return n-t.right>=Bt+Qt?(r="right",e=t.top+t.height/2-Dt/2,o=t.right+Qt):u>=Bt+Qt?(r="left",e=t.top+t.height/2-Dt/2,o=t.left-Bt-Qt):i>=Dt+Qt?(r="bottom",e=t.bottom+Qt,o=t.left+t.width/2-Bt/2):(r="top",e=t.top-Dt-Qt,o=t.left+t.width/2-Bt/2),{top:e,left:o,position:r}}(e)),g((void 0===r&&(r=8),{top:(t=e).top-r+"px",left:t.left-r+"px",width:t.width+2*r+"px",height:t.height+2*r+"px"}))}}),[u]);Ct((()=>{var t=o,r=x.current!==o,n=()=>{x.current===t&&(h("visible"),w.current=!1)},i=()=>{u&&"element"===e.type?function(t,r){var e=t.getBoundingClientRect(),o=ar.innerHeight,n=ar.innerWidth,i=o/6,u=n/6;if(e.top>=i&&e.bottom<=o-i&&e.left>=u&&e.right<=n-u)r();else{t.scrollIntoView({behavior:"smooth",block:"center"});var l=e.top,s=0,a=!1,c=()=>{if(!a){var e=t.getBoundingClientRect();if(Math.abs(e.top-l)<1){if(++s>=3)return a=!0,void r()}else s=0;l=e.top,setTimeout(c,50)}};setTimeout(c,30),setTimeout((()=>{a||(a=!0,r())}),500)}}(u,(()=>{x.current===t&&(k(),setTimeout(n,50))})):setTimeout(n,50)};if(!r)return x.current=o,w.current=!0,void i();x.current=o,w.current=!0,h("exiting"),setTimeout((()=>{x.current===t&&("element"===e.type&&(f(null),g(null)),_(e),y(o),h("entering"),i())}),dr)}),[u,o,e,k]),Ct((()=>{if("visible"===d&&!C){var t=()=>{w.current||k()};return nt(ar,"scroll",t,{capture:!0}),nt(ar,"resize",t),()=>{null==ar||ar.removeEventListener("scroll",t,!0),null==ar||ar.removeEventListener("resize",t)}}}),[k,d,C]),Ct((()=>{var t=t=>{"Escape"===t.key&&a("escape_key")};return nt(ar,"keydown",t),()=>{null==ar||ar.removeEventListener("keydown",t)}}),[a]);var T="visible"===d,q="survey"===b.type,S=C||!K(p),L=C?{top:"50%",left:"50%",transform:"translate(-50%, -50%)"}:{top:p?p.top+"px":"0",left:p?p.left+"px":"0"};return Yt("div",{class:"ph-tour-container",children:[Yt("div",{class:"ph-tour-click-overlay",onClick:t=>{t.stopPropagation(),a("user_clicked_outside")}}),Yt("div",{class:"ph-tour-modal-overlay",style:{opacity:C&&T?1:0,transition:"opacity 150ms ease-out",pointerEvents:C?"auto":"none"}}),Yt("div",{class:"ph-tour-spotlight",style:i({},T&&S&&v?v:{top:"50%",left:"50%",width:"0px",height:"0px"},{opacity:!C&&T&&S?1:0,transition:"opacity 150ms ease-out"},"click"===b.progressionTrigger&&!C&&{pointerEvents:"auto",cursor:"pointer"}),onClick:"click"!==b.progressionTrigger||C?void 0:t=>{t.stopPropagation(),u&&u.click(),l()}}),Yt("div",{class:"ph-tour-tooltip "+(C?"ph-tour-tooltip--modal":"")+" "+(q?"ph-tour-survey-step":""),style:i({},L,{opacity:T&&S?1:0,transition:"opacity 150ms ease-out"}),onClick:t=>{t.stopPropagation()},children:[!C&&p&&Yt("div",{class:"ph-tour-arrow ph-tour-arrow--"+cr(p.position)}),q?Yt(sr,{step:b,appearance:r.appearance,stepIndex:m,totalSteps:n,onSubmit:c,onPrevious:s,onDismiss:()=>a("user_clicked_skip")}):Yt(or,{step:b,appearance:r.appearance,stepIndex:m,totalSteps:n,onNext:l,onPrevious:s,onDismiss:()=>a("user_clicked_skip")})]})]})}Math.trunc||(Math.trunc=function(t){return t<0?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return(t=>"[object Number]"==J.call(t))(t)&&isFinite(t)&&Math.floor(t)===t}),t&&!W(t.crypto)&&crypto.getRandomValues;var pr=null,fr={h:function(){if(!K(pr))return pr;var r=!0;if(W(t))r=!1;else try{var e="__mplssupport__";fr.p(e,"xyz"),'"xyz"'!==fr.v(e)&&(r=!1),fr.m(e)}catch(t){r=!1}return r||tt.error("localStorage unsupported; falling back to cookie store"),pr=r,r},C:function(t){tt.error("localStorage error: "+t)},v:function(r){try{return null==t?void 0:t.localStorage.getItem(r)}catch(t){fr.C(t)}return null},k:function(t){try{return JSON.parse(fr.v(t))||{}}catch(t){}return null},p:function(r,e){try{null==t||t.localStorage.setItem(r,JSON.stringify(e))}catch(t){fr.C(t)}},m:function(r){try{null==t||t.localStorage.removeItem(r)}catch(t){fr.C(t)}}},vr=null,gr={h:function(){if(!K(vr))return vr;if(vr=!0,W(t))vr=!1;else try{var r="__support__";gr.p(r,"xyz"),'"xyz"'!==gr.v(r)&&(vr=!1),gr.m(r)}catch(t){vr=!1}return vr},C:function(t){tt.error("sessionStorage error: ",t)},v:function(r){try{return null==t?void 0:t.sessionStorage.getItem(r)}catch(t){gr.C(t)}return null},k:function(t){try{return JSON.parse(gr.v(t))||null}catch(t){}return null},p:function(r,e){try{null==t||t.sessionStorage.setItem(r,JSON.stringify(e))}catch(t){gr.C(t)}},m:function(r){try{null==t||t.sessionStorage.removeItem(r)}catch(t){gr.C(t)}}},br="ph_product_tour_completed_",_r="ph_product_tour_dismissed_",mr="ph_active_product_tour";function yr(t){var r,e;return!!(null!=(r=t.conditions)&&r.events&&(null==(e=t.conditions.events.values)?void 0:e.length)>0)}function xr(t){var r,e;return!!(null!=(r=t.conditions)&&r.actions&&(null==(e=t.conditions.actions.values)?void 0:e.length)>0)}class wr{constructor(){this.T={},this.T={}}on(t,r){return this.T[t]||(this.T[t]=[]),this.T[t].push(r),()=>{this.T[t]=this.T[t].filter((t=>t!==r))}}emit(t,r){for(var e of this.T[t]||[])e(r);for(var o of this.T["*"]||[])o(t,r)}}function Cr(t,r,e){if(X(t))return!1;switch(e){case"exact":return t===r;case"contains":var o=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(o,"i").test(t);case"regex":try{return new RegExp(r).test(t)}catch(t){return!1}default:return!1}}class kr{constructor(t){this.q=new wr,this.S=(t,r)=>this.$(t,r)&&this.L(t,r)&&this.M(t,r)&&this.Z(t,r),this.$=(t,r)=>null==r||!r.event||(null==t?void 0:t.event)===(null==r?void 0:r.event),this._instance=t,this.I=new Set,this.V=new Set}init(){var t;if(!W(null==(t=this._instance)?void 0:t.H)){var r;null==(r=this._instance)||r.H(((t,r)=>{this.on(t,r)}))}}register(t){var r,e;if(!W(null==(r=this._instance)?void 0:r.H)&&(t.forEach((t=>{var r,e;null==(r=this.V)||r.add(t),null==(e=t.steps)||e.forEach((t=>{var r;null==(r=this.I)||r.add((null==t?void 0:t.event)||"")}))})),null!=(e=this._instance)&&e.autocapture)){var o,n=new Set;t.forEach((t=>{var r;null==(r=t.steps)||r.forEach((t=>{null!=t&&t.selector&&n.add(null==t?void 0:t.selector)}))})),null==(o=this._instance)||o.autocapture.setElementSelectors(n)}}on(t,r){var e;null!=r&&0!=t.length&&(this.I.has(t)||this.I.has(null==r?void 0:r.event))&&this.V&&(null==(e=this.V)?void 0:e.size)>0&&this.V.forEach((t=>{this.j(r,t)&&this.q.emit("actionCaptured",t.name)}))}A(t){this.onAction("actionCaptured",(r=>t(r)))}j(t,r){if(null==(null==r?void 0:r.steps))return!1;for(var e of r.steps)if(this.S(t,e))return!0;return!1}onAction(t,r){return this.q.on(t,r)}L(t,r){if(null!=r&&r.url){var e,o=null==t||null==(e=t.properties)?void 0:e.$current_url;if(!o||"string"!=typeof o)return!1;if(!Cr(o,r.url,r.url_matching||"contains"))return!1}return!0}M(t,r){return!!this.P(t,r)&&(!!this.N(t,r)&&!!this.B(t,r))}P(t,r){var e;if(null==r||!r.href)return!0;var o=this.D(t);if(o.length>0)return o.some((t=>Cr(t.href,r.href,r.href_matching||"exact")));var n,i=(null==t||null==(e=t.properties)?void 0:e.$elements_chain)||"";return!!i&&Cr((n=i.match(/(?::|")href="(.*?)"/))?n[1]:"",r.href,r.href_matching||"exact")}N(t,r){var e;if(null==r||!r.text)return!0;var o=this.D(t);if(o.length>0)return o.some((t=>Cr(t.text,r.text,r.text_matching||"exact")||Cr(t.$el_text,r.text,r.text_matching||"exact")));var n,i,u,l=(null==t||null==(e=t.properties)?void 0:e.$elements_chain)||"";return!!l&&(n=function(t){for(var r,e=[],o=/(?::|")text="(.*?)"/g;!X(r=o.exec(t));)e.includes(r[1])||e.push(r[1]);return e}(l),i=r.text,u=r.text_matching||"exact",n.some((t=>Cr(t,i,u))))}B(t,r){var e,o;if(null==r||!r.selector)return!0;var n=null==t||null==(e=t.properties)?void 0:e.$element_selectors;if(null!=n&&n.includes(r.selector))return!0;var i=(null==t||null==(o=t.properties)?void 0:o.$elements_chain)||"";if(r.selector_regex&&i)try{return new RegExp(r.selector_regex).test(i)}catch(t){return!1}return!1}D(t){var r;return null==(null==t||null==(r=t.properties)?void 0:r.$elements)?[]:null==t?void 0:t.properties.$elements}Z(t,r){return null==r||!r.properties||0===r.properties.length||st(r.properties.reduce(((t,r)=>{var e=Y(r.value)?r.value.map(String):null!=r.value?[String(r.value)]:[];return t[r.key]={values:e,operator:r.operator||"exact"},t}),{}),null==t?void 0:t.properties)}}class Tr{constructor(t){this._instance=t,this.F=new Map,this.R=new Map,this.O=new Map}U(t,r){return!!t&&st(t.propertyFilters,null==r?void 0:r.properties)}J(t,r){var e=new Map;return t.forEach((t=>{var o;null==(o=t.conditions)||null==(o=o[r])||null==(o=o.values)||o.forEach((r=>{if(null!=r&&r.name){var o=e.get(r.name)||[];o.push(t.id),e.set(r.name,o)}}))})),e}Y(t,r,e){var o=(e===B.Activation?this.F:this.R).get(t),n=[];return this.W((t=>{n=t.filter((t=>null==o?void 0:o.includes(t.id)))})),n.filter((o=>{var n,i=null==(n=o.conditions)||null==(n=n[e])||null==(n=n.values)?void 0:n.find((r=>r.name===t));return this.U(i,r)}))}register(t){var r;W(null==(r=this._instance)?void 0:r.H)||(this.K(t),this.X(t))}X(t){var r=t.filter((t=>{var r,e;return(null==(r=t.conditions)?void 0:r.actions)&&(null==(e=t.conditions)||null==(e=e.actions)||null==(e=e.values)?void 0:e.length)>0}));if(0!==r.length){if(null==this.G){this.G=new kr(this._instance),this.G.init();this.G.A((t=>{this.onAction(t)}))}r.forEach((t=>{var r,e,o,n,i;t.conditions&&null!=(r=t.conditions)&&r.actions&&null!=(e=t.conditions)&&null!=(e=e.actions)&&e.values&&(null==(o=t.conditions)||null==(o=o.actions)||null==(o=o.values)?void 0:o.length)>0&&(null==(n=this.G)||n.register(t.conditions.actions.values),null==(i=t.conditions)||null==(i=i.actions)||null==(i=i.values)||i.forEach((r=>{if(r&&r.name){var e=this.O.get(r.name);e&&e.push(t.id),this.O.set(r.name,e||[t.id])}})))}))}}K(t){var r,e=t.filter((t=>{var r,e;return(null==(r=t.conditions)?void 0:r.events)&&(null==(e=t.conditions)||null==(e=e.events)||null==(e=e.values)?void 0:e.length)>0})),o=t.filter((t=>{var r,e;return(null==(r=t.conditions)?void 0:r.cancelEvents)&&(null==(e=t.conditions)||null==(e=e.cancelEvents)||null==(e=e.values)?void 0:e.length)>0}));if(0!==e.length||0!==o.length){null==(r=this._instance)||r.H(((t,r)=>{this.onEvent(t,r)})),this.F=this.J(t,B.Activation),this.R=this.J(t,B.Cancellation)}}onEvent(t,r){var e,o=this.tt(),n=this.rt(),i=this.et(),u=(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[n])||[];if(i===t&&r&&u.length>0){var l,s;o.info("event matched, removing item from activated items",{event:t,eventPayload:r,existingActivatedItems:u});var a=(null==r||null==(l=r.properties)?void 0:l.$survey_id)||(null==r||null==(s=r.properties)?void 0:s.$product_tour_id);if(a){var c=u.indexOf(a);c>=0&&(u.splice(c,1),this.ot(u))}}else{if(this.R.has(t)){var d=this.Y(t,r,B.Cancellation);d.length>0&&(o.info("cancel event matched, cancelling items",{event:t,itemsToCancel:d.map((t=>t.id))}),d.forEach((t=>{var r=u.indexOf(t.id);r>=0&&u.splice(r,1),this.nt(t.id)})),this.ot(u))}if(this.F.has(t)){o.info("event name matched",{event:t,eventPayload:r,items:this.F.get(t)});var h=this.Y(t,r,B.Activation);this.ot(u.concat(h.map((t=>t.id))||[]))}}}onAction(t){var r,e=this.rt(),o=(null==(r=this._instance)||null==(r=r.persistence)?void 0:r.props[e])||[];this.O.has(t)&&this.ot(o.concat(this.O.get(t)||[]))}ot(t){var r,e=this.tt(),o=this.rt(),n=[...new Set(t)].filter((t=>!this.it(t)));e.info("updating activated items",{activatedItems:n}),null==(r=this._instance)||null==(r=r.persistence)||r.register({[o]:n})}getActivatedIds(){var t,r=this.rt(),e=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[r];return e||[]}getEventToItemsMap(){return this.F}ut(){return this.G}}var qr=rt("[Product Tour Event Receiver]");class Sr extends Tr{constructor(t){super(t)}rt(){return"$product_tours_activated"}et(){return"product tour shown"}W(t){var r;null==(r=this._instance)||null==(r=r.productTours)||r.getProductTours(t)}nt(t){var r;null==(r=this._instance)||null==(r=r.productTours)||r.cancelPendingTour(t)}tt(){return qr}it(t){if(!t)return!0;var r=""+br+t,e=""+_r+t;return!(!fr.v(r)&&!fr.v(e))}getTours(){return this.getActivatedIds()}}var $r=rt("[Product Tours]"),Lr=o,Mr=t;function Zr(t){var r=new Date;if(t.start_date&&r<new Date(t.start_date))return!1;if(t.end_date&&r>new Date(t.end_date))return!1;return!0}function Ir(t){return Zr(t)&&function(t){var r,e=t.conditions;if(null==e||!e.url)return!0;var o=null==Mr||null==(r=Mr.location)?void 0:r.href;if(!o)return!1;var n=e.urlMatchType||O.Icontains;if(n===O.Exact)return Ot(o)===Ot(e.url);var i=[e.url];return ut[n](i,[o])}(t)}var Vr="ph-product-tour-container",Hr="data-ph-tour-trigger";function jr(t){var r=Vr+"-"+t.id,e=Lr.querySelector("."+r);if(e&&e.shadowRoot)return{shadow:e.shadowRoot,isNewlyCreated:!1};var o=Lr.createElement("div");o.className=r,Ft(o,t.appearance);var n=o.attachShadow({mode:"open"}),i=function(){var t=ot(Et,Pt);return null==t||t.setAttribute("data-ph-product-tour-style","true"),t}();return i&&n.appendChild(i),Lr.body.appendChild(o),{shadow:n,isNewlyCreated:!0}}class Ar{constructor(t){var r=this;this.st=null,this.ct=0,this.dt=!1,this.ht=!1,this.ft=null,this.vt=new Map,this.bt=new Map,this._t=new Set,this.yt=()=>{Lr.hidden&&this.ft?(clearInterval(this.ft),this.ft=null):Lr.hidden||this.ft||(this.ft=setInterval((()=>{this.xt()}),1e3),this.xt())},this.nextStep=()=>{if(this.st){var t=this.st.steps[this.ct];this.wt("product tour step completed",{$product_tour_id:this.st.id,$product_tour_step_id:t.id,$product_tour_step_order:this.ct}),this.ct<this.st.steps.length-1?(this.Ct(this.ct+1),this.kt()):this.Tt()}},this.previousStep=()=>{this.st&&0!==this.ct&&(this.Ct(this.ct-1),this.kt())},this.dismissTour=function(t){if(void 0===t&&(t="user_clicked_skip"),r.st){var e=r.st.steps[r.ct];r.wt("product tour dismissed",{$product_tour_id:r.st.id,$product_tour_step_id:e.id,$product_tour_step_order:r.ct,$product_tour_dismiss_reason:t}),r.dt||fr.p(""+_r+r.st.id,!0),Mr.dispatchEvent(new CustomEvent("PHProductTourDismissed",{detail:{tourId:r.st.id,reason:t}})),r.qt()}},this._instance=t,this.St=new Sr(t)}Ct(t){this.ct=t,this.$t()}$t(){this.st&&!this.dt&&gr.p(mr,{tourId:this.st.id,stepIndex:this.ct})}Lt(){gr.m(mr)}Mt(){var t=gr.v(mr);if(!t)return null;try{return JSON.parse(t)}catch(t){return null}}start(){if(!this.ft){var t=this.Mt();t?this.Zt(t.tourId,t.stepIndex,(()=>{this.It()})):this.It()}}It(){this.ft=setInterval((()=>{this.xt()}),1e3),this.xt(),nt(Lr,"visibilitychange",this.yt)}Zt(t,r,e){var o;null==(o=this._instance.productTours)||o.getProductTours((o=>{var n=o.find((r=>r.id===t));n?(this.st=n,this.ct=r,this.ht=!0,this.kt()):o.length>0&&this.Lt(),e()}))}stop(){this.ft&&(clearInterval(this.ft),this.ft=null),Lr.removeEventListener("visibilitychange",this.yt),this.Vt(),this.Ht(),this.qt()}xt(){var t;null!=Lr&&Lr.getElementById("__POSTHOG_TOOLBAR__")||null==(t=this._instance.productTours)||t.getProductTours((t=>{if(0!==t.length){var r=new Set,e=t.filter((t=>!this._t.has(t.id)&&(yr(t)||xr(t))));e.length>0&&(this.St.register(e),e.forEach((t=>this._t.add(t.id))));var o=this.st?[]:this.St.getTours();for(var n of t){var i,u=null==(i=n.conditions)?void 0:i.selector;if(u&&(r.add(n.id),this.jt(n,u)),!this.st){var l=xr(n)||yr(n);if(n.auto_launch&&this.At(n)){if(!l){this.Pt(n,"auto");continue}o.includes(n.id)&&this.Pt(n,"event")}}}this.vt.forEach((t=>{var{tour:e}=t;r.has(e.id)||this.Et(e.id)}))}else this.Vt()}))}Pt(t,r){var e,o=(null==(e=t.conditions)?void 0:e.autoShowDelaySeconds)||0;o>0?this.isTourPending(t.id)||this.queueTourWithDelay(t.id,o,r):this.showTour(t,{reason:r})}At(t){if(!Ir(t))return $r.info("Tour "+t.id+" failed conditions check"),!1;var r,e=""+br+t.id,o=""+_r+t.id;if(fr.v(e)||fr.v(o))return $r.info("Tour "+t.id+" already completed or dismissed"),!1;if(t.internal_targeting_flag_key&&!(null==(r=this._instance.featureFlags)?void 0:r.getFeatureFlag(t.internal_targeting_flag_key)))return $r.info("Tour "+t.id+" failed feature flag check: "+t.internal_targeting_flag_key),!1;return!0}showTour(t,r){var e,o=null!==(e=null==r?void 0:r.reason)&&void 0!==e?e:"auto";this.cancelPendingTour(t.id);for(var n=[],i=0;i<t.steps.length;i++){var u=t.steps[i];if(u.selector){var l=Nt(u.selector);"not_found"!==l.error&&"not_visible"!==l.error||n.push({stepIndex:i,stepId:u.id,selector:u.selector,error:l.error,matchCount:l.matchCount})}}if(n.length>0){for(var s of n)this.wt("product tour step selector failed",{$product_tour_id:t.id,$product_tour_step_id:s.stepId,$product_tour_step_order:s.stepIndex,$product_tour_step_selector:s.selector,$product_tour_error:s.error,$product_tour_matches_count:s.matchCount,$product_tour_failure_phase:"validation"});var a=n.map((t=>"Step "+t.stepIndex+': "'+t.selector+'" ('+t.error+")"));if($r.warn('Tour "'+t.name+'" ('+t.id+"): "+n.length+" selector(s) failed to match:\n - "+a.join("\n - ")+(!0===(null==r?void 0:r.enableStrictValidation)?"\n\nenableStrictValidation is true, not displaying tour.":"")),!0===(null==r?void 0:r.enableStrictValidation))return}this.st=t,this.Ct(0),this.wt("product tour shown",{$product_tour_id:t.id,$product_tour_name:t.name,$product_tour_iteration:t.current_iteration||1,$product_tour_render_reason:o}),this.kt()}showTourById(t,r){var e;$r.info("showTourById("+t+")"),null==(e=this._instance.productTours)||e.getProductTours((e=>{var o=e.find((r=>r.id===t));o?this.showTour(o,{reason:null!=r?r:"api"}):$r.warn("could not find tour",t)}))}previewTour(t){$r.info("Previewing tour "+t.id),this.qt(),this.dt=!0,this.st=t,this.ct=0,this.kt()}Tt(){this.st&&(this.wt("product tour completed",{$product_tour_id:this.st.id,$product_tour_steps_count:this.st.steps.length}),this.dt||(fr.p(""+br+this.st.id,!0),this._instance.capture("$set",{$set:{["$product_tour_completed/"+this.st.id]:!0}})),Mr.dispatchEvent(new CustomEvent("PHProductTourCompleted",{detail:{tourId:this.st.id}})),this.qt())}kt(t){if(void 0===t&&(t=0),this.st){var r=this.st.steps[this.ct];if(!r)return $r.warn("Step "+this.ct+" not found in tour "+this.st.id),void this.qt();if("survey"!==r.type){if("modal"===r.type)return this.wt("product tour step shown",{$product_tour_id:this.st.id,$product_tour_step_id:r.id,$product_tour_step_order:this.ct,$product_tour_step_type:"modal"}),this.ht=!1,void this.zt(null);if(r.selector){var e=Nt(r.selector),o=this.ct>0?this.st.steps[this.ct-1]:null,n="click"===(null==o?void 0:o.progressionTrigger)||this.ht;if("not_found"===e.error||"not_visible"===e.error){if(n&&t<20)return void setTimeout((()=>{this.kt(t+1)}),100);var i=100*t;return this.wt("product tour step selector failed",{$product_tour_id:this.st.id,$product_tour_step_id:r.id,$product_tour_step_order:this.ct,$product_tour_step_selector:r.selector,$product_tour_error:e.error,$product_tour_matches_count:e.matchCount,$product_tour_failure_phase:"runtime",$product_tour_waited_for_element:n,$product_tour_wait_duration_ms:i}),$r.warn('Tour "'+this.st.name+'" dismissed: element for step '+this.ct+" became unavailable ("+e.error+")"+(n?" after waiting "+i+"ms":"")),void this.dismissTour("element_unavailable")}if("multiple_matches"===e.error&&this.wt("product tour step selector failed",{$product_tour_id:this.st.id,$product_tour_step_id:r.id,$product_tour_step_order:this.ct,$product_tour_step_selector:r.selector,$product_tour_error:e.error,$product_tour_matches_count:e.matchCount,$product_tour_failure_phase:"runtime"}),e.element){var u=e.element,l=function(t){var r;return{tag:t.tagName,id:t.id||void 0,classes:t.className||void 0,text:(null==(r=t.innerText)?void 0:r.slice(0,100))||void 0}}(u);this.wt("product tour step shown",{$product_tour_id:this.st.id,$product_tour_step_id:r.id,$product_tour_step_order:this.ct,$product_tour_step_selector:r.selector,$product_tour_step_selector_found:!0,$product_tour_step_element_tag:l.tag,$product_tour_step_element_id:l.id,$product_tour_step_element_classes:l.classes,$product_tour_step_element_text:l.text}),this.ht=!1,this.zt(u)}}else $r.warn("Unable to render element step - no selector defined.")}else r.survey?this.Nt():$r.warn("Unable to render survey step - survey data not found")}}zt(t,r,e){if(this.st){var o=this.st.steps[this.ct],{shadow:n}=jr(this.st);Q(Yt(hr,{tour:this.st,step:o,stepIndex:this.ct,totalSteps:this.st.steps.length,targetElement:t,onNext:this.nextStep,onPrevious:this.previousStep,onDismiss:e||this.dismissTour,onSurveySubmit:r}),n)}}Nt(){var t,r,e;if(this.st){var o=this.st.id,n=this.st.steps[this.ct],u=n.linkedSurveyId,l=n.linkedSurveyQuestionId,s=(null==(t=n.survey)?void 0:t.questionText)||"";this.wt("product tour step shown",{$product_tour_id:this.st.id,$product_tour_step_id:n.id,$product_tour_step_order:this.ct,$product_tour_step_type:"survey",$product_tour_linked_survey_id:u}),this.wt(D.SHOWN,{[F.SURVEY_ID]:u,[F.PRODUCT_TOUR_ID]:o,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)});this.zt(null,(t=>{var r,e,n=l?"$survey_response_"+l:"$survey_response";this.wt(D.SENT,i({[F.SURVEY_ID]:u,[F.PRODUCT_TOUR_ID]:o,[F.SURVEY_QUESTIONS]:[{id:l,question:s,response:t}],[F.SURVEY_COMPLETED]:!0,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)},!K(t)&&{[n]:t})),$r.info("Survey "+u+" completed",K(t)?"(skipped)":"with response: "+t),this.nextStep()}),(t=>{var r,e;this.wt(D.DISMISSED,{[F.SURVEY_ID]:u,[F.PRODUCT_TOUR_ID]:o,[F.SURVEY_QUESTIONS]:[{id:l,question:s,response:null}],[F.SURVEY_PARTIALLY_COMPLETED]:!1,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)}),$r.info("Survey "+u+" dismissed"),this.dismissTour(t)})),$r.info("Rendered survey step for tour step "+this.ct)}}qt(){var t,r,e;this.st&&(t=this.st.id,r=Vr+"-"+t,null!=(e=Lr.querySelector("."+r))&&e.shadowRoot&&Q(null,e.shadowRoot),null==e||e.remove()),this.st=null,this.ct=0,this.dt=!1,this.ht=!1,this.Lt()}jt(t,r){var e=Lr.querySelector(r),o=this.vt.get(t.id);if(e){if(o){if(e===o.element)return;$r.info("Trigger element changed for tour "+t.id+". Re-attaching listener."),this.Et(t.id)}if(!e.hasAttribute(Hr)){var n=e=>{e.stopPropagation(),this.st?$r.info("Tour "+t.id+" trigger clicked but another tour is active"):Zr(t)?($r.info("Tour "+t.id+" triggered by click on "+r),this.showTour(t,{reason:"trigger"})):$r.warn("Tour "+t.id+" trigger clicked, but tour is not launched - not showing tour.")};nt(e,"click",n),e.setAttribute(Hr,t.id),this.vt.set(t.id,{element:e,listener:n,tour:t}),$r.info("Attached trigger listener for tour "+t.id+" on "+r)}}else o&&this.Et(t.id)}Et(t){var r=this.vt.get(t);r&&(r.element.removeEventListener("click",r.listener),r.element.removeAttribute(Hr),this.vt.delete(t),$r.info("Removed trigger listener for tour "+t))}Vt(){this.vt.forEach(((t,r)=>{this.Et(r)}))}wt(t,r){this.dt||this._instance.capture(t,r)}getActiveProductTours(t){var r;null==(r=this._instance.productTours)||r.getProductTours(((r,e)=>{if(null!=e&&e.isLoaded){var o=r.filter((t=>this.At(t)));t(o,e)}else t([],e)}))}resetTour(t){fr.m(""+br+t),fr.m(""+_r+t)}resetAllTours(){var t=null==Mr?void 0:Mr.localStorage;if(t){for(var r=[],e=0;e<t.length;e++){var o=t.key(e);(null!=o&&o.startsWith(br)||null!=o&&o.startsWith(_r))&&r.push(o)}r.forEach((t=>fr.m(t)))}}cancelPendingTour(t){var r=this.bt.get(t);r&&(clearTimeout(r),this.bt.delete(t),$r.info("Cancelled pending tour: "+t))}Ht(){this.bt.forEach((t=>clearTimeout(t))),this.bt.clear()}isTourPending(t){return this.bt.has(t)}queueTourWithDelay(t,r,e){$r.info("Queueing tour "+t+" with "+r+"s delay");var o=setTimeout((()=>{this.bt.delete(t),$r.info("Delay elapsed for tour "+t+", showing now"),this.showTourById(t,e)}),1e3*r);this.bt.set(t,o)}}function Pr(t,r){if(o){var e=new Ar(t);return r&&e.start(),e}}n.__PosthogExtensions__=n.__PosthogExtensions__||{},n.__PosthogExtensions__.generateProductTours=Pr}();
1
+ !function(t){"use strict";var e="undefined"!=typeof window?window:void 0,r="undefined"!=typeof globalThis?globalThis:e;"undefined"==typeof self&&(r.self=r),"undefined"==typeof File&&(r.File=function(){});var n=null==r?void 0:r.navigator,o=null==r?void 0:r.document;null==r||r.location,null==r||r.fetch,null!=r&&r.XMLHttpRequest&&"withCredentials"in new r.XMLHttpRequest&&r.XMLHttpRequest,null==r||r.AbortController,null==n||n.userAgent;var i=null!=e?e:{};function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l.apply(null,arguments)}var u,a,s,c,d,f,p,h,v={},m=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function y(t,e){for(var r in e)t[r]=e[r];return t}function _(t){var e=t.parentNode;e&&e.removeChild(t)}function x(t,e,r,n,o){var i={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++s:o,__i:-1,__u:0};return null==o&&null!=a.vnode&&a.vnode(i),i}function w(t){return t.children}function k(t,e){this.props=t,this.context=e}function T(t,e){if(null==e)return t.__?T(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?T(t):null}function C(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 C(t)}}function S(t){(!t.__d&&(t.__d=!0)&&c.push(t)&&!q.__r++||d!==a.debounceRendering)&&((d=a.debounceRendering)||f)(q)}function q(){var t,e,r,n,o,i,l,u,s;for(c.sort(p);t=c.shift();)t.__d&&(e=c.length,n=void 0,i=(o=(r=t).__v).__e,u=[],s=[],(l=r.__P)&&((n=y({},o)).__v=o.__v+1,a.vnode&&a.vnode(n),R(l,n,o,r.__n,void 0!==l.ownerSVGElement,32&o.__u?[i]:null,u,null==i?T(o):i,!!(32&o.__u),s),n.__.__k[n.__i]=n,Z(u,n,s),n.__e!=i&&C(n)),c.length>e&&c.sort(p));q.__r=0}function A(t,e,r,n,o,i,l,u,a,s,c){var d,f,p,h,g,y=n&&n.__k||m,_=e.length;for(r.__d=a,function(t,e,r){var n,o,i,l,u,a=e.length,s=r.length,c=s,d=0;for(t.__k=[],n=0;n<a;n++)null!=(o=t.__k[n]=null==(o=e[n])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?x(null,o,null,null,o):b(o)?x(w,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?x(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=t,o.__b=t.__b+1,u=L(o,r,l=n+d,c),o.__i=u,i=null,-1!==u&&(c--,(i=r[u])&&(i.__u|=131072)),null==i||null===i.__v?(-1==u&&d--,"function"!=typeof o.type&&(o.__u|=65536)):u!==l&&(u===l+1?d++:u>l?c>a-l?d+=u-l:d--:d=u<l&&u==l-1?u-l:0,u!==n+d&&(o.__u|=65536))):(i=r[n])&&null==i.key&&i.__e&&(i.__e==t.__d&&(t.__d=T(i)),O(i,i,!1),r[n]=null,c--);if(c)for(n=0;n<s;n++)null!=(i=r[n])&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=T(i)),O(i,i))}(r,e,y),a=r.__d,d=0;d<_;d++)null!=(p=r.__k[d])&&"boolean"!=typeof p&&"function"!=typeof p&&(f=-1===p.__i?v:y[p.__i]||v,p.__i=d,R(t,p,f,o,i,l,u,a,s,c),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&D(f.ref,null,p),c.push(p.ref,p.__c||h,p)),null==g&&null!=h&&(g=h),65536&p.__u||f.__k===p.__k?a=M(p,a,t):"function"==typeof p.type&&void 0!==p.__d?a=p.__d:h&&(a=h.nextSibling),p.__d=void 0,p.__u&=-196609);r.__d=a,r.__e=g}function M(t,e,r){var n,o;if("function"==typeof t.type){for(n=t.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=t,e=M(n[o],e,r));return e}return t.__e!=e&&(r.insertBefore(t.__e,e||null),e=t.__e),e&&e.nextSibling}function L(t,e,r,n){var o=t.key,i=t.type,l=r-1,u=r+1,a=e[r];if(null===a||a&&o==a.key&&i===a.type)return r;if(n>(null!=a&&0==(131072&a.__u)?1:0))for(;l>=0||u<e.length;){if(l>=0){if((a=e[l])&&0==(131072&a.__u)&&o==a.key&&i===a.type)return l;l--}if(u<e.length){if((a=e[u])&&0==(131072&a.__u)&&o==a.key&&i===a.type)return u;u++}}return-1}function E(t,e,r){"-"===e[0]?t.setProperty(e,null==r?"":r):t[e]=null==r?"":"number"!=typeof r||g.test(e)?r:r+"px"}function I(t,e,r,n,o){var i;t:if("style"===e)if("string"==typeof r)t.style.cssText=r;else{if("string"==typeof n&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||E(t.style,e,"");if(r)for(e in r)n&&r[e]===n[e]||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?n?r.u=n.u:(r.u=Date.now(),t.addEventListener(e,i?z:j,i)):t.removeEventListener(e,i?z:j,i);else{if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==e&&"height"!==e&&"href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&"rowSpan"!==e&&"colSpan"!==e&&"role"!==e&&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 j(t){var e=this.l[t.type+!1];if(t.t){if(t.t<=e.u)return}else t.t=Date.now();return e(a.event?a.event(t):t)}function z(t){return this.l[t.type+!0](a.event?a.event(t):t)}function R(t,e,r,n,o,i,l,u,s,c){var d,f,p,h,v,m,g,_,x,T,C,$,S,q,M,L=e.type;if(void 0!==e.constructor)return null;128&r.__u&&(s=!!(32&r.__u),i=[u=e.__e=r.__e]),(d=a.__b)&&d(e);t:if("function"==typeof L)try{if(_=e.props,x=(d=L.contextType)&&n[d.__c],T=d?x?x.props.value:d.__:n,r.__c?g=(f=e.__c=r.__c).__=f.__E:("prototype"in L&&L.prototype.render?e.__c=f=new L(_,T):(e.__c=f=new k(_,T),f.constructor=L,f.render=N),x&&x.sub(f),f.props=_,f.state||(f.state={}),f.context=T,f.__n=n,p=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=L.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=y({},f.__s)),y(f.__s,L.getDerivedStateFromProps(_,f.__s))),h=f.props,v=f.state,f.__v=e,p)null==L.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==L.getDerivedStateFromProps&&_!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(_,T),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(_,f.__s,T)||e.__v===r.__v)){for(e.__v!==r.__v&&(f.props=_,f.state=f.__s,f.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.forEach((function(t){t&&(t.__=e)})),C=0;C<f._sb.length;C++)f.__h.push(f._sb[C]);f._sb=[],f.__h.length&&l.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(_,f.__s,T),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,v,m)}))}if(f.context=T,f.props=_,f.__P=t,f.__e=!1,$=a.__r,S=0,"prototype"in L&&L.prototype.render){for(f.state=f.__s,f.__d=!1,$&&$(e),d=f.render(f.props,f.state,f.context),q=0;q<f._sb.length;q++)f.__h.push(f._sb[q]);f._sb=[]}else do{f.__d=!1,$&&$(e),d=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++S<25);f.state=f.__s,null!=f.getChildContext&&(n=y(y({},n),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(m=f.getSnapshotBeforeUpdate(h,v)),A(t,b(M=null!=d&&d.type===w&&null==d.key?d.props.children:d)?M:[M],e,r,n,o,i,l,u,s,c),f.base=e.__e,e.__u&=-161,f.__h.length&&l.push(f),g&&(f.__E=f.__=null)}catch(t){e.__v=null,s||null!=i?(e.__e=u,e.__u|=s?160:32,i[i.indexOf(u)]=null):(e.__e=r.__e,e.__k=r.__k),a.__e(t,e,r)}else null==i&&e.__v===r.__v?(e.__k=r.__k,e.__e=r.__e):e.__e=P(r.__e,e,r,n,o,i,l,s,c);(d=a.diffed)&&d(e)}function Z(t,e,r){e.__d=void 0;for(var n=0;n<r.length;n++)D(r[n],r[++n],r[++n]);a.__c&&a.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){a.__e(t,e.__v)}}))}function P(t,e,r,n,o,i,l,a,s){var c,d,f,p,h,m,g,y=r.props,x=e.props,w=e.type;if("svg"===w&&(o=!0),null!=i)for(c=0;c<i.length;c++)if((h=i[c])&&"setAttribute"in h==!!w&&(w?h.localName===w:3===h.nodeType)){t=h,i[c]=null;break}if(null==t){if(null===w)return document.createTextNode(x);t=o?document.createElementNS("http://www.w3.org/2000/svg",w):document.createElement(w,x.is&&x),i=null,a=!1}if(null===w)y===x||a&&t.data===x||(t.data=x);else{if(i=i&&u.call(t.childNodes),y=r.props||v,!a&&null!=i)for(y={},c=0;c<t.attributes.length;c++)y[(h=t.attributes[c]).name]=h.value;for(c in y)h=y[c],"children"==c||("dangerouslySetInnerHTML"==c?f=h:"key"===c||c in x||I(t,c,null,h,o));for(c in x)h=x[c],"children"==c?p=h:"dangerouslySetInnerHTML"==c?d=h:"value"==c?m=h:"checked"==c?g=h:"key"===c||a&&"function"!=typeof h||y[c]===h||I(t,c,h,y[c],o);if(d)a||f&&(d.__html===f.__html||d.__html===t.innerHTML)||(t.innerHTML=d.__html),e.__k=[];else if(f&&(t.innerHTML=""),A(t,b(p)?p:[p],e,r,n,o&&"foreignObject"!==w,i,l,i?i[0]:r.__k&&T(r,0),a,s),null!=i)for(c=i.length;c--;)null!=i[c]&&_(i[c]);a||(c="value",void 0!==m&&(m!==t[c]||"progress"===w&&!m||"option"===w&&m!==y[c])&&I(t,c,m,y[c],!1),c="checked",void 0!==g&&g!==t[c]&&I(t,c,g,y[c],!1))}return t}function D(t,e,r){try{"function"==typeof t?t(e):t.current=e}catch(t){a.__e(t,r)}}function O(t,e,r){var n,o;if(a.unmount&&a.unmount(t),(n=t.ref)&&(n.current&&n.current!==t.__e||D(n,null,e)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){a.__e(t,e)}n.base=n.__P=null,t.__c=void 0}if(n=t.__k)for(o=0;o<n.length;o++)n[o]&&O(n[o],e,r||"function"!=typeof t.type);r||null==t.__e||_(t.__e),t.__=t.__e=t.__d=void 0}function N(t,e,r){return this.constructor(t,r)}function F(t,e,r){var n,o,i;a.__&&a.__(t,e),n=!1?null:e.__k,o=[],i=[],R(e,t=e.__k=function(t,e,r){var n,o,i,l={};for(i in e)"key"==i?n=e[i]:"ref"==i?o=e[i]:l[i]=e[i];if(arguments.length>2&&(l.children=arguments.length>3?u.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===l[i]&&(l[i]=t.defaultProps[i]);return x(t,l,n,o,null)}(w,null,[t]),n||v,v,void 0!==e.ownerSVGElement,n?null:e.firstChild?u.call(e.childNodes):null,o,n?n.__e:e.firstChild,false,i),Z(o,t,i)}u=m.slice,a={__e:function(t,e,r,n){for(var o,i,l;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,n||{}),l=o.__d),l)return o.__E=o}catch(e){t=e}throw t}},s=0,k.prototype.setState=function(t,e){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=y({},this.state),"function"==typeof t&&(t=t(y({},r),this.props)),t&&y(r,t),null!=t&&this.__v&&(e&&this._sb.push(e),S(this))},k.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),S(this))},k.prototype.render=w,c=[],f="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,p=function(t,e){return t.__v.__b-e.__v.__b},q.__r=0,h=0;var H=function(t){return t.Activation="events",t.Cancellation="cancelEvents",t}({}),V=function(t){return t.SHOWN="survey shown",t.DISMISSED="survey dismissed",t.SENT="survey sent",t.ABANDONED="survey abandoned",t}({}),B=function(t){return t.SURVEY_ID="$survey_id",t.SURVEY_NAME="$survey_name",t.SURVEY_RESPONSE="$survey_response",t.SURVEY_ITERATION="$survey_iteration",t.SURVEY_ITERATION_START_DATE="$survey_iteration_start_date",t.SURVEY_PARTIALLY_COMPLETED="$survey_partially_completed",t.SURVEY_SUBMISSION_ID="$survey_submission_id",t.SURVEY_QUESTIONS="$survey_questions",t.SURVEY_COMPLETED="$survey_completed",t.PRODUCT_TOUR_ID="$product_tour_id",t.SURVEY_LAST_SEEN_DATE="$survey_last_seen_date",t}({}),{entries:U,setPrototypeOf:Q,isFrozen:W,getPrototypeOf:Y,getOwnPropertyDescriptor:X}=Object,{freeze:G,seal:J,create:K}=Object,{apply:tt,construct:et}="undefined"!=typeof Reflect&&Reflect;G||(G=function(t){return t}),J||(J=function(t){return t}),tt||(tt=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return t.apply(e,n)}),et||(et=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return new t(...r)});var rt,nt=gt(Array.prototype.forEach),ot=gt(Array.prototype.lastIndexOf),it=gt(Array.prototype.pop),lt=gt(Array.prototype.push),ut=gt(Array.prototype.splice),at=gt(String.prototype.toLowerCase),st=gt(String.prototype.toString),ct=gt(String.prototype.match),dt=gt(String.prototype.replace),ft=gt(String.prototype.indexOf),pt=gt(String.prototype.trim),ht=gt(Object.prototype.hasOwnProperty),vt=gt(RegExp.prototype.test),mt=(rt=TypeError,function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return et(rt,e)});function gt(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return tt(t,e,n)}}function bt(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:at;Q&&Q(t,null);for(var n=e.length;n--;){var o=e[n];if("string"==typeof o){var i=r(o);i!==o&&(W(e)||(e[n]=i),o=i)}t[o]=!0}return t}function yt(t){for(var e=0;e<t.length;e++){ht(t,e)||(t[e]=null)}return t}function _t(t){var e=K(null);for(var[r,n]of U(t)){ht(t,r)&&(Array.isArray(n)?e[r]=yt(n):n&&"object"==typeof n&&n.constructor===Object?e[r]=_t(n):e[r]=n)}return e}function xt(t,e){for(;null!==t;){var r=X(t,e);if(r){if(r.get)return gt(r.get);if("function"==typeof r.value)return gt(r.value)}t=Y(t)}return function(){return null}}var wt=G(["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"]),kt=G(["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"]),Tt=G(["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"]),Ct=G(["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"]),St=G(["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"]),qt=G(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),At=G(["#text"]),Mt=G(["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"]),Lt=G(["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"]),$t=G(["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"]),Et=G(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),It=J(/\{\{[\w\W]*|[\w\W]*\}\}/gm),jt=J(/<%[\w\W]*|[\w\W]*%>/gm),zt=J(/\$\{[\w\W]*/gm),Rt=J(/^data-[\-\w.\u00B7-\uFFFF]+$/),Zt=J(/^aria-[\-\w]+$/),Pt=J(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Dt=J(/^(?:\w+script|data):/i),Ot=J(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Nt=J(/^html$/i),Ft=J(/^[a-z][.\w]*(-[.\w]+)+$/i),Ht=Object.freeze({__proto__:null,ARIA_ATTR:Zt,ATTR_WHITESPACE:Ot,CUSTOM_ELEMENT:Ft,DATA_ATTR:Rt,DOCTYPE_NAME:Nt,ERB_EXPR:jt,IS_ALLOWED_URI:Pt,IS_SCRIPT_OR_DATA:Dt,MUSTACHE_EXPR:It,TMPLIT_EXPR:zt}),Vt=1,Bt=3,Ut=7,Qt=8,Wt=9,Yt=function(){return"undefined"==typeof window?null:window};var Xt=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yt(),r=e=>t(e);if(r.version="3.3.1",r.removed=[],!e||!e.document||e.document.nodeType!==Wt||!e.Element)return r.isSupported=!1,r;var n,{document:o}=e,i=o,l=i.currentScript,{DocumentFragment:u,HTMLTemplateElement:a,Node:s,Element:c,NodeFilter:d,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:h,trustedTypes:v}=e,m=c.prototype,g=xt(m,"cloneNode"),b=xt(m,"remove"),y=xt(m,"nextSibling"),_=xt(m,"childNodes"),x=xt(m,"parentNode");if("function"==typeof a){var w=o.createElement("template");w.content&&w.content.ownerDocument&&(o=w.content.ownerDocument)}var k="",{implementation:T,createNodeIterator:C,createDocumentFragment:S,getElementsByTagName:q}=o,{importNode:A}=i,M={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof U&&"function"==typeof x&&T&&void 0!==T.createHTMLDocument;var{MUSTACHE_EXPR:L,ERB_EXPR:E,TMPLIT_EXPR:I,DATA_ATTR:j,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:R,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:P}=Ht,{IS_ALLOWED_URI:D}=Ht,O=null,N=bt({},[...wt,...kt,...Tt,...St,...At]),F=null,H=bt({},[...Mt,...Lt,...$t,...Et]),V=Object.seal(K(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,W=Object.seal(K(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Y=!0,X=!0,J=!1,tt=!0,et=!1,rt=!0,gt=!1,yt=!1,It=!1,jt=!1,zt=!1,Rt=!1,Zt=!0,Dt=!1,Ot=!0,Ft=!1,Xt={},Gt=null,Jt=bt({},["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"]),Kt=null,te=bt({},["audio","video","img","source","image","track"]),ee=null,re=bt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ne="http://www.w3.org/1998/Math/MathML",oe="http://www.w3.org/2000/svg",ie="http://www.w3.org/1999/xhtml",le=ie,ue=!1,ae=null,se=bt({},[ne,oe,ie],st),ce=bt({},["mi","mo","mn","ms","mtext"]),de=bt({},["annotation-xml"]),fe=bt({},["title","style","font","a","script"]),pe=null,he=["application/xhtml+xml","text/html"],ve=null,me=null,ge=o.createElement("form"),be=function(t){return t instanceof RegExp||t instanceof Function},ye=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!me||me!==t){if(t&&"object"==typeof t||(t={}),t=_t(t),pe=-1===he.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===pe?st:at,O=ht(t,"ALLOWED_TAGS")?bt({},t.ALLOWED_TAGS,ve):N,F=ht(t,"ALLOWED_ATTR")?bt({},t.ALLOWED_ATTR,ve):H,ae=ht(t,"ALLOWED_NAMESPACES")?bt({},t.ALLOWED_NAMESPACES,st):se,ee=ht(t,"ADD_URI_SAFE_ATTR")?bt(_t(re),t.ADD_URI_SAFE_ATTR,ve):re,Kt=ht(t,"ADD_DATA_URI_TAGS")?bt(_t(te),t.ADD_DATA_URI_TAGS,ve):te,Gt=ht(t,"FORBID_CONTENTS")?bt({},t.FORBID_CONTENTS,ve):Jt,B=ht(t,"FORBID_TAGS")?bt({},t.FORBID_TAGS,ve):_t({}),Q=ht(t,"FORBID_ATTR")?bt({},t.FORBID_ATTR,ve):_t({}),Xt=!!ht(t,"USE_PROFILES")&&t.USE_PROFILES,Y=!1!==t.ALLOW_ARIA_ATTR,X=!1!==t.ALLOW_DATA_ATTR,J=t.ALLOW_UNKNOWN_PROTOCOLS||!1,tt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,et=t.SAFE_FOR_TEMPLATES||!1,rt=!1!==t.SAFE_FOR_XML,gt=t.WHOLE_DOCUMENT||!1,jt=t.RETURN_DOM||!1,zt=t.RETURN_DOM_FRAGMENT||!1,Rt=t.RETURN_TRUSTED_TYPE||!1,It=t.FORCE_BODY||!1,Zt=!1!==t.SANITIZE_DOM,Dt=t.SANITIZE_NAMED_PROPS||!1,Ot=!1!==t.KEEP_CONTENT,Ft=t.IN_PLACE||!1,D=t.ALLOWED_URI_REGEXP||Pt,le=t.NAMESPACE||ie,ce=t.MATHML_TEXT_INTEGRATION_POINTS||ce,de=t.HTML_INTEGRATION_POINTS||de,V=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&be(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&be(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(V.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),et&&(X=!1),zt&&(jt=!0),Xt&&(O=bt({},At),F=[],!0===Xt.html&&(bt(O,wt),bt(F,Mt)),!0===Xt.svg&&(bt(O,kt),bt(F,Lt),bt(F,Et)),!0===Xt.svgFilters&&(bt(O,Tt),bt(F,Lt),bt(F,Et)),!0===Xt.mathMl&&(bt(O,St),bt(F,$t),bt(F,Et))),t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?W.tagCheck=t.ADD_TAGS:(O===N&&(O=_t(O)),bt(O,t.ADD_TAGS,ve))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?W.attributeCheck=t.ADD_ATTR:(F===H&&(F=_t(F)),bt(F,t.ADD_ATTR,ve))),t.ADD_URI_SAFE_ATTR&&bt(ee,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(Gt===Jt&&(Gt=_t(Gt)),bt(Gt,t.FORBID_CONTENTS,ve)),t.ADD_FORBID_CONTENTS&&(Gt===Jt&&(Gt=_t(Gt)),bt(Gt,t.ADD_FORBID_CONTENTS,ve)),Ot&&(O["#text"]=!0),gt&&bt(O,["html","head","body"]),O.table&&(bt(O,["tbody"]),delete B.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw mt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw mt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');n=t.TRUSTED_TYPES_POLICY,k=n.createHTML("")}else void 0===n&&(n=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;var r=null,n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(r=e.getAttribute(n));var o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(v,l)),null!==n&&"string"==typeof k&&(k=n.createHTML(""));G&&G(t),me=t}},_e=bt({},[...kt,...Tt,...Ct]),xe=bt({},[...St,...qt]),we=function(t){lt(r.removed,{element:t});try{x(t).removeChild(t)}catch(e){b(t)}},ke=function(t,e){try{lt(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){lt(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(jt||zt)try{we(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},Te=function(t){var e=null,r=null;if(It)t="<remove></remove>"+t;else{var i=ct(t,/^[\r\n\t ]+/);r=i&&i[0]}"application/xhtml+xml"===pe&&le===ie&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var l=n?n.createHTML(t):t;if(le===ie)try{e=(new h).parseFromString(l,pe)}catch(t){}if(!e||!e.documentElement){e=T.createDocument(le,"template",null);try{e.documentElement.innerHTML=ue?k:l}catch(t){}}var u=e.body||e.documentElement;return t&&r&&u.insertBefore(o.createTextNode(r),u.childNodes[0]||null),le===ie?q.call(e,gt?"html":"body")[0]:gt?e.documentElement:u},Ce=function(t){return C.call(t.ownerDocument||t,t,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Se=function(t){return t instanceof p&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof f)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},qe=function(t){return"function"==typeof s&&t instanceof s};function Ae(t,e,n){nt(t,(t=>{t.call(r,e,n,me)}))}var Me=function(t){var e=null;if(Ae(M.beforeSanitizeElements,t,null),Se(t))return we(t),!0;var n=ve(t.nodeName);if(Ae(M.uponSanitizeElement,t,{tagName:n,allowedTags:O}),rt&&t.hasChildNodes()&&!qe(t.firstElementChild)&&vt(/<[/\w!]/g,t.innerHTML)&&vt(/<[/\w!]/g,t.textContent))return we(t),!0;if(t.nodeType===Ut)return we(t),!0;if(rt&&t.nodeType===Qt&&vt(/<[/\w]/g,t.data))return we(t),!0;if(!(W.tagCheck instanceof Function&&W.tagCheck(n))&&(!O[n]||B[n])){if(!B[n]&&$e(n)){if(V.tagNameCheck instanceof RegExp&&vt(V.tagNameCheck,n))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(n))return!1}if(Ot&&!Gt[n]){var o=x(t)||t.parentNode,i=_(t)||t.childNodes;if(i&&o)for(var l=i.length-1;l>=0;--l){var u=g(i[l],!0);u.__removalCount=(t.__removalCount||0)+1,o.insertBefore(u,y(t))}}return we(t),!0}return t instanceof c&&!function(t){var e=x(t);e&&e.tagName||(e={namespaceURI:le,tagName:"template"});var r=at(t.tagName),n=at(e.tagName);return!!ae[t.namespaceURI]&&(t.namespaceURI===oe?e.namespaceURI===ie?"svg"===r:e.namespaceURI===ne?"svg"===r&&("annotation-xml"===n||ce[n]):Boolean(_e[r]):t.namespaceURI===ne?e.namespaceURI===ie?"math"===r:e.namespaceURI===oe?"math"===r&&de[n]:Boolean(xe[r]):t.namespaceURI===ie?!(e.namespaceURI===oe&&!de[n])&&!(e.namespaceURI===ne&&!ce[n])&&!xe[r]&&(fe[r]||!_e[r]):!("application/xhtml+xml"!==pe||!ae[t.namespaceURI]))}(t)?(we(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!vt(/<\/no(script|embed|frames)/i,t.innerHTML)?(et&&t.nodeType===Bt&&(e=t.textContent,nt([L,E,I],(t=>{e=dt(e,t," ")})),t.textContent!==e&&(lt(r.removed,{element:t.cloneNode()}),t.textContent=e)),Ae(M.afterSanitizeElements,t,null),!1):(we(t),!0)},Le=function(t,e,r){if(Zt&&("id"===e||"name"===e)&&(r in o||r in ge))return!1;if(X&&!Q[e]&&vt(j,e));else if(Y&&vt(z,e));else if(W.attributeCheck instanceof Function&&W.attributeCheck(e,t));else if(!F[e]||Q[e]){if(!($e(t)&&(V.tagNameCheck instanceof RegExp&&vt(V.tagNameCheck,t)||V.tagNameCheck instanceof Function&&V.tagNameCheck(t))&&(V.attributeNameCheck instanceof RegExp&&vt(V.attributeNameCheck,e)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(e,t))||"is"===e&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&vt(V.tagNameCheck,r)||V.tagNameCheck instanceof Function&&V.tagNameCheck(r))))return!1}else if(ee[e]);else if(vt(D,dt(r,Z,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==ft(r,"data:")||!Kt[t]){if(J&&!vt(R,dt(r,Z,"")));else if(r)return!1}else;return!0},$e=function(t){return"annotation-xml"!==t&&ct(t,P)},Ee=function(t){Ae(M.beforeSanitizeAttributes,t,null);var{attributes:e}=t;if(e&&!Se(t)){for(var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0},i=e.length,l=function(){var l=e[i],{name:u,namespaceURI:a,value:s}=l,c=ve(u),d=s,f="value"===u?d:pt(d);if(o.attrName=c,o.attrValue=f,o.keepAttr=!0,o.forceKeepAttr=void 0,Ae(M.uponSanitizeAttribute,t,o),f=o.attrValue,!Dt||"id"!==c&&"name"!==c||(ke(u,t),f="user-content-"+f),rt&&vt(/((--!?|])>)|<\/(style|title|textarea)/i,f))return ke(u,t),0;if("attributename"===c&&ct(f,"href"))return ke(u,t),0;if(o.forceKeepAttr)return 0;if(!o.keepAttr)return ke(u,t),0;if(!tt&&vt(/\/>/i,f))return ke(u,t),0;et&&nt([L,E,I],(t=>{f=dt(f,t," ")}));var p=ve(t.nodeName);if(!Le(p,c,f))return ke(u,t),0;if(n&&"object"==typeof v&&"function"==typeof v.getAttributeType)if(a);else switch(v.getAttributeType(p,c)){case"TrustedHTML":f=n.createHTML(f);break;case"TrustedScriptURL":f=n.createScriptURL(f)}if(f!==d)try{a?t.setAttributeNS(a,u,f):t.setAttribute(u,f),Se(t)?we(t):it(r.removed)}catch(e){ke(u,t)}};i--;)l();Ae(M.afterSanitizeAttributes,t,null)}},Ie=function t(e){var r=null,n=Ce(e);for(Ae(M.beforeSanitizeShadowDOM,e,null);r=n.nextNode();)Ae(M.uponSanitizeShadowNode,r,null),Me(r),Ee(r),r.content instanceof u&&t(r.content);Ae(M.afterSanitizeShadowDOM,e,null)};return r.sanitize=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,l=null,a=null,c=null;if((ue=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!qe(t)){if("function"!=typeof t.toString)throw mt("toString is not a function");if("string"!=typeof(t=t.toString()))throw mt("dirty is not a string, aborting")}if(!r.isSupported)return t;if(yt||ye(e),r.removed=[],"string"==typeof t&&(Ft=!1),Ft){if(t.nodeName){var d=ve(t.nodeName);if(!O[d]||B[d])throw mt("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof s)(l=(o=Te("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType===Vt&&"BODY"===l.nodeName||"HTML"===l.nodeName?o=l:o.appendChild(l);else{if(!jt&&!et&&!gt&&-1===t.indexOf("<"))return n&&Rt?n.createHTML(t):t;if(!(o=Te(t)))return jt?null:Rt?k:""}o&&It&&we(o.firstChild);for(var f=Ce(Ft?t:o);a=f.nextNode();)Me(a),Ee(a),a.content instanceof u&&Ie(a.content);if(Ft)return t;if(jt){if(zt)for(c=S.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(F.shadowroot||F.shadowrootmode)&&(c=A.call(i,c,!0)),c}var p=gt?o.outerHTML:o.innerHTML;return gt&&O["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&vt(Nt,o.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+p),et&&nt([L,E,I],(t=>{p=dt(p,t," ")})),n&&Rt?n.createHTML(p):p},r.setConfig=function(){ye(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),yt=!0},r.clearConfig=function(){me=null,yt=!1},r.isValidAttribute=function(t,e,r){me||ye({});var n=ve(t),o=ve(e);return Le(n,o,r)},r.addHook=function(t,e){"function"==typeof e&&lt(M[t],e)},r.removeHook=function(t,e){if(void 0!==e){var r=ot(M[t],e);return-1===r?void 0:ut(M[t],r,1)[0]}return it(M[t])},r.removeHooks=function(t){M[t]=[]},r.removeAllHooks=function(){M={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}(),Gt={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},Jt=function(t){return t.Regex="regex",t.NotRegex="not_regex",t.Exact="exact",t.IsNot="is_not",t.Icontains="icontains",t.NotIcontains="not_icontains",t}({}),Kt=Array.isArray,te=Object.prototype.toString,ee=Kt||function(t){return"[object Array]"===te.call(t)},re=t=>void 0===t,ne=t=>null===t,oe=t=>re(t)||ne(t);var ie=(t,e,r)=>{function n(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),l=1;l<o;l++)i[l-1]=arguments[l];e((()=>{(0,r[n])(t,...i)}))}var o={info:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n("log",...e)},warn:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n("warn",...e)},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n("error",...e)},critical:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];r.error(t,...n)},createLogger:n=>ie(t+" "+n,e,r)};return o},le=t=>t();var ue=function(t,r){var{debugEnabled:n}=void 0===r?{}:r,o={o:function(r){if(e&&(i.POSTHOG_DEBUG||n)&&!re(e.console)&&e.console){for(var o=("__rrweb_original__"in e.console[r]?e.console[r].__rrweb_original__:e.console[r]),l=arguments.length,u=new Array(l>1?l-1:0),a=1;a<l;a++)u[a-1]=arguments[a];o(t,...u)}},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),n=0;n<e;n++)r[n]=arguments[n];console.error(t,...r)},uninitializedWarning:t=>{o.error("You must initialize PostHog before calling "+t)},createLogger:(e,r)=>ue(t+" "+e,r)};return o},ae=ue("[PostHog.js]"),se=ae.createLogger,ce=se("[Stylesheet Loader]"),de=(t,e,r)=>{var n=t.createElement("style");return n.innerText=e,n||(ce.error("prepare_external_dependency_stylesheet returned null"),null)};function fe(t,e,r,n){var{capture:o=!1,passive:i=!0}=null!=n?n:{};null==t||t.addEventListener(e,r,{capture:o,passive:i})}se("[Surveys]"),null!=n&&n.sendBeacon;var pe=function(t,e){if(!function(t){try{new RegExp(t)}catch(t){return!1}return!0}(e))return!1;try{return new RegExp(e).test(t)}catch(t){return!1}},he={exact:(t,e)=>e.some((e=>t.some((t=>e===t)))),is_not:(t,e)=>e.every((e=>t.every((t=>e!==t)))),regex:(t,e)=>e.some((e=>t.some((t=>pe(e,t))))),not_regex:(t,e)=>e.every((e=>t.every((t=>!pe(e,t))))),icontains:(t,e)=>e.map(ve).some((e=>t.map(ve).some((t=>e.includes(t))))),not_icontains:(t,e)=>e.map(ve).every((e=>t.map(ve).every((t=>!e.includes(t))))),gt:(t,e)=>e.some((e=>{var r=parseFloat(e);return!isNaN(r)&&t.some((t=>r>parseFloat(t)))})),lt:(t,e)=>e.some((e=>{var r=parseFloat(e);return!isNaN(r)&&t.some((t=>r<parseFloat(t)))}))},ve=t=>t.toLowerCase();function me(t,e){return!t||Object.entries(t).every((t=>{var[r,n]=t,o=null==e?void 0:e[r];if(re(o)||ne(o))return!1;var i=[String(o)],l=he[n.operator];return!!l&&l(n.values,i)}))}var ge,be,ye,_e,xe=0,we=[],ke=[],Te=a.__b,Ce=a.__r,Se=a.diffed,qe=a.__c,Ae=a.unmount;function Me(t,e){a.__h&&a.__h(be,t,xe||e),xe=0;var r=be.__H||(be.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({__V:ke}),r.__[t]}function Le(t){return xe=1,function(t,e,r){var n=Me(ge++,2);if(n.t=t,!n.__c&&(n.__=[Oe(void 0,e),function(t){var e=n.__N?n.__N[0]:n.__[0],r=n.t(e,t);e!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=be,!be.u)){var o=function(t,e,r){if(!n.__c.__H)return!0;var o=n.__c.__H.__.filter((function(t){return t.__c}));if(o.every((function(t){return!t.__N})))return!i||i.call(this,t,e,r);var l=!1;return o.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(l=!0)}})),!(!l&&n.__c.props===t)&&(!i||i.call(this,t,e,r))};be.u=!0;var i=be.shouldComponentUpdate,l=be.componentWillUpdate;be.componentWillUpdate=function(t,e,r){if(this.__e){var n=i;i=void 0,o(t,e,r),i=n}l&&l.call(this,t,e,r)},be.shouldComponentUpdate=o}return n.__N||n.__}(Oe,t)}function $e(t,e){var r=Me(ge++,3);!a.__s&&De(r.__H,e)&&(r.__=t,r.i=e,be.__H.__h.push(r))}function Ee(t){return xe=5,Ie((function(){return{current:t}}),[])}function Ie(t,e){var r=Me(ge++,7);return De(r.__H,e)?(r.__V=t(),r.i=e,r.__h=t,r.__V):r.__}function je(){for(var t;t=we.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Ze),t.__H.__h.forEach(Pe),t.__H.__h=[]}catch(e){t.__H.__h=[],a.__e(e,t.__v)}}a.__b=function(t){be=null,Te&&Te(t)},a.__r=function(t){Ce&&Ce(t),ge=0;var e=(be=t.__c).__H;e&&(ye===be?(e.__h=[],be.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=ke,t.__N=t.i=void 0}))):(e.__h.forEach(Ze),e.__h.forEach(Pe),e.__h=[],ge=0)),ye=be},a.diffed=function(t){Se&&Se(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==we.push(e)&&_e===a.requestAnimationFrame||((_e=a.requestAnimationFrame)||Re)(je)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==ke&&(t.__=t.__V),t.i=void 0,t.__V=ke}))),ye=be=null},a.__c=function(t,e){e.some((function(t){try{t.__h.forEach(Ze),t.__h=t.__h.filter((function(t){return!t.__||Pe(t)}))}catch(r){e.some((function(t){t.__h&&(t.__h=[])})),e=[],a.__e(r,t.__v)}})),qe&&qe(t,e)},a.unmount=function(t){Ae&&Ae(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach((function(t){try{Ze(t)}catch(t){e=t}})),r.__H=void 0,e&&a.__e(e,r.__v))};var ze="function"==typeof requestAnimationFrame;function Re(t){var e,r=function(){clearTimeout(n),ze&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,100);ze&&(e=requestAnimationFrame(r))}function Ze(t){var e=be,r=t.__c;"function"==typeof r&&(t.__c=void 0,r()),be=e}function Pe(t){var e=be;t.__c=t.__(),be=e}function De(t,e){return!t||t.length!==e.length||e.some((function(e,r){return e!==t[r]}))}function Oe(t,e){return"function"==typeof e?e(t):e}var Ne="#020617",Fe={backgroundColor:"#eeeded"};function He(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 Ve(t){var e;void 0===t&&(t=Fe.backgroundColor),"#"===t[0]&&(e=He(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=He(r)),!e)return Ne;var n=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);if(n){var o=parseInt(n[1]),i=parseInt(n[2]),l=parseInt(n[3]);return Math.sqrt(o*o*.299+i*i*.587+l*l*.114)>127.5?Ne:"white"}return Ne}!function(t,e){var r={__c:e="__cC"+h++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var r,n;return this.getChildContext||(r=[],(n={})[e]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&r.some((function(t){t.__e=!0,S(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 Be=':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)}',Ue=o,Qe=e;function We(t){try{var e=Ue.querySelectorAll(t);if(0===e.length)return{element:null,error:"not_found",matchCount:0};var r=e[0];return function(t){var e=Qe.getComputedStyle(t);if("none"===e.display||"hidden"===e.visibility||"0"===e.opacity)return!1;var r=t.getBoundingClientRect();if(0===r.width||0===r.height)return!1;return!0}(r)?e.length>1?{element:r,error:"multiple_matches",matchCount:e.length}:{element:r,error:null,matchCount:1}:{element:null,error:"not_visible",matchCount:e.length}}catch(t){return{element:null,error:"not_found",matchCount:0}}}var Ye=12,Xe=320,Ge=180;function Je(t,e){var r,n,o,i=l({},Gt,e),u=t.style;u.setProperty("--ph-tour-background-color",i.backgroundColor),u.setProperty("--ph-tour-text-color",i.textColor),u.setProperty("--ph-tour-button-color",i.buttonColor),u.setProperty("--ph-tour-border-radius",i.borderRadius+"px"),u.setProperty("--ph-tour-button-border-radius",i.buttonBorderRadius+"px"),u.setProperty("--ph-tour-border-color",i.borderColor),u.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}(i.fontFamily)),u.setProperty("--ph-tour-text-secondary-color",(r=i.textColor,n=.6,(o=He(r).match(/^rgb\((\d+),(\d+),(\d+)\)$/))?"rgba("+o[1]+", "+o[2]+", "+o[3]+", "+n+")":r)),u.setProperty("--ph-tour-branding-text-color",Ve(i.backgroundColor)),u.setProperty("--ph-tour-button-text-color",Ve(i.buttonColor)),u.setProperty("--ph-tour-box-shadow",i.boxShadow),u.setProperty("--ph-tour-overlay-color",i.showOverlay?"rgba(0, 0, 0, 0.5)":"transparent"),u.setProperty("--ph-tour-button-secondary-color","transparent"),u.setProperty("--ph-tour-button-secondary-text-color",i.textColor),u.setProperty("--ph-tour-max-width","320px"),u.setProperty("--ph-tour-padding","16px")}function Ke(t){var e;if(!t)return"";if("string"==typeof t)return er(t);if("text"===t.type){var r=er(t.text||"");if(t.marks)for(var n of t.marks)switch(n.type){case"bold":r="<strong>"+r+"</strong>";break;case"italic":r="<em>"+r+"</em>";break;case"underline":r="<u>"+r+"</u>";break;case"strike":r="<s>"+r+"</s>"}return r}var o=(null==(e=t.content)?void 0:e.map(Ke).join(""))||"";switch(t.type){case"doc":default:return o;case"paragraph":return"<p>"+o+"</p>";case"heading":var i,l=(null==(i=t.attrs)?void 0:i.level)||1;return"<h"+l+">"+o+"</h"+l+">";case"bulletList":return"<ul>"+o+"</ul>";case"orderedList":return"<ol>"+o+"</ol>";case"listItem":return"<li>"+o+"</li>";case"hardBreak":return"<br>"}}function tr(t){return t.endsWith("/")?t.slice(0,-1):t}function er(t){var e=Ue.createElement("div");return e.textContent=t,e.innerHTML}function rr(t){return t.contentHtml?Xt.sanitize(t.contentHtml,{ADD_TAGS:["iframe"],ADD_ATTR:["allowfullscreen","frameborder","referrerpolicy"]}):Ke(t.content)}function nr(t,e,r){return void 0===e&&(e=document),void 0===r&&(r=null),function(t,e,r,n){void 0===n&&(n=null);return t=function(t){function e(){n&&(l.length>0&&/^[~+>]$/.test(l[l.length-1])&&l.push(" "),l.push(n))}var r,n,o,i,l=[],u=[0],a=0,s=/(?:[^\\]|(?:^|[^\\])(?:\\\\)+)$/,c=/^\s+$/,d=[/\s+|\/\*|["'>~+[(]/g,/\s+|\/\*|["'[\]()]/g,/\s+|\/\*|["'[\]()]/g,null,/\*\//g];for(t=t.trim();;){if(n="",(o=d[u[u.length-1]]).lastIndex=a,!(r=o.exec(t))){n=t.substr(a),e();break}if((i=a)<(a=o.lastIndex)-r[0].length&&(n=t.substring(i,a-r[0].length)),u[u.length-1]<3){if(e(),"["===r[0])u.push(1);else if("("===r[0])u.push(2);else if(/^["']$/.test(r[0]))u.push(3),d[3]=new RegExp(r[0],"g");else if("/*"===r[0])u.push(4);else if(/^[\])]$/.test(r[0])&&u.length>0)u.pop();else if(/^(?:\s+|[~+>])$/.test(r[0])&&(l.length>0&&!c.test(l[l.length-1])&&0===u[u.length-1]&&l.push(" "),1===u[u.length-1]&&5===l.length&&"="===l[2].charAt(l[2].length-1)&&(l[4]=" "+l[4]),c.test(r[0])))continue;l.push(r[0])}else l[l.length-1]+=n,s.test(l[l.length-1])&&(4===u[u.length-1]&&(l.length<2||c.test(l[l.length-2])?l.pop():l[l.length-1]=" ",r[0]=""),u.pop()),l[l.length-1]+=r[0]}return l.join("").trim()}(t),r.querySelector(t),document.head.createShadowRoot||document.head.attachShadow?or(t,",").reduce(((t,e)=>{var o=or(e.replace(/^\s+/g,"").replace(/\s*([>+~]+)\s*/g,"$1")," ").filter((t=>!!t)).map((t=>or(t,">"))),i=o.length-1,l=function(t,e,r){void 0===t&&(t=null);void 0===r&&(r=null);var n=[];if(r)n=r;else{var o=function(t){for(var e=0;e<t.length;e++){var r=t[e];n.push(r),r.shadowRoot&&o(r.shadowRoot.querySelectorAll("*"))}};e.shadowRoot&&o(e.shadowRoot.querySelectorAll("*")),o(e.querySelectorAll("*"))}return t?n.filter((e=>e.matches(t))):n}(o[i][o[i].length-1],r,n),u=function(t,e,r){return n=>{for(var o=e,i=n,l=!1;i&&!ir(i);){var u=!0;if(1===t[o].length)u=i.matches(t[o]);else{var a=[].concat(t[o]).reverse(),s=i;for(var c of a){if(!s||!s.matches(c)){u=!1;break}s=lr(s,r)}}if(u&&0===o){l=!0;break}u&&o--,i=lr(i,r)}return l}}(o,i,r);return t=t.concat(l.filter(u))}),[]):r.querySelectorAll(t)}(t,0,e,r)}function or(t,e){return t.match(/\\?.|^$/g).reduce(((t,r)=>('"'!==r||t.sQuote?"'"!==r||t.quote?t.quote||t.sQuote||r!==e?t.a[t.a.length-1]+=r:t.a.push(""):(t.sQuote^=1,t.a[t.a.length-1]+=r):(t.quote^=1,t.a[t.a.length-1]+=r),t)),{a:[""]}).a}function ir(t){return t.nodeType===Node.DOCUMENT_FRAGMENT_NODE||t.nodeType===Node.DOCUMENT_NODE}function lr(t,e){var r=t.parentNode;return r&&r.host&&11===r.nodeType?r.host:r===e?null:r}var ur,ar,sr=e,cr=(void 0===ur&&(ur=le),ie("[Element Inference]",ur,(void 0===ar&&(ar=console),{log:ar.log.bind(ar),warn:ar.warn.bind(ar),error:ar.error.bind(ar),debug:ar.debug.bind(ar)})));function dr(t,e){try{var r=e.get(t);if(!re(r))return r;if(t.checkVisibility){var n=t.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0});return e.set(t,n),n}var o=sr.getComputedStyle(t);if("none"===o.display||"hidden"===o.visibility||0===parseFloat(o.opacity))return e.set(t,!1),!1;for(var i=t.parentElement;i;){var l=e.get(i);if(re(l)){var u=sr.getComputedStyle(i),a="none"!==u.display&&"hidden"!==u.visibility;if(e.set(i,a),!a)return!1;i=i.parentElement}else{if(!l)return!1;i=i.parentElement}}var s=t.getBoundingClientRect(),c=s.width>0||s.height>0||t.getClientRects().length>0;return e.set(t,c),c}catch(t){return!0}}function fr(t,e){var r=function(t){var e,r=null==(e=t.innerText)?void 0:e.trim();return!r||r.length>250?null:r}(t);return(null==r?void 0:r.toLowerCase())===e.toLowerCase()}function*pr(t,e,r){var n;try{n=nr(t)}catch(t){return}for(var o of n){var i=o;e&&!fr(i,e)||dr(i,r)&&(yield i)}}function hr(t,e){var r=0;for(var n of t){if(r===e)return n;r++}return null}function vr(t){try{var e=JSON.parse(t.autoData);if(!ee(null==e?void 0:e.textGroups)||!ee(null==e?void 0:e.notextGroups))return cr.error("Invalid autoData structure:",e),null;var{text:r,excludeText:n}=t,o=null!=r&&!n,i=(o?e.textGroups:e.notextGroups).sort(((t,e)=>t.cardinality-e.cardinality));if(0===i.length)return null;var l=new WeakMap;for(var u of i){var a=new Map,s=null,c=0;for(var{css:d,offset:f}of u.cssSelectors){var p,h=hr(pr(d,o?r:null,l),f);if(h){var v=(null!==(p=a.get(h))&&void 0!==p?p:0)+1;if(a.set(h,v),v>c&&(c=v,s=h,v>=Math.ceil(u.cssSelectors.length/2)))return s}}if(s)return s}return null}catch(t){return cr.error("Error finding element:",t),null}}var mr=0;function gr(t,e,r,n,o,i){var l,u,s={};for(u in e)"ref"==u?l=e[u]:s[u]=e[u];var c={type:t,props:s,key:r,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--mr,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof t&&(l=t.defaultProps))for(u in l)void 0===s[u]&&(s[u]=l[u]);return a.vnode&&a.vnode(c),c}var br=gr("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:gr("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"})}),yr=gr("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:gr("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"})}),_r=gr("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:gr("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"})}),xr=gr("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:gr("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"})}),wr=gr("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:gr("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"})}),kr=gr("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:[gr("title",{id:"close-survey-title",children:"Close survey"}),gr("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"})]}),Tr=gr("svg",{width:"77",height:"14",viewBox:"0 0 77 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[gr("g",{"clip-path":"url(#clip0_2415_6911)",children:[gr("mask",{id:"mask0_2415_6911",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"77",height:"14",children:gr("path",{d:"M0.5 0H76.5V14H0.5V0Z",fill:"white"})}),gr("g",{mask:"url(#mask0_2415_6911)",children:[gr("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"}),gr("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"}),gr("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"}),gr("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"}),gr("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"}),gr("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"})]})]}),gr("defs",{children:gr("clipPath",{id:"clip0_2415_6911",children:gr("rect",{width:"76",height:"14",fill:"white",transform:"translate(0.5)"})})})]});function Cr(t){var e,{step:r,appearance:n,stepIndex:o,totalSteps:i,onNext:l,onPrevious:u,onDismiss:a}=t,s=null!==(e=null==n?void 0:n.whiteLabel)&&void 0!==e&&e,c=o>=i-1,d=0===o,f="button"===r.progressionTrigger||"modal"===r.type,p=!!(l||u||a),h=p?void 0:{cursor:"default"};return gr(w,{children:[gr("button",{class:"ph-tour-dismiss",onClick:a,"aria-label":"Close tour",style:h,children:kr}),gr("div",{class:"ph-tour-content",dangerouslySetInnerHTML:{__html:rr(r)}}),gr("div",{class:"ph-tour-footer",children:[gr("span",{class:"ph-tour-progress",children:[o+1," of ",i]}),gr("div",{class:"ph-tour-buttons",children:[!d&&gr("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:u,style:h,children:"Back"}),f&&gr("button",{class:"ph-tour-button ph-tour-button--primary",onClick:l,style:h,children:c?"Done":"Next"})]})]}),!s&&gr("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 ",Tr]})]})}gr("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:gr("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 Sr=[_r,yr,br],qr=[xr,_r,yr,br,wr];function Ar(t){var{value:e,onChange:r,onSubmit:n,isInteractive:o}=t,i=Ee(null);$e((()=>{o&&setTimeout((()=>{var t;return null==(t=i.current)?void 0:t.focus()}),100)}),[o]);return gr("textarea",{ref:i,class:"ph-tour-survey-textarea",rows:3,placeholder:"Your feedback (optional)...",value:e,onInput:t=>r(t.target.value),onKeyDown:t=>{"Enter"===t.key&&t.metaKey&&o&&(t.preventDefault(),null==n||n())},disabled:!o,style:o?void 0:{cursor:"default"}})}function Mr(t){var{survey:e,onSubmit:r,isInteractive:n}=t,[o,i]=Le(null),l=e.display||"emoji",u=e.scale||5,a=t=>{n&&(i(t),null==r||r(t))};if("emoji"===l)return gr("div",{class:"ph-tour-survey-rating-container",children:[gr("div",{class:"ph-tour-survey-rating-emoji",children:(3===u?Sr:qr).map(((t,e)=>{var r=e+1;return gr("button",{type:"button",class:"ph-tour-survey-emoji-button "+(o===r?"ph-tour-survey-emoji-button--active":""),onClick:()=>a(r),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+r,children:t},e)}))}),(e.lowerBoundLabel||e.upperBoundLabel)&&gr("div",{class:"ph-tour-survey-rating-labels",children:[gr("span",{children:e.lowerBoundLabel}),gr("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]}}(u);return gr("div",{class:"ph-tour-survey-rating-container",children:[gr("div",{class:"ph-tour-survey-rating-numbers",style:{gridTemplateColumns:"repeat("+s.length+", minmax(0, 1fr))"},children:s.map((t=>gr("button",{type:"button",class:"ph-tour-survey-number-button "+(o===t?"ph-tour-survey-number-button--active":""),onClick:()=>a(t),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+t,children:t},t)))}),(e.lowerBoundLabel||e.upperBoundLabel)&&gr("div",{class:"ph-tour-survey-rating-labels",children:[gr("span",{children:e.lowerBoundLabel}),gr("span",{children:e.upperBoundLabel})]})]})}function Lr(t){var e,{step:r,appearance:n,stepIndex:o,totalSteps:i,onPrevious:l,onSubmit:u,onDismiss:a}=t,[s,c]=Le(""),d=r.survey,f=null!==(e=null==n?void 0:n.whiteLabel)&&void 0!==e&&e,p=0===o,h="open"===(null==d?void 0:d.type),v=!!(l||u||a),m=v?void 0:{cursor:"default"},g=()=>{null==u||u(s.trim()||null)};return d?gr(w,{children:[gr("button",{class:"ph-tour-dismiss",onClick:a,"aria-label":"Close survey",style:m,children:kr}),gr("div",{class:"ph-tour-survey-question",children:d.questionText}),h?gr(Ar,{value:s,onChange:c,onSubmit:g,isInteractive:v}):gr(Mr,{survey:d,onSubmit:u,isInteractive:v}),gr("div",{class:"ph-tour-footer",children:[gr("span",{class:"ph-tour-progress",children:[o+1," of ",i]}),gr("div",{class:"ph-tour-buttons",children:[!p&&gr("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:l,style:m,children:"Back"}),h&&gr("button",{class:"ph-tour-button ph-tour-button--primary",onClick:g,style:m,children:"Submit"})]})]}),!f&&gr("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 ",Tr]})]}):gr("div",{})}var $r=e;function Er(t){return{top:"bottom",bottom:"top",left:"right",right:"left"}[t]}var Ir=150;function jr(t){var{tour:e,step:r,stepIndex:n,totalSteps:o,targetElement:i,onNext:u,onPrevious:a,onDismiss:s,onSurveySubmit:c}=t,[d,f]=Le("entering"),[p,h]=Le(null),[v,m]=Le(null),[g,b]=Le(r),[y,_]=Le(n),x=Ee(n),w=Ee(!1),k="modal"===g.type||"survey"===g.type,T=function(t,e){return xe=8,Ie((function(){return t}),e)}((()=>{if(i){var t,e,r=i.getBoundingClientRect();h(function(t){var e,r,n,o=Qe.innerWidth,i=Qe.innerHeight-t.bottom,l=t.left;return o-t.right>=Xe+Ye?(e="right",r=t.top+t.height/2-Ge/2,n=t.right+Ye):l>=Xe+Ye?(e="left",r=t.top+t.height/2-Ge/2,n=t.left-Xe-Ye):i>=Ge+Ye?(e="bottom",r=t.bottom+Ye,n=t.left+t.width/2-Xe/2):(e="top",r=t.top-Ge-Ye,n=t.left+t.width/2-Xe/2),{top:r,left:n,position:e}}(r)),m((void 0===e&&(e=8),{top:(t=r).top-e+"px",left:t.left-e+"px",width:t.width+2*e+"px",height:t.height+2*e+"px"}))}}),[i]);$e((()=>{var t=n,e=x.current!==n,o=()=>{x.current===t&&(f("visible"),w.current=!1)},l=()=>{i&&"element"===r.type?function(t,e){var r=t.getBoundingClientRect(),n=$r.innerHeight,o=$r.innerWidth,i=n/6,l=o/6;if(r.top>=i&&r.bottom<=n-i&&r.left>=l&&r.right<=o-l)e();else{t.scrollIntoView({behavior:"smooth",block:"center"});var u=r.top,a=0,s=!1,c=()=>{if(!s){var r=t.getBoundingClientRect();if(Math.abs(r.top-u)<1){if(++a>=3)return s=!0,void e()}else a=0;u=r.top,setTimeout(c,50)}};setTimeout(c,30),setTimeout((()=>{s||(s=!0,e())}),500)}}(i,(()=>{x.current===t&&(T(),setTimeout(o,50))})):setTimeout(o,50)};if(!e)return x.current=n,w.current=!0,void l();x.current=n,w.current=!0,f("exiting"),setTimeout((()=>{x.current===t&&("element"===r.type&&(h(null),m(null)),b(r),_(n),f("entering"),l())}),Ir)}),[i,n,r,T]),$e((()=>{if("visible"===d&&!k){var t=()=>{w.current||T()};return fe($r,"scroll",t,{capture:!0}),fe($r,"resize",t),()=>{null==$r||$r.removeEventListener("scroll",t,!0),null==$r||$r.removeEventListener("resize",t)}}}),[T,d,k]),$e((()=>{var t=t=>{"Escape"===t.key&&s("escape_key")};return fe($r,"keydown",t),()=>{null==$r||$r.removeEventListener("keydown",t)}}),[s]);var C="visible"===d,S="survey"===g.type,q=k||!ne(p),A=l({},g.maxWidth&&{width:g.maxWidth+"px",maxWidth:g.maxWidth+"px"},k?{top:"50%",left:"50%",transform:"translate(-50%, -50%)"}:{top:p?p.top+"px":"0",left:p?p.left+"px":"0"});return gr("div",{class:"ph-tour-container",children:[gr("div",{class:"ph-tour-click-overlay",onClick:t=>{t.stopPropagation(),s("user_clicked_outside")}}),gr("div",{class:"ph-tour-modal-overlay",style:{opacity:k&&C?1:0,transition:"opacity 150ms ease-out",pointerEvents:k?"auto":"none"}}),gr("div",{class:"ph-tour-spotlight",style:l({},C&&q&&v?v:{top:"50%",left:"50%",width:"0px",height:"0px"},{opacity:!k&&C&&q?1:0,transition:"opacity 150ms ease-out"},"click"===g.progressionTrigger&&!k&&{pointerEvents:"auto",cursor:"pointer"}),onClick:"click"!==g.progressionTrigger||k?void 0:t=>{t.stopPropagation(),i&&i.click(),u()}}),gr("div",{class:"ph-tour-tooltip "+(k?"ph-tour-tooltip--modal":"")+" "+(S?"ph-tour-survey-step":""),style:l({},A,{opacity:C&&q?1:0,transition:"opacity 150ms ease-out"}),onClick:t=>{t.stopPropagation()},children:[!k&&p&&gr("div",{class:"ph-tour-arrow ph-tour-arrow--"+Er(p.position)}),S?gr(Lr,{step:g,appearance:e.appearance,stepIndex:y,totalSteps:o,onSubmit:c,onPrevious:a,onDismiss:()=>s("user_clicked_skip")}):gr(Cr,{step:g,appearance:e.appearance,stepIndex:y,totalSteps:o,onNext:u,onPrevious:a,onDismiss:()=>s("user_clicked_skip")})]})]})}Math.trunc||(Math.trunc=function(t){return t<0?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return(t=>"[object Number]"==te.call(t))(t)&&isFinite(t)&&Math.floor(t)===t}),e&&!re(e.crypto)&&crypto.getRandomValues;var zr=null,Rr={p:function(){if(!ne(zr))return zr;var t=!0;if(re(e))t=!1;else try{var r="__mplssupport__";Rr.h(r,"xyz"),'"xyz"'!==Rr.v(r)&&(t=!1),Rr.m(r)}catch(e){t=!1}return t||ae.error("localStorage unsupported; falling back to cookie store"),zr=t,t},k:function(t){ae.error("localStorage error: "+t)},v:function(t){try{return null==e?void 0:e.localStorage.getItem(t)}catch(t){Rr.k(t)}return null},T:function(t){try{return JSON.parse(Rr.v(t))||{}}catch(t){}return null},h:function(t,r){try{null==e||e.localStorage.setItem(t,JSON.stringify(r))}catch(t){Rr.k(t)}},m:function(t){try{null==e||e.localStorage.removeItem(t)}catch(t){Rr.k(t)}}},Zr=null,Pr={p:function(){if(!ne(Zr))return Zr;if(Zr=!0,re(e))Zr=!1;else try{var t="__support__";Pr.h(t,"xyz"),'"xyz"'!==Pr.v(t)&&(Zr=!1),Pr.m(t)}catch(t){Zr=!1}return Zr},k:function(t){ae.error("sessionStorage error: ",t)},v:function(t){try{return null==e?void 0:e.sessionStorage.getItem(t)}catch(t){Pr.k(t)}return null},T:function(t){try{return JSON.parse(Pr.v(t))||null}catch(t){}return null},h:function(t,r){try{null==e||e.sessionStorage.setItem(t,JSON.stringify(r))}catch(t){Pr.k(t)}},m:function(t){try{null==e||e.sessionStorage.removeItem(t)}catch(t){Pr.k(t)}}},Dr="ph_product_tour_completed_",Or="ph_product_tour_dismissed_",Nr="ph_active_product_tour";function Fr(t){var e,r;return!!(null!=(e=t.conditions)&&e.events&&(null==(r=t.conditions.events.values)?void 0:r.length)>0)}function Hr(t){var e,r;return!!(null!=(e=t.conditions)&&e.actions&&(null==(r=t.conditions.actions.values)?void 0:r.length)>0)}class Vr{constructor(){this.C={},this.C={}}on(t,e){return this.C[t]||(this.C[t]=[]),this.C[t].push(e),()=>{this.C[t]=this.C[t].filter((t=>t!==e))}}emit(t,e){for(var r of this.C[t]||[])r(e);for(var n of this.C["*"]||[])n(t,e)}}function Br(t,e,r){if(oe(t))return!1;switch(r){case"exact":return t===e;case"contains":var n=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(t);case"regex":try{return new RegExp(e).test(t)}catch(t){return!1}default:return!1}}class Ur{constructor(t){this.S=new Vr,this.q=(t,e)=>this.A(t,e)&&this.M(t,e)&&this.L(t,e)&&this.$(t,e),this.A=(t,e)=>null==e||!e.event||(null==t?void 0:t.event)===(null==e?void 0:e.event),this._instance=t,this.I=new Set,this.j=new Set}init(){var t;if(!re(null==(t=this._instance)?void 0:t.R)){var e;null==(e=this._instance)||e.R(((t,e)=>{this.on(t,e)}))}}register(t){var e,r;if(!re(null==(e=this._instance)?void 0:e.R)&&(t.forEach((t=>{var e,r;null==(e=this.j)||e.add(t),null==(r=t.steps)||r.forEach((t=>{var e;null==(e=this.I)||e.add((null==t?void 0:t.event)||"")}))})),null!=(r=this._instance)&&r.autocapture)){var n,o=new Set;t.forEach((t=>{var e;null==(e=t.steps)||e.forEach((t=>{null!=t&&t.selector&&o.add(null==t?void 0:t.selector)}))})),null==(n=this._instance)||n.autocapture.setElementSelectors(o)}}on(t,e){var r;null!=e&&0!=t.length&&(this.I.has(t)||this.I.has(null==e?void 0:e.event))&&this.j&&(null==(r=this.j)?void 0:r.size)>0&&this.j.forEach((t=>{this.Z(e,t)&&this.S.emit("actionCaptured",t.name)}))}P(t){this.onAction("actionCaptured",(e=>t(e)))}Z(t,e){if(null==(null==e?void 0:e.steps))return!1;for(var r of e.steps)if(this.q(t,r))return!0;return!1}onAction(t,e){return this.S.on(t,e)}M(t,e){if(null!=e&&e.url){var r,n=null==t||null==(r=t.properties)?void 0:r.$current_url;if(!n||"string"!=typeof n)return!1;if(!Br(n,e.url,e.url_matching||"contains"))return!1}return!0}L(t,e){return!!this.D(t,e)&&(!!this.O(t,e)&&!!this.N(t,e))}D(t,e){var r;if(null==e||!e.href)return!0;var n=this.F(t);if(n.length>0)return n.some((t=>Br(t.href,e.href,e.href_matching||"exact")));var o,i=(null==t||null==(r=t.properties)?void 0:r.$elements_chain)||"";return!!i&&Br((o=i.match(/(?::|")href="(.*?)"/))?o[1]:"",e.href,e.href_matching||"exact")}O(t,e){var r;if(null==e||!e.text)return!0;var n=this.F(t);if(n.length>0)return n.some((t=>Br(t.text,e.text,e.text_matching||"exact")||Br(t.$el_text,e.text,e.text_matching||"exact")));var o,i,l,u=(null==t||null==(r=t.properties)?void 0:r.$elements_chain)||"";return!!u&&(o=function(t){for(var e,r=[],n=/(?::|")text="(.*?)"/g;!oe(e=n.exec(t));)r.includes(e[1])||r.push(e[1]);return r}(u),i=e.text,l=e.text_matching||"exact",o.some((t=>Br(t,i,l))))}N(t,e){var r,n;if(null==e||!e.selector)return!0;var o=null==t||null==(r=t.properties)?void 0:r.$element_selectors;if(null!=o&&o.includes(e.selector))return!0;var i=(null==t||null==(n=t.properties)?void 0:n.$elements_chain)||"";if(e.selector_regex&&i)try{return new RegExp(e.selector_regex).test(i)}catch(t){return!1}return!1}F(t){var e;return null==(null==t||null==(e=t.properties)?void 0:e.$elements)?[]:null==t?void 0:t.properties.$elements}$(t,e){return null==e||!e.properties||0===e.properties.length||me(e.properties.reduce(((t,e)=>{var r=ee(e.value)?e.value.map(String):null!=e.value?[String(e.value)]:[];return t[e.key]={values:r,operator:e.operator||"exact"},t}),{}),null==t?void 0:t.properties)}}class Qr{constructor(t){this._instance=t,this.H=new Map,this.V=new Map,this.B=new Map}U(t,e){return!!t&&me(t.propertyFilters,null==e?void 0:e.properties)}W(t,e){var r=new Map;return t.forEach((t=>{var n;null==(n=t.conditions)||null==(n=n[e])||null==(n=n.values)||n.forEach((e=>{if(null!=e&&e.name){var n=r.get(e.name)||[];n.push(t.id),r.set(e.name,n)}}))})),r}Y(t,e,r){var n=(r===H.Activation?this.H:this.V).get(t),o=[];return this.X((t=>{o=t.filter((t=>null==n?void 0:n.includes(t.id)))})),o.filter((n=>{var o,i=null==(o=n.conditions)||null==(o=o[r])||null==(o=o.values)?void 0:o.find((e=>e.name===t));return this.U(i,e)}))}register(t){var e;re(null==(e=this._instance)?void 0:e.R)||(this.G(t),this.J(t))}J(t){var e=t.filter((t=>{var e,r;return(null==(e=t.conditions)?void 0:e.actions)&&(null==(r=t.conditions)||null==(r=r.actions)||null==(r=r.values)?void 0:r.length)>0}));if(0!==e.length){if(null==this.K){this.K=new Ur(this._instance),this.K.init();this.K.P((t=>{this.onAction(t)}))}e.forEach((t=>{var e,r,n,o,i;t.conditions&&null!=(e=t.conditions)&&e.actions&&null!=(r=t.conditions)&&null!=(r=r.actions)&&r.values&&(null==(n=t.conditions)||null==(n=n.actions)||null==(n=n.values)?void 0:n.length)>0&&(null==(o=this.K)||o.register(t.conditions.actions.values),null==(i=t.conditions)||null==(i=i.actions)||null==(i=i.values)||i.forEach((e=>{if(e&&e.name){var r=this.B.get(e.name);r&&r.push(t.id),this.B.set(e.name,r||[t.id])}})))}))}}G(t){var e,r=t.filter((t=>{var e,r;return(null==(e=t.conditions)?void 0:e.events)&&(null==(r=t.conditions)||null==(r=r.events)||null==(r=r.values)?void 0:r.length)>0})),n=t.filter((t=>{var e,r;return(null==(e=t.conditions)?void 0:e.cancelEvents)&&(null==(r=t.conditions)||null==(r=r.cancelEvents)||null==(r=r.values)?void 0:r.length)>0}));if(0!==r.length||0!==n.length){null==(e=this._instance)||e.R(((t,e)=>{this.onEvent(t,e)})),this.H=this.W(t,H.Activation),this.V=this.W(t,H.Cancellation)}}onEvent(t,e){var r,n=this.tt(),o=this.et(),i=this.rt(),l=(null==(r=this._instance)||null==(r=r.persistence)?void 0:r.props[o])||[];if(i===t&&e&&l.length>0){var u,a;n.info("event matched, removing item from activated items",{event:t,eventPayload:e,existingActivatedItems:l});var s=(null==e||null==(u=e.properties)?void 0:u.$survey_id)||(null==e||null==(a=e.properties)?void 0:a.$product_tour_id);if(s){var c=l.indexOf(s);c>=0&&(l.splice(c,1),this.nt(l))}}else{if(this.V.has(t)){var d=this.Y(t,e,H.Cancellation);d.length>0&&(n.info("cancel event matched, cancelling items",{event:t,itemsToCancel:d.map((t=>t.id))}),d.forEach((t=>{var e=l.indexOf(t.id);e>=0&&l.splice(e,1),this.ot(t.id)})),this.nt(l))}if(this.H.has(t)){n.info("event name matched",{event:t,eventPayload:e,items:this.H.get(t)});var f=this.Y(t,e,H.Activation);this.nt(l.concat(f.map((t=>t.id))||[]))}}}onAction(t){var e,r=this.et(),n=(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[r])||[];this.B.has(t)&&this.nt(n.concat(this.B.get(t)||[]))}nt(t){var e,r=this.tt(),n=this.et(),o=[...new Set(t)].filter((t=>!this.it(t)));r.info("updating activated items",{activatedItems:o}),null==(e=this._instance)||null==(e=e.persistence)||e.register({[n]:o})}getActivatedIds(){var t,e=this.et(),r=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[e];return r||[]}getEventToItemsMap(){return this.H}ut(){return this.K}}var Wr=se("[Product Tour Event Receiver]");class Yr extends Qr{constructor(t){super(t)}et(){return"$product_tours_activated"}rt(){return"product tour shown"}X(t){var e;null==(e=this._instance)||null==(e=e.productTours)||e.getProductTours(t)}ot(t){var e;null==(e=this._instance)||null==(e=e.productTours)||e.cancelPendingTour(t)}tt(){return Wr}it(t){if(!t)return!0;var e=""+Dr+t,r=""+Or+t;return!(!Rr.v(e)&&!Rr.v(r))}getTours(){return this.getActivatedIds()}}var Xr=se("[Product Tours]"),Gr=o,Jr=e;function Kr(t){var e=new Date;if(t.start_date&&e<new Date(t.start_date))return!1;if(t.end_date&&e>new Date(t.end_date))return!1;return!0}function tn(t){return Kr(t)&&function(t){var e,r=t.conditions;if(null==r||!r.url)return!0;var n=null==Jr||null==(e=Jr.location)?void 0:e.href;if(!n)return!1;var o=r.urlMatchType||Jt.Icontains;if(o===Jt.Exact)return tr(n)===tr(r.url);var i=[r.url];return he[o](i,[n])}(t)}var en="ph-product-tour-container",rn="data-ph-tour-trigger";function nn(t){var e=en+"-"+t.id,r=Gr.querySelector("."+e);if(r&&r.shadowRoot)return{shadow:r.shadowRoot,isNewlyCreated:!1};var n=Gr.createElement("div");n.className=e,Je(n,t.appearance);var o=n.attachShadow({mode:"open"}),i=function(){var t=de(Ue,Be);return null==t||t.setAttribute("data-ph-product-tour-style","true"),t}();return i&&o.appendChild(i),Gr.body.appendChild(n),{shadow:o,isNewlyCreated:!0}}class on{constructor(t){var e=this;this.st=null,this.ct=0,this.dt=!1,this.ft=!1,this.ht=null,this.vt=new Map,this.bt=new Map,this.yt=new Set,this._t=()=>{Gr.hidden&&this.ht?(clearInterval(this.ht),this.ht=null):Gr.hidden||this.ht||(this.ht=setInterval((()=>{this.xt()}),1e3),this.xt())},this.nextStep=()=>{if(this.st){var t=this.st.steps[this.ct];this.wt("product tour step completed",{$product_tour_id:this.st.id,$product_tour_step_id:t.id,$product_tour_step_order:this.ct}),this.ct<this.st.steps.length-1?(this.kt(this.ct+1),this.Tt()):this.Ct()}},this.previousStep=()=>{this.st&&0!==this.ct&&(this.kt(this.ct-1),this.Tt())},this.dismissTour=function(t){if(void 0===t&&(t="user_clicked_skip"),e.st){var r=e.st.steps[e.ct];e.wt("product tour dismissed",{$product_tour_id:e.st.id,$product_tour_step_id:r.id,$product_tour_step_order:e.ct,$product_tour_dismiss_reason:t}),e.dt||Rr.h(""+Or+e.st.id,!0),Jr.dispatchEvent(new CustomEvent("PHProductTourDismissed",{detail:{tourId:e.st.id,reason:t}})),e.St()}},this._instance=t,this.qt=new Yr(t)}kt(t){this.ct=t,this.At()}At(){this.st&&!this.dt&&Pr.h(Nr,{tourId:this.st.id,stepIndex:this.ct})}Mt(){Pr.m(Nr)}Lt(){var t=Pr.v(Nr);if(!t)return null;try{return JSON.parse(t)}catch(t){return null}}start(){if(!this.ht){var t=this.Lt();t?this.$t(t.tourId,t.stepIndex,(()=>{this.Et()})):this.Et()}}Et(){this.ht=setInterval((()=>{this.xt()}),1e3),this.xt(),fe(Gr,"visibilitychange",this._t)}$t(t,e,r){var n;null==(n=this._instance.productTours)||n.getProductTours((n=>{var o=n.find((e=>e.id===t));o?(this.st=o,this.ct=e,this.ft=!0,this.Tt()):n.length>0&&this.Mt(),r()}))}stop(){this.ht&&(clearInterval(this.ht),this.ht=null),Gr.removeEventListener("visibilitychange",this._t),this.It(),this.jt(),this.St()}xt(){var t;null!=Gr&&Gr.getElementById("__POSTHOG_TOOLBAR__")||null==(t=this._instance.productTours)||t.getProductTours((t=>{if(0!==t.length){var e=new Set,r=t.filter((t=>!this.yt.has(t.id)&&(Fr(t)||Hr(t))));r.length>0&&(this.qt.register(r),r.forEach((t=>this.yt.add(t.id))));var n=this.st?[]:this.qt.getTours();for(var o of t){var i,l=null==(i=o.conditions)?void 0:i.selector;if(l&&(e.add(o.id),this.zt(o,l)),!this.st){var u=Hr(o)||Fr(o);if(o.auto_launch&&this.Rt(o)){if(!u){this.Zt(o,"auto");continue}n.includes(o.id)&&this.Zt(o,"event")}}}this.vt.forEach((t=>{var{tour:r}=t;e.has(r.id)||this.Pt(r.id)}))}else this.It()}))}Zt(t,e){var r,n=(null==(r=t.conditions)?void 0:r.autoShowDelaySeconds)||0;n>0?this.isTourPending(t.id)||this.queueTourWithDelay(t.id,n,e):this.showTour(t,{reason:e})}Rt(t){if(!tn(t))return Xr.info("Tour "+t.id+" failed conditions check"),!1;var e,r=""+Dr+t.id,n=""+Or+t.id;if(Rr.v(r)||Rr.v(n))return Xr.info("Tour "+t.id+" already completed or dismissed"),!1;if(t.internal_targeting_flag_key&&!(null==(e=this._instance.featureFlags)?void 0:e.getFeatureFlag(t.internal_targeting_flag_key)))return Xr.info("Tour "+t.id+" failed feature flag check: "+t.internal_targeting_flag_key),!1;return!0}showTour(t,e){var r,n=null!==(r=null==e?void 0:e.reason)&&void 0!==r?r:"auto";this.cancelPendingTour(t.id);for(var o=[],i=0;i<t.steps.length;i++){var l=t.steps[i];if(l.selector){var u=We(l.selector);"not_found"!==u.error&&"not_visible"!==u.error||o.push({stepIndex:i,stepId:l.id,selector:l.selector,error:u.error,matchCount:u.matchCount})}}if(o.length>0){for(var a of o)this.wt("product tour step selector failed",{$product_tour_id:t.id,$product_tour_step_id:a.stepId,$product_tour_step_order:a.stepIndex,$product_tour_step_selector:a.selector,$product_tour_error:a.error,$product_tour_matches_count:a.matchCount,$product_tour_failure_phase:"validation"});var s=o.map((t=>"Step "+t.stepIndex+': "'+t.selector+'" ('+t.error+")"));if(Xr.warn('Tour "'+t.name+'" ('+t.id+"): "+o.length+" selector(s) failed to match:\n - "+s.join("\n - ")+(!0===(null==e?void 0:e.enableStrictValidation)?"\n\nenableStrictValidation is true, not displaying tour.":"")),!0===(null==e?void 0:e.enableStrictValidation))return}this.st=t,this.kt(0),this.wt("product tour shown",{$product_tour_id:t.id,$product_tour_name:t.name,$product_tour_iteration:t.current_iteration||1,$product_tour_render_reason:n}),this.Tt()}showTourById(t,e){var r;Xr.info("showTourById("+t+")"),null==(r=this._instance.productTours)||r.getProductTours((r=>{var n=r.find((e=>e.id===t));n?this.showTour(n,{reason:null!=e?e:"api"}):Xr.warn("could not find tour",t)}))}previewTour(t){Xr.info("Previewing tour "+t.id),this.St(),this.dt=!0,this.st=t,this.ct=0,this.Tt()}Ct(){this.st&&(this.wt("product tour completed",{$product_tour_id:this.st.id,$product_tour_steps_count:this.st.steps.length}),this.dt||(Rr.h(""+Dr+this.st.id,!0),this._instance.capture("$set",{$set:{["$product_tour_completed/"+this.st.id]:!0}})),Jr.dispatchEvent(new CustomEvent("PHProductTourCompleted",{detail:{tourId:this.st.id}})),this.St())}Tt(t){if(void 0===t&&(t=0),this.st){var e=this.st.steps[this.ct];if(!e)return Xr.warn("Step "+this.ct+" not found in tour "+this.st.id),void this.St();if("survey"!==e.type){if("modal"===e.type)return this.wt("product tour step shown",{$product_tour_id:this.st.id,$product_tour_step_id:e.id,$product_tour_step_order:this.ct,$product_tour_step_type:"modal"}),this.ft=!1,void this.Dt(null);if(e.selector){var r,n=We(e.selector),o=e.inferenceData?{$inference_data_present:!0,$inference_found:!!(r=vr(e.inferenceData)),$inference_matches_selector:n.element===r}:{$inference_data_present:!1},i=this.ct>0?this.st.steps[this.ct-1]:null,u="click"===(null==i?void 0:i.progressionTrigger)||this.ft;if("not_found"===n.error||"not_visible"===n.error){if(u&&t<20)return void setTimeout((()=>{this.Tt(t+1)}),100);var a=100*t;return this.wt("product tour step selector failed",l({$product_tour_id:this.st.id,$product_tour_step_id:e.id,$product_tour_step_order:this.ct,$product_tour_step_selector:e.selector,$product_tour_error:n.error,$product_tour_matches_count:n.matchCount,$product_tour_failure_phase:"runtime",$product_tour_waited_for_element:u,$product_tour_wait_duration_ms:a},o)),Xr.warn('Tour "'+this.st.name+'" dismissed: element for step '+this.ct+" became unavailable ("+n.error+")"+(u?" after waiting "+a+"ms":"")),void this.dismissTour("element_unavailable")}if("multiple_matches"===n.error&&this.wt("product tour step selector failed",l({$product_tour_id:this.st.id,$product_tour_step_id:e.id,$product_tour_step_order:this.ct,$product_tour_step_selector:e.selector,$product_tour_error:n.error,$product_tour_matches_count:n.matchCount,$product_tour_failure_phase:"runtime"},o)),n.element){var s=n.element,c=function(t){var e;return{tag:t.tagName,id:t.id||void 0,classes:t.className||void 0,text:(null==(e=t.innerText)?void 0:e.slice(0,100))||void 0}}(s);this.wt("product tour step shown",l({$product_tour_id:this.st.id,$product_tour_step_id:e.id,$product_tour_step_order:this.ct,$product_tour_step_selector:e.selector,$product_tour_step_selector_found:!0,$product_tour_step_element_tag:c.tag,$product_tour_step_element_id:c.id,$product_tour_step_element_classes:c.classes,$product_tour_step_element_text:c.text},o)),this.ft=!1,this.Dt(s)}}else Xr.warn("Unable to render element step - no selector defined.")}else e.survey?this.Ot():Xr.warn("Unable to render survey step - survey data not found")}}Dt(t,e,r){if(this.st){var n=this.st.steps[this.ct],{shadow:o}=nn(this.st);F(gr(jr,{tour:this.st,step:n,stepIndex:this.ct,totalSteps:this.st.steps.length,targetElement:t,onNext:this.nextStep,onPrevious:this.previousStep,onDismiss:r||this.dismissTour,onSurveySubmit:e}),o)}}Ot(){var t,e,r;if(this.st){var n=this.st.id,o=this.st.steps[this.ct],i=o.linkedSurveyId,u=o.linkedSurveyQuestionId,a=(null==(t=o.survey)?void 0:t.questionText)||"";this.wt("product tour step shown",{$product_tour_id:this.st.id,$product_tour_step_id:o.id,$product_tour_step_order:this.ct,$product_tour_step_type:"survey",$product_tour_linked_survey_id:i}),this.wt(V.SHOWN,{[B.SURVEY_ID]:i,[B.PRODUCT_TOUR_ID]:n,sessionRecordingUrl:null==(e=(r=this._instance).get_session_replay_url)?void 0:e.call(r)});this.Dt(null,(t=>{var e,r,o=u?"$survey_response_"+u:"$survey_response";this.wt(V.SENT,l({[B.SURVEY_ID]:i,[B.PRODUCT_TOUR_ID]:n,[B.SURVEY_QUESTIONS]:[{id:u,question:a,response:t}],[B.SURVEY_COMPLETED]:!0,sessionRecordingUrl:null==(e=(r=this._instance).get_session_replay_url)?void 0:e.call(r)},!ne(t)&&{[o]:t})),Xr.info("Survey "+i+" completed",ne(t)?"(skipped)":"with response: "+t),this.nextStep()}),(t=>{var e,r;this.wt(V.DISMISSED,{[B.SURVEY_ID]:i,[B.PRODUCT_TOUR_ID]:n,[B.SURVEY_QUESTIONS]:[{id:u,question:a,response:null}],[B.SURVEY_PARTIALLY_COMPLETED]:!1,sessionRecordingUrl:null==(e=(r=this._instance).get_session_replay_url)?void 0:e.call(r)}),Xr.info("Survey "+i+" dismissed"),this.dismissTour(t)})),Xr.info("Rendered survey step for tour step "+this.ct)}}St(){var t,e,r;this.st&&(t=this.st.id,e=en+"-"+t,null!=(r=Gr.querySelector("."+e))&&r.shadowRoot&&F(null,r.shadowRoot),null==r||r.remove()),this.st=null,this.ct=0,this.dt=!1,this.ft=!1,this.Mt()}zt(t,e){var r=Gr.querySelector(e),n=this.vt.get(t.id);if(r){if(n){if(r===n.element)return;Xr.info("Trigger element changed for tour "+t.id+". Re-attaching listener."),this.Pt(t.id)}if(!r.hasAttribute(rn)){var o=r=>{r.stopPropagation(),this.st?Xr.info("Tour "+t.id+" trigger clicked but another tour is active"):Kr(t)?(Xr.info("Tour "+t.id+" triggered by click on "+e),this.showTour(t,{reason:"trigger"})):Xr.warn("Tour "+t.id+" trigger clicked, but tour is not launched - not showing tour.")};fe(r,"click",o),r.setAttribute(rn,t.id),this.vt.set(t.id,{element:r,listener:o,tour:t}),Xr.info("Attached trigger listener for tour "+t.id+" on "+e)}}else n&&this.Pt(t.id)}Pt(t){var e=this.vt.get(t);e&&(e.element.removeEventListener("click",e.listener),e.element.removeAttribute(rn),this.vt.delete(t),Xr.info("Removed trigger listener for tour "+t))}It(){this.vt.forEach(((t,e)=>{this.Pt(e)}))}wt(t,e){this.dt||this._instance.capture(t,e)}getActiveProductTours(t){var e;null==(e=this._instance.productTours)||e.getProductTours(((e,r)=>{if(null!=r&&r.isLoaded){var n=e.filter((t=>this.Rt(t)));t(n,r)}else t([],r)}))}resetTour(t){Rr.m(""+Dr+t),Rr.m(""+Or+t)}resetAllTours(){var t=null==Jr?void 0:Jr.localStorage;if(t){for(var e=[],r=0;r<t.length;r++){var n=t.key(r);(null!=n&&n.startsWith(Dr)||null!=n&&n.startsWith(Or))&&e.push(n)}e.forEach((t=>Rr.m(t)))}}cancelPendingTour(t){var e=this.bt.get(t);e&&(clearTimeout(e),this.bt.delete(t),Xr.info("Cancelled pending tour: "+t))}jt(){this.bt.forEach((t=>clearTimeout(t))),this.bt.clear()}isTourPending(t){return this.bt.has(t)}queueTourWithDelay(t,e,r){Xr.info("Queueing tour "+t+" with "+e+"s delay");var n=setTimeout((()=>{this.bt.delete(t),Xr.info("Delay elapsed for tour "+t+", showing now"),this.showTourById(t,r)}),1e3*e);this.bt.set(t,n)}}function ln(t,e){if(o){var r=new on(t);return e&&r.start(),r}}i.__PosthogExtensions__=i.__PosthogExtensions__||{},i.__PosthogExtensions__.generateProductTours=ln,t.default=ln,t.elementIsVisible=dr,t.findElement=vr,t.getElementPath=function(t,e){if(void 0===e&&(e=4),!t)return null;for(var r=[],n=t;n&&r.length<e&&"BODY"!==n.tagName;){var o=n.tagName.toLowerCase();n.id?o+="#"+n.id:n.classList.length&&(o+="."+n.classList[0]),r.unshift(o),n=n.parentElement}return r.join(" > ")},Object.defineProperty(t,"__esModule",{value:!0})}({});
2
2
  //# sourceMappingURL=product-tours.js.map