posthog-js 1.351.2 → 1.351.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/array.full.es5.js +1 -1
- package/dist/array.full.js +1 -1
- package/dist/array.full.no-external.js +1 -1
- package/dist/array.js +1 -1
- package/dist/array.no-external.js +1 -1
- package/dist/customizations.full.js +1 -1
- package/dist/lazy-recorder.js +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/module.d.ts +3 -0
- package/dist/module.full.d.ts +3 -0
- package/dist/module.full.js +1 -1
- package/dist/module.full.js.map +1 -1
- package/dist/module.full.no-external.d.ts +3 -0
- package/dist/module.full.no-external.js +1 -1
- package/dist/module.full.no-external.js.map +1 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/dist/module.no-external.d.ts +3 -0
- package/dist/module.no-external.js +1 -1
- package/dist/module.no-external.js.map +1 -1
- package/dist/posthog-recorder.js +1 -1
- package/dist/product-tours-preview.d.ts +3 -0
- package/dist/product-tours-preview.js +1 -1
- package/dist/product-tours-preview.js.map +1 -1
- package/dist/product-tours.js +1 -1
- package/dist/product-tours.js.map +1 -1
- package/dist/src/extensions/product-tours/components/ProductTourBanner.d.ts +1 -1
- package/dist/src/posthog-product-tours-types.d.ts +3 -0
- package/dist/surveys-preview.d.ts +3 -0
- package/lib/package.json +1 -1
- package/lib/src/extensions/product-tours/components/ProductTourBanner.d.ts +1 -1
- package/lib/src/extensions/product-tours/components/ProductTourBanner.js +15 -1
- package/lib/src/extensions/product-tours/components/ProductTourBanner.js.map +1 -1
- package/lib/src/extensions/product-tours/product-tours.js +4 -0
- package/lib/src/extensions/product-tours/product-tours.js.map +1 -1
- package/lib/src/posthog-product-tours-types.d.ts +3 -0
- package/lib/src/posthog-product-tours-types.js.map +1 -1
- package/package.json +2 -2
package/dist/product-tours.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t){"use strict";var r="undefined"!=typeof window?window:void 0,e="undefined"!=typeof globalThis?globalThis:r;"undefined"==typeof self&&(e.self=e),"undefined"==typeof File&&(e.File=function(){});var n=Array.prototype.forEach,o=null==e?void 0:e.navigator,i=null==e?void 0:e.document;null==e||e.location,null==e||e.fetch,null!=e&&e.XMLHttpRequest&&"withCredentials"in new e.XMLHttpRequest&&e.XMLHttpRequest,null==e||e.AbortController,null==o||o.userAgent;var l=null!=r?r:{};function a(){return a=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},a.apply(null,arguments)}var u,s,c,h,f,d,p,v,m,g,b,y,_={},w=[],x=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,k=Array.isArray;function T(t,r){for(var e in r)t[e]=r[e];return t}function C(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function S(t,r,e,n,o){var i={type:t,props:r,key:e,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++c:o,__i:-1,__u:0};return null==o&&null!=s.vnode&&s.vnode(i),i}function q(t){return t.children}function M(t,r){this.props=t,this.context=r}function A(t,r){if(null==r)return t.__?A(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?A(t):null}function L(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 L(t)}}function E(t){(!t.__d&&(t.__d=!0)&&h.push(t)&&!$.__r++||f!=s.debounceRendering)&&((f=s.debounceRendering)||d)($)}function $(){for(var t,r,e,n,o,i,l,a=1;h.length;)h.length>a&&h.sort(p),t=h.shift(),a=h.length,t.__d&&(e=void 0,n=void 0,o=(n=(r=t).__v).__e,i=[],l=[],r.__P&&((e=T({},n)).__v=n.__v+1,s.vnode&&s.vnode(e),Z(r.__P,e,n,r.__n,r.__P.namespaceURI,32&n.__u?[o]:null,i,null==o?A(n):o,!!(32&n.__u),l),e.__v=n.__v,e.__.__k[e.__i]=e,N(i,e,l),n.__e=n.__=null,e.__e!=o&&L(e)));$.__r=0}function I(t,r,e,n,o,i,l,a,u,s,c){var h,f,d,p,v,m,g,b=n&&n.__k||w,y=r.length;for(u=function(t,r,e,n,o){var i,l,a,u,s,c=e.length,h=c,f=0;for(t.__k=new Array(o),i=0;i<o;i++)null!=(l=r[i])&&"boolean"!=typeof l&&"function"!=typeof l?("string"==typeof l||"number"==typeof l||"bigint"==typeof l||l.constructor==String?l=t.__k[i]=S(null,l,null,null,null):k(l)?l=t.__k[i]=S(q,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?l=t.__k[i]=S(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):t.__k[i]=l,u=i+f,l.__=t,l.__b=t.__b+1,a=null,-1!=(s=l.__i=z(l,e,u,h))&&(h--,(a=e[s])&&(a.__u|=2)),null==a||null==a.__v?(-1==s&&(o>c?f--:o<c&&f++),"function"!=typeof l.type&&(l.__u|=4)):s!=u&&(s==u-1?f--:s==u+1?f++:(s>u?f--:f++,l.__u|=4))):t.__k[i]=null;if(h)for(i=0;i<c;i++)null!=(a=e[i])&&0==(2&a.__u)&&(a.__e==n&&(n=A(a)),B(a,a));return n}(e,r,b,u,y),h=0;h<y;h++)null!=(d=e.__k[h])&&(f=-1==d.__i?_:b[d.__i]||_,d.__i=h,m=Z(t,d,f,o,i,l,a,u,s,c),p=d.__e,d.ref&&f.ref!=d.ref&&(f.ref&&V(f.ref,null,d),c.push(d.ref,d.__c||p,d)),null==v&&null!=p&&(v=p),(g=!!(4&d.__u))||f.__k===d.__k?u=j(d,u,t,g):"function"==typeof d.type&&void 0!==m?u=m:p&&(u=p.nextSibling),d.__u&=-7);return e.__e=v,u}function j(t,r,e,n){var o,i;if("function"==typeof t.type){for(o=t.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=t,r=j(o[i],r,e,n));return r}t.__e!=r&&(n&&(r&&t.type&&!r.parentNode&&(r=A(t)),e.insertBefore(t.__e,r||null)),r=t.__e);do{r=r&&r.nextSibling}while(null!=r&&8==r.nodeType);return r}function z(t,r,e,n){var o,i,l,a=t.key,u=t.type,s=r[e],c=null!=s&&0==(2&s.__u);if(null===s&&null==a||c&&a==s.key&&u==s.type)return e;if(n>(c?1:0))for(o=e-1,i=e+1;o>=0||i<r.length;)if(null!=(s=r[l=o>=0?o--:i++])&&0==(2&s.__u)&&a==s.key&&u==s.type)return l;return-1}function R(t,r,e){"-"==r[0]?t.setProperty(r,null==e?"":e):t[r]=null==e?"":"number"!=typeof e||x.test(r)?e:e+"px"}function O(t,r,e,n,o){var i,l;t:if("style"==r)if("string"==typeof e)t.style.cssText=e;else{if("string"==typeof n&&(t.style.cssText=n=""),n)for(r in n)e&&r in e||R(t.style,r,"");if(e)for(r in e)n&&e[r]==n[r]||R(t.style,r,e[r])}else if("o"==r[0]&&"n"==r[1])i=r!=(r=r.replace(v,"$1")),l=r.toLowerCase(),r=l in t||"onFocusOut"==r||"onFocusIn"==r?l.slice(2):r.slice(2),t.l||(t.l={}),t.l[r+i]=e,e?n?e.u=n.u:(e.u=m,t.addEventListener(r,i?b:g,i)):t.removeEventListener(r,i?b:g,i);else{if("http://www.w3.org/2000/svg"==o)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&&"popover"!=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,"popover"==r&&1==e?"":e))}}function P(t){return function(r){if(this.l){var e=this.l[r.type+t];if(null==r.t)r.t=m++;else if(r.t<e.u)return;return e(s.event?s.event(r):r)}}}function Z(t,r,e,n,o,i,l,a,u,c){var h,f,d,p,v,m,g,b,y,_,w,$,x,S,A,L,E,j=r.type;if(void 0!==r.constructor)return null;128&e.__u&&(u=!!(32&e.__u),i=[a=r.__e=e.__e]),(h=s.__b)&&h(r);t:if("function"==typeof j)try{if(b=r.props,y="prototype"in j&&j.prototype.render,_=(h=j.contextType)&&n[h.__c],w=h?_?_.props.value:h.__:n,e.__c?g=(f=r.__c=e.__c).__=f.__E:(y?r.__c=f=new j(b,w):(r.__c=f=new M(b,w),f.constructor=j,f.render=U),_&&_.sub(f),f.state||(f.state={}),f.__n=n,d=f.__d=!0,f.__h=[],f._sb=[]),y&&null==f.__s&&(f.__s=f.state),y&&null!=j.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=T({},f.__s)),T(f.__s,j.getDerivedStateFromProps(b,f.__s))),p=f.props,v=f.state,f.__v=r,d)y&&null==j.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),y&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(y&&null==j.getDerivedStateFromProps&&b!==p&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(b,w),r.__v==e.__v||!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(b,f.__s,w)){for(r.__v!=e.__v&&(f.props=b,f.state=f.__s,f.__d=!1),r.__e=e.__e,r.__k=e.__k,r.__k.some((function(t){t&&(t.__=r)})),$=0;$<f._sb.length;$++)f.__h.push(f._sb[$]);f._sb=[],f.__h.length&&l.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(b,f.__s,w),y&&null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(p,v,m)}))}if(f.context=w,f.props=b,f.__P=t,f.__e=!1,x=s.__r,S=0,y){for(f.state=f.__s,f.__d=!1,x&&x(r),h=f.render(f.props,f.state,f.context),A=0;A<f._sb.length;A++)f.__h.push(f._sb[A]);f._sb=[]}else do{f.__d=!1,x&&x(r),h=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=T(T({},n),f.getChildContext())),y&&!d&&null!=f.getSnapshotBeforeUpdate&&(m=f.getSnapshotBeforeUpdate(p,v)),L=h,null!=h&&h.type===q&&null==h.key&&(L=F(h.props.children)),a=I(t,k(L)?L:[L],r,e,n,o,i,l,a,u,c),f.base=r.__e,r.__u&=-161,f.__h.length&&l.push(f),g&&(f.__E=f.__=null)}catch(t){if(r.__v=null,u||null!=i)if(t.then){for(r.__u|=u?160:128;a&&8==a.nodeType&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,r.__e=a}else{for(E=i.length;E--;)C(i[E]);D(r)}else r.__e=e.__e,r.__k=e.__k,t.then||D(r);s.__e(t,r,e)}else null==i&&r.__v==e.__v?(r.__k=e.__k,r.__e=e.__e):a=r.__e=H(e.__e,r,e,n,o,i,l,u,c);return(h=s.diffed)&&h(r),128&r.__u?void 0:a}function D(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(D)}function N(t,r,e){for(var n=0;n<e.length;n++)V(e[n],e[++n],e[++n]);s.__c&&s.__c(r,t),t.some((function(r){try{t=r.__h,r.__h=[],t.some((function(t){t.call(r)}))}catch(t){s.__e(t,r.__v)}}))}function F(t){return"object"!=typeof t||null==t||t.__b&&t.__b>0?t:k(t)?t.map(F):T({},t)}function H(t,r,e,n,o,i,l,a,c){var h,f,d,p,v,m,g,b=e.props||_,y=r.props,w=r.type;if("svg"==w?o="http://www.w3.org/2000/svg":"math"==w?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(h=0;h<i.length;h++)if((v=i[h])&&"setAttribute"in v==!!w&&(w?v.localName==w:3==v.nodeType)){t=v,i[h]=null;break}if(null==t){if(null==w)return document.createTextNode(y);t=document.createElementNS(o,w,y.is&&y),a&&(s.__m&&s.__m(r,i),a=!1),i=null}if(null==w)b===y||a&&t.data==y||(t.data=y);else{if(i=i&&u.call(t.childNodes),!a&&null!=i)for(b={},h=0;h<t.attributes.length;h++)b[(v=t.attributes[h]).name]=v.value;for(h in b)if(v=b[h],"children"==h);else if("dangerouslySetInnerHTML"==h)d=v;else if(!(h in y)){if("value"==h&&"defaultValue"in y||"checked"==h&&"defaultChecked"in y)continue;O(t,h,null,v,o)}for(h in y)v=y[h],"children"==h?p=v:"dangerouslySetInnerHTML"==h?f=v:"value"==h?m=v:"checked"==h?g=v:a&&"function"!=typeof v||b[h]===v||O(t,h,v,b[h],o);if(f)a||d&&(f.__html==d.__html||f.__html==t.innerHTML)||(t.innerHTML=f.__html),r.__k=[];else if(d&&(t.innerHTML=""),I("template"==r.type?t.content:t,k(p)?p:[p],r,e,n,"foreignObject"==w?"http://www.w3.org/1999/xhtml":o,i,l,i?i[0]:e.__k&&A(e,0),a,c),null!=i)for(h=i.length;h--;)C(i[h]);a||(h="value","progress"==w&&null==m?t.removeAttribute("value"):null!=m&&(m!==t[h]||"progress"==w&&!m||"option"==w&&m!=b[h])&&O(t,h,m,b[h],o),h="checked",null!=g&&g!=t[h]&&O(t,h,g,b[h],o))}return t}function V(t,r,e){try{if("function"==typeof t){var n="function"==typeof t.__u;n&&t.__u(),n&&null==r||(t.__u=t(r))}else t.current=r}catch(t){s.__e(t,e)}}function B(t,r,e){var n,o;if(s.unmount&&s.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||V(n,null,r)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){s.__e(t,r)}n.base=n.__P=null}if(n=t.__k)for(o=0;o<n.length;o++)n[o]&&B(n[o],r,e||"function"!=typeof t.type);e||C(t.__e),t.__c=t.__=t.__e=void 0}function U(t,r,e){return this.constructor(t,e)}function Q(t,r,e){var n,o,i;r==document&&(r=document.documentElement),s.__&&s.__(t,r),n=!1?null:r.__k,o=[],i=[],Z(r,t=r.__k=function(t,r,e){var n,o,i,l={};for(i in r)"key"==i?n=r[i]:"ref"==i?o=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 S(t,l,n,o,null)}(q,null,[t]),n||_,_,r.namespaceURI,n?null:r.firstChild?u.call(r.childNodes):null,o,n?n.__e:r.firstChild,false,i),N(o,t,i)}u=w.slice,s={__e:function(t,r,e,n){for(var o,i,l;r=r.__;)if((o=r.__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(r){t=r}throw t}},c=0,M.prototype.setState=function(t,r){var e;e=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=T({},this.state),"function"==typeof t&&(t=t(T({},e),this.props)),t&&T(e,t),null!=t&&this.__v&&(r&&this._sb.push(r),E(this))},M.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),E(this))},M.prototype.render=q,h=[],d="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,p=function(t,r){return t.__v.__b-r.__v.__b},$.__r=0,v=/(PointerCapture)$|Capture$/i,m=0,g=P(!1),b=P(!0),y=0;var W={backgroundColor:"#ffffff",textColor:"#1d1f27",buttonColor:"#1d1f27",borderRadius:8,buttonBorderRadius:6,borderColor:"#e5e7eb",fontFamily:"system-ui",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",showOverlay:!0,whiteLabel:!1,dismissOnClickOutside:!0,zIndex:2147483646},Y=function(t){return t.SHOWN="product tour shown",t.DISMISSED="product tour dismissed",t.COMPLETED="product tour completed",t.STEP_SHOWN="product tour step shown",t.STEP_COMPLETED="product tour step completed",t.BUTTON_CLICKED="product tour button clicked",t.STEP_SELECTOR_FAILED="product tour step selector failed",t.BANNER_CONTAINER_SELECTOR_FAILED="product tour banner container selector failed",t.BANNER_ACTION_CLICKED="product tour banner action clicked",t}({}),X=function(t){return t.TOUR_ID="$product_tour_id",t.TOUR_NAME="$product_tour_name",t.TOUR_ITERATION="$product_tour_iteration",t.TOUR_RENDER_REASON="$product_tour_render_reason",t.TOUR_STEP_ID="$product_tour_step_id",t.TOUR_STEP_ORDER="$product_tour_step_order",t.TOUR_STEP_TYPE="$product_tour_step_type",t.TOUR_DISMISS_REASON="$product_tour_dismiss_reason",t.TOUR_BUTTON_TEXT="$product_tour_button_text",t.TOUR_BUTTON_ACTION="$product_tour_button_action",t.TOUR_BUTTON_LINK="$product_tour_button_link",t.TOUR_BUTTON_TOUR_ID="$product_tour_button_tour_id",t.TOUR_STEPS_COUNT="$product_tour_steps_count",t.TOUR_STEP_SELECTOR="$product_tour_step_selector",t.TOUR_STEP_SELECTOR_FOUND="$product_tour_step_selector_found",t.TOUR_STEP_ELEMENT_TAG="$product_tour_step_element_tag",t.TOUR_STEP_ELEMENT_ID="$product_tour_step_element_id",t.TOUR_STEP_ELEMENT_CLASSES="$product_tour_step_element_classes",t.TOUR_STEP_ELEMENT_TEXT="$product_tour_step_element_text",t.TOUR_ERROR="$product_tour_error",t.TOUR_MATCHES_COUNT="$product_tour_matches_count",t.TOUR_FAILURE_PHASE="$product_tour_failure_phase",t.TOUR_WAITED_FOR_ELEMENT="$product_tour_waited_for_element",t.TOUR_WAIT_DURATION_MS="$product_tour_wait_duration_ms",t.TOUR_BANNER_SELECTOR="$product_tour_banner_selector",t.TOUR_LINKED_SURVEY_ID="$product_tour_linked_survey_id",t.USE_MANUAL_SELECTOR="$use_manual_selector",t.INFERENCE_DATA_PRESENT="$inference_data_present",t}({}),G=function(t){return t.Activation="events",t.Cancellation="cancelEvents",t}({}),K=function(t){return t.Button="button",t.Tab="tab",t.Selector="selector",t}({}),J=function(t){return t.TopLeft="top_left",t.TopRight="top_right",t.TopCenter="top_center",t.MiddleLeft="middle_left",t.MiddleRight="middle_right",t.MiddleCenter="middle_center",t.Left="left",t.Center="center",t.Right="right",t.NextToTrigger="next_to_trigger",t}({}),tt=function(t){return t.Popover="popover",t.API="api",t.Widget="widget",t.ExternalSurvey="external_survey",t}({}),rt=function(t){return t.SHOWN="survey shown",t.DISMISSED="survey dismissed",t.SENT="survey sent",t.ABANDONED="survey abandoned",t}({}),et=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:nt,setPrototypeOf:ot,isFrozen:it,getPrototypeOf:lt,getOwnPropertyDescriptor:at}=Object,{freeze:ut,seal:st,create:ct}=Object,{apply:ht,construct:ft}="undefined"!=typeof Reflect&&Reflect;ut||(ut=function(t){return t}),st||(st=function(t){return t}),ht||(ht=function(t,r){for(var e=arguments.length,n=new Array(e>2?e-2:0),o=2;o<e;o++)n[o-2]=arguments[o];return t.apply(r,n)}),ft||(ft=function(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),n=1;n<r;n++)e[n-1]=arguments[n];return new t(...e)});var dt,pt=Mt(Array.prototype.forEach),vt=Mt(Array.prototype.lastIndexOf),mt=Mt(Array.prototype.pop),gt=Mt(Array.prototype.push),bt=Mt(Array.prototype.splice),yt=Mt(String.prototype.toLowerCase),_t=Mt(String.prototype.toString),wt=Mt(String.prototype.match),xt=Mt(String.prototype.replace),kt=Mt(String.prototype.indexOf),Tt=Mt(String.prototype.trim),Ct=Mt(Object.prototype.hasOwnProperty),St=Mt(RegExp.prototype.test),qt=(dt=TypeError,function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return ft(dt,r)});function Mt(t){return function(r){r instanceof RegExp&&(r.lastIndex=0);for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return ht(t,r,n)}}function At(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yt;ot&&ot(t,null);for(var n=r.length;n--;){var o=r[n];if("string"==typeof o){var i=e(o);i!==o&&(it(r)||(r[n]=i),o=i)}t[o]=!0}return t}function Lt(t){for(var r=0;r<t.length;r++){Ct(t,r)||(t[r]=null)}return t}function Et(t){var r=ct(null);for(var[e,n]of nt(t)){Ct(t,e)&&(Array.isArray(n)?r[e]=Lt(n):n&&"object"==typeof n&&n.constructor===Object?r[e]=Et(n):r[e]=n)}return r}function It(t,r){for(;null!==t;){var e=at(t,r);if(e){if(e.get)return Mt(e.get);if("function"==typeof e.value)return Mt(e.value)}t=lt(t)}return function(){return null}}var jt=ut(["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"]),zt=ut(["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"]),$t=ut(["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"]),Rt=ut(["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"]),Ot=ut(["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"]),Pt=ut(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Zt=ut(["#text"]),Dt=ut(["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"]),Nt=ut(["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"]),Ft=ut(["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"]),Ht=ut(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Vt=st(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Bt=st(/<%[\w\W]*|[\w\W]*%>/gm),Ut=st(/\$\{[\w\W]*/gm),Qt=st(/^data-[\-\w.\u00B7-\uFFFF]+$/),Wt=st(/^aria-[\-\w]+$/),Yt=st(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Xt=st(/^(?:\w+script|data):/i),Gt=st(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Kt=st(/^html$/i),Jt=st(/^[a-z][.\w]*(-[.\w]+)+$/i),tr=Object.freeze({__proto__:null,ARIA_ATTR:Wt,ATTR_WHITESPACE:Gt,CUSTOM_ELEMENT:Jt,DATA_ATTR:Qt,DOCTYPE_NAME:Kt,ERB_EXPR:Bt,IS_ALLOWED_URI:Yt,IS_SCRIPT_OR_DATA:Xt,MUSTACHE_EXPR:Vt,TMPLIT_EXPR:Ut}),rr=1,er=3,nr=7,or=8,ir=9,lr=function(){return"undefined"==typeof window?null:window};var ar=function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lr(),e=r=>t(r);if(e.version="3.3.1",e.removed=[],!r||!r.document||r.document.nodeType!==ir||!r.Element)return e.isSupported=!1,e;var n,{document:o}=r,i=o,l=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:u,Node:s,Element:c,NodeFilter:h,NamedNodeMap:f=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:d,DOMParser:p,trustedTypes:v}=r,m=c.prototype,g=It(m,"cloneNode"),b=It(m,"remove"),y=It(m,"nextSibling"),_=It(m,"childNodes"),w=It(m,"parentNode");if("function"==typeof u){var x=o.createElement("template");x.content&&x.content.ownerDocument&&(o=x.content.ownerDocument)}var k="",{implementation:T,createNodeIterator:C,createDocumentFragment:S,getElementsByTagName:q}=o,{importNode:M}=i,A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};e.isSupported="function"==typeof nt&&"function"==typeof w&&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:O,CUSTOM_ELEMENT:P}=tr,{IS_ALLOWED_URI:Z}=tr,D=null,N=At({},[...jt,...zt,...$t,...Ot,...Zt]),F=null,H=At({},[...Dt,...Nt,...Ft,...Ht]),V=Object.seal(ct(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,U=null,Q=Object.seal(ct(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),W=!0,Y=!0,X=!1,G=!0,K=!1,J=!0,tt=!1,rt=!1,et=!1,ot=!1,it=!1,lt=!1,at=!0,st=!1,ht=!0,ft=!1,dt={},Mt=null,Lt=At({},["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"]),Vt=null,Bt=At({},["audio","video","img","source","image","track"]),Ut=null,Qt=At({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Wt="http://www.w3.org/1998/Math/MathML",Xt="http://www.w3.org/2000/svg",Gt="http://www.w3.org/1999/xhtml",Jt=Gt,ar=!1,ur=null,sr=At({},[Wt,Xt,Gt],_t),cr=At({},["mi","mo","mn","ms","mtext"]),hr=At({},["annotation-xml"]),fr=At({},["title","style","font","a","script"]),dr=null,pr=["application/xhtml+xml","text/html"],vr=null,mr=null,gr=o.createElement("form"),br=function(t){return t instanceof RegExp||t instanceof Function},yr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!mr||mr!==t){if(t&&"object"==typeof t||(t={}),t=Et(t),dr=-1===pr.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,vr="application/xhtml+xml"===dr?_t:yt,D=Ct(t,"ALLOWED_TAGS")?At({},t.ALLOWED_TAGS,vr):N,F=Ct(t,"ALLOWED_ATTR")?At({},t.ALLOWED_ATTR,vr):H,ur=Ct(t,"ALLOWED_NAMESPACES")?At({},t.ALLOWED_NAMESPACES,_t):sr,Ut=Ct(t,"ADD_URI_SAFE_ATTR")?At(Et(Qt),t.ADD_URI_SAFE_ATTR,vr):Qt,Vt=Ct(t,"ADD_DATA_URI_TAGS")?At(Et(Bt),t.ADD_DATA_URI_TAGS,vr):Bt,Mt=Ct(t,"FORBID_CONTENTS")?At({},t.FORBID_CONTENTS,vr):Lt,B=Ct(t,"FORBID_TAGS")?At({},t.FORBID_TAGS,vr):Et({}),U=Ct(t,"FORBID_ATTR")?At({},t.FORBID_ATTR,vr):Et({}),dt=!!Ct(t,"USE_PROFILES")&&t.USE_PROFILES,W=!1!==t.ALLOW_ARIA_ATTR,Y=!1!==t.ALLOW_DATA_ATTR,X=t.ALLOW_UNKNOWN_PROTOCOLS||!1,G=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,K=t.SAFE_FOR_TEMPLATES||!1,J=!1!==t.SAFE_FOR_XML,tt=t.WHOLE_DOCUMENT||!1,ot=t.RETURN_DOM||!1,it=t.RETURN_DOM_FRAGMENT||!1,lt=t.RETURN_TRUSTED_TYPE||!1,et=t.FORCE_BODY||!1,at=!1!==t.SANITIZE_DOM,st=t.SANITIZE_NAMED_PROPS||!1,ht=!1!==t.KEEP_CONTENT,ft=t.IN_PLACE||!1,Z=t.ALLOWED_URI_REGEXP||Yt,Jt=t.NAMESPACE||Gt,cr=t.MATHML_TEXT_INTEGRATION_POINTS||cr,hr=t.HTML_INTEGRATION_POINTS||hr,V=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&br(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&br(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),K&&(Y=!1),it&&(ot=!0),dt&&(D=At({},Zt),F=[],!0===dt.html&&(At(D,jt),At(F,Dt)),!0===dt.svg&&(At(D,zt),At(F,Nt),At(F,Ht)),!0===dt.svgFilters&&(At(D,$t),At(F,Nt),At(F,Ht)),!0===dt.mathMl&&(At(D,Ot),At(F,Ft),At(F,Ht))),t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?Q.tagCheck=t.ADD_TAGS:(D===N&&(D=Et(D)),At(D,t.ADD_TAGS,vr))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?Q.attributeCheck=t.ADD_ATTR:(F===H&&(F=Et(F)),At(F,t.ADD_ATTR,vr))),t.ADD_URI_SAFE_ATTR&&At(Ut,t.ADD_URI_SAFE_ATTR,vr),t.FORBID_CONTENTS&&(Mt===Lt&&(Mt=Et(Mt)),At(Mt,t.FORBID_CONTENTS,vr)),t.ADD_FORBID_CONTENTS&&(Mt===Lt&&(Mt=Et(Mt)),At(Mt,t.ADD_FORBID_CONTENTS,vr)),ht&&(D["#text"]=!0),tt&&At(D,["html","head","body"]),D.table&&(At(D,["tbody"]),delete B.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw qt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw qt('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,r){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;var e=null,n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(e=r.getAttribute(n));var o="dompurify"+(e?"#"+e:"");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(""));ut&&ut(t),mr=t}},_r=At({},[...zt,...$t,...Rt]),wr=At({},[...Ot,...Pt]),xr=function(t){gt(e.removed,{element:t});try{w(t).removeChild(t)}catch(r){b(t)}},kr=function(t,r){try{gt(e.removed,{attribute:r.getAttributeNode(t),from:r})}catch(t){gt(e.removed,{attribute:null,from:r})}if(r.removeAttribute(t),"is"===t)if(ot||it)try{xr(r)}catch(t){}else try{r.setAttribute(t,"")}catch(t){}},Tr=function(t){var r=null,e=null;if(et)t="<remove></remove>"+t;else{var i=wt(t,/^[\r\n\t ]+/);e=i&&i[0]}"application/xhtml+xml"===dr&&Jt===Gt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var l=n?n.createHTML(t):t;if(Jt===Gt)try{r=(new p).parseFromString(l,dr)}catch(t){}if(!r||!r.documentElement){r=T.createDocument(Jt,"template",null);try{r.documentElement.innerHTML=ar?k:l}catch(t){}}var a=r.body||r.documentElement;return t&&e&&a.insertBefore(o.createTextNode(e),a.childNodes[0]||null),Jt===Gt?q.call(r,tt?"html":"body")[0]:tt?r.documentElement:a},Cr=function(t){return C.call(t.ownerDocument||t,t,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Sr=function(t){return t instanceof d&&("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)},qr=function(t){return"function"==typeof s&&t instanceof s};function Mr(t,r,n){pt(t,(t=>{t.call(e,r,n,mr)}))}var Ar=function(t){var r=null;if(Mr(A.beforeSanitizeElements,t,null),Sr(t))return xr(t),!0;var n=vr(t.nodeName);if(Mr(A.uponSanitizeElement,t,{tagName:n,allowedTags:D}),J&&t.hasChildNodes()&&!qr(t.firstElementChild)&&St(/<[/\w!]/g,t.innerHTML)&&St(/<[/\w!]/g,t.textContent))return xr(t),!0;if(t.nodeType===nr)return xr(t),!0;if(J&&t.nodeType===or&&St(/<[/\w]/g,t.data))return xr(t),!0;if(!(Q.tagCheck instanceof Function&&Q.tagCheck(n))&&(!D[n]||B[n])){if(!B[n]&&Er(n)){if(V.tagNameCheck instanceof RegExp&&St(V.tagNameCheck,n))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(n))return!1}if(ht&&!Mt[n]){var o=w(t)||t.parentNode,i=_(t)||t.childNodes;if(i&&o)for(var l=i.length-1;l>=0;--l){var a=g(i[l],!0);a.__removalCount=(t.__removalCount||0)+1,o.insertBefore(a,y(t))}}return xr(t),!0}return t instanceof c&&!function(t){var r=w(t);r&&r.tagName||(r={namespaceURI:Jt,tagName:"template"});var e=yt(t.tagName),n=yt(r.tagName);return!!ur[t.namespaceURI]&&(t.namespaceURI===Xt?r.namespaceURI===Gt?"svg"===e:r.namespaceURI===Wt?"svg"===e&&("annotation-xml"===n||cr[n]):Boolean(_r[e]):t.namespaceURI===Wt?r.namespaceURI===Gt?"math"===e:r.namespaceURI===Xt?"math"===e&&hr[n]:Boolean(wr[e]):t.namespaceURI===Gt?!(r.namespaceURI===Xt&&!hr[n])&&!(r.namespaceURI===Wt&&!cr[n])&&!wr[e]&&(fr[e]||!_r[e]):!("application/xhtml+xml"!==dr||!ur[t.namespaceURI]))}(t)?(xr(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!St(/<\/no(script|embed|frames)/i,t.innerHTML)?(K&&t.nodeType===er&&(r=t.textContent,pt([L,E,I],(t=>{r=xt(r,t," ")})),t.textContent!==r&&(gt(e.removed,{element:t.cloneNode()}),t.textContent=r)),Mr(A.afterSanitizeElements,t,null),!1):(xr(t),!0)},Lr=function(t,r,e){if(at&&("id"===r||"name"===r)&&(e in o||e in gr))return!1;if(Y&&!U[r]&&St(j,r));else if(W&&St(z,r));else if(Q.attributeCheck instanceof Function&&Q.attributeCheck(r,t));else if(!F[r]||U[r]){if(!(Er(t)&&(V.tagNameCheck instanceof RegExp&&St(V.tagNameCheck,t)||V.tagNameCheck instanceof Function&&V.tagNameCheck(t))&&(V.attributeNameCheck instanceof RegExp&&St(V.attributeNameCheck,r)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(r,t))||"is"===r&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&St(V.tagNameCheck,e)||V.tagNameCheck instanceof Function&&V.tagNameCheck(e))))return!1}else if(Ut[r]);else if(St(Z,xt(e,O,"")));else if("src"!==r&&"xlink:href"!==r&&"href"!==r||"script"===t||0!==kt(e,"data:")||!Vt[t]){if(X&&!St(R,xt(e,O,"")));else if(e)return!1}else;return!0},Er=function(t){return"annotation-xml"!==t&&wt(t,P)},Ir=function(t){Mr(A.beforeSanitizeAttributes,t,null);var{attributes:r}=t;if(r&&!Sr(t)){for(var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0},i=r.length,l=function(){var l=r[i],{name:a,namespaceURI:u,value:s}=l,c=vr(a),h=s,f="value"===a?h:Tt(h);if(o.attrName=c,o.attrValue=f,o.keepAttr=!0,o.forceKeepAttr=void 0,Mr(A.uponSanitizeAttribute,t,o),f=o.attrValue,!st||"id"!==c&&"name"!==c||(kr(a,t),f="user-content-"+f),J&&St(/((--!?|])>)|<\/(style|title|textarea)/i,f))return kr(a,t),0;if("attributename"===c&&wt(f,"href"))return kr(a,t),0;if(o.forceKeepAttr)return 0;if(!o.keepAttr)return kr(a,t),0;if(!G&&St(/\/>/i,f))return kr(a,t),0;K&&pt([L,E,I],(t=>{f=xt(f,t," ")}));var d=vr(t.nodeName);if(!Lr(d,c,f))return kr(a,t),0;if(n&&"object"==typeof v&&"function"==typeof v.getAttributeType)if(u);else switch(v.getAttributeType(d,c)){case"TrustedHTML":f=n.createHTML(f);break;case"TrustedScriptURL":f=n.createScriptURL(f)}if(f!==h)try{u?t.setAttributeNS(u,a,f):t.setAttribute(a,f),Sr(t)?xr(t):mt(e.removed)}catch(r){kr(a,t)}};i--;)l();Mr(A.afterSanitizeAttributes,t,null)}},jr=function t(r){var e=null,n=Cr(r);for(Mr(A.beforeSanitizeShadowDOM,r,null);e=n.nextNode();)Mr(A.uponSanitizeShadowNode,e,null),Ar(e),Ir(e),e.content instanceof a&&t(e.content);Mr(A.afterSanitizeShadowDOM,r,null)};return e.sanitize=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,l=null,u=null,c=null;if((ar=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!qr(t)){if("function"!=typeof t.toString)throw qt("toString is not a function");if("string"!=typeof(t=t.toString()))throw qt("dirty is not a string, aborting")}if(!e.isSupported)return t;if(rt||yr(r),e.removed=[],"string"==typeof t&&(ft=!1),ft){if(t.nodeName){var h=vr(t.nodeName);if(!D[h]||B[h])throw qt("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof s)(l=(o=Tr("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType===rr&&"BODY"===l.nodeName||"HTML"===l.nodeName?o=l:o.appendChild(l);else{if(!ot&&!K&&!tt&&-1===t.indexOf("<"))return n&<?n.createHTML(t):t;if(!(o=Tr(t)))return ot?null:lt?k:""}o&&et&&xr(o.firstChild);for(var f=Cr(ft?t:o);u=f.nextNode();)Ar(u),Ir(u),u.content instanceof a&&jr(u.content);if(ft)return t;if(ot){if(it)for(c=S.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(F.shadowroot||F.shadowrootmode)&&(c=M.call(i,c,!0)),c}var d=tt?o.outerHTML:o.innerHTML;return tt&&D["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&St(Kt,o.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+d),K&&pt([L,E,I],(t=>{d=xt(d,t," ")})),n&<?n.createHTML(d):d},e.setConfig=function(){yr(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),rt=!0},e.clearConfig=function(){mr=null,rt=!1},e.isValidAttribute=function(t,r,e){mr||yr({});var n=vr(t),o=vr(r);return Lr(n,o,e)},e.addHook=function(t,r){"function"==typeof r&>(A[t],r)},e.removeHook=function(t,r){if(void 0!==r){var e=vt(A[t],r);return-1===e?void 0:bt(A[t],e,1)[0]}return mt(A[t])},e.removeHooks=function(t){A[t]=[]},e.removeAllHooks=function(){A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},e}();function ur(t,r,e){return void 0===r&&(r=document),void 0===e&&(e=null),function(t,r,e,n){void 0===n&&(n=null);return t=function(t){function r(){n&&(l.length>0&&/^[~+>]$/.test(l[l.length-1])&&l.push(" "),l.push(n))}var e,n,o,i,l=[],a=[0],u=0,s=/(?:[^\\]|(?:^|[^\\])(?:\\\\)+)$/,c=/^\s+$/,h=[/\s+|\/\*|["'>~+[(]/g,/\s+|\/\*|["'[\]()]/g,/\s+|\/\*|["'[\]()]/g,null,/\*\//g];for(t=t.trim();;){if(n="",(o=h[a[a.length-1]]).lastIndex=u,!(e=o.exec(t))){n=t.substr(u),r();break}if((i=u)<(u=o.lastIndex)-e[0].length&&(n=t.substring(i,u-e[0].length)),a[a.length-1]<3){if(r(),"["===e[0])a.push(1);else if("("===e[0])a.push(2);else if(/^["']$/.test(e[0]))a.push(3),h[3]=new RegExp(e[0],"g");else if("/*"===e[0])a.push(4);else if(/^[\])]$/.test(e[0])&&a.length>0)a.pop();else if(/^(?:\s+|[~+>])$/.test(e[0])&&(l.length>0&&!c.test(l[l.length-1])&&0===a[a.length-1]&&l.push(" "),1===a[a.length-1]&&5===l.length&&"="===l[2].charAt(l[2].length-1)&&(l[4]=" "+l[4]),c.test(e[0])))continue;l.push(e[0])}else l[l.length-1]+=n,s.test(l[l.length-1])&&(4===a[a.length-1]&&(l.length<2||c.test(l[l.length-2])?l.pop():l[l.length-1]=" ",e[0]=""),a.pop()),l[l.length-1]+=e[0]}return l.join("").trim()}(t),e.querySelector(t),document.head.createShadowRoot||document.head.attachShadow?sr(t,",").reduce(((t,r)=>{var o=sr(r.replace(/^\s+/g,"").replace(/\s*([>+~]+)\s*/g,"$1")," ").filter((t=>!!t)).map((t=>sr(t,">"))),i=o.length-1,l=function(t,r,e){void 0===t&&(t=null);void 0===e&&(e=null);var n=[];if(e)n=e;else{var o=function(t){for(var r=0;r<t.length;r++){var e=t[r];n.push(e),e.shadowRoot&&o(e.shadowRoot.querySelectorAll("*"))}};r.shadowRoot&&o(r.shadowRoot.querySelectorAll("*")),o(r.querySelectorAll("*"))}return t?n.filter((r=>r.matches(t))):n}(o[i][o[i].length-1],e,n),a=function(t,r,e){return n=>{for(var o=r,i=n,l=!1;i&&!cr(i);){var a=!0;if(1===t[o].length)a=i.matches(t[o]);else{var u=[].concat(t[o]).reverse(),s=i;for(var c of u){if(!s||!s.matches(c)){a=!1;break}s=hr(s,e)}}if(a&&0===o){l=!0;break}a&&o--,i=hr(i,e)}return l}}(o,i,e);return t=t.concat(l.filter(a))}),[]):e.querySelectorAll(t)}(t,0,r,e)}function sr(t,r){return t.match(/\\?.|^$/g).reduce(((t,e)=>('"'!==e||t.sQuote?"'"!==e||t.quote?t.quote||t.sQuote||e!==r?t.a[t.a.length-1]+=e:t.a.push(""):(t.sQuote^=1,t.a[t.a.length-1]+=e):(t.quote^=1,t.a[t.a.length-1]+=e),t)),{a:[""]}).a}function cr(t){return t.nodeType===Node.DOCUMENT_FRAGMENT_NODE||t.nodeType===Node.DOCUMENT_NODE}function hr(t,r){var e=t.parentNode;return e&&e.host&&11===e.nodeType?e.host:e===r?null:e}var fr=function(t){return t.TopLeft="top_left",t.TopCenter="top_center",t.TopRight="top_right",t.MiddleLeft="middle_left",t.MiddleCenter="middle_center",t.MiddleRight="middle_right",t.Left="left",t.Right="right",t.Center="center",t}({}),dr=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}({}),pr=Array.isArray,vr=Object.prototype.toString,mr=pr||function(t){return"[object Array]"===vr.call(t)},gr=t=>void 0===t,br=t=>null===t,yr=t=>gr(t)||br(t);var _r=(t,r,e)=>{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];r((()=>{(0,e[n])(t,...i)}))}var o={info:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];n("log",...r)},warn:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];n("warn",...r)},error:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];n("error",...r)},critical:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.error(t,...n)},createLogger:n=>_r(t+" "+n,r,e)};return o};var wr,xr,kr=r,Tr=(void 0===wr&&(wr=t=>t()),_r("[Element Inference]",wr,(void 0===xr&&(xr=console),{log:xr.log.bind(xr),warn:xr.warn.bind(xr),error:xr.error.bind(xr),debug:xr.debug.bind(xr)})));function Cr(t,r){try{var e=r.get(t);if(!gr(e))return e;if(t.checkVisibility){var n=t.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0});return r.set(t,n),n}var o=kr.getComputedStyle(t);if("none"===o.display||"hidden"===o.visibility||0===parseFloat(o.opacity))return r.set(t,!1),!1;for(var i=t.parentElement;i;){var l=r.get(i);if(gr(l)){var a=kr.getComputedStyle(i),u="none"!==a.display&&"hidden"!==a.visibility;if(r.set(i,u),!u)return!1;i=i.parentElement}else{if(!l)return!1;i=i.parentElement}}var s=t.getBoundingClientRect(),c=s.width>0||s.height>0||t.getClientRects().length>0;return r.set(t,c),c}catch(t){return!0}}function Sr(t,r){var e=function(t){var r,e=null==(r=t.innerText)?void 0:r.trim();return!e||e.length>250?null:e}(t);return(null==e?void 0:e.toLowerCase())===r.toLowerCase()}function*qr(t,r,e){var n;try{n=ur(t)}catch(t){return}for(var o of n){var i=o;r&&!Sr(i,r)||Cr(i,e)&&(yield i)}}function Mr(t,r){var e=0;for(var n of t){if(e===r)return n;e++}return null}function Ar(t){try{var r=JSON.parse(t.autoData);if(!mr(null==r?void 0:r.textGroups)||!mr(null==r?void 0:r.notextGroups))return Tr.error("Invalid autoData structure:",r),null;var{text:e,excludeText:n,precision:o=1}=t,i=null!=e&&!n,l=(i?r.textGroups:r.notextGroups).sort(((t,r)=>t.cardinality-r.cardinality));if(0===l.length)return null;for(var a=Math.max(1,Math.ceil((1-o)*l.length)),u=new WeakMap,s=0;s<a;s++){var c=l[s],h=new Map,f=null,d=0;for(var{css:p,offset:v}of c.cssSelectors){var m,g=Mr(qr(p,i?e:null,u),v);if(g){var b=(null!==(m=h.get(g))&&void 0!==m?m:0)+1;if(h.set(g,b),b>d&&(d=b,f=g,b>=Math.ceil(c.cssSelectors.length/2)))return f}}if(f)return f}return null}catch(t){return Tr.error("Error finding element:",t),null}}var Lr=function(t,e){var{debugEnabled:n}=void 0===e?{}:e,o={o:function(e){if(r&&(l.POSTHOG_DEBUG||n)&&!gr(r.console)&&r.console){for(var o=("__rrweb_original__"in r.console[e]?r.console[e].__rrweb_original__:r.console[e]),i=arguments.length,a=new Array(i>1?i-1:0),u=1;u<i;u++)a[u-1]=arguments[u];o(t,...a)}},info:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];o.o("log",...r)},warn:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];o.o("warn",...r)},error:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];o.o("error",...r)},critical:function(){for(var r=arguments.length,e=new Array(r),n=0;n<r;n++)e[n]=arguments[n];console.error(t,...e)},uninitializedWarning:t=>{o.error("You must initialize PostHog before calling "+t)},createLogger:(r,e)=>Lr(t+" "+r,e)};return o},Er=Lr("[PostHog.js]"),Ir=Er.createLogger,jr=Ir("[Stylesheet Loader]"),zr=(t,r,e)=>{var n=t.createElement("style");return n.innerText=r,n||(jr.error("prepare_external_dependency_stylesheet returned null"),null)};Ir("[Surveys]");var $r={};function Rr(t,r,e){if(mr(t))if(n&&t.forEach===n)t.forEach(r,e);else if("length"in t&&t.length===+t.length)for(var o=0,i=t.length;o<i;o++)if(o in t&&r.call(e,t[o],o)===$r)return}function Or(t,r,e,n){var{capture:o=!1,passive:i=!0}=null!=n?n:{};null==t||t.addEventListener(r,e,{capture:o,passive:i})}null!=o&&o.sendBeacon;var Pr=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}},Zr={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=>Pr(r,t))))),not_regex:(t,r)=>r.every((r=>t.every((t=>!Pr(r,t))))),icontains:(t,r)=>r.map(Dr).some((r=>t.map(Dr).some((t=>r.includes(t))))),not_icontains:(t,r)=>r.map(Dr).every((r=>t.map(Dr).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)))}))},Dr=t=>t.toLowerCase();function Nr(t,r){return!t||Object.entries(t).every((t=>{var[e,n]=t,o=null==r?void 0:r[e];if(gr(o)||br(o))return!1;var i=[String(o)],l=Zr[n.operator];return!!l&&l(n.values,i)}))}var Fr,Hr,Vr,Br,Ur=0,Qr=[],Wr=s,Yr=Wr.__b,Xr=Wr.__r,Gr=Wr.diffed,Kr=Wr.__c,Jr=Wr.unmount,te=Wr.__;function re(t,r){Wr.__h&&Wr.__h(Hr,t,Ur||r),Ur=0;var e=Hr.__H||(Hr.__H={__:[],__h:[]});return t>=e.__.length&&e.__.push({}),e.__[t]}function ee(t){return Ur=1,function(t,r,e){var n=re(Fr++,2);if(n.t=t,!n.__c&&(n.__=[de(void 0,r),function(t){var r=n.__N?n.__N[0]:n.__[0],e=n.t(r,t);r!==e&&(n.__N=[e,n.__[1]],n.__c.setState({}))}],n.__c=Hr,!Hr.__f)){var o=function(t,r,e){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,r,e);var l=n.__c.props!==t;return o.forEach((function(t){if(t.__N){var r=t.__[0];t.__=t.__N,t.__N=void 0,r!==t.__[0]&&(l=!0)}})),i&&i.call(this,t,r,e)||l};Hr.__f=!0;var i=Hr.shouldComponentUpdate,l=Hr.componentWillUpdate;Hr.componentWillUpdate=function(t,r,e){if(this.__e){var n=i;i=void 0,o(t,r,e),i=n}l&&l.call(this,t,r,e)},Hr.shouldComponentUpdate=o}return n.__N||n.__}(de,t)}function ne(t,r){var e=re(Fr++,3);!Wr.__s&&fe(e.__H,r)&&(e.__=t,e.u=r,Hr.__H.__h.push(e))}function oe(t,r){var e=re(Fr++,4);!Wr.__s&&fe(e.__H,r)&&(e.__=t,e.u=r,Hr.__h.push(e))}function ie(t){return Ur=5,le((function(){return{current:t}}),[])}function le(t,r){var e=re(Fr++,7);return fe(e.__H,r)&&(e.__=t(),e.__H=r,e.__h=t),e.__}function ae(){for(var t;t=Qr.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(ce),t.__H.__h.forEach(he),t.__H.__h=[]}catch(r){t.__H.__h=[],Wr.__e(r,t.__v)}}Wr.__b=function(t){Hr=null,Yr&&Yr(t)},Wr.__=function(t,r){t&&r.__k&&r.__k.__m&&(t.__m=r.__k.__m),te&&te(t,r)},Wr.__r=function(t){Xr&&Xr(t),Fr=0;var r=(Hr=t.__c).__H;r&&(Vr===Hr?(r.__h=[],Hr.__h=[],r.__.forEach((function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0}))):(r.__h.forEach(ce),r.__h.forEach(he),r.__h=[],Fr=0)),Vr=Hr},Wr.diffed=function(t){Gr&&Gr(t);var r=t.__c;r&&r.__H&&(r.__H.__h.length&&(1!==Qr.push(r)&&Br===Wr.requestAnimationFrame||((Br=Wr.requestAnimationFrame)||se)(ae)),r.__H.__.forEach((function(t){t.u&&(t.__H=t.u),t.u=void 0}))),Vr=Hr=null},Wr.__c=function(t,r){r.some((function(t){try{t.__h.forEach(ce),t.__h=t.__h.filter((function(t){return!t.__||he(t)}))}catch(e){r.some((function(t){t.__h&&(t.__h=[])})),r=[],Wr.__e(e,t.__v)}})),Kr&&Kr(t,r)},Wr.unmount=function(t){Jr&&Jr(t);var r,e=t.__c;e&&e.__H&&(e.__H.__.forEach((function(t){try{ce(t)}catch(t){r=t}})),e.__H=void 0,r&&Wr.__e(r,e.__v))};var ue="function"==typeof requestAnimationFrame;function se(t){var r,e=function(){clearTimeout(n),ue&&cancelAnimationFrame(r),setTimeout(t)},n=setTimeout(e,35);ue&&(r=requestAnimationFrame(e))}function ce(t){var r=Hr,e=t.__c;"function"==typeof e&&(t.__c=void 0,e()),Hr=r}function he(t){var r=Hr;t.__c=t.__(),Hr=r}function fe(t,r){return!t||t.length!==r.length||r.some((function(r,e){return r!==t[e]}))}function de(t,r){return"function"==typeof r?r(t):r}var pe="#020617",ve={backgroundColor:"#eeeded",position:J.Right};function me(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 ge(t){var r;void 0===t&&(t=ve.backgroundColor),"#"===t[0]&&(r=me(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=me(e)),!r)return pe;var n=r.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?pe:"white"}return pe}!function(t){function r(t){var e,n;return this.getChildContext||(e=new Set,(n={})[r.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){e=null},this.shouldComponentUpdate=function(t){this.props.value!=t.value&&e.forEach((function(t){t.__e=!0,E(t)}))},this.sub=function(t){e.add(t);var r=t.componentWillUnmount;t.componentWillUnmount=function(){e&&e.delete(t),r&&r.call(t)}}),t.children}r.__c="__cC"+y++,r.__=t,r.Provider=r.__l=(r.Consumer=function(t,r){return t.children(r)}).contextType=r}({isPreviewMode:!1,previewPageIndex:0,onPopupSurveyDismissed:()=>{},isPopup:!0,onPreviewSubmit:()=>{},surveySubmissionId:"",properties:void 0});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);max-width:min(var(--ph-tour-max-width),calc(100vw - 16px));min-width:min(280px,calc(100vw - 16px));padding:var(--ph-tour-padding);padding-top:calc(var(--ph-tour-padding) + 8px);pointer-events:auto;position:fixed;z-index:calc(var(--ph-tour-z-index) + 1)}.ph-tour-tooltip,.ph-tour-tooltip--modal{box-shadow:var(--ph-tour-box-shadow)}.ph-tour-arrow{--ph-tour-arrow-offset:0px;border:var(--ph-tour-arrow-size) solid transparent;height:0;position:absolute;width:0}.ph-tour-arrow--top{border-bottom-color:var(--ph-tour-background-color);bottom:100%}.ph-tour-arrow--bottom,.ph-tour-arrow--top{left:calc(50% + var(--ph-tour-arrow-offset));transform:translateX(-50%)}.ph-tour-arrow--bottom{border-top-color:var(--ph-tour-background-color);top:100%}.ph-tour-arrow--left{border-right-color:var(--ph-tour-background-color);right:100%}.ph-tour-arrow--left,.ph-tour-arrow--right{top:calc(50% + var(--ph-tour-arrow-offset));transform:translateY(-50%)}.ph-tour-arrow--right{border-left-color:var(--ph-tour-background-color);left:100%}.ph-tour-content{color:var(--ph-tour-text-color);font-size:14px;line-height:1.5;margin-bottom:16px;padding-right:24px}.ph-tour-content h1,.ph-tour-content h2{font-weight:600;margin-bottom:8px}.ph-tour-content h1{font-size:18px}.ph-tour-content h2{font-size:16px}.ph-tour-content p{margin-bottom:8px}.ph-tour-content p:last-child{margin-bottom:0}.ph-tour-content strong{font-weight:600}.ph-tour-content em{font-style:italic}.ph-tour-content ol,.ph-tour-content ul{margin-bottom:8px;margin-left:20px}.ph-tour-content h3{font-size:14px;font-weight:600;margin-bottom:8px}.ph-tour-content .ph-tour-link,.ph-tour-content a{color:inherit;text-decoration:underline}.ph-tour-content a:hover{opacity:.8}.ph-tour-content code{background:rgba(0,0,0,.06);border-radius:4px;font-size:.875em;padding:2px 6px}.ph-tour-content code,.ph-tour-content pre{font-family:SF Mono,Monaco,Consolas,monospace}.ph-tour-content pre{background:rgba(0,0,0,.04);border-radius:6px;font-size:13px;line-height:1.5;margin-bottom:8px;overflow-x:auto;padding:12px}.ph-tour-content pre code{background:transparent;border-radius:0;font-size:inherit;padding:0}.ph-tour-content code *,.ph-tour-content pre *{font-family:inherit}.ph-tour-content .hljs-comment,.ph-tour-content .hljs-quote{color:#6a737d;font-style:italic}.ph-tour-content .hljs-keyword,.ph-tour-content .hljs-selector-tag{color:#d73a49}.ph-tour-content .hljs-doctag,.ph-tour-content .hljs-regexp,.ph-tour-content .hljs-string{color:#032f62}.ph-tour-content .hljs-literal,.ph-tour-content .hljs-number,.ph-tour-content .hljs-template-variable,.ph-tour-content .hljs-variable{color:#005cc5}.ph-tour-content .hljs-section,.ph-tour-content .hljs-selector-class,.ph-tour-content .hljs-selector-id,.ph-tour-content .hljs-title,.ph-tour-content .hljs-title.function_{color:#6f42c1}.ph-tour-content .hljs-addition,.ph-tour-content .hljs-attr,.ph-tour-content .hljs-attribute,.ph-tour-content .hljs-built_in,.ph-tour-content .hljs-bullet,.ph-tour-content .hljs-name,.ph-tour-content .hljs-symbol{color:#22863a}.ph-tour-content .hljs-deletion,.ph-tour-content .hljs-subst{color:#b31d28}.ph-tour-content .hljs-meta{color:#032f62}.ph-tour-content .hljs-emphasis{font-style:italic}.ph-tour-content .hljs-strong{font-weight:700}.ph-tour-content .ph-tour-image,.ph-tour-content img{border-radius:6px;display:block;height:auto;margin:8px 0;max-width:100%}.ph-tour-content .ph-tour-embed{margin:8px 0}.ph-tour-content .ph-tour-embed-container{background:#000;border-radius:6px;overflow:hidden;padding-bottom:56.25%;position:relative;width:100%}.ph-tour-content .ph-tour-embed-container iframe{border:none;height:100%;left:0;position:absolute;top:0;width:100%}.ph-tour-content blockquote{border-left:3px solid var(--ph-tour-border-color);color:var(--ph-tour-text-secondary-color);font-style:italic;margin:8px 0;padding-left:12px}.ph-tour-footer{align-items:center;display:flex;gap:12px;justify-content:space-between}.ph-tour-progress{color:var(--ph-tour-text-secondary-color);font-size:12px}.ph-tour-buttons{display:flex;gap:8px;margin-left:auto}.ph-tour-button{align-items:center;border:none;border-radius:var(--ph-tour-button-border-radius);cursor:pointer;display:inline-flex;font-size:14px;font-weight:500;justify-content:center;padding:8px 16px;text-decoration:none;transition:opacity .15s ease,transform .1s ease}.ph-tour-button:hover{opacity:.9}.ph-tour-button:active{transform:scale(.98)}.ph-tour-button--primary{background:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}.ph-tour-button--secondary{background:var(--ph-tour-button-secondary-color);border:1px solid var(--ph-tour-border-color);color:var(--ph-tour-button-secondary-text-color)}.ph-tour-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;font-size:18px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}.ph-tour-branding{align-items:center;border-top:1px solid var(--ph-tour-border-color);color:var(--ph-tour-branding-text-color,var(--ph-tour-text-secondary-color));display:flex;font-size:11px;gap:6px;justify-content:center;margin-top:12px;padding-top:12px;text-decoration:none}.ph-tour-branding:hover{color:var(--ph-tour-branding-text-color,var(--ph-tour-text-color))}.ph-tour-branding svg{height:14px;width:auto}.ph-tour-hidden{display:none!important}.ph-tour-survey-step{min-width:min(300px,calc(100vw - 16px))}.ph-tour-survey-question{color:var(--ph-tour-text-color);font-size:15px;font-weight:500;line-height:1.4;margin-bottom:16px;padding-right:24px}.ph-tour-survey-input-container{display:flex;flex-direction:column;gap:12px}.ph-tour-survey-textarea{background:#fff;border:1px solid var(--ph-tour-border-color);border-radius:6px;box-sizing:border-box;color:var(--ph-tour-text-color);font-family:var(--ph-tour-font-family);font-size:14px;min-height:80px;padding:10px 12px;resize:vertical;width:100%}.ph-tour-survey-textarea:focus{border-color:var(--ph-tour-button-color);box-shadow:0 0 0 2px rgba(0,0,0,.05);outline:none}.ph-tour-survey-textarea::placeholder{color:var(--ph-tour-text-secondary-color)}.ph-tour-survey-submit{align-self:flex-end}.ph-tour-survey-rating-container{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}.ph-tour-survey-rating-labels{color:var(--ph-tour-text-secondary-color);display:flex;font-size:11px;justify-content:space-between}.ph-tour-survey-rating-emoji{display:flex;gap:8px;justify-content:center}.ph-tour-survey-emoji-button{align-items:center;background:var(--ph-tour-background-color);border:2px solid var(--ph-tour-border-color);border-radius:8px;cursor:pointer;display:flex;height:44px;justify-content:center;padding:0;transition:all .15s ease;width:44px}.ph-tour-survey-emoji-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active svg{fill:var(--ph-tour-button-text-color)}.ph-tour-survey-emoji-button svg{fill:var(--ph-tour-text-color);height:28px;transition:fill .15s ease;width:28px}.ph-tour-survey-rating-numbers{display:grid;gap:6px}.ph-tour-survey-number-button{align-items:center;background:var(--ph-tour-background-color);border:1px solid var(--ph-tour-border-color);border-radius:4px;color:var(--ph-tour-text-color);cursor:pointer;display:flex;font-family:var(--ph-tour-font-family);font-size:13px;font-weight:500;justify-content:center;padding:8px 4px;transition:all .15s ease}.ph-tour-survey-number-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-number-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}.ph-tour-banner{align-items:center;background:var(--ph-tour-background-color);border-bottom:1px solid var(--ph-tour-border-color);box-shadow:var(--ph-tour-box-shadow);display:flex;font-family:var(--ph-tour-font-family);gap:16px;justify-content:center;padding:12px 16px}a.ph-tour-banner{color:inherit;text-decoration:none}:host:has(.ph-tour-banner--sticky){position:sticky;top:0;z-index:var(--ph-tour-z-index)}.ph-tour-banner-content{color:var(--ph-tour-text-color);flex:1;font-size:14px;line-height:1.5;min-width:0;text-align:center}.ph-tour-banner-content p{margin:0}.ph-tour-banner-content strong{font-weight:600}.ph-tour-banner-content em{font-style:italic}.ph-tour-banner-content a{color:inherit;text-decoration:underline}.ph-tour-banner-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;flex-shrink:0;height:24px;justify-content:center;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-banner-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}',ye=Ir("[Product Tours]"),_e=i,we=r;function xe(){var t=zr(_e,be);return null==t||t.setAttribute("data-ph-product-tour-style","true"),t}function ke(t){return t.useManualSelector?!!t.selector:!!t.inferenceData}function Te(t){try{var r=_e.querySelectorAll(t);if(0===r.length)return{element:null,error:"not_found",matchCount:0};var e=r[0];return function(t){var r=we.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}}}function Ce(t){var r;if(null!==(r=t.useManualSelector)&&void 0!==r&&r)return t.selector?Te(t.selector):{element:null,error:"not_found",matchCount:0};if(!t.inferenceData)return{element:null,error:"not_found",matchCount:0};var e=Ar(t.inferenceData);return e?{element:e,error:null,matchCount:1}:{element:null,error:"not_found",matchCount:0}}var Se=12,qe=8;function Me(t,r,e){var n=qe+r/2,o=e-qe-r/2,i=Math.max(n,Math.min(o,t));return{clamped:i,offset:t-i}}function Ae(t,r){var e,n,o,i=a({},W,r),l=t.style;l.setProperty("--ph-tour-background-color",i.backgroundColor),l.setProperty("--ph-tour-text-color",i.textColor),l.setProperty("--ph-tour-button-color",i.buttonColor),l.setProperty("--ph-tour-border-radius",i.borderRadius+"px"),l.setProperty("--ph-tour-button-border-radius",i.buttonBorderRadius+"px"),l.setProperty("--ph-tour-border-color",i.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}(i.fontFamily)),l.setProperty("--ph-tour-text-secondary-color",(e=i.textColor,n=.6,(o=me(e).match(/^rgb\((\d+),(\d+),(\d+)\)$/))?"rgba("+o[1]+", "+o[2]+", "+o[3]+", "+n+")":e)),l.setProperty("--ph-tour-branding-text-color",ge(i.backgroundColor)),l.setProperty("--ph-tour-button-text-color",ge(i.buttonColor)),l.setProperty("--ph-tour-box-shadow",i.boxShadow),l.setProperty("--ph-tour-overlay-color",i.showOverlay?"rgba(0, 0, 0, 0.5)":"transparent"),l.setProperty("--ph-tour-z-index",String(i.zIndex)),l.setProperty("--ph-tour-button-secondary-color","transparent"),l.setProperty("--ph-tour-button-secondary-text-color",i.textColor),l.setProperty("--ph-tour-max-width","320px"),l.setProperty("--ph-tour-padding","16px")}function Le(t){var r;if(!t)return"";if("string"==typeof t)return Ie(t);if("text"===t.type){var e=Ie(t.text||"");if(t.marks)for(var n of t.marks)switch(n.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 o=(null==(r=t.content)?void 0:r.map(Le).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 Ee(t){return t.endsWith("/")?t.slice(0,-1):t}function Ie(t){var r=_e.createElement("div");return r.textContent=t,r.innerHTML}function je(t){var r=[];return t.content&&function t(e){var n,o;"image"===e.type&&null!=(n=e.attrs)&&n.src&&r.push(e.attrs.src),null==(o=e.content)||o.forEach(t)}(t.content),r}function ze(t){return t.contentHtml?ar.sanitize(t.contentHtml,{ADD_TAGS:["iframe"],ADD_ATTR:["allowfullscreen","frameborder","referrerpolicy"]}):Le(t.content)}var $e=0;function Re(t,r,e,n,o,i){r||(r={});var l,a,u=r;if("ref"in u)for(a in u={},r)"ref"==a?l=r[a]:u[a]=r[a];var c={type:t,props:u,key:e,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--$e,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof t&&(l=t.defaultProps))for(a in l)void 0===u[a]&&(u[a]=l[a]);return s.vnode&&s.vnode(c),c}var Oe=Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Re("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"})}),Pe=Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Re("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"})}),Ze=Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Re("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"})}),De=Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Re("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"})}),Ne=Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Re("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"})});Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 0 24 24",width:"48",children:Re("path",{d:"M2 20h2c.55 0 1-.45 1-1v-9c0-.55-.45-1-1-1H2v11zm19.83-7.12c.11-.25.17-.52.17-.8V11c0-1.1-.9-2-2-2h-5.5l.92-4.65c.05-.22.02-.46-.08-.66-.23-.45-.52-.86-.88-1.22L14 2 7.59 8.41C7.21 8.79 7 9.3 7 9.83v7.84C7 18.95 8.05 20 9.34 20h8.11c.7 0 1.36-.37 1.72-.97l2.66-6.15z"})}),Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 0 24 24",width:"48",children:Re("path",{d:"M22 4h-2c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h2V4zM2.17 11.12c-.11.25-.17.52-.17.8V13c0 1.1.9 2 2 2h5.5l-.92 4.65c-.05.22-.02.46.08.66.23.45.52.86.88 1.22L10 22l6.41-6.41c.38-.38.59-.89.59-1.42V6.34C17 5.05 15.95 4 14.66 4H6.55c-.7 0-1.36.37-1.72.97l-2.66 6.15z"})});var Fe=function(t){var{fill:r="currentColor"}={};return Re("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:r,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"close-survey-title-adam",children:[Re("title",{id:"close-survey-title",className:"adam-testing",children:"Close survey"}),Re("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:r})]})},He=Re("svg",{width:"77",height:"14",viewBox:"0 0 77 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Re("g",{"clip-path":"url(#clip0_2415_6911)",children:[Re("mask",{id:"mask0_2415_6911",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"77",height:"14",children:Re("path",{d:"M0.5 0H76.5V14H0.5V0Z",fill:"white"})}),Re("g",{mask:"url(#mask0_2415_6911)",children:[Re("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"}),Re("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"}),Re("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"}),Re("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"}),Re("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"}),Re("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"})]})]}),Re("defs",{children:Re("clipPath",{id:"clip0_2415_6911",children:Re("rect",{width:"76",height:"14",fill:"white",transform:"translate(0.5)"})})})]});function Ve(t){var{button:r,variant:e,onClick:n,cursorStyle:o}=t,i="ph-tour-button ph-tour-button--"+e;return"link"===r.action&&r.link?Re("a",{href:r.link,target:"_blank",rel:"noopener noreferrer",class:i,onClick:()=>n(r),children:r.text}):Re("button",{class:i,onClick:()=>n(r),style:o,children:r.text})}function Be(t){var r,e,n,{step:o,appearance:i,stepIndex:l,totalSteps:a,onNext:u,onPrevious:s,onDismiss:c,onButtonClick:h}=t,f=null!==(r=null==i?void 0:i.whiteLabel)&&void 0!==r&&r,d=l>=a-1,p=0===l,v=!(o.buttons||"button"!==o.progressionTrigger&&ke(o)),m=!!o.buttons,g=!!(u||s||c||h),b=g?void 0:{cursor:"default"},y=!f&&p,_=t=>{h&&h(t)};return Re(q,{children:[Re("button",{class:"ph-tour-dismiss",onClick:c,"aria-label":"Close tour",style:b,children:Fe()}),Re("div",{class:"ph-tour-content",dangerouslySetInnerHTML:{__html:ze(o)}}),Re("div",{class:"ph-tour-footer",children:[a>1&&Re("span",{class:"ph-tour-progress",children:[l+1," of ",a]}),Re("div",{class:"ph-tour-buttons",children:[v&&Re(q,{children:[!p&&Re("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:s,style:b,children:"Back"}),Re("button",{class:"ph-tour-button ph-tour-button--primary",onClick:u,style:b,children:d?"Done":"Next"})]}),m&&Re(q,{children:[(null==(e=o.buttons)?void 0:e.secondary)&&Re(Ve,{button:o.buttons.secondary,variant:"secondary",onClick:_,cursorStyle:b}),(null==(n=o.buttons)?void 0:n.primary)&&Re(Ve,{button:o.buttons.primary,variant:"primary",onClick:_,cursorStyle:b})]})]})]}),y&&Re("a",{href:g?"https://posthog.com/docs/product-tours":void 0,target:g?"_blank":void 0,rel:g?"noopener noreferrer":void 0,class:"ph-tour-branding",style:g?void 0:{cursor:"default",pointerEvents:"none"},children:["Tour by ",He]})]})}Re("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Re("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 Ue=[Ze,Pe,Oe],Qe=[De,Ze,Pe,Oe,Ne];function We(t){var{value:r,onChange:e,onSubmit:n,isInteractive:o}=t,i=ie(null);ne((()=>{o&&setTimeout((()=>{var t;return null==(t=i.current)?void 0:t.focus()}),100)}),[o]);return Re("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&&o&&(t.preventDefault(),null==n||n())},disabled:!o,style:o?void 0:{cursor:"default"}})}function Ye(t){var{survey:r,onSubmit:e,isInteractive:n}=t,[o,i]=ee(null),l=r.display||"emoji",a=r.scale||5,u=t=>{n&&(i(t),null==e||e(t))};if("emoji"===l)return Re("div",{class:"ph-tour-survey-rating-container",children:[Re("div",{class:"ph-tour-survey-rating-emoji",children:(3===a?Ue:Qe).map(((t,r)=>{var e=r+1;return Re("button",{type:"button",class:"ph-tour-survey-emoji-button "+(o===e?"ph-tour-survey-emoji-button--active":""),onClick:()=>u(e),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+e,children:t},r)}))}),(r.lowerBoundLabel||r.upperBoundLabel)&&Re("div",{class:"ph-tour-survey-rating-labels",children:[Re("span",{children:r.lowerBoundLabel}),Re("span",{children:r.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]}}(a);return Re("div",{class:"ph-tour-survey-rating-container",children:[Re("div",{class:"ph-tour-survey-rating-numbers",style:{gridTemplateColumns:"repeat("+s.length+", minmax(0, 1fr))"},children:s.map((t=>Re("button",{type:"button",class:"ph-tour-survey-number-button "+(o===t?"ph-tour-survey-number-button--active":""),onClick:()=>u(t),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+t,children:t},t)))}),(r.lowerBoundLabel||r.upperBoundLabel)&&Re("div",{class:"ph-tour-survey-rating-labels",children:[Re("span",{children:r.lowerBoundLabel}),Re("span",{children:r.upperBoundLabel})]})]})}function Xe(t){var r,{step:e,appearance:n,stepIndex:o,totalSteps:i,onPrevious:l,onSubmit:a,onDismiss:u}=t,[s,c]=ee(""),h=e.survey,f=null!==(r=null==n?void 0:n.whiteLabel)&&void 0!==r&&r,d=0===o,p="open"===(null==h?void 0:h.type),v=!!(l||a||u),m=v?void 0:{cursor:"default"},g=()=>{null==a||a(s.trim()||null)};return h?Re(q,{children:[Re("button",{class:"ph-tour-dismiss",onClick:u,"aria-label":"Close survey",style:m,children:Fe()}),Re("div",{class:"ph-tour-survey-question",children:h.questionText}),p?Re(We,{value:s,onChange:c,onSubmit:g,isInteractive:v}):Re(Ye,{survey:h,onSubmit:a,isInteractive:v}),Re("div",{class:"ph-tour-footer",children:[Re("span",{class:"ph-tour-progress",children:[o+1," of ",i]}),Re("div",{class:"ph-tour-buttons",children:[!d&&Re("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:l,style:m,children:h.backButtonText||"Back"}),p&&Re("button",{class:"ph-tour-button ph-tour-button--primary",onClick:g,style:m,children:h.submitButtonText||"Submit"})]})]}),!f&&Re("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 ",He]})]}):Re("div",{})}var Ge=r;function Ke(t){return{top:"bottom",bottom:"top",left:"right",right:"left"}[t]}var Je=150;function tn(t){var r,{tour:e,step:n,stepIndex:o,totalSteps:i,targetElement:l,onNext:u,onPrevious:s,onDismiss:c,onSurveySubmit:h,onButtonClick:f}=t,[d,p]=ee("entering"),[v,m]=ee(null),[g,b]=ee(null),[y,_]=ee(!1),[w,x]=ee(n),[k,T]=ee(o),C=ie(null),S=ie(o),q=ie(!1),M=ie(l),A=!ke(w)||"survey"===w.type;oe((()=>{M.current=l}),[l]);var L=function(t,r){return Ur=8,le((function(){return t}),r)}((()=>{var t=M.current;if(t&&C.current){var r=C.current.getBoundingClientRect(),e={width:r.width,height:r.height},n=t.getBoundingClientRect();m(function(t,r){var e=we.innerWidth,n=we.innerHeight,{width:o,height:i}=r,l=t.top,a=n-t.bottom,u=t.left,s=e-t.right,c=t.top+t.height/2,h=t.left+t.width/2;if(s>=o+Se){var f=t.right+Se,{clamped:d,offset:p}=Me(c,i,n);return{position:"right",top:d,left:f,arrowOffset:p}}if(u>=o+Se){var v=e-t.left+Se,{clamped:m,offset:g}=Me(c,i,n);return{position:"left",top:m,right:v,arrowOffset:g}}if(l>=i+Se&&a<i+Se){var b=n-t.top+Se,{clamped:y,offset:_}=Me(h,o,e);return{position:"top",bottom:b,left:y,arrowOffset:_}}var w=t.bottom+Se,{clamped:x,offset:k}=Me(h,o,e);return{position:"bottom",top:w,left:x,arrowOffset:k}}(n,e)),b(function(t,r){return void 0===r&&(r=8),{top:t.top-r+"px",left:t.left-r+"px",width:t.width+2*r+"px",height:t.height+2*r+"px"}}(n)),_(!0)}}),[]);oe((()=>{!A&&!y&&C.current&&l&&L()}),[A,y,l,L]),ne((()=>{var t=o,r=S.current!==o,e=()=>{S.current===t&&(p("visible"),q.current=!1)},i=()=>{M.current&&ke(n)&&(M.current.isConnected||(M.current=Ce(n).element),M.current)?function(t,r){var e=t.getBoundingClientRect(),n=Ge.innerHeight,o=Ge.innerWidth,i=n/6,l=o/6;if(e.top>=i&&e.bottom<=n-i&&e.left>=l&&e.right<=o-l)r();else{t.scrollIntoView({behavior:"smooth",block:"center"});var a=e.top,u=0,s=!1,c=()=>{if(!s){var e=t.getBoundingClientRect();if(Math.abs(e.top-a)<1){if(++u>=3)return s=!0,void r()}else u=0;a=e.top,setTimeout(c,50)}};setTimeout(c,30),setTimeout((()=>{s||(s=!0,r())}),500)}}(M.current,(()=>{S.current===t&&(L(),setTimeout(e,50))})):setTimeout(e,50)};if(!r)return S.current=o,q.current=!0,void i();S.current=o,q.current=!0,p("exiting"),setTimeout((()=>{S.current===t&&(ke(n)&&(m(null),b(null),_(!1)),x(n),T(o),p("entering"),i())}),Je)}),[l,o,n,L]),ne((()=>{if("visible"===d&&!A){var t=()=>{q.current||L()};return Or(Ge,"scroll",t,{capture:!0}),Or(Ge,"resize",t),()=>{null==Ge||Ge.removeEventListener("scroll",t,!0),null==Ge||Ge.removeEventListener("resize",t)}}}),[L,d,A]),ne((()=>{var t=t=>{"Escape"===t.key&&c("escape_key")};return Or(Ge,"keydown",t),()=>{null==Ge||Ge.removeEventListener("keydown",t)}}),[c]);var E,I,j="visible"===d,z="survey"===w.type,R=A||y,O=a({},w.maxWidth&&{width:"min("+w.maxWidth+"px, calc(100vw - 16px))",maxWidth:"min("+w.maxWidth+"px, calc(100vw - 16px))"},A?a({},{top:"auto",right:"auto",bottom:"auto",left:"auto",transform:"none"},(I=function(t,r,e){if(void 0===r&&(r=J.Right),t===tt.ExternalSurvey)return{};switch(r){case J.TopLeft:return{top:"0",left:"0",transform:"translate(30px, 30px)"};case J.TopRight:return{top:"0",right:"0",transform:"translate(-30px, 30px)"};case J.TopCenter:return{top:"0",left:"50%",transform:"translate(-50%, 30px)"};case J.MiddleLeft:return{top:"50%",left:"0",transform:"translate(30px, -50%)"};case J.MiddleRight:return{top:"50%",right:"0",transform:"translate(-30px, -50%)"};case J.MiddleCenter:return{top:"50%",left:"50%",transform:"translate(-50%, -50%)"};case J.Left:return{left:"30px"};case J.Center:return{left:"50%",transform:"translateX(-50%)"};default:case J.Right:return{right:t===tt.Widget&&e===K.Tab?"60px":"30px"}}}(void 0,null!==(E=w.modalPosition)&&void 0!==E?E:fr.MiddleCenter),"top"in I||"bottom"in I?I:a({},I,{bottom:"30px"}))):(()=>{if(!v)return{};var t="left"===v.position||"right"===v.position;return{top:gr(v.top)?"auto":v.top+"px",bottom:gr(v.bottom)?"auto":v.bottom+"px",left:gr(v.left)?"auto":v.left+"px",right:gr(v.right)?"auto":v.right+"px",transform:t?"translateY(-50%)":"translateX(-50%)"}})());return Re("div",{class:"ph-tour-container",children:[!1!==(null==(r=e.appearance)?void 0:r.dismissOnClickOutside)&&Re("div",{class:"ph-tour-click-overlay",onClick:t=>{t.stopPropagation(),c("user_clicked_outside")}}),Re("div",{class:"ph-tour-modal-overlay",style:{opacity:A&&j?1:0,transition:"opacity 150ms ease-out",pointerEvents:"none"}}),Re("div",{class:"ph-tour-spotlight",style:a({},j&&R&&g?g:{top:"50%",left:"50%",width:"0px",height:"0px"},{opacity:!A&&j&&R?1:0,transition:"opacity 150ms ease-out"},"click"===w.progressionTrigger&&!A&&{pointerEvents:"auto",cursor:"pointer"}),onClick:"click"!==w.progressionTrigger||A?void 0:t=>{t.stopPropagation(),M.current&&M.current.click(),u()}}),Re("div",{ref:C,class:"ph-tour-tooltip "+(A?"ph-tour-tooltip--modal":"")+" "+(z?"ph-tour-survey-step":""),style:a({},O,{opacity:j&&R?1:0,transition:"opacity 150ms ease-out"}),onClick:t=>{t.stopPropagation()},children:[!A&&v&&Re("div",{class:"ph-tour-arrow ph-tour-arrow--"+Ke(v.position),style:0!==v.arrowOffset?{"--ph-tour-arrow-offset":v.arrowOffset+"px"}:void 0}),z?Re(Xe,{step:w,appearance:e.appearance,stepIndex:k,totalSteps:i,onSubmit:h,onPrevious:s,onDismiss:()=>c("user_clicked_skip")}):Re(Be,{step:w,appearance:e.appearance,stepIndex:k,totalSteps:i,onNext:u,onPrevious:s,onDismiss:()=>c("user_clicked_skip"),onButtonClick:f})]})]})}function rn(t){var{class:r,href:e,onClick:n,children:o}=t;return Re("a",{class:r,href:e,target:"_blank",rel:"noopener noreferrer",onClick:n,children:o})}function en(t){var{class:r,onClick:e,children:n}=t;return Re("div",{class:r,role:"button",tabIndex:0,onClick:e,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e())},style:{cursor:"pointer"},children:n})}function nn(t){var{class:r,children:e}=t;return Re("div",{class:r,children:e})}function on(t){var r,{step:e,onDismiss:n,onActionClick:o,displayFrequency:i}=t,l=null!==(r=e.bannerConfig)&&void 0!==r?r:{behavior:"sticky"},a=l.action,u="always"!==i,s=["ph-tour-banner","sticky"===l.behavior&&"ph-tour-banner--sticky","custom"===l.behavior&&"ph-tour-banner--custom"].filter(Boolean).join(" "),c=Re(q,{children:[Re("div",{class:"ph-tour-banner-content",dangerouslySetInnerHTML:{__html:ze(e)}}),u&&Re("button",{class:"ph-tour-banner-dismiss",onClick:t=>{t.stopPropagation(),t.preventDefault(),n()},"aria-label":"Close banner",children:Fe()})]});return"link"===(null==a?void 0:a.type)&&a.link?Re(rn,{class:s,href:a.link,onClick:o,children:c}):"trigger_tour"===(null==a?void 0:a.type)&&o?Re(en,{class:s,onClick:o,children:c}):Re(nn,{class:s,children:c})}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]"==vr.call(t)&&t==t)(t)&&isFinite(t)&&Math.floor(t)===t}),r&&!gr(r.crypto)&&crypto.getRandomValues;var ln=null,an={i:function(){if(!br(ln))return ln;var t=!0;if(gr(r))t=!1;else try{var e="__mplssupport__";an.h(e,"xyz"),'"xyz"'!==an.p(e)&&(t=!1),an.v(e)}catch(r){t=!1}return t||Er.error("localStorage unsupported; falling back to cookie store"),ln=t,t},m:function(t){Er.error("localStorage error: "+t)},p:function(t){try{return null==r?void 0:r.localStorage.getItem(t)}catch(t){an.m(t)}return null},k:function(t){try{return JSON.parse(an.p(t))||{}}catch(t){}return null},h:function(t,e){try{null==r||r.localStorage.setItem(t,JSON.stringify(e))}catch(t){an.m(t)}},v:function(t){try{null==r||r.localStorage.removeItem(t)}catch(t){an.m(t)}}},un=null,sn={i:function(){if(!br(un))return un;if(un=!0,gr(r))un=!1;else try{var t="__support__";sn.h(t,"xyz"),'"xyz"'!==sn.p(t)&&(un=!1),sn.v(t)}catch(t){un=!1}return un},m:function(t){Er.error("sessionStorage error: ",t)},p:function(t){try{return null==r?void 0:r.sessionStorage.getItem(t)}catch(t){sn.m(t)}return null},k:function(t){try{return JSON.parse(sn.p(t))||null}catch(t){}return null},h:function(t,e){try{null==r||r.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){sn.m(t)}},v:function(t){try{null==r||r.sessionStorage.removeItem(t)}catch(t){sn.m(t)}}},cn="ph_product_tour_shown_",hn="ph_product_tour_completed_",fn="ph_product_tour_dismissed_",dn="ph_active_product_tour";function pn(t){var r,e;return!!(null!=(r=t.conditions)&&r.events&&(null==(e=t.conditions.events.values)?void 0:e.length)>0)}function vn(t){var r,e;return!!(null!=(r=t.conditions)&&r.actions&&(null==(e=t.conditions.actions.values)?void 0:e.length)>0)}class mn{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 n of this.T["*"]||[])n(t,r)}}function gn(t,r,e){if(yr(t))return!1;switch(e){case"exact":return t===r;case"contains":var n=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(t);case"regex":try{return new RegExp(r).test(t)}catch(t){return!1}default:return!1}}class bn{constructor(t){this.C=new mn,this.S=(t,r)=>this.q(t,r)&&this.M(t,r)&&this.A(t,r)&&this.L(t,r),this.q=(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.j=new Set}init(){var t;if(!gr(null==(t=this._instance)?void 0:t._addCaptureHook)){var r;null==(r=this._instance)||r._addCaptureHook(((t,r)=>{this.on(t,r)}))}}register(t){var r,e;if(!gr(null==(r=this._instance)?void 0:r._addCaptureHook)&&(t.forEach((t=>{var r,e;null==(r=this.j)||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 n,o=new Set;t.forEach((t=>{var r;null==(r=t.steps)||r.forEach((t=>{null!=t&&t.selector&&o.add(null==t?void 0:t.selector)}))})),null==(n=this._instance)||n.autocapture.setElementSelectors(o)}}on(t,r){var e;null!=r&&0!=t.length&&(this.I.has(t)||this.I.has(null==r?void 0:r.event))&&this.j&&(null==(e=this.j)?void 0:e.size)>0&&this.j.forEach((t=>{this.$(r,t)&&this.C.emit("actionCaptured",t.name)}))}R(t){this.onAction("actionCaptured",(r=>t(r)))}$(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.C.on(t,r)}M(t,r){if(null!=r&&r.url){var e,n=null==t||null==(e=t.properties)?void 0:e.$current_url;if(!n||"string"!=typeof n)return!1;if(!gn(n,r.url,r.url_matching||"contains"))return!1}return!0}A(t,r){return!!this.O(t,r)&&(!!this.P(t,r)&&!!this.Z(t,r))}O(t,r){var e;if(null==r||!r.href)return!0;var n=this.D(t);if(n.length>0)return n.some((t=>gn(t.href,r.href,r.href_matching||"exact")));var o,i=(null==t||null==(e=t.properties)?void 0:e.$elements_chain)||"";return!!i&&gn((o=i.match(/(?::|")href="(.*?)"/))?o[1]:"",r.href,r.href_matching||"exact")}P(t,r){var e;if(null==r||!r.text)return!0;var n=this.D(t);if(n.length>0)return n.some((t=>gn(t.text,r.text,r.text_matching||"exact")||gn(t.$el_text,r.text,r.text_matching||"exact")));var o,i,l,a=(null==t||null==(e=t.properties)?void 0:e.$elements_chain)||"";return!!a&&(o=function(t){for(var r,e=[],n=/(?::|")text="(.*?)"/g;!yr(r=n.exec(t));)e.includes(r[1])||e.push(r[1]);return e}(a),i=r.text,l=r.text_matching||"exact",o.some((t=>gn(t,i,l))))}Z(t,r){var e,n;if(null==r||!r.selector)return!0;var o=null==t||null==(e=t.properties)?void 0:e.$element_selectors;if(null!=o&&o.includes(r.selector))return!0;var i=(null==t||null==(n=t.properties)?void 0:n.$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}L(t,r){return null==r||!r.properties||0===r.properties.length||Nr(r.properties.reduce(((t,r)=>{var e=mr(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 yn{constructor(t){this._instance=t,this.N=new Map,this.F=new Map,this.H=new Map}V(t,r){return!!t&&Nr(t.propertyFilters,null==r?void 0:r.properties)}B(t,r){var e=new Map;return t.forEach((t=>{var n;null==(n=t.conditions)||null==(n=n[r])||null==(n=n.values)||n.forEach((r=>{if(null!=r&&r.name){var n=e.get(r.name)||[];n.push(t.id),e.set(r.name,n)}}))})),e}U(t,r,e){var n=(e===G.Activation?this.N:this.F).get(t),o=[];return this.W((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[e])||null==(o=o.values)?void 0:o.find((r=>r.name===t));return this.V(i,r)}))}register(t){var r;gr(null==(r=this._instance)?void 0:r._addCaptureHook)||(this.Y(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 bn(this._instance),this.G.init();this.G.R((t=>{this.onAction(t)}))}r.forEach((t=>{var r,e,n,o,i;t.conditions&&null!=(r=t.conditions)&&r.actions&&null!=(e=t.conditions)&&null!=(e=e.actions)&&e.values&&(null==(n=t.conditions)||null==(n=n.actions)||null==(n=n.values)?void 0:n.length)>0&&(null==(o=this.G)||o.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.H.get(r.name);e&&e.push(t.id),this.H.set(r.name,e||[t.id])}})))}))}}Y(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})),n=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!==n.length){null==(r=this._instance)||r._addCaptureHook(((t,r)=>{this.onEvent(t,r)})),this.N=this.B(t,G.Activation),this.F=this.B(t,G.Cancellation)}}onEvent(t,r){var e,n=this.K(),o=this.J(),i=this.tt(),l=(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[o])||[];if(i===t&&r&&l.length>0){var a,u;n.info("event matched, removing item from activated items",{event:t,eventPayload:r,existingActivatedItems:l});var s=(null==r||null==(a=r.properties)?void 0:a.$survey_id)||(null==r||null==(u=r.properties)?void 0:u.$product_tour_id);if(s){var c=l.indexOf(s);c>=0&&(l.splice(c,1),this.rt(l))}}else{if(this.F.has(t)){var h=this.U(t,r,G.Cancellation);h.length>0&&(n.info("cancel event matched, cancelling items",{event:t,itemsToCancel:h.map((t=>t.id))}),h.forEach((t=>{var r=l.indexOf(t.id);r>=0&&l.splice(r,1),this.et(t.id)})),this.rt(l))}if(this.N.has(t)){n.info("event name matched",{event:t,eventPayload:r,items:this.N.get(t)});var f=this.U(t,r,G.Activation);this.rt(l.concat(f.map((t=>t.id))||[]))}}}onAction(t){var r,e=this.J(),n=(null==(r=this._instance)||null==(r=r.persistence)?void 0:r.props[e])||[];this.H.has(t)&&this.rt(n.concat(this.H.get(t)||[]))}rt(t){var r,e=this.K(),n=this.J(),o=[...new Set(t)].filter((t=>!this.nt(t)));e.info("updating activated items",{activatedItems:o}),null==(r=this._instance)||null==(r=r.persistence)||r.register({[n]:o})}getActivatedIds(){var t,r=this.J(),e=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[r];return e||[]}getEventToItemsMap(){return this.N}ot(){return this.G}}var _n=Ir("[Product Tour Event Receiver]");class wn extends yn{constructor(t){super(t)}J(){return"$product_tours_activated"}tt(){return Y.SHOWN}W(t){var r;null==(r=this._instance)||null==(r=r.productTours)||r.getProductTours(t)}et(t){var r;null==(r=this._instance)||null==(r=r.productTours)||r.cancelPendingTour(t)}K(){return _n}nt(t){if(!t)return!0;var r=""+hn+t,e=""+fn+t;return!(!an.p(r)&&!an.p(e))}getTours(){return this.getActivatedIds()}}!function(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),n=1;n<r;n++)e[n-1]=arguments[n];Rr(e,(function(r){Rr(r,(function(r){t.push(r)}))}))}(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"]);var xn=Ir("[Product Tours]"),kn=i,Tn=r;function Cn(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 Sn(t){return Cn(t)&&function(t){var r,e=t.conditions;if(null==e||!e.url)return!0;var n=null==Tn||null==(r=Tn.location)?void 0:r.href;if(!n)return!1;var o=e.urlMatchType||dr.Icontains;if(o===dr.Exact)return Ee(n)===Ee(e.url);var i=[e.url];return Zr[o](i,[n])}(t)}var qn="ph-product-tour-container",Mn="data-ph-tour-trigger";class An{constructor(t){var r=this;this.it=null,this.ut=0,this.st=!1,this.ct=!1,this.ht=null,this.ft=new Map,this.dt=new Map,this.vt=new Set,this.bt=new Set,this.yt=()=>{kn.hidden&&this.ht?(clearInterval(this.ht),this.ht=null):kn.hidden||this.ht||(this.ht=setInterval((()=>{this._t()}),1e3),this._t())},this.nextStep=()=>{if(this.it){var t=this.it.steps[this.ut];this.wt(Y.STEP_COMPLETED,{[X.TOUR_ID]:this.it.id,[X.TOUR_STEP_ID]:t.id,[X.TOUR_STEP_ORDER]:this.ut}),this.ut<this.it.steps.length-1?(this.xt(this.ut+1),this.kt()):this.Tt()}},this.previousStep=()=>{this.it&&0!==this.ut&&(this.xt(this.ut-1),this.kt())},this.dismissTour=function(t){if(void 0===t&&(t="user_clicked_skip"),r.it){var e=r.it.steps[r.ut];r.wt(Y.DISMISSED,{[X.TOUR_ID]:r.it.id,[X.TOUR_STEP_ID]:e.id,[X.TOUR_STEP_ORDER]:r.ut,[X.TOUR_DISMISS_REASON]:t}),r.st||(an.h(""+fn+r.it.id,!0),r._instance.capture("$set",{$set:{["$product_tour_dismissed/"+r.it.id]:!0}})),Tn.dispatchEvent(new CustomEvent("PHProductTourDismissed",{detail:{tourId:r.it.id,reason:t}})),r.Ct()}},this.St=()=>{var t;if(this.it){var r=this.qt();if(r){var e=null==(t=r.bannerConfig)?void 0:t.action;this.wt(Y.BANNER_ACTION_CLICKED,{[X.TOUR_ID]:this.it.id,[X.TOUR_NAME]:this.it.name,[X.TOUR_ITERATION]:this.it.current_iteration||1,[X.TOUR_STEP_ID]:r.id,[X.TOUR_STEP_ORDER]:this.ut,[X.TOUR_BUTTON_ACTION]:null==e?void 0:e.type,[X.TOUR_BUTTON_LINK]:null==e?void 0:e.link,[X.TOUR_BUTTON_TOUR_ID]:null==e?void 0:e.tourId}),"trigger_tour"===(null==e?void 0:e.type)&&e.tourId&&(this.Ct(),this.showTourById(e.tourId))}}},this.Mt=t=>{if(this.it){var r=this.it.steps[this.ut];r&&this.wt(Y.BUTTON_CLICKED,a({[X.TOUR_ID]:this.it.id,[X.TOUR_NAME]:this.it.name,[X.TOUR_ITERATION]:this.it.current_iteration||1,[X.TOUR_STEP_ID]:r.id,[X.TOUR_STEP_ORDER]:this.ut,[X.TOUR_BUTTON_TEXT]:t.text,[X.TOUR_BUTTON_ACTION]:t.action},t.link&&{[X.TOUR_BUTTON_LINK]:t.link},t.tourId&&{[X.TOUR_BUTTON_TOUR_ID]:t.tourId}))}switch(t.action){case"dismiss":this.dismissTour("user_clicked_skip");break;case"next_step":this.nextStep();break;case"previous_step":this.previousStep();break;case"link":this.Tt();break;case"trigger_tour":t.tourId&&(this.Tt(),this.showTourById(t.tourId))}},this._instance=t,this.At=new wn(t)}Lt(t){var r=t.filter((t=>!t.disable_image_preload)).flatMap((t=>t.steps.flatMap(je)));for(var e of r)this.bt.has(e)||(this.bt.add(e),(new Image).src=e)}qt(){var t;if(!this.it)return null;var r=this.it.steps[this.ut];if(!r)return null;var e=null!==(t=this._instance.config.override_display_language)&&void 0!==t?t:navigator.language||navigator.userLanguage;return function(t,r){var e;if(!r||!t.translations)return t;var n=t.translations,o=null!==(e=n[r])&&void 0!==e?e:n[r.split("-")[0]];if(!o)return ye.info('No matching translation for "'+r+'" in step '+t.id+", using default"),t;var i=a({},t);return gr(o.content)||(i.content=o.content),gr(o.contentHtml)||(i.contentHtml=o.contentHtml),o.buttons&&i.buttons&&(i.buttons={primary:i.buttons.primary&&a({},i.buttons.primary,o.buttons.primary),secondary:i.buttons.secondary&&a({},i.buttons.secondary,o.buttons.secondary)}),o.survey&&i.survey&&(i.survey=a({},i.survey,o.survey)),i}(r,null!=e?e:null)}xt(t){this.ut=t,this.Et()}Et(){this.it&&!this.st&&sn.h(dn,{tourId:this.it.id,stepIndex:this.ut})}It(){sn.v(dn)}jt(){var t=sn.p(dn);if(!t)return null;try{return JSON.parse(t)}catch(t){return null}}start(){if(!this.ht){var t=this.jt();t?this.zt(t.tourId,t.stepIndex,(()=>{this.$t()})):this.$t()}}$t(){this.ht=setInterval((()=>{this._t()}),1e3),this._t(!0),Or(kn,"visibilitychange",this.yt)}zt(t,r,e){var n;null==(n=this._instance.productTours)||n.getProductTours((n=>{var o=n.find((r=>r.id===t));o?(this.it=o,this.ut=r,this.ct=!0,this.kt()):n.length>0&&this.It(),e()}))}stop(){this.ht&&(clearInterval(this.ht),this.ht=null),kn.removeEventListener("visibilitychange",this.yt),this.Rt(),this.Ot(),this.Ct()}_t(t){var r;null!=kn&&kn.getElementById("__POSTHOG_TOOLBAR__")||null==(r=this._instance.productTours)||r.getProductTours((t=>{if(0!==t.length){this.Lt(t);var r=new Set,e=t.filter((t=>!this.vt.has(t.id)&&(pn(t)||vn(t))));e.length>0&&(this.At.register(e),e.forEach((t=>this.vt.add(t.id))));var n=this.it?[]:this.At.getTours();for(var o of t){var i,l=null==(i=o.conditions)?void 0:i.selector;if(l&&(r.add(o.id),this.Pt(o,l)),!this.it){var a=vn(o)||pn(o);if(o.auto_launch&&this.Zt(o)){if(!a){this.Dt(o,"auto");continue}n.includes(o.id)&&this.Dt(o,"event")}}}this.ft.forEach((t=>{var{tour:e}=t;r.has(e.id)||this.Nt(e.id)}))}else this.Rt()}),t)}Dt(t,r){var e,n=(null==(e=t.conditions)?void 0:e.autoShowDelaySeconds)||0;n>0?this.isTourPending(t.id)||this.queueTourWithDelay(t.id,n,r):this.showTour(t,{reason:r})}Zt(t){var r,e;if(!Sn(t))return xn.info("Tour "+t.id+" failed conditions check"),!1;var n=null!==(r=t.display_frequency)&&void 0!==r?r:"until_interacted",o=""+cn+t.id,i=""+hn+t.id,l=""+fn+t.id;switch(n){case"show_once":if(an.p(o))return xn.info("Tour "+t.id+" already shown (show_once frequency)"),!1;break;case"until_interacted":if(an.p(i)||an.p(l))return xn.info("Tour "+t.id+" already completed or dismissed"),!1}if(!this.Ft({flagKey:t.internal_targeting_flag_key}))return xn.info("Tour "+t.id+" failed feature flag check: "+t.internal_targeting_flag_key),!1;var a=null==(e=t.conditions)?void 0:e.linkedFlagVariant;return!!this.Ft({flagKey:t.linked_flag_key,flagVariant:a})||(xn.info("Tour "+t.id+" failed feature flag check: "+t.linked_flag_key+", variant: "+a),!1)}showTour(t,r){var e,n=null!==(e=null==r?void 0:r.reason)&&void 0!==e?e:"auto";this.cancelPendingTour(t.id),this.it=t,this.xt(0);var o=this.kt();return o?(this.wt(Y.SHOWN,{[X.TOUR_ID]:t.id,[X.TOUR_NAME]:t.name,[X.TOUR_ITERATION]:t.current_iteration||1,[X.TOUR_RENDER_REASON]:n}),this.st||(an.h(""+cn+t.id,!0),this._instance.capture("$set",{$set:{["$product_tour_shown/"+t.id]:!0}}))):this.Ct(),o}showTourById(t,r){var e;xn.info("showTourById("+t+")"),null==(e=this._instance.productTours)||e.getProductTours((e=>{var n=e.find((r=>r.id===t));n?this.showTour(n,{reason:null!=r?r:"api"}):xn.warn("could not find tour",t)}))}previewTour(t){xn.info("Previewing tour "+t.id),this.Ct(),this.st=!0,this.it=t,this.ut=0,this.kt()}Tt(){this.it&&(this.wt(Y.COMPLETED,{[X.TOUR_ID]:this.it.id,[X.TOUR_STEPS_COUNT]:this.it.steps.length}),this.st||(an.h(""+hn+this.it.id,!0),this._instance.capture("$set",{$set:{["$product_tour_completed/"+this.it.id]:!0}})),Tn.dispatchEvent(new CustomEvent("PHProductTourCompleted",{detail:{tourId:this.it.id}})),this.Ct())}kt(t){var r;if(void 0===t&&(t=0),!this.it)return!1;var e=this.qt();if(!e)return xn.warn("Step "+this.ut+" not found in tour "+this.it.id),this.Ct(),!1;if("banner"===e.type)return this.Ht(),this.ct=!1,this.Vt(),!0;if("survey"===e.type)return e.survey?(this.Bt(),!0):(xn.warn("Unable to render survey step - survey data not found"),!1);if(!ke(e))return this.Ht(),this.ct=!1,this.Ut(null),!0;var n=Ce(e),o={[X.USE_MANUAL_SELECTOR]:null!==(r=e.useManualSelector)&&void 0!==r&&r,[X.INFERENCE_DATA_PRESENT]:!!e.inferenceData},i=this.ut>0?this.it.steps[this.ut-1]:null,l="click"===(null==i?void 0:i.progressionTrigger)||this.ct;if("not_found"===n.error||"not_visible"===n.error){if(l&&t<20)return setTimeout((()=>{this.kt(t+1)}),100),!1;var u=100*t;return this.Qt(n,a({[X.TOUR_WAITED_FOR_ELEMENT]:l,[X.TOUR_WAIT_DURATION_MS]:u},o)),0!==this.ut||this.ct?(xn.warn('Tour "'+this.it.name+'" dismissed: element for step '+this.ut+" became unavailable ("+n.error+")"+(l?" after waiting "+u+"ms":"")),this.dismissTour("element_unavailable"),!1):(xn.warn('Tour "'+this.it.name+'" failed to show: element for first step not found ('+n.error+")"),!1)}if("multiple_matches"===n.error&&this.Qt(n,o),!n.element)return!1;var s=n.element,c=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}}(s);return this.Ht(a({[X.TOUR_STEP_SELECTOR]:e.selector,[X.TOUR_STEP_SELECTOR_FOUND]:!0,[X.TOUR_STEP_ELEMENT_TAG]:c.tag,[X.TOUR_STEP_ELEMENT_ID]:c.id,[X.TOUR_STEP_ELEMENT_CLASSES]:c.classes,[X.TOUR_STEP_ELEMENT_TEXT]:c.text},o)),this.ct=!1,this.Ut(s),!0}Ut(t,r,e){if(this.it){var n=this.qt();if(n){var{shadow:o}=function(t){var r=qn+"-"+t.id,e=kn.querySelector("."+r);if(e&&e.shadowRoot)return{shadow:e.shadowRoot,isNewlyCreated:!1};var n=kn.createElement("div");n.className=r,Ae(n,t.appearance);var o=n.attachShadow({mode:"open"}),i=xe();return i&&o.appendChild(i),kn.body.appendChild(n),{shadow:o,isNewlyCreated:!0}}(this.it);Q(Re(tn,{tour:this.it,step:n,stepIndex:this.ut,totalSteps:this.it.steps.length,targetElement:t,onNext:this.nextStep,onPrevious:this.previousStep,onDismiss:e||this.dismissTour,onSurveySubmit:r,onButtonClick:this.Mt}),o)}}}Vt(){if(this.it){var t=this.qt();if(t){var r,e=function(t,r){var e=qn+"-"+t.id,n=kn.querySelector("."+e);if(n&&n.shadowRoot)return{shadow:n.shadowRoot,isNewlyCreated:!1};var o=kn.createElement("div");o.className=e,Ae(o,t.appearance);var i=o.attachShadow({mode:"open"}),l=xe();if(l&&i.appendChild(l),"custom"===(null==r?void 0:r.behavior)&&r.selector){var a=kn.querySelector(r.selector);if(!a)return xn.warn("Custom banner container not found: "+r.selector+". Banner will not be displayed."),null;a.appendChild(o)}else kn.body.insertBefore(o,kn.body.firstChild);return{shadow:i,isNewlyCreated:!0}}(this.it,t.bannerConfig);if(!e)return this.wt(Y.BANNER_CONTAINER_SELECTOR_FAILED,{[X.TOUR_ID]:this.it.id,[X.TOUR_BANNER_SELECTOR]:null==t||null==(r=t.bannerConfig)?void 0:r.selector}),void this.dismissTour("container_unavailable");var{shadow:n}=e;Q(Re(on,{step:t,onDismiss:()=>this.dismissTour("user_clicked_skip"),onActionClick:this.St,displayFrequency:this.it.display_frequency}),n)}}}Bt(){var t,r,e;if(this.it){var n=this.it.id,o=this.qt();if(o){var i=o.linkedSurveyId,l=o.linkedSurveyQuestionId,u=(null==(t=o.survey)?void 0:t.questionText)||"";this.Ht({[X.TOUR_LINKED_SURVEY_ID]:i}),this.wt(rt.SHOWN,{[et.SURVEY_ID]:i,[et.PRODUCT_TOUR_ID]:n,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)});this.Ut(null,(t=>{var r,e,o=l?"$survey_response_"+l:"$survey_response";this.wt(rt.SENT,a({[et.SURVEY_ID]:i,[et.PRODUCT_TOUR_ID]:n,[et.SURVEY_QUESTIONS]:[{id:l,question:u,response:t}],[et.SURVEY_COMPLETED]:!0,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)},!br(t)&&{[o]:t})),xn.info("Survey "+i+" completed",br(t)?"(skipped)":"with response: "+t),this.nextStep()}),(t=>{var r,e;this.wt(rt.DISMISSED,{[et.SURVEY_ID]:i,[et.PRODUCT_TOUR_ID]:n,[et.SURVEY_QUESTIONS]:[{id:l,question:u,response:null}],[et.SURVEY_PARTIALLY_COMPLETED]:!1,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)}),xn.info("Survey "+i+" dismissed"),this.dismissTour(t)})),xn.info("Rendered survey step for tour step "+this.ut)}}}Ft(t){var{flagKey:r,flagVariant:e}=t;if(!r)return!0;var n=!!this._instance.featureFlags.isFeatureEnabled(r,{send_event:!r.startsWith("product-tour-targeting-")}),o=!0;e&&(o=this._instance.featureFlags.getFeatureFlag(r,{send_event:!1})===e||"any"===e);return n&&o}Ct(){var t,r,e;this.it&&(t=this.it.id,r=qn+"-"+t,null!=(e=kn.querySelector("."+r))&&e.shadowRoot&&Q(null,e.shadowRoot),null==e||e.remove()),this.it=null,this.ut=0,this.st=!1,this.ct=!1,this.It()}Pt(t,r){var e=kn.querySelector(r),n=this.ft.get(t.id);if(e){if(n){if(e===n.element)return;xn.info("Trigger element changed for tour "+t.id+". Re-attaching listener."),this.Nt(t.id)}if(!e.hasAttribute(Mn)){var o=e=>{var n;if(this.it)xn.info("Tour "+t.id+" trigger clicked but another tour is active");else{var o;if(null==(n=this._instance.productTours)||n.getProductTours((r=>{o=r.find((r=>r.id===t.id))})),!o)return xn.warn("Tour "+t.id+" no longer exists. Removing stale listener."),void this.Nt(t.id);Cn(o)?(xn.info("Tour "+t.id+" triggered by click on "+r),this.showTour(o,{reason:"trigger"})?e.preventDefault():xn.info("Tour "+t.id+" failed to show; not intercepting click.")):xn.warn("Tour "+t.id+" trigger clicked, but tour is not launched - not showing tour.")}};Or(e,"click",o),e.setAttribute(Mn,t.id),this.ft.set(t.id,{element:e,listener:o,tour:t}),xn.info("Attached trigger listener for tour "+t.id+" on "+r)}}else n&&this.Nt(t.id)}Nt(t){var r=this.ft.get(t);r&&(r.element.removeEventListener("click",r.listener),r.element.removeAttribute(Mn),this.ft.delete(t),xn.info("Removed trigger listener for tour "+t))}Rt(){this.ft.forEach(((t,r)=>{this.Nt(r)}))}wt(t,r){this.st||this._instance.capture(t,r)}Ht(t){if(this.it){var r=this.it.steps[this.ut];this.wt(Y.STEP_SHOWN,a({[X.TOUR_ID]:this.it.id,[X.TOUR_STEP_ID]:r.id,[X.TOUR_STEP_ORDER]:this.ut,[X.TOUR_STEP_TYPE]:r.type},t))}}Qt(t,r){if(this.it){var e=this.it.steps[this.ut];this.wt(Y.STEP_SELECTOR_FAILED,a({[X.TOUR_ID]:this.it.id,[X.TOUR_STEP_ID]:e.id,[X.TOUR_STEP_ORDER]:this.ut,[X.TOUR_STEP_SELECTOR]:e.selector,[X.TOUR_ERROR]:t.error,[X.TOUR_MATCHES_COUNT]:t.matchCount,[X.TOUR_FAILURE_PHASE]:"runtime"},r))}}getActiveProductTours(t){var r;null==(r=this._instance.productTours)||r.getProductTours(((r,e)=>{if(null!=e&&e.isLoaded){var n=r.filter((t=>this.Zt(t)));t(n,e)}else t([],e)}))}resetTour(t){an.v(""+cn+t),an.v(""+hn+t),an.v(""+fn+t)}resetAllTours(){var t=null==Tn?void 0:Tn.localStorage;if(t){for(var r=[],e=0;e<t.length;e++){var n=t.key(e);(null!=n&&n.startsWith(cn)||null!=n&&n.startsWith(hn)||null!=n&&n.startsWith(fn))&&r.push(n)}r.forEach((t=>an.v(t)))}}cancelPendingTour(t){var r=this.dt.get(t);r&&(clearTimeout(r),this.dt.delete(t),xn.info("Cancelled pending tour: "+t))}Ot(){this.dt.forEach((t=>clearTimeout(t))),this.dt.clear()}isTourPending(t){return this.dt.has(t)}queueTourWithDelay(t,r,e){xn.info("Queueing tour "+t+" with "+r+"s delay");var n=setTimeout((()=>{this.dt.delete(t),xn.info("Delay elapsed for tour "+t+", showing now"),this.showTourById(t,e)}),1e3*r);this.dt.set(t,n)}}function Ln(t,r){if(i){var e=new An(t);return r&&e.start(),e}}l.__PosthogExtensions__=l.__PosthogExtensions__||{},l.__PosthogExtensions__.generateProductTours=Ln,t.default=Ln,t.elementIsVisible=Cr,t.findElement=Ar,t.getElementPath=function(t,r){if(void 0===r&&(r=4),!t)return null;for(var e=[],n=t;n&&e.length<r&&"BODY"!==n.tagName;){var o=n.tagName.toLowerCase();n.id?o+="#"+n.id:n.classList.length&&(o+="."+n.classList[0]),e.unshift(o),n=n.parentElement}return e.join(" > ")},Object.defineProperty(t,"__esModule",{value:!0})}({});
|
|
1
|
+
!function(t){"use strict";var r="undefined"!=typeof window?window:void 0,e="undefined"!=typeof globalThis?globalThis:r;"undefined"==typeof self&&(e.self=e),"undefined"==typeof File&&(e.File=function(){});var n=Array.prototype.forEach,o=null==e?void 0:e.navigator,i=null==e?void 0:e.document;null==e||e.location,null==e||e.fetch,null!=e&&e.XMLHttpRequest&&"withCredentials"in new e.XMLHttpRequest&&e.XMLHttpRequest,null==e||e.AbortController,null==o||o.userAgent;var l=null!=r?r:{};function a(){return a=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},a.apply(null,arguments)}var u,s,c,h,f,d,p,v,m,g,b,y,w={},_=[],x=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,k=Array.isArray;function T(t,r){for(var e in r)t[e]=r[e];return t}function C(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function S(t,r,e,n,o){var i={type:t,props:r,key:e,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++c:o,__i:-1,__u:0};return null==o&&null!=s.vnode&&s.vnode(i),i}function q(t){return t.children}function M(t,r){this.props=t,this.context=r}function A(t,r){if(null==r)return t.__?A(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?A(t):null}function L(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 L(t)}}function E(t){(!t.__d&&(t.__d=!0)&&h.push(t)&&!$.__r++||f!=s.debounceRendering)&&((f=s.debounceRendering)||d)($)}function $(){for(var t,r,e,n,o,i,l,a=1;h.length;)h.length>a&&h.sort(p),t=h.shift(),a=h.length,t.__d&&(e=void 0,n=void 0,o=(n=(r=t).__v).__e,i=[],l=[],r.__P&&((e=T({},n)).__v=n.__v+1,s.vnode&&s.vnode(e),Z(r.__P,e,n,r.__n,r.__P.namespaceURI,32&n.__u?[o]:null,i,null==o?A(n):o,!!(32&n.__u),l),e.__v=n.__v,e.__.__k[e.__i]=e,N(i,e,l),n.__e=n.__=null,e.__e!=o&&L(e)));$.__r=0}function I(t,r,e,n,o,i,l,a,u,s,c){var h,f,d,p,v,m,g,b=n&&n.__k||_,y=r.length;for(u=function(t,r,e,n,o){var i,l,a,u,s,c=e.length,h=c,f=0;for(t.__k=new Array(o),i=0;i<o;i++)null!=(l=r[i])&&"boolean"!=typeof l&&"function"!=typeof l?("string"==typeof l||"number"==typeof l||"bigint"==typeof l||l.constructor==String?l=t.__k[i]=S(null,l,null,null,null):k(l)?l=t.__k[i]=S(q,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?l=t.__k[i]=S(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):t.__k[i]=l,u=i+f,l.__=t,l.__b=t.__b+1,a=null,-1!=(s=l.__i=z(l,e,u,h))&&(h--,(a=e[s])&&(a.__u|=2)),null==a||null==a.__v?(-1==s&&(o>c?f--:o<c&&f++),"function"!=typeof l.type&&(l.__u|=4)):s!=u&&(s==u-1?f--:s==u+1?f++:(s>u?f--:f++,l.__u|=4))):t.__k[i]=null;if(h)for(i=0;i<c;i++)null!=(a=e[i])&&0==(2&a.__u)&&(a.__e==n&&(n=A(a)),B(a,a));return n}(e,r,b,u,y),h=0;h<y;h++)null!=(d=e.__k[h])&&(f=-1==d.__i?w:b[d.__i]||w,d.__i=h,m=Z(t,d,f,o,i,l,a,u,s,c),p=d.__e,d.ref&&f.ref!=d.ref&&(f.ref&&V(f.ref,null,d),c.push(d.ref,d.__c||p,d)),null==v&&null!=p&&(v=p),(g=!!(4&d.__u))||f.__k===d.__k?u=j(d,u,t,g):"function"==typeof d.type&&void 0!==m?u=m:p&&(u=p.nextSibling),d.__u&=-7);return e.__e=v,u}function j(t,r,e,n){var o,i;if("function"==typeof t.type){for(o=t.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=t,r=j(o[i],r,e,n));return r}t.__e!=r&&(n&&(r&&t.type&&!r.parentNode&&(r=A(t)),e.insertBefore(t.__e,r||null)),r=t.__e);do{r=r&&r.nextSibling}while(null!=r&&8==r.nodeType);return r}function z(t,r,e,n){var o,i,l,a=t.key,u=t.type,s=r[e],c=null!=s&&0==(2&s.__u);if(null===s&&null==a||c&&a==s.key&&u==s.type)return e;if(n>(c?1:0))for(o=e-1,i=e+1;o>=0||i<r.length;)if(null!=(s=r[l=o>=0?o--:i++])&&0==(2&s.__u)&&a==s.key&&u==s.type)return l;return-1}function R(t,r,e){"-"==r[0]?t.setProperty(r,null==e?"":e):t[r]=null==e?"":"number"!=typeof e||x.test(r)?e:e+"px"}function O(t,r,e,n,o){var i,l;t:if("style"==r)if("string"==typeof e)t.style.cssText=e;else{if("string"==typeof n&&(t.style.cssText=n=""),n)for(r in n)e&&r in e||R(t.style,r,"");if(e)for(r in e)n&&e[r]==n[r]||R(t.style,r,e[r])}else if("o"==r[0]&&"n"==r[1])i=r!=(r=r.replace(v,"$1")),l=r.toLowerCase(),r=l in t||"onFocusOut"==r||"onFocusIn"==r?l.slice(2):r.slice(2),t.l||(t.l={}),t.l[r+i]=e,e?n?e.u=n.u:(e.u=m,t.addEventListener(r,i?b:g,i)):t.removeEventListener(r,i?b:g,i);else{if("http://www.w3.org/2000/svg"==o)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&&"popover"!=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,"popover"==r&&1==e?"":e))}}function P(t){return function(r){if(this.l){var e=this.l[r.type+t];if(null==r.t)r.t=m++;else if(r.t<e.u)return;return e(s.event?s.event(r):r)}}}function Z(t,r,e,n,o,i,l,a,u,c){var h,f,d,p,v,m,g,b,y,w,_,$,x,S,A,L,E,j=r.type;if(void 0!==r.constructor)return null;128&e.__u&&(u=!!(32&e.__u),i=[a=r.__e=e.__e]),(h=s.__b)&&h(r);t:if("function"==typeof j)try{if(b=r.props,y="prototype"in j&&j.prototype.render,w=(h=j.contextType)&&n[h.__c],_=h?w?w.props.value:h.__:n,e.__c?g=(f=r.__c=e.__c).__=f.__E:(y?r.__c=f=new j(b,_):(r.__c=f=new M(b,_),f.constructor=j,f.render=U),w&&w.sub(f),f.state||(f.state={}),f.__n=n,d=f.__d=!0,f.__h=[],f._sb=[]),y&&null==f.__s&&(f.__s=f.state),y&&null!=j.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=T({},f.__s)),T(f.__s,j.getDerivedStateFromProps(b,f.__s))),p=f.props,v=f.state,f.__v=r,d)y&&null==j.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),y&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(y&&null==j.getDerivedStateFromProps&&b!==p&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(b,_),r.__v==e.__v||!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(b,f.__s,_)){for(r.__v!=e.__v&&(f.props=b,f.state=f.__s,f.__d=!1),r.__e=e.__e,r.__k=e.__k,r.__k.some((function(t){t&&(t.__=r)})),$=0;$<f._sb.length;$++)f.__h.push(f._sb[$]);f._sb=[],f.__h.length&&l.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(b,f.__s,_),y&&null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(p,v,m)}))}if(f.context=_,f.props=b,f.__P=t,f.__e=!1,x=s.__r,S=0,y){for(f.state=f.__s,f.__d=!1,x&&x(r),h=f.render(f.props,f.state,f.context),A=0;A<f._sb.length;A++)f.__h.push(f._sb[A]);f._sb=[]}else do{f.__d=!1,x&&x(r),h=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=T(T({},n),f.getChildContext())),y&&!d&&null!=f.getSnapshotBeforeUpdate&&(m=f.getSnapshotBeforeUpdate(p,v)),L=h,null!=h&&h.type===q&&null==h.key&&(L=F(h.props.children)),a=I(t,k(L)?L:[L],r,e,n,o,i,l,a,u,c),f.base=r.__e,r.__u&=-161,f.__h.length&&l.push(f),g&&(f.__E=f.__=null)}catch(t){if(r.__v=null,u||null!=i)if(t.then){for(r.__u|=u?160:128;a&&8==a.nodeType&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,r.__e=a}else{for(E=i.length;E--;)C(i[E]);D(r)}else r.__e=e.__e,r.__k=e.__k,t.then||D(r);s.__e(t,r,e)}else null==i&&r.__v==e.__v?(r.__k=e.__k,r.__e=e.__e):a=r.__e=H(e.__e,r,e,n,o,i,l,u,c);return(h=s.diffed)&&h(r),128&r.__u?void 0:a}function D(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(D)}function N(t,r,e){for(var n=0;n<e.length;n++)V(e[n],e[++n],e[++n]);s.__c&&s.__c(r,t),t.some((function(r){try{t=r.__h,r.__h=[],t.some((function(t){t.call(r)}))}catch(t){s.__e(t,r.__v)}}))}function F(t){return"object"!=typeof t||null==t||t.__b&&t.__b>0?t:k(t)?t.map(F):T({},t)}function H(t,r,e,n,o,i,l,a,c){var h,f,d,p,v,m,g,b=e.props||w,y=r.props,_=r.type;if("svg"==_?o="http://www.w3.org/2000/svg":"math"==_?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(h=0;h<i.length;h++)if((v=i[h])&&"setAttribute"in v==!!_&&(_?v.localName==_:3==v.nodeType)){t=v,i[h]=null;break}if(null==t){if(null==_)return document.createTextNode(y);t=document.createElementNS(o,_,y.is&&y),a&&(s.__m&&s.__m(r,i),a=!1),i=null}if(null==_)b===y||a&&t.data==y||(t.data=y);else{if(i=i&&u.call(t.childNodes),!a&&null!=i)for(b={},h=0;h<t.attributes.length;h++)b[(v=t.attributes[h]).name]=v.value;for(h in b)if(v=b[h],"children"==h);else if("dangerouslySetInnerHTML"==h)d=v;else if(!(h in y)){if("value"==h&&"defaultValue"in y||"checked"==h&&"defaultChecked"in y)continue;O(t,h,null,v,o)}for(h in y)v=y[h],"children"==h?p=v:"dangerouslySetInnerHTML"==h?f=v:"value"==h?m=v:"checked"==h?g=v:a&&"function"!=typeof v||b[h]===v||O(t,h,v,b[h],o);if(f)a||d&&(f.__html==d.__html||f.__html==t.innerHTML)||(t.innerHTML=f.__html),r.__k=[];else if(d&&(t.innerHTML=""),I("template"==r.type?t.content:t,k(p)?p:[p],r,e,n,"foreignObject"==_?"http://www.w3.org/1999/xhtml":o,i,l,i?i[0]:e.__k&&A(e,0),a,c),null!=i)for(h=i.length;h--;)C(i[h]);a||(h="value","progress"==_&&null==m?t.removeAttribute("value"):null!=m&&(m!==t[h]||"progress"==_&&!m||"option"==_&&m!=b[h])&&O(t,h,m,b[h],o),h="checked",null!=g&&g!=t[h]&&O(t,h,g,b[h],o))}return t}function V(t,r,e){try{if("function"==typeof t){var n="function"==typeof t.__u;n&&t.__u(),n&&null==r||(t.__u=t(r))}else t.current=r}catch(t){s.__e(t,e)}}function B(t,r,e){var n,o;if(s.unmount&&s.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||V(n,null,r)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){s.__e(t,r)}n.base=n.__P=null}if(n=t.__k)for(o=0;o<n.length;o++)n[o]&&B(n[o],r,e||"function"!=typeof t.type);e||C(t.__e),t.__c=t.__=t.__e=void 0}function U(t,r,e){return this.constructor(t,e)}function Q(t,r,e){var n,o,i;r==document&&(r=document.documentElement),s.__&&s.__(t,r),n=!1?null:r.__k,o=[],i=[],Z(r,t=r.__k=function(t,r,e){var n,o,i,l={};for(i in r)"key"==i?n=r[i]:"ref"==i?o=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 S(t,l,n,o,null)}(q,null,[t]),n||w,w,r.namespaceURI,n?null:r.firstChild?u.call(r.childNodes):null,o,n?n.__e:r.firstChild,false,i),N(o,t,i)}u=_.slice,s={__e:function(t,r,e,n){for(var o,i,l;r=r.__;)if((o=r.__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(r){t=r}throw t}},c=0,M.prototype.setState=function(t,r){var e;e=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=T({},this.state),"function"==typeof t&&(t=t(T({},e),this.props)),t&&T(e,t),null!=t&&this.__v&&(r&&this._sb.push(r),E(this))},M.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),E(this))},M.prototype.render=q,h=[],d="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,p=function(t,r){return t.__v.__b-r.__v.__b},$.__r=0,v=/(PointerCapture)$|Capture$/i,m=0,g=P(!1),b=P(!0),y=0;var W={backgroundColor:"#ffffff",textColor:"#1d1f27",buttonColor:"#1d1f27",borderRadius:8,buttonBorderRadius:6,borderColor:"#e5e7eb",fontFamily:"system-ui",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",showOverlay:!0,whiteLabel:!1,dismissOnClickOutside:!0,zIndex:2147483646},Y=function(t){return t.SHOWN="product tour shown",t.DISMISSED="product tour dismissed",t.COMPLETED="product tour completed",t.STEP_SHOWN="product tour step shown",t.STEP_COMPLETED="product tour step completed",t.BUTTON_CLICKED="product tour button clicked",t.STEP_SELECTOR_FAILED="product tour step selector failed",t.BANNER_CONTAINER_SELECTOR_FAILED="product tour banner container selector failed",t.BANNER_ACTION_CLICKED="product tour banner action clicked",t}({}),X=function(t){return t.TOUR_ID="$product_tour_id",t.TOUR_NAME="$product_tour_name",t.TOUR_ITERATION="$product_tour_iteration",t.TOUR_RENDER_REASON="$product_tour_render_reason",t.TOUR_STEP_ID="$product_tour_step_id",t.TOUR_STEP_ORDER="$product_tour_step_order",t.TOUR_STEP_TYPE="$product_tour_step_type",t.TOUR_DISMISS_REASON="$product_tour_dismiss_reason",t.TOUR_BUTTON_TEXT="$product_tour_button_text",t.TOUR_BUTTON_ACTION="$product_tour_button_action",t.TOUR_BUTTON_LINK="$product_tour_button_link",t.TOUR_BUTTON_TOUR_ID="$product_tour_button_tour_id",t.TOUR_STEPS_COUNT="$product_tour_steps_count",t.TOUR_STEP_SELECTOR="$product_tour_step_selector",t.TOUR_STEP_SELECTOR_FOUND="$product_tour_step_selector_found",t.TOUR_STEP_ELEMENT_TAG="$product_tour_step_element_tag",t.TOUR_STEP_ELEMENT_ID="$product_tour_step_element_id",t.TOUR_STEP_ELEMENT_CLASSES="$product_tour_step_element_classes",t.TOUR_STEP_ELEMENT_TEXT="$product_tour_step_element_text",t.TOUR_ERROR="$product_tour_error",t.TOUR_MATCHES_COUNT="$product_tour_matches_count",t.TOUR_FAILURE_PHASE="$product_tour_failure_phase",t.TOUR_WAITED_FOR_ELEMENT="$product_tour_waited_for_element",t.TOUR_WAIT_DURATION_MS="$product_tour_wait_duration_ms",t.TOUR_BANNER_SELECTOR="$product_tour_banner_selector",t.TOUR_LINKED_SURVEY_ID="$product_tour_linked_survey_id",t.USE_MANUAL_SELECTOR="$use_manual_selector",t.INFERENCE_DATA_PRESENT="$inference_data_present",t}({}),G=function(t){return t.Activation="events",t.Cancellation="cancelEvents",t}({}),K=function(t){return t.Button="button",t.Tab="tab",t.Selector="selector",t}({}),J=function(t){return t.TopLeft="top_left",t.TopRight="top_right",t.TopCenter="top_center",t.MiddleLeft="middle_left",t.MiddleRight="middle_right",t.MiddleCenter="middle_center",t.Left="left",t.Center="center",t.Right="right",t.NextToTrigger="next_to_trigger",t}({}),tt=function(t){return t.Popover="popover",t.API="api",t.Widget="widget",t.ExternalSurvey="external_survey",t}({}),rt=function(t){return t.SHOWN="survey shown",t.DISMISSED="survey dismissed",t.SENT="survey sent",t.ABANDONED="survey abandoned",t}({}),et=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:nt,setPrototypeOf:ot,isFrozen:it,getPrototypeOf:lt,getOwnPropertyDescriptor:at}=Object,{freeze:ut,seal:st,create:ct}=Object,{apply:ht,construct:ft}="undefined"!=typeof Reflect&&Reflect;ut||(ut=function(t){return t}),st||(st=function(t){return t}),ht||(ht=function(t,r){for(var e=arguments.length,n=new Array(e>2?e-2:0),o=2;o<e;o++)n[o-2]=arguments[o];return t.apply(r,n)}),ft||(ft=function(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),n=1;n<r;n++)e[n-1]=arguments[n];return new t(...e)});var dt,pt=Mt(Array.prototype.forEach),vt=Mt(Array.prototype.lastIndexOf),mt=Mt(Array.prototype.pop),gt=Mt(Array.prototype.push),bt=Mt(Array.prototype.splice),yt=Mt(String.prototype.toLowerCase),wt=Mt(String.prototype.toString),_t=Mt(String.prototype.match),xt=Mt(String.prototype.replace),kt=Mt(String.prototype.indexOf),Tt=Mt(String.prototype.trim),Ct=Mt(Object.prototype.hasOwnProperty),St=Mt(RegExp.prototype.test),qt=(dt=TypeError,function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return ft(dt,r)});function Mt(t){return function(r){r instanceof RegExp&&(r.lastIndex=0);for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return ht(t,r,n)}}function At(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yt;ot&&ot(t,null);for(var n=r.length;n--;){var o=r[n];if("string"==typeof o){var i=e(o);i!==o&&(it(r)||(r[n]=i),o=i)}t[o]=!0}return t}function Lt(t){for(var r=0;r<t.length;r++){Ct(t,r)||(t[r]=null)}return t}function Et(t){var r=ct(null);for(var[e,n]of nt(t)){Ct(t,e)&&(Array.isArray(n)?r[e]=Lt(n):n&&"object"==typeof n&&n.constructor===Object?r[e]=Et(n):r[e]=n)}return r}function It(t,r){for(;null!==t;){var e=at(t,r);if(e){if(e.get)return Mt(e.get);if("function"==typeof e.value)return Mt(e.value)}t=lt(t)}return function(){return null}}var jt=ut(["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"]),zt=ut(["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"]),$t=ut(["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"]),Rt=ut(["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"]),Ot=ut(["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"]),Pt=ut(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Zt=ut(["#text"]),Dt=ut(["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"]),Nt=ut(["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"]),Ft=ut(["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"]),Ht=ut(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Vt=st(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Bt=st(/<%[\w\W]*|[\w\W]*%>/gm),Ut=st(/\$\{[\w\W]*/gm),Qt=st(/^data-[\-\w.\u00B7-\uFFFF]+$/),Wt=st(/^aria-[\-\w]+$/),Yt=st(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Xt=st(/^(?:\w+script|data):/i),Gt=st(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Kt=st(/^html$/i),Jt=st(/^[a-z][.\w]*(-[.\w]+)+$/i),tr=Object.freeze({__proto__:null,ARIA_ATTR:Wt,ATTR_WHITESPACE:Gt,CUSTOM_ELEMENT:Jt,DATA_ATTR:Qt,DOCTYPE_NAME:Kt,ERB_EXPR:Bt,IS_ALLOWED_URI:Yt,IS_SCRIPT_OR_DATA:Xt,MUSTACHE_EXPR:Vt,TMPLIT_EXPR:Ut}),rr=1,er=3,nr=7,or=8,ir=9,lr=function(){return"undefined"==typeof window?null:window};var ar=function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lr(),e=r=>t(r);if(e.version="3.3.1",e.removed=[],!r||!r.document||r.document.nodeType!==ir||!r.Element)return e.isSupported=!1,e;var n,{document:o}=r,i=o,l=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:u,Node:s,Element:c,NodeFilter:h,NamedNodeMap:f=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:d,DOMParser:p,trustedTypes:v}=r,m=c.prototype,g=It(m,"cloneNode"),b=It(m,"remove"),y=It(m,"nextSibling"),w=It(m,"childNodes"),_=It(m,"parentNode");if("function"==typeof u){var x=o.createElement("template");x.content&&x.content.ownerDocument&&(o=x.content.ownerDocument)}var k="",{implementation:T,createNodeIterator:C,createDocumentFragment:S,getElementsByTagName:q}=o,{importNode:M}=i,A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};e.isSupported="function"==typeof nt&&"function"==typeof _&&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:O,CUSTOM_ELEMENT:P}=tr,{IS_ALLOWED_URI:Z}=tr,D=null,N=At({},[...jt,...zt,...$t,...Ot,...Zt]),F=null,H=At({},[...Dt,...Nt,...Ft,...Ht]),V=Object.seal(ct(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,U=null,Q=Object.seal(ct(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),W=!0,Y=!0,X=!1,G=!0,K=!1,J=!0,tt=!1,rt=!1,et=!1,ot=!1,it=!1,lt=!1,at=!0,st=!1,ht=!0,ft=!1,dt={},Mt=null,Lt=At({},["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"]),Vt=null,Bt=At({},["audio","video","img","source","image","track"]),Ut=null,Qt=At({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Wt="http://www.w3.org/1998/Math/MathML",Xt="http://www.w3.org/2000/svg",Gt="http://www.w3.org/1999/xhtml",Jt=Gt,ar=!1,ur=null,sr=At({},[Wt,Xt,Gt],wt),cr=At({},["mi","mo","mn","ms","mtext"]),hr=At({},["annotation-xml"]),fr=At({},["title","style","font","a","script"]),dr=null,pr=["application/xhtml+xml","text/html"],vr=null,mr=null,gr=o.createElement("form"),br=function(t){return t instanceof RegExp||t instanceof Function},yr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!mr||mr!==t){if(t&&"object"==typeof t||(t={}),t=Et(t),dr=-1===pr.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,vr="application/xhtml+xml"===dr?wt:yt,D=Ct(t,"ALLOWED_TAGS")?At({},t.ALLOWED_TAGS,vr):N,F=Ct(t,"ALLOWED_ATTR")?At({},t.ALLOWED_ATTR,vr):H,ur=Ct(t,"ALLOWED_NAMESPACES")?At({},t.ALLOWED_NAMESPACES,wt):sr,Ut=Ct(t,"ADD_URI_SAFE_ATTR")?At(Et(Qt),t.ADD_URI_SAFE_ATTR,vr):Qt,Vt=Ct(t,"ADD_DATA_URI_TAGS")?At(Et(Bt),t.ADD_DATA_URI_TAGS,vr):Bt,Mt=Ct(t,"FORBID_CONTENTS")?At({},t.FORBID_CONTENTS,vr):Lt,B=Ct(t,"FORBID_TAGS")?At({},t.FORBID_TAGS,vr):Et({}),U=Ct(t,"FORBID_ATTR")?At({},t.FORBID_ATTR,vr):Et({}),dt=!!Ct(t,"USE_PROFILES")&&t.USE_PROFILES,W=!1!==t.ALLOW_ARIA_ATTR,Y=!1!==t.ALLOW_DATA_ATTR,X=t.ALLOW_UNKNOWN_PROTOCOLS||!1,G=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,K=t.SAFE_FOR_TEMPLATES||!1,J=!1!==t.SAFE_FOR_XML,tt=t.WHOLE_DOCUMENT||!1,ot=t.RETURN_DOM||!1,it=t.RETURN_DOM_FRAGMENT||!1,lt=t.RETURN_TRUSTED_TYPE||!1,et=t.FORCE_BODY||!1,at=!1!==t.SANITIZE_DOM,st=t.SANITIZE_NAMED_PROPS||!1,ht=!1!==t.KEEP_CONTENT,ft=t.IN_PLACE||!1,Z=t.ALLOWED_URI_REGEXP||Yt,Jt=t.NAMESPACE||Gt,cr=t.MATHML_TEXT_INTEGRATION_POINTS||cr,hr=t.HTML_INTEGRATION_POINTS||hr,V=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&br(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&br(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),K&&(Y=!1),it&&(ot=!0),dt&&(D=At({},Zt),F=[],!0===dt.html&&(At(D,jt),At(F,Dt)),!0===dt.svg&&(At(D,zt),At(F,Nt),At(F,Ht)),!0===dt.svgFilters&&(At(D,$t),At(F,Nt),At(F,Ht)),!0===dt.mathMl&&(At(D,Ot),At(F,Ft),At(F,Ht))),t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?Q.tagCheck=t.ADD_TAGS:(D===N&&(D=Et(D)),At(D,t.ADD_TAGS,vr))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?Q.attributeCheck=t.ADD_ATTR:(F===H&&(F=Et(F)),At(F,t.ADD_ATTR,vr))),t.ADD_URI_SAFE_ATTR&&At(Ut,t.ADD_URI_SAFE_ATTR,vr),t.FORBID_CONTENTS&&(Mt===Lt&&(Mt=Et(Mt)),At(Mt,t.FORBID_CONTENTS,vr)),t.ADD_FORBID_CONTENTS&&(Mt===Lt&&(Mt=Et(Mt)),At(Mt,t.ADD_FORBID_CONTENTS,vr)),ht&&(D["#text"]=!0),tt&&At(D,["html","head","body"]),D.table&&(At(D,["tbody"]),delete B.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw qt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw qt('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,r){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;var e=null,n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(e=r.getAttribute(n));var o="dompurify"+(e?"#"+e:"");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(""));ut&&ut(t),mr=t}},wr=At({},[...zt,...$t,...Rt]),_r=At({},[...Ot,...Pt]),xr=function(t){gt(e.removed,{element:t});try{_(t).removeChild(t)}catch(r){b(t)}},kr=function(t,r){try{gt(e.removed,{attribute:r.getAttributeNode(t),from:r})}catch(t){gt(e.removed,{attribute:null,from:r})}if(r.removeAttribute(t),"is"===t)if(ot||it)try{xr(r)}catch(t){}else try{r.setAttribute(t,"")}catch(t){}},Tr=function(t){var r=null,e=null;if(et)t="<remove></remove>"+t;else{var i=_t(t,/^[\r\n\t ]+/);e=i&&i[0]}"application/xhtml+xml"===dr&&Jt===Gt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var l=n?n.createHTML(t):t;if(Jt===Gt)try{r=(new p).parseFromString(l,dr)}catch(t){}if(!r||!r.documentElement){r=T.createDocument(Jt,"template",null);try{r.documentElement.innerHTML=ar?k:l}catch(t){}}var a=r.body||r.documentElement;return t&&e&&a.insertBefore(o.createTextNode(e),a.childNodes[0]||null),Jt===Gt?q.call(r,tt?"html":"body")[0]:tt?r.documentElement:a},Cr=function(t){return C.call(t.ownerDocument||t,t,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Sr=function(t){return t instanceof d&&("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)},qr=function(t){return"function"==typeof s&&t instanceof s};function Mr(t,r,n){pt(t,(t=>{t.call(e,r,n,mr)}))}var Ar=function(t){var r=null;if(Mr(A.beforeSanitizeElements,t,null),Sr(t))return xr(t),!0;var n=vr(t.nodeName);if(Mr(A.uponSanitizeElement,t,{tagName:n,allowedTags:D}),J&&t.hasChildNodes()&&!qr(t.firstElementChild)&&St(/<[/\w!]/g,t.innerHTML)&&St(/<[/\w!]/g,t.textContent))return xr(t),!0;if(t.nodeType===nr)return xr(t),!0;if(J&&t.nodeType===or&&St(/<[/\w]/g,t.data))return xr(t),!0;if(!(Q.tagCheck instanceof Function&&Q.tagCheck(n))&&(!D[n]||B[n])){if(!B[n]&&Er(n)){if(V.tagNameCheck instanceof RegExp&&St(V.tagNameCheck,n))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(n))return!1}if(ht&&!Mt[n]){var o=_(t)||t.parentNode,i=w(t)||t.childNodes;if(i&&o)for(var l=i.length-1;l>=0;--l){var a=g(i[l],!0);a.__removalCount=(t.__removalCount||0)+1,o.insertBefore(a,y(t))}}return xr(t),!0}return t instanceof c&&!function(t){var r=_(t);r&&r.tagName||(r={namespaceURI:Jt,tagName:"template"});var e=yt(t.tagName),n=yt(r.tagName);return!!ur[t.namespaceURI]&&(t.namespaceURI===Xt?r.namespaceURI===Gt?"svg"===e:r.namespaceURI===Wt?"svg"===e&&("annotation-xml"===n||cr[n]):Boolean(wr[e]):t.namespaceURI===Wt?r.namespaceURI===Gt?"math"===e:r.namespaceURI===Xt?"math"===e&&hr[n]:Boolean(_r[e]):t.namespaceURI===Gt?!(r.namespaceURI===Xt&&!hr[n])&&!(r.namespaceURI===Wt&&!cr[n])&&!_r[e]&&(fr[e]||!wr[e]):!("application/xhtml+xml"!==dr||!ur[t.namespaceURI]))}(t)?(xr(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!St(/<\/no(script|embed|frames)/i,t.innerHTML)?(K&&t.nodeType===er&&(r=t.textContent,pt([L,E,I],(t=>{r=xt(r,t," ")})),t.textContent!==r&&(gt(e.removed,{element:t.cloneNode()}),t.textContent=r)),Mr(A.afterSanitizeElements,t,null),!1):(xr(t),!0)},Lr=function(t,r,e){if(at&&("id"===r||"name"===r)&&(e in o||e in gr))return!1;if(Y&&!U[r]&&St(j,r));else if(W&&St(z,r));else if(Q.attributeCheck instanceof Function&&Q.attributeCheck(r,t));else if(!F[r]||U[r]){if(!(Er(t)&&(V.tagNameCheck instanceof RegExp&&St(V.tagNameCheck,t)||V.tagNameCheck instanceof Function&&V.tagNameCheck(t))&&(V.attributeNameCheck instanceof RegExp&&St(V.attributeNameCheck,r)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(r,t))||"is"===r&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&St(V.tagNameCheck,e)||V.tagNameCheck instanceof Function&&V.tagNameCheck(e))))return!1}else if(Ut[r]);else if(St(Z,xt(e,O,"")));else if("src"!==r&&"xlink:href"!==r&&"href"!==r||"script"===t||0!==kt(e,"data:")||!Vt[t]){if(X&&!St(R,xt(e,O,"")));else if(e)return!1}else;return!0},Er=function(t){return"annotation-xml"!==t&&_t(t,P)},Ir=function(t){Mr(A.beforeSanitizeAttributes,t,null);var{attributes:r}=t;if(r&&!Sr(t)){for(var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0},i=r.length,l=function(){var l=r[i],{name:a,namespaceURI:u,value:s}=l,c=vr(a),h=s,f="value"===a?h:Tt(h);if(o.attrName=c,o.attrValue=f,o.keepAttr=!0,o.forceKeepAttr=void 0,Mr(A.uponSanitizeAttribute,t,o),f=o.attrValue,!st||"id"!==c&&"name"!==c||(kr(a,t),f="user-content-"+f),J&&St(/((--!?|])>)|<\/(style|title|textarea)/i,f))return kr(a,t),0;if("attributename"===c&&_t(f,"href"))return kr(a,t),0;if(o.forceKeepAttr)return 0;if(!o.keepAttr)return kr(a,t),0;if(!G&&St(/\/>/i,f))return kr(a,t),0;K&&pt([L,E,I],(t=>{f=xt(f,t," ")}));var d=vr(t.nodeName);if(!Lr(d,c,f))return kr(a,t),0;if(n&&"object"==typeof v&&"function"==typeof v.getAttributeType)if(u);else switch(v.getAttributeType(d,c)){case"TrustedHTML":f=n.createHTML(f);break;case"TrustedScriptURL":f=n.createScriptURL(f)}if(f!==h)try{u?t.setAttributeNS(u,a,f):t.setAttribute(a,f),Sr(t)?xr(t):mt(e.removed)}catch(r){kr(a,t)}};i--;)l();Mr(A.afterSanitizeAttributes,t,null)}},jr=function t(r){var e=null,n=Cr(r);for(Mr(A.beforeSanitizeShadowDOM,r,null);e=n.nextNode();)Mr(A.uponSanitizeShadowNode,e,null),Ar(e),Ir(e),e.content instanceof a&&t(e.content);Mr(A.afterSanitizeShadowDOM,r,null)};return e.sanitize=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,l=null,u=null,c=null;if((ar=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!qr(t)){if("function"!=typeof t.toString)throw qt("toString is not a function");if("string"!=typeof(t=t.toString()))throw qt("dirty is not a string, aborting")}if(!e.isSupported)return t;if(rt||yr(r),e.removed=[],"string"==typeof t&&(ft=!1),ft){if(t.nodeName){var h=vr(t.nodeName);if(!D[h]||B[h])throw qt("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof s)(l=(o=Tr("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType===rr&&"BODY"===l.nodeName||"HTML"===l.nodeName?o=l:o.appendChild(l);else{if(!ot&&!K&&!tt&&-1===t.indexOf("<"))return n&<?n.createHTML(t):t;if(!(o=Tr(t)))return ot?null:lt?k:""}o&&et&&xr(o.firstChild);for(var f=Cr(ft?t:o);u=f.nextNode();)Ar(u),Ir(u),u.content instanceof a&&jr(u.content);if(ft)return t;if(ot){if(it)for(c=S.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(F.shadowroot||F.shadowrootmode)&&(c=M.call(i,c,!0)),c}var d=tt?o.outerHTML:o.innerHTML;return tt&&D["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&St(Kt,o.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+d),K&&pt([L,E,I],(t=>{d=xt(d,t," ")})),n&<?n.createHTML(d):d},e.setConfig=function(){yr(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),rt=!0},e.clearConfig=function(){mr=null,rt=!1},e.isValidAttribute=function(t,r,e){mr||yr({});var n=vr(t),o=vr(r);return Lr(n,o,e)},e.addHook=function(t,r){"function"==typeof r&>(A[t],r)},e.removeHook=function(t,r){if(void 0!==r){var e=vt(A[t],r);return-1===e?void 0:bt(A[t],e,1)[0]}return mt(A[t])},e.removeHooks=function(t){A[t]=[]},e.removeAllHooks=function(){A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},e}();function ur(t,r,e){return void 0===r&&(r=document),void 0===e&&(e=null),function(t,r,e,n){void 0===n&&(n=null);return t=function(t){function r(){n&&(l.length>0&&/^[~+>]$/.test(l[l.length-1])&&l.push(" "),l.push(n))}var e,n,o,i,l=[],a=[0],u=0,s=/(?:[^\\]|(?:^|[^\\])(?:\\\\)+)$/,c=/^\s+$/,h=[/\s+|\/\*|["'>~+[(]/g,/\s+|\/\*|["'[\]()]/g,/\s+|\/\*|["'[\]()]/g,null,/\*\//g];for(t=t.trim();;){if(n="",(o=h[a[a.length-1]]).lastIndex=u,!(e=o.exec(t))){n=t.substr(u),r();break}if((i=u)<(u=o.lastIndex)-e[0].length&&(n=t.substring(i,u-e[0].length)),a[a.length-1]<3){if(r(),"["===e[0])a.push(1);else if("("===e[0])a.push(2);else if(/^["']$/.test(e[0]))a.push(3),h[3]=new RegExp(e[0],"g");else if("/*"===e[0])a.push(4);else if(/^[\])]$/.test(e[0])&&a.length>0)a.pop();else if(/^(?:\s+|[~+>])$/.test(e[0])&&(l.length>0&&!c.test(l[l.length-1])&&0===a[a.length-1]&&l.push(" "),1===a[a.length-1]&&5===l.length&&"="===l[2].charAt(l[2].length-1)&&(l[4]=" "+l[4]),c.test(e[0])))continue;l.push(e[0])}else l[l.length-1]+=n,s.test(l[l.length-1])&&(4===a[a.length-1]&&(l.length<2||c.test(l[l.length-2])?l.pop():l[l.length-1]=" ",e[0]=""),a.pop()),l[l.length-1]+=e[0]}return l.join("").trim()}(t),e.querySelector(t),document.head.createShadowRoot||document.head.attachShadow?sr(t,",").reduce(((t,r)=>{var o=sr(r.replace(/^\s+/g,"").replace(/\s*([>+~]+)\s*/g,"$1")," ").filter((t=>!!t)).map((t=>sr(t,">"))),i=o.length-1,l=function(t,r,e){void 0===t&&(t=null);void 0===e&&(e=null);var n=[];if(e)n=e;else{var o=function(t){for(var r=0;r<t.length;r++){var e=t[r];n.push(e),e.shadowRoot&&o(e.shadowRoot.querySelectorAll("*"))}};r.shadowRoot&&o(r.shadowRoot.querySelectorAll("*")),o(r.querySelectorAll("*"))}return t?n.filter((r=>r.matches(t))):n}(o[i][o[i].length-1],e,n),a=function(t,r,e){return n=>{for(var o=r,i=n,l=!1;i&&!cr(i);){var a=!0;if(1===t[o].length)a=i.matches(t[o]);else{var u=[].concat(t[o]).reverse(),s=i;for(var c of u){if(!s||!s.matches(c)){a=!1;break}s=hr(s,e)}}if(a&&0===o){l=!0;break}a&&o--,i=hr(i,e)}return l}}(o,i,e);return t=t.concat(l.filter(a))}),[]):e.querySelectorAll(t)}(t,0,r,e)}function sr(t,r){return t.match(/\\?.|^$/g).reduce(((t,e)=>('"'!==e||t.sQuote?"'"!==e||t.quote?t.quote||t.sQuote||e!==r?t.a[t.a.length-1]+=e:t.a.push(""):(t.sQuote^=1,t.a[t.a.length-1]+=e):(t.quote^=1,t.a[t.a.length-1]+=e),t)),{a:[""]}).a}function cr(t){return t.nodeType===Node.DOCUMENT_FRAGMENT_NODE||t.nodeType===Node.DOCUMENT_NODE}function hr(t,r){var e=t.parentNode;return e&&e.host&&11===e.nodeType?e.host:e===r?null:e}var fr=function(t){return t.TopLeft="top_left",t.TopCenter="top_center",t.TopRight="top_right",t.MiddleLeft="middle_left",t.MiddleCenter="middle_center",t.MiddleRight="middle_right",t.Left="left",t.Right="right",t.Center="center",t}({}),dr=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}({}),pr=Array.isArray,vr=Object.prototype.toString,mr=pr||function(t){return"[object Array]"===vr.call(t)},gr=t=>void 0===t,br=t=>null===t,yr=t=>gr(t)||br(t);var wr=(t,r,e)=>{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];r((()=>{(0,e[n])(t,...i)}))}var o={info:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];n("log",...r)},warn:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];n("warn",...r)},error:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];n("error",...r)},critical:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.error(t,...n)},createLogger:n=>wr(t+" "+n,r,e)};return o};var _r,xr,kr=r,Tr=(void 0===_r&&(_r=t=>t()),wr("[Element Inference]",_r,(void 0===xr&&(xr=console),{log:xr.log.bind(xr),warn:xr.warn.bind(xr),error:xr.error.bind(xr),debug:xr.debug.bind(xr)})));function Cr(t,r){try{var e=r.get(t);if(!gr(e))return e;if(t.checkVisibility){var n=t.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0});return r.set(t,n),n}var o=kr.getComputedStyle(t);if("none"===o.display||"hidden"===o.visibility||0===parseFloat(o.opacity))return r.set(t,!1),!1;for(var i=t.parentElement;i;){var l=r.get(i);if(gr(l)){var a=kr.getComputedStyle(i),u="none"!==a.display&&"hidden"!==a.visibility;if(r.set(i,u),!u)return!1;i=i.parentElement}else{if(!l)return!1;i=i.parentElement}}var s=t.getBoundingClientRect(),c=s.width>0||s.height>0||t.getClientRects().length>0;return r.set(t,c),c}catch(t){return!0}}function Sr(t,r){var e=function(t){var r,e=null==(r=t.innerText)?void 0:r.trim();return!e||e.length>250?null:e}(t);return(null==e?void 0:e.toLowerCase())===r.toLowerCase()}function*qr(t,r,e){var n;try{n=ur(t)}catch(t){return}for(var o of n){var i=o;r&&!Sr(i,r)||Cr(i,e)&&(yield i)}}function Mr(t,r){var e=0;for(var n of t){if(e===r)return n;e++}return null}function Ar(t){try{var r=JSON.parse(t.autoData);if(!mr(null==r?void 0:r.textGroups)||!mr(null==r?void 0:r.notextGroups))return Tr.error("Invalid autoData structure:",r),null;var{text:e,excludeText:n,precision:o=1}=t,i=null!=e&&!n,l=(i?r.textGroups:r.notextGroups).sort(((t,r)=>t.cardinality-r.cardinality));if(0===l.length)return null;for(var a=Math.max(1,Math.ceil((1-o)*l.length)),u=new WeakMap,s=0;s<a;s++){var c=l[s],h=new Map,f=null,d=0;for(var{css:p,offset:v}of c.cssSelectors){var m,g=Mr(qr(p,i?e:null,u),v);if(g){var b=(null!==(m=h.get(g))&&void 0!==m?m:0)+1;if(h.set(g,b),b>d&&(d=b,f=g,b>=Math.ceil(c.cssSelectors.length/2)))return f}}if(f)return f}return null}catch(t){return Tr.error("Error finding element:",t),null}}var Lr=function(t,e){var{debugEnabled:n}=void 0===e?{}:e,o={o:function(e){if(r&&(l.POSTHOG_DEBUG||n)&&!gr(r.console)&&r.console){for(var o=("__rrweb_original__"in r.console[e]?r.console[e].__rrweb_original__:r.console[e]),i=arguments.length,a=new Array(i>1?i-1:0),u=1;u<i;u++)a[u-1]=arguments[u];o(t,...a)}},info:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];o.o("log",...r)},warn:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];o.o("warn",...r)},error:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];o.o("error",...r)},critical:function(){for(var r=arguments.length,e=new Array(r),n=0;n<r;n++)e[n]=arguments[n];console.error(t,...e)},uninitializedWarning:t=>{o.error("You must initialize PostHog before calling "+t)},createLogger:(r,e)=>Lr(t+" "+r,e)};return o},Er=Lr("[PostHog.js]"),Ir=Er.createLogger,jr=Ir("[Stylesheet Loader]"),zr=(t,r,e)=>{var n=t.createElement("style");return n.innerText=r,n||(jr.error("prepare_external_dependency_stylesheet returned null"),null)};Ir("[Surveys]");var $r={};function Rr(t,r,e){if(mr(t))if(n&&t.forEach===n)t.forEach(r,e);else if("length"in t&&t.length===+t.length)for(var o=0,i=t.length;o<i;o++)if(o in t&&r.call(e,t[o],o)===$r)return}function Or(t,r,e,n){var{capture:o=!1,passive:i=!0}=null!=n?n:{};null==t||t.addEventListener(r,e,{capture:o,passive:i})}null!=o&&o.sendBeacon;var Pr=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}},Zr={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=>Pr(r,t))))),not_regex:(t,r)=>r.every((r=>t.every((t=>!Pr(r,t))))),icontains:(t,r)=>r.map(Dr).some((r=>t.map(Dr).some((t=>r.includes(t))))),not_icontains:(t,r)=>r.map(Dr).every((r=>t.map(Dr).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)))}))},Dr=t=>t.toLowerCase();function Nr(t,r){return!t||Object.entries(t).every((t=>{var[e,n]=t,o=null==r?void 0:r[e];if(gr(o)||br(o))return!1;var i=[String(o)],l=Zr[n.operator];return!!l&&l(n.values,i)}))}var Fr,Hr,Vr,Br,Ur=0,Qr=[],Wr=s,Yr=Wr.__b,Xr=Wr.__r,Gr=Wr.diffed,Kr=Wr.__c,Jr=Wr.unmount,te=Wr.__;function re(t,r){Wr.__h&&Wr.__h(Hr,t,Ur||r),Ur=0;var e=Hr.__H||(Hr.__H={__:[],__h:[]});return t>=e.__.length&&e.__.push({}),e.__[t]}function ee(t){return Ur=1,function(t,r,e){var n=re(Fr++,2);if(n.t=t,!n.__c&&(n.__=[de(void 0,r),function(t){var r=n.__N?n.__N[0]:n.__[0],e=n.t(r,t);r!==e&&(n.__N=[e,n.__[1]],n.__c.setState({}))}],n.__c=Hr,!Hr.__f)){var o=function(t,r,e){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,r,e);var l=n.__c.props!==t;return o.forEach((function(t){if(t.__N){var r=t.__[0];t.__=t.__N,t.__N=void 0,r!==t.__[0]&&(l=!0)}})),i&&i.call(this,t,r,e)||l};Hr.__f=!0;var i=Hr.shouldComponentUpdate,l=Hr.componentWillUpdate;Hr.componentWillUpdate=function(t,r,e){if(this.__e){var n=i;i=void 0,o(t,r,e),i=n}l&&l.call(this,t,r,e)},Hr.shouldComponentUpdate=o}return n.__N||n.__}(de,t)}function ne(t,r){var e=re(Fr++,3);!Wr.__s&&fe(e.__H,r)&&(e.__=t,e.u=r,Hr.__H.__h.push(e))}function oe(t,r){var e=re(Fr++,4);!Wr.__s&&fe(e.__H,r)&&(e.__=t,e.u=r,Hr.__h.push(e))}function ie(t){return Ur=5,le((function(){return{current:t}}),[])}function le(t,r){var e=re(Fr++,7);return fe(e.__H,r)&&(e.__=t(),e.__H=r,e.__h=t),e.__}function ae(){for(var t;t=Qr.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(ce),t.__H.__h.forEach(he),t.__H.__h=[]}catch(r){t.__H.__h=[],Wr.__e(r,t.__v)}}Wr.__b=function(t){Hr=null,Yr&&Yr(t)},Wr.__=function(t,r){t&&r.__k&&r.__k.__m&&(t.__m=r.__k.__m),te&&te(t,r)},Wr.__r=function(t){Xr&&Xr(t),Fr=0;var r=(Hr=t.__c).__H;r&&(Vr===Hr?(r.__h=[],Hr.__h=[],r.__.forEach((function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0}))):(r.__h.forEach(ce),r.__h.forEach(he),r.__h=[],Fr=0)),Vr=Hr},Wr.diffed=function(t){Gr&&Gr(t);var r=t.__c;r&&r.__H&&(r.__H.__h.length&&(1!==Qr.push(r)&&Br===Wr.requestAnimationFrame||((Br=Wr.requestAnimationFrame)||se)(ae)),r.__H.__.forEach((function(t){t.u&&(t.__H=t.u),t.u=void 0}))),Vr=Hr=null},Wr.__c=function(t,r){r.some((function(t){try{t.__h.forEach(ce),t.__h=t.__h.filter((function(t){return!t.__||he(t)}))}catch(e){r.some((function(t){t.__h&&(t.__h=[])})),r=[],Wr.__e(e,t.__v)}})),Kr&&Kr(t,r)},Wr.unmount=function(t){Jr&&Jr(t);var r,e=t.__c;e&&e.__H&&(e.__H.__.forEach((function(t){try{ce(t)}catch(t){r=t}})),e.__H=void 0,r&&Wr.__e(r,e.__v))};var ue="function"==typeof requestAnimationFrame;function se(t){var r,e=function(){clearTimeout(n),ue&&cancelAnimationFrame(r),setTimeout(t)},n=setTimeout(e,35);ue&&(r=requestAnimationFrame(e))}function ce(t){var r=Hr,e=t.__c;"function"==typeof e&&(t.__c=void 0,e()),Hr=r}function he(t){var r=Hr;t.__c=t.__(),Hr=r}function fe(t,r){return!t||t.length!==r.length||r.some((function(r,e){return r!==t[e]}))}function de(t,r){return"function"==typeof r?r(t):r}var pe="#020617",ve={backgroundColor:"#eeeded",position:J.Right};function me(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 ge(t){var r;void 0===t&&(t=ve.backgroundColor),"#"===t[0]&&(r=me(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=me(e)),!r)return pe;var n=r.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?pe:"white"}return pe}!function(t){function r(t){var e,n;return this.getChildContext||(e=new Set,(n={})[r.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){e=null},this.shouldComponentUpdate=function(t){this.props.value!=t.value&&e.forEach((function(t){t.__e=!0,E(t)}))},this.sub=function(t){e.add(t);var r=t.componentWillUnmount;t.componentWillUnmount=function(){e&&e.delete(t),r&&r.call(t)}}),t.children}r.__c="__cC"+y++,r.__=t,r.Provider=r.__l=(r.Consumer=function(t,r){return t.children(r)}).contextType=r}({isPreviewMode:!1,previewPageIndex:0,onPopupSurveyDismissed:()=>{},isPopup:!0,onPreviewSubmit:()=>{},surveySubmissionId:"",properties:void 0});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);max-width:min(var(--ph-tour-max-width),calc(100vw - 16px));min-width:min(280px,calc(100vw - 16px));padding:var(--ph-tour-padding);padding-top:calc(var(--ph-tour-padding) + 8px);pointer-events:auto;position:fixed;z-index:calc(var(--ph-tour-z-index) + 1)}.ph-tour-tooltip,.ph-tour-tooltip--modal{box-shadow:var(--ph-tour-box-shadow)}.ph-tour-arrow{--ph-tour-arrow-offset:0px;border:var(--ph-tour-arrow-size) solid transparent;height:0;position:absolute;width:0}.ph-tour-arrow--top{border-bottom-color:var(--ph-tour-background-color);bottom:100%}.ph-tour-arrow--bottom,.ph-tour-arrow--top{left:calc(50% + var(--ph-tour-arrow-offset));transform:translateX(-50%)}.ph-tour-arrow--bottom{border-top-color:var(--ph-tour-background-color);top:100%}.ph-tour-arrow--left{border-right-color:var(--ph-tour-background-color);right:100%}.ph-tour-arrow--left,.ph-tour-arrow--right{top:calc(50% + var(--ph-tour-arrow-offset));transform:translateY(-50%)}.ph-tour-arrow--right{border-left-color:var(--ph-tour-background-color);left:100%}.ph-tour-content{color:var(--ph-tour-text-color);font-size:14px;line-height:1.5;margin-bottom:16px;padding-right:24px}.ph-tour-content h1,.ph-tour-content h2{font-weight:600;margin-bottom:8px}.ph-tour-content h1{font-size:18px}.ph-tour-content h2{font-size:16px}.ph-tour-content p{margin-bottom:8px}.ph-tour-content p:last-child{margin-bottom:0}.ph-tour-content strong{font-weight:600}.ph-tour-content em{font-style:italic}.ph-tour-content ol,.ph-tour-content ul{margin-bottom:8px;margin-left:20px}.ph-tour-content h3{font-size:14px;font-weight:600;margin-bottom:8px}.ph-tour-content .ph-tour-link,.ph-tour-content a{color:inherit;text-decoration:underline}.ph-tour-content a:hover{opacity:.8}.ph-tour-content code{background:rgba(0,0,0,.06);border-radius:4px;font-size:.875em;padding:2px 6px}.ph-tour-content code,.ph-tour-content pre{font-family:SF Mono,Monaco,Consolas,monospace}.ph-tour-content pre{background:rgba(0,0,0,.04);border-radius:6px;font-size:13px;line-height:1.5;margin-bottom:8px;overflow-x:auto;padding:12px}.ph-tour-content pre code{background:transparent;border-radius:0;font-size:inherit;padding:0}.ph-tour-content code *,.ph-tour-content pre *{font-family:inherit}.ph-tour-content .hljs-comment,.ph-tour-content .hljs-quote{color:#6a737d;font-style:italic}.ph-tour-content .hljs-keyword,.ph-tour-content .hljs-selector-tag{color:#d73a49}.ph-tour-content .hljs-doctag,.ph-tour-content .hljs-regexp,.ph-tour-content .hljs-string{color:#032f62}.ph-tour-content .hljs-literal,.ph-tour-content .hljs-number,.ph-tour-content .hljs-template-variable,.ph-tour-content .hljs-variable{color:#005cc5}.ph-tour-content .hljs-section,.ph-tour-content .hljs-selector-class,.ph-tour-content .hljs-selector-id,.ph-tour-content .hljs-title,.ph-tour-content .hljs-title.function_{color:#6f42c1}.ph-tour-content .hljs-addition,.ph-tour-content .hljs-attr,.ph-tour-content .hljs-attribute,.ph-tour-content .hljs-built_in,.ph-tour-content .hljs-bullet,.ph-tour-content .hljs-name,.ph-tour-content .hljs-symbol{color:#22863a}.ph-tour-content .hljs-deletion,.ph-tour-content .hljs-subst{color:#b31d28}.ph-tour-content .hljs-meta{color:#032f62}.ph-tour-content .hljs-emphasis{font-style:italic}.ph-tour-content .hljs-strong{font-weight:700}.ph-tour-content .ph-tour-image,.ph-tour-content img{border-radius:6px;display:block;height:auto;margin:8px 0;max-width:100%}.ph-tour-content .ph-tour-embed{margin:8px 0}.ph-tour-content .ph-tour-embed-container{background:#000;border-radius:6px;overflow:hidden;padding-bottom:56.25%;position:relative;width:100%}.ph-tour-content .ph-tour-embed-container iframe{border:none;height:100%;left:0;position:absolute;top:0;width:100%}.ph-tour-content blockquote{border-left:3px solid var(--ph-tour-border-color);color:var(--ph-tour-text-secondary-color);font-style:italic;margin:8px 0;padding-left:12px}.ph-tour-footer{align-items:center;display:flex;gap:12px;justify-content:space-between}.ph-tour-progress{color:var(--ph-tour-text-secondary-color);font-size:12px}.ph-tour-buttons{display:flex;gap:8px;margin-left:auto}.ph-tour-button{align-items:center;border:none;border-radius:var(--ph-tour-button-border-radius);cursor:pointer;display:inline-flex;font-size:14px;font-weight:500;justify-content:center;padding:8px 16px;text-decoration:none;transition:opacity .15s ease,transform .1s ease}.ph-tour-button:hover{opacity:.9}.ph-tour-button:active{transform:scale(.98)}.ph-tour-button--primary{background:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}.ph-tour-button--secondary{background:var(--ph-tour-button-secondary-color);border:1px solid var(--ph-tour-border-color);color:var(--ph-tour-button-secondary-text-color)}.ph-tour-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;font-size:18px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}.ph-tour-branding{align-items:center;border-top:1px solid var(--ph-tour-border-color);color:var(--ph-tour-branding-text-color,var(--ph-tour-text-secondary-color));display:flex;font-size:11px;gap:6px;justify-content:center;margin-top:12px;padding-top:12px;text-decoration:none}.ph-tour-branding:hover{color:var(--ph-tour-branding-text-color,var(--ph-tour-text-color))}.ph-tour-branding svg{height:14px;width:auto}.ph-tour-hidden{display:none!important}.ph-tour-survey-step{min-width:min(300px,calc(100vw - 16px))}.ph-tour-survey-question{color:var(--ph-tour-text-color);font-size:15px;font-weight:500;line-height:1.4;margin-bottom:16px;padding-right:24px}.ph-tour-survey-input-container{display:flex;flex-direction:column;gap:12px}.ph-tour-survey-textarea{background:#fff;border:1px solid var(--ph-tour-border-color);border-radius:6px;box-sizing:border-box;color:var(--ph-tour-text-color);font-family:var(--ph-tour-font-family);font-size:14px;min-height:80px;padding:10px 12px;resize:vertical;width:100%}.ph-tour-survey-textarea:focus{border-color:var(--ph-tour-button-color);box-shadow:0 0 0 2px rgba(0,0,0,.05);outline:none}.ph-tour-survey-textarea::placeholder{color:var(--ph-tour-text-secondary-color)}.ph-tour-survey-submit{align-self:flex-end}.ph-tour-survey-rating-container{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}.ph-tour-survey-rating-labels{color:var(--ph-tour-text-secondary-color);display:flex;font-size:11px;justify-content:space-between}.ph-tour-survey-rating-emoji{display:flex;gap:8px;justify-content:center}.ph-tour-survey-emoji-button{align-items:center;background:var(--ph-tour-background-color);border:2px solid var(--ph-tour-border-color);border-radius:8px;cursor:pointer;display:flex;height:44px;justify-content:center;padding:0;transition:all .15s ease;width:44px}.ph-tour-survey-emoji-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active svg{fill:var(--ph-tour-button-text-color)}.ph-tour-survey-emoji-button svg{fill:var(--ph-tour-text-color);height:28px;transition:fill .15s ease;width:28px}.ph-tour-survey-rating-numbers{display:grid;gap:6px}.ph-tour-survey-number-button{align-items:center;background:var(--ph-tour-background-color);border:1px solid var(--ph-tour-border-color);border-radius:4px;color:var(--ph-tour-text-color);cursor:pointer;display:flex;font-family:var(--ph-tour-font-family);font-size:13px;font-weight:500;justify-content:center;padding:8px 4px;transition:all .15s ease}.ph-tour-survey-number-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-number-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}@keyframes ph-tour-banner-slide-in{0%{grid-template-rows:0fr}to{grid-template-rows:1fr}}.ph-tour-banner-wrapper{animation:ph-tour-banner-slide-in var(--ph-tour-banner-animation-duration,.3s) ease-out forwards;display:grid}.ph-tour-banner-slide{min-height:0;overflow:hidden}.ph-tour-banner{align-items:center;background:var(--ph-tour-background-color);border-bottom:1px solid var(--ph-tour-border-color);box-shadow:var(--ph-tour-box-shadow);display:flex;font-family:var(--ph-tour-font-family);gap:16px;justify-content:center;padding:12px 16px}a.ph-tour-banner{color:inherit;text-decoration:none}:host:has(.ph-tour-banner--sticky){position:sticky;top:0;z-index:var(--ph-tour-z-index)}.ph-tour-banner-content{color:var(--ph-tour-text-color);flex:1;font-size:14px;line-height:1.5;min-width:0;text-align:center}.ph-tour-banner-content p{margin:0}.ph-tour-banner-content strong{font-weight:600}.ph-tour-banner-content em{font-style:italic}.ph-tour-banner-content a{color:inherit;text-decoration:underline}.ph-tour-banner-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;flex-shrink:0;height:24px;justify-content:center;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-banner-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}',ye=Ir("[Product Tours]"),we=i,_e=r;function xe(){var t=zr(we,be);return null==t||t.setAttribute("data-ph-product-tour-style","true"),t}function ke(t){return t.useManualSelector?!!t.selector:!!t.inferenceData}function Te(t){try{var r=we.querySelectorAll(t);if(0===r.length)return{element:null,error:"not_found",matchCount:0};var e=r[0];return function(t){var r=_e.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}}}function Ce(t){var r;if(null!==(r=t.useManualSelector)&&void 0!==r&&r)return t.selector?Te(t.selector):{element:null,error:"not_found",matchCount:0};if(!t.inferenceData)return{element:null,error:"not_found",matchCount:0};var e=Ar(t.inferenceData);return e?{element:e,error:null,matchCount:1}:{element:null,error:"not_found",matchCount:0}}var Se=12,qe=8;function Me(t,r,e){var n=qe+r/2,o=e-qe-r/2,i=Math.max(n,Math.min(o,t));return{clamped:i,offset:t-i}}function Ae(t,r){var e,n,o,i=a({},W,r),l=t.style;l.setProperty("--ph-tour-background-color",i.backgroundColor),l.setProperty("--ph-tour-text-color",i.textColor),l.setProperty("--ph-tour-button-color",i.buttonColor),l.setProperty("--ph-tour-border-radius",i.borderRadius+"px"),l.setProperty("--ph-tour-button-border-radius",i.buttonBorderRadius+"px"),l.setProperty("--ph-tour-border-color",i.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}(i.fontFamily)),l.setProperty("--ph-tour-text-secondary-color",(e=i.textColor,n=.6,(o=me(e).match(/^rgb\((\d+),(\d+),(\d+)\)$/))?"rgba("+o[1]+", "+o[2]+", "+o[3]+", "+n+")":e)),l.setProperty("--ph-tour-branding-text-color",ge(i.backgroundColor)),l.setProperty("--ph-tour-button-text-color",ge(i.buttonColor)),l.setProperty("--ph-tour-box-shadow",i.boxShadow),l.setProperty("--ph-tour-overlay-color",i.showOverlay?"rgba(0, 0, 0, 0.5)":"transparent"),l.setProperty("--ph-tour-z-index",String(i.zIndex)),l.setProperty("--ph-tour-button-secondary-color","transparent"),l.setProperty("--ph-tour-button-secondary-text-color",i.textColor),l.setProperty("--ph-tour-max-width","320px"),l.setProperty("--ph-tour-padding","16px")}function Le(t){var r;if(!t)return"";if("string"==typeof t)return Ie(t);if("text"===t.type){var e=Ie(t.text||"");if(t.marks)for(var n of t.marks)switch(n.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 o=(null==(r=t.content)?void 0:r.map(Le).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 Ee(t){return t.endsWith("/")?t.slice(0,-1):t}function Ie(t){var r=we.createElement("div");return r.textContent=t,r.innerHTML}function je(t){var r=[];return t.content&&function t(e){var n,o;"image"===e.type&&null!=(n=e.attrs)&&n.src&&r.push(e.attrs.src),null==(o=e.content)||o.forEach(t)}(t.content),r}function ze(t){return t.contentHtml?ar.sanitize(t.contentHtml,{ADD_TAGS:["iframe"],ADD_ATTR:["allowfullscreen","frameborder","referrerpolicy"]}):Le(t.content)}var $e=0;function Re(t,r,e,n,o,i){r||(r={});var l,a,u=r;if("ref"in u)for(a in u={},r)"ref"==a?l=r[a]:u[a]=r[a];var c={type:t,props:u,key:e,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--$e,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof t&&(l=t.defaultProps))for(a in l)void 0===u[a]&&(u[a]=l[a]);return s.vnode&&s.vnode(c),c}var Oe=Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Re("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"})}),Pe=Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Re("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"})}),Ze=Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Re("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"})}),De=Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Re("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"})}),Ne=Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Re("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"})});Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 0 24 24",width:"48",children:Re("path",{d:"M2 20h2c.55 0 1-.45 1-1v-9c0-.55-.45-1-1-1H2v11zm19.83-7.12c.11-.25.17-.52.17-.8V11c0-1.1-.9-2-2-2h-5.5l.92-4.65c.05-.22.02-.46-.08-.66-.23-.45-.52-.86-.88-1.22L14 2 7.59 8.41C7.21 8.79 7 9.3 7 9.83v7.84C7 18.95 8.05 20 9.34 20h8.11c.7 0 1.36-.37 1.72-.97l2.66-6.15z"})}),Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 0 24 24",width:"48",children:Re("path",{d:"M22 4h-2c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h2V4zM2.17 11.12c-.11.25-.17.52-.17.8V13c0 1.1.9 2 2 2h5.5l-.92 4.65c-.05.22-.02.46.08.66.23.45.52.86.88 1.22L10 22l6.41-6.41c.38-.38.59-.89.59-1.42V6.34C17 5.05 15.95 4 14.66 4H6.55c-.7 0-1.36.37-1.72.97l-2.66 6.15z"})});var Fe=function(t){var{fill:r="currentColor"}={};return Re("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:r,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"close-survey-title-adam",children:[Re("title",{id:"close-survey-title",className:"adam-testing",children:"Close survey"}),Re("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:r})]})},He=Re("svg",{width:"77",height:"14",viewBox:"0 0 77 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Re("g",{"clip-path":"url(#clip0_2415_6911)",children:[Re("mask",{id:"mask0_2415_6911",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"77",height:"14",children:Re("path",{d:"M0.5 0H76.5V14H0.5V0Z",fill:"white"})}),Re("g",{mask:"url(#mask0_2415_6911)",children:[Re("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"}),Re("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"}),Re("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"}),Re("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"}),Re("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"}),Re("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"})]})]}),Re("defs",{children:Re("clipPath",{id:"clip0_2415_6911",children:Re("rect",{width:"76",height:"14",fill:"white",transform:"translate(0.5)"})})})]});function Ve(t){var{button:r,variant:e,onClick:n,cursorStyle:o}=t,i="ph-tour-button ph-tour-button--"+e;return"link"===r.action&&r.link?Re("a",{href:r.link,target:"_blank",rel:"noopener noreferrer",class:i,onClick:()=>n(r),children:r.text}):Re("button",{class:i,onClick:()=>n(r),style:o,children:r.text})}function Be(t){var r,e,n,{step:o,appearance:i,stepIndex:l,totalSteps:a,onNext:u,onPrevious:s,onDismiss:c,onButtonClick:h}=t,f=null!==(r=null==i?void 0:i.whiteLabel)&&void 0!==r&&r,d=l>=a-1,p=0===l,v=!(o.buttons||"button"!==o.progressionTrigger&&ke(o)),m=!!o.buttons,g=!!(u||s||c||h),b=g?void 0:{cursor:"default"},y=!f&&p,w=t=>{h&&h(t)};return Re(q,{children:[Re("button",{class:"ph-tour-dismiss",onClick:c,"aria-label":"Close tour",style:b,children:Fe()}),Re("div",{class:"ph-tour-content",dangerouslySetInnerHTML:{__html:ze(o)}}),Re("div",{class:"ph-tour-footer",children:[a>1&&Re("span",{class:"ph-tour-progress",children:[l+1," of ",a]}),Re("div",{class:"ph-tour-buttons",children:[v&&Re(q,{children:[!p&&Re("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:s,style:b,children:"Back"}),Re("button",{class:"ph-tour-button ph-tour-button--primary",onClick:u,style:b,children:d?"Done":"Next"})]}),m&&Re(q,{children:[(null==(e=o.buttons)?void 0:e.secondary)&&Re(Ve,{button:o.buttons.secondary,variant:"secondary",onClick:w,cursorStyle:b}),(null==(n=o.buttons)?void 0:n.primary)&&Re(Ve,{button:o.buttons.primary,variant:"primary",onClick:w,cursorStyle:b})]})]})]}),y&&Re("a",{href:g?"https://posthog.com/docs/product-tours":void 0,target:g?"_blank":void 0,rel:g?"noopener noreferrer":void 0,class:"ph-tour-branding",style:g?void 0:{cursor:"default",pointerEvents:"none"},children:["Tour by ",He]})]})}Re("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Re("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 Ue=[Ze,Pe,Oe],Qe=[De,Ze,Pe,Oe,Ne];function We(t){var{value:r,onChange:e,onSubmit:n,isInteractive:o}=t,i=ie(null);ne((()=>{o&&setTimeout((()=>{var t;return null==(t=i.current)?void 0:t.focus()}),100)}),[o]);return Re("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&&o&&(t.preventDefault(),null==n||n())},disabled:!o,style:o?void 0:{cursor:"default"}})}function Ye(t){var{survey:r,onSubmit:e,isInteractive:n}=t,[o,i]=ee(null),l=r.display||"emoji",a=r.scale||5,u=t=>{n&&(i(t),null==e||e(t))};if("emoji"===l)return Re("div",{class:"ph-tour-survey-rating-container",children:[Re("div",{class:"ph-tour-survey-rating-emoji",children:(3===a?Ue:Qe).map(((t,r)=>{var e=r+1;return Re("button",{type:"button",class:"ph-tour-survey-emoji-button "+(o===e?"ph-tour-survey-emoji-button--active":""),onClick:()=>u(e),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+e,children:t},r)}))}),(r.lowerBoundLabel||r.upperBoundLabel)&&Re("div",{class:"ph-tour-survey-rating-labels",children:[Re("span",{children:r.lowerBoundLabel}),Re("span",{children:r.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]}}(a);return Re("div",{class:"ph-tour-survey-rating-container",children:[Re("div",{class:"ph-tour-survey-rating-numbers",style:{gridTemplateColumns:"repeat("+s.length+", minmax(0, 1fr))"},children:s.map((t=>Re("button",{type:"button",class:"ph-tour-survey-number-button "+(o===t?"ph-tour-survey-number-button--active":""),onClick:()=>u(t),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+t,children:t},t)))}),(r.lowerBoundLabel||r.upperBoundLabel)&&Re("div",{class:"ph-tour-survey-rating-labels",children:[Re("span",{children:r.lowerBoundLabel}),Re("span",{children:r.upperBoundLabel})]})]})}function Xe(t){var r,{step:e,appearance:n,stepIndex:o,totalSteps:i,onPrevious:l,onSubmit:a,onDismiss:u}=t,[s,c]=ee(""),h=e.survey,f=null!==(r=null==n?void 0:n.whiteLabel)&&void 0!==r&&r,d=0===o,p="open"===(null==h?void 0:h.type),v=!!(l||a||u),m=v?void 0:{cursor:"default"},g=()=>{null==a||a(s.trim()||null)};return h?Re(q,{children:[Re("button",{class:"ph-tour-dismiss",onClick:u,"aria-label":"Close survey",style:m,children:Fe()}),Re("div",{class:"ph-tour-survey-question",children:h.questionText}),p?Re(We,{value:s,onChange:c,onSubmit:g,isInteractive:v}):Re(Ye,{survey:h,onSubmit:a,isInteractive:v}),Re("div",{class:"ph-tour-footer",children:[Re("span",{class:"ph-tour-progress",children:[o+1," of ",i]}),Re("div",{class:"ph-tour-buttons",children:[!d&&Re("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:l,style:m,children:h.backButtonText||"Back"}),p&&Re("button",{class:"ph-tour-button ph-tour-button--primary",onClick:g,style:m,children:h.submitButtonText||"Submit"})]})]}),!f&&Re("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 ",He]})]}):Re("div",{})}var Ge=r;function Ke(t){return{top:"bottom",bottom:"top",left:"right",right:"left"}[t]}var Je=150;function tn(t){var r,{tour:e,step:n,stepIndex:o,totalSteps:i,targetElement:l,onNext:u,onPrevious:s,onDismiss:c,onSurveySubmit:h,onButtonClick:f}=t,[d,p]=ee("entering"),[v,m]=ee(null),[g,b]=ee(null),[y,w]=ee(!1),[_,x]=ee(n),[k,T]=ee(o),C=ie(null),S=ie(o),q=ie(!1),M=ie(l),A=!ke(_)||"survey"===_.type;oe((()=>{M.current=l}),[l]);var L=function(t,r){return Ur=8,le((function(){return t}),r)}((()=>{var t=M.current;if(t&&C.current){var r=C.current.getBoundingClientRect(),e={width:r.width,height:r.height},n=t.getBoundingClientRect();m(function(t,r){var e=_e.innerWidth,n=_e.innerHeight,{width:o,height:i}=r,l=t.top,a=n-t.bottom,u=t.left,s=e-t.right,c=t.top+t.height/2,h=t.left+t.width/2;if(s>=o+Se){var f=t.right+Se,{clamped:d,offset:p}=Me(c,i,n);return{position:"right",top:d,left:f,arrowOffset:p}}if(u>=o+Se){var v=e-t.left+Se,{clamped:m,offset:g}=Me(c,i,n);return{position:"left",top:m,right:v,arrowOffset:g}}if(l>=i+Se&&a<i+Se){var b=n-t.top+Se,{clamped:y,offset:w}=Me(h,o,e);return{position:"top",bottom:b,left:y,arrowOffset:w}}var _=t.bottom+Se,{clamped:x,offset:k}=Me(h,o,e);return{position:"bottom",top:_,left:x,arrowOffset:k}}(n,e)),b(function(t,r){return void 0===r&&(r=8),{top:t.top-r+"px",left:t.left-r+"px",width:t.width+2*r+"px",height:t.height+2*r+"px"}}(n)),w(!0)}}),[]);oe((()=>{!A&&!y&&C.current&&l&&L()}),[A,y,l,L]),ne((()=>{var t=o,r=S.current!==o,e=()=>{S.current===t&&(p("visible"),q.current=!1)},i=()=>{M.current&&ke(n)&&(M.current.isConnected||(M.current=Ce(n).element),M.current)?function(t,r){var e=t.getBoundingClientRect(),n=Ge.innerHeight,o=Ge.innerWidth,i=n/6,l=o/6;if(e.top>=i&&e.bottom<=n-i&&e.left>=l&&e.right<=o-l)r();else{t.scrollIntoView({behavior:"smooth",block:"center"});var a=e.top,u=0,s=!1,c=()=>{if(!s){var e=t.getBoundingClientRect();if(Math.abs(e.top-a)<1){if(++u>=3)return s=!0,void r()}else u=0;a=e.top,setTimeout(c,50)}};setTimeout(c,30),setTimeout((()=>{s||(s=!0,r())}),500)}}(M.current,(()=>{S.current===t&&(L(),setTimeout(e,50))})):setTimeout(e,50)};if(!r)return S.current=o,q.current=!0,void i();S.current=o,q.current=!0,p("exiting"),setTimeout((()=>{S.current===t&&(ke(n)&&(m(null),b(null),w(!1)),x(n),T(o),p("entering"),i())}),Je)}),[l,o,n,L]),ne((()=>{if("visible"===d&&!A){var t=()=>{q.current||L()};return Or(Ge,"scroll",t,{capture:!0}),Or(Ge,"resize",t),()=>{null==Ge||Ge.removeEventListener("scroll",t,!0),null==Ge||Ge.removeEventListener("resize",t)}}}),[L,d,A]),ne((()=>{var t=t=>{"Escape"===t.key&&c("escape_key")};return Or(Ge,"keydown",t),()=>{null==Ge||Ge.removeEventListener("keydown",t)}}),[c]);var E,I,j="visible"===d,z="survey"===_.type,R=A||y,O=a({},_.maxWidth&&{width:"min("+_.maxWidth+"px, calc(100vw - 16px))",maxWidth:"min("+_.maxWidth+"px, calc(100vw - 16px))"},A?a({},{top:"auto",right:"auto",bottom:"auto",left:"auto",transform:"none"},(I=function(t,r,e){if(void 0===r&&(r=J.Right),t===tt.ExternalSurvey)return{};switch(r){case J.TopLeft:return{top:"0",left:"0",transform:"translate(30px, 30px)"};case J.TopRight:return{top:"0",right:"0",transform:"translate(-30px, 30px)"};case J.TopCenter:return{top:"0",left:"50%",transform:"translate(-50%, 30px)"};case J.MiddleLeft:return{top:"50%",left:"0",transform:"translate(30px, -50%)"};case J.MiddleRight:return{top:"50%",right:"0",transform:"translate(-30px, -50%)"};case J.MiddleCenter:return{top:"50%",left:"50%",transform:"translate(-50%, -50%)"};case J.Left:return{left:"30px"};case J.Center:return{left:"50%",transform:"translateX(-50%)"};default:case J.Right:return{right:t===tt.Widget&&e===K.Tab?"60px":"30px"}}}(void 0,null!==(E=_.modalPosition)&&void 0!==E?E:fr.MiddleCenter),"top"in I||"bottom"in I?I:a({},I,{bottom:"30px"}))):(()=>{if(!v)return{};var t="left"===v.position||"right"===v.position;return{top:gr(v.top)?"auto":v.top+"px",bottom:gr(v.bottom)?"auto":v.bottom+"px",left:gr(v.left)?"auto":v.left+"px",right:gr(v.right)?"auto":v.right+"px",transform:t?"translateY(-50%)":"translateX(-50%)"}})());return Re("div",{class:"ph-tour-container",children:[!1!==(null==(r=e.appearance)?void 0:r.dismissOnClickOutside)&&Re("div",{class:"ph-tour-click-overlay",onClick:t=>{t.stopPropagation(),c("user_clicked_outside")}}),Re("div",{class:"ph-tour-modal-overlay",style:{opacity:A&&j?1:0,transition:"opacity 150ms ease-out",pointerEvents:"none"}}),Re("div",{class:"ph-tour-spotlight",style:a({},j&&R&&g?g:{top:"50%",left:"50%",width:"0px",height:"0px"},{opacity:!A&&j&&R?1:0,transition:"opacity 150ms ease-out"},"click"===_.progressionTrigger&&!A&&{pointerEvents:"auto",cursor:"pointer"}),onClick:"click"!==_.progressionTrigger||A?void 0:t=>{t.stopPropagation(),M.current&&M.current.click(),u()}}),Re("div",{ref:C,class:"ph-tour-tooltip "+(A?"ph-tour-tooltip--modal":"")+" "+(z?"ph-tour-survey-step":""),style:a({},O,{opacity:j&&R?1:0,transition:"opacity 150ms ease-out"}),onClick:t=>{t.stopPropagation()},children:[!A&&v&&Re("div",{class:"ph-tour-arrow ph-tour-arrow--"+Ke(v.position),style:0!==v.arrowOffset?{"--ph-tour-arrow-offset":v.arrowOffset+"px"}:void 0}),z?Re(Xe,{step:_,appearance:e.appearance,stepIndex:k,totalSteps:i,onSubmit:h,onPrevious:s,onDismiss:()=>c("user_clicked_skip")}):Re(Be,{step:_,appearance:e.appearance,stepIndex:k,totalSteps:i,onNext:u,onPrevious:s,onDismiss:()=>c("user_clicked_skip"),onButtonClick:f})]})]})}function rn(t){var{class:r,href:e,onClick:n,children:o}=t;return Re("a",{class:r,href:e,target:"_blank",rel:"noopener noreferrer",onClick:n,children:o})}function en(t){var{class:r,onClick:e,children:n}=t;return Re("div",{class:r,role:"button",tabIndex:0,onClick:e,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e())},style:{cursor:"pointer"},children:n})}function nn(t){var{class:r,children:e}=t;return Re("div",{class:r,children:e})}function on(t){return Re("div",{class:"ph-tour-banner-wrapper",children:Re("div",{class:"ph-tour-banner-slide",children:Re(ln,a({},t))})})}function ln(t){var r,{step:e,onDismiss:n,onActionClick:o,displayFrequency:i}=t,l=null!==(r=e.bannerConfig)&&void 0!==r?r:{behavior:"sticky"},a=l.action,u="always"!==i,s=["ph-tour-banner","sticky"===l.behavior&&"ph-tour-banner--sticky","custom"===l.behavior&&"ph-tour-banner--custom"].filter(Boolean).join(" "),c=Re(q,{children:[Re("div",{class:"ph-tour-banner-content",dangerouslySetInnerHTML:{__html:ze(e)}}),u&&Re("button",{class:"ph-tour-banner-dismiss",onClick:t=>{t.stopPropagation(),t.preventDefault(),n()},"aria-label":"Close banner",children:Fe()})]});return"link"===(null==a?void 0:a.type)&&a.link?Re(rn,{class:s,href:a.link,onClick:o,children:c}):"trigger_tour"===(null==a?void 0:a.type)&&o?Re(en,{class:s,onClick:o,children:c}):Re(nn,{class:s,children:c})}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]"==vr.call(t)&&t==t)(t)&&isFinite(t)&&Math.floor(t)===t}),r&&!gr(r.crypto)&&crypto.getRandomValues;var an=null,un={i:function(){if(!br(an))return an;var t=!0;if(gr(r))t=!1;else try{var e="__mplssupport__";un.h(e,"xyz"),'"xyz"'!==un.p(e)&&(t=!1),un.v(e)}catch(r){t=!1}return t||Er.error("localStorage unsupported; falling back to cookie store"),an=t,t},m:function(t){Er.error("localStorage error: "+t)},p:function(t){try{return null==r?void 0:r.localStorage.getItem(t)}catch(t){un.m(t)}return null},k:function(t){try{return JSON.parse(un.p(t))||{}}catch(t){}return null},h:function(t,e){try{null==r||r.localStorage.setItem(t,JSON.stringify(e))}catch(t){un.m(t)}},v:function(t){try{null==r||r.localStorage.removeItem(t)}catch(t){un.m(t)}}},sn=null,cn={i:function(){if(!br(sn))return sn;if(sn=!0,gr(r))sn=!1;else try{var t="__support__";cn.h(t,"xyz"),'"xyz"'!==cn.p(t)&&(sn=!1),cn.v(t)}catch(t){sn=!1}return sn},m:function(t){Er.error("sessionStorage error: ",t)},p:function(t){try{return null==r?void 0:r.sessionStorage.getItem(t)}catch(t){cn.m(t)}return null},k:function(t){try{return JSON.parse(cn.p(t))||null}catch(t){}return null},h:function(t,e){try{null==r||r.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){cn.m(t)}},v:function(t){try{null==r||r.sessionStorage.removeItem(t)}catch(t){cn.m(t)}}},hn="ph_product_tour_shown_",fn="ph_product_tour_completed_",dn="ph_product_tour_dismissed_",pn="ph_active_product_tour";function vn(t){var r,e;return!!(null!=(r=t.conditions)&&r.events&&(null==(e=t.conditions.events.values)?void 0:e.length)>0)}function mn(t){var r,e;return!!(null!=(r=t.conditions)&&r.actions&&(null==(e=t.conditions.actions.values)?void 0:e.length)>0)}class gn{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 n of this.T["*"]||[])n(t,r)}}function bn(t,r,e){if(yr(t))return!1;switch(e){case"exact":return t===r;case"contains":var n=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(t);case"regex":try{return new RegExp(r).test(t)}catch(t){return!1}default:return!1}}class yn{constructor(t){this.C=new gn,this.S=(t,r)=>this.q(t,r)&&this.M(t,r)&&this.A(t,r)&&this.L(t,r),this.q=(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.j=new Set}init(){var t;if(!gr(null==(t=this._instance)?void 0:t._addCaptureHook)){var r;null==(r=this._instance)||r._addCaptureHook(((t,r)=>{this.on(t,r)}))}}register(t){var r,e;if(!gr(null==(r=this._instance)?void 0:r._addCaptureHook)&&(t.forEach((t=>{var r,e;null==(r=this.j)||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 n,o=new Set;t.forEach((t=>{var r;null==(r=t.steps)||r.forEach((t=>{null!=t&&t.selector&&o.add(null==t?void 0:t.selector)}))})),null==(n=this._instance)||n.autocapture.setElementSelectors(o)}}on(t,r){var e;null!=r&&0!=t.length&&(this.I.has(t)||this.I.has(null==r?void 0:r.event))&&this.j&&(null==(e=this.j)?void 0:e.size)>0&&this.j.forEach((t=>{this.$(r,t)&&this.C.emit("actionCaptured",t.name)}))}R(t){this.onAction("actionCaptured",(r=>t(r)))}$(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.C.on(t,r)}M(t,r){if(null!=r&&r.url){var e,n=null==t||null==(e=t.properties)?void 0:e.$current_url;if(!n||"string"!=typeof n)return!1;if(!bn(n,r.url,r.url_matching||"contains"))return!1}return!0}A(t,r){return!!this.O(t,r)&&(!!this.P(t,r)&&!!this.Z(t,r))}O(t,r){var e;if(null==r||!r.href)return!0;var n=this.D(t);if(n.length>0)return n.some((t=>bn(t.href,r.href,r.href_matching||"exact")));var o,i=(null==t||null==(e=t.properties)?void 0:e.$elements_chain)||"";return!!i&&bn((o=i.match(/(?::|")href="(.*?)"/))?o[1]:"",r.href,r.href_matching||"exact")}P(t,r){var e;if(null==r||!r.text)return!0;var n=this.D(t);if(n.length>0)return n.some((t=>bn(t.text,r.text,r.text_matching||"exact")||bn(t.$el_text,r.text,r.text_matching||"exact")));var o,i,l,a=(null==t||null==(e=t.properties)?void 0:e.$elements_chain)||"";return!!a&&(o=function(t){for(var r,e=[],n=/(?::|")text="(.*?)"/g;!yr(r=n.exec(t));)e.includes(r[1])||e.push(r[1]);return e}(a),i=r.text,l=r.text_matching||"exact",o.some((t=>bn(t,i,l))))}Z(t,r){var e,n;if(null==r||!r.selector)return!0;var o=null==t||null==(e=t.properties)?void 0:e.$element_selectors;if(null!=o&&o.includes(r.selector))return!0;var i=(null==t||null==(n=t.properties)?void 0:n.$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}L(t,r){return null==r||!r.properties||0===r.properties.length||Nr(r.properties.reduce(((t,r)=>{var e=mr(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 wn{constructor(t){this._instance=t,this.N=new Map,this.F=new Map,this.H=new Map}V(t,r){return!!t&&Nr(t.propertyFilters,null==r?void 0:r.properties)}B(t,r){var e=new Map;return t.forEach((t=>{var n;null==(n=t.conditions)||null==(n=n[r])||null==(n=n.values)||n.forEach((r=>{if(null!=r&&r.name){var n=e.get(r.name)||[];n.push(t.id),e.set(r.name,n)}}))})),e}U(t,r,e){var n=(e===G.Activation?this.N:this.F).get(t),o=[];return this.W((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[e])||null==(o=o.values)?void 0:o.find((r=>r.name===t));return this.V(i,r)}))}register(t){var r;gr(null==(r=this._instance)?void 0:r._addCaptureHook)||(this.Y(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 yn(this._instance),this.G.init();this.G.R((t=>{this.onAction(t)}))}r.forEach((t=>{var r,e,n,o,i;t.conditions&&null!=(r=t.conditions)&&r.actions&&null!=(e=t.conditions)&&null!=(e=e.actions)&&e.values&&(null==(n=t.conditions)||null==(n=n.actions)||null==(n=n.values)?void 0:n.length)>0&&(null==(o=this.G)||o.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.H.get(r.name);e&&e.push(t.id),this.H.set(r.name,e||[t.id])}})))}))}}Y(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})),n=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!==n.length){null==(r=this._instance)||r._addCaptureHook(((t,r)=>{this.onEvent(t,r)})),this.N=this.B(t,G.Activation),this.F=this.B(t,G.Cancellation)}}onEvent(t,r){var e,n=this.K(),o=this.J(),i=this.tt(),l=(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[o])||[];if(i===t&&r&&l.length>0){var a,u;n.info("event matched, removing item from activated items",{event:t,eventPayload:r,existingActivatedItems:l});var s=(null==r||null==(a=r.properties)?void 0:a.$survey_id)||(null==r||null==(u=r.properties)?void 0:u.$product_tour_id);if(s){var c=l.indexOf(s);c>=0&&(l.splice(c,1),this.rt(l))}}else{if(this.F.has(t)){var h=this.U(t,r,G.Cancellation);h.length>0&&(n.info("cancel event matched, cancelling items",{event:t,itemsToCancel:h.map((t=>t.id))}),h.forEach((t=>{var r=l.indexOf(t.id);r>=0&&l.splice(r,1),this.et(t.id)})),this.rt(l))}if(this.N.has(t)){n.info("event name matched",{event:t,eventPayload:r,items:this.N.get(t)});var f=this.U(t,r,G.Activation);this.rt(l.concat(f.map((t=>t.id))||[]))}}}onAction(t){var r,e=this.J(),n=(null==(r=this._instance)||null==(r=r.persistence)?void 0:r.props[e])||[];this.H.has(t)&&this.rt(n.concat(this.H.get(t)||[]))}rt(t){var r,e=this.K(),n=this.J(),o=[...new Set(t)].filter((t=>!this.nt(t)));e.info("updating activated items",{activatedItems:o}),null==(r=this._instance)||null==(r=r.persistence)||r.register({[n]:o})}getActivatedIds(){var t,r=this.J(),e=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[r];return e||[]}getEventToItemsMap(){return this.N}ot(){return this.G}}var _n=Ir("[Product Tour Event Receiver]");class xn extends wn{constructor(t){super(t)}J(){return"$product_tours_activated"}tt(){return Y.SHOWN}W(t){var r;null==(r=this._instance)||null==(r=r.productTours)||r.getProductTours(t)}et(t){var r;null==(r=this._instance)||null==(r=r.productTours)||r.cancelPendingTour(t)}K(){return _n}nt(t){if(!t)return!0;var r=""+fn+t,e=""+dn+t;return!(!un.p(r)&&!un.p(e))}getTours(){return this.getActivatedIds()}}!function(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),n=1;n<r;n++)e[n-1]=arguments[n];Rr(e,(function(r){Rr(r,(function(r){t.push(r)}))}))}(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"]);var kn=Ir("[Product Tours]"),Tn=i,Cn=r;function Sn(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 qn(t){return Sn(t)&&function(t){var r,e=t.conditions;if(null==e||!e.url)return!0;var n=null==Cn||null==(r=Cn.location)?void 0:r.href;if(!n)return!1;var o=e.urlMatchType||dr.Icontains;if(o===dr.Exact)return Ee(n)===Ee(e.url);var i=[e.url];return Zr[o](i,[n])}(t)}var Mn="ph-product-tour-container",An="data-ph-tour-trigger";class Ln{constructor(t){var r=this;this.it=null,this.ut=0,this.st=!1,this.ct=!1,this.ht=null,this.ft=new Map,this.dt=new Map,this.vt=new Set,this.bt=new Set,this.yt=()=>{Tn.hidden&&this.ht?(clearInterval(this.ht),this.ht=null):Tn.hidden||this.ht||(this.ht=setInterval((()=>{this.wt()}),1e3),this.wt())},this.nextStep=()=>{if(this.it){var t=this.it.steps[this.ut];this._t(Y.STEP_COMPLETED,{[X.TOUR_ID]:this.it.id,[X.TOUR_STEP_ID]:t.id,[X.TOUR_STEP_ORDER]:this.ut}),this.ut<this.it.steps.length-1?(this.xt(this.ut+1),this.kt()):this.Tt()}},this.previousStep=()=>{this.it&&0!==this.ut&&(this.xt(this.ut-1),this.kt())},this.dismissTour=function(t){if(void 0===t&&(t="user_clicked_skip"),r.it){var e=r.it.steps[r.ut];r._t(Y.DISMISSED,{[X.TOUR_ID]:r.it.id,[X.TOUR_STEP_ID]:e.id,[X.TOUR_STEP_ORDER]:r.ut,[X.TOUR_DISMISS_REASON]:t}),r.st||(un.h(""+dn+r.it.id,!0),r._instance.capture("$set",{$set:{["$product_tour_dismissed/"+r.it.id]:!0}})),Cn.dispatchEvent(new CustomEvent("PHProductTourDismissed",{detail:{tourId:r.it.id,reason:t}})),r.Ct()}},this.St=()=>{var t;if(this.it){var r=this.qt();if(r){var e=null==(t=r.bannerConfig)?void 0:t.action;this._t(Y.BANNER_ACTION_CLICKED,{[X.TOUR_ID]:this.it.id,[X.TOUR_NAME]:this.it.name,[X.TOUR_ITERATION]:this.it.current_iteration||1,[X.TOUR_STEP_ID]:r.id,[X.TOUR_STEP_ORDER]:this.ut,[X.TOUR_BUTTON_ACTION]:null==e?void 0:e.type,[X.TOUR_BUTTON_LINK]:null==e?void 0:e.link,[X.TOUR_BUTTON_TOUR_ID]:null==e?void 0:e.tourId}),"trigger_tour"===(null==e?void 0:e.type)&&e.tourId&&(this.Ct(),this.showTourById(e.tourId))}}},this.Mt=t=>{if(this.it){var r=this.it.steps[this.ut];r&&this._t(Y.BUTTON_CLICKED,a({[X.TOUR_ID]:this.it.id,[X.TOUR_NAME]:this.it.name,[X.TOUR_ITERATION]:this.it.current_iteration||1,[X.TOUR_STEP_ID]:r.id,[X.TOUR_STEP_ORDER]:this.ut,[X.TOUR_BUTTON_TEXT]:t.text,[X.TOUR_BUTTON_ACTION]:t.action},t.link&&{[X.TOUR_BUTTON_LINK]:t.link},t.tourId&&{[X.TOUR_BUTTON_TOUR_ID]:t.tourId}))}switch(t.action){case"dismiss":this.dismissTour("user_clicked_skip");break;case"next_step":this.nextStep();break;case"previous_step":this.previousStep();break;case"link":this.Tt();break;case"trigger_tour":t.tourId&&(this.Tt(),this.showTourById(t.tourId))}},this._instance=t,this.At=new xn(t)}Lt(t){var r=t.filter((t=>!t.disable_image_preload)).flatMap((t=>t.steps.flatMap(je)));for(var e of r)this.bt.has(e)||(this.bt.add(e),(new Image).src=e)}qt(){var t;if(!this.it)return null;var r=this.it.steps[this.ut];if(!r)return null;var e=null!==(t=this._instance.config.override_display_language)&&void 0!==t?t:navigator.language||navigator.userLanguage;return function(t,r){var e;if(!r||!t.translations)return t;var n=t.translations,o=null!==(e=n[r])&&void 0!==e?e:n[r.split("-")[0]];if(!o)return ye.info('No matching translation for "'+r+'" in step '+t.id+", using default"),t;var i=a({},t);return gr(o.content)||(i.content=o.content),gr(o.contentHtml)||(i.contentHtml=o.contentHtml),o.buttons&&i.buttons&&(i.buttons={primary:i.buttons.primary&&a({},i.buttons.primary,o.buttons.primary),secondary:i.buttons.secondary&&a({},i.buttons.secondary,o.buttons.secondary)}),o.survey&&i.survey&&(i.survey=a({},i.survey,o.survey)),i}(r,null!=e?e:null)}xt(t){this.ut=t,this.Et()}Et(){this.it&&!this.st&&cn.h(pn,{tourId:this.it.id,stepIndex:this.ut})}It(){cn.v(pn)}jt(){var t=cn.p(pn);if(!t)return null;try{return JSON.parse(t)}catch(t){return null}}start(){if(!this.ht){var t=this.jt();t?this.zt(t.tourId,t.stepIndex,(()=>{this.$t()})):this.$t()}}$t(){this.ht=setInterval((()=>{this.wt()}),1e3),this.wt(!0),Or(Tn,"visibilitychange",this.yt)}zt(t,r,e){var n;null==(n=this._instance.productTours)||n.getProductTours((n=>{var o=n.find((r=>r.id===t));o?(this.it=o,this.ut=r,this.ct=!0,this.kt()):n.length>0&&this.It(),e()}))}stop(){this.ht&&(clearInterval(this.ht),this.ht=null),Tn.removeEventListener("visibilitychange",this.yt),this.Rt(),this.Ot(),this.Ct()}wt(t){var r;null!=Tn&&Tn.getElementById("__POSTHOG_TOOLBAR__")||null==(r=this._instance.productTours)||r.getProductTours((t=>{if(0!==t.length){this.Lt(t);var r=new Set,e=t.filter((t=>!this.vt.has(t.id)&&(vn(t)||mn(t))));e.length>0&&(this.At.register(e),e.forEach((t=>this.vt.add(t.id))));var n=this.it?[]:this.At.getTours();for(var o of t){var i,l=null==(i=o.conditions)?void 0:i.selector;if(l&&(r.add(o.id),this.Pt(o,l)),!this.it){var a=mn(o)||vn(o);if(o.auto_launch&&this.Zt(o)){if(!a){this.Dt(o,"auto");continue}n.includes(o.id)&&this.Dt(o,"event")}}}this.ft.forEach((t=>{var{tour:e}=t;r.has(e.id)||this.Nt(e.id)}))}else this.Rt()}),t)}Dt(t,r){var e,n=(null==(e=t.conditions)?void 0:e.autoShowDelaySeconds)||0;n>0?this.isTourPending(t.id)||this.queueTourWithDelay(t.id,n,r):this.showTour(t,{reason:r})}Zt(t){var r,e;if(!qn(t))return kn.info("Tour "+t.id+" failed conditions check"),!1;var n=null!==(r=t.display_frequency)&&void 0!==r?r:"until_interacted",o=""+hn+t.id,i=""+fn+t.id,l=""+dn+t.id;switch(n){case"show_once":if(un.p(o))return kn.info("Tour "+t.id+" already shown (show_once frequency)"),!1;break;case"until_interacted":if(un.p(i)||un.p(l))return kn.info("Tour "+t.id+" already completed or dismissed"),!1}if(!this.Ft({flagKey:t.internal_targeting_flag_key}))return kn.info("Tour "+t.id+" failed feature flag check: "+t.internal_targeting_flag_key),!1;var a=null==(e=t.conditions)?void 0:e.linkedFlagVariant;return!!this.Ft({flagKey:t.linked_flag_key,flagVariant:a})||(kn.info("Tour "+t.id+" failed feature flag check: "+t.linked_flag_key+", variant: "+a),!1)}showTour(t,r){var e,n=null!==(e=null==r?void 0:r.reason)&&void 0!==e?e:"auto";this.cancelPendingTour(t.id),this.it=t,this.xt(0);var o=this.kt();return o?(this._t(Y.SHOWN,{[X.TOUR_ID]:t.id,[X.TOUR_NAME]:t.name,[X.TOUR_ITERATION]:t.current_iteration||1,[X.TOUR_RENDER_REASON]:n}),this.st||(un.h(""+hn+t.id,!0),this._instance.capture("$set",{$set:{["$product_tour_shown/"+t.id]:!0}}))):this.Ct(),o}showTourById(t,r){var e;kn.info("showTourById("+t+")"),null==(e=this._instance.productTours)||e.getProductTours((e=>{var n=e.find((r=>r.id===t));n?this.showTour(n,{reason:null!=r?r:"api"}):kn.warn("could not find tour",t)}))}previewTour(t){kn.info("Previewing tour "+t.id),this.Ct(),this.st=!0,this.it=t,this.ut=0,this.kt()}Tt(){this.it&&(this._t(Y.COMPLETED,{[X.TOUR_ID]:this.it.id,[X.TOUR_STEPS_COUNT]:this.it.steps.length}),this.st||(un.h(""+fn+this.it.id,!0),this._instance.capture("$set",{$set:{["$product_tour_completed/"+this.it.id]:!0}})),Cn.dispatchEvent(new CustomEvent("PHProductTourCompleted",{detail:{tourId:this.it.id}})),this.Ct())}kt(t){var r;if(void 0===t&&(t=0),!this.it)return!1;var e=this.qt();if(!e)return kn.warn("Step "+this.ut+" not found in tour "+this.it.id),this.Ct(),!1;if("banner"===e.type)return this.Ht(),this.ct=!1,this.Vt(),!0;if("survey"===e.type)return e.survey?(this.Bt(),!0):(kn.warn("Unable to render survey step - survey data not found"),!1);if(!ke(e))return this.Ht(),this.ct=!1,this.Ut(null),!0;var n=Ce(e),o={[X.USE_MANUAL_SELECTOR]:null!==(r=e.useManualSelector)&&void 0!==r&&r,[X.INFERENCE_DATA_PRESENT]:!!e.inferenceData},i=this.ut>0?this.it.steps[this.ut-1]:null,l="click"===(null==i?void 0:i.progressionTrigger)||this.ct;if("not_found"===n.error||"not_visible"===n.error){if(l&&t<20)return setTimeout((()=>{this.kt(t+1)}),100),!1;var u=100*t;return this.Qt(n,a({[X.TOUR_WAITED_FOR_ELEMENT]:l,[X.TOUR_WAIT_DURATION_MS]:u},o)),0!==this.ut||this.ct?(kn.warn('Tour "'+this.it.name+'" dismissed: element for step '+this.ut+" became unavailable ("+n.error+")"+(l?" after waiting "+u+"ms":"")),this.dismissTour("element_unavailable"),!1):(kn.warn('Tour "'+this.it.name+'" failed to show: element for first step not found ('+n.error+")"),!1)}if("multiple_matches"===n.error&&this.Qt(n,o),!n.element)return!1;var s=n.element,c=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}}(s);return this.Ht(a({[X.TOUR_STEP_SELECTOR]:e.selector,[X.TOUR_STEP_SELECTOR_FOUND]:!0,[X.TOUR_STEP_ELEMENT_TAG]:c.tag,[X.TOUR_STEP_ELEMENT_ID]:c.id,[X.TOUR_STEP_ELEMENT_CLASSES]:c.classes,[X.TOUR_STEP_ELEMENT_TEXT]:c.text},o)),this.ct=!1,this.Ut(s),!0}Ut(t,r,e){if(this.it){var n=this.qt();if(n){var{shadow:o}=function(t){var r=Mn+"-"+t.id,e=Tn.querySelector("."+r);if(e&&e.shadowRoot)return{shadow:e.shadowRoot,isNewlyCreated:!1};var n=Tn.createElement("div");n.className=r,Ae(n,t.appearance);var o=n.attachShadow({mode:"open"}),i=xe();return i&&o.appendChild(i),Tn.body.appendChild(n),{shadow:o,isNewlyCreated:!0}}(this.it);Q(Re(tn,{tour:this.it,step:n,stepIndex:this.ut,totalSteps:this.it.steps.length,targetElement:t,onNext:this.nextStep,onPrevious:this.previousStep,onDismiss:e||this.dismissTour,onSurveySubmit:r,onButtonClick:this.Mt}),o)}}}Vt(){if(this.it){var t=this.qt();if(t){var r,e=function(t,r){var e,n=Mn+"-"+t.id,o=Tn.querySelector("."+n);if(o&&o.shadowRoot)return{shadow:o.shadowRoot,isNewlyCreated:!1};var i=Tn.createElement("div");i.className=n,Ae(i,t.appearance),gr(null==r||null==(e=r.animation)?void 0:e.duration)||i.style.setProperty("--ph-tour-banner-animation-duration",r.animation.duration+"ms");var l=i.attachShadow({mode:"open"}),a=xe();if(a&&l.appendChild(a),"custom"===(null==r?void 0:r.behavior)&&r.selector){var u=Tn.querySelector(r.selector);if(!u)return kn.warn("Custom banner container not found: "+r.selector+". Banner will not be displayed."),null;u.appendChild(i)}else Tn.body.insertBefore(i,Tn.body.firstChild);return{shadow:l,isNewlyCreated:!0}}(this.it,t.bannerConfig);if(!e)return this._t(Y.BANNER_CONTAINER_SELECTOR_FAILED,{[X.TOUR_ID]:this.it.id,[X.TOUR_BANNER_SELECTOR]:null==t||null==(r=t.bannerConfig)?void 0:r.selector}),void this.dismissTour("container_unavailable");var{shadow:n}=e;Q(Re(on,{step:t,onDismiss:()=>this.dismissTour("user_clicked_skip"),onActionClick:this.St,displayFrequency:this.it.display_frequency}),n)}}}Bt(){var t,r,e;if(this.it){var n=this.it.id,o=this.qt();if(o){var i=o.linkedSurveyId,l=o.linkedSurveyQuestionId,u=(null==(t=o.survey)?void 0:t.questionText)||"";this.Ht({[X.TOUR_LINKED_SURVEY_ID]:i}),this._t(rt.SHOWN,{[et.SURVEY_ID]:i,[et.PRODUCT_TOUR_ID]:n,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)});this.Ut(null,(t=>{var r,e,o=l?"$survey_response_"+l:"$survey_response";this._t(rt.SENT,a({[et.SURVEY_ID]:i,[et.PRODUCT_TOUR_ID]:n,[et.SURVEY_QUESTIONS]:[{id:l,question:u,response:t}],[et.SURVEY_COMPLETED]:!0,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)},!br(t)&&{[o]:t})),kn.info("Survey "+i+" completed",br(t)?"(skipped)":"with response: "+t),this.nextStep()}),(t=>{var r,e;this._t(rt.DISMISSED,{[et.SURVEY_ID]:i,[et.PRODUCT_TOUR_ID]:n,[et.SURVEY_QUESTIONS]:[{id:l,question:u,response:null}],[et.SURVEY_PARTIALLY_COMPLETED]:!1,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)}),kn.info("Survey "+i+" dismissed"),this.dismissTour(t)})),kn.info("Rendered survey step for tour step "+this.ut)}}}Ft(t){var{flagKey:r,flagVariant:e}=t;if(!r)return!0;var n=!!this._instance.featureFlags.isFeatureEnabled(r,{send_event:!r.startsWith("product-tour-targeting-")}),o=!0;e&&(o=this._instance.featureFlags.getFeatureFlag(r,{send_event:!1})===e||"any"===e);return n&&o}Ct(){var t,r,e;this.it&&(t=this.it.id,r=Mn+"-"+t,null!=(e=Tn.querySelector("."+r))&&e.shadowRoot&&Q(null,e.shadowRoot),null==e||e.remove()),this.it=null,this.ut=0,this.st=!1,this.ct=!1,this.It()}Pt(t,r){var e=Tn.querySelector(r),n=this.ft.get(t.id);if(e){if(n){if(e===n.element)return;kn.info("Trigger element changed for tour "+t.id+". Re-attaching listener."),this.Nt(t.id)}if(!e.hasAttribute(An)){var o=e=>{var n;if(this.it)kn.info("Tour "+t.id+" trigger clicked but another tour is active");else{var o;if(null==(n=this._instance.productTours)||n.getProductTours((r=>{o=r.find((r=>r.id===t.id))})),!o)return kn.warn("Tour "+t.id+" no longer exists. Removing stale listener."),void this.Nt(t.id);Sn(o)?(kn.info("Tour "+t.id+" triggered by click on "+r),this.showTour(o,{reason:"trigger"})?e.preventDefault():kn.info("Tour "+t.id+" failed to show; not intercepting click.")):kn.warn("Tour "+t.id+" trigger clicked, but tour is not launched - not showing tour.")}};Or(e,"click",o),e.setAttribute(An,t.id),this.ft.set(t.id,{element:e,listener:o,tour:t}),kn.info("Attached trigger listener for tour "+t.id+" on "+r)}}else n&&this.Nt(t.id)}Nt(t){var r=this.ft.get(t);r&&(r.element.removeEventListener("click",r.listener),r.element.removeAttribute(An),this.ft.delete(t),kn.info("Removed trigger listener for tour "+t))}Rt(){this.ft.forEach(((t,r)=>{this.Nt(r)}))}_t(t,r){this.st||this._instance.capture(t,r)}Ht(t){if(this.it){var r=this.it.steps[this.ut];this._t(Y.STEP_SHOWN,a({[X.TOUR_ID]:this.it.id,[X.TOUR_STEP_ID]:r.id,[X.TOUR_STEP_ORDER]:this.ut,[X.TOUR_STEP_TYPE]:r.type},t))}}Qt(t,r){if(this.it){var e=this.it.steps[this.ut];this._t(Y.STEP_SELECTOR_FAILED,a({[X.TOUR_ID]:this.it.id,[X.TOUR_STEP_ID]:e.id,[X.TOUR_STEP_ORDER]:this.ut,[X.TOUR_STEP_SELECTOR]:e.selector,[X.TOUR_ERROR]:t.error,[X.TOUR_MATCHES_COUNT]:t.matchCount,[X.TOUR_FAILURE_PHASE]:"runtime"},r))}}getActiveProductTours(t){var r;null==(r=this._instance.productTours)||r.getProductTours(((r,e)=>{if(null!=e&&e.isLoaded){var n=r.filter((t=>this.Zt(t)));t(n,e)}else t([],e)}))}resetTour(t){un.v(""+hn+t),un.v(""+fn+t),un.v(""+dn+t)}resetAllTours(){var t=null==Cn?void 0:Cn.localStorage;if(t){for(var r=[],e=0;e<t.length;e++){var n=t.key(e);(null!=n&&n.startsWith(hn)||null!=n&&n.startsWith(fn)||null!=n&&n.startsWith(dn))&&r.push(n)}r.forEach((t=>un.v(t)))}}cancelPendingTour(t){var r=this.dt.get(t);r&&(clearTimeout(r),this.dt.delete(t),kn.info("Cancelled pending tour: "+t))}Ot(){this.dt.forEach((t=>clearTimeout(t))),this.dt.clear()}isTourPending(t){return this.dt.has(t)}queueTourWithDelay(t,r,e){kn.info("Queueing tour "+t+" with "+r+"s delay");var n=setTimeout((()=>{this.dt.delete(t),kn.info("Delay elapsed for tour "+t+", showing now"),this.showTourById(t,e)}),1e3*r);this.dt.set(t,n)}}function En(t,r){if(i){var e=new Ln(t);return r&&e.start(),e}}l.__PosthogExtensions__=l.__PosthogExtensions__||{},l.__PosthogExtensions__.generateProductTours=En,t.default=En,t.elementIsVisible=Cr,t.findElement=Ar,t.getElementPath=function(t,r){if(void 0===r&&(r=4),!t)return null;for(var e=[],n=t;n&&e.length<r&&"BODY"!==n.tagName;){var o=n.tagName.toLowerCase();n.id?o+="#"+n.id:n.classList.length&&(o+="."+n.classList[0]),e.unshift(o),n=n.parentElement}return e.join(" > ")},Object.defineProperty(t,"__esModule",{value:!0})}({});
|
|
2
2
|
//# sourceMappingURL=product-tours.js.map
|