1import{$ as ft,Ad as dn,Ca as ln,Hd as Ne,J as tn,N as nn,Nd as fn,O as $e,Oa as cn,Qa as un,Rf as yn,Sf as vn,Vd as hn,Ve as mn,aa as rn,b as Xt,be as pn,c as Zt,ca as on,d as _,da as sn,dg as Sn,ea as an,ga as Ge,kf as bn,le as gn,ma as z,n as Be,pa as M,qa as ge,qg as wn,r as Ce,s as Jt,v as en}from"./chunk-EK34WFHG.js";import{a as Te,b as Gt,f as X}from"./chunk-RBO75H4S.js";function vr(t){return t instanceof Element}function Ue(t){return t instanceof HTMLElement}function ue(t){return typeof t=="function"}function We(t){return typeof t=="string"}function F(t){return t===void 0}var Ve=class{on(e,n,r,i=!1){var o;return F(this.bindings)&&(this.bindings={}),F(this.bindings[e])&&(this.bindings[e]=[]),(o=this.bindings[e])==null||o.push({handler:n,ctx:r,once:i}),this}once(e,n,r){return this.on(e,n,r,!0)}off(e,n){if(F(this.bindings)||F(this.bindings[e]))return this;if(F(n))delete this.bindings[e];else{var r;(r=this.bindings[e])==null||r.forEach((i,o)=>{if(i.handler===n){var s;(s=this.bindings[e])==null||s.splice(o,1)}})}return this}trigger(e,...n){if(!F(this.bindings)&&this.bindings[e]){var r;(r=this.bindings[e])==null||r.forEach((i,o)=>{let{ctx:s,handler:a,once:l}=i,c=s||this;if(a.apply(c,n),l){var f;(f=this.bindings[e])==null||f.splice(o,1)}})}return this}};function j(){return j=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},j.apply(null,arguments)}function Ut(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}var fe={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};fe.defaultMerge;function Sr(t,e){return e}function wr(t,e){return t.filter(n=>n!==void 0)}function xn(t){return typeof t!="object"||t===null?0:Array.isArray(t)?2:Ir(t)?1:t instanceof Set?3:t instanceof Map?4:5}function xr(t){let e=new Set;for(let n of t)for(let r of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])e.add(r);return e}function Pr(t,e){return typeof t=="object"&&Object.prototype.propertyIsEnumerable.call(t,e)}function qn(t){return{*[Symbol.iterator](){for(let e of t)for(let n of e)yield n}}}var Pn=new Set(["[object Object]","[object Module]"]);function Ir(t){if(!Pn.has(Object.prototype.toString.call(t)))return!1;let{constructor:e}=t;if(e===void 0)return!0;let n=e.prototype;return!(n===null||typeof n!="object"||!Pn.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}function Or(t,e,n){let r={};for(let i of xr(t)){let o=[];for(let l of t)Pr(l,i)&&o.push(l[i]);if(o.length===0)continue;let s=e.metaDataUpdater(n,{key:i,parents:t}),a=Kn(o,e,s);a!==fe.skip&&(i==="__proto__"?Object.defineProperty(r,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):r[i]=a)}return r}function Tr(t){return t.flat()}function Cr(t){return new Set(qn(t))}function _r(t){return new Map(qn(t))}function Er(t){return t.at(-1)}var Xe={mergeRecords:Or,mergeArrays:Tr,mergeSets:Cr,mergeMaps:_r,mergeOthers:Er};function Ft(...t){return Ar({})(...t)}function Ar(t,e){let n=Dr(t,r);function r(...i){return Kn(i,n,e)}return r}function Dr(t,e){var n,r,i;return{defaultMergeFunctions:Xe,mergeFunctions:j({},Xe,Object.fromEntries(Object.entries(t).filter(([o,s])=>Object.hasOwn(Xe,o)).map(([o,s])=>s===!1?[o,Xe.mergeOthers]:[o,s]))),metaDataUpdater:(n=t.metaDataUpdater)!=null?n:Sr,deepmerge:e,useImplicitDefaultMerging:(r=t.enableImplicitDefaultMerging)!=null?r:!1,filterValues:t.filterValues===!1?void 0:(i=t.filterValues)!=null?i:wr,actions:fe}}function Kn(t,e,n){var r;let i=(r=e.filterValues==null?void 0:e.filterValues(t,n))!=null?r:t;if(i.length===0)return;if(i.length===1)return ht(i,e,n);let o=xn(i[0]);if(o!==0&&o!==5){for(let s=1;s<i.length;s++)if(xn(i[s])!==o)return ht(i,e,n)}switch(o){case 1:return Lr(i,e,n);case 2:return Ur(i,e,n);
1case 3:return Fr(i,e,n);case 4:return kr(i,e,n);default:return ht(i,e,n)}}function Lr(t,e,n){let r=e.mergeFunctions.mergeRecords(t,e,n);return r===fe.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeRecords!==e.defaultMergeFunctions.mergeRecords?e.defaultMergeFunctions.mergeRecords(t,e,n):r}function Ur(t,e,n){let r=e.mergeFunctions.mergeArrays(t,e,n);return r===fe.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeArrays!==e.defaultMergeFunctions.mergeArrays?e.defaultMergeFunctions.mergeArrays(t):r}function Fr(t,e,n){let r=e.mergeFunctions.mergeSets(t,e,n);return r===fe.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeSets!==e.defaultMergeFunctions.mergeSets?e.defaultMergeFunctions.mergeSets(t):r}function kr(t,e,n){let r=e.mergeFunctions.mergeMaps(t,e,n);return r===fe.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeMaps!==e.defaultMergeFunctions.mergeMaps?e.defaultMergeFunctions.mergeMaps(t):r}function ht(t,e,n){let r=e.mergeFunctions.mergeOthers(t,e,n);return r===fe.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeOthers!==e.defaultMergeFunctions.mergeOthers?e.defaultMergeFunctions.mergeOthers(t):r}function kt(t){let e=Object.getOwnPropertyNames(t.constructor.prototype);for(let n=0;n<e.length;n++){let r=e[n],i=t[r];r!=="constructor"&&typeof i=="function"&&(t[r]=i.bind(t))}return t}function Rr(t,e){return n=>{if(t.isOpen()){let r=t.el&&n.currentTarget===t.el;(!F(e)&&n.currentTarget.matches(e)||r)&&t.tour.next()}}}function Mr(t){let{event:e,selector:n}=t.options.advanceOn||{};if(e){let r=Rr(t,n),i=null;if(!F(n)&&(i=document.querySelector(n),!i))return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);i?(i.addEventListener(e,r),t.on("destroy",()=>i.removeEventListener(e,r))):(document.body.addEventListener(e,r,!0),t.on("destroy",()=>document.body.removeEventListener(e,r,!0)))}else return console.error("advanceOn was defined, but no event name was passed.")}var mt=class{constructor(e){}},bt=class{constructor(e,n){}};function Qn(t){return!We(t)||t===""?"":t.charAt(t.length-1)!=="-"?`${t}-`:t}function jr(t){let e=t.options.attachTo||{},n=Object.assign({},e);if(ue(n.element)&&(n.element=n.element.call(t)),We(n.element)){try{n.element=document.querySelector(n.element)}catch(r){}n.element||console.error(`The element for this Shepherd step was not found ${e.element}`)}return n}function Br(t){return t.options.extraHighlights?t.options.extraHighlights.flatMap(e=>Array.from(document.querySelectorAll(e))):[]}function Yn(t){return t==null?!0:!t.element||!t.on}function $n(){let t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(e=="x"?n:n&3|8).toString(16)})}var Nr=["top","right","bottom","left"],In=["start","end"],On=Nr.reduce((t,e)=>t.concat(e,e+"-"+In[0],e+"-"+In[1]),[]),Fe=Math.min,be=Math.max,et=Math.round,Ze=Math.floor,Z=t=>({x:t,y:t}),Hr={left:"right",right:"left",bottom:"top",top:"bottom"},Wr={start:"end",end:"start"};function yt(t,e,n){return be(t,Fe(e,n))}function we(t,e){return typeof t=="function"?t(e):t}function re(t){return t.split("-")[0]}function ne(t){return t.split("-")[1]}function Rt(t){return t==="x"?"y":"x"}function Mt(t){return t==="y"?"height":"width"}function ye(t){return["top","bottom"].includes(re(t))?"y":"x"}function jt(t){return Rt(ye(t))}function Gn(t,e,n){n===void 0&&(n=!1);let r=ne(t),i=jt(t),o=Mt(i),s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=nt(s)),[s,nt(s)]}function Vr(t){let e=nt(t);return[tt(t),e,tt(e)]}function tt(t){return t.replace(/start|end/g,e=>Wr[e])}function zr(t,e,n){let r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:r:e?r:i;case"left":case"right":return e?o:s;default:return[]}}function qr(t,e,n,r){let i=ne(t),o=zr(re(t),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),e&&(o=o.concat(o.map(tt)))),o}function nt(t){return t.replace(/left|right|bottom|top/g,e=>Hr[e])}function Kr(t){return j({top:0,right:0,bottom:0,left:0},t)}function Xn(t){return typeof t!="number"?Kr(t):{top:t,right:t,bottom:t,left:t}}function rt(t){let{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}var Qr=["crossAxis","alignment","allowedPlacements","autoAlignment"],Yr=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],$r=["mainAxis","crossAxis","limiter"];function Tn(t,e,n){let{reference:r,floating:i}=t,o=ye(e),s=jt(e),a=Mt(s),l=re(e),c=o==="y",f=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,u=r[a]/2-i[a]/2,h;switch(l){case"top":h={x:f,y:r.y-i.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(ne(e)){case"start":h[s]-=u*(n&&c?-1:1);break;case"end":h[s]+=u*(n&&c?-1:1);break}return h}var Gr=(t,e,n)=>X(null,null,function*(){let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}
1=n,a=o.filter(Boolean),l=yield s.isRTL==null?void 0:s.isRTL(e),c=yield s.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:d}=Tn(c,r,l),u=r,h={},b=0;for(let g=0;g<a.length;g++){let{name:S,fn:y}=a[g],{x,y:w,data:m,reset:v}=yield y({x:f,y:d,initialPlacement:r,placement:u,strategy:i,middlewareData:h,rects:c,platform:s,elements:{reference:t,floating:e}});f=x??f,d=w??d,h=j({},h,{[S]:j({},h[S],m)}),v&&b<=50&&(b++,typeof v=="object"&&(v.placement&&(u=v.placement),v.rects&&(c=v.rects===!0?yield s.getElementRects({reference:t,floating:e,strategy:i}):v.rects),{x:f,y:d}=Tn(c,u,l)),g=-1)}return{x:f,y:d,placement:u,strategy:i,middlewareData:h}});function Bt(t,e){return X(this,null,function*(){var n;e===void 0&&(e={});let{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:u=!1,padding:h=0}=we(e,t),b=Xn(h),S=a[u?d==="floating"?"reference":"floating":d],y=rt(yield o.getClippingRect({element:(n=yield o.isElement==null?void 0:o.isElement(S))==null||n?S:S.contextElement||(yield o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:l})),x=d==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=yield o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating),m=(yield o.isElement==null?void 0:o.isElement(w))?(yield o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},v=rt(o.convertOffsetParentRelativeRectToViewportRelativeRect?yield o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:w,strategy:l}):x);return{top:(y.top-v.top+b.top)/m.y,bottom:(v.bottom-y.bottom+b.bottom)/m.y,left:(y.left-v.left+b.left)/m.x,right:(v.right-y.right+b.right)/m.x}})}var Xr=t=>({name:"arrow",options:t,fn(n){return X(this,null,function*(){let{x:r,y:i,placement:o,rects:s,platform:a,elements:l,middlewareData:c}=n,{element:f,padding:d=0}=we(t,n)||{};if(f==null)return{};let u=Xn(d),h={x:r,y:i},b=jt(o),g=Mt(b),S=yield a.getDimensions(f),y=b==="y",x=y?"top":"left",w=y?"bottom":"right",m=y?"clientHeight":"clientWidth",v=s.reference[g]+s.reference[b]-h[b]-s.floating[g],C=h[b]-s.reference[b],E=yield a.getOffsetParent==null?void 0:a.getOffsetParent(f),D=E?E[m]:0;(!D||!(yield a.isElement==null?void 0:a.isElement(E)))&&(D=l.floating[m]||s.floating[g]);let k=v/2-C/2,p=D/2-S[g]/2-1,O=Fe(u[x],p),L=Fe(u[w],p),P=O,R=D-S[g]-L,U=D/2-S[g]/2+k,V=yt(P,U,R),se=!c.arrow&&ne(o)!=null&&U!==V&&s.reference[g]/2-(U<P?O:L)-S[g]/2<0,H=se?U<P?U-P:U-R:0;return{[b]:h[b]+H,data:j({[b]:V,centerOffset:U-V-H},se&&{alignmentOffset:H}),reset:se}})}});function Zr(t,e,n){return(t?[...n.filter(i=>ne(i)===t),...n.filter(i=>ne(i)!==t)]:n.filter(i=>re(i)===i)).filter(i=>t?ne(i)===t||(e?tt(i)!==i:!1):!0)}var Jr=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,fn(r){return X(this,null,function*(){var i,o,s;let{rects:a,middlewareData:l,placement:c,platform:f,elements:d}=r,u=we(e,r),{crossAxis:h=!1,alignment:b,allowedPlacements:g=On,autoAlignment:S=!0}=u,y=Ut(u,Qr),x=b!==void 0||g===On?Zr(b||null,S,g):g,w=yield Bt(r,y),m=((i=l.autoPlacement)==null?void 0:i.index)||0,v=x[m];if(v==null)return{};let C=Gn(v,a,yield f.isRTL==null?void 0:f.isRTL(d.floating));if(c!==v)return{reset:{placement:x[0]}};let E=[w[re(v)],w[C[0]],w[C[1]]],D=[...((o=l.autoPlacement)==null?void 0:o.overflows)||[],{placement:v,overflows:E}],k=x[m+1];if(k)return{data:{index:m+1,overflows:D},reset:{placement:k}};let p=D.map(P=>{let R=ne(P.placement);return[P.placement,R&&h?P.overflows.slice(0,2).reduce((U,V)=>U+V,0):P.overflows[0],P.overflows]}).sort((P,R)=>P[1]-R[1]),L=((s=p.filter(P=>P[2].slice(0,ne(P[0])?2:3).every(R=>R<=0))[0])==null?void 0:s[0])||p[0][0];return L!==c?{data:{index:m+1,overflows:D},reset:{placement:L}}:{}})}}},ei=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(r){return X(this,null,function*(){var i,o;let{placement:s,middlewareData:a,rects:l,initialPlacement:c,platform:f,elements:d}=r,u=we(e,r),{mainAxis:h=!0,crossAxis:b=!0,fallbackPlacements:g,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:x=!0}=u,w=Ut(u,Yr);if((i=a.arrow)!=null&&i.alignmentOffset)return{};let m=re(s),v=ye(c),C=re(c)===c,E=yield f.isRTL==null?void 0:f.isRTL(d.floating),D=g||(C||!x?[
1nt(c)]:Vr(c)),k=y!=="none";!g&&k&&D.push(...qr(c,x,y,E));let p=[c,...D],O=yield Bt(r,w),L=[],P=((o=a.flip)==null?void 0:o.overflows)||[];if(h&&L.push(O[m]),b){let H=Gn(s,l,E);L.push(O[H[0]],O[H[1]])}if(P=[...P,{placement:s,overflows:L}],!L.every(H=>H<=0)){var R,U;let H=(((R=a.flip)==null?void 0:R.index)||0)+1,Oe=p[H];if(Oe){var V;let ae=b==="alignment"?v!==ye(Oe):!1,G=((V=P[0])==null?void 0:V.overflows[0])>0;if(!ae||G)return{data:{index:H,overflows:P},reset:{placement:Oe}}}let $=(U=P.filter(ae=>ae.overflows[0]<=0).sort((ae,G)=>ae.overflows[1]-G.overflows[1])[0])==null?void 0:U.placement;if(!$)switch(S){case"bestFit":{var se;let ae=(se=P.filter(G=>{if(k){let le=ye(G.placement);return le===v||le==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(le=>le>0).reduce((le,yr)=>le+yr,0)]).sort((G,le)=>G[1]-le[1])[0])==null?void 0:se[0];ae&&($=ae);break}case"initialPlacement":$=c;break}if(s!==$)return{reset:{placement:$}}}return{}})}}},ti=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(r){return X(this,null,function*(){let{x:i,y:o,placement:s}=r,a=we(e,r),{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:w=>{let{x:m,y:v}=w;return{x:m,y:v}}}}=a,d=Ut(a,$r),u={x:i,y:o},h=yield Bt(r,d),b=ye(re(s)),g=Rt(b),S=u[g],y=u[b];if(l){let w=g==="y"?"top":"left",m=g==="y"?"bottom":"right",v=S+h[w],C=S-h[m];S=yt(v,S,C)}if(c){let w=b==="y"?"top":"left",m=b==="y"?"bottom":"right",v=y+h[w],C=y-h[m];y=yt(v,y,C)}let x=f.fn(j({},r,{[g]:S,[b]:y}));return j({},x,{data:{x:x.x-i,y:x.y-o,enabled:{[g]:l,[b]:c}}})})}}},ni=function(e){return e===void 0&&(e={}),{options:e,fn(n){let{x:r,y:i,placement:o,rects:s,middlewareData:a}=n,{offset:l=0,mainAxis:c=!0,crossAxis:f=!0}=we(e,n),d={x:r,y:i},u=ye(o),h=Rt(u),b=d[h],g=d[u],S=we(l,n),y=typeof S=="number"?{mainAxis:S,crossAxis:0}:j({mainAxis:0,crossAxis:0},S);if(c){let m=h==="y"?"height":"width",v=s.reference[h]-s.floating[m]+y.mainAxis,C=s.reference[h]+s.reference[m]-y.mainAxis;b<v?b=v:b>C&&(b=C)}if(f){var x,w;let m=h==="y"?"width":"height",v=["top","left"].includes(re(o)),C=s.reference[u]-s.floating[m]+(v&&((x=a.offset)==null?void 0:x[u])||0)+(v?0:y.crossAxis),E=s.reference[u]+s.reference[m]+(v?0:((w=a.offset)==null?void 0:w[u])||0)-(v?y.crossAxis:0);g<C?g=C:g>E&&(g=E)}return{[h]:b,[u]:g}}}};function ot(){return typeof window<"u"}function je(t){return Zn(t)?(t.nodeName||"").toLowerCase():"#document"}function B(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function te(t){var e;return(e=(Zn(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Zn(t){return ot()?t instanceof Node||t instanceof B(t).Node:!1}function q(t){return ot()?t instanceof Element||t instanceof B(t).Element:!1}function J(t){return ot()?t instanceof HTMLElement||t instanceof B(t).HTMLElement:!1}function Cn(t){return!ot()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof B(t).ShadowRoot}function Qe(t){let{overflow:e,overflowX:n,overflowY:r,display:i}=K(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function ri(t){return["table","td","th"].includes(je(t))}function st(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch(n){return!1}})}function Nt(t){let e=Ht(),n=q(t)?K(t):t;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function ii(t){let e=de(t);for(;J(e)&&!ke(e);){if(Nt(e))return e;if(st(e))return null;e=de(e)}return null}function Ht(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ke(t){return["html","body","#document"].includes(je(t))}function K(t){return B(t).getComputedStyle(t)}function at(t){return q(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function de(t){if(je(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Cn(t)&&t.host||te(t);return Cn(e)?e.host:e}function Jn(t){let e=de(t);return ke(e)?t.ownerDocument?t.ownerDocument.body:t.body:J(e)&&Qe(e)?e:Jn(e)}function ze(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);let i=Jn(t),o=i===((r=t.ownerDocument)==null?void 0:r.body),s=B(i);if(o){let a=vt(s);
vendor: 7,641 bytes, line 1
1return e.concat(s,s.visualViewport||[],Qe(i)?i:[],a&&n?ze(a):[])}return e.concat(i,ze(i,[],n))}function vt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function er(t){let e=K(t),n=parseFloat(e.width)||0,r=parseFloat(e.height)||0,i=J(t),o=i?t.offsetWidth:n,s=i?t.offsetHeight:r,a=et(n)!==o||et(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Wt(t){return q(t)?t:t.contextElement}function De(t){let e=Wt(t);if(!J(e))return Z(1);let n=e.getBoundingClientRect(),{width:r,height:i,$:o}=er(e),s=(o?et(n.width):n.width)/r,a=(o?et(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var oi=Z(0);function tr(t){let e=B(t);return!Ht()||!e.visualViewport?oi:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function si(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==B(t)?!1:e}function xe(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);let i=t.getBoundingClientRect(),o=Wt(t),s=Z(1);e&&(r?q(r)&&(s=De(r)):s=De(t));let a=si(o,n,r)?tr(o):Z(0),l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,f=i.width/s.x,d=i.height/s.y;if(o){let u=B(o),h=r&&q(r)?B(r):r,b=u,g=vt(b);for(;g&&r&&h!==b;){let S=De(g),y=g.getBoundingClientRect(),x=K(g),w=y.left+(g.clientLeft+parseFloat(x.paddingLeft))*S.x,m=y.top+(g.clientTop+parseFloat(x.paddingTop))*S.y;l*=S.x,c*=S.y,f*=S.x,d*=S.y,l+=w,c+=m,b=B(g),g=vt(b)}}return rt({width:f,height:d,x:l,y:c})}function Vt(t,e){let n=at(t).scrollLeft;return e?e.left+n:xe(te(t)).left+n}function nr(t,e,n){n===void 0&&(n=!1);let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-(n?0:Vt(t,r)),o=r.top+e.scrollTop;return{x:i,y:o}}function ai(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t,o=i==="fixed",s=te(r),a=e?st(e.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=Z(1),f=Z(0),d=J(r);if((d||!d&&!o)&&((je(r)!=="body"||Qe(s))&&(l=at(r)),J(r))){let h=xe(r);c=De(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}let u=s&&!d&&!o?nr(s,l,!0):Z(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+f.x+u.x,y:n.y*c.y-l.scrollTop*c.y+f.y+u.y}}function li(t){return Array.from(t.getClientRects())}function ci(t){let e=te(t),n=at(t),r=t.ownerDocument.body,i=be(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=be(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+Vt(t),a=-n.scrollTop;return K(r).direction==="rtl"&&(s+=be(e.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function ui(t,e){let n=B(t),r=te(t),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let c=Ht();(!c||c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function di(t,e){let n=xe(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,o=J(t)?De(t):Z(1),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:s,height:a,x:l,y:c}}function _n(t,e,n){let r;if(e==="viewport")r=ui(t,n);else if(e==="document")r=ci(te(t));else if(q(e))r=di(e,n);else{let i=tr(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return rt(r)}function rr(t,e){let n=de(t);return n===e||!q(n)||ke(n)?!1:K(n).position==="fixed"||rr(n,e)}function fi(t,e){let n=e.get(t);if(n)return n;let r=ze(t,[],!1).filter(a=>q(a)&&je(a)!=="body"),i=null,o=K(t).position==="fixed",s=o?de(t):t;for(;q(s)&&!ke(s);){let a=K(s),l=Nt(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Qe(s)&&!l&&rr(t,s))?r=r.filter(f=>f!==s):i=a,s=de(s)}return e.set(t,r),r}function hi(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t,s=[...n==="clippingAncestors"?st(e)?[]:fi(e,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,f)=>{let d=_n(e,f,i);return c.top=be(d.top,c.top),c.right=Fe(d.right,c.right),c.bottom=Fe(d.bottom,c.bottom),c.left=be(d.left,c.left),c},_n(e,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function pi(t){let{width:e,height:n}=er(t);return{width:e,height:n}}function gi(t,e,n){let r=J(e),i=te(e),o=n==="fixed",s=xe(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=Z(0);function c(){l.x=Vt(i)}if(r||!r&&!o)if((je(e)!=="body"||Qe(i))&&(a=at(e)),r){let h=xe(e,!0,o,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else i&&c();o&&!r&&i&&c();let f=i&&!r&&!o?nr(i,a):Z(0),d=s.left+a.scrollLeft-l.x-f.x,u=s.top+a.scrollTop-l.y-f.y;return{x:d,y:u,width:s.width,height:s.height}}function pt(t){return K(t).position==="static"}function En(t,e){if(!J(t)||K(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return te(t)===n&&(n=n.ownerDocument.body),n}function ir(t,e){let n=B(t);if(st(t))return n;if(!J(t)){let i=de(t);for(;i&&!ke(i);){if(q(i)&&!pt(i))return i;i=de(i)}return n}let r=En(t,e);for(;r&&ri(r)&&pt(r);)r=En(r,e);return r&&ke(r)&&pt(r)&&!Nt(r)?n:r||ii(t)||n}var mi=function(e){return X(this,null,function*(){let n=this.getOffsetParent||ir,r=this.getDimensions,i=yield r(e.floating);return{reference:gi(e.reference,yield n(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}})};function bi(t){return K(t).direction==="rtl"}var yi={convertOffsetParentRelativeRectToViewportRelativeRect:ai,getDocumentElement:te,getClippingRect:hi,getOffsetParent:ir,getElementRects:mi,getClientRects:li,getDimensions:pi,getScale:De,isElement:q,isRTL:bi};function or(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function vi(t,e){let n=null,r,i=te(t);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();let c=t.getBoundingClientRect(),{left:f,top:d,width:u,height:h}=c;if(a||e(),!u||!h)return;let b=Ze(d),g=Ze(i.clientWidth-(f+u)),S=Ze(i.clientHeight-(d+h)),y=Ze(f),w={rootMargin:-b+"px "+-g+"px "+-S+"px "+-y+"px",threshold:be(0,Fe(1,l))||1},m=!0;function v(C){let E=C[0].intersectionRatio;if(E!==l){if(!m)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!or(c,t.getBoundingClientRect())&&s(),m=!1}try{n=new IntersectionObserver(v,j({},w,{root:i.ownerDocument}))}catch(C){n=new IntersectionObserver(v,w)}n.observe(t)}return s(!0),o}function Si(t,e,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Wt(t),f=i||o?[...c?ze(c):[],...ze(e)]:[];f.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),o&&y.addEventListener("resize",n)});let d=c&&a?vi(c,n):null,u=-1,h=null;s&&(h=new ResizeObserver(y=>{let[x]=y;x&&x.target===c&&h&&(h.unobserve(e),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(e)})),n()}),c&&!l&&h.observe(c),h.observe(e));let b,g=l?xe(t):null;l&&S();function S(){let y=xe(t);g&&!or(g,y)&&n(),g=y,b=requestAnimationFrame(S)}return n(),()=>{var y;f.forEach(x=>{i&&x.removeEventListener("scroll",n),o&&x.removeEventListener("resize",n)}),d?.(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(b)}}var wi=Jr,xi=ti,Pi=ei,Ii=Xr,Oi=ni,Ti=(t,e,n)=>{let r=new Map,i=j({platform:yi},n),o=j({},i.platform,{_c:r});return Gr(t,e,j({},i,{platform:o}))};function Ci(t){t.cleanup&&t.cleanup();let e=t._getResolvedAttachToOptions(),n=e.element,r=Ui(e,t),i=Yn(e);return i&&(n=document.body,t.shepherdElementComponent.getElement().classList.add("shepherd-centered")),t.cleanup=Si(n,t.el,()=>{if(!t.el){t.cleanup==null||t.cleanup();return}Ai(n,t,r,i)}),t.target=e.element,r}function _i(t,e){return{floatingUIOptions:Ft(t.floatingUIOptions||{},e.floatingUIOptions||{})}}function Ei(t){t.cleanup&&t.cleanup(),t.cleanup=null}function Ai(t,e,n,r){return Ti(t,e.el,n).then(Di(e,r)).then(i=>new Promise(o=>{setTimeout(()=>
1o(i),300)})).then(i=>{i!=null&&i.el&&(i.el.tabIndex=0,i.el.focus({preventScroll:!0}))})}function Di(t,e){return({x:n,y:r,placement:i,middlewareData:o})=>(t.el&&(e?Object.assign(t.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(t.el.style,{position:"absolute",left:`${n}px`,top:`${r}px`}),t.el.dataset.popperPlacement=i,Li(t.el,o)),t)}function Li(t,e){let n=t.querySelector(".shepherd-arrow");if(Ue(n)&&e.arrow){let{x:r,y:i}=e.arrow;Object.assign(n.style,{left:r!=null?`${r}px`:"",top:i!=null?`${i}px`:""})}}function Ui(t,e){var n,r,i;let o={strategy:"absolute"};o.middleware=[];let s=Fi(e),a=Yn(t),l=(n=t.on)==null?void 0:n.includes("auto"),c=(t==null||(r=t.on)==null?void 0:r.includes("-start"))||(t==null||(i=t.on)==null?void 0:i.includes("-end"));if(!a){if(l){var f;o.middleware.push(wi({crossAxis:!0,alignment:c?t==null||(f=t.on)==null?void 0:f.split("-").pop():null}))}else o.middleware.push(Pi());if(o.middleware.push(xi({limiter:Oi(),crossAxis:!0})),s){let d=typeof e.options.arrow=="object"?e.options.arrow:{padding:4};o.middleware.push(Ii({element:s,padding:c?d.padding:0}))}l||(o.placement=t.on)}return Ft(o,e.options.floatingUIOptions||{})}function Fi(t){return t.options.arrow&&t.el?t.el.querySelector(".shepherd-arrow"):!1}function N(){}function ki(t,e){for(let n in e)t[n]=e[n];return t}function sr(t){return t()}function An(){return Object.create(null)}function Ye(t){t.forEach(sr)}function zt(t){return typeof t=="function"}function ie(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function Ri(t){return Object.keys(t).length===0}function Re(t,e){t.appendChild(e)}function Y(t,e,n){t.insertBefore(e,n||null)}function W(t){t.parentNode&&t.parentNode.removeChild(t)}function Mi(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function ee(t){return document.createElement(t)}function Dn(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ar(t){return document.createTextNode(t)}function it(){return ar(" ")}function ji(){return ar("")}function lt(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function T(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}var Bi=["width","height"];function Ln(t,e){let n=Object.getOwnPropertyDescriptors(t.__proto__);for(let r in e)e[r]==null?t.removeAttribute(r):r==="style"?t.style.cssText=e[r]:r==="__value"?t.value=t[r]=e[r]:n[r]&&n[r].set&&Bi.indexOf(r)===-1?t[r]=e[r]:T(t,r,e[r])}function Ni(t){return Array.from(t.childNodes)}function _e(t,e,n){t.classList.toggle(e,!!n)}var qe;function He(t){qe=t}function qt(){if(!qe)throw new Error("Function called outside component initialization");return qe}function Hi(t){qt().$$.on_mount.push(t)}function Kt(t){qt().$$.after_update.push(t)}function Wi(t){qt().$$.on_destroy.push(t)}var Ae=[],Me=[],Le=[],Un=[],Vi=Promise.resolve(),St=!1;function zi(){St||(St=!0,Vi.then(lr))}function wt(t){Le.push(t)}var gt=new Set,Ee=0;function lr(){if(Ee!==0)return;let t=qe;do{try{for(;Ee<Ae.length;){let e=Ae[Ee];Ee++,He(e),qi(e.$$)}}catch(e){throw Ae.length=0,Ee=0,e}for(He(null),Ae.length=0,Ee=0;Me.length;)Me.pop()();for(let e=0;e<Le.length;e+=1){let n=Le[e];gt.has(n)||(gt.add(n),n())}Le.length=0}while(Ae.length);for(;Un.length;)Un.pop()();St=!1,gt.clear(),He(t)}function qi(t){if(t.fragment!==null){t.update(),Ye(t.before_update);let e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(wt)}}function Ki(t){let e=[],n=[];Le.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),Le=e}var Je=new Set,me;function ve(){me={r:0,c:[],p:me}}function Se(){me.r||Ye(me.c),me=me.p}function I(t,e){t&&t.i&&(Je.delete(t),t.i(e))}function A(t,e,n,r){if(t&&t.o){if(Je.has(t))return;Je.add(t),me.c.push(()=>{Je.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}function Fn(t){return t?.length!==void 0?t:Array.from(t)}function Qi(t,e){let n={},r={},i={$$scope:1},o=t.length;for(;o--;){let s=t[o],a=e[o];if(a){for(let l in s)l in a||(r[l]=1);for(let l in a)i[l]||(n[l]=a[l],i[l]=1);t[o]=a}else for(let l in s)i[l]=1}for(let s in r)s in n||(n[s]=void 0);return n}function Pe(t){t&&t.c()}function he(t,e,n){let{fragment:r,after_update:i}=t.$$;r&&r.m(e,n),wt(()=>{let o=t.$$.on_mount.map(sr).filter(zt);t.$$.on_destroy?t.$$.on_destroy.push(...o):Ye(o),t.$$.on_mount=[]}
1),i.forEach(wt)}function pe(t,e){let n=t.$$;n.fragment!==null&&(Ki(n.after_update),Ye(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Yi(t,e){t.$$.dirty[0]===-1&&(Ae.push(t),zi(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function oe(t,e,n,r,i,o,s=null,a=[-1]){let l=qe;He(t);let c=t.$$={fragment:null,ctx:[],props:o,update:N,not_equal:i,bound:An(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:An(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(c.root);let f=!1;if(c.ctx=n?n(t,e.props||{},(d,u,...h)=>{let b=h.length?h[0]:u;return c.ctx&&i(c.ctx[d],c.ctx[d]=b)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](b),f&&Yi(t,d)),u}):[],c.update(),f=!0,Ye(c.before_update),c.fragment=r?r(c.ctx):!1,e.target){if(e.hydrate){let d=Ni(e.target);c.fragment&&c.fragment.l(d),d.forEach(W)}else c.fragment&&c.fragment.c();e.intro&&I(t.$$.fragment),he(t,e.target,e.anchor),lr()}He(l)}var Q=class{constructor(){this.$$=void 0,this.$$set=void 0}$destroy(){pe(this,1),this.$destroy=N}$on(e,n){if(!zt(n))return N;let r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{let i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(e){this.$$set&&!Ri(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}},$i="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add($i);function Gi(t){let e,n,r,i,o;return{c(){e=ee("button"),T(e,"aria-label",n=t[3]?t[3]:null),T(e,"class",r=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),e.disabled=t[2],T(e,"tabindex","0"),T(e,"type","button")},m(s,a){Y(s,e,a),e.innerHTML=t[5],i||(o=lt(e,"click",function(){zt(t[0])&&t[0].apply(this,arguments)}),i=!0)},p(s,[a]){t=s,a&32&&(e.innerHTML=t[5]),a&8&&n!==(n=t[3]?t[3]:null)&&T(e,"aria-label",n),a&18&&r!==(r=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&T(e,"class",r),a&4&&(e.disabled=t[2])},i:N,o:N,d(s){s&&W(e),i=!1,o()}}}function Xi(t,e,n){let{config:r,step:i}=e,o,s,a,l,c,f;function d(u){return ue(u)?u=u.call(i):u}return t.$$set=u=>{"config"in u&&n(6,r=u.config),"step"in u&&n(7,i=u.step)},t.$$.update=()=>{t.$$.dirty&192&&(n(0,o=r.action?r.action.bind(i.tour):null),n(1,s=r.classes),n(2,a=r.disabled?d(r.disabled):!1),n(3,l=r.label?d(r.label):null),n(4,c=r.secondary),n(5,f=r.text?d(r.text):null))},[o,s,a,l,c,f,r,i]}var xt=class extends Q{constructor(e){super(),oe(this,e,Xi,Gi,ie,{config:6,step:7})}};function kn(t,e,n){let r=t.slice();return r[2]=e[n],r}function Rn(t){let e,n,r=Fn(t[1]),i=[];for(let s=0;s<r.length;s+=1)i[s]=Mn(kn(t,r,s));let o=s=>A(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();e=ji()},m(s,a){for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(s,a);Y(s,e,a),n=!0},p(s,a){if(a&3){r=Fn(s[1]);let l;for(l=0;l<r.length;l+=1){let c=kn(s,r,l);i[l]?(i[l].p(c,a),I(i[l],1)):(i[l]=Mn(c),i[l].c(),I(i[l],1),i[l].m(e.parentNode,e))}for(ve(),l=r.length;l<i.length;l+=1)o(l);Se()}},i(s){if(!n){for(let a=0;a<r.length;a+=1)I(i[a]);n=!0}}
1,o(s){i=i.filter(Boolean);for(let a=0;a<i.length;a+=1)A(i[a]);n=!1},d(s){s&&W(e),Mi(i,s)}}}function Mn(t){let e,n;return e=new xt({props:{config:t[2],step:t[0]}}),{c(){Pe(e.$$.fragment)},m(r,i){he(e,r,i),n=!0},p(r,i){let o={};i&2&&(o.config=r[2]),i&1&&(o.step=r[0]),e.$set(o)},i(r){n||(I(e.$$.fragment,r),n=!0)},o(r){A(e.$$.fragment,r),n=!1},d(r){pe(e,r)}}}function Zi(t){let e,n,r=t[1]&&Rn(t);return{c(){e=ee("footer"),r&&r.c(),T(e,"class","shepherd-footer")},m(i,o){Y(i,e,o),r&&r.m(e,null),n=!0},p(i,[o]){i[1]?r?(r.p(i,o),o&2&&I(r,1)):(r=Rn(i),r.c(),I(r,1),r.m(e,null)):r&&(ve(),A(r,1,1,()=>{r=null}),Se())},i(i){n||(I(r),n=!0)},o(i){A(r),n=!1},d(i){i&&W(e),r&&r.d()}}}function Ji(t,e,n){let r,{step:i}=e;return t.$$set=o=>{"step"in o&&n(0,i=o.step)},t.$$.update=()=>{t.$$.dirty&1&&n(1,r=i.options.buttons)},[i,r]}var Pt=class extends Q{constructor(e){super(),oe(this,e,Ji,Zi,ie,{step:0})}};function eo(t){let e,n,r,i,o;return{c(){e=ee("button"),n=ee("span"),n.textContent="\xD7",T(n,"aria-hidden","true"),T(e,"aria-label",r=t[0].label?t[0].label:"Close Tour"),T(e,"class","shepherd-cancel-icon"),T(e,"type","button")},m(s,a){Y(s,e,a),Re(e,n),i||(o=lt(e,"click",t[1]),i=!0)},p(s,[a]){a&1&&r!==(r=s[0].label?s[0].label:"Close Tour")&&T(e,"aria-label",r)},i:N,o:N,d(s){s&&W(e),i=!1,o()}}}function to(t,e,n){let{cancelIcon:r,step:i}=e,o=s=>{s.preventDefault(),i.cancel()};return t.$$set=s=>{"cancelIcon"in s&&n(0,r=s.cancelIcon),"step"in s&&n(2,i=s.step)},[r,o,i]}var It=class extends Q{constructor(e){super(),oe(this,e,to,eo,ie,{cancelIcon:0,step:2})}};function no(t){let e;return{c(){e=ee("h3"),T(e,"id",t[1]),T(e,"class","shepherd-title")},m(n,r){Y(n,e,r),t[3](e)},p(n,[r]){r&2&&T(e,"id",n[1])},i:N,o:N,d(n){n&&W(e),t[3](null)}}}function ro(t,e,n){let{labelId:r,element:i,title:o}=e;Kt(()=>{ue(o)&&n(2,o=o()),n(0,i.innerHTML=o,i)});function s(a){Me[a?"unshift":"push"](()=>{i=a,n(0,i)})}return t.$$set=a=>{"labelId"in a&&n(1,r=a.labelId),"element"in a&&n(0,i=a.element),"title"in a&&n(2,o=a.title)},[i,r,o,s]}var Ot=class extends Q{constructor(e){super(),oe(this,e,ro,no,ie,{labelId:1,element:0,title:2})}};function jn(t){let e,n;return e=new Ot({props:{labelId:t[0],title:t[2]}}),{c(){Pe(e.$$.fragment)},m(r,i){he(e,r,i),n=!0},p(r,i){let o={};i&1&&(o.labelId=r[0]),i&4&&(o.title=r[2]),e.$set(o)},i(r){n||(I(e.$$.fragment,r),n=!0)},o(r){A(e.$$.fragment,r),n=!1},d(r){pe(e,r)}}}function Bn(t){let e,n;return e=new It({props:{cancelIcon:t[3],step:t[1]}}),{c(){Pe(e.$$.fragment)},m(r,i){he(e,r,i),n=!0},p(r,i){let o={};i&8&&(o.cancelIcon=r[3]),i&2&&(o.step=r[1]),e.$set(o)},i(r){n||(I(e.$$.fragment,r),n=!0)},o(r){A(e.$$.fragment,r),n=!1},d(r){pe(e,r)}}}function io(t){let e,n,r,i=t[2]&&jn(t),o=t[3]&&t[3].enabled&&Bn(t);return{c(){e=ee("header"),i&&i.c(),n=it(),o&&o.c(),T(e,"class","shepherd-header")},m(s,a){Y(s,e,a),i&&i.m(e,null),Re(e,n),o&&o.m(e,null),r=!0},p(s,[a]){s[2]?i?(i.p(s,a),a&4&&I(i,1)):(i=jn(s),i.c(),I(i,1),i.m(e,n)):i&&(ve(),A(i,1,1,()=>{i=null}),Se()),s[3]&&s[3].enabled?o?(o.p(s,a),a&8&&I(o,1)):(o=Bn(s),o.c(),I(o,1),o.m(e,null)):o&&(ve(),A(o,1,1,()=>{o=null}),Se())}
1,i(s){r||(I(i),I(o),r=!0)},o(s){A(i),A(o),r=!1},d(s){s&&W(e),i&&i.d(),o&&o.d()}}}function oo(t,e,n){let{labelId:r,step:i}=e,o,s;return t.$$set=a=>{"labelId"in a&&n(0,r=a.labelId),"step"in a&&n(1,i=a.step)},t.$$.update=()=>{t.$$.dirty&2&&(n(2,o=i.options.title),n(3,s=i.options.cancelIcon))},[r,i,o,s]}var Tt=class extends Q{constructor(e){super(),oe(this,e,oo,io,ie,{labelId:0,step:1})}};function so(t){let e;return{c(){e=ee("div"),T(e,"class","shepherd-text"),T(e,"id",t[1])},m(n,r){Y(n,e,r),t[3](e)},p(n,[r]){r&2&&T(e,"id",n[1])},i:N,o:N,d(n){n&&W(e),t[3](null)}}}function ao(t,e,n){let{descriptionId:r,element:i,step:o}=e;Kt(()=>{let{text:a}=o.options;ue(a)&&(a=a.call(o)),Ue(a)?i.appendChild(a):n(0,i.innerHTML=a,i)});function s(a){Me[a?"unshift":"push"](()=>{i=a,n(0,i)})}return t.$$set=a=>{"descriptionId"in a&&n(1,r=a.descriptionId),"element"in a&&n(0,i=a.element),"step"in a&&n(2,o=a.step)},[i,r,o,s]}var Ct=class extends Q{constructor(e){super(),oe(this,e,ao,so,ie,{descriptionId:1,element:0,step:2})}};function Nn(t){let e,n;return e=new Tt({props:{labelId:t[1],step:t[2]}}),{c(){Pe(e.$$.fragment)},m(r,i){he(e,r,i),n=!0},p(r,i){let o={};i&2&&(o.labelId=r[1]),i&4&&(o.step=r[2]),e.$set(o)},i(r){n||(I(e.$$.fragment,r),n=!0)},o(r){A(e.$$.fragment,r),n=!1},d(r){pe(e,r)}}}function Hn(t){let e,n;return e=new Ct({props:{descriptionId:t[0],step:t[2]}}),{c(){Pe(e.$$.fragment)},m(r,i){he(e,r,i),n=!0},p(r,i){let o={};i&1&&(o.descriptionId=r[0]),i&4&&(o.step=r[2]),e.$set(o)},i(r){n||(I(e.$$.fragment,r),n=!0)},o(r){A(e.$$.fragment,r),n=!1},d(r){pe(e,r)}}}function Wn(t){let e,n;return e=new Pt({props:{step:t[2]}}),{c(){Pe(e.$$.fragment)},m(r,i){he(e,r,i),n=!0},p(r,i){let o={};i&4&&(o.step=r[2]),e.$set(o)},i(r){n||(I(e.$$.fragment,r),n=!0)},o(r){A(e.$$.fragment,r),n=!1},d(r){pe(e,r)}}}function lo(t){let e,n=!F(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,r,i=!F(t[2].options.text),o,s=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,a,l=n&&Nn(t),c=i&&Hn(t),f=s&&Wn(t);return{c(){e=ee("div"),l&&l.c(),r=it(),c&&c.c(),o=it(),f&&f.c(),T(e,"class","shepherd-content")},m(d,u){Y(d,e,u),l&&l.m(e,null),Re(e,r),c&&c.m(e,null),Re(e,o),f&&f.m(e,null),a=!0},p(d,[u]){u&4&&(n=!F(d[2].options.title)||d[2].options.cancelIcon&&d[2].options.cancelIcon.enabled),n?l?(l.p(d,u),u&4&&I(l,1)):(l=Nn(d),l.c(),I(l,1),l.m(e,r)):l&&(ve(),A(l,1,1,()=>{l=null}),Se()),u&4&&(i=!F(d[2].options.text)),i?c?(c.p(d,u),u&4&&I(c,1)):(c=Hn(d),c.c(),I(c,1),c.m(e,o)):c&&(ve(),A(c,1,1,()=>{c=null}),Se()),u&4&&(s=Array.isArray(d[2].options.buttons)&&d[2].options.buttons.length),s?f?(f.p(d,u),u&4&&I(f,1)):(f=Wn(d),f.c(),I(f,1),f.m(e,null)):f&&(ve(),A(f,1,1,()=>{f=null}),Se())},i(d){a||(I(l),I(c),I(f),a=!0)},o(d){A(l),A(c),A(f),a=!1},d(d){d&&W(e),l&&l.d(),c&&c.d(),f&&f.d()}}}function co(t,e,n){let{descriptionId:r,labelId:i,step:o}=e;return t.$$set=s=>{"descriptionId"in s&&n(0,r=s.descriptionId),"labelId"in s&&n(1,i=s.labelId),"step"in s&&n(2,o=s.step)},[r,i,o]}var _t=class extends Q{constructor(e){super(),oe(this,e,co,lo,ie,{descriptionId:0,labelId:1,step:2})}};function Vn(t){let e;return{c(){e=ee("div"),T(e,"class","shepherd-arrow"),T(e,"data-popper-arrow","")},m(n,r){Y(n,e,r)},d(n){n&&W(e)}}}function uo(t){let e,n,r,i,o,s,a,l,c=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&Vn();r=new _t({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let f=[{"aria-describedby":i=F(t[4].options.text)?null:t[2]},{"aria-labelledby":o=t[4].options.title?t[3]:null},t[1],{open:"true"}],d={};for(let u=0;u<f.length;u+=1)d=ki(d,f[u]);return{c(){e=ee("dialog"),c&&c.c(),n=it(),Pe(r.$$.fragment),Ln(e,d),_e(e,"shepherd-has-cancel-icon",t[5]),_e(e,"shepherd-has-title",t[6]),_e(e,"shepherd-element",!0)},m(u,h){Y(u,e,h),c&&c.m(e,null),Re(e,n),he(r,e,null),t[18](e),s=!0,a||(l=lt(e,"keydown",t[7]),a=!0)},p(u,[h]){u[4].options.arrow&&u[4].options.attachTo&&u[4].options.attachTo.element&&u[4].options.attachTo.on?c||(c=Vn(),c.c(),c.m(e,n)):c&&(c.d(1),c=null);let b={};h&4&&(b.descriptionId=u[2]),h&8&&(b.labelId=u[3]),h&16&&(b.step=u[4]),r.$set(b),Ln(e,d=Qi(f,[(!s||h&20&&i!==(i=F(u[4].options.text)?null:u[2]))&&{"aria-describedby":i},(!s||h&24&&o!==(o=u[4].options.title?u[3]:null))&&{"aria-labelledby":o},h&2&&u[1],{open:"true"}])),_e(e,"shepherd-has-cancel-icon",u[5]),_e(e,"shepherd-has-title",u[6]),_e(e,"shepherd-element",!0)},i(u){s||(I(r.$$.fragment,u),s=!0)},o(u){A(r.$$.fragment,u),s=!1},d(u){u&&W(e),c&&c.d(),pe(r),t[18](null),a=!1,l()}}}var fo=9,ho=27,po=37,go=39;function zn(t){return t.split(" ").filter(e=>!!e.length)}function mo(t,e,n){let{attachToElement:r,attachTofocusableDialogElements:i,classPrefix:o,element:s,descriptionId:a,focusableAttachToElements:l,firstFocusableAttachToElement:c,lastFocusableAttachToElement:f,firstFocusableDialogElement:d,focusableDialogElements:u,lastFocusableDialogElement:h,labelId:b,step:g,dataStepId:S}=e,y,x,w,m=()=>s;Hi(()=>{n(1,S={[`data-${o}shepherd-step-id`]:g.id}
1),n(13,u=[...s.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')]),n(12,d=u[0]),n(14,h=u[u.length-1]);let p=g._getResolvedAttachToOptions();p!=null&&p.element&&(n(8,r=p.element),n(8,r.tabIndex=0,r),n(9,l=[r,...r.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')]),n(10,c=l[0]),n(11,f=l[l.length-1]),r.addEventListener("keydown",D))}),Wi(()=>{var p;(p=r)==null||p.removeEventListener("keydown",D)}),Kt(()=>{w!==g.options.classes&&v()});function v(){C(w),w=g.options.classes,E(w)}function C(p){if(We(p)){let O=zn(p);O.length&&s.classList.remove(...O)}}function E(p){if(We(p)){let O=zn(p);O.length&&s.classList.add(...O)}}let D=p=>{let{tour:O}=g;switch(p.keyCode){case fo:if((!l||l.length===0)&&u.length===0){p.preventDefault();break}if(p.shiftKey)if(document.activeElement===d||document.activeElement.classList.contains("shepherd-element")){var L;p.preventDefault(),((L=f)!=null?L:h).focus()}else document.activeElement===c&&(p.preventDefault(),h.focus());else if(document.activeElement===h){var P;p.preventDefault(),((P=c)!=null?P:d).focus()}else document.activeElement===f&&(p.preventDefault(),d.focus());break;case ho:O.options.exitOnEsc&&(p.preventDefault(),p.stopPropagation(),g.cancel());break;case po:O.options.keyboardNavigation&&(p.preventDefault(),p.stopPropagation(),O.back());break;case go:O.options.keyboardNavigation&&(p.preventDefault(),p.stopPropagation(),O.next());break}};function k(p){Me[p?"unshift":"push"](()=>{s=p,n(0,s)})}return t.$$set=p=>{"attachToElement"in p&&n(8,r=p.attachToElement),"attachTofocusableDialogElements"in p&&n(15,i=p.attachTofocusableDialogElements),"classPrefix"in p&&n(16,o=p.classPrefix),"element"in p&&n(0,s=p.element),"descriptionId"in p&&n(2,a=p.descriptionId),"focusableAttachToElements"in p&&n(9,l=p.focusableAttachToElements),"firstFocusableAttachToElement"in p&&n(10,c=p.firstFocusableAttachToElement),"lastFocusableAttachToElement"in p&&n(11,f=p.lastFocusableAttachToElement),"firstFocusableDialogElement"in p&&n(12,d=p.firstFocusableDialogElement),"focusableDialogElements"in p&&n(13,u=p.focusableDialogElements),"lastFocusableDialogElement"in p&&n(14,h=p.lastFocusableDialogElement),"labelId"in p&&n(3,b=p.labelId),"step"in p&&n(4,g=p.step),"dataStepId"in p&&n(1,S=p.dataStepId)},t.$$.update=()=>{t.$$.dirty&16&&(n(5,y=g.options&&g.options.cancelIcon&&g.options.cancelIcon.enabled),n(6,x=g.options&&g.options.title))},[s,S,a,b,g,y,x,D,r,l,c,f,d,u,h,i,o,m,k]}var Et=class extends Q{constructor(e){super(),oe(this,e,mo,uo,ie,{attachToElement:8,attachTofocusableDialogElements:15,classPrefix:16,element:0,descriptionId:2,focusableAttachToElements:9,firstFocusableAttachToElement:10,lastFocusableAttachToElement:11,firstFocusableDialogElement:12,focusableDialogElements:13,lastFocusableDialogElement:14,labelId:3,step:4,dataStepId:1,getElement:17})}get getElement(){return this.$$.ctx[17]}},Ke=class extends Ve{constructor(e,n={}){return super(),this._resolvedAttachTo=void 0,this._resolvedExtraHighlightElements=void 0,this.classPrefix=void 0,this.el=void 0,this.target=void 0,this.tour=void 0,this.tour=e,this.classPrefix=this.tour.options?Qn(this.tour.options.classPrefix):"",this.styles=e.styles,this._resolvedAttachTo=null,kt(this),this._setOptions(n),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){Ei(this),Ue(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){var e;(e=this.tour.modal)==null||e.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveExtraHiglightElements(){return this._resolvedExtraHighlightElements=Br(this),this._resolvedExtraHighlightElements}_resolveAttachToOptions(){return this._resolvedAttachTo=jr(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return this._resolvedAttachTo===null?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}
1show(){return ue(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(e){Object.assign(this.options,e),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){let e=`${this.id}-description`,n=`${this.id}-label`;return this.shepherdElementComponent=new Et({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:e,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(e){let{element:n}=this._getResolvedAttachToOptions();ue(this.options.scrollToHandler)?this.options.scrollToHandler(n):vr(n)&&typeof n.scrollIntoView=="function"&&n.scrollIntoView(e)}_getClassOptions(e){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,r=e.classes?e.classes:"",i=n&&n.classes?n.classes:"",o=[...r.split(" "),...i.split(" ")],s=new Set(o);return Array.from(s).join(" ").trim()}_setOptions(e={}){let n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;n=Ft({},n||{}),this.options=Object.assign({arrow:!0},n,e,_i(n,e));let{when:r}=this.options;this.options.classes=this._getClassOptions(e),this.destroy(),this.id=this.options.id||`step-${$n()}`,r&&Object.keys(r).forEach(i=>{this.on(i,r[i],this)})}_setupElements(){F(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&Mr(this),Ci(this)}_show(){var e;this.trigger("before-show"),this._resolveAttachToOptions(),this._resolveExtraHiglightElements(),this._setupElements(),this.tour.modal||this.tour.setupModal(),(e=this.tour.modal)==null||e.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);let n=this.shepherdElementComponent.getElement(),r=this.target||document.body,i=this._resolvedExtraHighlightElements;r.classList.add(`${this.classPrefix}shepherd-enabled`),r.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),i?.forEach(o=>{o.classList.add(`${this.classPrefix}shepherd-enabled`),o.classList.add(`${this.classPrefix}shepherd-target`)}),this.trigger("show")}_styleTargetElementForStep(e){let n=e.target,r=e._resolvedExtraHighlightElements;if(!n)return;let i=e.options.highlightClass;i&&(n.classList.add(i),r?.forEach(o=>o.classList.add(i))),n.classList.remove("shepherd-target-click-disabled"),r?.forEach(o=>o.classList.remove("shepherd-target-click-disabled")),e.options.canClickTarget===!1&&(n.classList.add("shepherd-target-click-disabled"),r?.forEach(o=>o.classList.add("shepherd-target-click-disabled")))}_updateStepTargetOnHide(){let e=this.target||document.body,n=this._resolvedExtraHighlightElements,r=this.options.highlightClass;r&&(e.classList.remove(r),n?.forEach(i=>i.classList.remove(r))),e.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`),n?.forEach(i=>{i.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)})}};function bo(t){if(t){let{steps:e}=t;e.forEach(n=>{n.options&&n.options.canClickTarget===!1&&n.options.attachTo&&(Ue(n.target)&&n.target.classList.remove("shepherd-target-click-disabled"),n._resolvedExtraHighlightElements&&n._resolvedExtraHighlightElements.forEach(r=>{Ue(r)&&r.classList.remove("shepherd-target-click-disabled")}))})}}function yo(t){let e="",{innerWidth:n,innerHeight:r}=window;return t.forEach(i=>{let{width:o,height:s,x:a=0,y:l=0,r:c=0}=i,{topLeft:f=0,topRight:d=0,bottomRight:u=0,bottomLeft:h=0}=typeof c=="number"?{topLeft:c,topRight:c,bottomRight:c,bottomLeft:c}:c;e+=`M${a+f},${l} a${f},${f},0,0,0-${f},${f} V${s+l-h} a${h},${h},0,0,0,${h},${h} H${o+a-u} a${u},${u},0,0,0,${u}-${u} V${l+d} a${d},${d},0,0,0-${d}-${d} Z`}),`M${n},${r} H0 V0 H${n} V${r} Z ${e}`.replace(/\s/g,"")}function vo(t){let e,n,r,i,o;return{c(){e=Dn("svg"),n=Dn("path"),T(n,"d",t[2]),T(e,"class",r=`${t[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)},m(s,a){Y(s,e,a),Re(e,n),t[11](e),i||(o=lt(e,"touchmove",t[3]),i=!0)},p(s,[a]){a&4&&T(n,"d",s[2]),a&2&&r!==(r=`${s[1]?"shepherd-modal-is-visible":""} shepherd-modal-overlay-container`)&&T(e,"class",r)},i:N,o:N,d(s){s&&W(e),t[11](null),i=!1,o()}}}function cr(t){if(!t)return null;let n=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return n!=="hidden"&&n!=="visible"&&t.scrollHeight>=t.clientHeight?t:cr(t.parentElement)}function So(t){let e={top:0,left:0};if(!t)return e;let n=t.ownerDocument.defaultView;for(;n!==window.top;){var r;let s=(r=n)==null?void 0:r.frameElement;if(s){var i,o;let a=s.getBoundingClientRect();e.top+=a.top+((i=a.scrollTop)!=null?i:0),e.left+=a.left+((o=a.scrollLeft)!=null?o:0)}n=n.parent}return e}function wo(t,e){let n=t.getBoundingClientRect(),r=n.y||n.top,i=n.bottom||r+n.height;if(e){let s=e.getBoundingClientRect(),a=s.y||s.top,l=s.bottom||a+s.height;r=Math.max(r,a),i=Math.min(i,l)}let o=Math.max(i-r,0);return{y:r,height:o}}function xo(t,e,n){let{element:r,openingProperties:i}=e,o=!1,s,a;c();let l=()=>r;function c(){n(4,i=[{width:0,height:0,x:0,y:0,r:0}])}function f(){n(1,o=!1),y()}function d(m=0,v=0,C=0,E=0,D,k,p){if(k){let O=[k,...p||[]];n(4,i=[]);for(let L of O){if(!L||O.indexOf(L)!==O.lastIndexOf(L))continue;let{y:P,height:R}=wo(L,D),{x:U,width:V,left:se}=L.getBoundingClientRect();O.some(Oe=>{if(Oe===L)return!1;let $=Oe.getBoundingClientRect();return U>=$.left&&U+V<=$.right&&P>=$.top&&P+R<=$.bottom})||i.push({width:V+m*2,height:R+m*2,x:(U||se)+C-m,y:P+E-m,r:v})}}else c()}function u(m){y(),m.tour.options.useModalOverlay?(x(m),h()):f()}function h(){n(1,o=!0)}let b=m=>{m.preventDefault()},g=m=>{m.stopPropagation()};function S(){window.addEventListener("touchmove",b,{passive:!1})}function y(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",b,{passive:!1})}function x(m){let{modalOverlayOpeningPadding:v,modalOverlayOpeningRadius:C,modalOverlayOpeningXOffset:E=0,modalOverlayOpeningYOffset:D=0}=m.options,k=So(m.target),p=cr(m.target),O=()=>{s=void 0,d(v,C,E+k.left,D+k.top,p,m.target,m._resolvedExtraHighlightElements),s=requestAnimationFrame(O)};O(),S()}function w(m){Me[m?"unshift":"push"](()=>{r=m,n(0,r)})}return t.$$set=m=>{"element"in m&&n(0,r=m.element),"openingProperties"in m&&n(4,i=m.openingProperties)},t.$$.update=()=>{t.$$.dirty&16&&n(2,a=yo(i))},[r,o,a,g,i,l,c,f,d,u,h,w]}var At=class extends Q{constructor(e){super(),oe(this,e,xo,vo,ie,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}},Dt=class extends Ve{constructor(){super(),this.activeTour=void 0,kt(this)}},Lt=class extends Ve{constructor(e={}){super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,kt(this);let n={exitOnEsc:!0,keyboardNavigation:!0};return this.options=Object.assign({},n,e),this.classPrefix=Qn(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","
1inactive","show","start"].map(i=>{(o=>{this.on(o,s=>{s=s||{},s.tour=this,ce.trigger(o,s)})})(i)}),this._setTourID(e.id),this}addStep(e,n){let r=e;return r instanceof Ke?r.tour=this:r=new Ke(this,r),F(n)?this.steps.push(r):this.steps.splice(n,0,r),r}addSteps(e){return Array.isArray(e)&&e.forEach(n=>{this.addStep(n)}),this}back(){let e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}cancel(){return X(this,null,function*(){if(this.options.confirmCancel){let e=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?",n;ue(this.options.confirmCancel)?n=yield this.options.confirmCancel():n=window.confirm(e),n&&this._done("cancel")}else this._done("cancel")})}complete(){this._done("complete")}getById(e){return this.steps.find(n=>n.id===e)}getCurrentStep(){return this.currentStep}hide(){let e=this.getCurrentStep();if(e)return e.hide()}isActive(){return ce.activeTour===this}next(){let e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)}removeStep(e){let n=this.getCurrentStep();this.steps.some((r,i)=>{if(r.id===e)return r.isOpen()&&r.hide(),r.destroy(),this.steps.splice(i,1),!0}),n&&n.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(e=0,n=!0){let r=We(e)?this.getById(e):this.steps[e];r&&(this._updateStateBeforeShow(),ue(r.options.showOn)&&!r.options.showOn()?this._skipStep(r,n):(this.currentStep=r,this.trigger("show",{step:r,previous:this.currentStep}),r.show()))}start(){return X(this,null,function*(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()})}_done(e){let n=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(r=>r.destroy()),bo(this),this.trigger(e,{index:n}),ce.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),(e==="cancel"||e==="complete")&&this.modal){let r=document.querySelector(".shepherd-modal-overlay-container");r&&(r.remove(),this.modal=null)}Ue(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),ce.activeTour=this}setupModal(){this.modal=new At({target:this.options.modalContainer||document.body,props:{styles:this.styles}})}_skipStep(e,n){let r=this.steps.indexOf(e);if(r===this.steps.length-1)this.complete();else{let i=n?r+1:r-1;this.show(i,n)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(e){let n=this.options.tourName||"tour",r=e||$n();this.id=`${n}--${r}`}},ce=new Dt,ur=typeof window>"u";ce.Step=ur?mt:Ke;ce.Tour=ur?bt:Lt;var dr={production:!0,razorPayKey_b2c:"rzp_live_RZYvBGDWKrkgzY",razorPayKey_b2b:"rzp_live_RRgzQ0LcDjqQ8i",razorPayKey_online:"rzp_live_RRgzQ0LcDjqQ8i",razorPayKey_creditCard:"rzp_live_RZYvBGDWKrkgzY",razorPayKey_salesOrg_p:"rzp_live_SFVosokTjRzWtu",razorPayKey_salesOrg_m:"rzp_live_SAMRtmn38HsXPt",locationKey:"ddbee5fab15094",client_id_D1:"504546816910-gnknsfoet9puat2tv4tsbjf2nep7vojd.apps.googleusercontent.com"};var ct=class t{constructor(e,n,r,i,o,s,a){this.http=e;this.endPointService=n;this.winRef=r;this.currencyService=i;this.router=o;this.authStorageService=s;this.store=a;this.headers=new Headers({"Content-Type":"application/json"});this.productDetails=new _({code:"",price:""});this.productCode=new _("");this.featuresArray=new _([]);this.packageQty=new _("");this.productDetailsSubject=new _("");this.navNodesSubject=new _([]);this.subCategoryQuery=new _("");this.setSubCatFlag=new _(!1);this.wishlistState=new _({});this.wishlistState$=this.wishlistState.asObservable();this.pincodeChange=new _("");this.dealerCodeChange=new _("");this.levelOneCategory=new _(!1);
1this.pincodeChangedSubject=new _(!1);this.compareBtnSubject=new _(!1);this.solarPriceSubject=new _(null);this.solarPricingIndexSubject=new _(null);this.pincodeSubject=new _(localStorage.getItem("pincode"));this.searchQuerySubject=new _("");this.searchQuery$=this.searchQuerySubject.asObservable();this.callerDetailsPath="";this.currentCurrency=localStorage.getItem("selectedIsocode");this.compareSubject=new _(!1);this.compareProdCodeSubject=new _((sessionStorage.getItem("compareCodes")||"").split(",").filter(Boolean));this.forceOpenComparePopupSubject=new _(!1);this.forceOpenComparePopup$=this.forceOpenComparePopupSubject.asObservable();this.forceNoAddressSubject=new _(!1);this.forceNoAddress$=this.forceNoAddressSubject.asObservable();this.userInitiatedAdd=!1;this.locationIdentifier=null;this.locationUrl=`https://api.ipinfo.io/lite/me?token=${dr.locationKey}`;this.pincode$=this.pincodeSubject.asObservable();this.pdpDescSubject=new _(null);this.pdpDesc$=this.pdpDescSubject.asObservable();this.plpDescSubject=new _(null);this.plpDesc$=this.plpDescSubject.asObservable();this.authStorageService.getToken().subscribe(l=>{this.token=l.access_token}),this.router.events.subscribe(l=>{l instanceof hn&&(this.userInitiatedAdd=!1)}),this.currencyService.getActive().subscribe(l=>{this.currentCurrency=l,localStorage.setItem("selectedIsocode",l),this.selectedSymbol=this.getCurrencySymbol(l),localStorage.setItem("selectedSymbol",this.selectedSymbol)})}getLocationIdentifier(){if(this.locationIdentifier)return Be(this.locationIdentifier);let e=localStorage.getItem("country"),n=localStorage.getItem("pincode");return e&&n?(this.locationIdentifier={country:e,pincode:n,dealerId:""},Be(this.locationIdentifier)):this.http.get(this.locationUrl).pipe(Ge(r=>{this.locationIdentifier={country:r?.country_code||"",pincode:r?.postal||"",dealerId:""},localStorage.setItem("country",this.locationIdentifier.country),localStorage.setItem("pincode",this.locationIdentifier.pincode)}),sn(()=>Be(this.locationIdentifier)),tn(r=>(this.locationIdentifier={country:"",pincode:"",dealerId:""},localStorage.removeItem("country"),localStorage.removeItem("pincode"),Be(this.locationIdentifier))))}getBannersIds(){return this.http.get(this.endPointService.buildUrl("/banners"))}getBanners(e){return this.http.get(this.endPointService.buildUrl("cms/components?componentIds="+e))}getCategories(){return this.http.get(this.endPointService.buildUrl("/categories?fields=FULL"))}getWebsearch(e){return this.http.get(this.endPointService.buildUrl("/webSearch?searchValue="+e))}setCallerDetailsPath(e){this.callerDetailsPath=e,console.log("\u{1F4CD} Caller details path set:",e)}getCallerDetailsPath(){return this.callerDetailsPath}isUnitAndDistributionChannelAvailable(){let e=localStorage.getItem("unitCode");return!!(e&&e.trim())}setUnitCode(e){localStorage.setItem("unitCode",e),console.log("\u2705 Unit Code set:",e)}setDistributionChannel(e){localStorage.setItem("distributionChannel",e),console.log("\u2705 Distribution Channel set:",e)}getUnitCode(){return localStorage.getItem("unitCode")||""}getDealerName(){return localStorage.getItem("dealerName")||""}getCurrencySymbol(e){return{USD:"$",EUR:"\u20AC",INR:"\u20B9"}[e]||""}getCurrency(){return this.currentCurrency}getPDPDetails(e){return this.http.get(this.endPointService.buildUrl("/products/"+e+"?fields=FULL")).pipe(Ge(n=>{this.pdpDescSubject.next(n)}))}getPdpDescData(){return this.pdpDesc$}clearPdpDescData(){this.pdpDescSubject.next(null)}getPLPDetails(e,n,r){let i=this.getCurrency();return this.http.get(this.endPointService.buildUrl("/products/search?fields=products(code,name,otherOptions(DEFAULT),summary,configurable,configuratorType,multidimensional,price(FULL),images(DEFAULT),stock(FULL),averageRating,variantOptions,baseProduct,classifications,addedToWishlist,manufacturer,moq,roundingValue,unitNumber,unitOfMeasure,priceRange(maxPrice(formattedValue),minPrice(formattedValue)),isSolarProduct,customerSKUId,mfgId,vislSKUId),facets,breadcrumbs,pagination(DEFAULT),sorts(DEFAULT),freeTextSearch,currentQuery,keywordRedirectUrl&query=:relevance:category:"+e+"&pageSize=12¤tPage="+n+"&sort="+r+"&lang=en&curr="+i))}getSearchDetails(e){let n=this.getCurrency();return this.http.get(this.endPointService.buildUrl("/products/search?fields=products(code,name,summary,configurable,configuratorType,multidimensional,price(FULL),images(DEFAULT),stock(FULL),averageRating,variantOptions,baseProduct,classifications,addedToWishlist,manufacturer,moq,roundingValue,unitNumber,unitOfMeasure,priceRange(maxPrice(formattedValue),minPrice(formattedValue)),isSolarProduct,customerSKUId,mfgId,vislSKUId
1),facets,breadcrumbs,pagination(DEFAULT),sorts(DEFAULT),freeTextSearch,currentQuery,keywordRedirectUrl&query="+e+"&pageSize=12&lang=en&curr="+n))}getSearchDetailsWithSort(e,n,r){let i=this.getCurrency();return this.http.get(this.endPointService.buildUrl("/products/search?fields=products(code,name,summary,configurable,configuratorType,multidimensional,price(FULL),images(DEFAULT),stock(FULL),averageRating,variantOptions,baseProduct,classifications,addedToWishlist,manufacturer,moq,roundingValue,unitNumber,unitOfMeasure,priceRange(maxPrice(formattedValue),minPrice(formattedValue)),isSolarProduct,customerSKUId,mfgId,vislSKUId),facets,breadcrumbs,pagination(DEFAULT),sorts(DEFAULT),freeTextSearch,currentQuery,keywordRedirectUrl&query="+e+"¤tPage="+n+"&sort="+r+"&pageSize=12&lang=en&curr="+i))}getSearchDetailsResult(e,n,r){let i=this.getCurrency();return this.http.get(this.endPointService.buildUrl("/products/search?fields=products(code,name,summary,configurable,categoryNameUrl,brandNameUrl,configuratorType,multidimensional,price(FULL),images(DEFAULT),stock(FULL),averageRating,variantOptions,baseProduct,classifications,addedToWishlist,manufacturer,moq,roundingValue,unitNumber,unitOfMeasure,priceRange(maxPrice(formattedValue),minPrice(formattedValue)),isSolarProduct,customerSKUId,mfgId,vislSKUId),facets,breadcrumbs,pagination(DEFAULT),sorts(DEFAULT),freeTextSearch,currentQuery,keywordRedirectUrl&query="+e+"¤tPage="+n+"&sort="+r+"&pageSize=12&lang=en&curr="+i))}getsearchSuggestions(e){let n=this.getCurrency();return this.http.get(this.endPointService.buildUrl("/products/suggestions?term="+e+"&max=1&lang=en&curr="+n))}getPLPDetailsWithQuery(e,n,r,i,o){if(o){let s=this.getCurrency();return this.http.get(this.endPointService.buildUrl("/products/search?fields=products(code,name,otherOptions(DEFAULT),summary,configurable,configuratorType,multidimensional,price(FULL),images(DEFAULT),stock(FULL),averageRating,variantOptions,baseProduct,classifications,addedToWishlist,manufacturer,moq,roundingValue,unitNumber,unitOfMeasure,priceRange(maxPrice(formattedValue),minPrice(formattedValue)),isSolarProduct,customerSKUId,mfgId,vislSKUId),facets,breadcrumbs,pagination(DEFAULT),sorts(DEFAULT),freeTextSearch,currentQuery,keywordRedirectUrl&query="+o+"&pageSize=12¤tPage="+n+"&sort="+r+"&lang=en&curr="+s))}else{let s=this.getCurrency();return this.http.get(this.endPointService.buildUrl("/products/search?fields=products(code,name,otherOptions(DEFAULT),summary,configurable,configuratorType,multidimensional,price(FULL),images(DEFAULT),stock(FULL),averageRating,variantOptions,baseProduct,classifications,addedToWishlist,manufacturer,moq,roundingValue,unitNumber,unitOfMeasure,priceRange(maxPrice(formattedValue),minPrice(formattedValue)),isSolarProduct,customerSKUId,mfgId,vislSKUId),facets,breadcrumbs,pagination(DEFAULT),sorts(DEFAULT),freeTextSearch,currentQuery,keywordRedirectUrl&query=:relevance:category:"+e+i+"&pageSize=12¤tPage="+n+"&sort="+r+"&lang=en&curr="+s))}}setProductData(e){this.productDetails.next(e)}getProductData(){return this.productDetails.asObservable()}setProductCode(e){this.productCode.next(e)}getProductCode(){return this.productCode.asObservable()}setFeaturesArray(e){this.featuresArray.next(e)}getFeaturesArray(){return this.featuresArray.asObservable()}setPackageQty(e){this.packageQty.next(e)}getPackageQty(){return this.packageQty.asObservable()}setProductDesc(e){this.productDetailsSubject.next(e)}getProductDesc(){return this.productDetailsSubject.asObservable()}addToWishList(e,n){return this.http.post(this.endPointService.buildUrl("users/"+e+"/wishlist/addition?productCode="+n+"&fields=FULL"),this.headers,{responseType:"text"})}removeFromWishList(e,n){return this.http.delete(this.endPointService.buildUrl("users/"+e+"/wishlist/deletion?productCode="+n+"&fields=FULL"),{responseType:"text"})}checkWishListedProduct(e,n){return this.http.get(this.endPointService.buildUrl("/users/"+e+"/wishlist/product?productC
1ode="+n))}getCustomerSKUMapped(e){return this.http.get(this.endPointService.buildUrl("/users/"+e+"/isCustomerSkuMapped"))}setForceNoAddress(e){this.forceNoAddressSubject.next(e)}forceNoAddress(){return this.forceNoAddressSubject.value}setNavNodes(e){this.navNodesSubject.next(e)}getNavNodes(){return this.navNodesSubject.asObservable()}toggleWishlist(e,n){let r=this.wishlistState.value;r[e]=n,this.wishlistState.next(Te({},r))}getSolarOrderProducts(e,n,r){return this.http.get(this.endPointService.buildUrl("/users/"+e+"/quick-order/solar?isRegionIndia="+n+"&power="+r))}getEnergyForSolarBOM(e,n){return this.http.get(this.endPointService.buildUrl("/users/"+e+"/quick-order/solarUnits?isRegionIndia="+n))}getWishlist(e){return this.http.get(this.endPointService.buildUrl("/users/"+e+"/wishlist/detail?fields=FULL"))}getDealersList(e){return this.http.get(this.endPointService.buildUrl("/users/"+e+"/dealers"))}updateDealerforUser(e,n){return this.http.post(this.endPointService.buildUrl("users/"+e+"/current-dealer?dealerCode="+n),this.headers,{responseType:"text"})}accountHeaderInfo(e){return this.http.get(this.endPointService.buildUrl("/users/"+e+"/accounts/header-info"))}accountCreditInfo({userId:e,fromDate:n,toDate:r,filterBy:i}){let o={};return n&&(o.fromDate=n),r&&(o.toDate=r),i&&(o.filterBy=i),this.http.get(this.endPointService.buildUrl(`/users/${e}/accounts/credits`),{params:o})}accountOutstandingInfo({userId:e,fromDate:n,toDate:r,filterBy:i}){let o={};return n&&(o.fromDate=n),r&&(o.toDate=r),i&&(o.filterBy=i),this.http.get(this.endPointService.buildUrl("/users/"+e+"/accounts/outstandings"),{params:o})}accountClearedInfo({userId:e,fromDate:n,toDate:r,filterBy:i}){let o={};return n&&(o.fromDate=n),r&&(o.toDate=r),i&&(o.filterBy=i),this.http.get(this.endPointService.buildUrl("/users/"+e+"/accounts/cleared"),{params:o})}downloadInvoice(e,n){return this.http.get(this.endPointService.buildUrl("/orgUsers/"+e+"/orders/download-document?invoiceId="+n+"&type=invoice"),{responseType:"blob"})}downloadOutstandingInvoices(e){return this.http.get(this.endPointService.buildUrl("/users/"+e+"/download/outstanding-invoices"),{responseType:"blob",observe:"response"})}downloadTransactionLog(e){return this.http.get(this.endPointService.buildUrl("/users/"+e+"/download/account-ledger"),{responseType:"blob",observe:"response"})}sendPayDuesInvoice(e){return this.http.post(this.endPointService.buildUrl("/generate/invoice/payment"),e,{headers:{"Content-Type":"application/json"}})}sendPayDuesInvoiceForOtherSalesOrg(e,n){return this.http.post(this.endPointService.buildUrl("/generate/"+e+"/invoice/payment"),n,{headers:{"Content-Type":"application/json"}})}getProductAttributeList(e,n,r,i,o){return this.http.get(this.endPointService.buildUrl("/products/search?fields=products(code,name,summary,configurable,configuratorType,multidimensional,price(FULL),images(DEFAULT),stock(FULL),averageRating,variantOptions,baseProduct,classifications,addedToWishlist,manufacturer,moq,roundingValue,priceRange(maxPrice(formattedValue),minPrice(formattedValue)),isSolarProduct),facets,breadcrumbs,pagination(DEFAULT),sorts(DEFAULT),freeTextSearch,currentQuery,keywordRedirectUrl&query="+e+n+"&pageSize="+r+"¤tPage="+i+"&sort="+o))}getPDPReviews(e,n,r=0,i=20){let o=this.endPointService.buildUrl(`/users/${e}/products/reviews?productCode=${n}¤tPage=${r}&pageSize=${i}`);return this.http.get(o)}postReview(e,n,r,i){let o=new FormData;return o.append("review",new Blob([JSON.stringify(r)],{type:"application/json"}
1)),i.forEach(s=>{o.append("files",s)}),this.http.post(this.endPointService.buildUrl("users/"+e+"/products/"+n+"/reviews"),o)}uploadProdCSV(e,n){let r=new FormData;return n.forEach(i=>r.append("file",i)),this.http.post(this.endPointService.buildUrl("/users/"+e+"/quick-order/upload/purchased-products/csv"),r,{responseType:"text"})}uploadPoCartFiles(e,n,r){let i=new FormData;n.forEach((a,l)=>{i.append("file",a,a.name)});let s=`${this.endPointService.buildUrl("/users/"+e+"/convert/poCart")}?clearCart=${r}`;return this.http.post(s,i)}postFeedback(e,n){let r=new FormData;return r.append("feedbackData",new Blob([JSON.stringify(e)],{type:"application/json"})),n&&r.append("attachment",n),this.http.post(this.endPointService.buildUrl("/feedback"),r)}submitQuery(e,n){let r=this.endPointService.buildUrl("/contactUs-enquiry"),i=new Ne({"Content-Type":"application/json"});return this.http.post(r,n,{headers:i})}reportDefect(e,n){let r=this.endPointService.buildUrl("/product-feedback"),i=new Ne({"Content-Type":"application/json"});return this.http.post(r,n)}createOrderFeedback(e){let n=this.endPointService.buildUrl("/completeOrder-feedback"),r=new Ne({"Content-Type":"application/json"});return this.http.post(n,e)}createConsumerFeedback(e,n){let r=this.endPointService.buildUrl("users/"+e+"/survey-response"),i=new Ne({"Content-Type":"application/json"});return this.http.post(r,n)}setQuerySubCategory(e){this.subCategoryQuery.next(e)}getQuerySubCategory(){return this.subCategoryQuery.asObservable()}setSelectedCodeFlag(e){this.setSubCatFlag.next(e)}getSelectedCodeFlag(){return this.setSubCatFlag.asObservable()}getSubCategoryFilteredValues(e,n){let r=this.getCurrency();return this.http.get(this.endPointService.buildUrl("/products/search?fields=products(code,name,otherOptions(DEFAULT),summary,configurable,configuratorType,multidimensional,price(FULL),images(DEFAULT),stock(FULL),averageRating,variantOptions,baseProduct,classifications,addedToWishlist,manufacturer,moq,roundingValue,priceRange(maxPrice(formattedValue),minPrice(formattedValue)),isSolarProduct,customerSKUId,mfgId,vislSKUId),facets,breadcrumbs,pagination(DEFAULT),sorts(DEFAULT),freeTextSearch,currentQuery,keywordRedirectUrl&query=:relevance:allCategories:"+e+"&pageSize=12¤tPage="+n+"&lang=en&curr="+r))}getOrderIdByInvoiceId(e,n){return this.http.get(this.endPointService.buildUrl("/orgUsers/"+e+"/orderIdByInvoice?&invoiceId="+n),{responseType:"text"})}getPincode(){return this.pincodeChange.asObservable()}getOperatingSystem(){let e=this.winRef?.nativeWindow?.navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|SamSung|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(e)?"Mobile":"Desktop"}chotBot(e,n){return this.http.get(this.endPointService.buildUrl("/users/"+e+"/aibot/chat?&request="+n),{responseType:"text"})}chotBotQuestion(e){return this.http.get(this.endPointService.buildUrl("/users/"+e+"/aibot/get-chat-questions"))}chatAnswer(e,n,r){return this.http.get(this.endPointService.buildUrl("/users/"+e+"/aibot/get-chat-answers?&questionNumber="+n+"&questionType="+r),{responseType:"text"})}setdealerCode(e){sessionStorage.setItem("dealerID",e),this.dealerCodeChange.next(e)}getdealerCode(){let e=sessionStorage.getItem("dealerID");return e&&this.dealerCodeChange.value!==e&&this.dealerCodeChange.next(e),this.dealerCodeChange.asObservable()}getDashboardData(e){return this.http.get(this.endPointService.buildUrl("/orgUsers/"+e+"/total-orders"))}getDashboardDataByOrderStatus(e){return this.http.get(this.endPointService.buildUrl("/orgUsers/"+e+"/order-status-counts"))}searchAsmUserDealerCode(e){return this.http.get(this.endPointService.buildUrl("/asm/users?fields=BASIC&dealerCode="+e))}searchAsmUserEmailId(e){return this.http.get(this.endPointService.buildUrl("/asm/dealers?fields=FULL&userId="+e))}asmGenerateOTP(e){return this.http.post(this.endPointService.buildUrl("/asm/generate-otp?fields=DEFAULT&identifier="+e),this.headers,{responseType:"text"})}asmRMGenerateOTP(e){return this.http.post(this.endPointService.buildUrl("/asm/generate-otp-user?emailId="+e),this.headers,{responseType:"text"})}asmRMGenerateWithDealer(e,n){return this.http.post(this.endPointService.buildUrl("/asm/generate-otp-user?emailId="+e+"&dealerCode="+n),this.headers,{responseType:"text"})}validateRMOTP(e,n){return this.http.post(this.endPointService.buildUrl("/asm/validate-otp?emailId="+e+"&otp="+n),this.headers,{responseType:"text"})}getSmartBuyProd(e){return this.http.get(this.endPointService.buildUrl("/smartBuy?code="+e))}setCatLevel1Value(e){this.levelOneCategory.next(e)}getCatLevel1Value(){return this.levelOneCategory.asObservable()}checkAvailabilityPDP(e,n,r,i){let o=r&&r.trim()!==""?r:null;return this.http.get(this.endPointService.buildUrl("/users/"+e+"/availability/product?productC
1ode="+n+"&pincode="+o+"&quantity="+i))}getprodDescPLP(e){return this.http.get(this.endPointService.buildUrl("/category?categoryCode="+e)).pipe(Ge(n=>{this.plpDescSubject.next(n)}))}getPlpDescData(){return this.plpDesc$}clearPlpDescData(){this.plpDescSubject.next(null)}setPincodeChanged(e){this.pincodeChangedSubject.next(e)}getPincodeChanged(){return this.pincodeChangedSubject.asObservable()}getRecentPurchase(e){return this.http.get(this.endPointService.buildUrl("users/"+e+"/recently-purchased?fields=FULL"))}getFrequentlyBought(e){return this.http.get(this.endPointService.buildUrl("users/"+e+"/frequently-bought"))}getAllFrequentlyBought(e){return this.http.get(this.endPointService.buildUrl("users/"+e+"/frequently-bought?scope=ALL"))}getARCproducts(e){return this.http.get(this.endPointService.buildUrl("users/"+e+"/arc-products?fields=FULL"))}getAllARCproducts(e){return this.http.get(this.endPointService.buildUrl("users/"+e+"/arc-products?fields=FULL&scope=ALL"))}videoFloater(e){return this.http.get(this.endPointService.buildUrl("cms/components?componentIds="+e))}setSearchQuery(e){this.searchQuerySubject.next(e)}setCompareComponent(e){this.compareSubject.next(e)}getCompareComponent(){return this.compareSubject.asObservable()}setCompareProdCodes(e,n){let r=[...this.compareProdCodeSubject.value];if(n==="add"&&!r.includes(e))r.push(e),this.compareProdCodeSubject.next(r),sessionStorage.setItem("compareCodes",r.join(",")),this.userInitiatedAdd=!0,this.forceOpenComparePopupSubject.next(!0);else if(n==="remove"){let i=r.filter(o=>o!==e);this.compareProdCodeSubject.next(i),sessionStorage.setItem("compareCodes",i.join(","))}}clearAllCompareCodes(){this.compareProdCodeSubject.next([]),sessionStorage.setItem("compareCodes","")}getCompareProdCodes(){return this.compareProdCodeSubject.asObservable()}isUserInitiatedAdd(){return this.userInitiatedAdd}resetUserInitiatedAdd(){this.userInitiatedAdd=!1}setMobCompareBtnFlag(e){this.compareBtnSubject.next(e)}getMobCompareBtnFlag(){return this.compareBtnSubject.asObservable()}getSolarPricingInverter(e,n,r){return this.http.get(this.endPointService.buildUrl("/"+e+"/solarPolicy/"+n+"/"+r))}setSolarPricing(e,n,r){this.solarPriceSubject.next({productId:e,priceB2B:n,priceB2C:r})}getSolarPricing(){return this.solarPriceSubject.asObservable()}updatePincode(e){localStorage.setItem("pincode",e),this.pincodeSubject.next(e)}getCurrentPincode(){return this.pincodeSubject.getValue()}setIndexingSolarPricing(e){this.solarPricingIndexSubject.next(e)}getIndexingSolarPricing(){return this.solarPricingIndexSubject.asObservable()}createNewASMUser(e,n){return this.http.post(this.endPointService.buildUrl("asm/create-user?dealerCode="+n),e)}getInitialQtyToAdd(e,n){return!n||n===0?e||1:e%n===0?e:(Math.floor(e/n)+1)*n}checkMinusButtonState(e,n,r){let i=this.getInitialQtyToAdd(n,r);return e<=i}normalizeQuantity(e,n,r){if(e==0&&(e=1),!r||r===0)return e<n?n:e;let i=n,o=Math.ceil(e/r)*r;return o<i?i:o}getTourGuideConfig(e,n){return this.http.get(this.endPointService.buildUrl("/users/"+e+"/tour-guide?forceFetch="+n))}getTourGuideConfigById(e,n,r=!1){return this.http.get(this.endPointService.buildUrl("/users/"+e+"/tour-guide?forceFetch="+r+"&code="+n))}static{this.\u0275fac=function(n){return new(n||t)(M(fn),M(bn),M(mn),M(Sn),M(pn),M(vn),M(gn))}}static{this.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}};var fr=class t{constructor(e,n,r){this.commonService=e;this.authService=n;this.userIdService=r;this.tour=null;this.configurations=new Map;this.isLoggedIn$=this.authService.isUserLoggedIn();this.defaultTourConfig={useModalOverlay:!0,exitOnEsc:!0,scrollTo:!0,defaultStepOptions:{classes:"cpp-tour-step",scrollTo:!0,scrollToHandler:function(e){if(e){let n=e.getBoundingClientRect(),r=window.pageYOffset+n.top-200;window.scrollTo({top:r,behavior:"smooth"})}},modalOverlayOpeningPadding:0,modalOverlayOpeningRadius:4,cancelIcon:{enabled:!0},buttons:[{text:"Back",action:function(){return this.back()},classes:"shepherd-button-secondary"},{text:"Next",action:function(){return this.next()},classes:"shepherd-button-primary"}]}};this.getUserID()}getUserID(){this.userIdService.getUserId().pipe($e(1)).subscribe(e=>{this.userId=e,console.log("UserId:",this.userId)})}initializeDefaultConfigurations(){}startHeaderTour(){this.startTour(!0)}takeTourAgain(e){this.tour?.complete(),setTimeout(()=>this.startTourById(e,!0),500)}startTour(e){this.isLoggedIn$.subscribe(n=>{if(n){let r=this.userId!="anonymous"?this.userId:"current";this.commonService.getTourGuideConfig(r,e).subscribe(i=>{if(i&&i[0]){let o=i[0];this.initializeTourWithConfig(o)}})}})}startTourById(e,n=!1){this.isLoggedIn$.subscribe(r=>{if(r){let i=this.userId!="anonymous"?this.userId:"current";this.commonService.getTourGuideConfigById(i,e,n).subscribe(o=>{if(o&&o[0]){let s=o[0];this.initializeTourWithConfig(s)}})}})}initializeTourWithConfig(e){this.tour&&this.tour.complete();let n=Gt(Te({},this.defaultTourConfig),{useModalOverlay:e.useModalOverlay??this.defaultTourConfig.useModalOverlay,modalContainer:document.body,defaultStepOptions:Te(Te({},this.defaultTourConfig.defaultStepOptions),e.defaultStepOptions??{})});this.tour=new ce.Tour(n),this.tour.on("complete",()=>{this.removeCustomModalStyles()}),this.tour.on("start",()=>{this.addCustomModalStyles()}),this.tour.on("cancel",()=>{this.removeCustomModalStyles()}),this.addStepsFromConfiguration(e),this.tour.start()}addStepsFromConfiguration(e){if(!this.tour)return;let r=e.steps.filter(i=>i?.active===!0).sort((i,o)=>{let s=i.order||0,a=o.order||0;return s-a});console.log("Sorted Steps:",r),r.forEach(i=>
1{let o={title:i.title,text:i.description,classes:i.classes||"cpp-tour-step",scrollTo:!0,arrow:!0,scrollToHandler:function(s){if(s){let a=s.getBoundingClientRect(),l=window.pageYOffset+a.top-200;window.scrollTo({top:l,behavior:"smooth"})}}};if(i.attachTo&&(o.attachTo=i.attachTo[0]),i.buttons){let s=i.buttons.map(a=>({text:a.buttonName,action:(function(l){return function(){return a.action==="takeTourAgain"?l.takeTourAgain(e?.id):this[a.action]()}})(this),classes:a.buttonClasses}));o.buttons=s}i.when&&(o.when=i.when),this.tour.addStep(o)})}getTourConfigurations(e){return this.isLoggedIn$.subscribe(n=>{if(n){let r=this.userId!="anonymous"?this.userId:"current";this.commonService.getTourGuideConfig(r,e).subscribe(i=>{i&&(this.tourConfig=i[0])})}}),this.tourConfig}getTourConfiguration(e){return this.configurations.get(e)}stopTour(){this.tour&&(this.tour.complete(),this.tour=null)}isTourActive(){return this.tour?this.tour.isActive():!1}addCustomModalStyles(){let e=document.createElement("style");e.id="tour-guide-custom-styles",e.textContent=` 2 .shepherd-modal-overlay-container { 3 position: fixed !important; 4 top: 0 !important; 5 left: 0 !important; 6 width: 100vw !important; 7 height: 100vh !important; 8 z-index: 99989 !important; 9 pointer-events: none !important; 10 } 11 12 .shepherd-modal-overlay-container path { 13 fill: rgba(0, 0, 0, 0.3) !important; 14 } 15 16 .shepherd-modal-is-visible { 17 background: none !important; 18 } 19 20 .shepherd-step { 21 z-index: 99998 !important; 22 } 23 .cpp-tour-step.center-step { 24 position: fixed !important; 25 left: 50% !important; 26 top: 50% !important; 27 transform: translate(-50%, -50%) !important; 28 margin: 0 !important; 29 z-index: 99999 !important; 30 } 31 `,document.head.appendChild(e)}removeCustomModalStyles(){let e=document.getElementById("tour-guide-custom-styles");e&&e.remove()}static{this.\u0275fac=function(n){return new(n||t)(M(ct),M(wn),M(yn))}}static{this.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}};var Qt;try{Qt=typeof Intl<"u"&&Intl.v8BreakIterator}catch(t){Qt=!1}var hr=(()=>{class t{_platformId=ge(cn);isBrowser=this._platformId?dn(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Qt)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(r){return new(r||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Yt(t){return Array.isArray(t)?t:[t]}var pr=new Set,Ie,mr=(()=>{class t{_platform=ge(hr);_nonce=ge(un,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):To}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&Oo(n,this._nonce),this._matchMedia(n)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Oo(t,e){if(!pr.has(t))try{Ie||(Ie=document.createElement("style"),e&&Ie.setAttribute("nonce",e),Ie.setAttribute("type","text/css"),document.head.appendChild(Ie)),Ie.sheet&&(Ie.sheet.insertRule(`@media ${t} {body{ }}`,0),pr.add(t))}catch(n){console.error(n)}}function To(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var $t=(()=>{class t{_mediaMatcher=ge(mr);_zone=ge(ln);_queries=new Map;_destroySubject=new Zt;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return gr(Yt(n)).some(i=>this._registerQuery(i).mql.matches)}observe(n){let i=gr(Yt(n)).map(s=>this._registerQuery(s).observable),o=Jt(i);return o=en(o.pipe($e(1)),o.pipe(rn(1),nn(0))),o.pipe(Ce(s=>{let a={matches:!1,breakpoints:{}};
31return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);let r=this._mediaMatcher.matchMedia(n),o={observable:new Xt(s=>{let a=l=>this._zone.run(()=>s.next(l));return r.addListener(a),()=>{r.removeListener(a)}}).pipe(on(r),Ce(({matches:s})=>({query:n,matches:s})),an(this._destroySubject)),mql:r};return this._queries.set(n,o),o}static \u0275fac=function(r){return new(r||t)};static \u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function gr(t){return t.map(e=>e.split(",")).reduce((e,n)=>e.concat(n)).map(e=>e.trim())}var dt={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var br=class t{constructor(e){this.breakpointObserver=e;let n="(max-width: 991px)";this.isMobile$=this.breakpointObserver.observe([n]).pipe(Ce(r=>r.matches),ft({bufferSize:1,refCount:!0}))}isDesktop$(){return this.breakpointObserver.observe([dt.Web,dt.WebLandscape,dt.Tablet]).pipe(Ce(e=>e.matches),ft({bufferSize:1,refCount:!0}))}static{this.\u0275fac=function(n){return new(n||t)(M($t))}}static{this.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"})}};export{dr as a,ct as b,hr as c,Yt as d,mr as e,$t as f,dt as g,fr as h,br as i};
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.