PageSourceSearch

https://contributor.info/js/lazy-joyride-wrapper-CNtw9BR3.js

js contributor.info collected 2026-10-10 00:35:11 UTC 84,774 bytes, 27 lines download raw bytes

1import{r as h,k as wt,j as P,a as wr}from"./vendor-react-core-Ba2gwJNM.js";import{cc as Yr,F as dt,cd as Kr,ce as Xr}from"./index-D-XLV-_s.js";import"./vendor-ui-C6PEtgd7.js";import"./vendor-utils-MSNXLbuZ.js";import"./vendor-supabase-De54M4W1.js";const Jr={options:{arrowColor:"hsl(var(--popover))",backgroundColor:"hsl(var(--popover))",primaryColor:"hsl(var(--primary))",textColor:"hsl(var(--popover-foreground))",overlayColor:"rgba(0, 0, 0, 0.5)",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",zIndex:1e4},tooltip:{borderRadius:"0.5rem",padding:"1rem",boxShadow:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"},tooltipContainer:{textAlign:"left"},tooltipTitle:{fontSize:"1rem",fontWeight:600,marginBottom:"0.5rem"},tooltipContent:{fontSize:"0.875rem",lineHeight:1.5},buttonNext:{backgroundColor:"hsl(var(--primary))",color:"hsl(var(--primary-foreground))",borderRadius:"0.375rem",padding:"0.5rem 1rem",fontSize:"0.875rem",fontWeight:500,outline:"none",border:"none",cursor:"pointer"},buttonBack:{color:"hsl(var(--muted-foreground))",marginRight:"0.5rem",fontSize:"0.875rem",fontWeight:500,cursor:"pointer"},buttonClose:{color:"hsl(var(--muted-foreground))",height:"1rem",width:"1rem",cursor:"pointer"},buttonSkip:{color:"hsl(var(--muted-foreground))",fontSize:"0.875rem",cursor:"pointer"},spotlight:{borderRadius:"0.5rem"},beacon:{},beaconInner:{backgroundColor:"hsl(var(--primary))"},beaconOuter:{backgroundColor:"hsl(var(--primary) / 0.2)",border:"2px solid hsl(var(--primary))"}},Zr={back:"Back",close:"Close tour",last:"Connect GitHub",next:"Next",nextLabelWithProgress:"Next (Step {step} of {size})",open:"Open the dialog",skip:"Skip tour"},Qr={disableAnimation:!1,hideArrow:!1,offset:15,styles:{arrow:{length:8,spread:12}}};function Sr(e){return t=>typeof t===e}var en=Sr("function"),tn=e=>e===null,Gt=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",qt=e=>!rn(e)&&!tn(e)&&(en(e)||typeof e=="object"),rn=Sr("undefined");function nn(e,t){const{length:r}=e;if(r!==t.length)return!1;for(let n=r;n--!==0;)if(!te(e[n],t[n]))return!1;return!0}function on(e,t){if(e.byteLength!==t.byteLength)return!1;const r=new DataView(e.buffer),n=new DataView(t.buffer);let o=e.byteLength;for(;o--;)if(r.getUint8(o)!==n.getUint8(o))return!1;return!0}function sn(e,t){if(e.size!==t.size)return!1;for(const r of e.entries())if(!t.has(r[0]))return!1;for(const r of e.entries())if(!te(r[1],t.get(r[0])))return!1;return!0}function an(e,t){if(e.size!==t.size)return!1;for(const r of e.entries())if(!t.has(r[0]))return!1;return!0}function te(e,t){if(e===t)return!0;if(e&&qt(e)&&t&&qt(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return nn(e,t);if(e instanceof Map&&t instanceof Map)return sn(e,t);if(e instanceof Set&&t instanceof Set)return an(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return on(e,t);if(Gt(e)&&Gt(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=r.length;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[o]))return!1;for(let o=r.length;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!te(e[i],t[i]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function ln(e,t){const r=h.useRef(void 0);(!r.current||!te(t,r.current))&&(r.current=t),h.useEffect(e,r.current)}function cn(){const e=h.useRef(!0);return e.current?(e.current=!1,!0):e.current}function xr(e){const t=h.useRef(null),r=h.useRef(!1),n=h.useRef(e);h.useEffect(()=>(r.current||(t.current=n.current(),r.current=!0),()=>{t.current&&(t.current(),t.current=null)}),[])}function un(){const e=h.useRef(!1);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),h.useCallback(()=>e.current,[])}function fn(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),t}function jt(e={}){const[t,r]=h.useState(e),n=h.useCallback(o=>{r(i=>({...i,...o instanceof Function?o(i):o}))},[]);return[t,n]}function ot(e){xr(()=>{e()})}function Yt(e){const t=h.useRef();return h.useEffect(()=>{t.current=e}),t.current}function Lt(e){const t=h.useRef(!1);t.current||(e(),t.current=!0)}function St(e){const t=fn(e);xr(()=>()=>t.current())}function dn(e,t){const r=cn();h.useEffect(()=>{if(!r)return e()},t)}var pn=new Error("Element already at target scroll position"),hn=new Error("Scroll cancelled"),mn=Math.min,Kt=Date.now,gn={left:Xt("scrollLeft"),top:Xt("scrollTop")};function Xt(e){return function(r,n,o,i){o=o||{},typeof o=="function"&&(i=o,o={}),typeof i!="function"&&(i=vn);var l=Kt(),a=r[e],s=o.ease||yn,u=isNaN(o.duration)?350:+o.duration,c=!1;return a===n?i(pn,r[e]):requestAnimationFrame(d),f;function f(){c=!0}function d(p){if(c)return i(hn,r[e]);var v=Kt(),m=mn(1,(v-l)/u),g=s(m);r[e]=g*(n-a)+a,m<1?requestAnimationFrame(d):requestAnimationFrame(function(){i(null,r[e])})}}}function yn(e){return .5*(1-Math.cos(Math.PI*e))}function vn(){}const bn=wt(gn);var Dt={exports:{}},On=Dt.exports;(function(e){(function(t,r){e.exports?e.exports=r():t.Scrollparent=r()})(On,function(){function t(n){var o=getComputedStyle(n,null).getPropertyValue("overflow");return o.indexOf("scroll")>-1||o.indexOf("auto")>-1}function r(n){if(n instanceof HTMLElement||n instanceof SVGElement){for(var o=n.parentNode;o.parentNode;){if(t(o))return o;o=o.parentNode}return document.scrollingElement||document.documentElement}}return r})})(Dt);var En=Dt.exports;const Pr=wt(En);var wn=function(e){return Object.prototype.hasOwnProperty.call(e,"props")},Sn=function(e,t){return e+Qe(t)},Qe=function(e){return e===null||typeof e=="boolean"||typeof e>"u"?"":typeof e=="number"?e.toString():typeof e=="string"?e:Array.isArray(e)?e.reduce(Sn,""):wn(e)&&Object.prototype.hasOwnProperty.call(e.props,"children")?Qe(e.props.children):""};Qe.default=Qe;var xn=Qe;const Jt=wt(xn);var Pn=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Tn=["bigint","boolean","null","number","string","symbol","undefined"];function xt(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(Cn(t))return t}function ye(e){return t=>xt(t)===e}function Cn(e){return Pn.includes(e)}function We(e){return t=>typeof t===e}function Rn(e){return Tn.includes(e)}var Nn=["innerHTML","ownerDocument","style","attributes","nodeValue"];function E(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(E.array(e))return"Array";if(E.plainFunction(e))return"Function";const t=xt(e);return t||"Object"}E.array=Array.isArray;E.arrayOf=(e,t)=>!E.array(e)&&!E.function(t)?!1:e.every(r=>t(r));E.asyncGeneratorFunction=e=>xt(e)==="AsyncGeneratorFunction";E.asyncFunction=ye("AsyncFunction");E.bigint=We("bigint");E.boolean=e=>e===!0||e===!1;E.date=ye("Date");E.defined=e=>!E.undefined(e);E.domElement=e=>E.object(e)&&!E.plainObject(e)&&e.nodeType===1&&E.string(e.nodeName)&&Nn.every(t=>t in e);E.empty=e=>E.string(e)&&e.length===0||E.array(e)&&e.length===0||E.object(e)&&!E.map(e)&&!E.set(e)&&Object.keys(e).length===0||E.set(e)&&e.size===0||E.map(e)&&e.size===0;E.error=ye("Error");E.function=We("function");E.generator=e=>E.iterable(e)&&E.function(e.next)&&E.function(e.throw);E.generatorFunction=ye("GeneratorFunction");E.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;E.iterable=e=>!E.nullOrUndefined(e)&&E.function(e[Symbol.iterator]);E.map=ye("Map");E.nan=e=>Number.isNaN(e);E.null=e=>e===null;E.nullOrUndefined=e=>E.null(e)||E.undefined(e);E.number=e=>We("number")(e)&&!E.nan(e);E.numericString=e=>E.string(e)&&e.length>0&&!Number.isNaN(Number(e));E.object=e=>!E.nullOrUndefined(e)&&(E.function(e)||typeof e=="object");E.oneOf=(e,t)=>E.array(e)?e.indexOf(t)>-1:!1;E.plainFunction=ye("Function");E.plainObject=e=>{if(xt(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};E.primitive=e=>E.null(e)||Rn(typeof e);E.promise=ye("Promise");E.propertyOf=(e,t,r)=>{if(!E.object(e)||!t)return!1;const n=e[t];return E.function(r)?r(n):E.defined(n)};E.regexp=ye("RegExp");
1E.set=ye("Set");E.string=We("string");E.symbol=We("symbol");E.undefined=We("undefined");E.weakMap=ye("WeakMap");E.weakSet=ye("WeakSet");var b=E,In=function(t){return An(t)&&!kn(t)};function An(e){return!!e&&typeof e=="object"}function kn(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Ln(e)}var Mn=typeof Symbol=="function"&&Symbol.for,jn=Mn?Symbol.for("react.element"):60103;function Ln(e){return e.$$typeof===jn}function Dn(e){return Array.isArray(e)?[]:{}}function et(e,t){return t.clone!==!1&&t.isMergeableObject(e)?_e(Dn(e),e,t):e}function _n(e,t,r){return e.concat(t).map(function(n){return et(n,r)})}function Fn(e,t){if(!t.customMerge)return _e;var r=t.customMerge(e);return typeof r=="function"?r:_e}function Bn(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Zt(e){return Object.keys(e).concat(Bn(e))}function Tr(e,t){try{return t in e}catch{return!1}}function $n(e,t){return Tr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Un(e,t,r){var n={};return r.isMergeableObject(e)&&Zt(e).forEach(function(o){n[o]=et(e[o],r)}),Zt(t).forEach(function(o){$n(e,o)||(Tr(e,o)&&r.isMergeableObject(t[o])?n[o]=Fn(o,r)(e[o],t[o],r):n[o]=et(t[o],r))}),n}function _e(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||_n,r.isMergeableObject=r.isMergeableObject||In,r.cloneUnlessOtherwiseSpecified=et;var n=Array.isArray(t),o=Array.isArray(e),i=n===o;return i?n?r.arrayMerge(e,t,r):Un(e,t,r):et(t,r)}_e.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,o){return _e(n,o,r)},{})};var Hn=_e,zn=Hn;const Pe=wt(zn);function Wn(...e){return e.every(t=>b.string(t)||b.array(t)||b.plainObject(t))}function Vn(e,t,r){return Cr(e,t)?[e,t].every(b.array)?!e.some(nr(r))&&t.some(nr(r)):[e,t].every(b.plainObject)?!Object.entries(e).some(rr(r))&&Object.entries(t).some(rr(r)):t===r:!1}function Qt(e,t,r){const{actual:n,key:o,previous:i,type:l}=r,a=Oe(e,o),s=Oe(t,o);let u=[a,s].every(b.number)&&(l==="increased"?a<s:a>s);return b.undefined(n)||(u=u&&s===n),b.undefined(i)||(u=u&&a===i),u}function er(e,t,r){const{key:n,type:o,value:i}=r,l=Oe(e,n),a=Oe(t,n),s=o==="added"?l:a,u=o==="added"?a:l;if(!b.nullOrUndefined(i)){if(b.defined(s)){if(b.array(s)||b.plainObject(s))return Vn(s,u,i)}else return te(u,i);return!1}return[l,a].every(b.array)?!u.every(_t(s)):[l,a].every(b.plainObject)?Gn(Object.keys(s),Object.keys(u)):![l,a].every(c=>b.primitive(c)&&b.defined(c))&&(o==="added"?!b.defined(l)&&b.defined(a):b.defined(l)&&!b.defined(a))}function tr(e,t,{key:r}={}){let n=Oe(e,r),o=Oe(t,r);if(!Cr(n,o))throw new TypeError("Inputs have different types");if(!Wn(n,o))throw new TypeError("Inputs don't have length");return[n,o].every(b.plainObject)&&(n=Object.keys(n),o=Object.keys(o)),[n,o]}function rr(e){return([t,r])=>b.array(e)?te(e,r)||e.some(n=>te(n,r)||b.array(r)&&_t(r)(n)):b.plainObject(e)&&e[t]?!!e[t]&&te(e[t],r):te(e,r)}function Gn(e,t){return t.some(r=>!e.includes(r))}function nr(e){return t=>b.array(e)?e.some(r=>te(r,t)||b.array(t)&&_t(t)(r)):te(e,t)}function Ye(e,t){return b.array(e)?e.some(r=>te(r,t)):te(e,t)}function _t(e){return t=>e.some(r=>te(r,t))}function Cr(...e){return e.every(b.array)||e.every(b.number)||e.every(b.plainObject)||e.every(b.string)}function Oe(e,t){return b.plainObject(e)||b.array(e)?b.string(t)?t.split(".").reduce((n,o)=>n&&n[o],e):b.number(t)?e[t]:e:e}function or(e,t){if([e,t].some(b.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(c=>b.plainObject(c)||b.array(c)))throw new Error("Expected plain objects or array");return{added:(c,f)=>{try{return er(e,t,{key:c,type:"added",value:f})}catch{return!1}},changed:(c,f,d)=>{try{const p=Oe(e,c),v=Oe(t,c),m=b.defined(f),g=b.defined(d);if(m||g){const y=g?Ye(d,p):!Ye(f,p),S=Ye(f,v);return y&&S}return[p,v].every(b.array)||[p,v].every(b.plainObject)?!te(p,v):p!==v}catch{return!1}},changedFrom:(c,f,d)=>{if(!b.defined(c))return!1;try{const p=Oe(e,c),v=Oe(t,c),m=b.defined(d);return Ye(f,p)&&(m?Ye(d,v):!m)}catch{return!1}},decreased:(c,f,d)=>{if(!b.defined(c))return!1;try{return Qt(e,t,{key:c,actual:f,previous:d,type:"decreased"})}catch{return!1}},emptied:c=>{try{const[f,d]=tr(e,t,{key:c});return!!f.length&&!d.length}catch{return!1}},filled:c=>{try{const[f,d]=tr(e,t,{key:c});return!f.length&&!!d.length}catch{return!1}},increased:(c,f,d)=>{if(!b.defined(c))return!1;try{return Qt(e,t,{key:c,actual:f,previous:d,type:"increased"})}catch{return!1}},removed:(c,f)=>{try{return er(e,t,{key:c,type:"removed",value:f})}catch{return!1}}}}function Fe(e){const t=h.useRef(e),r=te(t.current,e),n=h.useRef(r),o=h.useRef(or(t.current,e));return h.useEffect(()=>{t.current=e}),(n.current!==r||!r)&&(n.current=r,o.current=or(t.current,e)),o.current}var se="top",he="bottom",me="right",ae="left",Ft="auto",it=[se,he,me,ae],Be="start",tt="end",qn="clippingParents",Rr="viewport",Ke="popper",Yn="reference",ir=it.reduce(function(e,t){return e.concat([t+"-"+Be,t+"-"+tt])},[]),Nr=[].concat(it,[Ft]).reduce(function(e,t){return e.concat([t,t+"-"+Be,t+"-"+tt])},[]),Kn="beforeRead",Xn="read",Jn="afterRead",Zn="beforeMain",Qn="main",eo="afterMain",to="beforeWrite",ro="write",no="afterWrite",oo=[Kn,Xn,Jn,Zn,Qn,eo,to,ro,no];function we(e){return e?(e.nodeName||"").toLowerCase():null}function le(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ke(e){var t=le(e).Element;return e instanceof t||e instanceof Element}function pe(e){var t=le(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Bt(e){if(typeof ShadowRoot>"u")return!1;var t=le(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function io(e){var t=e.state;
vendor: 16,562 bytes, line 1
1Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!pe(i)||!we(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(l){var a=o[l];a===!1?i.removeAttribute(l):i.setAttribute(l,a===!0?"":a)}))})}function so(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},l=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),a=l.reduce(function(s,u){return s[u]="",s},{});!pe(o)||!we(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(s){o.removeAttribute(s)}))})}}const ao={name:"applyStyles",enabled:!0,phase:"write",fn:io,effect:so,requires:["computeStyles"]};function Ee(e){return e.split("-")[0]}var Ae=Math.max,bt=Math.min,$e=Math.round;function At(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ir(){return!/^((?!chrome|android).)*safari/i.test(At())}function Ue(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&pe(e)&&(o=e.offsetWidth>0&&$e(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&$e(n.height)/e.offsetHeight||1);var l=ke(e)?le(e):window,a=l.visualViewport,s=!Ir()&&r,u=(n.left+(s&&a?a.offsetLeft:0))/o,c=(n.top+(s&&a?a.offsetTop:0))/i,f=n.width/o,d=n.height/i;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function $t(e){var t=Ue(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Ar(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Bt(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function xe(e){return le(e).getComputedStyle(e)}function lo(e){return["table","td","th"].indexOf(we(e))>=0}function Ce(e){return((ke(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pt(e){return we(e)==="html"?e:e.assignedSlot||e.parentNode||(Bt(e)?e.host:null)||Ce(e)}function sr(e){return!pe(e)||xe(e).position==="fixed"?null:e.offsetParent}function co(e){var t=/firefox/i.test(At()),r=/Trident/i.test(At());if(r&&pe(e)){var n=xe(e);if(n.position==="fixed")return null}var o=Pt(e);for(Bt(o)&&(o=o.host);pe(o)&&["html","body"].indexOf(we(o))<0;){var i=xe(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function st(e){for(var t=le(e),r=sr(e);r&&lo(r)&&xe(r).position==="static";)r=sr(r);return r&&(we(r)==="html"||we(r)==="body"&&xe(r).position==="static")?t:r||co(e)||t}function Ut(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Je(e,t,r){return Ae(e,bt(t,r))}function uo(e,t,r){var n=Je(e,t,r);return n>r?r:n}function kr(){return{top:0,right:0,bottom:0,left:0}}function Mr(e){return Object.assign({},kr(),e)}function jr(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var fo=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Mr(typeof t!="number"?t:jr(t,it))};function po(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,l=r.modifiersData.popperOffsets,a=Ee(r.placement),s=Ut(a),u=[ae,me].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!l)){var f=fo(o.padding,r),d=$t(i),p=s==="y"?se:ae,v=s==="y"?he:me,m=r.rects.reference[c]+r.rects.reference[s]-l[s]-r.rects.popper[c],g=l[s]-r.rects.reference[s],y=st(i),S=y?s==="y"?y.clientHeight||0:y.clientWidth||0:0,k=m/2-g/2,w=f[p],O=S-d[c]-f[v],I=S/2-d[c]/2+k,R=Je(w,I,O),B=s;r.modifiersData[n]=(t={},t[B]=R,t.centerOffset=R-I,t)}}function ho(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Ar(t.elements.popper,o)&&(t.elements.arrow=o))}const mo={name:"arrow",enabled:!0,phase:"main",fn:po,effect:ho,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function He(e){return e.split("-")[1]}var go={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yo(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:$e(r*o)/o||0,y:$e(n*o)/o||0}}function ar(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,l=e.offsets,a=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=l.x,p=d===void 0?0:d,v=l.y,m=v===void 0?0:v,g=typeof c=="function"?c({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var y=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),k=ae,w=se,O=window;if(u){var I=st(r),R="clientHeight",B="clientWidth";if(I===le(r)&&(I=Ce(r),xe(I).position!=="static"&&a==="absolute"&&(R="scrollHeight",B="scrollWidth")),I=I,o===se||(o===ae||o===me)&&i===tt){w=he;var A=f&&I===O&&O.visualViewport?O.visualViewport.height:I[R];m-=A-n.height,m*=s?1:-1}if(o===ae||(o===se||o===he)&&i===tt){k=me;var j=f&&I===O&&O.visualViewport?O.visualViewport.width:I[B];p-=j-n.width,p*=s?1:-1}}var x=Object.assign({position:a},u&&go),U=c===!0?yo({x:p,y:m},le(r)):{x:p,y:m};if(p=U.x,m=U.y,s){var $;return Object.assign({},x,($={},$[w]=S?"0":"",$[k]=y?"0":"",$.transform=(O.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",$))}return Object.assign({},x,(t={},t[w]=S?m+"px":"",t[k]=y?p+"px":"",t.transform="",t))}function vo(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,l=i===void 0?!0:i,a=r.roundOffsets,s=a===void 0?!0:a,u={placement:Ee(t.placement),variation:He(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ar(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ar(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const bo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vo,data:{}};var pt={passive:!0};function Oo(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,l=n.resize,a=l===void 0?!0:l,s=le(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",r.update,pt)}),a&&s.addEventListener("resize",r.update,pt),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",r.update,pt)}),a&&s.removeEventListener("resize",r.update,pt)}}const Eo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Oo,data:{}};var wo={left:"right",right:"left",bottom:"top",top:"bottom"};function yt(e){return e.replace(/left|right|bottom|top/g,function(t){return wo[t]})}var So={start:"end",end:"start"};function lr(e){return e.replace(/start|end/g,function(t){return So[t]})}function Ht(e){var t=le(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function zt(e){return Ue(Ce(e)).left+Ht(e).scrollLeft}function xo(e,t){var r=le(e),n=Ce(e),o=r.visualViewport,i=n.clientWidth,l=n.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;var u=Ir();(u||!u&&t==="fixed")&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a+zt(e),y:s}}function Po(e){var t,r=Ce(e),n=Ht(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ae(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=Ae(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+zt(e),s=-n.scrollTop;return xe(o||r).direction==="rtl"&&(a+=Ae(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}function Wt(e){var t=xe(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Lr(e){return["html","body","#document"].indexOf(we(e))>=0?e.ownerDocument.body:pe(e)&&Wt(e)?e:Lr(Pt(e))}function Ze(e,t){var r;t===void 0&&(t=[]);var n=Lr(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=le(n),l=o?[i].concat(i.visualViewport||[],Wt(n)?n:[]):n,a=t.concat(l);return o?a:a.concat(Ze(Pt(l)))}function kt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function To(e,t){var r=Ue(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function cr(e,t,r){return t===Rr?kt(xo(e,r)):ke(t)?To(t,r):kt(Po(Ce(e)))}function Co(e){var t=Ze(Pt(e)),r=["absolute","fixed"].indexOf(xe(e).position)>=0,n=r&&pe(e)?st(e):e;return ke(n)?t.filter(function(o){return ke(o)&&Ar(o,n)&&we(o)!=="body"}):[]}function Ro(e,t,r,n){var o=t==="clippingParents"?Co(e):[].concat(t),i=[].concat(o,[r]),l=i[0],a=i.reduce(function(s,u){var c=cr(e,u,n);return s.top=Ae(c.top,s.top),s.right=bt(c.right,s.right),s.bottom=bt(c.bottom,s.bottom),s.left=Ae(c.left,s.left),s},cr(e,l,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Dr(e){var t=e.reference,r=e.element,n=e.placement,o=n?Ee(n):null,i=n?He(n):null,l=t.x+t.width/2-r.width/2,a=t.y+t.height/2-r.height/2,s;switch(o){case se:s={x:l,y:t.y-r.height};break;case he:s={x:l,y:t.y+t.height};break;case me:s={x:t.x+t.width,y:a};break;case ae:s={x:t.x-r.width,y:a};break;default:s={x:t.x,y:t.y}}var u=o?Ut(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Be:s[u]=s[u]-(t[c]/2-r[c]/2);break;case tt:s[u]=s[u]+(t[c]/2-r[c]/2);break}}return s}function rt(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,l=i===void 0?e.strategy:i,a=r.boundary,s=a===void 0?qn:a,u=r.rootBoundary,c=u===void 0?Rr:u,f=r.elementContext,d=f===void 0?Ke:f,p=r.altBoundary,v=p===void 0?!1:p,m=r.padding,g=m===void 0?0:m,y=Mr(typeof g!="number"?g:jr(g,it)),S=d===Ke?Yn:Ke,k=e.rects.popper,w=e.elements[v?S:d],O=Ro(ke(w)?w:w.contextElement||Ce(e.elements.popper),s,c,l),I=Ue(e.elements.reference),R=Dr({reference:I,element:k,placement:o}),B=kt(Object.assign({},k,R)),A=d===Ke?B:I,j={top:O.top-A.top+y.top,bottom:A.bottom-O.bottom+y.bottom,left:O.left-A.left+y.left,right:A.right-O.right+y.right},x=e.modifiersData.offset;if(d===Ke&&x){var U=x[o];Object.keys(j).forEach(function($){var q=[me,he].indexOf($)>=0?1:-1,Y=[se,he].indexOf($)>=0?"y":"x";j[$]+=U[Y]*q})}return j}function No(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,l=r.padding,a=r.flipVariations,s=r.allowedAutoPlacements,u=s===void 0?Nr:s,c=He(n),f=c?a?ir:ir.filter(function(v){return He(v)===c}):it,d=f.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=f);var p=d.reduce(function(v,m){return v[m]=rt(e,{placement:m,boundary:o,rootBoundary:i,padding:l})[Ee(m)],v},{});return Object.keys(p).sort(function(v,m){return p[v]-p[m]})}function Io(e){if(Ee(e)===Ft)return[];var t=yt(e);return[lr(e),t,lr(t)]}function Ao(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,l=r.altAxis,a=l===void 0?!0:l,s=r.fallbackPlacements,u=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,p=r.flipVariations,v=p===void 0?!0:p,m=r.allowedAutoPlacements,g=t.options.placement,y=Ee(g),S=y===g,k=s||(S||!v?[yt(g)]:Io(g)),w=[g].concat(k).reduce(function(z,G){return z.concat(Ee(G)===Ft?No(t,{placement:G,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:m}):G)},[]),O=t.rects.reference,I=t.rects.popper,R=new Map,B=!0,A=w[0],j=0;j<w.length;j++){var x=w[j],U=Ee(x),$=He(x)===Be,q=[se,he].indexOf(U)>=0,Y=q?"width":"height",T=rt(t,{placement:x,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),V=q?$?me:ae:$?he:se;O[Y]>I[Y]&&(V=yt(V));var F=yt(V),H=[];if(i&&H.push(T[U]<=0),a&&H.push(T[V]<=0,T[F]<=0),H.every(function(z){return z})){A=x,B=!1;break}R.set(x,H)}if(B)for(var L=v?3:1,Z=function(G){var oe=w.find(function(Q){var X=R.get(Q);if(X)return X.slice(0,G).every(function(J){return J})});if(oe)return A=oe,"break"},K=L;K>0;K--){var ne=Z(K);if(ne==="break")break}t.placement!==A&&(t.modifiersData[n]._skip=!0,t.placement=A,t.reset=!0)}}const ko={name:"flip",enabled:!0,phase:"main",fn:Ao,requiresIfExists:["offset"],data:{_skip:!1}};function ur(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function fr(e){return[se,me,he,ae].some(function(t){return e[t]>=0})}function Mo(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,l=rt(t,{elementContext:"reference"}),a=rt(t,{altBoundary:!0}),s=ur(l,n),u=ur(a,o,i),c=fr(s),f=fr(u);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const jo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Mo};function Lo(e,t,r){var n=Ee(e),o=[ae,se].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=i[0],a=i[1];return l=l||0,a=(a||0)*o,[ae,me].indexOf(n)>=0?{x:a,y:l}:{x:l,y:a}}function Do(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,l=Nr.reduce(function(c,f){return c[f]=Lo(f,t.rects,i),c},{}),a=l[t.placement],s=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=l}const _o={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Do};function Fo(e){var t=e.state,r=e.name;t.modifiersData[r]=Dr({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Bo={name:"popperOffsets",enabled:!0,phase:"read",fn:Fo,data:{}};function $o(e){return e==="x"?"y":"x"}function Uo(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,l=r.altAxis,a=l===void 0?!1:l,s=r.boundary,u=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,p=d===void 0?!0:d,v=r.tetherOffset,m=v===void 0?0:v,g=rt(t,{boundary:s,rootBoundary:u,padding:f,altBoundary:c}),y=Ee(t.placement),S=He(t.placement),k=!S,w=Ut(y),O=$o(w),I=t.modifiersData.popperOffsets,R=t.rects.reference,B=t.rects.popper,A=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,j=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),x=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(I){if(i){var $,q=w==="y"?se:ae,Y=w==="y"?he:me,T=w==="y"?"height":"width",V=I[w],F=V+g[q],H=V-g[Y],L=p?-B[T]/2:0,Z=S===Be?R[T]:B[T],K=S===Be?-B[T]:-R[T],ne=t.elements.arrow,z=p&&ne?$t(ne):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:kr(),oe=G[q],Q=G[Y],X=Je(0,R[T],z[T]),J=k?R[T]/2-L-X-oe-j.mainAxis:Z-X-oe-j.mainAxis,re=k?-R[T]/2+L+X+Q+j.mainAxis:K+X+Q+j.mainAxis,ce=t.elements.arrow&&st(t.elements.arrow),ge=ce?w==="y"?ce.clientTop||0:ce.clientLeft||0:0,ve=($=x?.[w])!=null?$:0,Ve=V+J-ve-ge,je=V+re-ve,Ge=Je(p?bt(F,Ve):F,V,p?Ae(H,je):H);I[w]=Ge,U[w]=Ge-V}if(a){var at,lt=w==="x"?se:ae,Ct=w==="x"?he:me,Se=I[O],Le=O==="y"?"height":"width",ct=Se+g[lt],qe=Se-g[Ct],W=[se,ae].indexOf(y)!==-1,ee=(at=x?.[O])!=null?at:0,ie=W?ct:Se-R[Le]-B[Le]-ee+j.altAxis,ue=W?Se+R[Le]+B[Le]-ee-j.altAxis:qe,ut=p&&W?uo(ie,Se,ue):Je(p?ie:ct,Se,p?ue:qe);I[O]=ut,U[O]=ut-Se}t.modifiersData[n]=U}}const Ho={name:"preventOverflow",enabled:!0,phase:"main",fn:Uo,requiresIfExists:["offset"]};function zo(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Wo(e){return e===le(e)||!pe(e)?Ht(e):zo(e)}function Vo(e){var t=e.getBoundingClientRect(),r=$e(t.width)/e.offsetWidth||1,n=$e(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Go(e,t,r){r===void 0&&(r=!1);var n=pe(t),o=pe(t)&&Vo(t),i=Ce(t),l=Ue(e,o,r),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((we(t)!=="body"||Wt(i))&&(a=Wo(t)),pe(t)?(s=Ue(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=zt(i))),{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function qo(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);
1l.forEach(function(a){if(!r.has(a)){var s=t.get(a);s&&o(s)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function Yo(e){var t=qo(e);return oo.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function Ko(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Xo(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var dr={placement:"bottom",modifiers:[],strategy:"absolute"};function pr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Jo(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?dr:o;return function(a,s,u){u===void 0&&(u=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},dr,i),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},f=[],d=!1,p={state:c,setOptions:function(y){var S=typeof y=="function"?y(c.options):y;m(),c.options=Object.assign({},i,c.options,S),c.scrollParents={reference:ke(a)?Ze(a):a.contextElement?Ze(a.contextElement):[],popper:Ze(s)};var k=Yo(Xo([].concat(n,c.options.modifiers)));return c.orderedModifiers=k.filter(function(w){return w.enabled}),v(),p.update()},forceUpdate:function(){if(!d){var y=c.elements,S=y.reference,k=y.popper;if(pr(S,k)){c.rects={reference:Go(S,st(k),c.options.strategy==="fixed"),popper:$t(k)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(j){return c.modifiersData[j.name]=Object.assign({},j.data)});for(var w=0;w<c.orderedModifiers.length;w++){if(c.reset===!0){c.reset=!1,w=-1;continue}var O=c.orderedModifiers[w],I=O.fn,R=O.options,B=R===void 0?{}:R,A=O.name;typeof I=="function"&&(c=I({state:c,options:B,name:A,instance:p})||c)}}}},update:Ko(function(){return new Promise(function(g){p.forceUpdate(),g(c)})}),destroy:function(){m(),d=!0}};if(!pr(a,s))return p;p.setOptions(u).then(function(g){!d&&u.onFirstUpdate&&u.onFirstUpdate(g)});function v(){c.orderedModifiers.forEach(function(g){var y=g.name,S=g.options,k=S===void 0?{}:S,w=g.effect;if(typeof w=="function"){var O=w({state:c,name:y,instance:p,options:k}),I=function(){};f.push(O||I)}})}function m(){f.forEach(function(g){return g()}),f=[]}return p}}var Zo=[Eo,Bo,bo,ao,_o,ko,Ho,mo,jo],hr=Jo({defaultModifiers:Zo});const Re={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};Re.defaultMerge;function Qo(e,t){return t}function ei(e,t){return e.filter(r=>r!==void 0)}var mr;(function(e){e[e.NOT=0]="NOT",e[e.RECORD=1]="RECORD",e[e.ARRAY=2]="ARRAY",e[e.SET=3]="SET",e[e.MAP=4]="MAP",e[e.OTHER=5]="OTHER"})(mr||(mr={}));function gr(e){return typeof e!="object"||e===null?0:Array.isArray(e)?2:ni(e)?1:e instanceof Set?3:e instanceof Map?4:5}function ti(e){const t=new Set;for(const r of e)for(const n of[...Object.keys(r),...Object.getOwnPropertySymbols(r)])t.add(n);return t}function ri(e,t){return typeof e=="object"&&Object.prototype.propertyIsEnumerable.call(e,t)}function _r(e){let t=0,r=e[0]?.[Symbol.iterator]();return{[Symbol.iterator](){return{next(){do{if(r===void 0)return{done:!0,value:void 0};const n=r.next();if(n.done===!0){t+=1,r=e[t]?.[Symbol.iterator]();continue}return{done:!1,value:n.value}}while(!0)}}}}}const yr=["[object Object]","[object Module]"];function ni(e){if(!yr.includes(Object.prototype.toString.call(e)))return!1;const{constructor:t}=e;if(t===void 0)return!0;const r=t.prototype;return!(r===null||typeof r!="object"||!yr.includes(Object.prototype.toString.call(r))||!r.hasOwnProperty("isPrototypeOf"))}function oi(e,t,r){const n={};for(const o of ti(e)){const i=[];for(const s of e)ri(s,o)&&i.push(s[o]);if(i.length===0)continue;const l=t.metaDataUpdater(r,{key:o,parents:e}),a=Fr(i,t,l);a!==Re.skip&&(o==="__proto__"?Object.defineProperty(n,o,{value:a,configurable:!0,enumerable:!0,writable:!0}):n[o]=a)}return n}function ii(e){return e.flat()}function si(e){return new Set(_r(e))}function ai(e){return new Map(_r(e))}function li(e){return e.at(-1)}const ht={mergeRecords:oi,mergeArrays:ii,mergeSets:si,mergeMaps:ai,mergeOthers:li};function Ot(...e){return ci({})(...e)}function ci(e,t){const r=ui(e,n);function n(...o){return Fr(o,r,t)}return n}function ui(e,t){return{defaultMergeFunctions:ht,mergeFunctions:{...ht,...Object.fromEntries(Object.entries(e).filter(([r,n])=>Object.hasOwn(ht,r)).map(([r,n])=>n===!1?[r,ht.mergeOthers]:[r,n]))},metaDataUpdater:e.metaDataUpdater??Qo,deepmerge:t,useImplicitDefaultMerging:e.enableImplicitDefaultMerging??!1,filterValues:e.filterValues===!1?void 0:e.filterValues??ei,actions:Re}}function Fr(e,t,r){const n=t.filterValues?.(e,r)??e;if(n.length===0)return;if(n.length===1)return Rt(n,t,r);const o=gr(n[0]);if(o!==0&&o!==5){for(let i=1;i<n.length;i++)if(gr(n[i])!==o)return Rt(n,t,r)}switch(o){case 1:return fi(n,t,r);case 2:return di(n,t,r);case 3:return pi(n,t,r);case 4:return hi(n,t,r);default:return Rt(n,t,r)}}function fi(e,t,r){const n=t.mergeFunctions.mergeRecords(e,t,r);return n===Re.defaultMerge||t.useImplicitDefaultMerging&&n===void 0&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(e,t,r):n}function di(e,t,r){const n=t.mergeFunctions.mergeArrays(e,t,r);return n===Re.defaultMerge||t.useImplicitDefaultMerging&&n===void 0&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(e):n}function pi(e,t,r){const n=t.mergeFunctions.mergeSets(e,t,r);return n===Re.defaultMerge||t.useImplicitDefaultMerging&&n===void 0&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(e):n}function hi(e,t,r){const n=t.mergeFunctions.mergeMaps(e,t,r);return n===Re.defaultMerge||t.useImplicitDefaultMerging&&n===void 0&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(e):n}function Rt(e,t,r){const n=t.mergeFunctions.mergeOthers(e,t,r);return n===Re.defaultMerge||t.useImplicitDefaultMerging&&n===void 0&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):n}function mi(e){const{arrowRef:t,placement:r,styles:n}=e,{arrow:{color:o,display:i,length:l,position:a,spread:s}}=n,u={display:i,position:a};let c,f=s,d=l;return r.startsWith("top")?c=`0,0 ${f/2},${d} ${f},0`:r.startsWith("bottom")?c=`${f},${d} ${f/2},0 0,${d}`:r.startsWith("left")?(d=s,f=l,c=`0,0 ${f},${d/2} 0,${d}`):r.startsWith("right")&&(d=s,f=l,c=`${f},${d} ${f},0 0,${d/2}`),P.jsx("span",{ref:t,className:"__floater__arrow",style:u,children:P.jsx("svg",{height:d,version:"1.1",width:f,xmlns:"http://www.w3.org/2000/svg",children:P.jsx("polygon",{fill:o,points:c})})})}function gi({onClick:e,styles:t}){const{color:r,height:n,width:o,...i}=t;return P.jsx("button",{"aria-label":"close",onClick:e,style:i,type:"button",children:P.jsx("svg",{height:`${n}px`,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:`${o}px`,xmlns:"http://www.w3.org/2000/svg",children:P.jsx("g",{children:P.jsx("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r})})})})}
1function yi(e){const{content:t,footer:r,onClick:n,open:o,positionWrapper:i,showCloseButton:l,styles:a,title:s}=e,u={content:h.isValidElement(t)?t:P.jsx("div",{className:"__floater__content",style:a.content,children:t})};return s&&(u.title=h.isValidElement(s)?s:P.jsx("div",{className:"__floater__title",style:a.title,children:s})),r&&(u.footer=h.isValidElement(r)?r:P.jsx("div",{className:"__floater__footer",style:a.footer,children:r})),(l||i)&&!b.boolean(o)&&(u.close=P.jsx(gi,{onClick:n,styles:a.close})),P.jsxs("div",{className:"__floater__container",style:a.container,children:[u.close,u.title,u.content,u.footer]})}var vi=["position","top","right","bottom","left"],N={INIT:"init",IDLE:"idle",RENDER:"render",OPENING:"opening",OPEN:"open",CLOSING:"closing"};function bi(e){const{component:t,content:r,floaterRef:n,hideArrow:o,id:i,onClick:l,placement:a,status:s,styles:u}=e,c=h.useMemo(()=>{const{arrow:{length:m},floater:g,floaterCentered:y,floaterClosing:S,floaterOpening:k,floaterWithComponent:w}=u;let O={...g};return o||(a.startsWith("top")?O.padding=`0 0 ${m}px`:a.startsWith("bottom")?O.padding=`${m}px 0 0`:a.startsWith("left")?O.padding=`0 ${m}px 0 0`:a.startsWith("right")&&(O.padding=`0 0 0 ${m}px`)),s===N.CLOSING&&(O={...O,...S}),(s===N.OPENING||s===N.OPEN)&&(O={...O,...k}),a==="center"&&(O={...O,...y}),t&&(O={...O,...w}),O},[t,o,a,s,u]),f=["render","open","opening","closing"].includes(s),d={},p=["__floater"],v={role:"tooltip"};if(t){const m={closeFn:l,id:i,...v};d.content=h.isValidElement(t)?h.cloneElement(t,m):t(m)}else d.content=P.jsx(yi,{...e,content:r});return s===N.OPEN&&p.push("__floater__open"),o||(d.arrow=P.jsx(mi,{...e})),f?P.jsx("div",{ref:n,id:i,style:{zIndex:u.options.zIndex},children:P.jsx("div",{className:p.join(" "),style:c,...v,children:P.jsxs("div",{className:"__floater__body",children:[d.content,d.arrow]})})}):null}var Oi=h.memo(bi),mt="react-floater-portal";function Ne(){return!!(typeof window<"u"&&window.document?.createElement)}function vr(e){return{autoOpen:!1,debug:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1},...e}}function Ei(e){if(e.startsWith("left"))return["top","bottom"];if(e.startsWith("right"))return["bottom","top"]}function wi(e){return Ot({flip:{name:"flip",enabled:!0,options:{padding:20}},preventOverflow:{name:"preventOverflow",enabled:!0,options:{padding:10}}},e??{})}function Br(e){if(!e)return!1;const{nodeName:t}=e;return t==="BODY"||t==="HTML"?!1:getComputedStyle(e).position==="fixed"?!0:e.parentNode instanceof HTMLElement?Br(e.parentNode):!1}function Nt(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function gt({data:e,debug:t=!1,title:r}){const n=console.log;t&&r&&e&&(console.groupCollapsed(`%creact-floater: ${r}`,"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(o=>{b.plainObject(o)&&o.key?n.apply(console,[o.key,o.value]):n.apply(console,[o])}):n.apply(console,[e]),console.groupEnd())}function It(e,t){return Ot(e,t??{})}function Si(e,t,r,n=!1){e.removeEventListener(t,r,n)}function xi(e,t,r,n=!1){e.addEventListener(t,r,n)}function Pi(e,t,r,n=!1){let o;o=i=>{r(i),Si(e,t,o)},xi(e,t,o,n)}function Ti(){return`rf-${Math.round(Math.random()*1e5)}`}function $r(e){h.useEffect(e,[])}function Vt(e){$r(e)}function Ci(e){const t=h.useRef(!1);t.current||(e(),t.current=!0)}function Ur(e){const t=h.useRef(e);t.current=e,$r(()=>()=>t.current())}function Ri(e,t){const r=h.useRef(!0);h.useEffect(()=>{r.current||e()},t),r.current&&(r.current=!1)}function Ni(e){const{children:t,hasChildren:r,internalId:n,placement:o,portalElement:i,target:l,zIndex:a}=e,s=h.useRef(null),u=h.useCallback(()=>{if(Ne()){if(i&&(s.current=b.string(i)?document.querySelector(i):i),!i||!s.current){const c=document.getElementById(mt);if(c){const f=c.dataset.ids?.split(",").filter(Boolean)??[];!f.includes(n)&&n&&f.push(n),c.dataset.ids=f.join(","),s.current=c}else s.current=document.createElement("div"),s.current.id=mt,s.current.dataset.ids=n,s.current.style.zIndex=`${a}`,document.body.appendChild(s.current)}
1!i&&!document.getElementById(mt)&&s.current&&document.body.appendChild(s.current)}},[n,i,a]);return Vt(()=>{Ne&&u()}),h.useEffect(()=>{u()},[u]),Ur(()=>{if(!(!Ne()||!s.current))try{if(s.current.id===mt){const c=s.current.dataset.ids?.split(",")??[];c.includes(n)&&(s.current.dataset.ids=c.filter(f=>f!==n).join(",")),c.length<=1&&(document.body.removeChild(s.current),s.current=null)}}catch{s.current=null}}),s.current?!r&&!l&&o!=="center"?null:wr.createPortal(t,s.current):null}function Ii(e){const{childRef:t,children:r,id:n,isControlled:o,onClick:i,onMount:l,onMouseEnter:a,onMouseLeave:s,status:u,style:c,styles:f,wrapperRef:d}=e;Vt(()=>{l()});let p=null;const v={...f,...c,...h.isValidElement(r)?r.props.style:void 0},m=`${n}-wrapper`;let g={"aria-describedby":[N.OPENING,N.OPEN,N.CLOSING].includes(u)?n:void 0,style:v};return o||(g={...g,onClick:i,onMouseEnter:a,onMouseLeave:s}),r&&(h.Children.count(r)===1&&h.isValidElement(r)&&r.type!==h.Fragment?p=b.function(r.type)?P.jsx("span",{ref:d,id:m,...g,children:h.cloneElement(h.Children.only(r),{innerRef:t})}):h.cloneElement(h.Children.only(r),{id:m,ref:d,...g}):p=P.jsx("span",{ref:d,id:m,...g,children:r})),p}var Ai=h.memo(Ii),ki={zIndex:100};function Mi(e){const{options:t={},...r}=e??{};return Ot({arrow:{color:"#fff",display:"inline-flex",length:16,position:"absolute",spread:32},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},content:{fontSize:15},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},floaterClosing:{opacity:0,visibility:"visible"},floaterOpening:{opacity:1,visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},wrapper:{cursor:"help",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},options:Ot(ki,t)},r)}function ji(e){const{autoOpen:t=!1,callback:r,children:n,component:o,content:i,debug:l=!1,disableFlip:a=!1,disableHoverToClick:s=!1,event:u="click",eventDelay:c=.4,footer:f,getPopper:d,hideArrow:p=!1,id:v,modifiers:m,offset:g=15,open:y,placement:S="bottom",portalElement:k,showCloseButton:w=!1,style:O,styles:I,target:R,title:B,wrapperOptions:A}=vr(e),[j,x]=h.useReducer((W,ee)=>({...W,...ee}),{currentPlacement:S,positionWrapper:!!A?.position&&!!R,status:N.INIT,statusWrapper:N.INIT}),U=h.useRef(null),$=h.useRef(null),q=h.useRef(),Y=h.useRef(null),T=h.useRef(Ti()),V=h.useRef(!1),F=h.useRef(),H=h.useRef(j),L=h.useRef(),Z=h.useRef(null),K=h.useRef({}),{currentPlacement:ne,positionWrapper:z,status:G,statusWrapper:oe}=j,{changed:Q}=Fe(j),{changed:X}=Fe(e),J=h.useCallback((W,ee)=>{V.current&&(x(W),H.current={...j,...W},ee&&ee())},[x,j]),re=h.useCallback(W=>{let ee=H.current.status===N.OPEN?N.CLOSING:N.RENDER;b.undefined(W)||(ee=W),J({status:ee,statusWrapper:ee===N.CLOSING?N.RENDER:N.IDLE})},[J]),ce=h.useRef(()=>Ne()?R?b.domElement(R)?R:document.querySelector(R):$.current??Z.current:null),ge=h.useMemo(()=>Ne()&&(l||!!window.ReactFloaterDebug),[l]),ve=h.useMemo(()=>u==="hover"&&Nt()&&!s?"click":u,[s,u]),Ve=h.useMemo(()=>{const W=Mi(I),ee=ce.current();if(z){let ie;G!==N.IDLE?ie=W.wrapperPosition:oe===N.RENDER&&(ie=L.current?.state.styles),W.wrapper={...W.wrapper,...ie}}if(ee){const ie=window.getComputedStyle(ee);K.current?W.wrapper={...W.wrapper,...K.current}:["relative","static"].includes(ie.position)||(K.current={},z||(vi.forEach(ue=>{K.current[ue]=ie[ue]}),W.wrapper={...W.wrapper,...K.current}))}return W},[z,G,oe,I]),je=h.useCallback(()=>{const W=H.current.status===N.RENDER?N.OPENING:N.IDLE,ee=ce.current();if(S==="center")setTimeout(()=>{J({status:W})},100);else if(ee){if(Y.current){const{arrow:ie,flip:ue,offset:ut,...qr}=wi(m);F.current=hr(ee,Y.current,{placement:S,strategy:Br(ce.current())?"fixed":"absolute",modifiers:[It({name:"arrow",enabled:!p,options:{element:U.current,padding:8}},ie),It({name:"flip",enabled:!a,options:{altAxis:!1,fallbackPlacements:Ei(S||"bottom")}},ue),It({name:"offset",enabled:!0,options:{offset:[0,g]}},ut),{name:"updatePlacement",enabled:!0,phase:"afterWrite",fn:({instance:De,state:fe})=>{fe.placement!==H.current.currentPlacement&&(F.current=De,J({currentPlacement:fe.placement}))}},{name:"applyArrowStyle",enabled:!0,phase:"write",fn:({state:De})=>{const{elements:{arrow:fe},placement:ft}=De;fe&&(ft.startsWith("top")?(fe.style.bottom="0px",fe.style.right=""):ft.startsWith("bottom")?(fe.style.top="0px",fe.style.right=""):ft.startsWith("left")?(fe.style.right="0px",fe.style.bottom=""):ft.startsWith("right")&&(fe.style.left="0px",fe.style.bottom=""))}},...Object.values(qr)],onFirstUpdate:De=>{J({currentPlacement:De.placement,status:W}),S!==De.placement&&setTimeout(()=>{F.current?.forceUpdate()})}}),d&&F.current&&d(F.current,"floater")}else J({status:N.IDLE});if(Z.current&&!L.current&&H.current.positionWrapper){const ie=A?.offset?A.offset:0;L.current=hr(ee,Z.current,{placement:A?.placement??S,modifiers:[{name:"arrow",enabled:!1},{name:"offset",options:{offset:[0,ie]}},{name:"flip",enabled:!1}],onFirstUpdate:ue=>{J({statusWrapper:N.RENDER}),S!==ue.placement&&setTimeout(()=>{L.current?.forceUpdate()})}}),d&&d(L.current,"wrapper")}}},[a,d,p,m,g,S,J,A.offset,A?.placement]),Ge=h.useRef(()=>{F.current&&F.current.forceUpdate(),L.current&&L.current.forceUpdate()}),at=h.useRef(()=>{L.current&&L.current.forceUpdate(),J({status:H.current.status===N.OPENING?N.OPEN:N.IDLE},()=>{r&&r(H.current.status===N.OPEN?"open":"close",vr(e))})}),lt=h.useCallback(()=>{b.boolean(y)||(ve==="click"||ve==="hover"&&z)&&(gt({title:"click",data:[{event:u,status:G===N.OPEN?"closing":"opening"}],debug:ge}),re(G==="idle"?N.RENDER:void 0))},[ge,ve,u,y,z,G,re]),Ct=h.useCallback(()=>{b.boolean(y)||Nt()||ve!=="hover"||(gt({title:"mouseEnter",data:[{key:"originalEvent",value:u}],debug:ge}),G===N.IDLE&&(clearTimeout(q.current),q.current=void 0,re(N.RENDER)))},[ge,ve,u,y,G,re]),Se=h.useCallback(()=>
1{if(!(b.boolean(y)||Nt())&&ve==="hover"){gt({title:"mouseLeave",data:[{key:"originalEvent",value:u}],debug:ge});const W=[N.OPENING,N.OPEN].includes(G);c?z||W&&(clearTimeout(q.current),q.current=window.setTimeout(()=>{re(),q.current=void 0},c*1e3)):re(G===N.CLOSING?N.IDLE:N.CLOSING)}},[ge,ve,u,c,y,z,G,re]),Le=h.useCallback(()=>{z&&je()},[je,z]),ct=()=>{F.current&&(F.current.destroy(),F.current=void 0),L.current&&(L.current.destroy(),L.current=void 0)};Ci(()=>{Ne()&&window.addEventListener("load",Ge.current)}),Vt(()=>{V.current=!0,gt({title:"init",data:{hasChildren:!!n,hasTarget:!!R,isControlled:b.boolean(y),positionWrapper:z,target:ce.current(),floater:Y.current},debug:ge}),je()}),Ur(()=>{V.current=!1,ct(),window.removeEventListener("load",Ge.current)}),Ri(()=>{if(Ne()){if(X("open")){let W;b.boolean(y)&&(W=y?N.RENDER:N.CLOSING),re(W)}(X("wrapperOptions.position")||X("target"))&&J({positionWrapper:!!A?.position&&!!R}),(Q("status",N.IDLE)&&y||Q("status",N.IDLE,N.INIT)&&t)&&re(N.RENDER),Q("status",N.RENDER)&&(F.current&&F.current.destroy(),je()),Y.current&&Q("status",[N.RENDER,N.CLOSING])&&Pi(Y.current,"transitionend",at.current),Q("status",N.IDLE,N.CLOSING)&&F.current&&(F.current.destroy(),F.current=void 0,L.current&&L.current.forceUpdate())}});const qe=P.jsx(Ai,{childRef:$,id:v??T.current,isControlled:b.boolean(y),onClick:lt,onMount:Le,onMouseEnter:Ct,onMouseLeave:Se,status:G,style:O,styles:Ve.wrapper,wrapperRef:Z,children:n});return P.jsxs(P.Fragment,{children:[P.jsxs(Ni,{hasChildren:!!n,internalId:T.current,placement:ne,portalElement:k,target:R,zIndex:Ve.options.zIndex,children:[P.jsx(Oi,{arrowRef:U,component:o,content:i,floaterRef:Y,footer:f,hideArrow:p||ne==="center",id:v??T.current,onClick:lt,placement:ne,positionWrapper:z,showCloseButton:w,status:G,styles:Ve,title:B}),z&&qe]}),!z&&qe]})}var Li=Object.defineProperty,Di=(e,t,r)=>t in e?Li(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_=(e,t,r)=>Di(e,typeof t!="symbol"?t+"":t,r);function _i(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function Hr(e){return e?e.getBoundingClientRect():null}function Fi(e=!1){const{body:t,documentElement:r}=document;if(!t||!r)return 0;if(e){const n=[t.scrollHeight,t.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight].sort((i,l)=>i-l),o=Math.floor(n.length/2);return n.length%2===0?(n[o-1]+n[o])/2:n[o]}return Math.max(t.scrollHeight,t.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight)}function Te(e){if(!e)return null;if(typeof e=="string")try{return document.querySelector(e)}catch{return null}return e}function Bi(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function nt(e,t,r){if(!e)return Ie();const n=Pr(e);if(n){if(n.isSameNode(Ie()))return r?document:Ie();if(!(n.scrollHeight>n.offsetHeight)&&!t)return n.style.overflow="initial",Ie()}return n}function Tt(e,t){if(!e)return!1;const r=nt(e,t);return r?!r.isSameNode(Ie()):!1}function $i(e){return e.offsetParent!==document.body}function ze(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:r}=e,n=Bi(e);return r==="BODY"||r==="HTML"?!1:n&&n.position===t?!0:e.parentNode?ze(e.parentNode,t):!1}function Ui(e){var t;if(!e)return!1;let r=e;for(;r&&r!==document.body;){if(r instanceof HTMLElement){const{display:n,visibility:o}=getComputedStyle(r);if(n==="none"||o==="hidden")return!1}r=(t=r.parentElement)!=null?t:null}return!0}function Hi(e,t,r){var n,o,i;const l=Hr(e),a=nt(e,r),s=Tt(e,r),u=ze(e);let c=0,f=(n=l?.top)!=null?n:0;if(s&&u){const d=(o=e?.offsetTop)!=null?o:0,p=(i=a?.scrollTop)!=null?i:0;f=d-p}else a instanceof HTMLElement&&(c=a.scrollTop,!s&&!ze(e)&&(f+=c),a.isSameNode(Ie())||(f+=Ie().scrollTop));return Math.floor(f-t)}function zi(e,t,r){var n;if(!e)return 0;const{offsetTop:o=0,scrollTop:i=0}=(n=Pr(e))!=null?n:{};let l=e.getBoundingClientRect().top+i;o&&(Tt(e,r)||$i(e))&&(l-=o);const a=Math.floor(l-t);return a<0?0:a}function Ie(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function Wi(e,t){const{duration:r,element:n}=t;return new Promise((o,i)=>{const{scrollTop:l}=n,a=e>l?e-l:l-e;bn.top(n,e,{duration:a<100?50:r},s=>s&&s.message!=="Element already at target scroll position"?i(s):o())})}var D={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},de={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found"},C={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},M={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"},zr="react-joyride-portal";function Vi(e){const t={};for(const r in e)e[r]!==void 0&&(t[r]=e[r]);return t}function Wr(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function vt(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}
1function be(e,t={}){const{defaultValue:r,step:n,steps:o}=t;let i=Jt(e);if(i)(i.includes("{step}")||i.includes("{steps}"))&&n&&o&&(i=i.replace("{step}",n.toString()).replace("{steps}",o.toString()));else if(h.isValidElement(e)&&!Object.values(e.props).length&&vt(e.type)==="function"){const l=e.type({});i=be(l,t)}else i=Jt(r);return i}function Gi(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,r=e.replace(t,(o,i,l,a)=>i+i+l+l+a+a),n=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(r);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}function qi(e,t,r){const{action:n}=t,o=r&&[D.PREV,D.NEXT].includes(n);return e.disableBeacon||e.placement==="center"||o}function br(){return!["chrome","safari","firefox","opera"].includes(Wr())}function Me({data:e,debug:t=!1,title:r,warn:n=!1}){var o;const i=n?(o=console.warn)!=null?o:console.error:console.log;t&&(r&&e?(console.groupCollapsed(`%creact-joyride: ${r}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(l=>{b.plainObject(l)&&l.key?i.apply(console,[l.key,l.value]):i.apply(console,[l])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function Yi(e,t){const r=Vi(t);return{...e,...r}}function Ki(e,...t){if(!b.plainObject(e))throw new TypeError("Expected an object");const r={};for(const n in e)({}).hasOwnProperty.call(e,n)&&(t.includes(n)||(r[n]=e[n]));return r}function Xi(e,...t){if(!b.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const r={};for(const n in e)({}).hasOwnProperty.call(e,n)&&t.includes(n)&&(r[n]=e[n]);return r}function Mt(e,t,r){const n=i=>i.replace("{step}",String(t)).replace("{steps}",String(r));if(vt(e)==="string")return n(e);if(!h.isValidElement(e))return e;const{children:o}=e.props;if(vt(o)==="string"&&o.includes("{step}"))return h.cloneElement(e,{children:n(o)});if(Array.isArray(o))return h.cloneElement(e,{children:o.map(i=>typeof i=="string"?n(i):Mt(i,t,r))});if(vt(e.type)==="function"&&!Object.values(e.props).length){const i=e.type({});return Mt(i,t,r)}return e}function Ji(e){const{isFirstStep:t,lifecycle:r,previousLifecycle:n,scrollToFirstStep:o,step:i,target:l}=e;return!i.disableScrolling&&(!t||o||r===C.TOOLTIP)&&i.placement!=="center"&&(!i.isFixed||!ze(l))&&n!==r&&[C.BEACON,C.TOOLTIP].includes(r)}var Zi={modifiers:{preventOverflow:{options:{rootBoundary:"viewport"}}},wrapperOptions:{offset:-18,position:!0}},Vr={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},Qi={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:Vr,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},es={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},ts={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},Xe={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},Or={borderRadius:4,position:"absolute"};function rs(e,t){var r,n,o,i,l;const{floaterProps:a,styles:s}=e,u=Pe((r=t.floaterProps)!=null?r:{},a??{}),c=Pe(s??{},(n=t.styles)!=null?n:{}),f=Pe(ts,c.options||{}),d=t.placement==="center"||t.disableBeacon;let{width:p}=f;window.innerWidth>480&&(p=380),"width"in f&&(p=typeof f.width=="number"&&window.innerWidth<f.width?window.innerWidth-30:f.width);const v={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:f.zIndex},m={beacon:{...Xe,display:d?"none":"inline-block",height:f.beaconSize,position:"relative",width:f.beaconSize,zIndex:f.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:f.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${Gi(f.primaryColor).join(",")}, 0.2)`,border:`2px solid ${f.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:f.backgroundColor,borderRadius:5,boxSizing:"border-box",color:f.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:p},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...Xe,backgroundColor:f.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...Xe,color:f.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...Xe,color:f.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...Xe,color:f.textColor,fontSize:14},overlay:{...v,backgroundColor:f.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...v},overlayLegacyCenter:{...v,backgroundColor:f.overlayColor},spotlight:{...Or,backgroundColor:"gray"},spotlightLegacy:{...Or,boxShadow:`0 0 0 9999px ${f.overlayColor}, ${f.spotlightShadow}`},floaterStyles:{arrow:{color:(l=(i=(o=u?.styles)==null?void 0:o.arrow)==null?void 0:i.color)!=null?l:f.arrowColor},options:{zIndex:f.zIndex+100}},options:f};return Pe(m,c)}function ns(e){return Xi(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function Et(e,t){var r,n,o,i,l,a;if(!t)return null;const s=t??{},u=Pe.all([Qi,ns(e),s],{isMergeableObject:b.plainObject}),c=rs(e,u),f=Tt(Te(u.target),u.disableScrollParentFix),d=Pe.all([Zi,(r=e.floaterProps)!=null?r:{},(n=u.floaterProps)!=null?n:{}]);return d.offset=u.offset,d.styles=Pe((o=d.styles)!=null?o:{},c.floaterStyles),d.offset+=(l=(i=e.spotlightPadding)!=null?i:u.spotlightPadding)!=null?l:0,u.placementBeacon&&d.wrapperOptions&&(d.wrapperOptions.placement=u.placementBeacon),f&&d.modifiers.preventOverflow&&(d.modifiers.preventOverflow.options={...d.modifiers.preventOverflow.options,rootBoundary:"viewport",boundary:"clippingParents"}),{...u,locale:Pe.all([Vr,(a=e.locale)!=null?a:{},u.locale||{}]),floaterProps:d,styles:Ki(c,"floaterStyles")}}function Gr(e,t=!1){return b.plainObject(e)?e.target?!0:(Me({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(Me({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function Er(e,t=!1){return b.array(e)?e.every(r=>Gr(r,t)):(Me({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var os={action:"init",controlled:!1,index:0,lifecycle:C.INIT,origin:null,size:0,status:M.IDLE},is=class{constructor(e){_(this,"beaconPopper"),_(this,"tooltipPopper"),_(this,"data",new Map),_(this,"listener"),_(this,"props"),_(this,"store",new Map),_(this,"updateState",(o,i=!1)=>
1{this.setState({...this.getState(),...this.prepareState(o,i)})}),_(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),_(this,"getPopper",o=>o==="beacon"?this.beaconPopper:this.tooltipPopper),_(this,"setPopper",(o,i)=>{var l,a;i==="wrapper"?this.beaconPopper=o:this.tooltipPopper=o,o&&this.store.get("lifecycle")===C.COMPLETE&&this.updateState({action:D.UPDATE,lifecycle:C.INIT});const s=(a=(l=this.getStep())==null?void 0:l.floaterProps)==null?void 0:a.getPopper;s&&s(o,i)}),_(this,"addListener",o=>{this.listener=o}),_(this,"setSteps",o=>{const{size:i,status:l}=this.getState(),a={size:o.length,status:l};this.data.set("steps",o),l===M.WAITING&&!i&&o.length&&(a.status=M.RUNNING),this.updateState(a)}),_(this,"close",(o=null)=>{const{index:i,status:l}=this.getState();l===M.RUNNING&&this.updateState({action:D.CLOSE,index:i+1,origin:o,lifecycle:C.COMPLETE})}),_(this,"go",o=>{const{controlled:i,status:l}=this.getState();if(i||l!==M.RUNNING)return;const a=this.getStep(o);this.updateState({action:D.GO,index:o,lifecycle:C.COMPLETE,status:a?l:M.FINISHED})}),_(this,"info",()=>this.getState()),_(this,"next",()=>{const{index:o,status:i}=this.getState();i===M.RUNNING&&this.updateState({action:D.NEXT,index:this.getUpdatedIndex(o+1),lifecycle:C.COMPLETE})}),_(this,"open",()=>{const{status:o}=this.getState();o===M.RUNNING&&this.updateState({action:D.UPDATE,lifecycle:C.TOOLTIP})}),_(this,"prev",()=>{const{index:o,status:i}=this.getState();i===M.RUNNING&&this.updateState({action:D.PREV,index:this.getUpdatedIndex(o-1),lifecycle:C.COMPLETE})}),_(this,"reset",(o=!1)=>{const{controlled:i}=this.getState();i||this.updateState({action:D.RESET,index:0,lifecycle:C.COMPLETE,status:o?M.RUNNING:M.READY})}),_(this,"skip",()=>{const{status:o}=this.getState();o===M.RUNNING&&this.updateState({action:D.SKIP,lifecycle:C.COMPLETE,status:M.SKIPPED})}),_(this,"start",o=>{const{index:i,size:l}=this.getState();this.updateState({action:D.START,index:b.number(o)?o:i,status:l?M.RUNNING:M.WAITING},!0)}),_(this,"stop",(o=!1)=>{const{index:i,status:l}=this.getState();[M.FINISHED,M.SKIPPED].includes(l)||this.updateState({action:D.STOP,index:i+(o?1:0),lifecycle:C.COMPLETE,status:M.PAUSED})});const{continuous:t=!1,stepIndex:r,steps:n=[]}=e??{};this.setState({action:D.INIT,controlled:b.number(r),continuous:t,index:b.number(r)?r:0,lifecycle:C.INIT,origin:null,status:n.length?M.READY:M.IDLE},!0),this.setSteps(n),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.props=e??{steps:[]}}getStep(e){const t=this.data.get("steps"),{index:r}=this.getState();return Et(this.props,t[e??r])}getUpdatedIndex(e){const{size:t}=this.getState();return Math.min(Math.max(e,0),t)}hasUpdatedState(e){return!te(e,this.getState())}prepareState(e,t=!1){var r,n,o,i,l,a;const{action:s,controlled:u,index:c,size:f,status:d}=this.getState(),p=(r=e.index)!=null?r:c;return{action:(n=e.action)!=null?n:s,controlled:u,index:u&&!t?c:p,lifecycle:(o=e.lifecycle)!=null?o:C.INIT,origin:(i=e.origin)!=null?i:null,size:(l=e.size)!=null?l:f,status:(a=e.status)!=null?a:d}}setState(e,t=!1){const r=this.getState(),{action:n,index:o,lifecycle:i,origin:l=null,size:a,status:s}={...r,...e};this.store.set("action",n),this.store.set("index",o),this.store.set("lifecycle",i),this.store.set("origin",l),this.store.set("size",a),this.store.set("status",s),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(r)&&this.listener(this.getState())}getState(){var e;return(e=this==null?void 0:this.store)!=null&&e.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...os}}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function ss(e){return new is(e)}function as(e){const{callback:t,continuous:r,debug:n,disableScrollParentFix:o,getHelpers:i,run:l,scrollDuration:a,scrollOffset:s,scrollToFirstStep:u,stepIndex:c,steps:f}=e,d=h.useRef(ss(e)),[p,v]=jt(d.current.getState()),{action:m,controlled:g,index:y,lifecycle:S,size:k,status:w}=p,O=h.useRef(null),I=Yt(e),R=Yt(p),{changed:B}=Fe(e),{changed:A,changedFrom:j}=Fe(p),x=h.useMemo(()=>Et(e,f[y]),[y,e,f]),U=h.useMemo(()=>Et(e,f[y-1]),[y,e,f]);Lt(()=>{d.current.addListener(q=>{v(q)})});const $=h.useCallback(q=>{var Y,T,V,F,H,L;if(!x)return;const Z=Te(x.target),K=Ji({isFirstStep:y===0,lifecycle:S,previousLifecycle:q.lifecycle,scrollToFirstStep:u,step:x,target:Z}),ne=d.current.getPopper("beacon"),z=d.current.getPopper("tooltip");if(w===M.RUNNING&&K){const G=Tt(Z,o),oe=nt(Z,o);let Q=Math.floor(zi(Z,s,o))||0;if(Me({title:"scrollToStep",data:[{key:"index",value:y},{key:"lifecycle",value:S},{key:"status",value:w}],debug:n}),S===C.BEACON&&ne){const{modifiersData:X,placement:J}=(Y=ne.state)!=null?Y:{},{offset:re}=X??{},ce=(V=(T=re?.top)==null?void 0:T.y)!=null?V:0;!["bottom"].includes(J)&&!G&&(Q=Math.floor(ce-s))}else if(S===C.TOOLTIP&&z){const{modifiersData:X,placement:J}=(F=z.state)!=null?F:{},{offset:re}=X??{},ce=(L=(H=re?.top)==null?void 0:H.y)!=null?L:0,ge=!!J&&J!==x.placement;["top","right","left"].includes(J)&&!ge&&!G?Q=Math.floor(ce-s):Q-=x.spotlightPadding}Q=Q>=0?Q:0,w===M.RUNNING&&Wi(Q,{element:oe,duration:a}).then(()=>{setTimeout(()=>{var X;(X=d.current.getPopper("tooltip"))==null||X.update()},10)})}},[n,o,y,S,a,s,u,w,x]);return ot(()=>{l&&k&&Er(f,n)&&d.current.start(),i&&i(d.current.getHelpers())}),dn(()=>{l&&k&&w===M.IDLE&&d.current.updateState({status:M.READY}),i&&i(d.current.getHelpers())},[i,l,k,w]),ln(()=>{var q,Y,T,V;if(!I||!R)return;(A("action",[D.NEXT,D.PREV,D.SKIP,D.CLOSE])||O.current===D.CLOSE&&m===D.START)&&(O.current=m),w===M.RUNNING&&x&&S===C.INIT&&d.current.updateState({action:(q=O.current)!=null?q:D.UPDATE,lifecycle:C.READY}),k&&!x&&S===C.INIT&&d.current.updateState({action:D.UPDATE,lifecycle:C.COMPLETE,status:M.FINISHED}),w===M.RUNNING&&x?.placement==="center"&&A("lifecycle",C.COMPLETE)&&d.current.updateState({action:D.UPDATE,lifecycle:C.INIT});const H=Te(x?.target),L=!!H;x&&L&&Ui(H)?j("lifecycle",C.INIT,C.READY)&&t?.({...p,action:(Y=O.current)!=null?Y:m,step:x,type:de.STEP_BEFORE}):x&&w===M.RUNNING&&(console.warn(L?"Target not visible":"Target not mounted",x),t?.({...p,type:de.TARGET_NOT_FOUND,step:x}),g||d.current.updateState({action:D.UPDATE,index:y+(m===D.PREV?-1:1)})),x&&A("lifecycle",C.READY)&&d.current.updateState({action:D.UPDATE,lifecycle:qi(x,p,r)?C.TOOLTIP:C.BEACON}),x&&A("lifecycle",C.BEACON)&&t?.({...p,step:x,type:de.BEACON}),x&&A("lifecycle",C.TOOLTIP)&&t?.({...p,step:x,type:de.TOOLTIP});const Z=w===M.RUNNING||g&&w===M.PAUSED&&!!x,K=x??U;if(Z&&K&&A("lifecycle",C.COMPLETE,C.TOOLTIP)&&(L||!x)&&t?.({...p,action:(T=O.current)!=null?T:D.UPDATE,index:(V=R.index)!=null?V:y,lifecycle:S,step:K,type:de.STEP_AFTER}),w===M.WAITING&&d.current.updateState({status:M.RUNNING}),B()){const{stepIndex:z,steps:G}=I;if(te(G,f)||(Er(f,n)?d.current.updateState({size:f.length}):console.warn("Steps are not valid",f)),B("run"))l?d.current.getState().size&&d.current.start(c):d.current.stop();else if(b.number(c)&&B("stepIndex")){const oe=b.number(z)&&z<c?D.NEXT:D.PREV;[M.FINISHED,M.SKIPPED].includes(w)||d.current.updateState({action:oe,index:c},!0)}}A("index")&&Me({title:`step:${S}`,data:[{key:"props",value:e}],debug:n}),A("lifecycle",C.COMPLETE)&&y&&y>=k&&d.current.updateState({action:D.UPDATE,lifecycle:C.COMPLETE,status:M.FINISHED}),U&&A("status",[M.FINISHED,M.SKIPPED])&&(t?.({...p,index:y-1,step:U,type:de.TOUR_END}),d.current.reset()),x&&j("status",[M.IDLE,M.READY,M.PAUSED],M.RUNNING)&&t?.({...p,step:x,type:de.TOUR_START}),x&&A("action",D.STOP)&&t?.({...p,step:x,type:de.TOUR_STATUS}),x&&A("action",D.RESET)&&t?.({...p,step:x,type:de.TOUR_STATUS}),$(R)},[m,t,B,A,j,r,g,n,y,S,I,R,U,e,l,$,k,p,w,x,c,f]),d}function ls(e){const[{element:t,useExternalPortal:r},n]=jt({useExternalPortal:!1,element:null});return ot(()=>{if(e)if(b.domElement(e))n({element:e,useExternalPortal:!0});else{const o=document.querySelector(e);o&&n({element:o})}if(!e){const o=document.createElement("div");o.id=zr,document.body.appendChild(o),n({element:o})}}),St(()=>{!t||r||t.parentNode===document.body&&document.body.removeChild(t)}),t}function cs({styles:e}){return P.jsx("div",{className:"react-joyride__spotlight","data-test-id":"spotlight",style:e},"JoyrideSpotlight")}function us(e){const{continuous:t,debug:r,disableOverlay:n,disableOverlayClose:o,disableScrolling:i,disableScrollParentFix:l=!1,lifecycle:a,onClickOverlay:s,placement:u,spotlightClicks:c,spotlightPadding:f=0,styles:d,target:p}=e,v=un(),{changed:m}=Fe(e),g=h.useRef(),y=h.useRef(),S=h.useRef(null),[{isScrolling:k,mouseOverSpotlight:w,showSpotlight:O},I]=jt({isScrolling:!1,mouseOverSpotlight:!1,resizedAt:0,showSpotlight:!0}),R=h.useCallback(T=>{v&&I(T)}
1,[v,I]),B=h.useMemo(()=>{let T=d.overlay;return br()&&(T=u==="center"?d.overlayLegacyCenter:d.overlayLegacy),{cursor:o?"default":"pointer",height:Fi(),pointerEvents:w?"none":"auto",...T}},[o,w,u,d.overlay,d.overlayLegacy,d.overlayLegacyCenter]),A=h.useMemo(()=>{var T,V,F;const H=Te(p),L=Hr(H),Z=ze(H),K=Hi(H,f,l);return{height:Math.round(((T=L?.height)!=null?T:0)+f*2),left:Math.round(((V=L?.left)!=null?V:0)-f),opacity:O?1:0,pointerEvents:c?"none":"auto",position:Z?"fixed":"absolute",top:K,transition:"opacity 0.2s",width:Math.round(((F=L?.width)!=null?F:0)+f*2),...br()?d.spotlightLegacy:d.spotlight}},[l,O,c,f,d.spotlight,d.spotlightLegacy,p]),j=h.useCallback(T=>{const{height:V,left:F,position:H,top:L,width:Z}=A,K=H==="fixed"?T.clientY:T.pageY,ne=H==="fixed"?T.clientX:T.pageX,z=K>=L&&K<=L+V,oe=ne>=F&&ne<=F+Z&&z;oe!==w&&R({mouseOverSpotlight:oe})},[A,w,R]),x=h.useCallback(()=>{clearTimeout(g.current),g.current=window.setTimeout(()=>{v&&I({resizedAt:Date.now()})},100)},[v,I]),U=h.useCallback(()=>{const T=Te(p);S.current!==document?(k||R({isScrolling:!0,showSpotlight:!1}),clearTimeout(y.current),y.current=window.setTimeout(()=>{R({isScrolling:!1,showSpotlight:!0})},50)):ze(T,"sticky")&&R({})},[k,p,R]);ot(()=>{const T=Te(p);S.current=nt(T??document.body,l,!0),window.addEventListener("resize",x)}),St(()=>{var T;window.removeEventListener("mousemove",j),window.removeEventListener("resize",x),clearTimeout(g.current),clearTimeout(y.current),(T=S?.current)==null||T.removeEventListener("scroll",U)}),h.useEffect(()=>{var T;m("lifecycle",C.TOOLTIP)&&((T=S?.current)==null||T.addEventListener("scroll",U,{passive:!0}),setTimeout(()=>{k||R({showSpotlight:!0})},100))},[m,U,k,R]),h.useEffect(()=>{(m("spotlightClicks")||m("disableOverlay")||m("lifecycle"))&&(c&&a===C.TOOLTIP?window.addEventListener("mousemove",j,!1):a!==C.TOOLTIP&&window.removeEventListener("mousemove",j))},[m,j,a,c]),h.useEffect(()=>{if(m("target")||m("disableScrollParentFix")){const T=Te(p);S.current=nt(T??document.body,l,!0)}},[m,l,p]);const $=[C.INIT,C.BEACON,C.COMPLETE,C.ERROR];if(n||(t?$.includes(a):a!==C.TOOLTIP))return null;let q=u!=="center"&&O&&P.jsx(cs,{styles:A});const Y={...B};if(Wr()==="safari"){const{mixBlendMode:T,zIndex:V,...F}=B;q=P.jsx("div",{style:{...F},children:q}),delete Y.backgroundColor}return P.jsx("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:s,role:"presentation",style:Y,children:q})}function fs(e){const{children:t,element:r}=e;return r?wr.createPortal(t,r):null}var ds=class{constructor(e,t){if(_(this,"element"),_(this,"options"),_(this,"canBeTabbed",r=>{const{tabIndex:n}=r;return n===null||n<0?!1:this.canHaveFocus(r)}),_(this,"canHaveFocus",r=>{const n=/input|select|textarea|button|object/,o=r.nodeName.toLowerCase();return(n.test(o)&&!r.getAttribute("disabled")||o==="a"&&!!r.getAttribute("href"))&&this.isVisible(r)}),_(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),_(this,"handleKeyDown",r=>{const{code:n="Tab"}=this.options;r.code===n&&this.interceptTab(r)}),_(this,"interceptTab",r=>{r.preventDefault();const n=this.findValidTabElements(),{shiftKey:o}=r;if(!n.length)return;let i=document.activeElement?n.indexOf(document.activeElement):0;i===-1||!o&&i+1===n.length?i=0:o&&i===0?i=n.length-1:i+=o?-1:1,n[i].focus()}),_(this,"isHidden",r=>{const n=r.offsetWidth<=0&&r.offsetHeight<=0,o=window.getComputedStyle(r);return n&&!r.innerHTML?!0:n&&o.getPropertyValue("overflow")!=="visible"||o.getPropertyValue("display")==="none"}),_(this,"isVisible",r=>{let n=r;for(;n;)if(n instanceof HTMLElement){if(n===document.body)break;if(this.isHidden(n))return!1;n=n.parentNode}return!0}),_(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),_(this,"checkFocus",r=>{document.activeElement!==r&&(r.focus(),window.requestAnimationFrame(()=>this.checkFocus(r)))}),_(this,"setFocus",()=>{const{selector:r}=this.options;if(!r)return;const n=this.element.querySelector(r);n&&window.requestAnimationFrame(()=>this.checkFocus(n))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}};function ps(e){const{beaconComponent:t,continuous:r,index:n,isLastStep:o,locale:i,onClickOrHover:l,shouldFocus:a,size:s,step:u,styles:c}=e,f=h.useRef(null);Lt(()=>{if(t)return;const g=document.head||document.getElementsByTagName("head")[0],y=document.createElement("style");y.id="joyride-beacon-animation",e.nonce&&y.setAttribute("nonce",e.nonce),y.appendChild(document.createTextNode(`
2        @keyframes joyride-beacon-inner {
3          20% {
4            opacity: 0.9;
5          }
6        
7          90% {
8            opacity: 0.7;
9          }
10        }
11        
12        @keyframes joyride-beacon-outer {
13          0% {
14            transform: scale(1);
15          }
16        
17          45% {
18            opacity: 0.7;
19            transform: scale(0.75);
20          }
21        
22          100% {
23            opacity: 0.9;
24            transform: scale(1);
25          }
26        }
27      `)),g.appendChild(y)}),ot(()=>{setTimeout(()=>{b.domElement(f.current)&&a&&f.current.focus()},0)}),St(()=>{const g=document.getElementById("joyride-beacon-animation");g?.parentNode&&g.parentNode.removeChild(g)});const d=g=>{f.current=g},p=be(i.open),v={"aria-label":p,onClick:l,onMouseEnter:l,ref:d,title:p};let m;if(t){const g=t;m=P.jsx(g,{continuous:r,index:n,isLastStep:o,size:s,step:u,...v})}else m=P.jsxs("button",{className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...v,children:[P.jsx("span",{style:c.beaconInner}),P.jsx("span",{style:c.beaconOuter})]},"JoyrideBeacon");return m}function hs({styles:e,...t}){const{color:r,height:n,width:o,...i}=e;return P.jsx("button",{style:i,type:"button",...t,children:P.jsx("svg",{height:typeof n=="number"?`${n}px`:n,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof o=="number"?`${o}px`:o,xmlns:"http://www.w3.org/2000/svg",children:P.jsx("g",{children:P.jsx("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r})})})})}function ms(e){const{backProps:t,closeProps:r,index:n,isLastStep:o,primaryProps:i,skipProps:l,step:a,tooltipProps:s}=e,{content:u,hideBackButton:c,hideCloseButton:f,hideFooter:d,showSkipButton:p,styles:v,title:m}=a,g={};return g.primary=P.jsx("button",{"data-test-id":"button-primary",style:v.buttonNext,type:"button",...i}
27),p&&!o&&(g.skip=P.jsx("button",{"aria-live":"off","data-test-id":"button-skip",style:v.buttonSkip,type:"button",...l})),!c&&n>0&&(g.back=P.jsx("button",{"data-test-id":"button-back",style:v.buttonBack,type:"button",...t})),g.close=!f&&P.jsx(hs,{"data-test-id":"button-close",styles:v.buttonClose,...r}),P.jsxs("div",{"aria-label":be(m??u),className:"react-joyride__tooltip",style:v.tooltip,...s,children:[P.jsxs("div",{style:v.tooltipContainer,children:[m&&P.jsx("h1",{"aria-label":be(m),style:v.tooltipTitle,children:m}),P.jsx("div",{style:v.tooltipContent,children:u})]}),!d&&P.jsxs("div",{style:v.tooltipFooter,children:[P.jsx("div",{style:v.tooltipFooterSpacer,children:g.skip}),g.back,g.primary]}),g.close]},"JoyrideTooltip")}function gs(e){const{continuous:t,helpers:r,index:n,isLastStep:o,setTooltipRef:i,size:l,step:a}=e,s=y=>{y.preventDefault(),r.prev()},u=y=>{y.preventDefault(),r.close("button_close")},c=y=>{if(y.preventDefault(),!t){r.close("button_primary");return}r.next()},f=y=>{y.preventDefault(),r.skip()},d=()=>{const{back:y,close:S,last:k,next:w,nextLabelWithProgress:O,skip:I}=a.locale,R=be(y),B=be(S),A=be(k),j=be(w),x=be(I);let U=S,$=B;if(t){if(U=w,$=j,a.showProgress&&!o){const q=be(O,{step:n+1,steps:l});U=Mt(O,n+1,l),$=q}o&&(U=k,$=A)}return{backProps:{"aria-label":R,children:y,"data-action":"back",onClick:s,role:"button",title:R},closeProps:{"aria-label":B,children:S,"data-action":"close",onClick:u,role:"button",title:B},primaryProps:{"aria-label":$,children:U,"data-action":"primary",onClick:c,role:"button",title:$},skipProps:{"aria-label":x,children:I,"data-action":"skip",onClick:f,role:"button",title:x},tooltipProps:{"aria-modal":!0,ref:i,role:"alertdialog"}}},{beaconComponent:p,tooltipComponent:v,...m}=a;let g;if(v){const y={...d(),continuous:t,index:n,isLastStep:o,size:l,step:m,setTooltipRef:i},S=v;g=P.jsx(S,{...y})}else g=P.jsx(ms,{...d(),continuous:t,index:n,isLastStep:o,size:l,step:a});return g}function ys(e){const{cleanupPoppers:t,continuous:r,debug:n,helpers:o,index:i,lifecycle:l,nonce:a,setPopper:s,shouldScroll:u,size:c,step:f,updateState:d}=e,p=h.useRef(null),v=h.useRef(null),{changed:m,changedFrom:g}=Fe(e);ot(()=>{Me({title:`step:${i}`,data:[{key:"props",value:e}],debug:n})}),St(()=>{var O;(O=p.current)==null||O.removeScope()}),h.useEffect(()=>{var O;m("lifecycle",C.TOOLTIP)&&u&&v.current&&(p.current=new ds(v.current,{selector:"[data-action=primary]"}),p.current.setFocus()),g("lifecycle",[C.TOOLTIP,C.INIT],C.INIT)&&((O=p.current)==null||O.removeScope(),t())},[m,g,t,u]);const y=O=>{O.type==="mouseenter"&&f.event!=="hover"||d({lifecycle:C.TOOLTIP})},S=O=>{v.current=O},k=Te(f.target);if(!Gr(f)||!b.domElement(k))return null;const w=O=>P.jsx(gs,{continuous:r,helpers:o,index:i,isLastStep:i+1===c,setTooltipRef:S,size:c,step:f,...O});return P.jsx("div",{className:"react-joyride__step",children:P.jsx(ji,{...f.floaterProps,component:w,debug:n,getPopper:s,id:`react-joyride-step-${i}`,open:l===C.TOOLTIP,placement:f.placement,portalElement:`#${zr}`,target:f.target,children:P.jsx(ps,{beaconComponent:f.beaconComponent,continuous:r,index:i,isLastStep:i+1===c,locale:f.locale,nonce:a,onClickOrHover:y,shouldFocus:u,size:c,step:f,styles:f.styles})},`JoyrideStep-${i}`)})}function vs(e){const t=Yi(es,e),{continuous:r,debug:n,disableCloseOnEsc:o,nonce:i,portalElement:l,scrollToFirstStep:a,steps:s}=t,u=as(t),c=ls(l);Lt(()=>{Me({title:"init",data:[{key:"props",value:e},{key:"state",value:u.current.getState()}],debug:n})}),h.useEffect(()=>{const S=k=>{const{index:w,lifecycle:O}=u.current.getState(),I=s[w];O===C.TOOLTIP&&k.code==="Escape"&&!I.disableCloseOnEsc&&u.current.close("keyboard")};return o||document.body.addEventListener("keydown",S,{passive:!0}),()=>{o||document.body.removeEventListener("keydown",S)}},[o,s,u]);const{index:f,lifecycle:d,status:p}=u.current.getState(),v=p===M.RUNNING,m={},g=h.useMemo(()=>Et(e,s[f]),[f,e,s]),y=()=>{g?.disableOverlayClose||u.current.close("overlay")};return g?(v&&(m.step=P.jsx(ys,{...u.current.getState(),cleanupPoppers:u.current.cleanupPoppers,continuous:r,debug:n,helpers:u.current.getHelpers(),nonce:i,setPopper:u.current.setPopper,shouldScroll:!g.disableScrolling&&(f!==0||a),step:g,updateState:u.current.updateState}),m.overlay=P.jsx(fs,{element:c,children:P.jsx(us,{...g,continuous:r,debug:n,lifecycle:d,onClickOverlay:y})})),P.jsxs("div",{className:"react-joyride",children:[m.step,m.overlay]})):null}function bs(e){return _i()?P.jsx(vs,{...e}):null}function Ps({isRunning:e,stepIndex:t,steps:r,onStepChange:n,onComplete:o,onStop:i}){const l=a=>{const{action:s,index:u,status:c,type:f}=a,d=r[u];if(f===de.STEP_AFTER&&d&&(Yr(d.id),dt("onboarding_tour_step_completed",{step_id:d.id,step_
27name:d.id.replace(/-/g," "),step_number:u+1,total_steps:r.length,progress_percentage:Math.round((u+1)/r.length*100),category:d.category})),c===M.FINISHED){Kr(),dt("onboarding_tour_completed",{total_steps:r.length,steps_completed:r.length,completion_rate:100}),o();return}if(c===M.SKIPPED||s===D.CLOSE){Xr();const p=u,v=Math.round(p/r.length*100);dt("onboarding_tour_abandoned",{total_steps:r.length,steps_completed:p,completion_rate:v,abandoned_at_step:u,abandoned_step_id:d?.id,abandoned_step_name:d?.id?.replace(/-/g," "),action:s===D.CLOSE?"closed":"skipped"}),i();return}f===de.STEP_AFTER&&(s===D.NEXT?n(u+1):s===D.PREV&&n(u-1)),f===de.TARGET_NOT_FOUND&&(n(u+1),dt("onboarding_tour_target_not_found",{step_id:d?.id,step_index:u}))};return P.jsx(bs,{callback:l,continuous:!0,hideCloseButton:!1,run:e,scrollToFirstStep:!0,showProgress:!0,showSkipButton:!0,stepIndex:t,steps:r,styles:Jr,locale:Zr,floaterProps:Qr,disableOverlayClose:!1,spotlightClicks:!0,disableScrolling:!1})}export{Ps as LazyJoyrideWrapper};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.