posthog-js 1.412.0 → 1.412.1

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.
@@ -1,2 +1,2 @@
1
- !function(t){"use strict";var r="undefined"!=typeof window?window:void 0,e="undefined"!=typeof globalThis?globalThis:r,n=null==e?void 0:e.navigator,o=null==e?void 0:e.document;null!=e&&e.XMLHttpRequest&&new e.XMLHttpRequest;var i=null==n?void 0:n.userAgent;function l(){return l=Object.assign?Object.assign.bind():function(t){for(var r=1;arguments.length>r;r++){var e=arguments[r];for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},l.apply(null,arguments)}var a,u,s,c,h,d,f,p,v,m,g,b,y,w,x,_={},k=[],T=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,C=Array.isArray;function S(t,r){for(var e in r)t[e]=r[e];return t}function A(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function q(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?++s:o,__i:-1,__u:0};return null==o&&null!=u.vnode&&u.vnode(i),i}function M(t){return t.children}function L(t,r){this.props=t,this.context=r}function $(t,r){if(null==r)return t.__?$(t.__,t.__i+1):null;for(var e;t.__k.length>r;r++)if(null!=(e=t.__k[r])&&null!=e.__e)return e.__e;return"function"==typeof t.type?$(t):null}function j(t){if(t.__P&&t.__d){var r=t.__v,e=r.__e,n=[],o=[],i=S({},r);i.__v=r.__v+1,u.vnode&&u.vnode(i),H(t.__P,i,r,t.__n,t.__P.namespaceURI,32&r.__u?[e]:null,n,null==e?$(r):e,!!(32&r.__u),o),i.__v=r.__v,i.__.__k[i.__i]=i,V(n,i,o),r.__e=r.__=null,i.__e!=e&&E(i)}}function E(t){if(null!=(t=t.__)&&null!=t.__c)return t.__e=t.__c.base=null,t.__k.some((function(r){if(null!=r&&null!=r.__e)return t.__e=t.__c.base=r.__e})),E(t)}function z(t){(!t.__d&&(t.__d=!0)&&c.push(t)&&!I.__r++||h!=u.debounceRendering)&&((h=u.debounceRendering)||d)(I)}function I(){try{for(var t,r=1;c.length;)c.length>r&&c.sort(f),t=c.shift(),r=c.length,j(t)}finally{c.length=I.__r=0}}function R(t,r,e,n,o,i,l,a,u,s,c){var h,d,f,p,v,m,g,b=n&&n.__k||k,y=r.length;for(u=P(e,r,b,u,y),h=0;y>h;h++)null!=(f=e.__k[h])&&(d=-1!=f.__i&&b[f.__i]||_,f.__i=h,m=H(t,f,d,o,i,l,a,u,s,c),p=f.__e,f.ref&&d.ref!=f.ref&&(d.ref&&W(d.ref,null,f),c.push(f.ref,f.__c||p,f)),null==v&&null!=p&&(v=p),(g=!!(4&f.__u))||d.__k===f.__k?(u=O(f,u,t,g),g&&d.__e&&(d.__e=null)):"function"==typeof f.type&&void 0!==m?u=m:p&&(u=p.nextSibling),f.__u&=-7);return e.__e=v,u}function P(t,r,e,n,o){var i,l,a,u,s,c=e.length,h=c,d=0;for(t.__k=new Array(o),i=0;o>i;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]=q(null,l,null,null,null):C(l)?l=t.__k[i]=q(M,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?l=t.__k[i]=q(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):t.__k[i]=l,u=i+d,l.__=t,l.__b=t.__b+1,a=null,-1!=(s=l.__i=Z(l,e,u,h))&&(h--,(a=e[s])&&(a.__u|=2)),null==a||null==a.__v?(-1==s&&(o>c?d--:c>o&&d++),"function"!=typeof l.type&&(l.__u|=4)):s!=u&&(s==u-1?d--:s==u+1?d++:(s>u?d--:d++,l.__u|=4))):t.__k[i]=null;if(h)for(i=0;c>i;i++)null!=(a=e[i])&&0==(2&a.__u)&&(a.__e==n&&(n=$(a)),K(a,a));return n}function O(t,r,e,n){var o,i;if("function"==typeof t.type){for(o=t.__k,i=0;o&&o.length>i;i++)o[i]&&(o[i].__=t,r=O(o[i],r,e,n));return r}t.__e!=r&&(n&&(r&&t.type&&!r.parentNode&&(r=$(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||r.length>i;)if(null!=(s=r[l=0>o?i++:o--])&&0==(2&s.__u)&&a==s.key&&u==s.type)return l;return-1}function D(t,r,e){"-"==r[0]?t.setProperty(r,null==e?"":e):t[r]=null==e?"":"number"!=typeof e||T.test(r)?e:e+"px"}function N(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||D(t.style,r,"");if(e)for(r in e)n&&e[r]==n[r]||D(t.style,r,e[r])}else if("o"==r[0]&&"n"==r[1])i=r!=(r=r.replace(g,"$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[m]=n[m]:(e[m]=b,t.addEventListener(r,i?w:y,i)):t.removeEventListener(r,i?w:y,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 F(t){return function(r){if(this.l){var e=this.l[r.type+t];if(null==r[v])r[v]=b++;else if(e[m]>r[v])return;return e(u.event?u.event(r):r)}}}function H(t,r,e,n,o,i,l,a,s,c){var h,d,f,p,v,m,g,b,y,w,$,x,_,T,q,j,E=r.type;if(void 0!==r.constructor)return null;128&e.__u&&(s=!!(32&e.__u),i=[a=r.__e=e.__e]),(h=u.__b)&&h(r);t:if("function"==typeof E){d=l.length;try{if(y=r.props,w=E.prototype&&E.prototype.render,$=(h=E.contextType)&&n[h.__c],x=h?$?$.props.value:h.__:n,e.__c?b=(f=r.__c=e.__c).__=f.__E:(w?r.__c=f=new E(y,x):(r.__c=f=new L(y,x),f.constructor=E,f.render=Y),$&&$.sub(f),f.state||(f.state={}),f.__n=n,p=f.__d=!0,f.__h=[],f._sb=[]),w&&null==f.__s&&(f.__s=f.state),w&&null!=E.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=S({},f.__s)),S(f.__s,E.getDerivedStateFromProps(y,f.__s))),v=f.props,m=f.state,f.__v=r,p)w&&null==E.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),w&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(w&&null==E.getDerivedStateFromProps&&y!==v&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(y,x),r.__v==e.__v||!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(y,f.__s,x)){r.__v!=e.__v&&(f.props=y,f.state=f.__s,f.__d=!1),r.__e=e.__e,r.__k=e.__k,r.__k.some((function(t){t&&(t.__=r)})),k.push.apply(f.__h,f._sb),f._sb=[],f.__h.length&&l.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(y,f.__s,x),w&&null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(v,m,g)}))}if(f.context=x,f.props=y,f.__P=t,f.__e=!1,_=u.__r,T=0,w)f.state=f.__s,f.__d=!1,_&&_(r),h=f.render(f.props,f.state,f.context),k.push.apply(f.__h,f._sb),f._sb=[];else do{f.__d=!1,_&&_(r),h=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&25>++T);f.state=f.__s,null!=f.getChildContext&&(n=S(S({},n),f.getChildContext())),w&&!p&&null!=f.getSnapshotBeforeUpdate&&(g=f.getSnapshotBeforeUpdate(v,m)),q=null!=h&&h.type===M&&null==h.key?Q(h.props.children):h,a=R(t,C(q)?q:[q],r,e,n,o,i,l,a,s,c),f.base=r.__e,r.__u&=-161,f.__h.length&&l.push(f),b&&(f.__E=f.__=null)}catch(t){if(l.length=d,r.__v=null,s||null!=i)if(t.then){for(r.__u|=s?160:128;a&&8==a.nodeType&&a.nextSibling;)a=a.nextSibling;null!=i&&(i[i.indexOf(a)]=null),r.__e=a}else{if(null!=i)for(j=i.length;j--;)A(i[j]);B(r)}else r.__e=e.__e,!r.__k&&e.__k&&(r.__k=e.__k),t.then||B(r);u.__e(t,r,e)}}else null==i&&r.__v==e.__v?(r.__k=e.__k,r.__e=e.__e):a=r.__e=U(e.__e,r,e,n,o,i,l,s,c);return(h=u.diffed)&&h(r),128&r.__u?void 0:a}function B(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(B))}function V(t,r,e){for(var n=0;e.length>n;n++)W(e[n],e[++n],e[++n]);u.__c&&u.__c(r,t),t.some((function(r){try{t=r.__h,r.__h=[],t.some((function(t){t.call(r)}))}catch(t){u.__e(t,r.__v)}}))}function Q(t){return"object"!=typeof t||null==t||t.__b>0?t:C(t)?t.map(Q):void 0!==t.constructor?null:S({},t)}function U(t,r,e,n,o,i,l,s,c){var h,d,f,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;i.length>h;h++)if((v=i[h])&&"setAttribute"in v==!!w&&(w?v.localName==w:3==v.nodeType)){t=v,i[h]=null;break}if(null==t){if(null==w)return document.createTextNode(y);t=document.createElementNS(o,w,y.is&&y),s&&(u.__m&&u.__m(r,i),s=!1),i=null}if(null==w)b===y||s&&t.data==y||(t.data=y);else{if(i="textarea"==w&&null!=y.defaultValue?null:i&&a.call(t.childNodes),!s&&null!=i)for(b={},h=0;t.attributes.length>h;h++)b[(v=t.attributes[h]).name]=v.value;for(h in b)v=b[h],"dangerouslySetInnerHTML"==h?f=v:"children"==h||h in y||"value"==h&&"defaultValue"in y||"checked"==h&&"defaultChecked"in y||N(t,h,null,v,o);for(h in y)v=y[h],"children"==h?p=v:"dangerouslySetInnerHTML"==h?d=v:"value"==h?m=v:"checked"==h?g=v:s&&"function"!=typeof v||b[h]===v||N(t,h,v,b[h],o);if(d)s||f&&(d.__html==f.__html||d.__html==t.innerHTML)||(t.innerHTML=d.__html),r.__k=[];else if(f&&(t.innerHTML=""),R("template"==r.type?t.content:t,C(p)?p:[p],r,e,n,"foreignObject"==w?"http://www.w3.org/1999/xhtml":o,i,l,i?i[0]:e.__k&&$(e,0),s,c),null!=i)for(h=i.length;h--;)A(i[h]);s&&"textarea"!=w||(h="value","progress"==w&&null==m?t.removeAttribute("value"):null!=m&&(m!==t[h]||"progress"==w&&!m||"option"==w&&m!=b[h])&&N(t,h,m,b[h],o),h="checked",null!=g&&g!=t[h]&&N(t,h,g,b[h],o))}return t}function W(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){u.__e(t,e)}}function K(t,r,e){var n,o;if(u.unmount&&u.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||W(n,null,r)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){u.__e(t,r)}n.base=n.__P=n.__n=null}if(n=t.__k)for(o=0;n.length>o;o++)n[o]&&K(n[o],r,e||"function"!=typeof t.type);e||A(t.__e),t.__c=t.__=t.__e=void 0}function Y(t,r,e){return this.constructor(t,e)}function G(t,r,e){var n,o,i;r==document&&(r=document.documentElement),u.__&&u.__(t,r),n=r.__k,o=[],i=[],H(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?a.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 q(t,l,n,o,null)}(M,null,[t]),n||_,_,r.namespaceURI,n?null:r.firstChild?a.call(r.childNodes):null,o,n?n.__e:r.firstChild,!1,i),V(o,t,i),t.props.children=null}a=k.slice,u={__e(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}},s=0,L.prototype.setState=function(t,r){var e;e=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=S({},this.state),"function"==typeof t&&(t=t(S({},e),this.props)),t&&S(e,t),null!=t&&this.__v&&(r&&this._sb.push(r),z(this))},L.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),z(this))},L.prototype.render=M,c=[],d="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(t,r){return t.__v.__b-r.__v.__b},I.__r=0,p=Math.random().toString(8),v="__d"+p,m="__a"+p,g=/(PointerCapture)$|Capture$/i,b=0,y=F(!1),w=F(!0),x=0;var J="$product_tours_activated",X="$product_tours_activated_session",tt={backgroundColor:"#ffffff",textColor:"#1d1f27",buttonColor:"#1d1f27",borderRadius:8,buttonBorderRadius:6,borderColor:"#e5e7eb",fontFamily:"system-ui",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",showOverlay:!0,whiteLabel:!1,dismissOnClickOutside:!0,zIndex:2147483646},rt="product tour shown",et="$product_tour_id",nt="$product_tour_name",ot="$product_tour_iteration",it="$product_tour_step_id",lt="$product_tour_step_order",at="$product_tour_button_action",ut="$product_tour_button_link",st="$product_tour_button_tour_id",ct="$product_tour_step_selector",ht="exact",dt="icontains",ft=Object.prototype,pt=ft.hasOwnProperty,vt=ft.toString,mt=Array.isArray||function(t){return"[object Array]"===vt.call(t)},gt=t=>"function"==typeof t,bt=t=>void 0===t,yt=t=>"[object String]"==vt.call(t),wt=t=>null===t,xt=t=>bt(t)||wt(t),_t=t=>"[object Number]"==vt.call(t)&&t==t,kt=(t,r,e)=>{function n(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),l=1;o>l;l++)i[l-1]=arguments[l];r((()=>{(0,e[n])(t,...i)}))}var o={debug(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("debug",...r)},info(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("log",...r)},warn(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("warn",...r)},error(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("error",...r)},critical(){for(var r=arguments.length,n=new Array(r),o=0;r>o;o++)n[o]=arguments[o];e.error(t,...n)},createLogger:n=>kt(t+" "+n,r,e)};return o},Tt="Mobile",Ct="Android",St="Tablet",At=Ct+" "+St,qt="iPad",Mt="Apple Watch",Lt="BlackBerry",jt="Nintendo",Et="PlayStation",zt="Xbox",It="Windows Phone",Rt="Nokia",$t="Ouya",Pt="Generic",Ot=Pt+" "+Tt.toLowerCase(),Zt=Pt+" "+St.toLowerCase(),Dt=new RegExp(zt,"i"),Nt=new RegExp(Et+" \\w+","i"),Ft=new RegExp(jt+" \\w+","i"),Ht=new RegExp(Lt+"|PlayBook|BB10","i"),Bt="events",Vt="cancelEvents",Qt="tab",Ut="top_left",Wt="top_right",Kt="top_center",Yt="middle_left",Gt="middle_right",Jt="middle_center",Xt="left",tr="center",rr="right",er="widget",nr="$survey_id",or="$survey_questions",ir="$product_tour_id",lr=Object.entries,ar=Object.setPrototypeOf,ur=Object.isFrozen,sr=Object.getPrototypeOf,cr=Object.getOwnPropertyDescriptor,hr=Object.freeze,dr=Object.seal,fr=Object.create,pr="undefined"!=typeof Reflect&&Reflect,vr=pr.apply,mr=pr.construct;hr||(hr=function(t){return t}),dr||(dr=function(t){return t}),vr||(vr=function(t,r){for(var e=arguments.length,n=new Array(e>2?e-2:0),o=2;e>o;o++)n[o-2]=arguments[o];return t.apply(r,n)}),mr||(mr=function(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),n=1;r>n;n++)e[n-1]=arguments[n];return new t(...e)});var gr,br=Er([].forEach),yr=Er([].lastIndexOf),wr=Er([].pop),xr=Er([].push),_r=Er([].splice),kr=Er("".toLowerCase),Tr=Er("".toString),Cr=Er("".match),Sr=Er("".replace),Ar=Er("".indexOf),qr=Er("".trim),Mr=Er({}.hasOwnProperty),Lr=Er(/t/.test),jr=(gr=TypeError,function(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];return mr(gr,r)});function Er(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;e>o;o++)n[o-1]=arguments[o];return vr(t,r,n)}}function zr(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:kr;ar&&ar(t,null);for(var n=r.length;n--;){var o=r[n];if("string"==typeof o){var i=e(o);i!==o&&(ur(r)||(r[n]=i),o=i)}t[o]=!0}return t}function Ir(t){for(var r=0;t.length>r;r++)Mr(t,r)||(t[r]=null);return t}function Rr(t){var r=fr(null);for(var e of lr(t)){var n=e[0],o=e[1];Mr(t,n)&&(r[n]=Array.isArray(o)?Ir(o):o&&"object"==typeof o&&o.constructor===Object?Rr(o):o)}return r}function $r(t,r){for(;null!==t;){var e=cr(t,r);if(e){if(e.get)return Er(e.get);if("function"==typeof e.value)return Er(e.value)}t=sr(t)}return function(){return null}}var Pr=hr(["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"]),Or=hr(["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"]),Zr=hr(["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"]),Dr=hr(["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"]),Nr=hr(["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"]),Fr=hr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Hr=hr(["#text"]),Br=hr(["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"]),Vr=hr(["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"]),Qr=hr(["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"]),Ur=hr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Wr=dr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Kr=dr(/<%[\w\W]*|[\w\W]*%>/gm),Yr=dr(/\$\{[\w\W]*/gm),Gr=dr(/^data-[\-\w.\u00B7-\uFFFF]+$/),Jr=dr(/^aria-[\-\w]+$/),Xr=dr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),te=dr(/^(?:\w+script|data):/i),re=dr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=dr(/^html$/i),ne=dr(/^[a-z][.\w]*(-[.\w]+)+$/i),oe=Object.freeze({__proto__:null,ARIA_ATTR:Jr,ATTR_WHITESPACE:re,CUSTOM_ELEMENT:ne,DATA_ATTR:Gr,DOCTYPE_NAME:ee,ERB_EXPR:Kr,IS_ALLOWED_URI:Xr,IS_SCRIPT_OR_DATA:te,MUSTACHE_EXPR:Wr,TMPLIT_EXPR:Yr}),ie=function(){return"undefined"==typeof window?null:window},le=function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie(),e=r=>t(r);if(e.version="3.3.2",e.removed=[],!r||!r.document||9!==r.document.nodeType||!r.Element)return e.isSupported=!1,e;var n,o=r.document,i=o,l=i.currentScript,a=r.DocumentFragment,u=r.HTMLTemplateElement,s=r.Node,c=r.Element,h=r.NodeFilter,d=r.NamedNodeMap,f=void 0===d?r.NamedNodeMap||r.MozNamedAttrMap:d,p=r.HTMLFormElement,v=r.DOMParser,m=r.trustedTypes,g=c.prototype,b=$r(g,"cloneNode"),y=$r(g,"remove"),w=$r(g,"nextSibling"),x=$r(g,"childNodes"),_=$r(g,"parentNode");if("function"==typeof u){var k=o.createElement("template");k.content&&k.content.ownerDocument&&(o=k.content.ownerDocument)}var T="",C=o.implementation,S=o.createNodeIterator,A=o.createDocumentFragment,q=o.getElementsByTagName,M=i.importNode,L={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};e.isSupported="function"==typeof lr&&"function"==typeof _&&C&&void 0!==C.createHTMLDocument;var j=oe.MUSTACHE_EXPR,E=oe.ERB_EXPR,z=oe.TMPLIT_EXPR,I=oe.DATA_ATTR,R=oe.ARIA_ATTR,P=oe.IS_SCRIPT_OR_DATA,O=oe.ATTR_WHITESPACE,Z=oe.CUSTOM_ELEMENT,D=oe.IS_ALLOWED_URI,N=null,F=zr({},[...Pr,...Or,...Zr,...Nr,...Hr]),H=null,B=zr({},[...Br,...Vr,...Qr,...Ur]),V=Object.seal(fr(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}})),Q=null,U=null,W=Object.seal(fr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),K=!0,Y=!0,G=!1,J=!0,X=!1,tt=!0,rt=!1,et=!1,nt=!1,ot=!1,it=!1,lt=!1,at=!0,ut=!1,st=!0,ct=!1,ht={},dt=null,ft=zr({},["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"]),pt=null,vt=zr({},["audio","video","img","source","image","track"]),mt=null,gt=zr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),bt="http://www.w3.org/1998/Math/MathML",yt="http://www.w3.org/2000/svg",wt="http://www.w3.org/1999/xhtml",xt=wt,_t=!1,kt=null,Tt=zr({},[bt,yt,wt],Tr),Ct=zr({},["mi","mo","mn","ms","mtext"]),St=zr({},["annotation-xml"]),At=zr({},["title","style","font","a","script"]),qt=null,Mt=["application/xhtml+xml","text/html"],Lt=null,jt=null,Et=o.createElement("form"),zt=function(t){return t instanceof RegExp||t instanceof Function},It=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!jt||jt!==t){if(t&&"object"==typeof t||(t={}),t=Rr(t),qt=-1===Mt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Lt="application/xhtml+xml"===qt?Tr:kr,N=Mr(t,"ALLOWED_TAGS")?zr({},t.ALLOWED_TAGS,Lt):F,H=Mr(t,"ALLOWED_ATTR")?zr({},t.ALLOWED_ATTR,Lt):B,kt=Mr(t,"ALLOWED_NAMESPACES")?zr({},t.ALLOWED_NAMESPACES,Tr):Tt,mt=Mr(t,"ADD_URI_SAFE_ATTR")?zr(Rr(gt),t.ADD_URI_SAFE_ATTR,Lt):gt,pt=Mr(t,"ADD_DATA_URI_TAGS")?zr(Rr(vt),t.ADD_DATA_URI_TAGS,Lt):vt,dt=Mr(t,"FORBID_CONTENTS")?zr({},t.FORBID_CONTENTS,Lt):ft,Q=Mr(t,"FORBID_TAGS")?zr({},t.FORBID_TAGS,Lt):Rr({}),U=Mr(t,"FORBID_ATTR")?zr({},t.FORBID_ATTR,Lt):Rr({}),ht=!!Mr(t,"USE_PROFILES")&&t.USE_PROFILES,K=!1!==t.ALLOW_ARIA_ATTR,Y=!1!==t.ALLOW_DATA_ATTR,G=t.ALLOW_UNKNOWN_PROTOCOLS||!1,J=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,X=t.SAFE_FOR_TEMPLATES||!1,tt=!1!==t.SAFE_FOR_XML,rt=t.WHOLE_DOCUMENT||!1,ot=t.RETURN_DOM||!1,it=t.RETURN_DOM_FRAGMENT||!1,lt=t.RETURN_TRUSTED_TYPE||!1,nt=t.FORCE_BODY||!1,at=!1!==t.SANITIZE_DOM,ut=t.SANITIZE_NAMED_PROPS||!1,st=!1!==t.KEEP_CONTENT,ct=t.IN_PLACE||!1,D=t.ALLOWED_URI_REGEXP||Xr,xt=t.NAMESPACE||wt,Ct=t.MATHML_TEXT_INTEGRATION_POINTS||Ct,St=t.HTML_INTEGRATION_POINTS||St,V=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&zt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&zt(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),X&&(Y=!1),it&&(ot=!0),ht&&(N=zr({},Hr),H=fr(null),!0===ht.html&&(zr(N,Pr),zr(H,Br)),!0===ht.svg&&(zr(N,Or),zr(H,Vr),zr(H,Ur)),!0===ht.svgFilters&&(zr(N,Zr),zr(H,Vr),zr(H,Ur)),!0===ht.mathMl&&(zr(N,Nr),zr(H,Qr),zr(H,Ur))),Mr(t,"ADD_TAGS")||(W.tagCheck=null),Mr(t,"ADD_ATTR")||(W.attributeCheck=null),t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?W.tagCheck=t.ADD_TAGS:(N===F&&(N=Rr(N)),zr(N,t.ADD_TAGS,Lt))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?W.attributeCheck=t.ADD_ATTR:(H===B&&(H=Rr(H)),zr(H,t.ADD_ATTR,Lt))),t.ADD_URI_SAFE_ATTR&&zr(mt,t.ADD_URI_SAFE_ATTR,Lt),t.FORBID_CONTENTS&&(dt===ft&&(dt=Rr(dt)),zr(dt,t.FORBID_CONTENTS,Lt)),t.ADD_FORBID_CONTENTS&&(dt===ft&&(dt=Rr(dt)),zr(dt,t.ADD_FORBID_CONTENTS,Lt)),st&&(N["#text"]=!0),rt&&zr(N,["html","head","body"]),N.table&&(zr(N,["tbody"]),delete Q.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw jr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw jr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=(n=t.TRUSTED_TYPES_POLICY).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}}(m,l)),null!==n&&"string"==typeof T&&(T=n.createHTML(""));hr&&hr(t),jt=t}},Rt=zr({},[...Or,...Zr,...Dr]),$t=zr({},[...Nr,...Fr]),Pt=function(t){xr(e.removed,{element:t});try{_(t).removeChild(t)}catch(r){y(t)}},Ot=function(t,r){try{xr(e.removed,{attribute:r.getAttributeNode(t),from:r})}catch(t){xr(e.removed,{attribute:null,from:r})}if(r.removeAttribute(t),"is"===t)if(ot||it)try{Pt(r)}catch(t){}else try{r.setAttribute(t,"")}catch(t){}},Zt=function(t){var r=null,e=null;if(nt)t="<remove></remove>"+t;else{var i=Cr(t,/^[\r\n\t ]+/);e=i&&i[0]}"application/xhtml+xml"===qt&&xt===wt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var l=n?n.createHTML(t):t;if(xt===wt)try{r=(new v).parseFromString(l,qt)}catch(t){}if(!r||!r.documentElement){r=C.createDocument(xt,"template",null);try{r.documentElement.innerHTML=_t?T:l}catch(t){}}var a=r.body||r.documentElement;return t&&e&&a.insertBefore(o.createTextNode(e),a.childNodes[0]||null),xt===wt?q.call(r,rt?"html":"body")[0]:rt?r.documentElement:a},Dt=function(t){return S.call(t.ownerDocument||t,t,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Nt=function(t){return t instanceof p&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof f)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Ft=function(t){return"function"==typeof s&&t instanceof s};function Ht(t,r,n){br(t,(t=>{t.call(e,r,n,jt)}))}var Bt=function(t){var r=null;if(Ht(L.beforeSanitizeElements,t,null),Nt(t))return Pt(t),!0;var n=Lt(t.nodeName);if(Ht(L.uponSanitizeElement,t,{tagName:n,allowedTags:N}),tt&&t.hasChildNodes()&&!Ft(t.firstElementChild)&&Lr(/<[/\w!]/g,t.innerHTML)&&Lr(/<[/\w!]/g,t.textContent))return Pt(t),!0;if(7===t.nodeType)return Pt(t),!0;if(tt&&8===t.nodeType&&Lr(/<[/\w]/g,t.data))return Pt(t),!0;if(!(W.tagCheck instanceof Function&&W.tagCheck(n))&&(!N[n]||Q[n])){if(!Q[n]&&Qt(n)){if(V.tagNameCheck instanceof RegExp&&Lr(V.tagNameCheck,n))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(n))return!1}if(st&&!dt[n]){var o=_(t)||t.parentNode,i=x(t)||t.childNodes;if(i&&o)for(var l=i.length-1;l>=0;--l){var a=b(i[l],!0);a.__removalCount=(t.__removalCount||0)+1,o.insertBefore(a,w(t))}}return Pt(t),!0}return t instanceof c&&!function(t){var r=_(t);r&&r.tagName||(r={namespaceURI:xt,tagName:"template"});var e=kr(t.tagName),n=kr(r.tagName);return!!kt[t.namespaceURI]&&(t.namespaceURI===yt?r.namespaceURI===wt?"svg"===e:r.namespaceURI===bt?"svg"===e&&("annotation-xml"===n||Ct[n]):Boolean(Rt[e]):t.namespaceURI===bt?r.namespaceURI===wt?"math"===e:r.namespaceURI===yt?"math"===e&&St[n]:Boolean($t[e]):t.namespaceURI===wt?!(r.namespaceURI===yt&&!St[n])&&!(r.namespaceURI===bt&&!Ct[n])&&!$t[e]&&(At[e]||!Rt[e]):!("application/xhtml+xml"!==qt||!kt[t.namespaceURI]))}(t)?(Pt(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!Lr(/<\/no(script|embed|frames)/i,t.innerHTML)?(X&&3===t.nodeType&&(r=t.textContent,br([j,E,z],(t=>{r=Sr(r,t," ")})),t.textContent!==r&&(xr(e.removed,{element:t.cloneNode()}),t.textContent=r)),Ht(L.afterSanitizeElements,t,null),!1):(Pt(t),!0)},Vt=function(t,r,e){if(U[r])return!1;if(at&&("id"===r||"name"===r)&&(e in o||e in Et))return!1;if(Y&&!U[r]&&Lr(I,r));else if(K&&Lr(R,r));else if(W.attributeCheck instanceof Function&&W.attributeCheck(r,t));else if(!H[r]||U[r]){if(!(Qt(t)&&(V.tagNameCheck instanceof RegExp&&Lr(V.tagNameCheck,t)||V.tagNameCheck instanceof Function&&V.tagNameCheck(t))&&(V.attributeNameCheck instanceof RegExp&&Lr(V.attributeNameCheck,r)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(r,t))||"is"===r&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&Lr(V.tagNameCheck,e)||V.tagNameCheck instanceof Function&&V.tagNameCheck(e))))return!1}else if(mt[r]);else if(Lr(D,Sr(e,O,"")));else if("src"!==r&&"xlink:href"!==r&&"href"!==r||"script"===t||0!==Ar(e,"data:")||!pt[t])if(G&&!Lr(P,Sr(e,O,"")));else if(e)return!1;return!0},Qt=function(t){return"annotation-xml"!==t&&Cr(t,Z)},Ut=function(t){Ht(L.beforeSanitizeAttributes,t,null);var r=t.attributes;if(r&&!Nt(t)){for(var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H,forceKeepAttr:void 0},i=r.length,l=function(){var l=r[i],a=l.name,u=l.namespaceURI,s=l.value,c=Lt(a),h=s,d="value"===a?h:qr(h);if(o.attrName=c,o.attrValue=d,o.keepAttr=!0,o.forceKeepAttr=void 0,Ht(L.uponSanitizeAttribute,t,o),d=o.attrValue,!ut||"id"!==c&&"name"!==c||(Ot(a,t),d="user-content-"+d),tt&&Lr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d))return Ot(a,t),0;if("attributename"===c&&Cr(d,"href"))return Ot(a,t),0;if(o.forceKeepAttr)return 0;if(!o.keepAttr)return Ot(a,t),0;if(!J&&Lr(/\/>/i,d))return Ot(a,t),0;X&&br([j,E,z],(t=>{d=Sr(d,t," ")}));var f=Lt(t.nodeName);if(!Vt(f,c,d))return Ot(a,t),0;if(n&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(u);else switch(m.getAttributeType(f,c)){case"TrustedHTML":d=n.createHTML(d);break;case"TrustedScriptURL":d=n.createScriptURL(d)}if(d!==h)try{u?t.setAttributeNS(u,a,d):t.setAttribute(a,d),Nt(t)?Pt(t):wr(e.removed)}catch(r){Ot(a,t)}};i--;)l();Ht(L.afterSanitizeAttributes,t,null)}},Wt=function t(r){var e=null,n=Dt(r);for(Ht(L.beforeSanitizeShadowDOM,r,null);e=n.nextNode();)Ht(L.uponSanitizeShadowNode,e,null),Bt(e),Ut(e),e.content instanceof a&&t(e.content);Ht(L.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((_t=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Ft(t)){if("function"!=typeof t.toString)throw jr("toString is not a function");if("string"!=typeof(t=t.toString()))throw jr("dirty is not a string, aborting")}if(!e.isSupported)return t;if(et||It(r),e.removed=[],"string"==typeof t&&(ct=!1),ct){if(t.nodeName){var h=Lt(t.nodeName);if(!N[h]||Q[h])throw jr("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof s)1===(l=(o=Zt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===l.nodeName||"HTML"===l.nodeName?o=l:o.appendChild(l);else{if(!ot&&!X&&!rt&&-1===t.indexOf("<"))return n&&lt?n.createHTML(t):t;if(!(o=Zt(t)))return ot?null:lt?T:""}o&&nt&&Pt(o.firstChild);for(var d=Dt(ct?t:o);u=d.nextNode();)Bt(u),Ut(u),u.content instanceof a&&Wt(u.content);if(ct)return t;if(ot){if(it)for(c=A.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(H.shadowroot||H.shadowrootmode)&&(c=M.call(i,c,!0)),c}var f=rt?o.outerHTML:o.innerHTML;return rt&&N["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&Lr(ee,o.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+f),X&&br([j,E,z],(t=>{f=Sr(f,t," ")})),n&&lt?n.createHTML(f):f},e.setConfig=function(){It(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),et=!0},e.clearConfig=function(){jt=null,et=!1},e.isValidAttribute=function(t,r,e){jt||It({});var n=Lt(t),o=Lt(r);return Vt(n,o,e)},e.addHook=function(t,r){"function"==typeof r&&xr(L[t],r)},e.removeHook=function(t,r){if(void 0!==r){var e=yr(L[t],r);return-1===e?void 0:_r(L[t],e,1)[0]}return wr(L[t])},e.removeHooks=function(t){L[t]=[]},e.removeAllHooks=function(){L={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},e}();function ae(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 ue(t,r){var e=t.parentNode;return e&&e.host&&11===e.nodeType?e.host:e===r?null:e}var se,ce,he=r,de=(void 0===se&&(se=t=>t()),kt("[Element Inference]",se,(void 0===ce&&(ce=console),{log:ce.log.bind(ce),warn:ce.warn.bind(ce),error:ce.error.bind(ce),debug:ce.debug.bind(ce)})));function fe(t,r){try{var e=r.get(t);if(!bt(e))return e;if(t.checkVisibility){var n=t.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0});return r.set(t,n),n}var o=he.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(bt(l)){var a=he.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 pe(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*ve(t,r,e){var n;try{n=function(t,r,e){return void 0===r&&(r=document),void 0===e&&(e=null),function(t,r,e,n){return void 0===n&&(n=null),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>i&&(n=t.substring(i,u-e[0].length)),3>a[a.length-1]){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]&&(2>l.length||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?ae(t,",").reduce(((t,r)=>{var o=ae(r.replace(/^\s+/g,"").replace(/\s*([>+~]+)\s*/g,"$1")," ").filter((t=>!!t)).map((t=>ae(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;t.length>r;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&&(h=i).nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&h.nodeType!==Node.DOCUMENT_NODE;){var a=!0;if(1===t[o].length)a=i.matches(t[o]);else{var u=[].concat(t[o]).reverse(),s=i;for(var c of u){if(!s||!s.matches(c)){a=!1;break}s=ue(s,e)}}if(a&&0===o){l=!0;break}a&&o--,i=ue(i,e)}var h;return l}}(o,i,e);return t.concat(l.filter(a))}),[]):e.querySelectorAll(t)}(t,0,r,e)}(t)}catch(t){return}for(var o of n){var i=o;r&&!pe(i,r)||fe(i,e)&&(yield i)}}function me(t,r){var e=0;for(var n of t){if(e===r)return n;e++}return null}function ge(t){try{var r=JSON.parse(t.autoData);if(!mt(null==r?void 0:r.textGroups)||!mt(null==r?void 0:r.notextGroups))return de.error("Invalid autoData structure:",r),null;var e=t.text,n=t.precision,o=void 0===n?1:n,i=null!=e&&!t.excludeText,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;a>s;s++){var c=l[s],h=new Map,d=null,f=0;for(var p of c.cssSelectors){var v,m=p.offset,g=me(ve(p.css,i?e:null,u),m);if(g){var b=(null!==(v=h.get(g))&&void 0!==v?v:0)+1;if(h.set(g,b),b>f&&(f=b,d=g,b>=Math.ceil(c.cssSelectors.length/2)))return d}}if(d)return d}return null}catch(t){return de.error("Error finding element:",t),null}}var be=function(t,e){var n=(void 0===e?{}:e).debugEnabled,o={k(e){if(r&&(r.POSTHOG_DEBUG||n)&&!bt(r.console)&&r.console){for(var o=("__rrweb_original__"in r.console[e]?r.console[e].__rrweb_original__:r.console[e]),i=arguments.length,l=new Array(i>1?i-1:0),a=1;i>a;a++)l[a-1]=arguments[a];o(t,...l)}},debug(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.k("debug",...r)},info(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.k("log",...r)},warn(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.k("warn",...r)},error(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.k("error",...r)},critical(){for(var r=arguments.length,e=new Array(r),n=0;r>n;n++)e[n]=arguments[n];console.error(t,...e)},uninitializedWarning(t){o.error("You must initialize PostHog before calling "+t)},createLogger:(r,e)=>be(t+" "+r,e)};return o},ye=be("[PostHog.js]"),we=ye.createLogger,xe=we("[Stylesheet Loader]");function _e(t,r,e,n){var o=null!=n?n:{},i=o.capture,l=o.passive;null==t||t.addEventListener(r,e,{capture:void 0!==i&&i,passive:void 0===l||l})}we("[Surveys]");var ke=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}},Te={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=>ke(r,t))))),not_regex:(t,r)=>r.every((r=>t.every((t=>!ke(r,t))))),icontains:(t,r)=>r.map(Ce).some((r=>t.map(Ce).some((t=>r.includes(t))))),not_icontains:(t,r)=>r.map(Ce).every((r=>t.map(Ce).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)))}))},Ce=t=>t.toLowerCase();function Se(t,r){return!t||Object.entries(t).every((t=>{var e=t[1],n=null==r?void 0:r[t[0]];if(bt(n)||wt(n))return!1;var o=[String(n)],i=Te[e.operator];return!!i&&i(e.values,o)}))}Math.trunc||(Math.trunc=function(t){return 0>t?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return _t(t)&&isFinite(t)&&Math.floor(t)===t}),r&&!bt(r.crypto)&&crypto;var Ae,qe,Me,Le,je=null,Ee={P(){if(!wt(je))return je;var t=!0;if(bt(r))t=!1;else try{var e="__mplssupport__";Ee.A(e,"xyz"),'"xyz"'!==Ee.q(e)&&(t=!1),Ee.F(e)}catch(r){t=!1}return t||ye.error("localStorage unsupported; falling back to cookie store"),je=t,t},j(t){ye.error("localStorage error: "+t)},q(t){try{return null==r?void 0:r.localStorage.getItem(t)}catch(t){Ee.j(t)}return null},H(t){try{return JSON.parse(Ee.q(t))||{}}catch(t){}return null},A(t,e){try{return null==r||r.localStorage.setItem(t,JSON.stringify(e)),!0}catch(t){Ee.j(t)}return!1},F(t){try{null==r||r.localStorage.removeItem(t)}catch(t){Ee.j(t)}}},ze=null,Ie={P(){if(!wt(ze))return ze;if(ze=!0,bt(r))ze=!1;else try{var t="__support__";Ie.A(t,"xyz"),'"xyz"'!==Ie.q(t)&&(ze=!1),Ie.F(t)}catch(t){ze=!1}return ze},j(t){ye.error("sessionStorage error: ",t)},q(t){try{return null==r?void 0:r.sessionStorage.getItem(t)}catch(t){Ie.j(t)}return null},H(t){try{return JSON.parse(Ie.q(t))||null}catch(t){}return null},A(t,e){try{return null==r||r.sessionStorage.setItem(t,JSON.stringify(e)),!0}catch(t){Ie.j(t)}return!1},F(t){try{null==r||r.sessionStorage.removeItem(t)}catch(t){Ie.j(t)}}},Re=0,$e=[],Pe=u,Oe=Pe.__b,Ze=Pe.__r,De=Pe.diffed,Ne=Pe.__c,Fe=Pe.unmount,He=Pe.__;function Be(t,r){Pe.__h&&Pe.__h(qe,t,Re||r),Re=0;var e=qe.__H||(qe.__H={__:[],__h:[]});return t>=e.__.length&&e.__.push({}),e.__[t]}function Ve(t){return Re=1,function(t,r,e){var n=Be(Ae++,2);if(n.t=t,!n.__c&&(n.__=[en(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=qe,!qe.__f)){var o=function(t,r,e){if(!n.__c.__H)return!0;var o=!1,l=n.__c.props!==t;if(n.__c.__H.__.some((function(t){if(t.__N){o=!0;var r=t.__[0];t.__=t.__N,t.__N=void 0,r!==t.__[0]&&(l=!0)}})),i){var a=i.call(this,t,r,e);return o?a||l:a}return!o||l};qe.__f=!0;var i=qe.shouldComponentUpdate,l=qe.componentWillUpdate;qe.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)},qe.shouldComponentUpdate=o}return n.__N||n.__}(en,t)}function Qe(t,r){var e=Be(Ae++,3);!Pe.__s&&rn(e.__H,r)&&(e.__=t,e.u=r,qe.__H.__h.push(e))}function Ue(t,r){var e=Be(Ae++,4);!Pe.__s&&rn(e.__H,r)&&(e.__=t,e.u=r,qe.__h.push(e))}function We(t){return Re=5,Ke((function(){return{current:t}}),[])}function Ke(t,r){var e=Be(Ae++,7);return rn(e.__H,r)&&(e.__=t(),e.__H=r,e.__h=t),e.__}function Ye(){for(var t;t=$e.shift();){var r=t.__H;if(t.__P&&r)try{r.__h.some(Xe),r.__h.some(tn),r.__h=[]}catch(e){r.__h=[],Pe.__e(e,t.__v)}}}Pe.__b=function(t){qe=null,Oe&&Oe(t)},Pe.__=function(t,r){t&&r.__k&&r.__k.__m&&(t.__m=r.__k.__m),He&&He(t,r)},Pe.__r=function(t){Ze&&Ze(t),Ae=0;var r=(qe=t.__c).__H;r&&(Me===qe?(r.__h=[],qe.__h=[],r.__.some((function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0}))):(r.__h.length&&Ye(),Ae=0)),Me=qe},Pe.diffed=function(t){De&&De(t);var r=t.__c;r&&r.__H&&(r.__H.__h.length&&(1!==$e.push(r)&&Le===Pe.requestAnimationFrame||((Le=Pe.requestAnimationFrame)||Je)(Ye)),r.__H.__.some((function(t){t.u&&(t.__H=t.u,t.u=void 0)}))),Me=qe=null},Pe.__c=function(t,r){r.some((function(t){try{t.__h.some(Xe),t.__h=t.__h.filter((function(t){return!t.__||tn(t)}))}catch(e){r.some((function(t){t.__h&&(t.__h=[])})),r=[],Pe.__e(e,t.__v)}})),Ne&&Ne(t,r)},Pe.unmount=function(t){Fe&&Fe(t);var r,e=t.__c;e&&e.__H&&(e.__H.__.some((function(t){try{Xe(t)}catch(t){r=t}})),e.__H=void 0,r&&Pe.__e(r,e.__v))};var Ge="function"==typeof requestAnimationFrame;function Je(t){var r,e=function(){clearTimeout(n),Ge&&cancelAnimationFrame(r),setTimeout(t)},n=setTimeout(e,35);Ge&&(r=requestAnimationFrame(e))}function Xe(t){var r=qe,e=t.__c;"function"==typeof e&&(t.__c=void 0,e()),qe=r}function tn(t){var r=qe;t.__c=t.__(),qe=r}function rn(t,r){return!t||t.length!==r.length||r.some((function(r,e){return r!==t[e]}))}function en(t,r){return"function"==typeof r?r(t):r}var nn="#020617",on={backgroundColor:"#eeeded"};function ln(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 an(t){var r;void 0===t&&(t=on.backgroundColor),"#"===t[0]&&(r=ln(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=ln(e)),!r)return nn;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?nn:"white"}return nn}!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,z(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"+x++,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(){},onPreviewBack(){},surveySubmissionId:"",properties:void 0,surveyLanguage:null});var un="ph_product_tour_shown_",sn="ph_product_tour_completed_",cn="ph_product_tour_dismissed_",hn="ph_active_product_tour",dn="ph_last_seen_tour_date_",fn=we("[Product Tours]"),pn=o,vn=r;function mn(t){var r=((t,r,e)=>{var n=t.createElement("style");n.innerText=r;var o=(t=>{var r;return gt(t)?t:null==t||null==(r=t.config)?void 0:r.prepare_external_dependency_stylesheet})(e);return o&&(n=o(n)),n||(xe.error("prepare_external_dependency_stylesheet returned null"),null)})(pn,':host{--ph-tour-font-family:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI","Roboto",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ph-tour-background-color:#fff;--ph-tour-text-color:#1d1f27;--ph-tour-text-secondary-color:#6b7280;--ph-tour-button-color:#1d1f27;--ph-tour-button-text-color:#fff;--ph-tour-button-secondary-color:transparent;--ph-tour-button-secondary-text-color:#1d1f27;--ph-tour-border-color:#e5e7eb;--ph-tour-border-radius:8px;--ph-tour-button-border-radius:6px;--ph-tour-box-shadow:0 4px 12px rgba(0,0,0,.15);--ph-tour-max-width:320px;--ph-tour-padding:16px;--ph-tour-z-index:2147483646;--ph-tour-overlay-color:rgba(0,0,0,.5);--ph-tour-spotlight-padding:8px;--ph-tour-spotlight-border-radius:4px;--ph-tour-arrow-size:8px}.ph-tour-container *{box-sizing:border-box;font-family:var(--ph-tour-font-family);margin:0;padding:0}.ph-tour-click-overlay{bottom:0;left:0;pointer-events:auto;position:fixed;right:0;top:0;z-index:var(--ph-tour-z-index)}.ph-tour-spotlight{border-radius:var(--ph-tour-spotlight-border-radius);box-shadow:0 0 0 9999px var(--ph-tour-overlay-color)}.ph-tour-modal-overlay,.ph-tour-spotlight{pointer-events:none;position:fixed;z-index:var(--ph-tour-z-index)}.ph-tour-modal-overlay{background:var(--ph-tour-overlay-color);bottom:0;left:0;right:0;top:0}.ph-tour-tooltip{background:var(--ph-tour-background-color);border:1px solid var(--ph-tour-border-color);border-radius:var(--ph-tour-border-radius);max-width:min(var(--ph-tour-max-width),calc(100vw - 16px));min-width:min(280px,calc(100vw - 16px));padding:var(--ph-tour-padding);padding-top:calc(var(--ph-tour-padding) + 8px);pointer-events:auto;position:fixed;z-index:calc(var(--ph-tour-z-index) + 1)}.ph-tour-tooltip,.ph-tour-tooltip--modal{box-shadow:var(--ph-tour-box-shadow)}.ph-tour-arrow{--ph-tour-arrow-offset:0px;border:var(--ph-tour-arrow-size) solid transparent;height:0;position:absolute;width:0}.ph-tour-arrow--top{border-bottom-color:var(--ph-tour-background-color);bottom:100%}.ph-tour-arrow--bottom,.ph-tour-arrow--top{left:calc(50% + var(--ph-tour-arrow-offset));transform:translateX(-50%)}.ph-tour-arrow--bottom{border-top-color:var(--ph-tour-background-color);top:100%}.ph-tour-arrow--left{border-right-color:var(--ph-tour-background-color);right:100%}.ph-tour-arrow--left,.ph-tour-arrow--right{top:calc(50% + var(--ph-tour-arrow-offset));transform:translateY(-50%)}.ph-tour-arrow--right{border-left-color:var(--ph-tour-background-color);left:100%}.ph-tour-content{color:var(--ph-tour-text-color);font-size:14px;line-height:1.5;margin-bottom:16px;padding-right:24px}.ph-tour-content h1,.ph-tour-content h2{font-weight:600;margin-bottom:8px}.ph-tour-content h1{font-size:18px}.ph-tour-content h2{font-size:16px}.ph-tour-content p{margin-bottom:8px}.ph-tour-content p:last-child{margin-bottom:0}.ph-tour-content strong{font-weight:600}.ph-tour-content em{font-style:italic}.ph-tour-content ol,.ph-tour-content ul{margin-bottom:8px;margin-left:20px}.ph-tour-content h3{font-size:14px;font-weight:600;margin-bottom:8px}.ph-tour-content .ph-tour-link,.ph-tour-content a{color:inherit;text-decoration:underline}.ph-tour-content a:hover{opacity:.8}.ph-tour-content code{background:rgba(0,0,0,.06);border-radius:4px;font-size:.875em;padding:2px 6px}.ph-tour-content code,.ph-tour-content pre{font-family:SF Mono,Monaco,Consolas,monospace}.ph-tour-content pre{background:rgba(0,0,0,.04);border-radius:6px;font-size:13px;line-height:1.5;margin-bottom:8px;overflow-x:auto;padding:12px}.ph-tour-content pre code{background:transparent;border-radius:0;font-size:inherit;padding:0}.ph-tour-content code *,.ph-tour-content pre *{font-family:inherit}.ph-tour-content .hljs-comment,.ph-tour-content .hljs-quote{color:#6a737d;font-style:italic}.ph-tour-content .hljs-keyword,.ph-tour-content .hljs-selector-tag{color:#d73a49}.ph-tour-content .hljs-doctag,.ph-tour-content .hljs-regexp,.ph-tour-content .hljs-string{color:#032f62}.ph-tour-content .hljs-literal,.ph-tour-content .hljs-number,.ph-tour-content .hljs-template-variable,.ph-tour-content .hljs-variable{color:#005cc5}.ph-tour-content .hljs-section,.ph-tour-content .hljs-selector-class,.ph-tour-content .hljs-selector-id,.ph-tour-content .hljs-title,.ph-tour-content .hljs-title.function_{color:#6f42c1}.ph-tour-content .hljs-addition,.ph-tour-content .hljs-attr,.ph-tour-content .hljs-attribute,.ph-tour-content .hljs-built_in,.ph-tour-content .hljs-bullet,.ph-tour-content .hljs-name,.ph-tour-content .hljs-symbol{color:#22863a}.ph-tour-content .hljs-deletion,.ph-tour-content .hljs-subst{color:#b31d28}.ph-tour-content .hljs-meta{color:#032f62}.ph-tour-content .hljs-emphasis{font-style:italic}.ph-tour-content .hljs-strong{font-weight:700}.ph-tour-content .ph-tour-image,.ph-tour-content img{border-radius:6px;display:block;height:auto;margin:8px 0;max-width:100%}.ph-tour-content .ph-tour-embed{margin:8px 0}.ph-tour-content .ph-tour-embed-container{background:#000;border-radius:6px;overflow:hidden;padding-bottom:56.25%;position:relative;width:100%}.ph-tour-content .ph-tour-embed-container iframe{border:none;height:100%;left:0;position:absolute;top:0;width:100%}.ph-tour-content blockquote{border-left:3px solid var(--ph-tour-border-color);color:var(--ph-tour-text-secondary-color);font-style:italic;margin:8px 0;padding-left:12px}.ph-tour-footer{align-items:center;display:flex;gap:12px;justify-content:space-between}.ph-tour-progress{color:var(--ph-tour-text-secondary-color);font-size:12px}.ph-tour-buttons{display:flex;gap:8px;margin-left:auto}.ph-tour-button{align-items:center;border:none;border-radius:var(--ph-tour-button-border-radius);cursor:pointer;display:inline-flex;font-size:14px;font-weight:500;justify-content:center;padding:8px 16px;text-decoration:none;transition:opacity .15s ease,transform .1s ease}.ph-tour-button:hover{opacity:.9}.ph-tour-button:active{transform:scale(.98)}.ph-tour-button--primary{background:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}.ph-tour-button--secondary{background:var(--ph-tour-button-secondary-color);border:1px solid var(--ph-tour-border-color);color:var(--ph-tour-button-secondary-text-color)}.ph-tour-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;font-size:18px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}.ph-tour-branding{align-items:center;border-top:1px solid var(--ph-tour-border-color);color:var(--ph-tour-branding-text-color,var(--ph-tour-text-secondary-color));display:flex;font-size:11px;gap:6px;justify-content:center;margin-top:12px;padding-top:12px;text-decoration:none}.ph-tour-branding:hover{color:var(--ph-tour-branding-text-color,var(--ph-tour-text-color))}.ph-tour-branding svg{height:14px;width:auto}.ph-tour-hidden{display:none!important}.ph-tour-survey-step{min-width:min(300px,calc(100vw - 16px))}.ph-tour-survey-question{color:var(--ph-tour-text-color);font-size:15px;font-weight:500;line-height:1.4;margin-bottom:16px;padding-right:24px}.ph-tour-survey-input-container{display:flex;flex-direction:column;gap:12px}.ph-tour-survey-textarea{background:#fff;border:1px solid var(--ph-tour-border-color);border-radius:6px;box-sizing:border-box;color:var(--ph-tour-text-color);font-family:var(--ph-tour-font-family);font-size:14px;min-height:80px;padding:10px 12px;resize:vertical;width:100%}.ph-tour-survey-textarea:focus{border-color:var(--ph-tour-button-color);box-shadow:0 0 0 2px rgba(0,0,0,.05);outline:none}.ph-tour-survey-textarea::placeholder{color:var(--ph-tour-text-secondary-color)}.ph-tour-survey-submit{align-self:flex-end}.ph-tour-survey-rating-container{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}.ph-tour-survey-rating-labels{color:var(--ph-tour-text-secondary-color);display:flex;font-size:11px;justify-content:space-between}.ph-tour-survey-rating-emoji{display:flex;gap:8px;justify-content:center}.ph-tour-survey-emoji-button{align-items:center;background:var(--ph-tour-background-color);border:2px solid var(--ph-tour-border-color);border-radius:8px;cursor:pointer;display:flex;height:44px;justify-content:center;padding:0;transition:all .15s ease;width:44px}.ph-tour-survey-emoji-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active svg{fill:var(--ph-tour-button-text-color)}.ph-tour-survey-emoji-button svg{fill:var(--ph-tour-text-color);height:28px;transition:fill .15s ease;width:28px}.ph-tour-survey-rating-numbers{display:grid;gap:6px}.ph-tour-survey-number-button{align-items:center;background:var(--ph-tour-background-color);border:1px solid var(--ph-tour-border-color);border-radius:4px;color:var(--ph-tour-text-color);cursor:pointer;display:flex;font-family:var(--ph-tour-font-family);font-size:13px;font-weight:500;justify-content:center;padding:8px 4px;transition:all .15s ease}.ph-tour-survey-number-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-number-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}@keyframes ph-tour-banner-slide-in{0%{grid-template-rows:0fr}to{grid-template-rows:1fr}}.ph-tour-banner-wrapper{animation:ph-tour-banner-slide-in var(--ph-tour-banner-animation-duration,.3s) ease-out forwards;display:grid}.ph-tour-banner-slide{min-height:0;overflow:hidden}.ph-tour-banner{align-items:center;background:var(--ph-tour-background-color);border-bottom:1px solid var(--ph-tour-border-color);box-shadow:var(--ph-tour-box-shadow);display:flex;font-family:var(--ph-tour-font-family);gap:16px;justify-content:center;padding:12px 16px}a.ph-tour-banner{color:inherit;text-decoration:none}:host:has(.ph-tour-banner--sticky){position:sticky;top:0;z-index:var(--ph-tour-z-index)}.ph-tour-banner-content{color:var(--ph-tour-text-color);flex:1;font-size:14px;line-height:1.5;min-width:0;text-align:center}.ph-tour-banner-content p{margin:0}.ph-tour-banner-content strong{font-weight:600}.ph-tour-banner-content em{font-style:italic}.ph-tour-banner-content a{color:inherit;text-decoration:underline}.ph-tour-banner-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;flex-shrink:0;height:24px;justify-content:center;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-banner-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}',t);return null==r||r.setAttribute("data-ph-product-tour-style","true"),r}function gn(t){return t.useManualSelector?!!t.selector:!!t.inferenceData}function bn(t){var r;if(null!==(r=t.useManualSelector)&&void 0!==r&&r)return t.selector?function(t){try{var r=pn.querySelectorAll(t);if(0===r.length)return{element:null,error:"not_found",matchCount:0};var e=r[0];return function(t){var r=vn.getComputedStyle(t);if("none"===r.display||"hidden"===r.visibility||"0"===r.opacity)return!1;var e=t.getBoundingClientRect();return 0!==e.width&&0!==e.height}(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}}}(t.selector):{element:null,error:"not_found",matchCount:0};if(!t.inferenceData)return{element:null,error:"not_found",matchCount:0};var e=ge(t.inferenceData);return e?{element:e,error:null,matchCount:1}:{element:null,error:"not_found",matchCount:0}}var yn=12,wn=8;function xn(t,r,e){var n=Math.max(wn+r/2,Math.min(e-wn-r/2,t));return{clamped:n,offset:t-n}}function _n(t,r){var e,n,o=l({},tt,r),i=t.style;i.setProperty("--ph-tour-background-color",o.backgroundColor),i.setProperty("--ph-tour-text-color",o.textColor),i.setProperty("--ph-tour-button-color",o.buttonColor),i.setProperty("--ph-tour-border-radius",o.borderRadius+"px"),i.setProperty("--ph-tour-button-border-radius",o.buttonBorderRadius+"px"),i.setProperty("--ph-tour-border-color",o.borderColor),i.setProperty("--ph-tour-font-family",function(t){if("inherit"===t)return"inherit";var 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}(o.fontFamily)),i.setProperty("--ph-tour-text-secondary-color",(.6,(n=ln(e=o.textColor).match(/^rgb\((\d+),(\d+),(\d+)\)$/))?"rgba("+n[1]+", "+n[2]+", "+n[3]+", 0.6)":e)),i.setProperty("--ph-tour-branding-text-color",an(o.backgroundColor)),i.setProperty("--ph-tour-button-text-color",an(o.buttonColor)),i.setProperty("--ph-tour-box-shadow",o.boxShadow),i.setProperty("--ph-tour-overlay-color",o.showOverlay?"rgba(0, 0, 0, 0.5)":"transparent"),i.setProperty("--ph-tour-z-index",String(o.zIndex)),i.setProperty("--ph-tour-button-secondary-color","transparent"),i.setProperty("--ph-tour-button-secondary-text-color",o.textColor),i.setProperty("--ph-tour-max-width","320px"),i.setProperty("--ph-tour-padding","16px")}function kn(t){var r;if(!t)return"";if("string"==typeof t)return Cn(t);if("text"===t.type){var e=Cn(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(kn).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 Tn(t){return t.endsWith("/")?t.slice(0,-1):t}function Cn(t){var r=pn.createElement("div");return r.textContent=t,r.innerHTML}function Sn(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 An(t){return t.contentHtml?le.sanitize(t.contentHtml,{ADD_TAGS:["iframe"],ADD_ATTR:["allowfullscreen","frameborder","referrerpolicy"]}):kn(t.content)}var qn=0;function Mn(t,r,e,n,o,i){r||(r={});var l,a,s=r;if("ref"in s)for(a in s={},r)"ref"==a?l=r[a]:s[a]=r[a];var c={type:t,props:s,key:e,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--qn,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof t&&(l=t.defaultProps))for(a in l)void 0===s[a]&&(s[a]=l[a]);return u.vnode&&u.vnode(c),c}var Ln=Mn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Mn("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"})}),jn=Mn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Mn("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"})}),En=Mn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Mn("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"})}),zn=Mn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Mn("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"})}),In=Mn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Mn("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"})});Mn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 0 24 24",width:"48",children:Mn("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"})}),Mn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 0 24 24",width:"48",children:Mn("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 Rn=function(t){var r={}.fill,e=void 0===r?"currentColor":r;return Mn("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:e,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"close-survey-title-adam",children:[Mn("title",{id:"close-survey-title",className:"adam-testing",children:"Close survey"}),Mn("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.164752 0.164752C0.384422 -0.0549175 0.740578 -0.0549175 0.960248 0.164752L6 5.20451L11.0398 0.164752C11.2594 -0.0549175 11.6156 -0.0549175 11.8352 0.164752C12.0549 0.384422 12.0549 0.740578 11.8352 0.960248L6.79549 6L11.8352 11.0398C12.0549 11.2594 12.0549 11.6156 11.8352 11.8352C11.6156 12.0549 11.2594 12.0549 11.0398 11.8352L6 6.79549L0.960248 11.8352C0.740578 12.0549 0.384422 12.0549 0.164752 11.8352C-0.0549175 11.6156 -0.0549175 11.2594 0.164752 11.0398L5.20451 6L0.164752 0.960248C-0.0549175 0.740578 -0.0549175 0.384422 0.164752 0.164752Z",fill:e})]})},$n=Mn("svg",{width:"77",height:"14",viewBox:"0 0 77 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Mn("g",{"clip-path":"url(#clip0_2415_6911)",children:[Mn("mask",{id:"mask0_2415_6911",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"77",height:"14",children:Mn("path",{d:"M0.5 0H76.5V14H0.5V0Z",fill:"white"})}),Mn("g",{mask:"url(#mask0_2415_6911)",children:[Mn("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"}),Mn("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"}),Mn("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"}),Mn("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"}),Mn("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"}),Mn("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"})]})]}),Mn("defs",{children:Mn("clipPath",{id:"clip0_2415_6911",children:Mn("rect",{width:"76",height:"14",fill:"white",transform:"translate(0.5)"})})})]});function Pn(t){var r=t.button,e=t.onClick,n=t.cursorStyle,o="ph-tour-button ph-tour-button--"+t.variant;return"link"===r.action&&r.link?Mn("a",{href:r.link,target:"_blank",rel:"noopener noreferrer",class:o,onClick:()=>e(r),children:r.text}):Mn("button",{class:o,onClick:()=>e(r),style:n,children:r.text})}function On(t){var r,e,n,o=t.step,i=t.appearance,l=t.stepIndex,a=t.totalSteps,u=t.onNext,s=t.onPrevious,c=t.onDismiss,h=t.onButtonClick,d=null!==(r=null==i?void 0:i.whiteLabel)&&void 0!==r&&r,f=l>=a-1,p=0===l,v=!(o.buttons||"button"!==o.progressionTrigger&&gn(o)),m=!!o.buttons,g=!!(u||s||c||h),b=g?void 0:{cursor:"default"},y=!d&&p,w=t=>{h&&h(t)};return Mn(M,{children:[Mn("button",{class:"ph-tour-dismiss",onClick:c,"aria-label":"Close tour",style:b,children:Rn()}),Mn("div",{class:"ph-tour-content",dangerouslySetInnerHTML:{__html:An(o)}}),Mn("div",{class:"ph-tour-footer",children:[a>1&&Mn("span",{class:"ph-tour-progress",children:[l+1," of ",a]}),Mn("div",{class:"ph-tour-buttons",children:[v&&Mn(M,{children:[!p&&Mn("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:s,style:b,children:"Back"}),Mn("button",{class:"ph-tour-button ph-tour-button--primary",onClick:u,style:b,children:f?"Done":"Next"})]}),m&&Mn(M,{children:[(null==(e=o.buttons)?void 0:e.secondary)&&Mn(Pn,{button:o.buttons.secondary,variant:"secondary",onClick:w,cursorStyle:b}),(null==(n=o.buttons)?void 0:n.primary)&&Mn(Pn,{button:o.buttons.primary,variant:"primary",onClick:w,cursorStyle:b})]})]})]}),y&&Mn("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 ",$n]})]})}Mn("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Mn("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 Zn=[En,jn,Ln],Dn=[zn,En,jn,Ln,In];function Nn(t){var r=t.value,e=t.onChange,n=t.onSubmit,o=t.isInteractive,i=We(null);return Qe((()=>{o&&setTimeout((()=>{var t;return null==(t=i.current)?void 0:t.focus()}),100)}),[o]),Mn("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 Fn(t){var r=t.survey,e=t.onSubmit,n=t.isInteractive,o=Ve(null),i=o[0],l=o[1],a=r.scale||5,u=t=>{n&&(l(t),null==e||e(t))};if("emoji"===(r.display||"emoji"))return Mn("div",{class:"ph-tour-survey-rating-container",children:[Mn("div",{class:"ph-tour-survey-rating-emoji",children:(3===a?Zn:Dn).map(((t,r)=>{var e=r+1;return Mn("button",{type:"button",class:"ph-tour-survey-emoji-button "+(i===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)&&Mn("div",{class:"ph-tour-survey-rating-labels",children:[Mn("span",{children:r.lowerBoundLabel}),Mn("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 Mn("div",{class:"ph-tour-survey-rating-container",children:[Mn("div",{class:"ph-tour-survey-rating-numbers",style:{gridTemplateColumns:"repeat("+s.length+", minmax(0, 1fr))"},children:s.map((t=>Mn("button",{type:"button",class:"ph-tour-survey-number-button "+(i===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)&&Mn("div",{class:"ph-tour-survey-rating-labels",children:[Mn("span",{children:r.lowerBoundLabel}),Mn("span",{children:r.upperBoundLabel})]})]})}function Hn(t){var r,e=t.step,n=t.appearance,o=t.stepIndex,i=t.totalSteps,l=t.onPrevious,a=t.onSubmit,u=t.onDismiss,s=Ve(""),c=s[0],h=s[1],d=e.survey,f=null!==(r=null==n?void 0:n.whiteLabel)&&void 0!==r&&r,p=0===o,v="open"===(null==d?void 0:d.type),m=!!(l||a||u),g=m?void 0:{cursor:"default"},b=()=>{null==a||a(c.trim()||null)};return d?Mn(M,{children:[Mn("button",{class:"ph-tour-dismiss",onClick:u,"aria-label":"Close survey",style:g,children:Rn()}),Mn("div",{class:"ph-tour-survey-question",children:d.questionText}),v?Mn(Nn,{value:c,onChange:h,onSubmit:b,isInteractive:m}):Mn(Fn,{survey:d,onSubmit:a,isInteractive:m}),Mn("div",{class:"ph-tour-footer",children:[Mn("span",{class:"ph-tour-progress",children:[o+1," of ",i]}),Mn("div",{class:"ph-tour-buttons",children:[!p&&Mn("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:l,style:g,children:d.backButtonText||"Back"}),v&&Mn("button",{class:"ph-tour-button ph-tour-button--primary",onClick:b,style:g,children:d.submitButtonText||"Submit"})]})]}),!f&&Mn("a",{href:m?"https://posthog.com/product-tours":void 0,target:m?"_blank":void 0,rel:m?"noopener noreferrer":void 0,class:"ph-tour-branding",style:m?void 0:{cursor:"default",pointerEvents:"none"},children:["Survey by ",$n]})]}):Mn("div",{})}var Bn=r;function Vn(t){return{top:"bottom",bottom:"top",left:"right",right:"left"}[t]}function Qn(t){var r,e=t.tour,n=t.step,o=t.stepIndex,i=t.totalSteps,a=t.targetElement,u=t.onNext,s=t.onPrevious,c=t.onDismiss,h=t.onSurveySubmit,d=t.onButtonClick,f=Ve("entering"),p=f[0],v=f[1],m=Ve(null),g=m[0],b=m[1],y=Ve(null),w=y[0],x=y[1],_=Ve(!1),k=_[0],T=_[1],C=Ve(n),S=C[0],A=C[1],q=Ve(o),M=q[0],L=q[1],j=We(null),E=We(o),z=We(!1),I=We(a),R=!gn(S)||"survey"===S.type;Ue((()=>{I.current=a}),[a]);var P=function(t,r){return Re=8,Ke((function(){return t}),[])}((()=>{var t=I.current;if(t&&j.current){var r=j.current.getBoundingClientRect(),e={width:r.width,height:r.height},n=t.getBoundingClientRect();b(function(t,r){var e=vn.innerWidth,n=vn.innerHeight,o=r.width,i=r.height,l=t.top,a=n-t.bottom,u=t.left,s=t.top+t.height/2,c=t.left+t.width/2;if(e-t.right>=o+yn){var h=t.right+yn,d=xn(s,i,n);return{position:"right",top:d.clamped,left:h,arrowOffset:d.offset}}if(u>=o+yn){var f=e-t.left+yn,p=xn(s,i,n);return{position:"left",top:p.clamped,right:f,arrowOffset:p.offset}}if(l>=i+yn&&i+yn>a){var v=n-t.top+yn,m=xn(c,o,e);return{position:"top",bottom:v,left:m.clamped,arrowOffset:m.offset}}var g=t.bottom+yn,b=xn(c,o,e);return{position:"bottom",top:g,left:b.clamped,arrowOffset:b.offset}}(n,e)),x(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)),T(!0)}}));Ue((()=>{!R&&!k&&j.current&&a&&P()}),[R,k,a,P]),Qe((()=>{var t=o,r=()=>{E.current===t&&(v("visible"),z.current=!1)},e=()=>{I.current&&gn(n)&&(I.current.isConnected||(I.current=bn(n).element),I.current)?function(t,r){var e=t.getBoundingClientRect(),n=Bn.innerHeight,o=Bn.innerWidth,i=n/6,l=o/6;if(i>e.top||e.bottom>n-i||l>e.left||e.right>o-l){t.scrollIntoView({behavior:"smooth",block:"center"});var a=e.top,u=0,s=!1,c=()=>{if(!s){var e=t.getBoundingClientRect();if(1>Math.abs(e.top-a)){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)}else r()}(I.current,(()=>{E.current===t&&(P(),setTimeout(r,50))})):setTimeout(r,50)};if(E.current===o)return E.current=o,z.current=!0,void e();E.current=o,z.current=!0,v("exiting"),setTimeout((()=>{E.current===t&&(gn(n)&&(b(null),x(null),T(!1)),A(n),L(o),v("entering"),e())}),150)}),[a,o,n,P]),Qe((()=>{if("visible"===p&&!R){var t=()=>{z.current||P()};return _e(Bn,"scroll",t,{capture:!0}),_e(Bn,"resize",t),()=>{null==Bn||Bn.removeEventListener("scroll",t,!0),null==Bn||Bn.removeEventListener("resize",t)}}}),[P,p,R]),Qe((()=>{var t=t=>{"Escape"===t.key&&c("escape_key")};return _e(Bn,"keydown",t),()=>{null==Bn||Bn.removeEventListener("keydown",t)}}),[c]);var O,Z,D="visible"===p,N="survey"===S.type,F=R||k,H=l({},S.maxWidth&&{width:"min("+S.maxWidth+"px, calc(100vw - 16px))",maxWidth:"min("+S.maxWidth+"px, calc(100vw - 16px))"},R?l({},{top:"auto",right:"auto",bottom:"auto",left:"auto",transform:"none"},(Z=function(t,r,e){switch(void 0===r&&(r=rr),r){case Ut:return{top:"0",left:"0",transform:"translate(30px, 30px)"};case Wt:return{top:"0",right:"0",transform:"translate(-30px, 30px)"};case Kt:return{top:"0",left:"50%",transform:"translate(-50%, 30px)"};case Yt:return{top:"50%",left:"0",transform:"translate(30px, -50%)"};case Gt:return{top:"50%",right:"0",transform:"translate(-30px, -50%)"};case Jt:return{top:"50%",left:"50%",transform:"translate(-50%, -50%)"};case Xt:return{left:"30px"};case tr:return{left:"50%",transform:"translateX(-50%)"};default:return{right:void 0===er&&void 0===Qt?"60px":"30px"}}}(0,null!==(O=S.modalPosition)&&void 0!==O?O:"middle_center"),"top"in Z||"bottom"in Z?Z:l({},Z,{bottom:"30px"}))):(()=>{if(!g)return{};var t="left"===g.position||"right"===g.position;return{top:bt(g.top)?"auto":g.top+"px",bottom:bt(g.bottom)?"auto":g.bottom+"px",left:bt(g.left)?"auto":g.left+"px",right:bt(g.right)?"auto":g.right+"px",transform:t?"translateY(-50%)":"translateX(-50%)"}})());return Mn("div",{class:"ph-tour-container",children:[!1!==(null==(r=e.appearance)?void 0:r.dismissOnClickOutside)&&Mn("div",{class:"ph-tour-click-overlay",onClick(t){t.stopPropagation(),c("user_clicked_outside")}}),Mn("div",{class:"ph-tour-modal-overlay",style:{opacity:R&&D?1:0,transition:"opacity 150ms ease-out",pointerEvents:"none"}}),Mn("div",{class:"ph-tour-spotlight",style:l({},D&&F&&w?w:{top:"50%",left:"50%",width:"0px",height:"0px"},{opacity:!R&&D&&F?1:0,transition:"opacity 150ms ease-out"},"click"===S.progressionTrigger&&!R&&{pointerEvents:"auto",cursor:"pointer"}),onClick:"click"!==S.progressionTrigger||R?void 0:t=>{t.stopPropagation(),I.current&&I.current.click(),u()}}),Mn("div",{ref:j,class:"ph-tour-tooltip "+(R?"ph-tour-tooltip--modal":"")+" "+(N?"ph-tour-survey-step":""),style:l({},H,{opacity:D&&F?1:0,transition:"opacity 150ms ease-out"}),onClick(t){t.stopPropagation()},children:[!R&&g&&Mn("div",{class:"ph-tour-arrow ph-tour-arrow--"+Vn(g.position),style:0!==g.arrowOffset?{"--ph-tour-arrow-offset":g.arrowOffset+"px"}:void 0}),N?Mn(Hn,{step:S,appearance:e.appearance,stepIndex:M,totalSteps:i,onSubmit:h,onPrevious:s,onDismiss:()=>c("user_clicked_skip")}):Mn(On,{step:S,appearance:e.appearance,stepIndex:M,totalSteps:i,onNext:u,onPrevious:s,onDismiss:()=>c("user_clicked_skip"),onButtonClick:d})]})]})}function Un(t){return Mn("a",{class:t.class,href:t.href,target:"_blank",rel:"noopener noreferrer",onClick:t.onClick,children:t.children})}function Wn(t){var r=t.onClick;return Mn("div",{class:t.class,role:"button",tabIndex:0,onClick:r,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),r())},style:{cursor:"pointer"},children:t.children})}function Kn(t){return Mn("div",{class:t.class,children:t.children})}function Yn(t){return Mn("div",{class:"ph-tour-banner-wrapper",children:Mn("div",{class:"ph-tour-banner-slide",children:Mn(Gn,l({},t))})})}function Gn(t){var r,e=t.step,n=t.onDismiss,o=t.onActionClick,i=null!==(r=e.bannerConfig)&&void 0!==r?r:{behavior:"sticky"},l=i.action,a="always"!==t.displayFrequency,u=["ph-tour-banner","sticky"===i.behavior&&"ph-tour-banner--sticky","custom"===i.behavior&&"ph-tour-banner--custom"].filter(Boolean).join(" "),s=Mn(M,{children:[Mn("div",{class:"ph-tour-banner-content",dangerouslySetInnerHTML:{__html:An(e)}}),a&&Mn("button",{class:"ph-tour-banner-dismiss",onClick(t){t.stopPropagation(),t.preventDefault(),n()},"aria-label":"Close banner",children:Rn()})]});return"link"===(null==l?void 0:l.type)&&l.link?Mn(Un,{class:u,href:l.link,onClick:o,children:s}):"trigger_tour"===(null==l?void 0:l.type)&&o?Mn(Wn,{class:u,onClick:o,children:s}):Mn(Kn,{class:u,children:s})}function Jn(t){var r,e;return!(null==(r=t.conditions)||!r.events||0>=(null==(e=t.conditions.events.values)?void 0:e.length))}function Xn(t){var r,e;return!(null==(r=t.conditions)||!r.actions||0>=(null==(e=t.conditions.actions.values)?void 0:e.length))}class to{on(t,r){return this.Ir[t]||(this.Ir[t]=[]),this.Ir[t].push(r),()=>{this.Ir[t]=this.Ir[t].filter((t=>t!==r))}}emit(t,r){for(var e of this.Ir[t]||[])e(r);for(var n of this.Ir["*"]||[])n(t,r)}constructor(){this.Ir={}}}function ro(t,r,e){if(xt(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 eo{constructor(t){this.Yn=new to,this.Xn=(t,r)=>this.ts(t,r)&&this.es(t,r)&&this.rs(t,r)&&this.ns(t,r),this.ts=(t,r)=>null==r||!r.event||(null==t?void 0:t.event)===(null==r?void 0:r.event),this._instance=t,this.ss=new Set,this.os=new Set}init(){var t,r;bt(null==(t=this._instance)?void 0:t._addCaptureHook)||(null==(r=this._instance)||r._addCaptureHook(((t,r)=>{this.on(t,r)})))}register(t){var r,e;if(!bt(null==(r=this._instance)?void 0:r._addCaptureHook)&&(t.forEach((t=>{var r,e;null==(r=this.os)||r.add(t),null==(e=t.steps)||e.forEach((t=>{var r;null==(r=this.ss)||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.ss.has(t)||this.ss.has(r.event))&&this.os&&(null==(e=this.os)?void 0:e.size)>0&&this.os.forEach((t=>{this.ls(r,t)&&this.Yn.emit("actionCaptured",t.name)}))}us(t){this.onAction("actionCaptured",(r=>t(r)))}ls(t,r){if(null==(null==r?void 0:r.steps))return!1;for(var e of r.steps)if(this.Xn(t,e))return!0;return!1}onAction(t,r){return this.Yn.on(t,r)}es(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(!ro(n,r.url,r.url_matching||"contains"))return!1}return!0}rs(t,r){return!!this.hs(t,r)&&!!this.ds(t,r)&&!!this.vs(t,r)}hs(t,r){var e;if(null==r||!r.href)return!0;var n=this.cs(t);if(n.length>0)return n.some((t=>ro(t.href,r.href,r.href_matching||"exact")));var o,i=(null==t||null==(e=t.properties)?void 0:e.$elements_chain)||"";return!!i&&ro((o=i.match(/(?::|")href="(.*?)"/))?o[1]:"",r.href,r.href_matching||"exact")}ds(t,r){var e;if(null==r||!r.text)return!0;var n=this.cs(t);if(n.length>0)return n.some((t=>ro(t.text,r.text,r.text_matching||"exact")||ro(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;!xt(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=>ro(t,i,l))))}vs(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}cs(t){var r;return null==(null==t||null==(r=t.properties)?void 0:r.$elements)?[]:null==t?void 0:t.properties.$elements}ns(t,r){return null==r||!r.properties||0===r.properties.length||Se(r.properties.reduce(((t,r)=>{var e=mt(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 no{constructor(t){var r;this.fs=[],this._instance=t,this.ps=new Map,this.gs=new Map,this.ys=new Map,null==(r=this._instance)||null==r.onSessionId||r.onSessionId((t=>this.bs(t)))}_s(t){return!1}ws(){return null}xs(t){}ks(){}Ss(t,r){return!!t&&Se(t.propertyFilters,null==r?void 0:r.properties)}Cs(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}Ms(t,r,e){var n=(e===Bt?this.ps:this.gs).get(t),o=[];return this.Ts((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.Ss(i,r)}))}register(t){var r;bt(null==(r=this._instance)?void 0:r._addCaptureHook)||(this.Es(t),this.Is(t))}Is(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}));0!==r.length&&(null==this.Ps&&(this.Ps=new eo(this._instance),this.Ps.init(),this.Ps.us((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.Ps)||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.ys.get(r.name);e&&e.push(t.id),this.ys.set(r.name,e||[t.id])}})))})))}Es(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}));0===e.length&&0===n.length||(null==(r=this._instance)||r._addCaptureHook(((t,r)=>{this.onEvent(t,r)})),this.ps=this.Cs(t,Bt),this.gs=this.Cs(t,Vt))}onEvent(t,r){var e,n,o=this.Rs(),i=(null==r||null==(e=r.properties)?void 0:e.$survey_id)||(null==r||null==(n=r.properties)?void 0:n.$product_tour_id);if(i&&this.getActivatedIds().includes(i)){var l=this.Ls(t,i);if("consume"===l)return o.info("event consumed activated item, removing it",{event:t,itemId:i}),void this.Os([i]);if("persist"===l)return o.info("shown item promoted to persisted activation",{event:t,itemId:i}),this.Fs(i),void this.As([i])}if(this.gs.has(t)){var a=this.Ms(t,r,Vt);a.length>0&&(o.info("cancel event matched, cancelling items",{event:t,itemsToCancel:a.map((t=>t.id))}),this.Os(a.map((t=>t.id))),a.forEach((t=>this.Ds(t.id))))}if(this.ps.has(t)){o.info("event name matched",{event:t,eventPayload:r,items:this.ps.get(t)});var u=this.Ms(t,r,Bt);this.$s(u.map((t=>t.id)))}}onAction(t){this.ys.has(t)&&this.$s(this.ys.get(t)||[])}$s(t){var r;if(0!==t.length){var e=!(null==(r=this._instance)||null==r.get_session_id||!r.get_session_id()),n=[];for(var o of t)e&&this._s(o)?this.Fs(o)&&this.Ns(o):n.push(o);n.length>0&&(this.fs=[...new Set([...this.fs,...n])]),this.Rs().info("updating activated items",{activatedItems:this.getActivatedIds()})}}Fs(t){this.fs=this.fs.filter((r=>r!==t));var r=this.qs();return!r.includes(t)&&(this.js([...r,t]),this.Bs(),!0)}Os(t){var r=new Set(t);this.fs=this.fs.filter((t=>!r.has(t)));var e=this.Hs(),n=e.filter((t=>!r.has(t)));n.length!==e.length&&(this.js(n),0===n.length&&this.Us()),this.As(t)}zs(){var t,r=this.ws();if(!r)return{};var e=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[r];return e&&"object"==typeof e?e:{}}Ns(t){if(this.ws()){var r=this.zs();this.xs(l({},r,{[t]:Date.now()}))}}As(t){if(this.ws()){var r=this.zs(),e={},n=!1;for(var o of Object.entries(r)){var i=o[0],l=o[1];t.includes(i)?n=!0:e[i]=l}n&&((t=>{if((t=>t===Object(t)&&!mt(t))(t)){for(var r in t)if(pt.call(t,r))return!1;return!0}return!1})(e)?this.ks():this.xs(e))}}Ws(){this.ws()&&this.ks()}getActivationTimestamp(t){if(this.qs().includes(t)){var r=this.zs()[t];return _t(r)?r:void 0}}Hs(){var t,r=this.Vs();return(null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[r])||[]}qs(){var t,r,e=this.Hs();if(0===e.length)return[];var n=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[this.Zs()],o=null==(r=this._instance)||null==r.get_session_id?void 0:r.get_session_id();return o&&n===o?e:[]}Bs(){var t,r=null==(t=this._instance)||null==t.get_session_id?void 0:t.get_session_id();r&&this.Gs(r)}Us(){this.Qs()}bs(t){var r,e=null==(r=this._instance)||null==(r=r.persistence)?void 0:r.props[this.Zs()];if(e&&e!==t){var n=this.Hs(),o=this.zs();n.length>0&&(this.js([]),n.filter((t=>_t(o[t]))).forEach((t=>this.Ds(t)))),this.Us(),this.Ws()}}getActivatedIds(){return[...new Set([...this.qs(),...this.fs])].filter((t=>!this.Js(t)))}reset(){this.fs=[],this.Hs().length>0&&this.js([]),this.Us(),this.Ws()}getEventToItemsMap(){return this.ps}Ks(){return this.Ps}}var oo=we("[Product Tour Event Receiver]");class io extends no{constructor(t){super(t)}Vs(){return J}Zs(){return X}Ys(){return rt}Ts(t){var r;null==(r=this._instance)||null==(r=r.productTours)||r.getProductTours(t)}Ds(t){var r;null==(r=this._instance)||null==(r=r.productTours)||r.cancelPendingTour(t)}Rs(){return oo}js(t){var r;null==(r=this._instance)||null==(r=r.persistence)||r.register({[J]:t})}Gs(t){var r;null==(r=this._instance)||null==(r=r.persistence)||r.register({[X]:t})}Qs(){var t;null==(t=this._instance)||null==(t=t.persistence)||t.unregister(X)}Js(t){if(!t)return!0;var r=""+cn+t;return!(!Ee.q(""+sn+t)&&!Ee.q(r))}Ls(t){return t===this.Ys()?"consume":"ignore"}getTours(){return this.getActivatedIds()}}var lo,ao=we("[Product Tours]"),uo=o,so=r,co=new Map;function ho(t){var r=new Date;return(!t.start_date||new Date(t.start_date)<=r)&&(!t.end_date||r<=new Date(t.end_date))}function fo(t,e){var o;return ho(t)&&function(t,e){var n=t.conditions;if(null==n||!n.url)return!0;var o=function(t){var e,n=null==r||null==(e=r.location)?void 0:e.href;return bt(n)?void 0:function(t,r){var e,n=null==t||null==(e=t.config)?void 0:e.get_current_url;if(!gt(n))return r;try{var o=n(r);return yt(o)&&o?o:r}catch(t){return ye.error("Error in get_current_url, falling back to window.location.href",t),r}}(t,n)}(e);if(!o)return!1;o!==lo&&(co.clear(),lo=o);var i=co.get(t.id);if(!bt(i))return i;var l,a=n.urlMatchType||dt;return l=a===ht?Tn(o)===Tn(n.url):Te[a]([n.url],[o]),co.set(t.id,l),l}(t,e)&&function(t,e){var o,l,a;if(!t||0===t.length)return!0;if(!i)return!1;var u,s,c,h,d,f,p=(u={userAgentDataPlatform:null==n||null==(o=n.userAgentData)?void 0:o.platform,maxTouchPoints:null==n?void 0:n.maxTouchPoints,screenWidth:null==r||null==(l=r.screen)?void 0:l.width,screenHeight:null==r||null==(a=r.screen)?void 0:a.height,devicePixelRatio:null==r?void 0:r.devicePixelRatio},(f=function(t){return Ft.test(t)?jt:Nt.test(t)?Et:Dt.test(t)?zt:new RegExp($t,"i").test(t)?$t:new RegExp("("+It+"|WPDesktop)","i").test(t)?It:/iPad/.test(t)?qt:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?Mt:Ht.test(t)?Lt:/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(Rt,"i").test(t)?Rt:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(Tt).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?Ct:At:new RegExp("(pda|"+Tt+")","i").test(t)?Ot:new RegExp(St,"i").test(t)&&!new RegExp(St+" pc","i").test(t)?Zt:""}(i))===qt||f===At||"Kobo"===f||"Kindle Fire"===f||f===Zt?St:f===jt||f===zt||f===Et||f===$t?"Console":f===Mt?"Wearable":f?Tt:"Android"===(null==u?void 0:u.userAgentDataPlatform)&&(null!==(s=null==u?void 0:u.maxTouchPoints)&&void 0!==s?s:0)>0?600>Math.min(null!==(c=null==u?void 0:u.screenWidth)&&void 0!==c?c:0,null!==(h=null==u?void 0:u.screenHeight)&&void 0!==h?h:0)/(null!==(d=null==u?void 0:u.devicePixelRatio)&&void 0!==d?d:1)?Tt:St:"Desktop");return Te.icontains(t,[p])}(null==(o=t.conditions)?void 0:o.deviceTypes)}var po="ph-product-tour-container",vo="data-ph-tour-trigger";class mo{constructor(t){var r=this;this.qc=null,this.jc=0,this.Zc=!1,this.Hc=!1,this.Vc=null,this.Qc=new Map,this.Uc=new Map,this.Kc=new Set,this.Yc=new Set,this.Gc=()=>{uo.hidden&&this.Vc?(clearInterval(this.Vc),this.Vc=null):uo.hidden||this.Vc||(this.Vc=setInterval((()=>{this.Jc()}),1e3),this.Jc())},this.nextStep=()=>{this.qc&&(this.Za("product tour step completed",{[et]:this.qc.id,[it]:this.qc.steps[this.jc].id,[lt]:this.jc}),this.qc.steps.length-1>this.jc?(this.Xc(this.jc+1),this.tf()):this.rf())},this.previousStep=()=>{this.qc&&0!==this.jc&&(this.Xc(this.jc-1),this.tf())},this.dismissTour=function(t){void 0===t&&(t="user_clicked_skip"),r.qc&&(r.Za("product tour dismissed",{[et]:r.qc.id,[it]:r.qc.steps[r.jc].id,[lt]:r.jc,$product_tour_dismiss_reason:t}),r.Zc||(Ee.A(""+cn+r.qc.id,!0),r._instance.capture("$set",{$set:{["$product_tour_dismissed/"+r.qc.id]:!0}})),so.dispatchEvent(new CustomEvent("PHProductTourDismissed",{detail:{tourId:r.qc.id,reason:t}})),r.ef())},this.nf=()=>{var t;if(this.qc){var r=this.if();if(r){var e=null==(t=r.bannerConfig)?void 0:t.action;this.Za("product tour banner action clicked",{[et]:this.qc.id,[nt]:this.qc.name,[ot]:this.qc.current_iteration||1,[it]:r.id,[lt]:this.jc,[at]:null==e?void 0:e.type,[ut]:null==e?void 0:e.link,[st]:null==e?void 0:e.tourId}),"trigger_tour"===(null==e?void 0:e.type)&&e.tourId&&(this.ef(),this.showTourById(e.tourId))}}},this.lf=t=>{if(this.qc){var r=this.qc.steps[this.jc];r&&this.Za("product tour button clicked",l({[et]:this.qc.id,[nt]:this.qc.name,[ot]:this.qc.current_iteration||1,[it]:r.id,[lt]:this.jc,$product_tour_button_text:t.text,[at]:t.action},t.link&&{[ut]:t.link},t.tourId&&{[st]:t.tourId}))}switch(t.action){case"dismiss":this.dismissTour("user_clicked_skip");break;case"next_step":this.nextStep();break;case"previous_step":this.previousStep();break;case"link":this.rf();break;case"trigger_tour":t.tourId&&(this.rf(),this.showTourById(t.tourId))}},this._instance=t,this.af=new io(t)}uf(t){var r=t.filter((t=>!t.disable_image_preload)).flatMap((t=>t.steps.flatMap(Sn)));for(var e of r)this.Yc.has(e)||(this.Yc.add(e),(new Image).src=e)}if(){var t;if(!this.qc)return null;var r=this.qc.steps[this.jc];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 fn.info('No matching translation for "'+r+'" in step '+t.id+", using default"),t;var i=l({},t);return bt(o.content)||(i.content=o.content),bt(o.contentHtml)||(i.contentHtml=o.contentHtml),o.buttons&&i.buttons&&(i.buttons={primary:i.buttons.primary&&l({},i.buttons.primary,o.buttons.primary),secondary:i.buttons.secondary&&l({},i.buttons.secondary,o.buttons.secondary)}),o.survey&&i.survey&&(i.survey=l({},i.survey,o.survey)),i}(r,null!=e?e:null)}Xc(t){this.jc=t,this.sf()}sf(){this.qc&&!this.Zc&&Ie.A(hn,{tourId:this.qc.id,stepIndex:this.jc})}cf(){Ie.F(hn)}hf(){var t=Ie.q(hn);if(!t)return null;try{return JSON.parse(t)}catch(t){return null}}start(){if(!this.Vc){var t=this.hf();t?this.df(t.tourId,t.stepIndex,(()=>{this.ff()})):this.ff()}}ff(){this.Vc=setInterval((()=>{this.Jc()}),1e3),this.Jc(!0),_e(uo,"visibilitychange",this.Gc)}df(t,r,e){var n;null==(n=this._instance.productTours)||n.getProductTours((n=>{var o=n.find((r=>r.id===t));o?(this.qc=o,this.jc=r,this.Hc=!0,this.tf()):n.length>0&&this.cf(),e()}))}stop(){this.Vc&&(clearInterval(this.Vc),this.Vc=null),uo.removeEventListener("visibilitychange",this.Gc),this.pf(),this.vf(),this.ef()}Jc(t){var r;null!=uo&&uo.getElementById("__POSTHOG_TOOLBAR__")||null==(r=this._instance.productTours)||r.getProductTours((t=>{if(0!==t.length){this.uf(t);var r=new Set,e=t.filter((t=>!this.Kc.has(t.id)&&(Jn(t)||Xn(t))));e.length>0&&(this.af.register(e),e.forEach((t=>this.Kc.add(t.id))));var n=this.qc?[]:this.af.getTours();for(var o of t){var i,l=null==(i=o.conditions)?void 0:i.selector;if(l&&(r.add(o.id),this.mf(o,l)),!this.qc){var a=Xn(o)||Jn(o);if(o.auto_launch&&this.gf(o)){if(!a){this.bf(o,"auto");continue}n.includes(o.id)&&this.bf(o,"event")}}}this.Qc.forEach((t=>{var e=t.tour;r.has(e.id)||this.yf(e.id)}))}else this.pf()}),t)}bf(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})}gf(t){var r,e,n;if(!fo(t,this._instance))return ao.info("Tour "+t.id+" failed conditions check"),!1;var o,i,l=null!==(r=t.display_frequency)&&void 0!==r?r:"until_interacted",a=""+un+t.id,u=""+sn+t.id,s=""+cn+t.id;switch(l){case"show_once":if(Ee.q(a))return ao.info("Tour "+t.id+" already shown (show_once frequency)"),!1;break;case"until_interacted":if(Ee.q(u)||Ee.q(s))return ao.info("Tour "+t.id+" already completed or dismissed"),!1}if(!function(t){if(!t)return!0;var r=t.days,e=t.types;if(!r||!e||0===e.length)return!0;var n=null;for(var o of e){var i=Ee.q(""+dn+o);if(i)try{var l=JSON.parse(i),a=new Date(l);isNaN(a.getTime())||n&&n>=a||(n=a)}catch(t){}}return!n||function(t,r){if(!t||!r)return!0;var e="string"==typeof r?new Date(r):r,n=new Date,o=Math.abs(n.getTime()-e.getTime());return Math.ceil(o/864e5)>t}(r,n)}(null==(e=t.conditions)?void 0:e.seenTourWaitPeriod))return ao.info("Cannot show tour "+t.id+": user has seen a "+(null==(o=t.conditions)||null==(o=o.seenTourWaitPeriod)?void 0:o.types)+" tour within the last "+(null==(i=t.conditions)||null==(i=i.seenTourWaitPeriod)?void 0:i.days)+" days."),!1;if(!this.wf({flagKey:t.internal_targeting_flag_key}))return ao.info("Tour "+t.id+" failed feature flag check: "+t.internal_targeting_flag_key),!1;var c=null==(n=t.conditions)?void 0:n.linkedFlagVariant;return!!this.wf({flagKey:t.linked_flag_key,flagVariant:c})||(ao.info("Tour "+t.id+" failed feature flag check: "+t.linked_flag_key+", variant: "+c),!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.qc=t,this.Xc(0);var o=this.tf();return o?(this.Za(rt,{[et]:t.id,[nt]:t.name,[ot]:t.current_iteration||1,$product_tour_render_reason:n,$product_tour_type:t.tour_type}),this.Zc||(Ee.A(""+un+t.id,!0),Ee.A(""+dn+t.tour_type,(new Date).toISOString()),this._instance.capture("$set",{$set:{["$product_tour_shown/"+t.id]:!0}}))):this.ef(),o}showTourById(t,r){var e;ao.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"}):ao.warn("could not find tour",t)}))}previewTour(t){ao.info("Previewing tour "+t.id),this.ef(),this.Zc=!0,this.qc=t,this.jc=0,this.tf()}rf(){this.qc&&(this.Za("product tour completed",{[et]:this.qc.id,$product_tour_steps_count:this.qc.steps.length}),this.Zc||(Ee.A(""+sn+this.qc.id,!0),this._instance.capture("$set",{$set:{["$product_tour_completed/"+this.qc.id]:!0}})),so.dispatchEvent(new CustomEvent("PHProductTourCompleted",{detail:{tourId:this.qc.id}})),this.ef())}tf(t){var r;if(void 0===t&&(t=0),!this.qc)return!1;var e=this.if();if(!e)return ao.warn("Step "+this.jc+" not found in tour "+this.qc.id),this.ef(),!1;if("banner"===e.type)return this.xf(),this.Hc=!1,this._f(),!0;if("survey"===e.type)return e.survey?(this.kf(),!0):(ao.warn("Unable to render survey step - survey data not found"),!1);if(!gn(e))return this.xf(),this.Hc=!1,this.Tf(null),!0;var n=bn(e),o={$use_manual_selector:null!==(r=e.useManualSelector)&&void 0!==r&&r,$inference_data_present:!!e.inferenceData},i=this.jc>0?this.qc.steps[this.jc-1]:null,a="click"===(null==i?void 0:i.progressionTrigger)||this.Hc;if("not_found"===n.error||"not_visible"===n.error){if(a&&20>t)return setTimeout((()=>{this.tf(t+1)}),100),!1;var u=100*t;return this.Cf(n,l({$product_tour_waited_for_element:a,$product_tour_wait_duration_ms:u},o)),0!==this.jc||this.Hc?(ao.warn('Tour "'+this.qc.name+'" dismissed: element for step '+this.jc+" became unavailable ("+n.error+")"+(a?" after waiting "+u+"ms":"")),this.dismissTour("element_unavailable"),!1):(ao.warn('Tour "'+this.qc.name+'" failed to show: element for first step not found ('+n.error+")"),!1)}if("multiple_matches"===n.error&&this.Cf(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.xf(l({[ct]:e.selector,$product_tour_step_selector_found:!0,$product_tour_step_element_tag:c.tag,$product_tour_step_element_id:c.id,$product_tour_step_element_classes:c.classes,$product_tour_step_element_text:c.text},o)),this.Hc=!1,this.Tf(s),!0}Tf(t,r,e){if(this.qc){var n=this.if();if(n){var o=function(t,r){var e=po+"-"+t.id,n=uo.querySelector("."+e);if(n&&n.shadowRoot)return{shadow:n.shadowRoot,isNewlyCreated:!1};var o=uo.createElement("div");o.className=e,_n(o,t.appearance);var i=o.attachShadow({mode:"open"}),l=mn(r);return l&&i.appendChild(l),uo.body.appendChild(o),{shadow:i,isNewlyCreated:!0}}(this.qc,this._instance),i=o.shadow;G(Mn(Qn,{tour:this.qc,step:n,stepIndex:this.jc,totalSteps:this.qc.steps.length,targetElement:t,onNext:this.nextStep,onPrevious:this.previousStep,onDismiss:e||this.dismissTour,onSurveySubmit:r,onButtonClick:this.lf}),i)}}}_f(){if(this.qc){var t=this.if();if(t){var r,e=function(t,r,e){var n,o=po+"-"+t.id,i=uo.querySelector("."+o);if(i&&i.shadowRoot)return{shadow:i.shadowRoot,isNewlyCreated:!1};var l=uo.createElement("div");l.className=o,_n(l,t.appearance),bt(null==e||null==(n=e.animation)?void 0:n.duration)||l.style.setProperty("--ph-tour-banner-animation-duration",e.animation.duration+"ms");var a=l.attachShadow({mode:"open"}),u=mn(r);if(u&&a.appendChild(u),"custom"===(null==e?void 0:e.behavior)&&e.selector){var s=uo.querySelector(e.selector);if(!s)return ao.warn("Custom banner container not found: "+e.selector+". Banner will not be displayed."),null;s.appendChild(l)}else uo.body.insertBefore(l,uo.body.firstChild);return{shadow:a,isNewlyCreated:!0}}(this.qc,this._instance,t.bannerConfig);if(!e)return this.Za("product tour banner container selector failed",{[et]:this.qc.id,$product_tour_banner_selector:null==t||null==(r=t.bannerConfig)?void 0:r.selector}),void this.dismissTour("container_unavailable");var n=e.shadow;G(Mn(Yn,{step:t,onDismiss:()=>this.dismissTour("user_clicked_skip"),onActionClick:this.nf,displayFrequency:this.qc.display_frequency}),n)}}}kf(){var t,r,e;if(this.qc){var n=this.qc.id,o=this.if();if(o){var i=o.linkedSurveyId,a=o.linkedSurveyQuestionId,u=(null==(t=o.survey)?void 0:t.questionText)||"";this.xf({$product_tour_linked_survey_id:i}),this.Za("survey shown",{[nr]:i,[ir]:n,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)}),this.Tf(null,(t=>{var r,e,o=a?"$survey_response_"+a:"$survey_response";this.Za("survey sent",l({[nr]:i,[ir]:n,[or]:[{id:a,question:u,response:t}],$survey_completed:!0,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)},!wt(t)&&{[o]:t})),ao.info("Survey "+i+" completed",wt(t)?"(skipped)":"with response: "+t),this.nextStep()}),(t=>{var r,e;this.Za("survey dismissed",{[nr]:i,[ir]:n,[or]:[{id:a,question:u,response:null}],$survey_partially_completed:!1,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)}),ao.info("Survey "+i+" dismissed"),this.dismissTour(t)})),ao.info("Rendered survey step for tour step "+this.jc)}}}wf(t){var r,e=t.flagKey,n=t.flagVariant;if(!e)return!0;var o,i=!(null==(r=this._instance.featureFlags)||!r.isFeatureEnabled(e,{send_event:!e.startsWith("product-tour-targeting-")})),l=!0;return n&&(l=(null==(o=this._instance.featureFlags)?void 0:o.getFeatureFlag(e,{send_event:!1}))===n||"any"===n),i&&l}ef(){var t;this.qc&&(null!=(t=uo.querySelector("."+po+"-"+this.qc.id))&&t.shadowRoot&&G(null,t.shadowRoot),null==t||t.remove()),this.qc=null,this.jc=0,this.Zc=!1,this.Hc=!1,this.cf()}mf(t,r){var e=uo.querySelector(r),n=this.Qc.get(t.id);if(e){if(n){if(e===n.element)return;ao.info("Trigger element changed for tour "+t.id+". Re-attaching listener."),this.yf(t.id)}if(!e.hasAttribute(vo)){var o=e=>{var n;if(this.qc)ao.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 ao.warn("Tour "+t.id+" no longer exists. Removing stale listener."),void this.yf(t.id);ho(o)?(ao.info("Tour "+t.id+" triggered by click on "+r),this.showTour(o,{reason:"trigger"})?e.preventDefault():ao.info("Tour "+t.id+" failed to show; not intercepting click.")):ao.warn("Tour "+t.id+" trigger clicked, but tour is not launched - not showing tour.")}};_e(e,"click",o),e.setAttribute(vo,t.id),this.Qc.set(t.id,{element:e,listener:o,tour:t}),ao.info("Attached trigger listener for tour "+t.id+" on "+r)}}else n&&this.yf(t.id)}yf(t){var r=this.Qc.get(t);r&&(r.element.removeEventListener("click",r.listener),r.element.removeAttribute(vo),this.Qc.delete(t),ao.info("Removed trigger listener for tour "+t))}pf(){this.Qc.forEach(((t,r)=>{this.yf(r)}))}Za(t,r){this.Zc||this._instance.capture(t,r)}xf(t){if(this.qc){var r=this.qc.steps[this.jc];this.Za("product tour step shown",l({[et]:this.qc.id,[it]:r.id,[lt]:this.jc,$product_tour_step_type:r.type},t))}}Cf(t,r){if(this.qc){var e=this.qc.steps[this.jc];this.Za("product tour step selector failed",l({[et]:this.qc.id,[it]:e.id,[lt]:this.jc,[ct]:e.selector,$product_tour_error:t.error,$product_tour_matches_count:t.matchCount,$product_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.gf(t)));t(n,e)}else t([],e)}))}resetTour(t){Ee.F(""+un+t),Ee.F(""+sn+t),Ee.F(""+cn+t)}resetAllTours(){var t=null==so?void 0:so.localStorage;if(t){for(var r=[],e=0;t.length>e;e++){var n=t.key(e);(null!=n&&n.startsWith(un)||null!=n&&n.startsWith(sn)||null!=n&&n.startsWith(cn)||null!=n&&n.startsWith(dn))&&r.push(n)}r.forEach((t=>Ee.F(t)))}}cancelPendingTour(t){var r=this.Uc.get(t);r&&(clearTimeout(r),this.Uc.delete(t),ao.info("Cancelled pending tour: "+t))}vf(){this.Uc.forEach((t=>clearTimeout(t))),this.Uc.clear()}isTourPending(t){return this.Uc.has(t)}queueTourWithDelay(t,r,e){ao.info("Queueing tour "+t+" with "+r+"s delay");var n=setTimeout((()=>{this.Uc.delete(t),ao.info("Delay elapsed for tour "+t+", showing now"),this.showTourById(t,e)}),1e3*r);this.Uc.set(t,n)}}function go(t,r){if(o){var e=new mo(t);return r&&e.start(),e}}var bo="undefined"!=typeof globalThis?globalThis:r;bo&&"undefined"==typeof self&&(bo.self=bo),bo&&"undefined"==typeof File&&(bo.File=function(){});var yo=null!=r?r:{};yo.__PosthogExtensions__=yo.__PosthogExtensions__||{},yo.__PosthogExtensions__.generateProductTours=go,t.default=go,t.elementIsVisible=fe,t.findElement=ge,t.getElementPath=function(t,r){if(void 0===r&&(r=4),!t)return null;for(var e=[],n=t;n&&r>e.length&&"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,n=null==e?void 0:e.navigator,o=null==e?void 0:e.document;null!=e&&e.XMLHttpRequest&&new e.XMLHttpRequest;var i=null==n?void 0:n.userAgent;function l(){return l=Object.assign?Object.assign.bind():function(t){for(var r=1;arguments.length>r;r++){var e=arguments[r];for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},l.apply(null,arguments)}var a,u,s,c,h,f,d,p,v,m,g,b,y,w,x,_={},k=[],T=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,C=Array.isArray;function S(t,r){for(var e in r)t[e]=r[e];return t}function A(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function q(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?++s:o,__i:-1,__u:0};return null==o&&null!=u.vnode&&u.vnode(i),i}function M(t){return t.children}function j(t,r){this.props=t,this.context=r}function $(t,r){if(null==r)return t.__?$(t.__,t.__i+1):null;for(var e;t.__k.length>r;r++)if(null!=(e=t.__k[r])&&null!=e.__e)return e.__e;return"function"==typeof t.type?$(t):null}function L(t){if(t.__P&&t.__d){var r=t.__v,e=r.__e,n=[],o=[],i=S({},r);i.__v=r.__v+1,u.vnode&&u.vnode(i),F(t.__P,i,r,t.__n,t.__P.namespaceURI,32&r.__u?[e]:null,n,null==e?$(r):e,!!(32&r.__u),o),i.__v=r.__v,i.__.__k[i.__i]=i,V(n,i,o),r.__e=r.__=null,i.__e!=e&&E(i)}}function E(t){if(null!=(t=t.__)&&null!=t.__c)return t.__e=t.__c.base=null,t.__k.some((function(r){if(null!=r&&null!=r.__e)return t.__e=t.__c.base=r.__e})),E(t)}function I(t){(!t.__d&&(t.__d=!0)&&c.push(t)&&!z.__r++||h!=u.debounceRendering)&&((h=u.debounceRendering)||f)(z)}function z(){try{for(var t,r=1;c.length;)c.length>r&&c.sort(d),t=c.shift(),r=c.length,L(t)}finally{c.length=z.__r=0}}function O(t,r,e,n,o,i,l,a,u,s,c){var h,f,d,p,v,m,g,b=n&&n.__k||k,y=r.length;for(u=D(e,r,b,u,y),h=0;y>h;h++)null!=(d=e.__k[h])&&(f=-1!=d.__i&&b[d.__i]||_,d.__i=h,m=F(t,d,f,o,i,l,a,u,s,c),p=d.__e,d.ref&&f.ref!=d.ref&&(f.ref&&W(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=R(d,u,t,g),g&&f.__e&&(f.__e=null)):"function"==typeof d.type&&void 0!==m?u=m:p&&(u=p.nextSibling),d.__u&=-7);return e.__e=v,u}function D(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;o>i;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]=q(null,l,null,null,null):C(l)?l=t.__k[i]=q(M,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?l=t.__k[i]=q(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=N(l,e,u,h))&&(h--,(a=e[s])&&(a.__u|=2)),null==a||null==a.__v?(-1==s&&(o>c?f--:c>o&&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;c>i;i++)null!=(a=e[i])&&0==(2&a.__u)&&(a.__e==n&&(n=$(a)),Y(a,a));return n}function R(t,r,e,n){var o,i;if("function"==typeof t.type){for(o=t.__k,i=0;o&&o.length>i;i++)o[i]&&(o[i].__=t,r=R(o[i],r,e,n));return r}t.__e!=r&&(n&&(r&&t.type&&!r.parentNode&&(r=$(t)),e.insertBefore(t.__e,r||null)),r=t.__e);do{r=r&&r.nextSibling}while(null!=r&&8==r.nodeType);return r}function N(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||r.length>i;)if(null!=(s=r[l=0>o?i++:o--])&&0==(2&s.__u)&&a==s.key&&u==s.type)return l;return-1}function P(t,r,e){"-"==r[0]?t.setProperty(r,null==e?"":e):t[r]=null==e?"":"number"!=typeof e||T.test(r)?e:e+"px"}function Z(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||P(t.style,r,"");if(e)for(r in e)n&&e[r]==n[r]||P(t.style,r,e[r])}else if("o"==r[0]&&"n"==r[1])i=r!=(r=r.replace(g,"$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[m]=n[m]:(e[m]=b,t.addEventListener(r,i?w:y,i)):t.removeEventListener(r,i?w:y,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 B(t){return function(r){if(this.l){var e=this.l[r.type+t];if(null==r[v])r[v]=b++;else if(e[m]>r[v])return;return e(u.event?u.event(r):r)}}}function F(t,r,e,n,o,i,l,a,s,c){var h,f,d,p,v,m,g,b,y,w,$,x,_,T,q,L,E=r.type;if(void 0!==r.constructor)return null;128&e.__u&&(s=!!(32&e.__u),i=[a=r.__e=e.__e]),(h=u.__b)&&h(r);t:if("function"==typeof E){f=l.length;try{if(y=r.props,w=E.prototype&&E.prototype.render,$=(h=E.contextType)&&n[h.__c],x=h?$?$.props.value:h.__:n,e.__c?b=(d=r.__c=e.__c).__=d.__E:(w?r.__c=d=new E(y,x):(r.__c=d=new j(y,x),d.constructor=E,d.render=G),$&&$.sub(d),d.state||(d.state={}),d.__n=n,p=d.__d=!0,d.__h=[],d._sb=[]),w&&null==d.__s&&(d.__s=d.state),w&&null!=E.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=S({},d.__s)),S(d.__s,E.getDerivedStateFromProps(y,d.__s))),v=d.props,m=d.state,d.__v=r,p)w&&null==E.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),w&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(w&&null==E.getDerivedStateFromProps&&y!==v&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,x),r.__v==e.__v||!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,x)){r.__v!=e.__v&&(d.props=y,d.state=d.__s,d.__d=!1),r.__e=e.__e,r.__k=e.__k,r.__k.some((function(t){t&&(t.__=r)})),k.push.apply(d.__h,d._sb),d._sb=[],d.__h.length&&l.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,x),w&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(v,m,g)}))}if(d.context=x,d.props=y,d.__P=t,d.__e=!1,_=u.__r,T=0,w)d.state=d.__s,d.__d=!1,_&&_(r),h=d.render(d.props,d.state,d.context),k.push.apply(d.__h,d._sb),d._sb=[];else do{d.__d=!1,_&&_(r),h=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&25>++T);d.state=d.__s,null!=d.getChildContext&&(n=S(S({},n),d.getChildContext())),w&&!p&&null!=d.getSnapshotBeforeUpdate&&(g=d.getSnapshotBeforeUpdate(v,m)),q=null!=h&&h.type===M&&null==h.key?U(h.props.children):h,a=O(t,C(q)?q:[q],r,e,n,o,i,l,a,s,c),d.base=r.__e,r.__u&=-161,d.__h.length&&l.push(d),b&&(d.__E=d.__=null)}catch(t){if(l.length=f,r.__v=null,s||null!=i)if(t.then){for(r.__u|=s?160:128;a&&8==a.nodeType&&a.nextSibling;)a=a.nextSibling;null!=i&&(i[i.indexOf(a)]=null),r.__e=a}else{if(null!=i)for(L=i.length;L--;)A(i[L]);H(r)}else r.__e=e.__e,!r.__k&&e.__k&&(r.__k=e.__k),t.then||H(r);u.__e(t,r,e)}}else null==i&&r.__v==e.__v?(r.__k=e.__k,r.__e=e.__e):a=r.__e=Q(e.__e,r,e,n,o,i,l,s,c);return(h=u.diffed)&&h(r),128&r.__u?void 0:a}function H(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(H))}function V(t,r,e){for(var n=0;e.length>n;n++)W(e[n],e[++n],e[++n]);u.__c&&u.__c(r,t),t.some((function(r){try{t=r.__h,r.__h=[],t.some((function(t){t.call(r)}))}catch(t){u.__e(t,r.__v)}}))}function U(t){return"object"!=typeof t||null==t||t.__b>0?t:C(t)?t.map(U):void 0!==t.constructor?null:S({},t)}function Q(t,r,e,n,o,i,l,s,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;i.length>h;h++)if((v=i[h])&&"setAttribute"in v==!!w&&(w?v.localName==w:3==v.nodeType)){t=v,i[h]=null;break}if(null==t){if(null==w)return document.createTextNode(y);t=document.createElementNS(o,w,y.is&&y),s&&(u.__m&&u.__m(r,i),s=!1),i=null}if(null==w)b===y||s&&t.data==y||(t.data=y);else{if(i="textarea"==w&&null!=y.defaultValue?null:i&&a.call(t.childNodes),!s&&null!=i)for(b={},h=0;t.attributes.length>h;h++)b[(v=t.attributes[h]).name]=v.value;for(h in b)v=b[h],"dangerouslySetInnerHTML"==h?d=v:"children"==h||h in y||"value"==h&&"defaultValue"in y||"checked"==h&&"defaultChecked"in y||Z(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:s&&"function"!=typeof v||b[h]===v||Z(t,h,v,b[h],o);if(f)s||d&&(f.__html==d.__html||f.__html==t.innerHTML)||(t.innerHTML=f.__html),r.__k=[];else if(d&&(t.innerHTML=""),O("template"==r.type?t.content:t,C(p)?p:[p],r,e,n,"foreignObject"==w?"http://www.w3.org/1999/xhtml":o,i,l,i?i[0]:e.__k&&$(e,0),s,c),null!=i)for(h=i.length;h--;)A(i[h]);s&&"textarea"!=w||(h="value","progress"==w&&null==m?t.removeAttribute("value"):null!=m&&(m!==t[h]||"progress"==w&&!m||"option"==w&&m!=b[h])&&Z(t,h,m,b[h],o),h="checked",null!=g&&g!=t[h]&&Z(t,h,g,b[h],o))}return t}function W(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){u.__e(t,e)}}function Y(t,r,e){var n,o;if(u.unmount&&u.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||W(n,null,r)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){u.__e(t,r)}n.base=n.__P=n.__n=null}if(n=t.__k)for(o=0;n.length>o;o++)n[o]&&Y(n[o],r,e||"function"!=typeof t.type);e||A(t.__e),t.__c=t.__=t.__e=void 0}function G(t,r,e){return this.constructor(t,e)}function K(t,r,e){var n,o,i;r==document&&(r=document.documentElement),u.__&&u.__(t,r),n=r.__k,o=[],i=[],F(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?a.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 q(t,l,n,o,null)}(M,null,[t]),n||_,_,r.namespaceURI,n?null:r.firstChild?a.call(r.childNodes):null,o,n?n.__e:r.firstChild,!1,i),V(o,t,i),t.props.children=null}a=k.slice,u={__e(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}},s=0,j.prototype.setState=function(t,r){var e;e=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=S({},this.state),"function"==typeof t&&(t=t(S({},e),this.props)),t&&S(e,t),null!=t&&this.__v&&(r&&this._sb.push(r),I(this))},j.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),I(this))},j.prototype.render=M,c=[],f="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,d=function(t,r){return t.__v.__b-r.__v.__b},z.__r=0,p=Math.random().toString(8),v="__d"+p,m="__a"+p,g=/(PointerCapture)$|Capture$/i,b=0,y=B(!1),w=B(!0),x=0;var J="$product_tours_activated",X="$product_tours_activated_session",tt={backgroundColor:"#ffffff",textColor:"#1d1f27",buttonColor:"#1d1f27",borderRadius:8,buttonBorderRadius:6,borderColor:"#e5e7eb",fontFamily:"system-ui",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",showOverlay:!0,whiteLabel:!1,dismissOnClickOutside:!0,zIndex:2147483646},rt="product tour shown",et="$product_tour_id",nt="$product_tour_name",ot="$product_tour_iteration",it="$product_tour_step_id",lt="$product_tour_step_order",at="$product_tour_button_action",ut="$product_tour_button_link",st="$product_tour_button_tour_id",ct="$product_tour_step_selector",ht="exact",ft="icontains",dt=Object.prototype,pt=dt.hasOwnProperty,vt=dt.toString,mt=Array.isArray||function(t){return"[object Array]"===vt.call(t)},gt=t=>"function"==typeof t,bt=t=>void 0===t,yt=t=>"[object String]"==vt.call(t),wt=t=>null===t,xt=t=>bt(t)||wt(t),_t=t=>"[object Number]"==vt.call(t)&&t==t,kt=(t,r,e)=>{function n(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),l=1;o>l;l++)i[l-1]=arguments[l];r((()=>{(0,e[n])(t,...i)}))}var o={debug(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("debug",...r)},info(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("log",...r)},warn(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("warn",...r)},error(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("error",...r)},critical(){for(var r=arguments.length,n=new Array(r),o=0;r>o;o++)n[o]=arguments[o];e.error(t,...n)},createLogger:n=>kt(t+" "+n,r,e)};return o},Tt="Mobile",Ct="Android",St="Tablet",At=Ct+" "+St,qt="iPad",Mt="Apple Watch",jt="BlackBerry",Lt="Nintendo",Et="PlayStation",It="Xbox",zt="Windows Phone",Ot="Nokia",Dt="Ouya",$t="Generic",Rt=$t+" "+Tt.toLowerCase(),Nt=$t+" "+St.toLowerCase(),Pt=new RegExp(It,"i"),Zt=new RegExp(Et+" \\w+","i"),Bt=new RegExp(Lt+" \\w+","i"),Ft=new RegExp(jt+"|PlayBook|BB10","i"),Ht="events",Vt="cancelEvents",Ut="tab",Qt="top_left",Wt="top_right",Yt="top_center",Gt="middle_left",Kt="middle_right",Jt="middle_center",Xt="left",tr="center",rr="right",er="widget",nr="$survey_id",or="$survey_questions",ir="$product_tour_id";function lr(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);r>e;e++)n[e]=t[e];return n}function ar(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,l,a=[],u=!0,s=!1;try{if(i=(e=e.call(t)).next,0===r);else for(;!(u=(n=i.call(e)).done)&&(a.push(n.value),a.length!==r);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=e.return&&(l=e.return(),Object(l)!==l))return}finally{if(s)throw o}}return a}}(t,r)||function(t,r){if(t){if("string"==typeof t)return lr(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?lr(t,r):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ur=Object.entries,sr=Object.setPrototypeOf,cr=Object.isFrozen,hr=Object.getPrototypeOf,fr=Object.getOwnPropertyDescriptor,dr=Object.freeze,pr=Object.seal,vr=Object.create,mr="undefined"!=typeof Reflect&&Reflect,gr=mr.apply,br=mr.construct;dr||(dr=function(t){return t}),pr||(pr=function(t){return t}),gr||(gr=function(t,r){for(var e=arguments.length,n=new Array(e>2?e-2:0),o=2;e>o;o++)n[o-2]=arguments[o];return t.apply(r,n)}),br||(br=function(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),n=1;r>n;n++)e[n-1]=arguments[n];return new t(...e)});var yr,wr=Pr([].forEach),xr=Pr([].lastIndexOf),_r=Pr([].pop),kr=Pr([].push),Tr=Pr([].splice),Cr=Array.isArray,Sr=Pr("".toLowerCase),Ar=Pr("".toString),qr=Pr("".match),Mr=Pr("".replace),jr=Pr("".indexOf),Lr=Pr("".trim),Er=Pr((0).toString),Ir=Pr(Boolean.prototype.toString),zr="undefined"==typeof BigInt?null:Pr(BigInt.prototype.toString),Or="undefined"==typeof Symbol?null:Pr(Symbol.prototype.toString),Dr=Pr({}.hasOwnProperty),$r=Pr({}.toString),Rr=Pr(/t/.test),Nr=(yr=TypeError,function(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];return br(yr,r)});function Pr(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;e>o;o++)n[o-1]=arguments[o];return gr(t,r,n)}}function Zr(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Sr;if(sr&&sr(t,null),!Cr(r))return t;for(var n=r.length;n--;){var o=r[n];if("string"==typeof o){var i=e(o);i!==o&&(cr(r)||(r[n]=i),o=i)}t[o]=!0}return t}function Br(t){for(var r=0;t.length>r;r++)Dr(t,r)||(t[r]=null);return t}function Fr(t){var r=vr(null);for(var e of ur(t)){var n=ar(e,2),o=n[0],i=n[1];Dr(t,o)&&(r[o]=Cr(i)?Br(i):i&&"object"==typeof i&&i.constructor===Object?Fr(i):i)}return r}function Hr(t,r){for(;null!==t;){var e=fr(t,r);if(e){if(e.get)return Pr(e.get);if("function"==typeof e.value)return Pr(e.value)}t=hr(t)}return function(){return null}}var Vr=dr(["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"]),Ur=dr(["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"]),Qr=dr(["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"]),Wr=dr(["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"]),Yr=dr(["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"]),Gr=dr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Kr=dr(["#text"]),Jr=dr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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"]),Xr=dr(["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","dominant-baseline","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-orientation","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"]),te=dr(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),re=dr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ee=pr(/{{[\w\W]*|^[\w\W]*}}/g),ne=pr(/<%[\w\W]*|^[\w\W]*%>/g),oe=pr(/\${[\w\W]*/g),ie=pr(/^data-[\-\w.\u00B7-\uFFFF]+$/),le=pr(/^aria-[\-\w]+$/),ae=pr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ue=pr(/^(?:\w+script|data):/i),se=pr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ce=pr(/^html$/i),he=pr(/^[a-z][.\w]*(-[.\w]+)+$/i),fe=pr(/<[/\w!]/g),de=pr(/<[/\w]/g),pe=pr(/<\/no(script|embed|frames)/i),ve=pr(/\/>/i),me=function(){return"undefined"==typeof window?null:window},ge=function(t,r,e,n){return Dr(t,r)&&Cr(t[r])?Zr(n.base?Fr(n.base):{},t[r],n.transform):e},be=function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:me(),e=r=>t(r);if(e.version="3.4.12",e.removed=[],!r||!r.document||9!==r.document.nodeType||!r.Element)return e.isSupported=!1,e;var n,o=r.document,i=o,l=i.currentScript,a=r.HTMLTemplateElement,u=r.Node,s=r.NodeFilter,c=r.DOMParser,h=r.trustedTypes,f=r.Element.prototype,d=Hr(f,"cloneNode"),p=Hr(f,"remove"),v=Hr(f,"nextSibling"),m=Hr(f,"childNodes"),g=Hr(f,"parentNode"),b=Hr(f,"shadowRoot"),y=Hr(f,"attributes"),w=u&&u.prototype?Hr(u.prototype,"nodeType"):null,x=u&&u.prototype?Hr(u.prototype,"nodeName"):null;if("function"==typeof a){var _=o.createElement("template");_.content&&_.content.ownerDocument&&(o=_.content.ownerDocument)}var k,T="",C=!1,S=0,A=function(){if(S>0)throw Nr('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},q=function(t){A(),S++;try{return n.createHTML(t)}finally{S--}},M=o.implementation,j=o.createNodeIterator,L=o.createDocumentFragment,E=o.getElementsByTagName,I=i.importNode,z={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};e.isSupported="function"==typeof ur&&"function"==typeof g&&M&&void 0!==M.createHTMLDocument;var O=ee,D=ne,R=oe,N=ie,P=le,Z=ue,B=se,F=he,H=ae,V=null,U=Zr({},[...Vr,...Ur,...Qr,...Yr,...Kr]),Q=null,W=Zr({},[...Jr,...Xr,...te,...re]),Y=Object.seal(vr(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}})),G=null,K=null,J=Object.seal(vr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),X=!0,tt=!0,rt=!1,et=!0,nt=!1,ot=!0,it=!1,lt=!1,at=null,ut=null,st=!1,ct=!1,ht=!1,ft=!1,dt=!0,pt=!1,vt="user-content-",mt=!0,gt=!1,bt={},yt=null,wt=Zr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),xt=null,_t=Zr({},["audio","video","img","source","image","track"]),kt=null,Tt=Zr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ct="http://www.w3.org/1998/Math/MathML",St="http://www.w3.org/2000/svg",At="http://www.w3.org/1999/xhtml",qt=At,Mt=!1,jt=null,Lt=Zr({},[Ct,St,At],Ar),Et=dr(["mi","mo","mn","ms","mtext"]),It=Zr({},Et),zt=dr(["annotation-xml"]),Ot=Zr({},zt),Dt=Zr({},["title","style","font","a","script"]),$t=null,Rt=["application/xhtml+xml","text/html"],Nt=null,Pt=null,Zt=o.createElement("form"),Bt=function(t){return t instanceof RegExp||t instanceof Function},Ft=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Pt||Pt!==t){t&&"object"==typeof t||(t={}),t=Fr(t),$t=-1===Rt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,V=ge(t,"ALLOWED_TAGS",U,{transform:Nt="application/xhtml+xml"===$t?Ar:Sr}),Q=ge(t,"ALLOWED_ATTR",W,{transform:Nt}),jt=ge(t,"ALLOWED_NAMESPACES",Lt,{transform:Ar}),kt=ge(t,"ADD_URI_SAFE_ATTR",Tt,{transform:Nt,base:Tt}),xt=ge(t,"ADD_DATA_URI_TAGS",_t,{transform:Nt,base:_t}),yt=ge(t,"FORBID_CONTENTS",wt,{transform:Nt}),G=ge(t,"FORBID_TAGS",Fr({}),{transform:Nt}),K=ge(t,"FORBID_ATTR",Fr({}),{transform:Nt}),bt=!!Dr(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?Fr(t.USE_PROFILES):t.USE_PROFILES),X=!1!==t.ALLOW_ARIA_ATTR,tt=!1!==t.ALLOW_DATA_ATTR,rt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,et=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,nt=t.SAFE_FOR_TEMPLATES||!1,ot=!1!==t.SAFE_FOR_XML,it=t.WHOLE_DOCUMENT||!1,ct=t.RETURN_DOM||!1,ht=t.RETURN_DOM_FRAGMENT||!1,ft=t.RETURN_TRUSTED_TYPE||!1,st=t.FORCE_BODY||!1,dt=!1!==t.SANITIZE_DOM,pt=t.SANITIZE_NAMED_PROPS||!1,mt=!1!==t.KEEP_CONTENT,gt=t.IN_PLACE||!1,H=function(t){try{return Rr(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:ae,qt="string"==typeof t.NAMESPACE?t.NAMESPACE:At,It=Dr(t,"MATHML_TEXT_INTEGRATION_POINTS")&&t.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof t.MATHML_TEXT_INTEGRATION_POINTS?Fr(t.MATHML_TEXT_INTEGRATION_POINTS):Zr({},Et),Ot=Dr(t,"HTML_INTEGRATION_POINTS")&&t.HTML_INTEGRATION_POINTS&&"object"==typeof t.HTML_INTEGRATION_POINTS?Fr(t.HTML_INTEGRATION_POINTS):Zr({},zt);var r=Dr(t,"CUSTOM_ELEMENT_HANDLING")&&t.CUSTOM_ELEMENT_HANDLING&&"object"==typeof t.CUSTOM_ELEMENT_HANDLING?Fr(t.CUSTOM_ELEMENT_HANDLING):vr(null);if(Y=vr(null),Dr(r,"tagNameCheck")&&Bt(r.tagNameCheck)&&(Y.tagNameCheck=r.tagNameCheck),Dr(r,"attributeNameCheck")&&Bt(r.attributeNameCheck)&&(Y.attributeNameCheck=r.attributeNameCheck),Dr(r,"allowCustomizedBuiltInElements")&&"boolean"==typeof r.allowCustomizedBuiltInElements&&(Y.allowCustomizedBuiltInElements=r.allowCustomizedBuiltInElements),pr(Y),nt&&(tt=!1),ht&&(ct=!0),bt&&(V=Zr({},Kr),Q=vr(null),!0===bt.html&&(Zr(V,Vr),Zr(Q,Jr)),!0===bt.svg&&(Zr(V,Ur),Zr(Q,Xr),Zr(Q,re)),!0===bt.svgFilters&&(Zr(V,Qr),Zr(Q,Xr),Zr(Q,re)),!0===bt.mathMl&&(Zr(V,Yr),Zr(Q,te),Zr(Q,re))),J.tagCheck=null,J.attributeCheck=null,Dr(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?J.tagCheck=t.ADD_TAGS:Cr(t.ADD_TAGS)&&(V===U&&(V=Fr(V)),Zr(V,t.ADD_TAGS,Nt))),Dr(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?J.attributeCheck=t.ADD_ATTR:Cr(t.ADD_ATTR)&&(Q===W&&(Q=Fr(Q)),Zr(Q,t.ADD_ATTR,Nt))),Dr(t,"ADD_URI_SAFE_ATTR")&&Cr(t.ADD_URI_SAFE_ATTR)&&Zr(kt,t.ADD_URI_SAFE_ATTR,Nt),Dr(t,"FORBID_CONTENTS")&&Cr(t.FORBID_CONTENTS)&&(yt===wt&&(yt=Fr(yt)),Zr(yt,t.FORBID_CONTENTS,Nt)),Dr(t,"ADD_FORBID_CONTENTS")&&Cr(t.ADD_FORBID_CONTENTS)&&(yt===wt&&(yt=Fr(yt)),Zr(yt,t.ADD_FORBID_CONTENTS,Nt)),mt&&(V["#text"]=!0),it&&Zr(V,["html","head","body"]),V.table&&(Zr(V,["tbody"]),delete G.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw Nr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw Nr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');var e=n;n=t.TRUSTED_TYPES_POLICY;try{T=q("")}catch(t){throw n=e,t}}else null===t.TRUSTED_TYPES_POLICY?(n=void 0,T=""):(void 0===n&&(C||(k=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}}(h,l),C=!0),n=k),n&&"string"==typeof T&&(T=q("")));dr&&dr(t),Pt=t}},Ht=Zr({},[...Ur,...Qr,...Wr]),Vt=Zr({},[...Yr,...Gr]),Ut=function(t){kr(e.removed,{element:t});try{g(t).removeChild(t)}catch(r){if(p(t),!g(t))throw Nr("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Qt=function(t){Gt(t);var r=m(t);if(r){var e=[];wr(r,(t=>{kr(e,t)})),wr(e,(t=>{try{p(t)}catch(t){}}))}var n=y(t);if(n)for(var o=n.length-1;o>=0;--o){var i=n[o],l=i&&i.name;if("string"==typeof l)try{t.removeAttribute(l)}catch(t){}}},Wt=function(t,r){try{kr(e.removed,{attribute:r.getAttributeNode(t),from:r})}catch(t){kr(e.removed,{attribute:null,from:r})}if(r.removeAttribute(t),"is"===t)if(ct||ht)try{Ut(r)}catch(t){}else try{r.setAttribute(t,"")}catch(t){}},Yt=function(t){var r=y(t);if(r)for(var e=r.length-1;e>=0;--e){var n=r[e],o=n&&n.name;if("string"==typeof o&&!Q[Nt(o)])try{t.removeAttribute(o)}catch(t){}}},Gt=function(t){for(var r=[t];r.length>0;){var e=r.pop();1===(w?w(e):e.nodeType)&&Yt(e);var n=m(e);if(n)for(var o=n.length-1;o>=0;--o)r.push(n[o])}},Kt=function(t){var r=null,e=null;if(st)t="<remove></remove>"+t;else{var i=qr(t,/^[\r\n\t ]+/);e=i&&i[0]}"application/xhtml+xml"===$t&&qt===At&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var l=n?q(t):t;if(qt===At)try{r=(new c).parseFromString(l,$t)}catch(t){}if(!r||!r.documentElement){r=M.createDocument(qt,"template",null);try{r.documentElement.innerHTML=Mt?T:l}catch(t){}}var a=r.body||r.documentElement;return t&&e&&a.insertBefore(o.createTextNode(e),a.childNodes[0]||null),qt===At?E.call(r,it?"html":"body")[0]:it?r.documentElement:a},Jt=function(t){return j.call(t.ownerDocument||t,t,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},Xt=function(t){return t=Mr(t,O," "),t=Mr(t,D," "),Mr(t,R," ")},tr=function(t){var r;t.normalize();for(var e=j.call(t.ownerDocument||t,t,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null),n=e.nextNode();n;)n.data=Xt(n.data),n=e.nextNode();var o=null===(r=t.querySelectorAll)||void 0===r?void 0:r.call(t,"template");o&&wr(o,(t=>{er(t.content)&&tr(t.content)}))},rr=function(t){var r=x?x(t):null;return"string"==typeof r&&"form"===Nt(r)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==y(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==w(t)||t.childNodes!==m(t))},er=function(t){if(!w||"object"!=typeof t||null===t)return!1;try{return 11===w(t)}catch(t){return!1}},nr=function(t){if(!w||"object"!=typeof t||null===t)return!1;try{return"number"==typeof w(t)}catch(t){return!1}};function or(t,r,n){0!==t.length&&wr(t,(t=>{t.call(e,r,n,Pt)}))}var ir=function(t,r){if(or(z.beforeSanitizeElements,t,null),t!==r&&null===g(t))return!0;if(rr(t))return Ut(t),!0;var n=Nt(x?x(t):t.nodeName);if(or(z.uponSanitizeElement,t,{tagName:n,allowedTags:V}),t!==r&&null===g(t))return!0;if(function(t,r){return!!(ot&&t.hasChildNodes()&&!nr(t.firstElementChild)&&Rr(fe,t.textContent)&&Rr(fe,t.innerHTML))||!(!ot||t.namespaceURI!==At||"style"!==r||!nr(t.firstElementChild))||7===t.nodeType||!(!ot||8!==t.nodeType||!Rr(de,t.data))}(t,n))return Ut(t),!0;if(G[n]||!(J.tagCheck instanceof Function&&J.tagCheck(n))&&!V[n]){var o=function(t,r){if(!G[r]&&sr(r)){if(Y.tagNameCheck instanceof RegExp&&Rr(Y.tagNameCheck,r))return!1;if(Y.tagNameCheck instanceof Function&&Y.tagNameCheck(r))return!1}if(mt&&!yt[r]){var e=g(t),n=m(t);if(n&&e)for(var o=n.length-1;o>=0;--o){var i=gt?n[o]:d(n[o],!0);e.insertBefore(i,v(t))}}return Ut(t),!0}(t,n);return!1===o&&or(z.afterSanitizeElements,t,null),o}if(1===(w?w(t):t.nodeType)&&!function(t){var r=g(t);r&&r.tagName||(r={namespaceURI:qt,tagName:"template"});var e=Sr(t.tagName),n=Sr(r.tagName);return!!jt[t.namespaceURI]&&(t.namespaceURI===St?function(t,r,e){return r.namespaceURI===At?"svg"===t:r.namespaceURI===Ct?"svg"===t&&("annotation-xml"===e||It[e]):Boolean(Ht[t])}(e,r,n):t.namespaceURI===Ct?function(t,r,e){return r.namespaceURI===At?"math"===t:r.namespaceURI===St?"math"===t&&Ot[e]:Boolean(Vt[t])}(e,r,n):t.namespaceURI===At?function(t,r,e){return!(r.namespaceURI===St&&!Ot[e])&&!(r.namespaceURI===Ct&&!It[e])&&!Vt[t]&&(Dt[t]||!Ht[t])}(e,r,n):!("application/xhtml+xml"!==$t||!jt[t.namespaceURI]))}(t))return Ut(t),!0;if(("noscript"===n||"noembed"===n||"noframes"===n)&&Rr(pe,t.innerHTML))return Ut(t),!0;if(nt&&3===t.nodeType){var i=Xt(t.textContent);t.textContent!==i&&(kr(e.removed,{element:t.cloneNode()}),t.textContent=i)}return or(z.afterSanitizeElements,t,null),!1},lr=function(t,r,e){if(K[r])return!1;if(ot&&"patchsrc"===r)return!1;if(ot&&"for"===r&&"label"!==t&&"output"!==t)return!1;if(dt&&("id"===r||"name"===r)&&(e in o||e in Zt))return!1;var n=Q[r]||J.attributeCheck instanceof Function&&J.attributeCheck(r,t);if(tt&&Rr(N,r));else if(X&&Rr(P,r));else if(n){if(kt[r]);else if(Rr(H,Mr(e,B,"")));else if("src"!==r&&"xlink:href"!==r&&"href"!==r||"script"===t||0!==jr(e,"data:")||!xt[t])if(rt&&!Rr(Z,Mr(e,B,"")));else if(e)return!1}else if(!(sr(t)&&(Y.tagNameCheck instanceof RegExp&&Rr(Y.tagNameCheck,t)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(t))&&(Y.attributeNameCheck instanceof RegExp&&Rr(Y.attributeNameCheck,r)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(r,t))||"is"===r&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&Rr(Y.tagNameCheck,e)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(e))))return!1;return!0},ar=Zr({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),sr=function(t){return!ar[Sr(t)]&&Rr(F,t)},cr=function(t,r,e,o){if(n&&"object"==typeof h&&"function"==typeof h.getAttributeType&&!e)switch(h.getAttributeType(t,r)){case"TrustedHTML":return q(o);case"TrustedScriptURL":return function(t){A(),S++;try{return n.createScriptURL(t)}finally{S--}}(o)}return o},hr=function(t,r,n,o){try{n?t.setAttributeNS(n,r,o):t.setAttribute(r,o),rr(t)?Ut(t):_r(e.removed)}catch(e){Wt(r,t)}},fr=function(t){or(z.beforeSanitizeAttributes,t,null);var r=t.attributes;if(r&&!rr(t)){for(var e={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Q,forceKeepAttr:void 0},n=r.length,o=Nt(t.nodeName);n--;){var i=r[n],l=i.name,a=i.namespaceURI,u=i.value,s=Nt(l),c=u,h="value"===l?c:Lr(c);e.attrName=s,e.attrValue=h,e.keepAttr=!0,e.forceKeepAttr=void 0,or(z.uponSanitizeAttribute,t,e),h=e.attrValue,!pt||"id"!==s&&"name"!==s||0===jr(h,vt)||(Wt(l,t),h=vt+h),ot&&Rr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,h)||"attributename"===s&&qr(h,"href")?Wt(l,t):e.forceKeepAttr||(!e.keepAttr||!et&&Rr(ve,h)?Wt(l,t):(nt&&(h=Xt(h)),lr(o,s,h)?(h=cr(o,s,a,h))!==c&&hr(t,l,a,h):Wt(l,t)))}or(z.afterSanitizeAttributes,t,null)}},mr=function(t){var r=null,e=Jt(t);for(or(z.beforeSanitizeShadowDOM,t,null);r=e.nextNode();)if(or(z.uponSanitizeShadowNode,r,null),ir(r,t),fr(r),er(r.content)&&mr(r.content),1===(w?w(r):r.nodeType)){var n=b(r);er(n)&&(gr(n),mr(n))}or(z.afterSanitizeShadowDOM,t,null)},gr=function(t){for(var r=[{node:t,shadow:null}];r.length>0;){var e=r.pop();if(e.shadow)mr(e.shadow);else{var n=e.node,o=1===(w?w(n):n.nodeType),i=m(n);if(i)for(var l=i.length-1;l>=0;--l)r.push({node:i[l],shadow:null});if(o){var a=x?x(n):null;if("string"==typeof a&&"template"===Nt(a)){var u=n.content;er(u)&&r.push({node:u,shadow:null})}}if(o){var s=b(n);er(s)&&r.push({node:null,shadow:s},{node:s,shadow:null})}}}};return e.sanitize=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,l=null,a=null,u=null;if((Mt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!nr(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return Er(t);case"boolean":return Ir(t);case"bigint":return zr?zr(t):"0";case"symbol":return Or?Or(t):"Symbol()";case"undefined":default:return $r(t);case"function":case"object":if(null===t)return $r(t);var r=t,e=Hr(r,"toString");if("function"==typeof e){var n=e(r);return"string"==typeof n?n:$r(n)}return $r(t)}}(t)))throw Nr("dirty is not a string, aborting");if(!e.isSupported)return t;lt?(V=at,Q=ut):Ft(r),(z.uponSanitizeElement.length>0||z.uponSanitizeAttribute.length>0)&&(V=Fr(V)),z.uponSanitizeAttribute.length>0&&(Q=Fr(Q)),e.removed=[];var s=gt&&"string"!=typeof t&&nr(t);if(s){!function(t){if(ot)for(var r=[t];r.length>0;){var e=r.pop(),n=w?w(e):e.nodeType;if(7===n||8===n&&Rr(de,e.data))try{p(e)}catch(t){}else{if(1===n){var o=e,i=Nt(x?x(e):e.nodeName);try{o.hasAttribute&&o.hasAttribute("patchsrc")&&o.removeAttribute("patchsrc"),o.hasAttribute&&o.hasAttribute("for")&&"label"!==i&&"output"!==i&&o.removeAttribute("for")}catch(t){}}var l=m(e);if(l)for(var a=l.length-1;a>=0;--a)r.push(l[a])}}}(t);var c=x?x(t):t.nodeName;if("string"==typeof c){var h=Nt(c);if(!V[h]||G[h])throw Qt(t),Nr("root node is forbidden and cannot be sanitized in-place")}if(rr(t))throw Qt(t),Nr("root node is clobbered and cannot be sanitized in-place");try{gr(t)}catch(r){throw Qt(t),r}}else if(nr(t))1===(l=(o=Kt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===l.nodeName||"HTML"===l.nodeName?o=l:o.appendChild(l),gr(l);else{if(!ct&&!nt&&!it&&-1===t.indexOf("<"))return n&&ft?q(t):t;if(!(o=Kt(t)))return ct?null:ft?T:""}o&&st&&Ut(o.firstChild);var f=s?t:o,d=Jt(f);try{for(;a=d.nextNode();)ir(a,f),fr(a),er(a.content)&&mr(a.content)}catch(r){throw s&&(Qt(t),wr(e.removed,(t=>{t.element&&Gt(t.element)}))),r}if(s)return wr(e.removed,(t=>{t.element&&Gt(t.element)})),nt&&tr(t),t;if(ct){if(nt&&tr(o),ht)for(u=L.call(o.ownerDocument);o.firstChild;)u.appendChild(o.firstChild);else u=o;return(Q.shadowroot||Q.shadowrootmode)&&(u=I.call(i,u,!0)),u}var v=it?o.outerHTML:o.innerHTML;return it&&V["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&Rr(ce,o.ownerDocument.doctype.name)&&(v="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+v),nt&&(v=Xt(v)),n&&ft?q(v):v},e.setConfig=function(){Ft(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),lt=!0,at=V,ut=Q},e.clearConfig=function(){Pt=null,lt=!1,at=null,ut=null,n=k,T=""},e.isValidAttribute=function(t,r,e){Pt||Ft({});var n=Nt(t),o=Nt(r);return lr(n,o,e)},e.addHook=function(t,r){"function"==typeof r&&Dr(z,t)&&kr(z[t],r)},e.removeHook=function(t,r){if(Dr(z,t)){if(void 0!==r){var e=xr(z[t],r);return-1===e?void 0:Tr(z[t],e,1)[0]}return _r(z[t])}},e.removeHooks=function(t){Dr(z,t)&&(z[t]=[])},e.removeAllHooks=function(){z={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},e}();function ye(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 we(t,r){var e=t.parentNode;return e&&e.host&&11===e.nodeType?e.host:e===r?null:e}var xe,_e,ke=r,Te=(void 0===xe&&(xe=t=>t()),kt("[Element Inference]",xe,(void 0===_e&&(_e=console),{log:_e.log.bind(_e),warn:_e.warn.bind(_e),error:_e.error.bind(_e),debug:_e.debug.bind(_e)})));function Ce(t,r){try{var e=r.get(t);if(!bt(e))return e;if(t.checkVisibility){var n=t.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0});return r.set(t,n),n}var o=ke.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(bt(l)){var a=ke.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 Se(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*Ae(t,r,e){var n;try{n=function(t,r,e){return void 0===r&&(r=document),void 0===e&&(e=null),function(t,r,e,n){return void 0===n&&(n=null),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>i&&(n=t.substring(i,u-e[0].length)),3>a[a.length-1]){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]&&(2>l.length||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?ye(t,",").reduce(((t,r)=>{var o=ye(r.replace(/^\s+/g,"").replace(/\s*([>+~]+)\s*/g,"$1")," ").filter((t=>!!t)).map((t=>ye(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;t.length>r;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&&(h=i).nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&h.nodeType!==Node.DOCUMENT_NODE;){var a=!0;if(1===t[o].length)a=i.matches(t[o]);else{var u=[].concat(t[o]).reverse(),s=i;for(var c of u){if(!s||!s.matches(c)){a=!1;break}s=we(s,e)}}if(a&&0===o){l=!0;break}a&&o--,i=we(i,e)}var h;return l}}(o,i,e);return t.concat(l.filter(a))}),[]):e.querySelectorAll(t)}(t,0,r,e)}(t)}catch(t){return}for(var o of n){var i=o;r&&!Se(i,r)||Ce(i,e)&&(yield i)}}function qe(t,r){var e=0;for(var n of t){if(e===r)return n;e++}return null}function Me(t){try{var r=JSON.parse(t.autoData);if(!mt(null==r?void 0:r.textGroups)||!mt(null==r?void 0:r.notextGroups))return Te.error("Invalid autoData structure:",r),null;var e=t.text,n=t.precision,o=void 0===n?1:n,i=null!=e&&!t.excludeText,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;a>s;s++){var c=l[s],h=new Map,f=null,d=0;for(var p of c.cssSelectors){var v,m=p.offset,g=qe(Ae(p.css,i?e:null,u),m);if(g){var b=(null!==(v=h.get(g))&&void 0!==v?v: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 Te.error("Error finding element:",t),null}}var je=function(t,e){var n=(void 0===e?{}:e).debugEnabled,o={k(e){if(r&&(r.POSTHOG_DEBUG||n)&&!bt(r.console)&&r.console){for(var o=("__rrweb_original__"in r.console[e]?r.console[e].__rrweb_original__:r.console[e]),i=arguments.length,l=new Array(i>1?i-1:0),a=1;i>a;a++)l[a-1]=arguments[a];o(t,...l)}},debug(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.k("debug",...r)},info(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.k("log",...r)},warn(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.k("warn",...r)},error(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.k("error",...r)},critical(){for(var r=arguments.length,e=new Array(r),n=0;r>n;n++)e[n]=arguments[n];console.error(t,...e)},uninitializedWarning(t){o.error("You must initialize PostHog before calling "+t)},createLogger:(r,e)=>je(t+" "+r,e)};return o},Le=je("[PostHog.js]"),Ee=Le.createLogger,Ie=Ee("[Stylesheet Loader]");function ze(t,r,e,n){var o=null!=n?n:{},i=o.capture,l=o.passive;null==t||t.addEventListener(r,e,{capture:void 0!==i&&i,passive:void 0===l||l})}Ee("[Surveys]");var Oe=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}},De={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=>Oe(r,t))))),not_regex:(t,r)=>r.every((r=>t.every((t=>!Oe(r,t))))),icontains:(t,r)=>r.map($e).some((r=>t.map($e).some((t=>r.includes(t))))),not_icontains:(t,r)=>r.map($e).every((r=>t.map($e).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)))}))},$e=t=>t.toLowerCase();function Re(t,r){return!t||Object.entries(t).every((t=>{var e=t[1],n=null==r?void 0:r[t[0]];if(bt(n)||wt(n))return!1;var o=[String(n)],i=De[e.operator];return!!i&&i(e.values,o)}))}Math.trunc||(Math.trunc=function(t){return 0>t?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return _t(t)&&isFinite(t)&&Math.floor(t)===t}),r&&!bt(r.crypto)&&crypto;var Ne,Pe,Ze,Be,Fe=null,He={P(){if(!wt(Fe))return Fe;var t=!0;if(bt(r))t=!1;else try{var e="__mplssupport__";He.A(e,"xyz"),'"xyz"'!==He.q(e)&&(t=!1),He.F(e)}catch(r){t=!1}return t||Le.error("localStorage unsupported; falling back to cookie store"),Fe=t,t},j(t){Le.error("localStorage error: "+t)},q(t){try{return null==r?void 0:r.localStorage.getItem(t)}catch(t){He.j(t)}return null},H(t){try{return JSON.parse(He.q(t))||{}}catch(t){}return null},A(t,e){try{return null==r||r.localStorage.setItem(t,JSON.stringify(e)),!0}catch(t){He.j(t)}return!1},F(t){try{null==r||r.localStorage.removeItem(t)}catch(t){He.j(t)}}},Ve=null,Ue={P(){if(!wt(Ve))return Ve;if(Ve=!0,bt(r))Ve=!1;else try{var t="__support__";Ue.A(t,"xyz"),'"xyz"'!==Ue.q(t)&&(Ve=!1),Ue.F(t)}catch(t){Ve=!1}return Ve},j(t){Le.error("sessionStorage error: ",t)},q(t){try{return null==r?void 0:r.sessionStorage.getItem(t)}catch(t){Ue.j(t)}return null},H(t){try{return JSON.parse(Ue.q(t))||null}catch(t){}return null},A(t,e){try{return null==r||r.sessionStorage.setItem(t,JSON.stringify(e)),!0}catch(t){Ue.j(t)}return!1},F(t){try{null==r||r.sessionStorage.removeItem(t)}catch(t){Ue.j(t)}}},Qe=0,We=[],Ye=u,Ge=Ye.__b,Ke=Ye.__r,Je=Ye.diffed,Xe=Ye.__c,tn=Ye.unmount,rn=Ye.__;function en(t,r){Ye.__h&&Ye.__h(Pe,t,Qe||r),Qe=0;var e=Pe.__H||(Pe.__H={__:[],__h:[]});return t>=e.__.length&&e.__.push({}),e.__[t]}function nn(t){return Qe=1,function(t,r,e){var n=en(Ne++,2);if(n.t=t,!n.__c&&(n.__=[vn(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=Pe,!Pe.__f)){var o=function(t,r,e){if(!n.__c.__H)return!0;var o=!1,l=n.__c.props!==t;if(n.__c.__H.__.some((function(t){if(t.__N){o=!0;var r=t.__[0];t.__=t.__N,t.__N=void 0,r!==t.__[0]&&(l=!0)}})),i){var a=i.call(this,t,r,e);return o?a||l:a}return!o||l};Pe.__f=!0;var i=Pe.shouldComponentUpdate,l=Pe.componentWillUpdate;Pe.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)},Pe.shouldComponentUpdate=o}return n.__N||n.__}(vn,t)}function on(t,r){var e=en(Ne++,3);!Ye.__s&&pn(e.__H,r)&&(e.__=t,e.u=r,Pe.__H.__h.push(e))}function ln(t,r){var e=en(Ne++,4);!Ye.__s&&pn(e.__H,r)&&(e.__=t,e.u=r,Pe.__h.push(e))}function an(t){return Qe=5,un((function(){return{current:t}}),[])}function un(t,r){var e=en(Ne++,7);return pn(e.__H,r)&&(e.__=t(),e.__H=r,e.__h=t),e.__}function sn(){for(var t;t=We.shift();){var r=t.__H;if(t.__P&&r)try{r.__h.some(fn),r.__h.some(dn),r.__h=[]}catch(e){r.__h=[],Ye.__e(e,t.__v)}}}Ye.__b=function(t){Pe=null,Ge&&Ge(t)},Ye.__=function(t,r){t&&r.__k&&r.__k.__m&&(t.__m=r.__k.__m),rn&&rn(t,r)},Ye.__r=function(t){Ke&&Ke(t),Ne=0;var r=(Pe=t.__c).__H;r&&(Ze===Pe?(r.__h=[],Pe.__h=[],r.__.some((function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0}))):(r.__h.length&&sn(),Ne=0)),Ze=Pe},Ye.diffed=function(t){Je&&Je(t);var r=t.__c;r&&r.__H&&(r.__H.__h.length&&(1!==We.push(r)&&Be===Ye.requestAnimationFrame||((Be=Ye.requestAnimationFrame)||hn)(sn)),r.__H.__.some((function(t){t.u&&(t.__H=t.u,t.u=void 0)}))),Ze=Pe=null},Ye.__c=function(t,r){r.some((function(t){try{t.__h.some(fn),t.__h=t.__h.filter((function(t){return!t.__||dn(t)}))}catch(e){r.some((function(t){t.__h&&(t.__h=[])})),r=[],Ye.__e(e,t.__v)}})),Xe&&Xe(t,r)},Ye.unmount=function(t){tn&&tn(t);var r,e=t.__c;e&&e.__H&&(e.__H.__.some((function(t){try{fn(t)}catch(t){r=t}})),e.__H=void 0,r&&Ye.__e(r,e.__v))};var cn="function"==typeof requestAnimationFrame;function hn(t){var r,e=function(){clearTimeout(n),cn&&cancelAnimationFrame(r),setTimeout(t)},n=setTimeout(e,35);cn&&(r=requestAnimationFrame(e))}function fn(t){var r=Pe,e=t.__c;"function"==typeof e&&(t.__c=void 0,e()),Pe=r}function dn(t){var r=Pe;t.__c=t.__(),Pe=r}function pn(t,r){return!t||t.length!==r.length||r.some((function(r,e){return r!==t[e]}))}function vn(t,r){return"function"==typeof r?r(t):r}var mn="#020617",gn={backgroundColor:"#eeeded"};function bn(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 yn(t){var r;void 0===t&&(t=gn.backgroundColor),"#"===t[0]&&(r=bn(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=bn(e)),!r)return mn;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?mn:"white"}return mn}!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,I(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"+x++,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(){},onPreviewBack(){},surveySubmissionId:"",properties:void 0,surveyLanguage:null});var wn="ph_product_tour_shown_",xn="ph_product_tour_completed_",_n="ph_product_tour_dismissed_",kn="ph_active_product_tour",Tn="ph_last_seen_tour_date_",Cn=Ee("[Product Tours]"),Sn=o,An=r;function qn(t){var r=((t,r,e)=>{var n=t.createElement("style");n.innerText=r;var o=(t=>{var r;return gt(t)?t:null==t||null==(r=t.config)?void 0:r.prepare_external_dependency_stylesheet})(e);return o&&(n=o(n)),n||(Ie.error("prepare_external_dependency_stylesheet returned null"),null)})(Sn,':host{--ph-tour-font-family:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI","Roboto",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ph-tour-background-color:#fff;--ph-tour-text-color:#1d1f27;--ph-tour-text-secondary-color:#6b7280;--ph-tour-button-color:#1d1f27;--ph-tour-button-text-color:#fff;--ph-tour-button-secondary-color:transparent;--ph-tour-button-secondary-text-color:#1d1f27;--ph-tour-border-color:#e5e7eb;--ph-tour-border-radius:8px;--ph-tour-button-border-radius:6px;--ph-tour-box-shadow:0 4px 12px rgba(0,0,0,.15);--ph-tour-max-width:320px;--ph-tour-padding:16px;--ph-tour-z-index:2147483646;--ph-tour-overlay-color:rgba(0,0,0,.5);--ph-tour-spotlight-padding:8px;--ph-tour-spotlight-border-radius:4px;--ph-tour-arrow-size:8px}.ph-tour-container *{box-sizing:border-box;font-family:var(--ph-tour-font-family);margin:0;padding:0}.ph-tour-click-overlay{bottom:0;left:0;pointer-events:auto;position:fixed;right:0;top:0;z-index:var(--ph-tour-z-index)}.ph-tour-spotlight{border-radius:var(--ph-tour-spotlight-border-radius);box-shadow:0 0 0 9999px var(--ph-tour-overlay-color)}.ph-tour-modal-overlay,.ph-tour-spotlight{pointer-events:none;position:fixed;z-index:var(--ph-tour-z-index)}.ph-tour-modal-overlay{background:var(--ph-tour-overlay-color);bottom:0;left:0;right:0;top:0}.ph-tour-tooltip{background:var(--ph-tour-background-color);border:1px solid var(--ph-tour-border-color);border-radius:var(--ph-tour-border-radius);max-width:min(var(--ph-tour-max-width),calc(100vw - 16px));min-width:min(280px,calc(100vw - 16px));padding:var(--ph-tour-padding);padding-top:calc(var(--ph-tour-padding) + 8px);pointer-events:auto;position:fixed;z-index:calc(var(--ph-tour-z-index) + 1)}.ph-tour-tooltip,.ph-tour-tooltip--modal{box-shadow:var(--ph-tour-box-shadow)}.ph-tour-arrow{--ph-tour-arrow-offset:0px;border:var(--ph-tour-arrow-size) solid transparent;height:0;position:absolute;width:0}.ph-tour-arrow--top{border-bottom-color:var(--ph-tour-background-color);bottom:100%}.ph-tour-arrow--bottom,.ph-tour-arrow--top{left:calc(50% + var(--ph-tour-arrow-offset));transform:translateX(-50%)}.ph-tour-arrow--bottom{border-top-color:var(--ph-tour-background-color);top:100%}.ph-tour-arrow--left{border-right-color:var(--ph-tour-background-color);right:100%}.ph-tour-arrow--left,.ph-tour-arrow--right{top:calc(50% + var(--ph-tour-arrow-offset));transform:translateY(-50%)}.ph-tour-arrow--right{border-left-color:var(--ph-tour-background-color);left:100%}.ph-tour-content{color:var(--ph-tour-text-color);font-size:14px;line-height:1.5;margin-bottom:16px;padding-right:24px}.ph-tour-content h1,.ph-tour-content h2{font-weight:600;margin-bottom:8px}.ph-tour-content h1{font-size:18px}.ph-tour-content h2{font-size:16px}.ph-tour-content p{margin-bottom:8px}.ph-tour-content p:last-child{margin-bottom:0}.ph-tour-content strong{font-weight:600}.ph-tour-content em{font-style:italic}.ph-tour-content ol,.ph-tour-content ul{margin-bottom:8px;margin-left:20px}.ph-tour-content h3{font-size:14px;font-weight:600;margin-bottom:8px}.ph-tour-content .ph-tour-link,.ph-tour-content a{color:inherit;text-decoration:underline}.ph-tour-content a:hover{opacity:.8}.ph-tour-content code{background:rgba(0,0,0,.06);border-radius:4px;font-size:.875em;padding:2px 6px}.ph-tour-content code,.ph-tour-content pre{font-family:SF Mono,Monaco,Consolas,monospace}.ph-tour-content pre{background:rgba(0,0,0,.04);border-radius:6px;font-size:13px;line-height:1.5;margin-bottom:8px;overflow-x:auto;padding:12px}.ph-tour-content pre code{background:transparent;border-radius:0;font-size:inherit;padding:0}.ph-tour-content code *,.ph-tour-content pre *{font-family:inherit}.ph-tour-content .hljs-comment,.ph-tour-content .hljs-quote{color:#6a737d;font-style:italic}.ph-tour-content .hljs-keyword,.ph-tour-content .hljs-selector-tag{color:#d73a49}.ph-tour-content .hljs-doctag,.ph-tour-content .hljs-regexp,.ph-tour-content .hljs-string{color:#032f62}.ph-tour-content .hljs-literal,.ph-tour-content .hljs-number,.ph-tour-content .hljs-template-variable,.ph-tour-content .hljs-variable{color:#005cc5}.ph-tour-content .hljs-section,.ph-tour-content .hljs-selector-class,.ph-tour-content .hljs-selector-id,.ph-tour-content .hljs-title,.ph-tour-content .hljs-title.function_{color:#6f42c1}.ph-tour-content .hljs-addition,.ph-tour-content .hljs-attr,.ph-tour-content .hljs-attribute,.ph-tour-content .hljs-built_in,.ph-tour-content .hljs-bullet,.ph-tour-content .hljs-name,.ph-tour-content .hljs-symbol{color:#22863a}.ph-tour-content .hljs-deletion,.ph-tour-content .hljs-subst{color:#b31d28}.ph-tour-content .hljs-meta{color:#032f62}.ph-tour-content .hljs-emphasis{font-style:italic}.ph-tour-content .hljs-strong{font-weight:700}.ph-tour-content .ph-tour-image,.ph-tour-content img{border-radius:6px;display:block;height:auto;margin:8px 0;max-width:100%}.ph-tour-content .ph-tour-embed{margin:8px 0}.ph-tour-content .ph-tour-embed-container{background:#000;border-radius:6px;overflow:hidden;padding-bottom:56.25%;position:relative;width:100%}.ph-tour-content .ph-tour-embed-container iframe{border:none;height:100%;left:0;position:absolute;top:0;width:100%}.ph-tour-content blockquote{border-left:3px solid var(--ph-tour-border-color);color:var(--ph-tour-text-secondary-color);font-style:italic;margin:8px 0;padding-left:12px}.ph-tour-footer{align-items:center;display:flex;gap:12px;justify-content:space-between}.ph-tour-progress{color:var(--ph-tour-text-secondary-color);font-size:12px}.ph-tour-buttons{display:flex;gap:8px;margin-left:auto}.ph-tour-button{align-items:center;border:none;border-radius:var(--ph-tour-button-border-radius);cursor:pointer;display:inline-flex;font-size:14px;font-weight:500;justify-content:center;padding:8px 16px;text-decoration:none;transition:opacity .15s ease,transform .1s ease}.ph-tour-button:hover{opacity:.9}.ph-tour-button:active{transform:scale(.98)}.ph-tour-button--primary{background:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}.ph-tour-button--secondary{background:var(--ph-tour-button-secondary-color);border:1px solid var(--ph-tour-border-color);color:var(--ph-tour-button-secondary-text-color)}.ph-tour-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;font-size:18px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}.ph-tour-branding{align-items:center;border-top:1px solid var(--ph-tour-border-color);color:var(--ph-tour-branding-text-color,var(--ph-tour-text-secondary-color));display:flex;font-size:11px;gap:6px;justify-content:center;margin-top:12px;padding-top:12px;text-decoration:none}.ph-tour-branding:hover{color:var(--ph-tour-branding-text-color,var(--ph-tour-text-color))}.ph-tour-branding svg{height:14px;width:auto}.ph-tour-hidden{display:none!important}.ph-tour-survey-step{min-width:min(300px,calc(100vw - 16px))}.ph-tour-survey-question{color:var(--ph-tour-text-color);font-size:15px;font-weight:500;line-height:1.4;margin-bottom:16px;padding-right:24px}.ph-tour-survey-input-container{display:flex;flex-direction:column;gap:12px}.ph-tour-survey-textarea{background:#fff;border:1px solid var(--ph-tour-border-color);border-radius:6px;box-sizing:border-box;color:var(--ph-tour-text-color);font-family:var(--ph-tour-font-family);font-size:14px;min-height:80px;padding:10px 12px;resize:vertical;width:100%}.ph-tour-survey-textarea:focus{border-color:var(--ph-tour-button-color);box-shadow:0 0 0 2px rgba(0,0,0,.05);outline:none}.ph-tour-survey-textarea::placeholder{color:var(--ph-tour-text-secondary-color)}.ph-tour-survey-submit{align-self:flex-end}.ph-tour-survey-rating-container{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}.ph-tour-survey-rating-labels{color:var(--ph-tour-text-secondary-color);display:flex;font-size:11px;justify-content:space-between}.ph-tour-survey-rating-emoji{display:flex;gap:8px;justify-content:center}.ph-tour-survey-emoji-button{align-items:center;background:var(--ph-tour-background-color);border:2px solid var(--ph-tour-border-color);border-radius:8px;cursor:pointer;display:flex;height:44px;justify-content:center;padding:0;transition:all .15s ease;width:44px}.ph-tour-survey-emoji-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active svg{fill:var(--ph-tour-button-text-color)}.ph-tour-survey-emoji-button svg{fill:var(--ph-tour-text-color);height:28px;transition:fill .15s ease;width:28px}.ph-tour-survey-rating-numbers{display:grid;gap:6px}.ph-tour-survey-number-button{align-items:center;background:var(--ph-tour-background-color);border:1px solid var(--ph-tour-border-color);border-radius:4px;color:var(--ph-tour-text-color);cursor:pointer;display:flex;font-family:var(--ph-tour-font-family);font-size:13px;font-weight:500;justify-content:center;padding:8px 4px;transition:all .15s ease}.ph-tour-survey-number-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-number-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}@keyframes ph-tour-banner-slide-in{0%{grid-template-rows:0fr}to{grid-template-rows:1fr}}.ph-tour-banner-wrapper{animation:ph-tour-banner-slide-in var(--ph-tour-banner-animation-duration,.3s) ease-out forwards;display:grid}.ph-tour-banner-slide{min-height:0;overflow:hidden}.ph-tour-banner{align-items:center;background:var(--ph-tour-background-color);border-bottom:1px solid var(--ph-tour-border-color);box-shadow:var(--ph-tour-box-shadow);display:flex;font-family:var(--ph-tour-font-family);gap:16px;justify-content:center;padding:12px 16px}a.ph-tour-banner{color:inherit;text-decoration:none}:host:has(.ph-tour-banner--sticky){position:sticky;top:0;z-index:var(--ph-tour-z-index)}.ph-tour-banner-content{color:var(--ph-tour-text-color);flex:1;font-size:14px;line-height:1.5;min-width:0;text-align:center}.ph-tour-banner-content p{margin:0}.ph-tour-banner-content strong{font-weight:600}.ph-tour-banner-content em{font-style:italic}.ph-tour-banner-content a{color:inherit;text-decoration:underline}.ph-tour-banner-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;flex-shrink:0;height:24px;justify-content:center;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-banner-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}',t);return null==r||r.setAttribute("data-ph-product-tour-style","true"),r}function Mn(t){return t.useManualSelector?!!t.selector:!!t.inferenceData}function jn(t){var r;if(null!==(r=t.useManualSelector)&&void 0!==r&&r)return t.selector?function(t){try{var r=Sn.querySelectorAll(t);if(0===r.length)return{element:null,error:"not_found",matchCount:0};var e=r[0];return function(t){var r=An.getComputedStyle(t);if("none"===r.display||"hidden"===r.visibility||"0"===r.opacity)return!1;var e=t.getBoundingClientRect();return 0!==e.width&&0!==e.height}(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}}}(t.selector):{element:null,error:"not_found",matchCount:0};if(!t.inferenceData)return{element:null,error:"not_found",matchCount:0};var e=Me(t.inferenceData);return e?{element:e,error:null,matchCount:1}:{element:null,error:"not_found",matchCount:0}}var Ln=12,En=8;function In(t,r,e){var n=Math.max(En+r/2,Math.min(e-En-r/2,t));return{clamped:n,offset:t-n}}function zn(t,r){var e,n,o=l({},tt,r),i=t.style;i.setProperty("--ph-tour-background-color",o.backgroundColor),i.setProperty("--ph-tour-text-color",o.textColor),i.setProperty("--ph-tour-button-color",o.buttonColor),i.setProperty("--ph-tour-border-radius",o.borderRadius+"px"),i.setProperty("--ph-tour-button-border-radius",o.buttonBorderRadius+"px"),i.setProperty("--ph-tour-border-color",o.borderColor),i.setProperty("--ph-tour-font-family",function(t){if("inherit"===t)return"inherit";var 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}(o.fontFamily)),i.setProperty("--ph-tour-text-secondary-color",(.6,(n=bn(e=o.textColor).match(/^rgb\((\d+),(\d+),(\d+)\)$/))?"rgba("+n[1]+", "+n[2]+", "+n[3]+", 0.6)":e)),i.setProperty("--ph-tour-branding-text-color",yn(o.backgroundColor)),i.setProperty("--ph-tour-button-text-color",yn(o.buttonColor)),i.setProperty("--ph-tour-box-shadow",o.boxShadow),i.setProperty("--ph-tour-overlay-color",o.showOverlay?"rgba(0, 0, 0, 0.5)":"transparent"),i.setProperty("--ph-tour-z-index",String(o.zIndex)),i.setProperty("--ph-tour-button-secondary-color","transparent"),i.setProperty("--ph-tour-button-secondary-text-color",o.textColor),i.setProperty("--ph-tour-max-width","320px"),i.setProperty("--ph-tour-padding","16px")}function On(t){var r;if(!t)return"";if("string"==typeof t)return $n(t);if("text"===t.type){var e=$n(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(On).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 Dn(t){return t.endsWith("/")?t.slice(0,-1):t}function $n(t){var r=Sn.createElement("div");return r.textContent=t,r.innerHTML}function Rn(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 Nn(t){return t.contentHtml?be.sanitize(t.contentHtml,{ADD_TAGS:["iframe"],ADD_ATTR:["allowfullscreen","frameborder","referrerpolicy"]}):On(t.content)}var Pn=0;function Zn(t,r,e,n,o,i){r||(r={});var l,a,s=r;if("ref"in s)for(a in s={},r)"ref"==a?l=r[a]:s[a]=r[a];var c={type:t,props:s,key:e,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Pn,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof t&&(l=t.defaultProps))for(a in l)void 0===s[a]&&(s[a]=l[a]);return u.vnode&&u.vnode(c),c}var Bn=Zn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Zn("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"})}),Fn=Zn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Zn("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"})}),Hn=Zn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Zn("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"})}),Vn=Zn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Zn("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"})}),Un=Zn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Zn("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"})});Zn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 0 24 24",width:"48",children:Zn("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"})}),Zn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 0 24 24",width:"48",children:Zn("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 Qn=function(t){var r={}.fill,e=void 0===r?"currentColor":r;return Zn("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:e,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"close-survey-title-adam",children:[Zn("title",{id:"close-survey-title",className:"adam-testing",children:"Close survey"}),Zn("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.164752 0.164752C0.384422 -0.0549175 0.740578 -0.0549175 0.960248 0.164752L6 5.20451L11.0398 0.164752C11.2594 -0.0549175 11.6156 -0.0549175 11.8352 0.164752C12.0549 0.384422 12.0549 0.740578 11.8352 0.960248L6.79549 6L11.8352 11.0398C12.0549 11.2594 12.0549 11.6156 11.8352 11.8352C11.6156 12.0549 11.2594 12.0549 11.0398 11.8352L6 6.79549L0.960248 11.8352C0.740578 12.0549 0.384422 12.0549 0.164752 11.8352C-0.0549175 11.6156 -0.0549175 11.2594 0.164752 11.0398L5.20451 6L0.164752 0.960248C-0.0549175 0.740578 -0.0549175 0.384422 0.164752 0.164752Z",fill:e})]})},Wn=Zn("svg",{width:"77",height:"14",viewBox:"0 0 77 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Zn("g",{"clip-path":"url(#clip0_2415_6911)",children:[Zn("mask",{id:"mask0_2415_6911",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"77",height:"14",children:Zn("path",{d:"M0.5 0H76.5V14H0.5V0Z",fill:"white"})}),Zn("g",{mask:"url(#mask0_2415_6911)",children:[Zn("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"}),Zn("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"}),Zn("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"}),Zn("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"}),Zn("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"}),Zn("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"})]})]}),Zn("defs",{children:Zn("clipPath",{id:"clip0_2415_6911",children:Zn("rect",{width:"76",height:"14",fill:"white",transform:"translate(0.5)"})})})]});function Yn(t){var r=t.button,e=t.onClick,n=t.cursorStyle,o="ph-tour-button ph-tour-button--"+t.variant;return"link"===r.action&&r.link?Zn("a",{href:r.link,target:"_blank",rel:"noopener noreferrer",class:o,onClick:()=>e(r),children:r.text}):Zn("button",{class:o,onClick:()=>e(r),style:n,children:r.text})}function Gn(t){var r,e,n,o=t.step,i=t.appearance,l=t.stepIndex,a=t.totalSteps,u=t.onNext,s=t.onPrevious,c=t.onDismiss,h=t.onButtonClick,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&&Mn(o)),m=!!o.buttons,g=!!(u||s||c||h),b=g?void 0:{cursor:"default"},y=!f&&p,w=t=>{h&&h(t)};return Zn(M,{children:[Zn("button",{class:"ph-tour-dismiss",onClick:c,"aria-label":"Close tour",style:b,children:Qn()}),Zn("div",{class:"ph-tour-content",dangerouslySetInnerHTML:{__html:Nn(o)}}),Zn("div",{class:"ph-tour-footer",children:[a>1&&Zn("span",{class:"ph-tour-progress",children:[l+1," of ",a]}),Zn("div",{class:"ph-tour-buttons",children:[v&&Zn(M,{children:[!p&&Zn("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:s,style:b,children:"Back"}),Zn("button",{class:"ph-tour-button ph-tour-button--primary",onClick:u,style:b,children:d?"Done":"Next"})]}),m&&Zn(M,{children:[(null==(e=o.buttons)?void 0:e.secondary)&&Zn(Yn,{button:o.buttons.secondary,variant:"secondary",onClick:w,cursorStyle:b}),(null==(n=o.buttons)?void 0:n.primary)&&Zn(Yn,{button:o.buttons.primary,variant:"primary",onClick:w,cursorStyle:b})]})]})]}),y&&Zn("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 ",Wn]})]})}Zn("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Zn("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 Kn=[Hn,Fn,Bn],Jn=[Vn,Hn,Fn,Bn,Un];function Xn(t){var r=t.value,e=t.onChange,n=t.onSubmit,o=t.isInteractive,i=an(null);return on((()=>{o&&setTimeout((()=>{var t;return null==(t=i.current)?void 0:t.focus()}),100)}),[o]),Zn("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 to(t){var r=t.survey,e=t.onSubmit,n=t.isInteractive,o=nn(null),i=o[0],l=o[1],a=r.scale||5,u=t=>{n&&(l(t),null==e||e(t))};if("emoji"===(r.display||"emoji"))return Zn("div",{class:"ph-tour-survey-rating-container",children:[Zn("div",{class:"ph-tour-survey-rating-emoji",children:(3===a?Kn:Jn).map(((t,r)=>{var e=r+1;return Zn("button",{type:"button",class:"ph-tour-survey-emoji-button "+(i===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)&&Zn("div",{class:"ph-tour-survey-rating-labels",children:[Zn("span",{children:r.lowerBoundLabel}),Zn("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 Zn("div",{class:"ph-tour-survey-rating-container",children:[Zn("div",{class:"ph-tour-survey-rating-numbers",style:{gridTemplateColumns:"repeat("+s.length+", minmax(0, 1fr))"},children:s.map((t=>Zn("button",{type:"button",class:"ph-tour-survey-number-button "+(i===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)&&Zn("div",{class:"ph-tour-survey-rating-labels",children:[Zn("span",{children:r.lowerBoundLabel}),Zn("span",{children:r.upperBoundLabel})]})]})}function ro(t){var r,e=t.step,n=t.appearance,o=t.stepIndex,i=t.totalSteps,l=t.onPrevious,a=t.onSubmit,u=t.onDismiss,s=nn(""),c=s[0],h=s[1],f=e.survey,d=null!==(r=null==n?void 0:n.whiteLabel)&&void 0!==r&&r,p=0===o,v="open"===(null==f?void 0:f.type),m=!!(l||a||u),g=m?void 0:{cursor:"default"},b=()=>{null==a||a(c.trim()||null)};return f?Zn(M,{children:[Zn("button",{class:"ph-tour-dismiss",onClick:u,"aria-label":"Close survey",style:g,children:Qn()}),Zn("div",{class:"ph-tour-survey-question",children:f.questionText}),v?Zn(Xn,{value:c,onChange:h,onSubmit:b,isInteractive:m}):Zn(to,{survey:f,onSubmit:a,isInteractive:m}),Zn("div",{class:"ph-tour-footer",children:[Zn("span",{class:"ph-tour-progress",children:[o+1," of ",i]}),Zn("div",{class:"ph-tour-buttons",children:[!p&&Zn("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:l,style:g,children:f.backButtonText||"Back"}),v&&Zn("button",{class:"ph-tour-button ph-tour-button--primary",onClick:b,style:g,children:f.submitButtonText||"Submit"})]})]}),!d&&Zn("a",{href:m?"https://posthog.com/product-tours":void 0,target:m?"_blank":void 0,rel:m?"noopener noreferrer":void 0,class:"ph-tour-branding",style:m?void 0:{cursor:"default",pointerEvents:"none"},children:["Survey by ",Wn]})]}):Zn("div",{})}var eo=r;function no(t){return{top:"bottom",bottom:"top",left:"right",right:"left"}[t]}function oo(t){var r,e=t.tour,n=t.step,o=t.stepIndex,i=t.totalSteps,a=t.targetElement,u=t.onNext,s=t.onPrevious,c=t.onDismiss,h=t.onSurveySubmit,f=t.onButtonClick,d=nn("entering"),p=d[0],v=d[1],m=nn(null),g=m[0],b=m[1],y=nn(null),w=y[0],x=y[1],_=nn(!1),k=_[0],T=_[1],C=nn(n),S=C[0],A=C[1],q=nn(o),M=q[0],j=q[1],L=an(null),E=an(o),I=an(!1),z=an(a),O=!Mn(S)||"survey"===S.type;ln((()=>{z.current=a}),[a]);var D=function(t,r){return Qe=8,un((function(){return t}),[])}((()=>{var t=z.current;if(t&&L.current){var r=L.current.getBoundingClientRect(),e={width:r.width,height:r.height},n=t.getBoundingClientRect();b(function(t,r){var e=An.innerWidth,n=An.innerHeight,o=r.width,i=r.height,l=t.top,a=n-t.bottom,u=t.left,s=t.top+t.height/2,c=t.left+t.width/2;if(e-t.right>=o+Ln){var h=t.right+Ln,f=In(s,i,n);return{position:"right",top:f.clamped,left:h,arrowOffset:f.offset}}if(u>=o+Ln){var d=e-t.left+Ln,p=In(s,i,n);return{position:"left",top:p.clamped,right:d,arrowOffset:p.offset}}if(l>=i+Ln&&i+Ln>a){var v=n-t.top+Ln,m=In(c,o,e);return{position:"top",bottom:v,left:m.clamped,arrowOffset:m.offset}}var g=t.bottom+Ln,b=In(c,o,e);return{position:"bottom",top:g,left:b.clamped,arrowOffset:b.offset}}(n,e)),x(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)),T(!0)}}));ln((()=>{!O&&!k&&L.current&&a&&D()}),[O,k,a,D]),on((()=>{var t=o,r=()=>{E.current===t&&(v("visible"),I.current=!1)},e=()=>{z.current&&Mn(n)&&(z.current.isConnected||(z.current=jn(n).element),z.current)?function(t,r){var e=t.getBoundingClientRect(),n=eo.innerHeight,o=eo.innerWidth,i=n/6,l=o/6;if(i>e.top||e.bottom>n-i||l>e.left||e.right>o-l){t.scrollIntoView({behavior:"smooth",block:"center"});var a=e.top,u=0,s=!1,c=()=>{if(!s){var e=t.getBoundingClientRect();if(1>Math.abs(e.top-a)){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)}else r()}(z.current,(()=>{E.current===t&&(D(),setTimeout(r,50))})):setTimeout(r,50)};if(E.current===o)return E.current=o,I.current=!0,void e();E.current=o,I.current=!0,v("exiting"),setTimeout((()=>{E.current===t&&(Mn(n)&&(b(null),x(null),T(!1)),A(n),j(o),v("entering"),e())}),150)}),[a,o,n,D]),on((()=>{if("visible"===p&&!O){var t=()=>{I.current||D()};return ze(eo,"scroll",t,{capture:!0}),ze(eo,"resize",t),()=>{null==eo||eo.removeEventListener("scroll",t,!0),null==eo||eo.removeEventListener("resize",t)}}}),[D,p,O]),on((()=>{var t=t=>{"Escape"===t.key&&c("escape_key")};return ze(eo,"keydown",t),()=>{null==eo||eo.removeEventListener("keydown",t)}}),[c]);var R,N,P="visible"===p,Z="survey"===S.type,B=O||k,F=l({},S.maxWidth&&{width:"min("+S.maxWidth+"px, calc(100vw - 16px))",maxWidth:"min("+S.maxWidth+"px, calc(100vw - 16px))"},O?l({},{top:"auto",right:"auto",bottom:"auto",left:"auto",transform:"none"},(N=function(t,r,e){switch(void 0===r&&(r=rr),r){case Qt:return{top:"0",left:"0",transform:"translate(30px, 30px)"};case Wt:return{top:"0",right:"0",transform:"translate(-30px, 30px)"};case Yt:return{top:"0",left:"50%",transform:"translate(-50%, 30px)"};case Gt:return{top:"50%",left:"0",transform:"translate(30px, -50%)"};case Kt:return{top:"50%",right:"0",transform:"translate(-30px, -50%)"};case Jt:return{top:"50%",left:"50%",transform:"translate(-50%, -50%)"};case Xt:return{left:"30px"};case tr:return{left:"50%",transform:"translateX(-50%)"};default:return{right:void 0===er&&void 0===Ut?"60px":"30px"}}}(0,null!==(R=S.modalPosition)&&void 0!==R?R:"middle_center"),"top"in N||"bottom"in N?N:l({},N,{bottom:"30px"}))):(()=>{if(!g)return{};var t="left"===g.position||"right"===g.position;return{top:bt(g.top)?"auto":g.top+"px",bottom:bt(g.bottom)?"auto":g.bottom+"px",left:bt(g.left)?"auto":g.left+"px",right:bt(g.right)?"auto":g.right+"px",transform:t?"translateY(-50%)":"translateX(-50%)"}})());return Zn("div",{class:"ph-tour-container",children:[!1!==(null==(r=e.appearance)?void 0:r.dismissOnClickOutside)&&Zn("div",{class:"ph-tour-click-overlay",onClick(t){t.stopPropagation(),c("user_clicked_outside")}}),Zn("div",{class:"ph-tour-modal-overlay",style:{opacity:O&&P?1:0,transition:"opacity 150ms ease-out",pointerEvents:"none"}}),Zn("div",{class:"ph-tour-spotlight",style:l({},P&&B&&w?w:{top:"50%",left:"50%",width:"0px",height:"0px"},{opacity:!O&&P&&B?1:0,transition:"opacity 150ms ease-out"},"click"===S.progressionTrigger&&!O&&{pointerEvents:"auto",cursor:"pointer"}),onClick:"click"!==S.progressionTrigger||O?void 0:t=>{t.stopPropagation(),z.current&&z.current.click(),u()}}),Zn("div",{ref:L,class:"ph-tour-tooltip "+(O?"ph-tour-tooltip--modal":"")+" "+(Z?"ph-tour-survey-step":""),style:l({},F,{opacity:P&&B?1:0,transition:"opacity 150ms ease-out"}),onClick(t){t.stopPropagation()},children:[!O&&g&&Zn("div",{class:"ph-tour-arrow ph-tour-arrow--"+no(g.position),style:0!==g.arrowOffset?{"--ph-tour-arrow-offset":g.arrowOffset+"px"}:void 0}),Z?Zn(ro,{step:S,appearance:e.appearance,stepIndex:M,totalSteps:i,onSubmit:h,onPrevious:s,onDismiss:()=>c("user_clicked_skip")}):Zn(Gn,{step:S,appearance:e.appearance,stepIndex:M,totalSteps:i,onNext:u,onPrevious:s,onDismiss:()=>c("user_clicked_skip"),onButtonClick:f})]})]})}function io(t){return Zn("a",{class:t.class,href:t.href,target:"_blank",rel:"noopener noreferrer",onClick:t.onClick,children:t.children})}function lo(t){var r=t.onClick;return Zn("div",{class:t.class,role:"button",tabIndex:0,onClick:r,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),r())},style:{cursor:"pointer"},children:t.children})}function ao(t){return Zn("div",{class:t.class,children:t.children})}function uo(t){return Zn("div",{class:"ph-tour-banner-wrapper",children:Zn("div",{class:"ph-tour-banner-slide",children:Zn(so,l({},t))})})}function so(t){var r,e=t.step,n=t.onDismiss,o=t.onActionClick,i=null!==(r=e.bannerConfig)&&void 0!==r?r:{behavior:"sticky"},l=i.action,a="always"!==t.displayFrequency,u=["ph-tour-banner","sticky"===i.behavior&&"ph-tour-banner--sticky","custom"===i.behavior&&"ph-tour-banner--custom"].filter(Boolean).join(" "),s=Zn(M,{children:[Zn("div",{class:"ph-tour-banner-content",dangerouslySetInnerHTML:{__html:Nn(e)}}),a&&Zn("button",{class:"ph-tour-banner-dismiss",onClick(t){t.stopPropagation(),t.preventDefault(),n()},"aria-label":"Close banner",children:Qn()})]});return"link"===(null==l?void 0:l.type)&&l.link?Zn(io,{class:u,href:l.link,onClick:o,children:s}):"trigger_tour"===(null==l?void 0:l.type)&&o?Zn(lo,{class:u,onClick:o,children:s}):Zn(ao,{class:u,children:s})}function co(t){var r,e;return!(null==(r=t.conditions)||!r.events||0>=(null==(e=t.conditions.events.values)?void 0:e.length))}function ho(t){var r,e;return!(null==(r=t.conditions)||!r.actions||0>=(null==(e=t.conditions.actions.values)?void 0:e.length))}class fo{on(t,r){return this.Ir[t]||(this.Ir[t]=[]),this.Ir[t].push(r),()=>{this.Ir[t]=this.Ir[t].filter((t=>t!==r))}}emit(t,r){for(var e of this.Ir[t]||[])e(r);for(var n of this.Ir["*"]||[])n(t,r)}constructor(){this.Ir={}}}function po(t,r,e){if(xt(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 vo{constructor(t){this.Yn=new fo,this.Xn=(t,r)=>this.ts(t,r)&&this.es(t,r)&&this.rs(t,r)&&this.ns(t,r),this.ts=(t,r)=>null==r||!r.event||(null==t?void 0:t.event)===(null==r?void 0:r.event),this._instance=t,this.ss=new Set,this.os=new Set}init(){var t,r;bt(null==(t=this._instance)?void 0:t._addCaptureHook)||(null==(r=this._instance)||r._addCaptureHook(((t,r)=>{this.on(t,r)})))}register(t){var r,e;if(!bt(null==(r=this._instance)?void 0:r._addCaptureHook)&&(t.forEach((t=>{var r,e;null==(r=this.os)||r.add(t),null==(e=t.steps)||e.forEach((t=>{var r;null==(r=this.ss)||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.ss.has(t)||this.ss.has(r.event))&&this.os&&(null==(e=this.os)?void 0:e.size)>0&&this.os.forEach((t=>{this.ls(r,t)&&this.Yn.emit("actionCaptured",t.name)}))}us(t){this.onAction("actionCaptured",(r=>t(r)))}ls(t,r){if(null==(null==r?void 0:r.steps))return!1;for(var e of r.steps)if(this.Xn(t,e))return!0;return!1}onAction(t,r){return this.Yn.on(t,r)}es(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(!po(n,r.url,r.url_matching||"contains"))return!1}return!0}rs(t,r){return!!this.hs(t,r)&&!!this.ds(t,r)&&!!this.vs(t,r)}hs(t,r){var e;if(null==r||!r.href)return!0;var n=this.cs(t);if(n.length>0)return n.some((t=>po(t.href,r.href,r.href_matching||"exact")));var o,i=(null==t||null==(e=t.properties)?void 0:e.$elements_chain)||"";return!!i&&po((o=i.match(/(?::|")href="(.*?)"/))?o[1]:"",r.href,r.href_matching||"exact")}ds(t,r){var e;if(null==r||!r.text)return!0;var n=this.cs(t);if(n.length>0)return n.some((t=>po(t.text,r.text,r.text_matching||"exact")||po(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;!xt(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=>po(t,i,l))))}vs(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}cs(t){var r;return null==(null==t||null==(r=t.properties)?void 0:r.$elements)?[]:null==t?void 0:t.properties.$elements}ns(t,r){return null==r||!r.properties||0===r.properties.length||Re(r.properties.reduce(((t,r)=>{var e=mt(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 mo{constructor(t){var r;this.fs=[],this._instance=t,this.ps=new Map,this.gs=new Map,this.ys=new Map,null==(r=this._instance)||null==r.onSessionId||r.onSessionId((t=>this.bs(t)))}_s(t){return!1}ws(){return null}xs(t){}ks(){}Ss(t,r){return!!t&&Re(t.propertyFilters,null==r?void 0:r.properties)}Cs(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}Ms(t,r,e){var n=(e===Ht?this.ps:this.gs).get(t),o=[];return this.Ts((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.Ss(i,r)}))}register(t){var r;bt(null==(r=this._instance)?void 0:r._addCaptureHook)||(this.Es(t),this.Is(t))}Is(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}));0!==r.length&&(null==this.Ps&&(this.Ps=new vo(this._instance),this.Ps.init(),this.Ps.us((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.Ps)||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.ys.get(r.name);e&&e.push(t.id),this.ys.set(r.name,e||[t.id])}})))})))}Es(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}));0===e.length&&0===n.length||(null==(r=this._instance)||r._addCaptureHook(((t,r)=>{this.onEvent(t,r)})),this.ps=this.Cs(t,Ht),this.gs=this.Cs(t,Vt))}onEvent(t,r){var e,n,o=this.Rs(),i=(null==r||null==(e=r.properties)?void 0:e.$survey_id)||(null==r||null==(n=r.properties)?void 0:n.$product_tour_id);if(i&&this.getActivatedIds().includes(i)){var l=this.Ls(t,i);if("consume"===l)return o.info("event consumed activated item, removing it",{event:t,itemId:i}),void this.Os([i]);if("persist"===l)return o.info("shown item promoted to persisted activation",{event:t,itemId:i}),this.Fs(i),void this.As([i])}if(this.gs.has(t)){var a=this.Ms(t,r,Vt);a.length>0&&(o.info("cancel event matched, cancelling items",{event:t,itemsToCancel:a.map((t=>t.id))}),this.Os(a.map((t=>t.id))),a.forEach((t=>this.Ds(t.id))))}if(this.ps.has(t)){o.info("event name matched",{event:t,eventPayload:r,items:this.ps.get(t)});var u=this.Ms(t,r,Ht);this.$s(u.map((t=>t.id)))}}onAction(t){this.ys.has(t)&&this.$s(this.ys.get(t)||[])}$s(t){var r;if(0!==t.length){var e=!(null==(r=this._instance)||null==r.get_session_id||!r.get_session_id()),n=[];for(var o of t)e&&this._s(o)?this.Fs(o)&&this.Ns(o):n.push(o);n.length>0&&(this.fs=[...new Set([...this.fs,...n])]),this.Rs().info("updating activated items",{activatedItems:this.getActivatedIds()})}}Fs(t){this.fs=this.fs.filter((r=>r!==t));var r=this.qs();return!r.includes(t)&&(this.js([...r,t]),this.Bs(),!0)}Os(t){var r=new Set(t);this.fs=this.fs.filter((t=>!r.has(t)));var e=this.Hs(),n=e.filter((t=>!r.has(t)));n.length!==e.length&&(this.js(n),0===n.length&&this.Us()),this.As(t)}zs(){var t,r=this.ws();if(!r)return{};var e=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[r];return e&&"object"==typeof e?e:{}}Ns(t){if(this.ws()){var r=this.zs();this.xs(l({},r,{[t]:Date.now()}))}}As(t){if(this.ws()){var r=this.zs(),e={},n=!1;for(var o of Object.entries(r)){var i=o[0],l=o[1];t.includes(i)?n=!0:e[i]=l}n&&((t=>{if((t=>t===Object(t)&&!mt(t))(t)){for(var r in t)if(pt.call(t,r))return!1;return!0}return!1})(e)?this.ks():this.xs(e))}}Ws(){this.ws()&&this.ks()}getActivationTimestamp(t){if(this.qs().includes(t)){var r=this.zs()[t];return _t(r)?r:void 0}}Hs(){var t,r=this.Vs();return(null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[r])||[]}qs(){var t,r,e=this.Hs();if(0===e.length)return[];var n=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[this.Zs()],o=null==(r=this._instance)||null==r.get_session_id?void 0:r.get_session_id();return o&&n===o?e:[]}Bs(){var t,r=null==(t=this._instance)||null==t.get_session_id?void 0:t.get_session_id();r&&this.Gs(r)}Us(){this.Qs()}bs(t){var r,e=null==(r=this._instance)||null==(r=r.persistence)?void 0:r.props[this.Zs()];if(e&&e!==t){var n=this.Hs(),o=this.zs();n.length>0&&(this.js([]),n.filter((t=>_t(o[t]))).forEach((t=>this.Ds(t)))),this.Us(),this.Ws()}}getActivatedIds(){return[...new Set([...this.qs(),...this.fs])].filter((t=>!this.Js(t)))}reset(){this.fs=[],this.Hs().length>0&&this.js([]),this.Us(),this.Ws()}getEventToItemsMap(){return this.ps}Ks(){return this.Ps}}var go=Ee("[Product Tour Event Receiver]");class bo extends mo{constructor(t){super(t)}Vs(){return J}Zs(){return X}Ys(){return rt}Ts(t){var r;null==(r=this._instance)||null==(r=r.productTours)||r.getProductTours(t)}Ds(t){var r;null==(r=this._instance)||null==(r=r.productTours)||r.cancelPendingTour(t)}Rs(){return go}js(t){var r;null==(r=this._instance)||null==(r=r.persistence)||r.register({[J]:t})}Gs(t){var r;null==(r=this._instance)||null==(r=r.persistence)||r.register({[X]:t})}Qs(){var t;null==(t=this._instance)||null==(t=t.persistence)||t.unregister(X)}Js(t){if(!t)return!0;var r=""+_n+t;return!(!He.q(""+xn+t)&&!He.q(r))}Ls(t){return t===this.Ys()?"consume":"ignore"}getTours(){return this.getActivatedIds()}}var yo,wo=Ee("[Product Tours]"),xo=o,_o=r,ko=new Map;function To(t){var r=new Date;return(!t.start_date||new Date(t.start_date)<=r)&&(!t.end_date||r<=new Date(t.end_date))}function Co(t,e){var o;return To(t)&&function(t,e){var n=t.conditions;if(null==n||!n.url)return!0;var o=function(t){var e,n=null==r||null==(e=r.location)?void 0:e.href;return bt(n)?void 0:function(t,r){var e,n=null==t||null==(e=t.config)?void 0:e.get_current_url;if(!gt(n))return r;try{var o=n(r);return yt(o)&&o?o:r}catch(t){return Le.error("Error in get_current_url, falling back to window.location.href",t),r}}(t,n)}(e);if(!o)return!1;o!==yo&&(ko.clear(),yo=o);var i=ko.get(t.id);if(!bt(i))return i;var l,a=n.urlMatchType||ft;return l=a===ht?Dn(o)===Dn(n.url):De[a]([n.url],[o]),ko.set(t.id,l),l}(t,e)&&function(t,e){var o,l,a;if(!t||0===t.length)return!0;if(!i)return!1;var u,s,c,h,f,d,p=(u={userAgentDataPlatform:null==n||null==(o=n.userAgentData)?void 0:o.platform,maxTouchPoints:null==n?void 0:n.maxTouchPoints,screenWidth:null==r||null==(l=r.screen)?void 0:l.width,screenHeight:null==r||null==(a=r.screen)?void 0:a.height,devicePixelRatio:null==r?void 0:r.devicePixelRatio},(d=function(t){return Bt.test(t)?Lt:Zt.test(t)?Et:Pt.test(t)?It:new RegExp(Dt,"i").test(t)?Dt:new RegExp("("+zt+"|WPDesktop)","i").test(t)?zt:/iPad/.test(t)?qt:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?Mt:Ft.test(t)?jt:/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(Ot,"i").test(t)?Ot:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(Tt).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?Ct:At:new RegExp("(pda|"+Tt+")","i").test(t)?Rt:new RegExp(St,"i").test(t)&&!new RegExp(St+" pc","i").test(t)?Nt:""}(i))===qt||d===At||"Kobo"===d||"Kindle Fire"===d||d===Nt?St:d===Lt||d===It||d===Et||d===Dt?"Console":d===Mt?"Wearable":d?Tt:"Android"===(null==u?void 0:u.userAgentDataPlatform)&&(null!==(s=null==u?void 0:u.maxTouchPoints)&&void 0!==s?s:0)>0?600>Math.min(null!==(c=null==u?void 0:u.screenWidth)&&void 0!==c?c:0,null!==(h=null==u?void 0:u.screenHeight)&&void 0!==h?h:0)/(null!==(f=null==u?void 0:u.devicePixelRatio)&&void 0!==f?f:1)?Tt:St:"Desktop");return De.icontains(t,[p])}(null==(o=t.conditions)?void 0:o.deviceTypes)}var So="ph-product-tour-container",Ao="data-ph-tour-trigger";class qo{constructor(t){var r=this;this.qc=null,this.jc=0,this.Zc=!1,this.Hc=!1,this.Vc=null,this.Uc=new Map,this.Qc=new Map,this.Yc=new Set,this.Gc=new Set,this.Kc=()=>{xo.hidden&&this.Vc?(clearInterval(this.Vc),this.Vc=null):xo.hidden||this.Vc||(this.Vc=setInterval((()=>{this.Jc()}),1e3),this.Jc())},this.nextStep=()=>{this.qc&&(this.Za("product tour step completed",{[et]:this.qc.id,[it]:this.qc.steps[this.jc].id,[lt]:this.jc}),this.qc.steps.length-1>this.jc?(this.Xc(this.jc+1),this.tf()):this.rf())},this.previousStep=()=>{this.qc&&0!==this.jc&&(this.Xc(this.jc-1),this.tf())},this.dismissTour=function(t){void 0===t&&(t="user_clicked_skip"),r.qc&&(r.Za("product tour dismissed",{[et]:r.qc.id,[it]:r.qc.steps[r.jc].id,[lt]:r.jc,$product_tour_dismiss_reason:t}),r.Zc||(He.A(""+_n+r.qc.id,!0),r._instance.capture("$set",{$set:{["$product_tour_dismissed/"+r.qc.id]:!0}})),_o.dispatchEvent(new CustomEvent("PHProductTourDismissed",{detail:{tourId:r.qc.id,reason:t}})),r.ef())},this.nf=()=>{var t;if(this.qc){var r=this.if();if(r){var e=null==(t=r.bannerConfig)?void 0:t.action;this.Za("product tour banner action clicked",{[et]:this.qc.id,[nt]:this.qc.name,[ot]:this.qc.current_iteration||1,[it]:r.id,[lt]:this.jc,[at]:null==e?void 0:e.type,[ut]:null==e?void 0:e.link,[st]:null==e?void 0:e.tourId}),"trigger_tour"===(null==e?void 0:e.type)&&e.tourId&&(this.ef(),this.showTourById(e.tourId))}}},this.lf=t=>{if(this.qc){var r=this.qc.steps[this.jc];r&&this.Za("product tour button clicked",l({[et]:this.qc.id,[nt]:this.qc.name,[ot]:this.qc.current_iteration||1,[it]:r.id,[lt]:this.jc,$product_tour_button_text:t.text,[at]:t.action},t.link&&{[ut]:t.link},t.tourId&&{[st]:t.tourId}))}switch(t.action){case"dismiss":this.dismissTour("user_clicked_skip");break;case"next_step":this.nextStep();break;case"previous_step":this.previousStep();break;case"link":this.rf();break;case"trigger_tour":t.tourId&&(this.rf(),this.showTourById(t.tourId))}},this._instance=t,this.af=new bo(t)}uf(t){var r=t.filter((t=>!t.disable_image_preload)).flatMap((t=>t.steps.flatMap(Rn)));for(var e of r)this.Gc.has(e)||(this.Gc.add(e),(new Image).src=e)}if(){var t;if(!this.qc)return null;var r=this.qc.steps[this.jc];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 Cn.info('No matching translation for "'+r+'" in step '+t.id+", using default"),t;var i=l({},t);return bt(o.content)||(i.content=o.content),bt(o.contentHtml)||(i.contentHtml=o.contentHtml),o.buttons&&i.buttons&&(i.buttons={primary:i.buttons.primary&&l({},i.buttons.primary,o.buttons.primary),secondary:i.buttons.secondary&&l({},i.buttons.secondary,o.buttons.secondary)}),o.survey&&i.survey&&(i.survey=l({},i.survey,o.survey)),i}(r,null!=e?e:null)}Xc(t){this.jc=t,this.sf()}sf(){this.qc&&!this.Zc&&Ue.A(kn,{tourId:this.qc.id,stepIndex:this.jc})}cf(){Ue.F(kn)}hf(){var t=Ue.q(kn);if(!t)return null;try{return JSON.parse(t)}catch(t){return null}}start(){if(!this.Vc){var t=this.hf();t?this.ff(t.tourId,t.stepIndex,(()=>{this.df()})):this.df()}}df(){this.Vc=setInterval((()=>{this.Jc()}),1e3),this.Jc(!0),ze(xo,"visibilitychange",this.Kc)}ff(t,r,e){var n;null==(n=this._instance.productTours)||n.getProductTours((n=>{var o=n.find((r=>r.id===t));o?(this.qc=o,this.jc=r,this.Hc=!0,this.tf()):n.length>0&&this.cf(),e()}))}stop(){this.Vc&&(clearInterval(this.Vc),this.Vc=null),xo.removeEventListener("visibilitychange",this.Kc),this.pf(),this.vf(),this.ef()}Jc(t){var r;null!=xo&&xo.getElementById("__POSTHOG_TOOLBAR__")||null==(r=this._instance.productTours)||r.getProductTours((t=>{if(0!==t.length){this.uf(t);var r=new Set,e=t.filter((t=>!this.Yc.has(t.id)&&(co(t)||ho(t))));e.length>0&&(this.af.register(e),e.forEach((t=>this.Yc.add(t.id))));var n=this.qc?[]:this.af.getTours();for(var o of t){var i,l=null==(i=o.conditions)?void 0:i.selector;if(l&&(r.add(o.id),this.mf(o,l)),!this.qc){var a=ho(o)||co(o);if(o.auto_launch&&this.gf(o)){if(!a){this.bf(o,"auto");continue}n.includes(o.id)&&this.bf(o,"event")}}}this.Uc.forEach((t=>{var e=t.tour;r.has(e.id)||this.yf(e.id)}))}else this.pf()}),t)}bf(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})}gf(t){var r,e,n;if(!Co(t,this._instance))return wo.info("Tour "+t.id+" failed conditions check"),!1;var o,i,l=null!==(r=t.display_frequency)&&void 0!==r?r:"until_interacted",a=""+wn+t.id,u=""+xn+t.id,s=""+_n+t.id;switch(l){case"show_once":if(He.q(a))return wo.info("Tour "+t.id+" already shown (show_once frequency)"),!1;break;case"until_interacted":if(He.q(u)||He.q(s))return wo.info("Tour "+t.id+" already completed or dismissed"),!1}if(!function(t){if(!t)return!0;var r=t.days,e=t.types;if(!r||!e||0===e.length)return!0;var n=null;for(var o of e){var i=He.q(""+Tn+o);if(i)try{var l=JSON.parse(i),a=new Date(l);isNaN(a.getTime())||n&&n>=a||(n=a)}catch(t){}}return!n||function(t,r){if(!t||!r)return!0;var e="string"==typeof r?new Date(r):r,n=new Date,o=Math.abs(n.getTime()-e.getTime());return Math.ceil(o/864e5)>t}(r,n)}(null==(e=t.conditions)?void 0:e.seenTourWaitPeriod))return wo.info("Cannot show tour "+t.id+": user has seen a "+(null==(o=t.conditions)||null==(o=o.seenTourWaitPeriod)?void 0:o.types)+" tour within the last "+(null==(i=t.conditions)||null==(i=i.seenTourWaitPeriod)?void 0:i.days)+" days."),!1;if(!this.wf({flagKey:t.internal_targeting_flag_key}))return wo.info("Tour "+t.id+" failed feature flag check: "+t.internal_targeting_flag_key),!1;var c=null==(n=t.conditions)?void 0:n.linkedFlagVariant;return!!this.wf({flagKey:t.linked_flag_key,flagVariant:c})||(wo.info("Tour "+t.id+" failed feature flag check: "+t.linked_flag_key+", variant: "+c),!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.qc=t,this.Xc(0);var o=this.tf();return o?(this.Za(rt,{[et]:t.id,[nt]:t.name,[ot]:t.current_iteration||1,$product_tour_render_reason:n,$product_tour_type:t.tour_type}),this.Zc||(He.A(""+wn+t.id,!0),He.A(""+Tn+t.tour_type,(new Date).toISOString()),this._instance.capture("$set",{$set:{["$product_tour_shown/"+t.id]:!0}}))):this.ef(),o}showTourById(t,r){var e;wo.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"}):wo.warn("could not find tour",t)}))}previewTour(t){wo.info("Previewing tour "+t.id),this.ef(),this.Zc=!0,this.qc=t,this.jc=0,this.tf()}rf(){this.qc&&(this.Za("product tour completed",{[et]:this.qc.id,$product_tour_steps_count:this.qc.steps.length}),this.Zc||(He.A(""+xn+this.qc.id,!0),this._instance.capture("$set",{$set:{["$product_tour_completed/"+this.qc.id]:!0}})),_o.dispatchEvent(new CustomEvent("PHProductTourCompleted",{detail:{tourId:this.qc.id}})),this.ef())}tf(t){var r;if(void 0===t&&(t=0),!this.qc)return!1;var e=this.if();if(!e)return wo.warn("Step "+this.jc+" not found in tour "+this.qc.id),this.ef(),!1;if("banner"===e.type)return this.xf(),this.Hc=!1,this._f(),!0;if("survey"===e.type)return e.survey?(this.kf(),!0):(wo.warn("Unable to render survey step - survey data not found"),!1);if(!Mn(e))return this.xf(),this.Hc=!1,this.Tf(null),!0;var n=jn(e),o={$use_manual_selector:null!==(r=e.useManualSelector)&&void 0!==r&&r,$inference_data_present:!!e.inferenceData},i=this.jc>0?this.qc.steps[this.jc-1]:null,a="click"===(null==i?void 0:i.progressionTrigger)||this.Hc;if("not_found"===n.error||"not_visible"===n.error){if(a&&20>t)return setTimeout((()=>{this.tf(t+1)}),100),!1;var u=100*t;return this.Cf(n,l({$product_tour_waited_for_element:a,$product_tour_wait_duration_ms:u},o)),0!==this.jc||this.Hc?(wo.warn('Tour "'+this.qc.name+'" dismissed: element for step '+this.jc+" became unavailable ("+n.error+")"+(a?" after waiting "+u+"ms":"")),this.dismissTour("element_unavailable"),!1):(wo.warn('Tour "'+this.qc.name+'" failed to show: element for first step not found ('+n.error+")"),!1)}if("multiple_matches"===n.error&&this.Cf(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.xf(l({[ct]:e.selector,$product_tour_step_selector_found:!0,$product_tour_step_element_tag:c.tag,$product_tour_step_element_id:c.id,$product_tour_step_element_classes:c.classes,$product_tour_step_element_text:c.text},o)),this.Hc=!1,this.Tf(s),!0}Tf(t,r,e){if(this.qc){var n=this.if();if(n){var o=function(t,r){var e=So+"-"+t.id,n=xo.querySelector("."+e);if(n&&n.shadowRoot)return{shadow:n.shadowRoot,isNewlyCreated:!1};var o=xo.createElement("div");o.className=e,zn(o,t.appearance);var i=o.attachShadow({mode:"open"}),l=qn(r);return l&&i.appendChild(l),xo.body.appendChild(o),{shadow:i,isNewlyCreated:!0}}(this.qc,this._instance),i=o.shadow;K(Zn(oo,{tour:this.qc,step:n,stepIndex:this.jc,totalSteps:this.qc.steps.length,targetElement:t,onNext:this.nextStep,onPrevious:this.previousStep,onDismiss:e||this.dismissTour,onSurveySubmit:r,onButtonClick:this.lf}),i)}}}_f(){if(this.qc){var t=this.if();if(t){var r,e=function(t,r,e){var n,o=So+"-"+t.id,i=xo.querySelector("."+o);if(i&&i.shadowRoot)return{shadow:i.shadowRoot,isNewlyCreated:!1};var l=xo.createElement("div");l.className=o,zn(l,t.appearance),bt(null==e||null==(n=e.animation)?void 0:n.duration)||l.style.setProperty("--ph-tour-banner-animation-duration",e.animation.duration+"ms");var a=l.attachShadow({mode:"open"}),u=qn(r);if(u&&a.appendChild(u),"custom"===(null==e?void 0:e.behavior)&&e.selector){var s=xo.querySelector(e.selector);if(!s)return wo.warn("Custom banner container not found: "+e.selector+". Banner will not be displayed."),null;s.appendChild(l)}else xo.body.insertBefore(l,xo.body.firstChild);return{shadow:a,isNewlyCreated:!0}}(this.qc,this._instance,t.bannerConfig);if(!e)return this.Za("product tour banner container selector failed",{[et]:this.qc.id,$product_tour_banner_selector:null==t||null==(r=t.bannerConfig)?void 0:r.selector}),void this.dismissTour("container_unavailable");var n=e.shadow;K(Zn(uo,{step:t,onDismiss:()=>this.dismissTour("user_clicked_skip"),onActionClick:this.nf,displayFrequency:this.qc.display_frequency}),n)}}}kf(){var t,r,e;if(this.qc){var n=this.qc.id,o=this.if();if(o){var i=o.linkedSurveyId,a=o.linkedSurveyQuestionId,u=(null==(t=o.survey)?void 0:t.questionText)||"";this.xf({$product_tour_linked_survey_id:i}),this.Za("survey shown",{[nr]:i,[ir]:n,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)}),this.Tf(null,(t=>{var r,e,o=a?"$survey_response_"+a:"$survey_response";this.Za("survey sent",l({[nr]:i,[ir]:n,[or]:[{id:a,question:u,response:t}],$survey_completed:!0,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)},!wt(t)&&{[o]:t})),wo.info("Survey "+i+" completed",wt(t)?"(skipped)":"with response: "+t),this.nextStep()}),(t=>{var r,e;this.Za("survey dismissed",{[nr]:i,[ir]:n,[or]:[{id:a,question:u,response:null}],$survey_partially_completed:!1,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)}),wo.info("Survey "+i+" dismissed"),this.dismissTour(t)})),wo.info("Rendered survey step for tour step "+this.jc)}}}wf(t){var r,e=t.flagKey,n=t.flagVariant;if(!e)return!0;var o,i=!(null==(r=this._instance.featureFlags)||!r.isFeatureEnabled(e,{send_event:!e.startsWith("product-tour-targeting-")})),l=!0;return n&&(l=(null==(o=this._instance.featureFlags)?void 0:o.getFeatureFlag(e,{send_event:!1}))===n||"any"===n),i&&l}ef(){var t;this.qc&&(null!=(t=xo.querySelector("."+So+"-"+this.qc.id))&&t.shadowRoot&&K(null,t.shadowRoot),null==t||t.remove()),this.qc=null,this.jc=0,this.Zc=!1,this.Hc=!1,this.cf()}mf(t,r){var e=xo.querySelector(r),n=this.Uc.get(t.id);if(e){if(n){if(e===n.element)return;wo.info("Trigger element changed for tour "+t.id+". Re-attaching listener."),this.yf(t.id)}if(!e.hasAttribute(Ao)){var o=e=>{var n;if(this.qc)wo.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 wo.warn("Tour "+t.id+" no longer exists. Removing stale listener."),void this.yf(t.id);To(o)?(wo.info("Tour "+t.id+" triggered by click on "+r),this.showTour(o,{reason:"trigger"})?e.preventDefault():wo.info("Tour "+t.id+" failed to show; not intercepting click.")):wo.warn("Tour "+t.id+" trigger clicked, but tour is not launched - not showing tour.")}};ze(e,"click",o),e.setAttribute(Ao,t.id),this.Uc.set(t.id,{element:e,listener:o,tour:t}),wo.info("Attached trigger listener for tour "+t.id+" on "+r)}}else n&&this.yf(t.id)}yf(t){var r=this.Uc.get(t);r&&(r.element.removeEventListener("click",r.listener),r.element.removeAttribute(Ao),this.Uc.delete(t),wo.info("Removed trigger listener for tour "+t))}pf(){this.Uc.forEach(((t,r)=>{this.yf(r)}))}Za(t,r){this.Zc||this._instance.capture(t,r)}xf(t){if(this.qc){var r=this.qc.steps[this.jc];this.Za("product tour step shown",l({[et]:this.qc.id,[it]:r.id,[lt]:this.jc,$product_tour_step_type:r.type},t))}}Cf(t,r){if(this.qc){var e=this.qc.steps[this.jc];this.Za("product tour step selector failed",l({[et]:this.qc.id,[it]:e.id,[lt]:this.jc,[ct]:e.selector,$product_tour_error:t.error,$product_tour_matches_count:t.matchCount,$product_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.gf(t)));t(n,e)}else t([],e)}))}resetTour(t){He.F(""+wn+t),He.F(""+xn+t),He.F(""+_n+t)}resetAllTours(){var t=null==_o?void 0:_o.localStorage;if(t){for(var r=[],e=0;t.length>e;e++){var n=t.key(e);(null!=n&&n.startsWith(wn)||null!=n&&n.startsWith(xn)||null!=n&&n.startsWith(_n)||null!=n&&n.startsWith(Tn))&&r.push(n)}r.forEach((t=>He.F(t)))}}cancelPendingTour(t){var r=this.Qc.get(t);r&&(clearTimeout(r),this.Qc.delete(t),wo.info("Cancelled pending tour: "+t))}vf(){this.Qc.forEach((t=>clearTimeout(t))),this.Qc.clear()}isTourPending(t){return this.Qc.has(t)}queueTourWithDelay(t,r,e){wo.info("Queueing tour "+t+" with "+r+"s delay");var n=setTimeout((()=>{this.Qc.delete(t),wo.info("Delay elapsed for tour "+t+", showing now"),this.showTourById(t,e)}),1e3*r);this.Qc.set(t,n)}}function Mo(t,r){if(o){var e=new qo(t);return r&&e.start(),e}}var jo="undefined"!=typeof globalThis?globalThis:r;jo&&"undefined"==typeof self&&(jo.self=jo),jo&&"undefined"==typeof File&&(jo.File=function(){});var Lo=null!=r?r:{};Lo.__PosthogExtensions__=Lo.__PosthogExtensions__||{},Lo.__PosthogExtensions__.generateProductTours=Mo,t.default=Mo,t.elementIsVisible=Ce,t.findElement=Me,t.getElementPath=function(t,r){if(void 0===r&&(r=4),!t)return null;for(var e=[],n=t;n&&r>e.length&&"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