import{r as b,R as Cr,_ as Wf,a as Zn,b as Gf,c as pe}from"./react-BQJ3vM8c.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9d362731-77ff-4270-8b91-8f4fcde27ee7",e._sentryDebugIdIdentifier="sentry-dbid-9d362731-77ff-4270-8b91-8f4fcde27ee7")}catch{}})();var oc={exports:{}},Ni={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Uf=b,Yf=Symbol.for("react.element"),qf=Symbol.for("react.fragment"),Xf=Object.prototype.hasOwnProperty,Kf=Uf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Zf={key:!0,ref:!0,__self:!0,__source:!0};function sc(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Xf.call(t,r)&&!Zf.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Yf,type:e,key:o,ref:s,props:i,_owner:Kf.current}}Ni.Fragment=qf;Ni.jsx=sc;Ni.jsxs=sc;oc.exports=Ni;var M=oc.exports;function Jf(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Qf(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var ep=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Qf(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Jf(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Je="-ms-",hi="-moz-",xe="-webkit-",ac="comm",hs="rule",gs="decl",tp="@import",lc="@keyframes",np="@layer",rp=Math.abs,Fi=String.fromCharCode,ip=Object.assign;function op(e,t){return Xe(e,0)^45?(((t<<2^Xe(e,0))<<2^Xe(e,1))<<2^Xe(e,2))<<2^Xe(e,3):0}function cc(e){return e.trim()}function sp(e,t){return(e=t.exec(e))?e[0]:e}function Ce(e,t,n){return e.replace(t,n)}function Fo(e,t){return e.indexOf(t)}function Xe(e,t){return e.charCodeAt(t)|0}function Er(e,t,n){return e.slice(t,n)}function zt(e){return e.length}function bs(e){return e.length}function Hr(e,t){return t.push(e),e}function ap(e,t){return e.map(t).join("")}var $i=1,Xn=1,uc=0,ft=0,Ve=0,Jn="";function zi(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:$i,column:Xn,length:s,return:""}}function sr(e,t){return ip(zi("",null,null,"",null,null,0),e,{length:-e.length},t)}function lp(){return Ve}function cp(){return Ve=ft>0?Xe(Jn,--ft):0,Xn--,Ve===10&&(Xn=1,$i--),Ve}function gt(){return Ve=ft<uc?Xe(Jn,ft++):0,Xn++,Ve===10&&(Xn=1,$i++),Ve}function Ht(){return Xe(Jn,ft)}function ai(){return ft}function _r(e,t){return Er(Jn,e,t)}function kr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function dc(e){return $i=Xn=1,uc=zt(Jn=e),ft=0,[]}function fc(e){return Jn="",e}function li(e){return cc(_r(ft-1,$o(e===91?e+2:e===40?e+1:e)))}function up(e){for(;(Ve=Ht())&&Ve<33;)gt();return kr(e)>2||kr(Ve)>3?"":" "}function dp(e,t){for(;--t&>()&&!(Ve<48||Ve>102||Ve>57&&Ve<65||Ve>70&&Ve<97););return _r(e,ai()+(t<6&&Ht()==32&>()==32))}function $o(e){for(;gt();)switch(Ve){case e:return ft;case 34:case 39:e!==34&&e!==39&&$o(Ve);break;case 40:e===41&&$o(e);break;case 92:gt();break}return ft}function fp(e,t){for(;gt()&&e+Ve!==57;)if(e+Ve===84&&Ht()===47)break;return"/*"+_r(t,ft-1)+"*"+Fi(e===47?e:gt())}function pp(e){for(;!kr(Ht());)gt();return _r(e,ft)}function mp(e){return fc(ci("",null,null,null,[""],e=dc(e),0,[0],e))}function ci(e,t,n,r,i,o,s,a,l){for(var c=0,p=0,u=s,v=0,g=0,m=0,f=1,y=1,d=1,h=0,w="",S=i,x=o,T=r,A=w;y;)switch(m=h,h=gt()){case 40:if(m!=108&&Xe(A,u-1)==58){Fo(A+=Ce(li(h),"&","&\f"),"&\f")!=-1&&(d=-1);break}case 34:case 39:case 91:A+=li(h);break;case 9:case 10:case 13:case 32:A+=up(m);break;case 92:A+=dp(ai()-1,7);continue;case 47:switch(Ht()){case 42:case 47:Hr(hp(fp(gt(),ai()),t,n),l);break;default:A+="/"}break;case 123*f:a[c++]=zt(A)*d;case 125*f:case 59:case 0:switch(h){case 0:case 125:y=0;case 59+p:d==-1&&(A=Ce(A,/\f/g,"")),g>0&&zt(A)-u&&Hr(g>32?ka(A+";",r,n,u-1):ka(Ce(A," ","")+";",r,n,u-2),l);break;case 59:A+=";";default:if(Hr(T=Ea(A,t,n,c,p,i,a,w,S=[],x=[],u),o),h===123)if(p===0)ci(A,t,T,T,S,o,u,a,x);else switch(v===99&&Xe(A,3)===110?100:v){case 100:case 108:case 109:case 115:ci(e,T,T,r&&Hr(Ea(e,T,T,0,0,i,a,w,i,S=[],u),x),i,x,u,a,r?S:x);break;default:ci(A,T,T,T,[""],x,0,a,x)}}c=p=g=0,f=d=1,w=A="",u=s;break;case 58:u=1+zt(A),g=m;default:if(f<1){if(h==123)--f;else if(h==125&&f++==0&&cp()==125)continue}switch(A+=Fi(h),h*f){case 38:d=p>0?1:(A+="\f",-1);break;case 44:a[c++]=(zt(A)-1)*d,d=1;break;case 64:Ht()===45&&(A+=li(gt())),v=Ht(),p=u=zt(w=A+=pp(ai())),h++;break;case 45:m===45&&zt(A)==2&&(f=0)}}return o}function Ea(e,t,n,r,i,o,s,a,l,c,p){for(var u=i-1,v=i===0?o:[""],g=bs(v),m=0,f=0,y=0;m<r;++m)for(var d=0,h=Er(e,u+1,u=rp(f=s[m])),w=e;d<g;++d)(w=cc(f>0?v[d]+" "+h:Ce(h,/&\f/g,v[d])))&&(l[y++]=w);return zi(e,t,n,i===0?hs:a,l,c,p)}function hp(e,t,n){return zi(e,t,n,ac,Fi(lp()),Er(e,2,-2),0)}function ka(e,t,n,r){return zi(e,t,n,gs,Er(e,0,r),Er(e,r+1,-1),r)}function Wn(e,t){for(var n="",r=bs(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function gp(e,t,n,r){switch(e.type){case np:if(e.children.length)break;case tp:case gs:return e.return=e.return||e.value;case ac:return"";case lc:return e.return=e.value+"{"+Wn(e.children,r)+"}";case hs:e.value=e.props.join(",")}return zt(n=Wn(e.children,r))?e.return=e.value+"{"+n+"}":""}function bp(e){var t=bs(e);return function(n,r,i,o){for(var s="",a=0;a<t;a++)s+=e[a](n,r,i,o)||"";return s}}function vp(e){return function(t){t.root||(t=t.return)&&e(t)}}var Ta=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var i=t(r);return n.set(r,i),i}};function yp(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var wp=function(t,n,r){for(var i=0,o=0;i=o,o=Ht(),i===38&&o===12&&(n[r]=1),!kr(o);)gt();return _r(t,ft)},Sp=function(t,n){var r=-1,i=44;do switch(kr(i)){case 0:i===38&&Ht()===12&&(n[r]=1),t[r]+=wp(ft-1,n,r);break;case 2:t[r]+=li(i);break;case 4:if(i===44){t[++r]=Ht()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Fi(i)}while(i=gt());return t},xp=function(t,n){return fc(Sp(dc(t),n))},Aa=new WeakMap,Cp=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Aa.get(r))&&!i){Aa.set(t,!0);for(var o=[],s=xp(n,o),a=r.props,l=0,c=0;l<s.length;l++)for(var p=0;p<a.length;p++,c++)t.props[c]=o[l]?s[l].replace(/&\f/g,a[p]):a[p]+" "+s[l]}}},Ep=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function pc(e,t){switch(op(e,t)){case 5103:return xe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return xe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xe+e+hi+e+Je+e+e;case 6828:case 4268:return xe+e+Je+e+e;case 6165:return xe+e+Je+"flex-"+e+e;case 5187:return xe+e+Ce(e,/(\w+).+(:[^]+)/,xe+"box-$1$2"+Je+"flex-$1$2")+e;case 5443:return xe+e+Je+"flex-item-"+Ce(e,/flex-|-self/,"")+e;case 4675:return xe+e+Je+"flex-line-pack"+Ce(e,/align-content|flex-|-self/,"")+e;case 5548:return xe+e+Je+Ce(e,"shrink","negative")+e;case 5292:return xe+e+Je+Ce(e,"basis","preferred-size")+e;case 6060:return xe+"box-"+Ce(e,"-grow","")+xe+e+Je+Ce(e,"grow","positive")+e;case 4554:return xe+Ce(e,/([^-])(transform)/g,"$1"+xe+"$2")+e;case 6187:return Ce(Ce(Ce(e,/(zoom-|grab)/,xe+"$1"),/(image-set)/,xe+"$1"),e,"")+e;case 5495:case 3959:return Ce(e,/(image-set\([^]*)/,xe+"$1$`$1");case 4968:return Ce(Ce(e,/(.+:)(flex-)?(.*)/,xe+"box-pack:$3"+Je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xe+e+e;case 4095:case 3583:case 4068:case 2532:return Ce(e,/(.+)-inline(.+)/,xe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(zt(e)-1-t>6)switch(Xe(e,t+1)){case 109:if(Xe(e,t+4)!==45)break;case 102:return Ce(e,/(.+:)(.+)-([^]+)/,"$1"+xe+"$2-$3$1"+hi+(Xe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Fo(e,"stretch")?pc(Ce(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Xe(e,t+1)!==115)break;case 6444:switch(Xe(e,zt(e)-3-(~Fo(e,"!important")&&10))){case 107:return Ce(e,":",":"+xe)+e;case 101:return Ce(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xe+(Xe(e,14)===45?"inline-":"")+"box$3$1"+xe+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(Xe(e,t+11)){case 114:return xe+e+Je+Ce(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xe+e+Je+Ce(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xe+e+Je+Ce(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xe+e+Je+e+e}return e}var kp=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case gs:t.return=pc(t.value,t.length);break;case lc:return Wn([sr(t,{value:Ce(t.value,"@","@"+xe)})],i);case hs:if(t.length)return ap(t.props,function(o){switch(sp(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wn([sr(t,{props:[Ce(o,/:(read-\w+)/,":"+hi+"$1")]})],i);case"::placeholder":return Wn([sr(t,{props:[Ce(o,/:(plac\w+)/,":"+xe+"input-$1")]}),sr(t,{props:[Ce(o,/:(plac\w+)/,":"+hi+"$1")]}),sr(t,{props:[Ce(o,/:(plac\w+)/,Je+"input-$1")]})],i)}return""})}},Tp=[kp],Ap=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(f){var y=f.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var i=t.stylisPlugins||Tp,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var y=f.getAttribute("data-emotion").split(" "),d=1;d<y.length;d++)o[y[d]]=!0;a.push(f)});var l,c=[Cp,Ep];{var p,u=[gp,vp(function(f){p.insert(f)})],v=bp(c.concat(i,u)),g=function(y){return Wn(mp(y),v)};l=function(y,d,h,w){p=h,g(y?y+"{"+d.styles+"}":d.styles),w&&(m.inserted[d.name]=!0)}}var m={key:n,sheet:new ep({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return m.sheet.hydrate(a),m},Pp=!0;function Ip(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var mc=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Pp===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},hc=function(t,n,r){mc(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Op(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Rp={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_p=/[A-Z]|^ms/g,Mp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gc=function(t){return t.charCodeAt(1)===45},Pa=function(t){return t!=null&&typeof t!="boolean"},ao=yp(function(e){return gc(e)?e:e.replace(_p,"-$&").toLowerCase()}),Ia=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Mp,function(r,i,o){return Bt={name:i,styles:o,next:Bt},i})}return Rp[t]!==1&&!gc(t)&&typeof n=="number"&&n!==0?n+"px":n};function Tr(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Bt={name:i.name,styles:i.styles,next:Bt},i.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Bt={name:s.name,styles:s.styles,next:Bt},s=s.next;var a=o.styles+";";return a}return Dp(e,t,n)}case"function":{if(e!==void 0){var l=Bt,c=n(e);return Bt=l,Tr(e,t,c)}break}}var p=n;return p}function Dp(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Tr(e,t,n[i])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var a=s;Pa(a)&&(r+=ao(o)+":"+Ia(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var l=0;l<s.length;l++)Pa(s[l])&&(r+=ao(o)+":"+Ia(o,s[l])+";");else{var c=Tr(e,t,s);switch(o){case"animation":case"animationName":{r+=ao(o)+":"+c+";";break}default:r+=o+"{"+c+"}"}}}return r}var Oa=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Bt;function vs(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";Bt=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=Tr(n,t,o);else{var s=o;i+=s[0]}for(var a=1;a<e.length;a++)if(i+=Tr(n,t,e[a]),r){var l=o;i+=l[a]}Oa.lastIndex=0;for(var c="",p;(p=Oa.exec(i))!==null;)c+="-"+p[1];var u=Op(i)+c;return{name:u,styles:i,next:Bt}}var Lp=function(t){return t()},bc=Cr.useInsertionEffect?Cr.useInsertionEffect:!1,Np=bc||Lp,Ra=bc||b.useLayoutEffect,vc=b.createContext(typeof HTMLElement<"u"?Ap({key:"css"}):null);vc.Provider;var yc=function(t){return b.forwardRef(function(n,r){var i=b.useContext(vc);return t(n,i,r)})},gi=b.createContext({}),Fp=function(t,n){if(typeof n=="function"){var r=n(t);return r}return Wf({},t,n)},$p=Ta(function(e){return Ta(function(t){return Fp(e,t)})}),zp=function(t){var n=b.useContext(gi);return t.theme!==n&&(n=$p(n)(t.theme)),b.createElement(gi.Provider,{value:n},t.children)},Bi={}.hasOwnProperty,zo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",wc=function(t,n){var r={};for(var i in n)Bi.call(n,i)&&(r[i]=n[i]);return r[zo]=t,r},Bp=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return mc(n,r,i),Np(function(){return hc(n,r,i)}),null},jp=yc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[zo],o=[r],s="";typeof e.className=="string"?s=Ip(t.registered,o,e.className):e.className!=null&&(s=e.className+" ");var a=vs(o,void 0,b.useContext(gi));s+=t.key+"-"+a.name;var l={};for(var c in e)Bi.call(e,c)&&c!=="css"&&c!==zo&&(l[c]=e[c]);return l.className=s,n&&(l.ref=n),b.createElement(b.Fragment,null,b.createElement(Bp,{cache:t,serialized:a,isStringTag:typeof i=="string"}),b.createElement(i,l))}),Sc=jp,Vp=yc(function(e,t){var n=e.styles,r=vs([n],void 0,b.useContext(gi)),i=b.useRef();return Ra(function(){var o=t.key+"-global",s=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",o),s.hydrate([l])),i.current=[s,a],function(){s.flush()}},[t]),Ra(function(){var o=i.current,s=o[0],a=o[1];if(a){o[1]=!1;return}if(r.next!==void 0&&hc(t,r.next,!0),s.tags.length){var l=s.tags[s.tags.length-1].nextElementSibling;s.before=l,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function Hp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return vs(t)}var nn=function(){var t=Hp.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function ye(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Wp(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ys(...e){return t=>e.forEach(n=>Wp(n,t))}function Te(...e){return b.useCallback(ys(...e),e)}function Gp(e,t){const n=b.createContext(t);function r(o){const{children:s,...a}=o,l=b.useMemo(()=>a,Object.values(a));return M.jsx(n.Provider,{value:l,children:s})}function i(o){const s=b.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,i]}function Wt(e,t=[]){let n=[];function r(o,s){const a=b.createContext(s),l=n.length;n=[...n,s];function c(u){const{scope:v,children:g,...m}=u,f=(v==null?void 0:v[e][l])||a,y=b.useMemo(()=>m,Object.values(m));return M.jsx(f.Provider,{value:y,children:g})}function p(u,v){const g=(v==null?void 0:v[e][l])||a,m=b.useContext(g);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,p]}const i=()=>{const o=n.map(s=>b.createContext(s));return function(a){const l=(a==null?void 0:a[e])||o;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,Up(i,...t)]}function Up(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((a,{useScope:l,scopeName:c})=>{const u=l(o)[`__scope${c}`];return{...a,...u}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Qe=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},Yp=Cr.useId||(()=>{}),qp=0;function xn(e){const[t,n]=b.useState(Yp());return Qe(()=>{n(r=>r??String(qp++))},[e]),t?`radix-${t}`:""}function Jt(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function En({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=Xp({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:r,a=Jt(n),l=b.useCallback(c=>{if(o){const u=typeof c=="function"?c(e):c;u!==e&&a(u)}else i(c)},[o,e,i,a]);return[s,l]}function Xp({defaultProp:e,onChange:t}){const n=b.useState(e),[r]=n,i=b.useRef(r),o=Jt(t);return b.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var Kn=b.forwardRef((e,t)=>{const{children:n,...r}=e,i=b.Children.toArray(n),o=i.find(Zp);if(o){const s=o.props.children,a=i.map(l=>l===o?b.Children.count(s)>1?b.Children.only(null):b.isValidElement(s)?s.props.children:null:l);return M.jsx(Bo,{...r,ref:t,children:b.isValidElement(s)?b.cloneElement(s,void 0,a):null})}return M.jsx(Bo,{...r,ref:t,children:n})});Kn.displayName="Slot";var Bo=b.forwardRef((e,t)=>{const{children:n,...r}=e;if(b.isValidElement(n)){const i=Qp(n);return b.cloneElement(n,{...Jp(r,n.props),ref:t?ys(t,i):i})}return b.Children.count(n)>1?b.Children.only(null):null});Bo.displayName="SlotClone";var Kp=({children:e})=>M.jsx(M.Fragment,{children:e});function Zp(e){return b.isValidElement(e)&&e.type===Kp}function Jp(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{o(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function Qp(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var em=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ke=em.reduce((e,t)=>{const n=b.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?Kn:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),M.jsx(a,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function tm(e,t){e&&Zn.flushSync(()=>e.dispatchEvent(t))}function nm(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e);b.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var rm="DismissableLayer",jo="dismissableLayer.update",im="dismissableLayer.pointerDownOutside",om="dismissableLayer.focusOutside",_a,xc=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ws=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...l}=e,c=b.useContext(xc),[p,u]=b.useState(null),v=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=b.useState({}),m=Te(t,A=>u(A)),f=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),d=f.indexOf(y),h=p?f.indexOf(p):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,S=h>=d,x=lm(A=>{const k=A.target,_=[...c.branches].some(z=>z.contains(k));!S||_||(i==null||i(A),s==null||s(A),A.defaultPrevented||a==null||a())},v),T=cm(A=>{const k=A.target;[...c.branches].some(z=>z.contains(k))||(o==null||o(A),s==null||s(A),A.defaultPrevented||a==null||a())},v);return nm(A=>{h===c.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},v),b.useEffect(()=>{if(p)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(_a=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(p)),c.layers.add(p),Ma(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=_a)}},[p,v,n,c]),b.useEffect(()=>()=>{p&&(c.layers.delete(p),c.layersWithOutsidePointerEventsDisabled.delete(p),Ma())},[p,c]),b.useEffect(()=>{const A=()=>g({});return document.addEventListener(jo,A),()=>document.removeEventListener(jo,A)},[]),M.jsx(ke.div,{...l,ref:m,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,x.onPointerDownCapture)})});ws.displayName=rm;var sm="DismissableLayerBranch",am=b.forwardRef((e,t)=>{const n=b.useContext(xc),r=b.useRef(null),i=Te(t,r);return b.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),M.jsx(ke.div,{...e,ref:i})});am.displayName=sm;function lm(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e),r=b.useRef(!1),i=b.useRef(()=>{});return b.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let l=function(){Cc(im,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function cm(e,t=globalThis==null?void 0:globalThis.document){const n=Jt(e),r=b.useRef(!1);return b.useEffect(()=>{const i=o=>{o.target&&!r.current&&Cc(om,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ma(){const e=new CustomEvent(jo);document.dispatchEvent(e)}function Cc(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?tm(i,o):i.dispatchEvent(o)}var lo="focusScope.autoFocusOnMount",co="focusScope.autoFocusOnUnmount",Da={bubbles:!1,cancelable:!0},um="FocusScope",Ss=b.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[a,l]=b.useState(null),c=Jt(i),p=Jt(o),u=b.useRef(null),v=Te(t,f=>l(f)),g=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(r){let f=function(w){if(g.paused||!a)return;const S=w.target;a.contains(S)?u.current=S:un(u.current,{select:!0})},y=function(w){if(g.paused||!a)return;const S=w.relatedTarget;S!==null&&(a.contains(S)||un(u.current,{select:!0}))},d=function(w){if(document.activeElement===document.body)for(const x of w)x.removedNodes.length>0&&un(a)};document.addEventListener("focusin",f),document.addEventListener("focusout",y);const h=new MutationObserver(d);return a&&h.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",y),h.disconnect()}}},[r,a,g.paused]),b.useEffect(()=>{if(a){Na.add(g);const f=document.activeElement;if(!a.contains(f)){const d=new CustomEvent(lo,Da);a.addEventListener(lo,c),a.dispatchEvent(d),d.defaultPrevented||(dm(gm(Ec(a)),{select:!0}),document.activeElement===f&&un(a))}return()=>{a.removeEventListener(lo,c),setTimeout(()=>{const d=new CustomEvent(co,Da);a.addEventListener(co,p),a.dispatchEvent(d),d.defaultPrevented||un(f??document.body,{select:!0}),a.removeEventListener(co,p),Na.remove(g)},0)}}},[a,c,p,g]);const m=b.useCallback(f=>{if(!n&&!r||g.paused)return;const y=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,d=document.activeElement;if(y&&d){const h=f.currentTarget,[w,S]=fm(h);w&&S?!f.shiftKey&&d===S?(f.preventDefault(),n&&un(w,{select:!0})):f.shiftKey&&d===w&&(f.preventDefault(),n&&un(S,{select:!0})):d===h&&f.preventDefault()}},[n,r,g.paused]);return M.jsx(ke.div,{tabIndex:-1,...s,ref:v,onKeyDown:m})});Ss.displayName=um;function dm(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(un(r,{select:t}),document.activeElement!==n)return}function fm(e){const t=Ec(e),n=La(t,e),r=La(t.reverse(),e);return[n,r]}function Ec(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function La(e,t){for(const n of e)if(!pm(n,{upTo:t}))return n}function pm(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function mm(e){return e instanceof HTMLInputElement&&"select"in e}function un(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&mm(e)&&t&&e.select()}}var Na=hm();function hm(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Fa(e,t),e.unshift(t)},remove(t){var n;e=Fa(e,t),(n=e[0])==null||n.resume()}}}function Fa(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function gm(e){return e.filter(t=>t.tagName!=="A")}var bm="Portal",xs=b.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,o]=b.useState(!1);Qe(()=>o(!0),[]);const s=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Gf.createPortal(M.jsx(ke.div,{...r,ref:t}),s):null});xs.displayName=bm;function vm(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var On=e=>{const{present:t,children:n}=e,r=ym(t),i=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),o=Te(r.ref,wm(i));return typeof n=="function"||r.isPresent?b.cloneElement(i,{ref:o}):null};On.displayName="Presence";function ym(e){const[t,n]=b.useState(),r=b.useRef({}),i=b.useRef(e),o=b.useRef("none"),s=e?"mounted":"unmounted",[a,l]=vm(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const c=Wr(r.current);o.current=a==="mounted"?c:"none"},[a]),Qe(()=>{const c=r.current,p=i.current;if(p!==e){const v=o.current,g=Wr(c);e?l("MOUNT"):g==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(p&&v!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Qe(()=>{if(t){const c=u=>{const g=Wr(r.current).includes(u.animationName);u.target===t&&g&&Zn.flushSync(()=>l("ANIMATION_END"))},p=u=>{u.target===t&&(o.current=Wr(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:b.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Wr(e){return(e==null?void 0:e.animationName)||"none"}function wm(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var uo=0;function kc(){b.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??$a()),document.body.insertAdjacentElement("beforeend",e[1]??$a()),uo++,()=>{uo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),uo--}},[])}function $a(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var dn=function(){return dn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},dn.apply(this,arguments)};function Sm(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function xm(e,t,n){for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var Gn="right-scroll-bar-position",Un="width-before-scroll-bar",Cm="with-scroll-bars-hidden",Em="--removed-body-scroll-bar-size";function fo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function km(e,t){var n=b.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var Tm=typeof window<"u"?b.useLayoutEffect:b.useEffect,za=new WeakMap;function Cs(e,t){var n=km(null,function(r){return e.forEach(function(i){return fo(i,r)})});return Tm(function(){var r=za.get(n);if(r){var i=new Set(r),o=new Set(e),s=n.current;i.forEach(function(a){o.has(a)||fo(a,null)}),o.forEach(function(a){i.has(a)||fo(a,s)})}za.set(n,e)},[e]),n}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var bi=function(){return bi=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},bi.apply(this,arguments)};function Am(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Pm(e){return e}function Im(e,t){t===void 0&&(t=Pm);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var s=t(o,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var l=function(){var p=s;s=[],p.forEach(o)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(p){s.push(p),c()},filter:function(p){return s=s.filter(p),n}}}};return i}function Es(e){e===void 0&&(e={});var t=Im(null);return t.options=bi({async:!0,ssr:!1},e),t}var Tc=function(e){var t=e.sideCar,n=Am(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return b.createElement(r,bi({},n))};Tc.isSideCarExport=!0;function ks(e,t){return e.useMedium(t),Tc}var Ac=Es(),po=function(){},ji=b.forwardRef(function(e,t){var n=b.useRef(null),r=b.useState({onScrollCapture:po,onWheelCapture:po,onTouchMoveCapture:po}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,p=e.enabled,u=e.shards,v=e.sideCar,g=e.noIsolation,m=e.inert,f=e.allowPinchZoom,y=e.as,d=y===void 0?"div":y,h=e.gapMode,w=Sm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,x=Cs([n,t]),T=dn(dn({},w),i);return b.createElement(b.Fragment,null,p&&b.createElement(S,{sideCar:Ac,removeScrollBar:c,shards:u,noIsolation:g,inert:m,setCallbacks:o,allowPinchZoom:!!f,lockRef:n,gapMode:h}),s?b.cloneElement(b.Children.only(a),dn(dn({},T),{ref:x})):b.createElement(d,dn({},T,{className:l,ref:x}),a))});ji.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ji.classNames={fullWidth:Un,zeroRight:Gn};var Om=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Rm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Om();return t&&e.setAttribute("nonce",t),e}function _m(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Mm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Dm=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Rm())&&(_m(t,n),Mm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Lm=function(){var e=Dm();return function(t,n){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Vi=function(){var e=Lm(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},Nm={left:0,top:0,right:0,gap:0},mo=function(e){return parseInt(e||"",10)||0},Fm=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[mo(n),mo(r),mo(i)]},$m=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Nm;var t=Fm(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},zm=Vi(),Yn="data-scroll-locked",Bm=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` .`.concat(Cm,` { overflow: hidden `).concat(r,`; padding-right: `).concat(a,"px ").concat(r,`; } body[`).concat(Yn,`] { overflow: hidden `).concat(r,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` padding-left: `.concat(i,`px; padding-top: `).concat(o,`px; padding-right: `).concat(s,`px; margin-left:0; margin-top:0; margin-right: `).concat(a,"px ").concat(r,`; `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` } .`).concat(Gn,` { right: `).concat(a,"px ").concat(r,`; } .`).concat(Un,` { margin-right: `).concat(a,"px ").concat(r,`; } .`).concat(Gn," .").concat(Gn,` { right: 0 `).concat(r,`; } .`).concat(Un," .").concat(Un,` { margin-right: 0 `).concat(r,`; } body[`).concat(Yn,`] { `).concat(Em,": ").concat(a,`px; } `)},Ba=function(){var e=parseInt(document.body.getAttribute(Yn)||"0",10);return isFinite(e)?e:0},jm=function(){b.useEffect(function(){return document.body.setAttribute(Yn,(Ba()+1).toString()),function(){var e=Ba()-1;e<=0?document.body.removeAttribute(Yn):document.body.setAttribute(Yn,e.toString())}},[])},Ts=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;jm();var o=b.useMemo(function(){return $m(i)},[i]);return b.createElement(zm,{styles:Bm(o,!t,i,n?"":"!important")})},Vo=!1;if(typeof window<"u")try{var Gr=Object.defineProperty({},"passive",{get:function(){return Vo=!0,!0}});window.addEventListener("test",Gr,Gr),window.removeEventListener("test",Gr,Gr)}catch{Vo=!1}var Dn=Vo?{passive:!1}:!1,Vm=function(e){return e.tagName==="TEXTAREA"},Pc=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Vm(e)&&n[t]==="visible")},Hm=function(e){return Pc(e,"overflowY")},Wm=function(e){return Pc(e,"overflowX")},ja=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=Ic(e,r);if(i){var o=Oc(e,r),s=o[1],a=o[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Gm=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Um=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ic=function(e,t){return e==="v"?Hm(t):Wm(t)},Oc=function(e,t){return e==="v"?Gm(t):Um(t)},Ym=function(e,t){return e==="h"&&t==="rtl"?-1:1},qm=function(e,t,n,r,i){var o=Ym(e,window.getComputedStyle(t).direction),s=o*r,a=n.target,l=t.contains(a),c=!1,p=s>0,u=0,v=0;do{var g=Oc(e,a),m=g[0],f=g[1],y=g[2],d=f-y-o*m;(m||d)&&Ic(e,a)&&(u+=d,v+=m),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(p&&Math.abs(u)<1||!p&&Math.abs(v)<1)&&(c=!0),c},Ur=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Va=function(e){return[e.deltaX,e.deltaY]},Ha=function(e){return e&&"current"in e?e.current:e},Xm=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Km=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},Zm=0,Ln=[];function Jm(e){var t=b.useRef([]),n=b.useRef([0,0]),r=b.useRef(),i=b.useState(Zm++)[0],o=b.useState(Vi)[0],s=b.useRef(e);b.useEffect(function(){s.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var f=xm([e.lockRef.current],(e.shards||[]).map(Ha)).filter(Boolean);return f.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),f.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=b.useCallback(function(f,y){if("touches"in f&&f.touches.length===2)return!s.current.allowPinchZoom;var d=Ur(f),h=n.current,w="deltaX"in f?f.deltaX:h[0]-d[0],S="deltaY"in f?f.deltaY:h[1]-d[1],x,T=f.target,A=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in f&&A==="h"&&T.type==="range")return!1;var k=ja(A,T);if(!k)return!0;if(k?x=A:(x=A==="v"?"h":"v",k=ja(A,T)),!k)return!1;if(!r.current&&"changedTouches"in f&&(w||S)&&(r.current=x),!x)return!0;var _=r.current||x;return qm(_,y,f,_==="h"?w:S)},[]),l=b.useCallback(function(f){var y=f;if(!(!Ln.length||Ln[Ln.length-1]!==o)){var d="deltaY"in y?Va(y):Ur(y),h=t.current.filter(function(x){return x.name===y.type&&(x.target===y.target||y.target===x.shadowParent)&&Xm(x.delta,d)})[0];if(h&&h.should){y.cancelable&&y.preventDefault();return}if(!h){var w=(s.current.shards||[]).map(Ha).filter(Boolean).filter(function(x){return x.contains(y.target)}),S=w.length>0?a(y,w[0]):!s.current.noIsolation;S&&y.cancelable&&y.preventDefault()}}},[]),c=b.useCallback(function(f,y,d,h){var w={name:f,delta:y,target:d,should:h,shadowParent:Qm(d)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),p=b.useCallback(function(f){n.current=Ur(f),r.current=void 0},[]),u=b.useCallback(function(f){c(f.type,Va(f),f.target,a(f,e.lockRef.current))},[]),v=b.useCallback(function(f){c(f.type,Ur(f),f.target,a(f,e.lockRef.current))},[]);b.useEffect(function(){return Ln.push(o),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:v}),document.addEventListener("wheel",l,Dn),document.addEventListener("touchmove",l,Dn),document.addEventListener("touchstart",p,Dn),function(){Ln=Ln.filter(function(f){return f!==o}),document.removeEventListener("wheel",l,Dn),document.removeEventListener("touchmove",l,Dn),document.removeEventListener("touchstart",p,Dn)}},[]);var g=e.removeScrollBar,m=e.inert;return b.createElement(b.Fragment,null,m?b.createElement(o,{styles:Km(i)}):null,g?b.createElement(Ts,{gapMode:e.gapMode}):null)}function Qm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const eh=ks(Ac,Jm);var Rc=b.forwardRef(function(e,t){return b.createElement(ji,dn({},e,{ref:t,sideCar:eh}))});Rc.classNames=ji.classNames;var th=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Nn=new WeakMap,Yr=new WeakMap,qr={},ho=0,_c=function(e){return e&&(e.host||_c(e.parentNode))},nh=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=_c(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},rh=function(e,t,n,r){var i=nh(t,Array.isArray(e)?e:[e]);qr[n]||(qr[n]=new WeakMap);var o=qr[n],s=[],a=new Set,l=new Set(i),c=function(u){!u||a.has(u)||(a.add(u),c(u.parentNode))};i.forEach(c);var p=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(v){if(a.has(v))p(v);else try{var g=v.getAttribute(r),m=g!==null&&g!=="false",f=(Nn.get(v)||0)+1,y=(o.get(v)||0)+1;Nn.set(v,f),o.set(v,y),s.push(v),f===1&&m&&Yr.set(v,!0),y===1&&v.setAttribute(n,"true"),m||v.setAttribute(r,"true")}catch(d){console.error("aria-hidden: cannot operate on ",v,d)}})};return p(t),a.clear(),ho++,function(){s.forEach(function(u){var v=Nn.get(u)-1,g=o.get(u)-1;Nn.set(u,v),o.set(u,g),v||(Yr.has(u)||u.removeAttribute(r),Yr.delete(u)),g||u.removeAttribute(n)}),ho--,ho||(Nn=new WeakMap,Nn=new WeakMap,Yr=new WeakMap,qr={})}},Mc=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=th(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),rh(r,i,n,"aria-hidden")):function(){return null}},As="Dialog",[Dc,NC]=Wt(As),[ih,_t]=Dc(As),Lc=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,a=b.useRef(null),l=b.useRef(null),[c=!1,p]=En({prop:r,defaultProp:i,onChange:o});return M.jsx(ih,{scope:t,triggerRef:a,contentRef:l,contentId:xn(),titleId:xn(),descriptionId:xn(),open:c,onOpenChange:p,onOpenToggle:b.useCallback(()=>p(u=>!u),[p]),modal:s,children:n})};Lc.displayName=As;var Nc="DialogTrigger",oh=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=_t(Nc,n),o=Te(t,i.triggerRef);return M.jsx(ke.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Os(i.open),...r,ref:o,onClick:ye(e.onClick,i.onOpenToggle)})});oh.displayName=Nc;var Ps="DialogPortal",[sh,Fc]=Dc(Ps,{forceMount:void 0}),$c=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=_t(Ps,t);return M.jsx(sh,{scope:t,forceMount:n,children:b.Children.map(r,s=>M.jsx(On,{present:n||o.open,children:M.jsx(xs,{asChild:!0,container:i,children:s})}))})};$c.displayName=Ps;var vi="DialogOverlay",zc=b.forwardRef((e,t)=>{const n=Fc(vi,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=_t(vi,e.__scopeDialog);return o.modal?M.jsx(On,{present:r||o.open,children:M.jsx(ah,{...i,ref:t})}):null});zc.displayName=vi;var ah=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=_t(vi,n);return M.jsx(Rc,{as:Kn,allowPinchZoom:!0,shards:[i.contentRef],children:M.jsx(ke.div,{"data-state":Os(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),kn="DialogContent",Bc=b.forwardRef((e,t)=>{const n=Fc(kn,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=_t(kn,e.__scopeDialog);return M.jsx(On,{present:r||o.open,children:o.modal?M.jsx(lh,{...i,ref:t}):M.jsx(ch,{...i,ref:t})})});Bc.displayName=kn;var lh=b.forwardRef((e,t)=>{const n=_t(kn,e.__scopeDialog),r=b.useRef(null),i=Te(t,n.contentRef,r);return b.useEffect(()=>{const o=r.current;if(o)return Mc(o)},[]),M.jsx(jc,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ye(e.onCloseAutoFocus,o=>{var s;o.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:ye(e.onPointerDownOutside,o=>{const s=o.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&o.preventDefault()}),onFocusOutside:ye(e.onFocusOutside,o=>o.preventDefault())})}),ch=b.forwardRef((e,t)=>{const n=_t(kn,e.__scopeDialog),r=b.useRef(!1),i=b.useRef(!1);return M.jsx(jc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=o.target;((c=n.triggerRef.current)==null?void 0:c.contains(s))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),jc=b.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,a=_t(kn,n),l=b.useRef(null),c=Te(t,l);return kc(),M.jsxs(M.Fragment,{children:[M.jsx(Ss,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:M.jsx(ws,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Os(a.open),...s,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),M.jsxs(M.Fragment,{children:[M.jsx(uh,{titleId:a.titleId}),M.jsx(fh,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Is="DialogTitle",Vc=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=_t(Is,n);return M.jsx(ke.h2,{id:i.titleId,...r,ref:t})});Vc.displayName=Is;var Hc="DialogDescription",Wc=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=_t(Hc,n);return M.jsx(ke.p,{id:i.descriptionId,...r,ref:t})});Wc.displayName=Hc;var Gc="DialogClose",Uc=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=_t(Gc,n);return M.jsx(ke.button,{type:"button",...r,ref:t,onClick:ye(e.onClick,()=>i.onOpenChange(!1))})});Uc.displayName=Gc;function Os(e){return e?"open":"closed"}var Yc="DialogTitleWarning",[FC,qc]=Gp(Yc,{contentName:kn,titleName:Is,docsSlug:"dialog"}),uh=({titleId:e})=>{const t=qc(Yc),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return b.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},dh="DialogDescriptionWarning",fh=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${qc(dh).contentName}}.`;return b.useEffect(()=>{var o;const i=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ph=Lc,mh=$c,hh=zc,gh=Bc,bh=Vc,vh=Wc,yh=Uc,Hi=M.Fragment;function C(e,t,n){return Bi.call(t,"css")?M.jsx(Sc,wc(e,t),n):M.jsx(e,t,n)}function ce(e,t,n){return Bi.call(t,"css")?M.jsxs(Sc,wc(e,t),n):M.jsxs(e,t,n)}function Xc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Xc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function wh(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Xc(e))&&(r&&(r+=" "),r+=t);return r}var Kc={};const Sh=["-epub-caption-side","-epub-hyphens","-epub-text-combine","-epub-text-emphasis","-epub-text-emphasis-color","-epub-text-emphasis-style","-epub-text-orientation","-epub-text-transform","-epub-word-break","-epub-writing-mode","-internal-text-autosizing-status","accelerator","accent-color","-wap-accesskey","additive-symbols","align-content","-webkit-align-content","align-items","-webkit-align-items","align-self","-webkit-align-self","alignment-baseline","all","alt","-webkit-alt","anchor-default","anchor-name","anchor-scroll","animation","animation-composition","animation-delay","-moz-animation-delay","-ms-animation-delay","-webkit-animation-delay","animation-direction","-moz-animation-direction","-ms-animation-direction","-webkit-animation-direction","animation-duration","-moz-animation-duration","-ms-animation-duration","-webkit-animation-duration","animation-fill-mode","-moz-animation-fill-mode","-ms-animation-fill-mode","-webkit-animation-fill-mode","animation-iteration-count","-moz-animation-iteration-count","-ms-animation-iteration-count","-webkit-animation-iteration-count","-moz-animation","-ms-animation","animation-name","-moz-animation-name","-ms-animation-name","-webkit-animation-name","animation-play-state","-moz-animation-play-state","-ms-animation-play-state","-webkit-animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","-moz-animation-timing-function","-ms-animation-timing-function","-webkit-animation-timing-function","-webkit-animation-trigger","-webkit-animation","app-region","-webkit-app-region","appearance","-moz-appearance","-webkit-appearance","ascent-override","aspect-ratio","-webkit-aspect-ratio","audio-level","azimuth","backdrop-filter","-webkit-backdrop-filter","backface-visibility","-moz-backface-visibility","-ms-backface-visibility","-webkit-backface-visibility","background","background-attachment","-webkit-background-attachment","background-blend-mode","background-clip","-moz-background-clip","-webkit-background-clip","background-color","-webkit-background-color","-webkit-background-composite","background-image","-webkit-background-image","-moz-background-inline-policy","background-origin","-moz-background-origin","-webkit-background-origin","background-position","-webkit-background-position","background-position-x","-webkit-background-position-x","background-position-y","-webkit-background-position-y","background-repeat","-webkit-background-repeat","background-repeat-x","background-repeat-y","background-size","-moz-background-size","-webkit-background-size","-webkit-background","base-palette","baseline-shift","baseline-source","behavior","-moz-binding","block-ellipsis","-ms-block-progression","block-size","block-step","block-step-align","block-step-insert","block-step-round","block-step-size","bookmark-label","bookmark-level","bookmark-state","border","-webkit-border-after-color","-webkit-border-after-style","-webkit-border-after","-webkit-border-after-width","-webkit-border-before-color","-webkit-border-before-style","-webkit-border-before","-webkit-border-before-width","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","-moz-border-bottom-colors","border-bottom-left-radius","-webkit-border-bottom-left-radius","border-bottom-right-radius","-webkit-border-bottom-right-radius","border-bottom-style","border-bottom-width","border-boundary","border-collapse","border-color","-moz-border-end-color","-webkit-border-end-color","border-end-end-radius","-moz-border-end","border-end-start-radius","-moz-border-end-style","-webkit-border-end-style","-webkit-border-end","-moz-border-end-width","-webkit-border-end-width","-webkit-border-fit","-webkit-border-horizontal-spacing","border-image","-moz-border-image","-o-border-image","border-image-outset","-webkit-border-image-outset","border-image-repeat","-webkit-border-image-repeat","border-image-slice","-webkit-border-image-slice","border-image-source","-webkit-border-image-source","-webkit-border-image","border-image-width","-webkit-border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","-moz-border-left-colors","border-left-style","border-left-width","border-radius","-moz-border-radius-bottomleft","-moz-border-radius-bottomright","-moz-border-radius","-moz-border-radius-topleft","-moz-border-radius-topright","-webkit-border-radius","border-right","border-right-color","-moz-border-right-colors","border-right-style","border-right-width","border-spacing","-moz-border-start-color","-webkit-border-start-color","border-start-end-radius","-moz-border-start","border-start-start-radius","-moz-border-start-style","-webkit-border-start-style","-webkit-border-start","-moz-border-start-width","-webkit-border-start-width","border-style","border-top","border-top-color","-moz-border-top-colors","border-top-left-radius","-webkit-border-top-left-radius","border-top-right-radius","-webkit-border-top-right-radius","border-top-style","border-top-width","-webkit-border-vertical-spacing","border-width","bottom","-moz-box-align","-webkit-box-align","box-decoration-break","-webkit-box-decoration-break","-moz-box-direction","-webkit-box-direction","-webkit-box-flex-group","-moz-box-flex","-webkit-box-flex","-webkit-box-lines","-moz-box-ordinal-group","-webkit-box-ordinal-group","-moz-box-orient","-webkit-box-orient","-moz-box-pack","-webkit-box-pack","-webkit-box-reflect","box-shadow","-moz-box-shadow","-webkit-box-shadow","box-sizing","-moz-box-sizing","-webkit-box-sizing","box-snap","break-after","break-before","break-inside","buffered-rendering","caption-side","caret","caret-color","caret-shape","chains","clear","clip","clip-path","-webkit-clip-path","clip-rule","color","color-adjust","-webkit-color-correction","-apple-color-filter","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","-webkit-column-axis","-webkit-column-break-after","-webkit-column-break-before","-webkit-column-break-inside","column-count","-moz-column-count","-webkit-column-count","column-fill","-moz-column-fill","-webkit-column-fill","column-gap","-moz-column-gap","-webkit-column-gap","column-progression","-webkit-column-progression","column-rule","column-rule-color","-moz-column-rule-color","-webkit-column-rule-color","-moz-column-rule","column-rule-style","-moz-column-rule-style","-webkit-column-rule-style","-webkit-column-rule","column-rule-width","-moz-column-rule-width","-webkit-column-rule-width","column-span","-moz-column-span","-webkit-column-span","column-width","-moz-column-width","-webkit-column-width","columns","-moz-columns","-webkit-columns","-webkit-composition-fill-color","-webkit-composition-frame-color","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","-ms-content-zoom-chaining","-ms-content-zoom-limit-max","-ms-content-zoom-limit-min","-ms-content-zoom-limit","-ms-content-zoom-snap","-ms-content-zoom-snap-points","-ms-content-zoom-snap-type","-ms-content-zooming","continue","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","-webkit-cursor-visibility","cx","cy","d","-apple-dashboard-region","-webkit-dashboard-region","descent-override","direction","display","display-align","dominant-baseline","elevation","empty-cells","enable-background","epub-caption-side","epub-hyphens","epub-text-combine","epub-text-emphasis","epub-text-emphasis-color","epub-text-emphasis-style","epub-text-orientation","epub-text-transform","epub-word-break","epub-writing-mode","fallback","fill","fill-break","fill-color","fill-image","fill-opacity","fill-origin","fill-position","fill-repeat","fill-rule","fill-size","filter","-ms-filter","-webkit-filter","flex","-ms-flex-align","-webkit-flex-align","flex-basis","-webkit-flex-basis","flex-direction","-ms-flex-direction","-webkit-flex-direction","flex-flow","-ms-flex-flow","-webkit-flex-flow","flex-grow","-webkit-flex-grow","-ms-flex-item-align","-webkit-flex-item-align","-ms-flex-line-pack","-webkit-flex-line-pack","-ms-flex","-ms-flex-negative","-ms-flex-order","-webkit-flex-order","-ms-flex-pack","-webkit-flex-pack","-ms-flex-positive","-ms-flex-preferred-size","flex-shrink","-webkit-flex-shrink","-webkit-flex","flex-wrap","-ms-flex-wrap","-webkit-flex-wrap","float","float-defer","-moz-float-edge","float-offset","float-reference","flood-color","flood-opacity","flow","flow-from","-ms-flow-from","-webkit-flow-from","flow-into","-ms-flow-into","-webkit-flow-into","font","font-display","font-family","font-feature-settings","-moz-font-feature-settings","-ms-font-feature-settings","-webkit-font-feature-settings","font-kerning","-webkit-font-kerning","font-language-override","-moz-font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","-webkit-font-size-delta","-webkit-font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","-webkit-font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","footnote-display","footnote-policy","-moz-force-broken-image-icon","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","-webkit-grid-after","grid-area","grid-auto-columns","-webkit-grid-auto-columns","grid-auto-flow","-webkit-grid-auto-flow","grid-auto-rows","-webkit-grid-auto-rows","-webkit-grid-before","grid-column","-ms-grid-column-align","grid-column-end","grid-column-gap","-ms-grid-column","-ms-grid-column-span","grid-column-start","-webkit-grid-column","-ms-grid-columns","-webkit-grid-columns","-webkit-grid-end","grid-gap","grid-row","-ms-grid-row-align","grid-row-end","grid-row-gap","-ms-grid-row","-ms-grid-row-span","grid-row-start","-webkit-grid-row","-ms-grid-rows","-webkit-grid-rows","-webkit-grid-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","-ms-high-contrast-adjust","-webkit-highlight","hyphenate-character","-webkit-hyphenate-character","-webkit-hyphenate-limit-after","-webkit-hyphenate-limit-before","hyphenate-limit-chars","-ms-hyphenate-limit-chars","hyphenate-limit-last","hyphenate-limit-lines","-ms-hyphenate-limit-lines","-webkit-hyphenate-limit-lines","hyphenate-limit-zone","-ms-hyphenate-limit-zone","hyphens","-moz-hyphens","-ms-hyphens","-webkit-hyphens","image-orientation","-moz-image-region","image-rendering","image-resolution","-ms-ime-align","ime-mode","inherits","initial-letter","initial-letter-align","-webkit-initial-letter","initial-letter-wrap","initial-value","inline-size","inline-sizing","input-format","-wap-input-format","-wap-input-required","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","-ms-interpolation-mode","isolation","justify-content","-webkit-justify-content","justify-items","-webkit-justify-items","justify-self","-webkit-justify-self","kerning","layout-flow","layout-grid","layout-grid-char","layout-grid-line","layout-grid-mode","layout-grid-type","left","letter-spacing","lighting-color","-webkit-line-align","-webkit-line-box-contain","line-break","-webkit-line-break","line-clamp","-webkit-line-clamp","line-gap-override","line-grid","-webkit-line-grid-snap","-webkit-line-grid","line-height","line-height-step","line-increment","line-padding","line-snap","-webkit-line-snap","-o-link","-o-link-source","list-style","list-style-image","list-style-position","list-style-type","-webkit-locale","-webkit-logical-height","-webkit-logical-width","margin","-webkit-margin-after-collapse","-webkit-margin-after","-webkit-margin-before-collapse","-webkit-margin-before","margin-block","margin-block-end","margin-block-start","margin-bottom","-webkit-margin-bottom-collapse","margin-break","-webkit-margin-collapse","-moz-margin-end","-webkit-margin-end","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","-moz-margin-start","-webkit-margin-start","margin-top","-webkit-margin-top-collapse","margin-trim","marker","marker-end","marker-knockout-left","marker-knockout-right","marker-mid","marker-offset","marker-pattern","marker-segment","marker-side","marker-start","marks","-wap-marquee-dir","-webkit-marquee-direction","-webkit-marquee-increment","-wap-marquee-loop","-webkit-marquee-repetition","-wap-marquee-speed","-webkit-marquee-speed","-wap-marquee-style","-webkit-marquee-style","-webkit-marquee","mask","-webkit-mask-attachment","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","-webkit-mask-box-image-outset","-webkit-mask-box-image-repeat","-webkit-mask-box-image-slice","-webkit-mask-box-image-source","-webkit-mask-box-image","-webkit-mask-box-image-width","mask-clip","-webkit-mask-clip","mask-composite","-webkit-mask-composite","mask-image","-webkit-mask-image","mask-mode","mask-origin","-webkit-mask-origin","mask-position","-webkit-mask-position","mask-position-x","-webkit-mask-position-x","mask-position-y","-webkit-mask-position-y","mask-repeat","-webkit-mask-repeat","-webkit-mask-repeat-x","-webkit-mask-repeat-y","mask-size","-webkit-mask-size","mask-source-type","-webkit-mask-source-type","mask-type","-webkit-mask","-webkit-match-nearest-mail-blockquote-color","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-lines","-webkit-max-logical-height","-webkit-max-logical-width","max-width","max-zoom","min-block-size","min-height","min-inline-size","min-intrinsic-sizing","-webkit-min-logical-height","-webkit-min-logical-width","min-width","min-zoom","mix-blend-mode","motion","motion-offset","motion-path","motion-rotation","nav-down","nav-index","nav-left","nav-right","nav-up","-webkit-nbsp-mode","negative","object-fit","-o-object-fit","object-position","-o-object-position","object-view-box","offset","offset-anchor","offset-block-end","offset-block-start","offset-distance","offset-inline-end","offset-inline-start","offset-path","offset-position","offset-rotate","offset-rotation","opacity","-moz-opacity","-webkit-opacity","order","-webkit-order","-moz-orient","orientation","orphans","-moz-osx-font-smoothing","outline","outline-color","-moz-outline-color","-moz-outline","outline-offset","-moz-outline-offset","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius","-moz-outline-radius-topleft","-moz-outline-radius-topright","outline-style","-moz-outline-style","outline-width","-moz-outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-clip-margin-block","overflow-clip-margin-block-end","overflow-clip-margin-block-start","overflow-clip-margin-bottom","overflow-clip-margin-inline","overflow-clip-margin-inline-end","overflow-clip-margin-inline-start","overflow-clip-margin-left","overflow-clip-margin-right","overflow-clip-margin-top","overflow-inline","-webkit-overflow-scrolling","-ms-overflow-style","overflow-wrap","overflow-x","overflow-y","overlay","override-colors","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","pad","padding","-webkit-padding-after","-webkit-padding-before","padding-block","padding-block-end","padding-block-start","padding-bottom","-moz-padding-end","-webkit-padding-end","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","-moz-padding-start","-webkit-padding-start","padding-top","page","page-break-after","page-break-before","page-break-inside","page-orientation","paint-order","pause","pause-after","pause-before","-apple-pay-button-style","-apple-pay-button-type","pen-action","perspective","-moz-perspective","-ms-perspective","perspective-origin","-moz-perspective-origin","-ms-perspective-origin","-webkit-perspective-origin","perspective-origin-x","-webkit-perspective-origin-x","perspective-origin-y","-webkit-perspective-origin-y","-webkit-perspective","pitch","pitch-range","place-content","place-items","place-self","play-during","pointer-events","position","position-fallback","position-fallback-bounds","prefix","print-color-adjust","-webkit-print-color-adjust","property-name","quotes","r","range","-webkit-region-break-after","-webkit-region-break-before","-webkit-region-break-inside","region-fragment","-webkit-region-fragment","-webkit-region-overflow","resize","rest","rest-after","rest-before","richness","right","rotate","row-gap","-webkit-rtl-ordering","ruby-align","ruby-merge","ruby-overhang","ruby-position","-webkit-ruby-position","running","rx","ry","scale","scroll-behavior","-ms-scroll-chaining","-ms-scroll-limit","-ms-scroll-limit-x-max","-ms-scroll-limit-x-min","-ms-scroll-limit-y-max","-ms-scroll-limit-y-min","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","-ms-scroll-rails","scroll-snap-align","scroll-snap-coordinate","-webkit-scroll-snap-coordinate","scroll-snap-destination","-webkit-scroll-snap-destination","scroll-snap-margin","scroll-snap-margin-bottom","scroll-snap-margin-left","scroll-snap-margin-right","scroll-snap-margin-top","scroll-snap-points-x","-ms-scroll-snap-points-x","-webkit-scroll-snap-points-x","scroll-snap-points-y","-ms-scroll-snap-points-y","-webkit-scroll-snap-points-y","scroll-snap-stop","scroll-snap-type","-ms-scroll-snap-type","-webkit-scroll-snap-type","scroll-snap-type-x","scroll-snap-type-y","-ms-scroll-snap-x","-ms-scroll-snap-y","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","-ms-scroll-translation","scrollbar-arrow-color","scrollbar-base-color","scrollbar-color","scrollbar-dark-shadow-color","scrollbar-darkshadow-color","scrollbar-face-color","scrollbar-gutter","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","scrollbar-width","scrollbar3d-light-color","scrollbar3dlight-color","shape-image-threshold","-webkit-shape-image-threshold","shape-inside","-webkit-shape-inside","shape-margin","-webkit-shape-margin","shape-outside","-webkit-shape-outside","-webkit-shape-padding","shape-rendering","size","size-adjust","snap-height","solid-color","solid-opacity","spatial-navigation-action","spatial-navigation-contain","spatial-navigation-function","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","src","-moz-stack-sizing","stop-color","stop-opacity","stress","string-set","stroke","stroke-align","stroke-alignment","stroke-break","stroke-color","stroke-dash-corner","stroke-dash-justify","stroke-dashadjust","stroke-dasharray","stroke-dashcorner","stroke-dashoffset","stroke-image","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-origin","stroke-position","stroke-repeat","stroke-size","stroke-width","suffix","supported-color-schemes","-webkit-svg-shadow","symbols","syntax","system","tab-size","-moz-tab-size","-o-tab-size","-o-table-baseline","table-layout","-webkit-tap-highlight-color","text-align","text-align-all","text-align-last","-moz-text-align-last","text-anchor","text-autospace","-moz-text-blink","text-box-edge","text-box-trim","-ms-text-combine-horizontal","text-combine-upright","-webkit-text-combine","text-decoration","text-decoration-blink","text-decoration-color","-moz-text-decoration-color","-webkit-text-decoration-color","text-decoration-line","-moz-text-decoration-line","text-decoration-line-through","-webkit-text-decoration-line","text-decoration-none","text-decoration-overline","text-decoration-skip","text-decoration-skip-box","text-decoration-skip-ink","text-decoration-skip-inset","text-decoration-skip-self","text-decoration-skip-spaces","-webkit-text-decoration-skip","text-decoration-style","-moz-text-decoration-style","-webkit-text-decoration-style","text-decoration-thickness","text-decoration-trim","text-decoration-underline","-webkit-text-decoration","-webkit-text-decorations-in-effect","text-emphasis","text-emphasis-color","-webkit-text-emphasis-color","text-emphasis-position","-webkit-text-emphasis-position","text-emphasis-skip","text-emphasis-style","-webkit-text-emphasis-style","-webkit-text-emphasis","-webkit-text-fill-color","text-group-align","text-indent","text-justify","text-justify-trim","text-kashida","text-kashida-space","text-line-through","text-line-through-color","text-line-through-mode","text-line-through-style","text-line-through-width","text-orientation","-webkit-text-orientation","text-overflow","text-overline","text-overline-color","text-overline-mode","text-overline-style","text-overline-width","text-rendering","-webkit-text-security","text-shadow","text-size-adjust","-moz-text-size-adjust","-ms-text-size-adjust","-webkit-text-size-adjust","text-spacing","text-spacing-trim","-webkit-text-stroke-color","-webkit-text-stroke","-webkit-text-stroke-width","text-transform","text-underline","text-underline-color","text-underline-mode","text-underline-offset","text-underline-position","-webkit-text-underline-position","text-underline-style","text-underline-width","text-wrap","text-wrap-mode","text-wrap-style","-webkit-text-zoom","timeline-scope","top","touch-action","touch-action-delay","-ms-touch-action","-webkit-touch-callout","-ms-touch-select","-apple-trailing-word","transform","transform-box","-moz-transform","-ms-transform","-o-transform","transform-origin","-moz-transform-origin","-ms-transform-origin","-o-transform-origin","-webkit-transform-origin","transform-origin-x","-webkit-transform-origin-x","transform-origin-y","-webkit-transform-origin-y","transform-origin-z","-webkit-transform-origin-z","transform-style","-moz-transform-style","-ms-transform-style","-webkit-transform-style","-webkit-transform","transition","transition-behavior","transition-delay","-moz-transition-delay","-ms-transition-delay","-o-transition-delay","-webkit-transition-delay","transition-duration","-moz-transition-duration","-ms-transition-duration","-o-transition-duration","-webkit-transition-duration","-moz-transition","-ms-transition","-o-transition","transition-property","-moz-transition-property","-ms-transition-property","-o-transition-property","-webkit-transition-property","transition-timing-function","-moz-transition-timing-function","-ms-transition-timing-function","-o-transition-timing-function","-webkit-transition-timing-function","-webkit-transition","translate","uc-alt-skin","uc-skin","unicode-bidi","unicode-range","-webkit-user-drag","-moz-user-focus","-moz-user-input","-moz-user-modify","-webkit-user-modify","user-select","-moz-user-select","-ms-user-select","-webkit-user-select","user-zoom","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","viewport-fill","viewport-fill-opacity","viewport-fit","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","white-space-collapse","white-space-trim","-webkit-widget-region","widows","width","will-change","-moz-window-dragging","-moz-window-shadow","word-boundary-detection","word-boundary-expansion","word-break","word-space-transform","word-spacing","word-wrap","wrap-after","wrap-before","wrap-flow","-ms-wrap-flow","-webkit-wrap-flow","wrap-inside","-ms-wrap-margin","-webkit-wrap-margin","-webkit-wrap-padding","-webkit-wrap-shape-inside","-webkit-wrap-shape-outside","wrap-through","-ms-wrap-through","-webkit-wrap-through","-webkit-wrap","writing-mode","-webkit-writing-mode","x","y","z-index","zoom"],xh={properties:Sh};Kc.all=xh.properties;/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:Zc,setPrototypeOf:Wa,isFrozen:Ch,getPrototypeOf:Eh,getOwnPropertyDescriptor:kh}=Object;let{freeze:ot,seal:Ct,create:Jc}=Object,{apply:Ho,construct:Wo}=typeof Reflect<"u"&&Reflect;ot||(ot=function(t){return t});Ct||(Ct=function(t){return t});Ho||(Ho=function(t,n,r){return t.apply(n,r)});Wo||(Wo=function(t,n){return new t(...n)});const Xr=st(Array.prototype.forEach),Th=st(Array.prototype.lastIndexOf),Ga=st(Array.prototype.pop),ar=st(Array.prototype.push),Ah=st(Array.prototype.splice),ui=st(String.prototype.toLowerCase),go=st(String.prototype.toString),Ua=st(String.prototype.match),lr=st(String.prototype.replace),Ph=st(String.prototype.indexOf),Ih=st(String.prototype.trim),Tt=st(Object.prototype.hasOwnProperty),nt=st(RegExp.prototype.test),cr=Oh(TypeError);function st(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Ho(e,t,r)}}function Oh(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Wo(e,n)}}function be(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ui;Wa&&Wa(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(Ch(t)||(t[r]=o),i=o)}e[i]=!0}return e}function Rh(e){for(let t=0;t<e.length;t++)Tt(e,t)||(e[t]=null);return e}function Sn(e){const t=Jc(null);for(const[n,r]of Zc(e))Tt(e,n)&&(Array.isArray(r)?t[n]=Rh(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=Sn(r):t[n]=r);return t}function ur(e,t){for(;e!==null;){const r=kh(e,t);if(r){if(r.get)return st(r.get);if(typeof r.value=="function")return st(r.value)}e=Eh(e)}function n(){return null}return n}const Ya=ot(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),bo=ot(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),vo=ot(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),_h=ot(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),yo=ot(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Mh=ot(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qa=ot(["#text"]),Xa=ot(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),wo=ot(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ka=ot(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Kr=ot(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Dh=Ct(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Lh=Ct(/<%[\w\W]*|[\w\W]*%>/gm),Nh=Ct(/\$\{[\w\W]*/gm),Fh=Ct(/^data-[\-\w.\u00B7-\uFFFF]+$/),$h=Ct(/^aria-[\-\w]+$/),Qc=Ct(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),zh=Ct(/^(?:\w+script|data):/i),Bh=Ct(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eu=Ct(/^html$/i),jh=Ct(/^[a-z][.\w]*(-[.\w]+)+$/i);var Za=Object.freeze({__proto__:null,ARIA_ATTR:$h,ATTR_WHITESPACE:Bh,CUSTOM_ELEMENT:jh,DATA_ATTR:Fh,DOCTYPE_NAME:eu,ERB_EXPR:Lh,IS_ALLOWED_URI:Qc,IS_SCRIPT_OR_DATA:zh,MUSTACHE_EXPR:Dh,TMPLIT_EXPR:Nh});const dr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Vh=function(){return typeof window>"u"?null:window},Hh=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},Ja=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function tu(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vh();const t=ne=>tu(ne);if(t.version="3.2.4",t.removed=[],!e||!e.document||e.document.nodeType!==dr.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:c,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:u,DOMParser:v,trustedTypes:g}=e,m=l.prototype,f=ur(m,"cloneNode"),y=ur(m,"remove"),d=ur(m,"nextSibling"),h=ur(m,"childNodes"),w=ur(m,"parentNode");if(typeof s=="function"){const ne=n.createElement("template");ne.content&&ne.content.ownerDocument&&(n=ne.content.ownerDocument)}let S,x="";const{implementation:T,createNodeIterator:A,createDocumentFragment:k,getElementsByTagName:_}=n,{importNode:z}=r;let R=Ja();t.isSupported=typeof Zc=="function"&&typeof w=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:I,ERB_EXPR:L,TMPLIT_EXPR:N,DATA_ATTR:j,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:V,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:J}=Za;let{IS_ALLOWED_URI:ge}=Za,re=null;const Re=be({},[...Ya,...bo,...vo,...yo,...qa]);let ve=null;const Ae=be({},[...Xa,...wo,...Ka,...Kr]);let oe=Object.seal(Jc(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Se=null,Z=null,se=!0,we=!0,de=!1,te=!0,H=!1,le=!0,fe=!1,_e=!1,ze=!1,Le=!1,E=!1,O=!1,F=!0,X=!1;const q="user-content-";let W=!0,Q=!1,me={},Pe=null;const Me=be({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let wt=null;const ln=be({},["audio","video","img","source","image","track"]);let Ke=null;const Mt=be({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Dt="http://www.w3.org/1998/Math/MathML",St="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let kt=et,rr=!1,ir=null;const zr=be({},[Dt,St,et],go);let _n=be({},["mi","mo","mn","ms","mtext"]),wn=be({},["annotation-xml"]);const Br=be({},["title","style","font","a","script"]);let cn=null;const io=["application/xhtml+xml","text/html"],jr="text/html";let je=null,Mn=null;const jf=n.createElement("form"),fa=function(P){return P instanceof RegExp||P instanceof Function},oo=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Mn&&Mn===P)){if((!P||typeof P!="object")&&(P={}),P=Sn(P),cn=io.indexOf(P.PARSER_MEDIA_TYPE)===-1?jr:P.PARSER_MEDIA_TYPE,je=cn==="application/xhtml+xml"?go:ui,re=Tt(P,"ALLOWED_TAGS")?be({},P.ALLOWED_TAGS,je):Re,ve=Tt(P,"ALLOWED_ATTR")?be({},P.ALLOWED_ATTR,je):Ae,ir=Tt(P,"ALLOWED_NAMESPACES")?be({},P.ALLOWED_NAMESPACES,go):zr,Ke=Tt(P,"ADD_URI_SAFE_ATTR")?be(Sn(Mt),P.ADD_URI_SAFE_ATTR,je):Mt,wt=Tt(P,"ADD_DATA_URI_TAGS")?be(Sn(ln),P.ADD_DATA_URI_TAGS,je):ln,Pe=Tt(P,"FORBID_CONTENTS")?be({},P.FORBID_CONTENTS,je):Me,Se=Tt(P,"FORBID_TAGS")?be({},P.FORBID_TAGS,je):{},Z=Tt(P,"FORBID_ATTR")?be({},P.FORBID_ATTR,je):{},me=Tt(P,"USE_PROFILES")?P.USE_PROFILES:!1,se=P.ALLOW_ARIA_ATTR!==!1,we=P.ALLOW_DATA_ATTR!==!1,de=P.ALLOW_UNKNOWN_PROTOCOLS||!1,te=P.ALLOW_SELF_CLOSE_IN_ATTR!==!1,H=P.SAFE_FOR_TEMPLATES||!1,le=P.SAFE_FOR_XML!==!1,fe=P.WHOLE_DOCUMENT||!1,Le=P.RETURN_DOM||!1,E=P.RETURN_DOM_FRAGMENT||!1,O=P.RETURN_TRUSTED_TYPE||!1,ze=P.FORCE_BODY||!1,F=P.SANITIZE_DOM!==!1,X=P.SANITIZE_NAMED_PROPS||!1,W=P.KEEP_CONTENT!==!1,Q=P.IN_PLACE||!1,ge=P.ALLOWED_URI_REGEXP||Qc,kt=P.NAMESPACE||et,_n=P.MATHML_TEXT_INTEGRATION_POINTS||_n,wn=P.HTML_INTEGRATION_POINTS||wn,oe=P.CUSTOM_ELEMENT_HANDLING||{},P.CUSTOM_ELEMENT_HANDLING&&fa(P.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(oe.tagNameCheck=P.CUSTOM_ELEMENT_HANDLING.tagNameCheck),P.CUSTOM_ELEMENT_HANDLING&&fa(P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(oe.attributeNameCheck=P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),P.CUSTOM_ELEMENT_HANDLING&&typeof P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(oe.allowCustomizedBuiltInElements=P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),H&&(we=!1),E&&(Le=!0),me&&(re=be({},qa),ve=[],me.html===!0&&(be(re,Ya),be(ve,Xa)),me.svg===!0&&(be(re,bo),be(ve,wo),be(ve,Kr)),me.svgFilters===!0&&(be(re,vo),be(ve,wo),be(ve,Kr)),me.mathMl===!0&&(be(re,yo),be(ve,Ka),be(ve,Kr))),P.ADD_TAGS&&(re===Re&&(re=Sn(re)),be(re,P.ADD_TAGS,je)),P.ADD_ATTR&&(ve===Ae&&(ve=Sn(ve)),be(ve,P.ADD_ATTR,je)),P.ADD_URI_SAFE_ATTR&&be(Ke,P.ADD_URI_SAFE_ATTR,je),P.FORBID_CONTENTS&&(Pe===Me&&(Pe=Sn(Pe)),be(Pe,P.FORBID_CONTENTS,je)),W&&(re["#text"]=!0),fe&&be(re,["html","head","body"]),re.table&&(be(re,["tbody"]),delete Se.tbody),P.TRUSTED_TYPES_POLICY){if(typeof P.TRUSTED_TYPES_POLICY.createHTML!="function")throw cr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof P.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw cr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=P.TRUSTED_TYPES_POLICY,x=S.createHTML("")}else S===void 0&&(S=Hh(g,i)),S!==null&&typeof x=="string"&&(x=S.createHTML(""));ot&&ot(P),Mn=P}},pa=be({},[...bo,...vo,..._h]),ma=be({},[...yo,...Mh]),Vf=function(P){let Y=w(P);(!Y||!Y.tagName)&&(Y={namespaceURI:kt,tagName:"template"});const ee=ui(P.tagName),De=ui(Y.tagName);return ir[P.namespaceURI]?P.namespaceURI===St?Y.namespaceURI===et?ee==="svg":Y.namespaceURI===Dt?ee==="svg"&&(De==="annotation-xml"||_n[De]):!!pa[ee]:P.namespaceURI===Dt?Y.namespaceURI===et?ee==="math":Y.namespaceURI===St?ee==="math"&&wn[De]:!!ma[ee]:P.namespaceURI===et?Y.namespaceURI===St&&!wn[De]||Y.namespaceURI===Dt&&!_n[De]?!1:!ma[ee]&&(Br[ee]||!pa[ee]):!!(cn==="application/xhtml+xml"&&ir[P.namespaceURI]):!1},Lt=function(P){ar(t.removed,{element:P});try{w(P).removeChild(P)}catch{y(P)}},Vr=function(P,Y){try{ar(t.removed,{attribute:Y.getAttributeNode(P),from:Y})}catch{ar(t.removed,{attribute:null,from:Y})}if(Y.removeAttribute(P),P==="is")if(Le||E)try{Lt(Y)}catch{}else try{Y.setAttribute(P,"")}catch{}},ha=function(P){let Y=null,ee=null;if(ze)P="<remove></remove>"+P;else{const Ye=Ua(P,/^[\r\n\t ]+/);ee=Ye&&Ye[0]}cn==="application/xhtml+xml"&&kt===et&&(P='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+P+"</body></html>");const De=S?S.createHTML(P):P;if(kt===et)try{Y=new v().parseFromString(De,cn)}catch{}if(!Y||!Y.documentElement){Y=T.createDocument(kt,"template",null);try{Y.documentElement.innerHTML=rr?x:De}catch{}}const Ze=Y.body||Y.documentElement;return P&&ee&&Ze.insertBefore(n.createTextNode(ee),Ze.childNodes[0]||null),kt===et?_.call(Y,fe?"html":"body")[0]:fe?Y.documentElement:Ze},ga=function(P){return A.call(P.ownerDocument||P,P,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},so=function(P){return P instanceof u&&(typeof P.nodeName!="string"||typeof P.textContent!="string"||typeof P.removeChild!="function"||!(P.attributes instanceof p)||typeof P.removeAttribute!="function"||typeof P.setAttribute!="function"||typeof P.namespaceURI!="string"||typeof P.insertBefore!="function"||typeof P.hasChildNodes!="function")},ba=function(P){return typeof a=="function"&&P instanceof a};function Gt(ne,P,Y){Xr(ne,ee=>{ee.call(t,P,Y,Mn)})}const va=function(P){let Y=null;if(Gt(R.beforeSanitizeElements,P,null),so(P))return Lt(P),!0;const ee=je(P.nodeName);if(Gt(R.uponSanitizeElement,P,{tagName:ee,allowedTags:re}),P.hasChildNodes()&&!ba(P.firstElementChild)&&nt(/<[/\w]/g,P.innerHTML)&&nt(/<[/\w]/g,P.textContent)||P.nodeType===dr.progressingInstruction||le&&P.nodeType===dr.comment&&nt(/<[/\w]/g,P.data))return Lt(P),!0;if(!re[ee]||Se[ee]){if(!Se[ee]&&wa(ee)&&(oe.tagNameCheck instanceof RegExp&&nt(oe.tagNameCheck,ee)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(ee)))return!1;if(W&&!Pe[ee]){const De=w(P)||P.parentNode,Ze=h(P)||P.childNodes;if(Ze&&De){const Ye=Ze.length;for(let at=Ye-1;at>=0;--at){const Nt=f(Ze[at],!0);Nt.__removalCount=(P.__removalCount||0)+1,De.insertBefore(Nt,d(P))}}}return Lt(P),!0}return P instanceof l&&!Vf(P)||(ee==="noscript"||ee==="noembed"||ee==="noframes")&&nt(/<\/no(script|embed|frames)/i,P.innerHTML)?(Lt(P),!0):(H&&P.nodeType===dr.text&&(Y=P.textContent,Xr([I,L,N],De=>{Y=lr(Y,De," ")}),P.textContent!==Y&&(ar(t.removed,{element:P.cloneNode()}),P.textContent=Y)),Gt(R.afterSanitizeElements,P,null),!1)},ya=function(P,Y,ee){if(F&&(Y==="id"||Y==="name")&&(ee in n||ee in jf))return!1;if(!(we&&!Z[Y]&&nt(j,Y))){if(!(se&&nt(B,Y))){if(!ve[Y]||Z[Y]){if(!(wa(P)&&(oe.tagNameCheck instanceof RegExp&&nt(oe.tagNameCheck,P)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(P))&&(oe.attributeNameCheck instanceof RegExp&&nt(oe.attributeNameCheck,Y)||oe.attributeNameCheck instanceof Function&&oe.attributeNameCheck(Y))||Y==="is"&&oe.allowCustomizedBuiltInElements&&(oe.tagNameCheck instanceof RegExp&&nt(oe.tagNameCheck,ee)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(ee))))return!1}else if(!Ke[Y]){if(!nt(ge,lr(ee,U,""))){if(!((Y==="src"||Y==="xlink:href"||Y==="href")&&P!=="script"&&Ph(ee,"data:")===0&&wt[P])){if(!(de&&!nt(V,lr(ee,U,"")))){if(ee)return!1}}}}}}return!0},wa=function(P){return P!=="annotation-xml"&&Ua(P,J)},Sa=function(P){Gt(R.beforeSanitizeAttributes,P,null);const{attributes:Y}=P;if(!Y||so(P))return;const ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ve,forceKeepAttr:void 0};let De=Y.length;for(;De--;){const Ze=Y[De],{name:Ye,namespaceURI:at,value:Nt}=Ze,or=je(Ye);let tt=Ye==="value"?Nt:Ih(Nt);if(ee.attrName=or,ee.attrValue=tt,ee.keepAttr=!0,ee.forceKeepAttr=void 0,Gt(R.uponSanitizeAttribute,P,ee),tt=ee.attrValue,X&&(or==="id"||or==="name")&&(Vr(Ye,P),tt=q+tt),le&&nt(/((--!?|])>)|<\/(style|title)/i,tt)){Vr(Ye,P);continue}if(ee.forceKeepAttr||(Vr(Ye,P),!ee.keepAttr))continue;if(!te&&nt(/\/>/i,tt)){Vr(Ye,P);continue}H&&Xr([I,L,N],Ca=>{tt=lr(tt,Ca," ")});const xa=je(P.nodeName);if(ya(xa,or,tt)){if(S&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!at)switch(g.getAttributeType(xa,or)){case"TrustedHTML":{tt=S.createHTML(tt);break}case"TrustedScriptURL":{tt=S.createScriptURL(tt);break}}try{at?P.setAttributeNS(at,Ye,tt):P.setAttribute(Ye,tt),so(P)?Lt(P):Ga(t.removed)}catch{}}}Gt(R.afterSanitizeAttributes,P,null)},Hf=function ne(P){let Y=null;const ee=ga(P);for(Gt(R.beforeSanitizeShadowDOM,P,null);Y=ee.nextNode();)Gt(R.uponSanitizeShadowNode,Y,null),va(Y),Sa(Y),Y.content instanceof o&&ne(Y.content);Gt(R.afterSanitizeShadowDOM,P,null)};return t.sanitize=function(ne){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=null,ee=null,De=null,Ze=null;if(rr=!ne,rr&&(ne="<!-->"),typeof ne!="string"&&!ba(ne))if(typeof ne.toString=="function"){if(ne=ne.toString(),typeof ne!="string")throw cr("dirty is not a string, aborting")}else throw cr("toString is not a function");if(!t.isSupported)return ne;if(_e||oo(P),t.removed=[],typeof ne=="string"&&(Q=!1),Q){if(ne.nodeName){const Nt=je(ne.nodeName);if(!re[Nt]||Se[Nt])throw cr("root node is forbidden and cannot be sanitized in-place")}}else if(ne instanceof a)Y=ha("<!---->"),ee=Y.ownerDocument.importNode(ne,!0),ee.nodeType===dr.element&&ee.nodeName==="BODY"||ee.nodeName==="HTML"?Y=ee:Y.appendChild(ee);else{if(!Le&&!H&&!fe&&ne.indexOf("<")===-1)return S&&O?S.createHTML(ne):ne;if(Y=ha(ne),!Y)return Le?null:O?x:""}Y&&ze&&Lt(Y.firstChild);const Ye=ga(Q?ne:Y);for(;De=Ye.nextNode();)va(De),Sa(De),De.content instanceof o&&Hf(De.content);if(Q)return ne;if(Le){if(E)for(Ze=k.call(Y.ownerDocument);Y.firstChild;)Ze.appendChild(Y.firstChild);else Ze=Y;return(ve.shadowroot||ve.shadowrootmode)&&(Ze=z.call(r,Ze,!0)),Ze}let at=fe?Y.outerHTML:Y.innerHTML;return fe&&re["!doctype"]&&Y.ownerDocument&&Y.ownerDocument.doctype&&Y.ownerDocument.doctype.name&&nt(eu,Y.ownerDocument.doctype.name)&&(at="<!DOCTYPE "+Y.ownerDocument.doctype.name+`> `+at),H&&Xr([I,L,N],Nt=>{at=lr(at,Nt," ")}),S&&O?S.createHTML(at):at},t.setConfig=function(){let ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};oo(ne),_e=!0},t.clearConfig=function(){Mn=null,_e=!1},t.isValidAttribute=function(ne,P,Y){Mn||oo({});const ee=je(ne),De=je(P);return ya(ee,De,Y)},t.addHook=function(ne,P){typeof P=="function"&&ar(R[ne],P)},t.removeHook=function(ne,P){if(P!==void 0){const Y=Th(R[ne],P);return Y===-1?void 0:Ah(R[ne],Y,1)[0]}return Ga(R[ne])},t.removeHooks=function(ne){R[ne]=[]},t.removeAllHooks=function(){R=Ja()},t}var Wh=tu();let Zr;const Gh=new Uint8Array(16);function Uh(){if(!Zr&&(Zr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Zr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Zr(Gh)}const qe=[];for(let e=0;e<256;++e)qe.push((e+256).toString(16).slice(1));function Yh(e,t=0){return qe[e[t+0]]+qe[e[t+1]]+qe[e[t+2]]+qe[e[t+3]]+"-"+qe[e[t+4]]+qe[e[t+5]]+"-"+qe[e[t+6]]+qe[e[t+7]]+"-"+qe[e[t+8]]+qe[e[t+9]]+"-"+qe[e[t+10]]+qe[e[t+11]]+qe[e[t+12]]+qe[e[t+13]]+qe[e[t+14]]+qe[e[t+15]]}const qh=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Qa={randomUUID:qh};function el(e,t,n){if(Qa.randomUUID&&!e)return Qa.randomUUID();e=e||{};const r=e.random||(e.rng||Uh)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Yh(r)}var Xh=Object.defineProperty,Kh=Object.defineProperties,Zh=Object.getOwnPropertyDescriptors,tl=Object.getOwnPropertySymbols,Jh=Object.prototype.hasOwnProperty,Qh=Object.prototype.propertyIsEnumerable,nl=(e,t,n)=>t in e?Xh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rt=(e,t)=>{for(var n in t||(t={}))Jh.call(t,n)&&nl(e,n,t[n]);if(tl)for(var n of tl(t))Qh.call(t,n)&&nl(e,n,t[n]);return e},yr=(e,t)=>Kh(e,Zh(t)),he=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())}),ct={};function hr(e){return`${e.__instanceId}-${e.apiKey}`}var nu=class{constructor(e){this.config={apiKey:"",apiUrl:"https://api.frigade.com",userId:hg(),__instanceId:Math.random().toString(12).substring(4),generateGuestId:!0};let t=Object.fromEntries(Object.entries(e).filter(([n,r])=>r!=null));!e.userId&&e.generateGuestId===!1&&delete this.config.userId,this.config=rt(rt({},this.config),t)}fetch(e,t){return he(this,null,function*(){return this.config.__readOnly?$t():mg(this.getAPIUrl(e),rt(rt({keepalive:!0},t??{}),lg(this.config)))})}getAPIUrl(e){return`${this.config.apiUrl.replace(/\/$/,"")}/${e.replace(/^\//,"")}`}getGlobalState(){let e=hr(this.config);if(!ct[e])throw new Error("Frigade has not yet been initialized");return ct[e]}},Go=class extends nu{constructor({config:e,id:t}){super(e),this.props={},this._isVisible=!1,this.lastStepUpdate=new Map,this.id=t,this.init()}get isVisible(){return this._isVisible}set isVisible(e){this._isVisible=e}reload(){this.init()}resyncState(e){var t,n,r,i,o;let s=Ft(e??this.getStatefulFlow());this.rawData=s,this.title=(t=s==null?void 0:s.data)==null?void 0:t.title,this.subtitle=(n=s==null?void 0:s.data)==null?void 0:n.subtitle,this.props=(i=(r=s==null?void 0:s.data)==null?void 0:r.props)!=null?i:{},this.isCompleted=s.$state.completed,this.isStarted=s.$state.started,this.isSkipped=s.$state.skipped,this._isVisible=s.$state.visible,s.data.steps.forEach((a,l)=>{var c;let p=this.initStepFromStatefulStep(a,l),u=(c=this.steps)==null?void 0:c.get(a.id);u&&Object.keys(p).forEach(v=>{u[v]=p[v]})}),this.getGlobalState().variables[this.id]&&this.applyVariables((o=this.getGlobalState().variables[this.id])!=null?o:{})}initStepFromStatefulStep(e,t){return yr(rt({},e),{flow:this,$state:yr(rt({},e.$state),{lastActionAt:e.$state.lastActionAt?new Date(e.$state.lastActionAt):void 0}),order:t})}init(){let e=this.getStatefulFlow();this.resyncState();let t=new Map;e.data.steps.forEach((n,r)=>{let i=this.initStepFromStatefulStep(n,r);i.start=s=>he(this,null,function*(){let a=this.steps.get(n.id);if(this.getCurrentStep().id===a.id&&a.$state.started)return;let l=Ft(this.getGlobalState().flowStates[this.id]);l.data.steps[a.order].$state.started=!0,l.data.steps[a.order].$state.lastActionAt=new Date,l.$state.lastActionAt=new Date,l.$state.currentStepId=a.id,l.$state.currentStepIndex=a.order,this.getGlobalState().flowStates[this.id]=l,this.resyncState(),yield this.sendFlowStateToAPI(il,s,a.id)});let o=(s,a,l=!0)=>he(this,null,function*(){let c=this.steps.get(n.id);if((c.$state.completed||c.$state.skipped)&&l){let u=this.getStepByIndex(c.order+1);for(;u&&!u.$state.visible&&u.order!==this.steps.size-1;)u=this.getStepByIndex(u.order+1);if(u){let v=Ft(this.getGlobalState().flowStates[this.id]);v.$state.currentStepId=this.getStepByIndex(c.order+1).id,v.$state.currentStepIndex=c.order+1,v.data.steps[c.order+1].$state.started=!0,this.getGlobalState().flowStates[this.id]=v,yield this.sendFlowStateToAPI(il,void 0,u.id),this.resyncState()}return}let p=this.getCurrentStepOrder()+1===this.getNumberOfAvailableSteps();if(l){let u=Ft(this.getGlobalState().flowStates[this.id]);if(u.$state.started=!0,s=="complete"?u.data.steps[c.order].$state.completed=!0:u.data.steps[c.order].$state.skipped=!0,u.data.steps[c.order].$state.started=!0,u.data.steps[c.order].$state.lastActionAt=new Date,p)u.$state.completed=!0,u.$state.visible=!1;else{let v=this.getNextVisibleStepIndexAfterIndex(c.order);v!==-1&&(u.$state.currentStepId=this.getStepByIndex(v).id,u.$state.currentStepIndex=v,u.data.steps[v].$state.started=!0)}this.getGlobalState().flowStates[this.id]=u,this.resyncState(),p&&this.optimisticallyMarkFlowCompleted()}yield this.sendFlowStateToAPI(s=="complete"?og:sg,a,c.id),p&&(yield this.sendFlowStateToAPI(rl,a))});i.complete=(s,a=!0)=>he(this,null,function*(){yield o("complete",s,a)}),i.skip=(s,a=!0)=>he(this,null,function*(){yield o("skip",s,a)}),i.reset=()=>he(this,null,function*(){let s=this.steps.get(n.id);if(!s.$state.completed)return;let a=Ft(this.getGlobalState().flowStates[this.id]);a.data.steps[s.order].$state.started=!1,a.data.steps[s.order].$state.completed=!1,a.data.steps[s.order].$state.lastActionAt=void 0,this.getGlobalState().flowStates[this.id]=a,this.resyncState(),yield this.sendFlowStateToAPI(tg,void 0,s.id)}),i.onStateChange=s=>{let a=l=>{if(l.id!==this.id)return;let c=l.steps.get(n.id),p=this.lastStepUpdate.get(s);(c.$state.completed!==(p==null?void 0:p.$state.completed)||c.$state.started!==(p==null?void 0:p.$state.started)||c.$state.visible!==(p==null?void 0:p.$state.visible)||c.$state.blocked!==(p==null?void 0:p.$state.blocked))&&(s(c,p??Ft(c)),this.lastStepUpdate.set(s,Ft(c)))};this.getGlobalState().onStepStateChangeHandlerWrappers.set(s,a),this.getGlobalState().onFlowStateChangeHandlers.push(a)},i.removeStateChangeHandler=s=>{let a=this.getGlobalState().onStepStateChangeHandlerWrappers.get(s);a&&(this.getGlobalState().onFlowStateChangeHandlers=this.getGlobalState().onFlowStateChangeHandlers.filter(l=>l!==a))},t.set(n.id,i)}),this.steps=t,this.getGlobalState().variables&&this.getGlobalState().variables[this.id]&&Object.keys(this.getGlobalState().variables[this.id]).length>0&&this.applyVariables(this.getGlobalState().variables[this.id])}start(e){return he(this,null,function*(){this.isStarted||this.isCompleted||(this.optimisticallyMarkFlowStarted(),yield this.sendFlowStateToAPI(rg,e))})}complete(e){return he(this,null,function*(){this.isCompleted||(this.optimisticallyMarkFlowCompleted(),yield this.sendFlowStateToAPI(rl,e))})}skip(e){return he(this,null,function*(){this.isSkipped||(this.optimisticallyMarkFlowSkipped(),yield this.sendFlowStateToAPI(ng,e))})}forward(e){return he(this,null,function*(){let t=this.getStepByIndex(this.getNextVisibleStepIndexAfterIndex(this.getCurrentStepIndex()));t&&(yield t.start(e))})}back(e){return he(this,null,function*(){let t=this.getStepByIndex(this.getCurrentStepIndex()-1);for(;t&&!t.$state.visible&&t.order!==0;)t=this.getStepByIndex(t.order-1);t&&(yield t.start(e))})}restart(){return he(this,null,function*(){yield this.sendFlowStateToAPI(ig)})}getStepByIndex(e){return this.steps.get(Array.from(this.steps.keys())[e])}getCurrentStep(){let e=this.steps.get(this.getStatefulFlow().$state.currentStepId);return e||(e=this.getFirstVisibleStep(),e)}getFirstVisibleStep(){return this.getStepByIndex(this.getNextVisibleStepIndexAfterIndex(-1))}getNextVisibleStepIndexAfterIndex(e){let t=Array.from(this.steps.values());for(let n=e+1;n<t.length;n++)if(t[n].$state.visible)return n;return-1}getCurrentStepIndex(){let e=this.getCurrentStep();return Array.from(this.steps.keys()).indexOf(e.id)}getNumberOfCompletedSteps(){return Array.from(this.steps.values()).filter(e=>e.$state.completed).length}getNumberOfAvailableSteps(){return Array.from(this.steps.values()).filter(e=>e.$state.visible).length}getCurrentStepOrder(){let e=this.getCurrentStep();return Array.from(this.steps.values()).filter(t=>t.$state.visible).indexOf(e)}getProgress(){return(this.getNumberOfCompletedSteps()||0)/(this.getNumberOfAvailableSteps()||1)}onStateChange(e){let t=(n,r)=>{n.id===this.id&&(n.isCompleted!==(r==null?void 0:r.isCompleted)||n.isStarted!==(r==null?void 0:r.isStarted)||n.isSkipped!==(r==null?void 0:r.isSkipped)||n.isVisible!==(r==null?void 0:r.isVisible)||JSON.stringify(n.steps)!==JSON.stringify(r==null?void 0:r.steps))&&e(n,r)};this.getGlobalState().onFlowStateChangeHandlerWrappers.set(e,t),this.getGlobalState().onFlowStateChangeHandlers.push(t)}removeStateChangeHandler(e){let t=this.getGlobalState().onFlowStateChangeHandlerWrappers.get(e);t&&(this.getGlobalState().onFlowStateChangeHandlers=this.getGlobalState().onFlowStateChangeHandlers.filter(n=>n!==t))}applyVariables(e){var t,n;if(this.getGlobalState().variables[this.id]&&JSON.stringify(this.getGlobalState().variables[this.id])!==JSON.stringify(e)){this.getGlobalState().variables[this.id]=e,this.reload();return}let r=o=>{let s=o.match(/\${(.*?)}/g);return s&&s.forEach(a=>{let l=a.replace("${","").replace("}","");if(!e[l]){o=o.replace(a,"");return}o=o.replace(a,e[l])}),o};this.title=r((t=this.title)!=null?t:""),this.subtitle=r((n=this.subtitle)!=null?n:"");let i=o=>{o&&Object.keys(o).forEach(s=>{typeof o[s]=="string"?o[s]=r(o[s]):typeof o[s]=="object"?i(o[s]):Array.isArray(o[s])&&o[s].forEach(a=>{i(a)})})};this.steps&&this.steps.forEach(o=>{i(o)}),this.getGlobalState().variables[this.id]=e}getStatefulFlow(){return this.getGlobalState().flowStates[this.id]}optimisticallyMarkFlowCompleted(){let e=Ft(this.getGlobalState().flowStates[this.id]);e.$state.completed=!0,e.$state.started=!0,e.$state.visible=!1,this.getGlobalState().flowStates[this.id]=e,this.resyncState()}optimisticallyMarkFlowStarted(){let e=Ft(this.getGlobalState().flowStates[this.id]);e.$state.started=!0,this.getGlobalState().flowStates[this.id]=e,this.resyncState()}sendFlowStateToAPI(e,t,n){return he(this,null,function*(){var r;let i=new Date;this.getGlobalState().lastFlowSyncDate[this.id]=i,this.getGlobalState().pendingRequests[this.id]=((r=this.getGlobalState().pendingRequests[this.id])!=null?r:0)+1;let o=yield this.fetch("/v1/public/flowStates",{method:"POST",body:JSON.stringify({userId:this.getGlobalState().config.userId,groupId:this.getGlobalState().config.groupId,flowSlug:this.id,stepId:n,data:t||{},actionType:e,createdAt:i,context:ru(this.getGlobalState())})});this.getGlobalState().pendingRequests[this.id]-=1,!(i<this.getGlobalState().lastFlowSyncDate[this.id]||this.getGlobalState().pendingRequests[this.id]>0)&&(yield this.getGlobalState().refreshStateFromAPI(o))})}optimisticallyMarkFlowSkipped(){let e=Ft(this.getGlobalState().flowStates[this.id]);e.$state.skipped=!0,e.$state.visible=!1,this.getGlobalState().flowStates[this.id]=e,this.resyncState()}register(e){this.getGlobalState().collections.register(this.id,t=>{let n=this.getGlobalState().previousFlows.get(this.id);(n==null?void 0:n._isVisible)!==t&&this.getGlobalState().onFlowStateChangeHandlers.forEach(r=>{r(this,n),this.getGlobalState().previousFlows.set(this.id,di(this))}),e==null||e(t)})}unregister(){this.getGlobalState().collections&&this.getGlobalState().collections.unregister(this.id)}},eg="0.7.9",tg="NOT_STARTED_STEP",rl="COMPLETED_FLOW",ng="SKIPPED_FLOW",rg="STARTED_FLOW",ig="NOT_STARTED_FLOW",og="COMPLETED_STEP",sg="SKIPPED_STEP",il="STARTED_STEP",ol="frigade-guest-key",Uo="guest_",ag="get-cache-",Rs="fr-js-";function di(e){return new Go({config:e.config,id:e.id})}function Ft(e){return JSON.parse(JSON.stringify(e))}function lg(e){var t,n;return{headers:{Authorization:`Bearer ${e.apiKey}`,"Content-Type":"application/json","x-frigade-sdk-version":(t=e.__platformVersion)!=null?t:eg,"x-frigade-sdk-platform":(n=e.__platformName)!=null?n:"Javascript"}}}function cg(e){return Zt()?window.localStorage.getItem(`${Rs}${e}`):null}function ug(e,t){Zt()&&window.localStorage.setItem(`${Rs}${e}`,t)}function dg(){Object.keys(ct).forEach(e=>{e.startsWith(ag)&&delete ct[e]})}function fg(){Zt()&&Object.keys(window.localStorage).forEach(e=>{e.startsWith(Rs)&&window.localStorage.removeItem(e)})}var pg=class{constructor(){this.queue=[],this.ttlInMS=250,this.cacheSize=5}push(e,t){let n=new Date;this.queue.length>=this.cacheSize&&this.queue.shift(),this.queue.push({call:e,time:n.getTime(),response:t??null})}hasIdenticalCall(e){let t=new Date;return this.queue=this.queue.filter(n=>t.getTime()-n.time<this.ttlInMS),this.queue.find(n=>n.call===e)}},sl=new pg;function mg(e,t){return he(this,null,function*(){var n;if(typeof globalThis.fetch!="function")return $t("- Attempted to call fetch() in an environment that doesn't support it.");let r=`${e}${JSON.stringify((n=t.body)!=null?n:{})}`,i,o=Zt()&&t&&t.body&&t.method==="POST";if(o){let s=sl.hasIdenticalCall(r);s!=null&&s.response!=null&&(i=(yield s.response).clone())}if(!i)try{let s=fetch(e,t);o&&sl.push(r,s.then(a=>a.clone()).catch(()=>$t())),i=yield s}catch(s){return $t(s)}if(!i)return $t("Received an empty response");if(i.status>=400)return $t(i.statusText);try{if(i.status===204)return $t();let s;try{s=yield i.json()}catch{return $t()}return s.error?$t(s.error):s}catch(s){return $t(s)}})}function $t(e){return e&&console.warn("Call to Frigade failed",e),{json:()=>({}),clone:()=>({})}}function hg(){if(Zt()){let e=cg(ol);return e||(e=`${Uo}${el()}`,ug(ol,e)),e}else return`${Uo}${el()}`}function Zt(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.localStorage<"u"}function ru(e){let t={registeredCollectionIds:Array.from(e.registeredCollectionIds)};return Zt()?rt({url:e.currentUrl,userAgent:navigator.userAgent},t):t}var gg=class{constructor(t){this.registry=new Map,this.registryStateLocked=!1,this.collections=new Map,this.flowsInCollections=new Set,this.ingestCollectionsData(t)}getCollection(t){return this.collections.get(t)}getCollections(){return this.collections}ingestCollectionsData(t){this.collections=t;for(let[,n]of this.collections)for(let{flowId:r}of n.flows)this.flowsInCollections.add(r);this.registry.size>0&&(this.registryStateLocked||this.resetRegistryState(),this.processCollections()),this.fireCallbacks()}fireCallbacks(){for(let[t,{callback:n}]of this.registry)typeof n=="function"&&n(this.isFlowVisible(t))}isFlowVisible(t){let n=this.registry.get(t),r=this.flowsInCollections.has(t);return n==null||!r?!0:n.visible}lockRegistryState(){this.registryStateLocked=!0}unlockRegistryState(){this.registryStateLocked=!1}resetRegistryState(){for(let[t,n]of this.registry)n.visible=!1,n.visited=!1,this.registry.set(t,n)}processCollections(){for(let[,t]of this.collections)for(let{flowId:n,visible:r}of t.flows){let i=this.registry.get(n);if(i!=null){if(r===!1&&i.visible!==!0){this.visit(n,!1);continue}i.visited&&this.registryStateLocked||(t.flows.map(({flowId:o})=>o).filter(o=>o!==n),this.visit(n))}}}register(t,n){if(Array.isArray(t)){this.batchRegister(t);return}this.registry.set(t,{callback:n??(()=>{}),visible:!1,visited:!1}),this.registryStateLocked||this.resetRegistryState(),this.processCollections(),this.fireCallbacks()}batchRegister(t){t.forEach(([n,r])=>{this.registry.set(n,{callback:r??(()=>{}),visible:!1,visited:!1})}),this.registryStateLocked||this.resetRegistryState(),this.processCollections(),this.lockRegistryState(),this.fireCallbacks()}unregister(t){this.registry.delete(t),this.resetRegistryState(),this.processCollections(),this.fireCallbacks()}visit(t,n=!0){var r;let i=(r=this.registry.get(t))!=null?r:{callback:()=>{},visible:n,visited:!0};i.visible=n,i.visited=!0,this.registry.set(t,i)}},bg=class extends nu{constructor(t,n){super(rt({apiKey:t},n)),this.flows=[],this.hasFailed=!1,this.visibilityChangeHandler=()=>he(this,null,function*(){document.visibilityState==="visible"&&(yield this.refreshStateFromAPI())}),this.init(this.config),Zt()&&this.config.syncOnWindowUpdates!==!1&&(document.addEventListener("visibilitychange",this.visibilityChangeHandler),window.navigation&&window.navigation.addEventListener("navigate",r=>he(this,null,function*(){try{if(this.getGlobalState().currentUrl===r.destination.url)return;this.getGlobalState().currentUrl=r.destination.url,this.refreshStateFromAPI()}catch{}})))}getConfig(){return this.config}destroy(){if(Zt()){document.removeEventListener("visibilitychange",this.visibilityChangeHandler);let t=hr(this.config);ct[t]&&(ct[t].onFlowStateChangeHandlers=[])}}init(t){return he(this,null,function*(){if(this.updateConfig(rt(rt({},this.config),t)),!(!this.config.userId&&this.config.generateGuestId===!1))return this.initPromise=he(this,null,function*(){var n;this.config.__readOnly||(n=this.config.userId)!=null&&n.startsWith(Uo)||(this.config.userId&&this.config.groupId?yield this.session({userId:this.config.userId,groupId:this.config.groupId,userProperties:this.config.userProperties,groupProperties:this.config.groupProperties}):this.config.userId&&(yield this.session({userId:this.config.userId,userProperties:this.config.userProperties}))),yield this.refreshStateFromAPI()}),this.initPromise})}identify(t,n){return he(this,null,function*(){yield this.updateConfig(yr(rt({},this.config),{userId:t})),yield this.initIfNeeded(),yield this.session({userId:this.config.userId,userProperties:n}),yield this.resync()})}group(t,n){return he(this,null,function*(){yield this.initIfNeeded(),this.updateConfig(yr(rt({},this.config),{groupId:t})),yield this.session({userId:this.config.userId,groupId:this.config.groupId,groupProperties:n}),yield this.resync()})}track(t,n){return he(this,null,function*(){if(yield this.initIfNeeded(),!t){console.error("Event name is required to track an event");return}this.config.userId&&this.config.groupId?yield this.session({userId:this.config.userId,groupId:this.config.groupId,groupEvents:[{event:t,properties:n}],userEvents:[{event:t,properties:n}]}):this.config.userId&&(yield this.session({userId:this.config.userId,userEvents:[{event:t,properties:n}]})),yield this.resync()})}session(t){return he(this,null,function*(){yield this.fetch("/v1/public/sessions",{method:"POST",body:JSON.stringify(t)})})}isReady(){return!!(this.config.__instanceId&&this.config.apiKey&&this.initPromise)}getFlow(t){return he(this,null,function*(){return yield this.initIfNeeded(),this.getFlowSync(t)})}getFlowSync(t){return this.flows.find(n=>n.id==t)}getFlows(){return he(this,null,function*(){return yield this.initIfNeeded(),this.flows})}getCollection(t){return he(this,null,function*(){yield this.initIfNeeded();let n=this.getGlobalState().collections.getCollection(t);if(n==null)return;this.getGlobalState().registeredCollectionIds.add(t);let r=yield Promise.all(n.flows.map(i=>he(this,null,function*(){return yr(rt({},i),{flow:yield this.getFlow(i.flowId)})})));return n.flows=r,n})}getCollectionSync(t){let n=this.getGlobalState().collections.getCollection(t);if(n!=null)return this.getGlobalState().registeredCollectionIds.add(t),n}getCollections(){return he(this,null,function*(){if(yield this.initIfNeeded(),!this.config.userId&&this.config.generateGuestId===!1)return;let t=this.getGlobalState().collections.getCollections();if(t!=null)return t})}reload(t){return he(this,null,function*(){fg(),dg(),t&&(yield this.updateConfig(t),this.mockFlowStates(hr(this.config))),this.initPromise=null,yield this.init(this.config),this.flows.forEach(n=>{this.getGlobalState().onFlowStateChangeHandlers.forEach(r=>{let i=this.getGlobalState().previousFlows.get(n.id);r(n,i),this.getGlobalState().previousFlows.set(n.id,di(n))})})})}resync(){return he(this,null,function*(){yield this.refreshStateFromAPI()})}onStateChange(t){return he(this,null,function*(){yield this.initIfNeeded(),this.getGlobalState().onFlowStateChangeHandlers.push(t)})}hasFailedToLoad(){return this.hasFailed}removeStateChangeHandler(t){return he(this,null,function*(){yield this.initIfNeeded(),this.getGlobalState().onFlowStateChangeHandlers=this.getGlobalState().onFlowStateChangeHandlers.filter(n=>n!==t)})}initIfNeeded(){return he(this,null,function*(){return this.initPromise?this.initPromise:this.init(this.config)})}refreshStateFromAPI(){return he(this,null,function*(){let t=hr(this.config);if(!ct[t]){let n=this,r={set:function(i,o,s){if(i[o]){let a=i[o],l=s;JSON.stringify(a)!==JSON.stringify(l)&&n.triggerEventHandlers(l,a)}return i[o]=s,!0}};if(ct[t]={refreshStateFromAPI:()=>he(this,null,function*(){}),collections:new gg(new Map),registeredCollectionIds:new Set,flowStates:new Proxy({},r),onFlowStateChangeHandlerWrappers:new Map,onStepStateChangeHandlerWrappers:new Map,onFlowStateChangeHandlers:[],previousFlows:new Map,variables:{},config:this.config,currentUrl:Zt()?window.location.href:"",pendingRequests:new Map,lastFlowSyncDate:new Map},this.config.__readOnly&&this.config.__flowStateOverrides){this.mockFlowStates(t);return}ct[t].refreshStateFromAPI=i=>he(this,null,function*(){var o,s;if(this.config.__readOnly)return;let a=i||(yield this.fetch("/v1/public/flowStates",{method:"POST",body:JSON.stringify({userId:this.getGlobalState().config.userId,groupId:this.getGlobalState().config.groupId,context:ru(this.getGlobalState())})})),l=new Map;(s=(o=a.collections)==null?void 0:o.computedOrder)==null||s.forEach(({allowedComponents:c,collectionId:p,collectionType:u,flowId:v,visible:g})=>{var m;let f=(m=l.get(p))!=null?m:{allowedComponents:c,collectionType:u,flows:[]};f.flows.push({flowId:v,visible:g}),l.set(p,f)}),l.size>0&&ct[t].collections.ingestCollectionsData(l),a&&a.eligibleFlows?(a.eligibleFlows.forEach(c=>{ct[t].flowStates[c.flowSlug]=c,this.flows.find(p=>p.id==c.flowSlug)?this.flows.forEach(p=>{p.id==c.flowSlug&&p.resyncState(c)}):this.flows.push(new Go({config:this.config,id:c.flowSlug}))}),this.hasFailed=!1):this.hasFailed=!0})}yield ct[t].refreshStateFromAPI()})}mockFlowStates(t){Object.keys(this.config.__flowStateOverrides).forEach(n=>{ct[t].flowStates[n]=this.config.__flowStateOverrides[n],this.flows.find(r=>r.id==n)?this.flows.forEach(r=>{r.id==n&&r.resyncState(this.config.__flowStateOverrides[n])}):this.flows.push(new Go({config:this.config,id:n}))})}updateConfig(t){return he(this,null,function*(){this.config=rt(rt({},this.config),t),ct[hr(this.config)]&&(this.getGlobalState().config=this.config)})}triggerEventHandlers(t,n){return he(this,null,function*(){t&&this.flows.forEach(r=>{r.id==n.flowSlug&&this.getGlobalState().onFlowStateChangeHandlers.forEach(i=>{let o=this.getGlobalState().previousFlows.get(r.id);r.resyncState(t),i(r,o),this.getGlobalState().previousFlows.set(r.id,di(r))})})})}batchRegister(t){return he(this,null,function*(){let n=t.map(r=>he(this,[r],function*([i,o]){let s=yield this.getFlow(i);return[i,a=>{let l=this.getGlobalState().previousFlows.get(i);(l==null?void 0:l.isVisible)!==a&&this.getGlobalState().onFlowStateChangeHandlers.forEach(c=>{c(s,l),this.getGlobalState().previousFlows.set(i,di(s))}),o==null||o(a)}]}));Promise.all(n).then(r=>{this.getGlobalState().collections.batchRegister(r)})})}},vg=(e=>(e.MANUAL="MANUAL",e.AUTOMATIC="AUTOMATIC",e))(vg||{}),yg=(e=>(e.DRAFT="DRAFT",e.ACTIVE="ACTIVE",e.ARCHIVED="ARCHIVED",e))(yg||{}),yi=(e=>(e.ANNOUNCEMENT="ANNOUNCEMENT",e.CHECKLIST="CHECKLIST",e.FORM="FORM",e.TOUR="TOUR",e.SUPPORT="SUPPORT",e.CUSTOM="CUSTOM",e.BANNER="BANNER",e.EMBEDDED_TIP="EMBEDDED_TIP",e.NPS_SURVEY="NPS_SURVEY",e.SURVEY="SURVEY",e.CARD="CARD",e))(yi||{});function wg(e){return Object.prototype.toString.call(e)==="[object Object]"}function al(e){return wg(e)||Array.isArray(e)}function Sg(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function _s(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const i=JSON.stringify(Object.keys(e.breakpoints||{})),o=JSON.stringify(Object.keys(t.breakpoints||{}));return i!==o?!1:n.every(s=>{const a=e[s],l=t[s];return typeof a=="function"?`${a}`==`${l}`:!al(a)||!al(l)?a===l:_s(a,l)})}function ll(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function xg(e,t){if(e.length!==t.length)return!1;const n=ll(e),r=ll(t);return n.every((i,o)=>{const s=r[o];return _s(i,s)})}function Ms(e){return typeof e=="number"}function Yo(e){return typeof e=="string"}function Wi(e){return typeof e=="boolean"}function cl(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ne(e){return Math.abs(e)}function Ds(e){return Math.sign(e)}function wr(e,t){return Ne(e-t)}function Cg(e,t){if(e===0||t===0||Ne(e)<=Ne(t))return 0;const n=wr(Ne(e),Ne(t));return Ne(n/e)}function Ar(e){return Pr(e).map(Number)}function Ot(e){return e[Mr(e)]}function Mr(e){return Math.max(0,e.length-1)}function Ls(e,t){return t===Mr(e)}function ul(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Pr(e){return Object.keys(e)}function iu(e,t){return[e,t].reduce((n,r)=>(Pr(r).forEach(i=>{const o=n[i],s=r[i],a=cl(o)&&cl(s);n[i]=a?iu(o,s):s}),n),{})}function qo(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function Eg(e,t){const n={start:r,center:i,end:o};function r(){return 0}function i(l){return o(l)/2}function o(l){return t-l}function s(l,c){return Yo(e)?n[e](l):e(t,l,c)}return{measure:s}}function Ir(){let e=[];function t(i,o,s,a={passive:!0}){let l;if("addEventListener"in i)i.addEventListener(o,s,a),l=()=>i.removeEventListener(o,s,a);else{const c=i;c.addListener(s),l=()=>c.removeListener(s)}return e.push(l),r}function n(){e=e.filter(i=>i())}const r={add:t,clear:n};return r}function kg(e,t,n,r){const i=Ir(),o=1e3/60;let s=null,a=0,l=0;function c(){i.add(e,"visibilitychange",()=>{e.hidden&&m()})}function p(){g(),i.clear()}function u(y){if(!l)return;s||(s=y);const d=y-s;for(s=y,a+=d;a>=o;)n(o),a-=o;const h=a/o;r(h),l&&t.requestAnimationFrame(u)}function v(){l||(l=t.requestAnimationFrame(u))}function g(){t.cancelAnimationFrame(l),s=null,a=0,l=0}function m(){s=null,a=0}return{init:c,destroy:p,start:v,stop:g,update:()=>n(o),render:r}}function Tg(e,t){const n=t==="rtl",r=e==="y",i=r?"y":"x",o=r?"x":"y",s=!r&&n?-1:1,a=p(),l=u();function c(m){const{height:f,width:y}=m;return r?f:y}function p(){return r?"top":n?"right":"left"}function u(){return r?"bottom":n?"left":"right"}function v(m){return m*s}return{scroll:i,cross:o,startEdge:a,endEdge:l,measureSize:c,direction:v}}function Tn(e=0,t=0){const n=Ne(e-t);function r(c){return c<e}function i(c){return c>t}function o(c){return r(c)||i(c)}function s(c){return o(c)?r(c)?e:t:c}function a(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:s,reachedAny:o,reachedMax:i,reachedMin:r,removeOffset:a}}function ou(e,t,n){const{constrain:r}=Tn(0,e),i=e+1;let o=s(t);function s(v){return n?Ne((i+v)%i):r(v)}function a(){return o}function l(v){return o=s(v),u}function c(v){return p().set(a()+v)}function p(){return ou(e,a(),n)}const u={get:a,set:l,add:c,clone:p};return u}function Ag(e,t,n,r,i,o,s,a,l,c,p,u,v,g,m,f,y,d,h){const{cross:w,direction:S}=e,x=["INPUT","SELECT","TEXTAREA"],T={passive:!1},A=Ir(),k=Ir(),_=Tn(50,225).constrain(g.measure(20)),z={mouse:300,touch:400},R={mouse:500,touch:600},I=m?43:25;let L=!1,N=0,j=0,B=!1,V=!1,U=!1,J=!1;function ge(H){if(!h)return;function le(_e){(Wi(h)||h(H,_e))&&Se(_e)}const fe=t;A.add(fe,"dragstart",_e=>_e.preventDefault(),T).add(fe,"touchmove",()=>{},T).add(fe,"touchend",()=>{}).add(fe,"touchstart",le).add(fe,"mousedown",le).add(fe,"touchcancel",se).add(fe,"contextmenu",se).add(fe,"click",we,!0)}function re(){A.clear(),k.clear()}function Re(){const H=J?n:t;k.add(H,"touchmove",Z,T).add(H,"touchend",se).add(H,"mousemove",Z,T).add(H,"mouseup",se)}function ve(H){const le=H.nodeName||"";return x.includes(le)}function Ae(){return(m?R:z)[J?"mouse":"touch"]}function oe(H,le){const fe=u.add(Ds(H)*-1),_e=p.byDistance(H,!m).distance;return m||Ne(H)<_?_e:y&&le?_e*.5:p.byIndex(fe.get(),0).distance}function Se(H){const le=qo(H,r);J=le,U=m&&le&&!H.buttons&&L,L=wr(i.get(),s.get())>=2,!(le&&H.button!==0)&&(ve(H.target)||(B=!0,o.pointerDown(H),c.useFriction(0).useDuration(0),i.set(s),Re(),N=o.readPoint(H),j=o.readPoint(H,w),v.emit("pointerDown")))}function Z(H){if(!qo(H,r)&&H.touches.length>=2)return se(H);const fe=o.readPoint(H),_e=o.readPoint(H,w),ze=wr(fe,N),Le=wr(_e,j);if(!V&&!J&&(!H.cancelable||(V=ze>Le,!V)))return se(H);const E=o.pointerMove(H);ze>f&&(U=!0),c.useFriction(.3).useDuration(.75),a.start(),i.add(S(E)),H.preventDefault()}function se(H){const fe=p.byDistance(0,!1).index!==u.get(),_e=o.pointerUp(H)*Ae(),ze=oe(S(_e),fe),Le=Cg(_e,ze),E=I-10*Le,O=d+Le/50;V=!1,B=!1,k.clear(),c.useDuration(E).useFriction(O),l.distance(ze,!m),J=!1,v.emit("pointerUp")}function we(H){U&&(H.stopPropagation(),H.preventDefault(),U=!1)}function de(){return B}return{init:ge,destroy:re,pointerDown:de}}function Pg(e,t){let r,i;function o(u){return u.timeStamp}function s(u,v){const m=`client${(v||e.scroll)==="x"?"X":"Y"}`;return(qo(u,t)?u:u.touches[0])[m]}function a(u){return r=u,i=u,s(u)}function l(u){const v=s(u)-s(i),g=o(u)-o(r)>170;return i=u,g&&(r=u),v}function c(u){if(!r||!i)return 0;const v=s(i)-s(r),g=o(u)-o(r),m=o(u)-o(i)>170,f=v/g;return g&&!m&&Ne(f)>.1?f:0}return{pointerDown:a,pointerMove:l,pointerUp:c,readPoint:s}}function Ig(){function e(n){const{offsetTop:r,offsetLeft:i,offsetWidth:o,offsetHeight:s}=n;return{top:r,right:i+o,bottom:r+s,left:i,width:o,height:s}}return{measure:e}}function Og(e){function t(r){return e*(r/100)}return{measure:t}}function Rg(e,t,n,r,i,o,s){const a=[e].concat(r);let l,c,p=[],u=!1;function v(y){return i.measureSize(s.measure(y))}function g(y){if(!o)return;c=v(e),p=r.map(v);function d(h){for(const w of h){if(u)return;const S=w.target===e,x=r.indexOf(w.target),T=S?c:p[x],A=v(S?e:r[x]);if(Ne(A-T)>=.5){y.reInit(),t.emit("resize");break}}}l=new ResizeObserver(h=>{(Wi(o)||o(y,h))&&d(h)}),n.requestAnimationFrame(()=>{a.forEach(h=>l.observe(h))})}function m(){u=!0,l&&l.disconnect()}return{init:g,destroy:m}}function _g(e,t,n,r,i,o){let s=0,a=0,l=i,c=o,p=e.get(),u=0;function v(T){const A=T/1e3,k=l*A,_=r.get()-e.get(),z=!l;let R=0;return z?(s=0,n.set(r),e.set(r),R=_):(n.set(e),s+=_/k,s*=c,p+=s,e.add(s*A),R=p-u),a=Ds(R),u=p,x}function g(){const T=r.get()-t.get();return Ne(T)<.001}function m(){return l}function f(){return a}function y(){return s}function d(){return w(i)}function h(){return S(o)}function w(T){return l=T,x}function S(T){return c=T,x}const x={direction:f,duration:m,velocity:y,seek:v,settled:g,useBaseFriction:h,useBaseDuration:d,useFriction:S,useDuration:w};return x}function Mg(e,t,n,r,i){const o=i.measure(10),s=i.measure(50),a=Tn(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function p(g){if(!c())return;const m=e.reachedMin(t.get())?"min":"max",f=Ne(e[m]-t.get()),y=n.get()-t.get(),d=a.constrain(f/s);n.subtract(y*d),!g&&Ne(y)<o&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function u(g){l=!g}return{shouldConstrain:c,constrain:p,toggleActive:u}}function Dg(e,t,n,r,i){const o=Tn(-t+e,0),s=u(),a=p(),l=v();function c(m,f){return wr(m,f)<1}function p(){const m=s[0],f=Ot(s),y=s.lastIndexOf(m),d=s.indexOf(f)+1;return Tn(y,d)}function u(){return n.map((m,f)=>{const{min:y,max:d}=o,h=o.constrain(m),w=!f,S=Ls(n,f);return w?d:S||c(y,h)?y:c(d,h)?d:h}).map(m=>parseFloat(m.toFixed(3)))}function v(){if(t<=e+i)return[o.max];if(r==="keepSnaps")return s;const{min:m,max:f}=a;return s.slice(m,f)}return{snapsContained:l,scrollContainLimit:a}}function Lg(e,t,n){const r=t[0],i=n?r-e:Ot(t);return{limit:Tn(i,r)}}function Ng(e,t,n,r){const o=t.min+.1,s=t.max+.1,{reachedMin:a,reachedMax:l}=Tn(o,s);function c(v){return v===1?l(n.get()):v===-1?a(n.get()):!1}function p(v){if(!c(v))return;const g=e*(v*-1);r.forEach(m=>m.add(g))}return{loop:p}}function Fg(e){const{max:t,length:n}=e;function r(o){const s=o-t;return n?s/-n:0}return{get:r}}function $g(e,t,n,r,i){const{startEdge:o,endEdge:s}=e,{groupSlides:a}=i,l=u().map(t.measure),c=v(),p=g();function u(){return a(r).map(f=>Ot(f)[s]-f[0][o]).map(Ne)}function v(){return r.map(f=>n[o]-f[o]).map(f=>-Ne(f))}function g(){return a(c).map(f=>f[0]).map((f,y)=>f+l[y])}return{snaps:c,snapsAligned:p}}function zg(e,t,n,r,i,o){const{groupSlides:s}=i,{min:a,max:l}=r,c=p();function p(){const v=s(o),g=!e||t==="keepSnaps";return n.length===1?[o]:g?v:v.slice(a,l).map((m,f,y)=>{const d=!f,h=Ls(y,f);if(d){const w=Ot(y[0])+1;return ul(w)}if(h){const w=Mr(o)-Ot(y)[0]+1;return ul(w,Ot(y)[0])}return m})}return{slideRegistry:c}}function Bg(e,t,n,r,i){const{reachedAny:o,removeOffset:s,constrain:a}=r;function l(m){return m.concat().sort((f,y)=>Ne(f)-Ne(y))[0]}function c(m){const f=e?s(m):a(m),y=t.map((h,w)=>({diff:p(h-f,0),index:w})).sort((h,w)=>Ne(h.diff)-Ne(w.diff)),{index:d}=y[0];return{index:d,distance:f}}function p(m,f){const y=[m,m+n,m-n];if(!e)return m;if(!f)return l(y);const d=y.filter(h=>Ds(h)===f);return d.length?l(d):Ot(y)-n}function u(m,f){const y=t[m]-i.get(),d=p(y,f);return{index:m,distance:d}}function v(m,f){const y=i.get()+m,{index:d,distance:h}=c(y),w=!e&&o(y);if(!f||w)return{index:d,distance:m};const S=t[d]-h,x=m+p(S,0);return{index:d,distance:x}}return{byDistance:v,byIndex:u,shortcut:p}}function jg(e,t,n,r,i,o,s){function a(u){const v=u.distance,g=u.index!==t.get();o.add(v),v&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),g&&(n.set(t.get()),t.set(u.index),s.emit("select"))}function l(u,v){const g=i.byDistance(u,v);a(g)}function c(u,v){const g=t.clone().set(u),m=i.byIndex(g.get(),v);a(m)}return{distance:l,index:c}}function Vg(e,t,n,r,i,o,s,a){const l={passive:!0,capture:!0};let c=0;function p(g){if(!a)return;function m(f){if(new Date().getTime()-c>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;const h=n.findIndex(w=>w.includes(f));Ms(h)&&(i.useDuration(0),r.index(h,0),s.emit("slideFocus"))}o.add(document,"keydown",u,!1),t.forEach((f,y)=>{o.add(f,"focus",d=>{(Wi(a)||a(g,d))&&m(y)},l)})}function u(g){g.code==="Tab"&&(c=new Date().getTime())}return{init:p}}function gr(e){let t=e;function n(){return t}function r(l){t=s(l)}function i(l){t+=s(l)}function o(l){t-=s(l)}function s(l){return Ms(l)?l:l.get()}return{get:n,set:r,add:i,subtract:o}}function su(e,t){const n=e.scroll==="x"?o:s,r=t.style;let i=!1;function o(u){return`translate3d(${u}px,0px,0px)`}function s(u){return`translate3d(0px,${u}px,0px)`}function a(u){i||(r.transform=n(e.direction(u)))}function l(u){i=!u}function c(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:c,to:a,toggleActive:l}}function Hg(e,t,n,r,i,o,s,a,l){const p=Ar(i),u=Ar(i).reverse(),v=d().concat(h());function g(A,k){return A.reduce((_,z)=>_-i[z],k)}function m(A,k){return A.reduce((_,z)=>g(_,k)>0?_.concat([z]):_,[])}function f(A){return o.map((k,_)=>({start:k-r[_]+.5+A,end:k+t-.5+A}))}function y(A,k,_){const z=f(k);return A.map(R=>{const I=_?0:-n,L=_?n:0,N=_?"end":"start",j=z[R][N];return{index:R,loopPoint:j,slideLocation:gr(-1),translate:su(e,l[R]),target:()=>a.get()>j?I:L}})}function d(){const A=s[0],k=m(u,A);return y(k,n,!1)}function h(){const A=t-s[0]-1,k=m(p,A);return y(k,-n,!0)}function w(){return v.every(({index:A})=>{const k=p.filter(_=>_!==A);return g(k,t)<=.1})}function S(){v.forEach(A=>{const{target:k,translate:_,slideLocation:z}=A,R=k();R!==z.get()&&(_.to(R),z.set(R))})}function x(){v.forEach(A=>A.translate.clear())}return{canLoop:w,clear:x,loop:S,loopPoints:v}}function Wg(e,t,n){let r,i=!1;function o(l){if(!n)return;function c(p){for(const u of p)if(u.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(p=>{i||(Wi(n)||n(l,p))&&c(p)}),r.observe(e,{childList:!0})}function s(){r&&r.disconnect(),i=!0}return{init:o,destroy:s}}function Gg(e,t,n,r){const i={};let o=null,s=null,a,l=!1;function c(){a=new IntersectionObserver(m=>{l||(m.forEach(f=>{const y=t.indexOf(f.target);i[y]=f}),o=null,s=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(m=>a.observe(m))}function p(){a&&a.disconnect(),l=!0}function u(m){return Pr(i).reduce((f,y)=>{const d=parseInt(y),{isIntersecting:h}=i[d];return(m&&h||!m&&!h)&&f.push(d),f},[])}function v(m=!0){if(m&&o)return o;if(!m&&s)return s;const f=u(m);return m&&(o=f),m||(s=f),f}return{init:c,destroy:p,get:v}}function Ug(e,t,n,r,i,o){const{measureSize:s,startEdge:a,endEdge:l}=e,c=n[0]&&i,p=m(),u=f(),v=n.map(s),g=y();function m(){if(!c)return 0;const h=n[0];return Ne(t[a]-h[a])}function f(){if(!c)return 0;const h=o.getComputedStyle(Ot(r));return parseFloat(h.getPropertyValue(`margin-${l}`))}function y(){return n.map((h,w,S)=>{const x=!w,T=Ls(S,w);return x?v[w]+p:T?v[w]+u:S[w+1][a]-h[a]}).map(Ne)}return{slideSizes:v,slideSizesWithGaps:g,startGap:p,endGap:u}}function Yg(e,t,n,r,i,o,s,a,l){const{startEdge:c,endEdge:p,direction:u}=e,v=Ms(n);function g(d,h){return Ar(d).filter(w=>w%h===0).map(w=>d.slice(w,w+h))}function m(d){return d.length?Ar(d).reduce((h,w,S)=>{const x=Ot(h)||0,T=x===0,A=w===Mr(d),k=i[c]-o[x][c],_=i[c]-o[w][p],z=!r&&T?u(s):0,R=!r&&A?u(a):0,I=Ne(_-R-(k+z));return S&&I>t+l&&h.push(w),A&&h.push(d.length),h},[]).map((h,w,S)=>{const x=Math.max(S[w-1]||0);return d.slice(x,h)}):[]}function f(d){return v?g(d,n):m(d)}return{groupSlides:f}}function qg(e,t,n,r,i,o,s){const{align:a,axis:l,direction:c,startIndex:p,loop:u,duration:v,dragFree:g,dragThreshold:m,inViewThreshold:f,slidesToScroll:y,skipSnaps:d,containScroll:h,watchResize:w,watchSlides:S,watchDrag:x,watchFocus:T}=o,A=2,k=Ig(),_=k.measure(t),z=n.map(k.measure),R=Tg(l,c),I=R.measureSize(_),L=Og(I),N=Eg(a,I),j=!u&&!!h,B=u||!!h,{slideSizes:V,slideSizesWithGaps:U,startGap:J,endGap:ge}=Ug(R,_,z,n,B,i),re=Yg(R,I,y,u,_,z,J,ge,A),{snaps:Re,snapsAligned:ve}=$g(R,N,_,z,re),Ae=-Ot(Re)+Ot(U),{snapsContained:oe,scrollContainLimit:Se}=Dg(I,Ae,ve,h,A),Z=j?oe:ve,{limit:se}=Lg(Ae,Z,u),we=ou(Mr(Z),p,u),de=we.clone(),te=Ar(n),H=({dragHandler:Ke,scrollBody:Mt,scrollBounds:Dt,options:{loop:St}},et)=>{St||Dt.constrain(Ke.pointerDown()),Mt.seek(et)},le=({scrollBody:Ke,translate:Mt,location:Dt,offsetLocation:St,scrollLooper:et,slideLooper:kt,dragHandler:rr,animation:ir,eventHandler:zr,scrollBounds:_n,options:{loop:wn}},Br)=>{const cn=Ke.settled(),io=!_n.shouldConstrain(),jr=wn?cn:cn&&io;jr&&!rr.pointerDown()&&(ir.stop(),zr.emit("settle")),jr||zr.emit("scroll");const je=Dt.get()*Br+E.get()*(1-Br);St.set(je),wn&&(et.loop(Ke.direction()),kt.loop()),Mt.to(St.get())},fe=kg(r,i,Ke=>H(ln,Ke),Ke=>le(ln,Ke)),_e=.68,ze=Z[we.get()],Le=gr(ze),E=gr(ze),O=gr(ze),F=gr(ze),X=_g(Le,O,E,F,v,_e),q=Bg(u,Z,Ae,se,F),W=jg(fe,we,de,X,q,F,s),Q=Fg(se),me=Ir(),Pe=Gg(t,n,s,f),{slideRegistry:Me}=zg(j,h,Z,Se,re,te),wt=Vg(e,n,Me,W,X,me,s,T),ln={ownerDocument:r,ownerWindow:i,eventHandler:s,containerRect:_,slideRects:z,animation:fe,axis:R,dragHandler:Ag(R,e,r,i,F,Pg(R,i),Le,fe,W,X,q,we,s,L,g,m,d,_e,x),eventStore:me,percentOfView:L,index:we,indexPrevious:de,limit:se,location:Le,offsetLocation:O,previousLocation:E,options:o,resizeHandler:Rg(t,s,i,n,R,w,k),scrollBody:X,scrollBounds:Mg(se,O,F,X,L),scrollLooper:Ng(Ae,se,O,[Le,O,E,F]),scrollProgress:Q,scrollSnapList:Z.map(Q.get),scrollSnaps:Z,scrollTarget:q,scrollTo:W,slideLooper:Hg(R,I,Ae,V,U,Re,Z,O,n),slideFocus:wt,slidesHandler:Wg(t,s,S),slidesInView:Pe,slideIndexes:te,slideRegistry:Me,slidesToScroll:re,target:F,translate:su(R,t)};return ln}function Xg(){let e={},t;function n(c){t=c}function r(c){return e[c]||[]}function i(c){return r(c).forEach(p=>p(t,c)),l}function o(c,p){return e[c]=r(c).concat([p]),l}function s(c,p){return e[c]=r(c).filter(u=>u!==p),l}function a(){e={}}const l={init:n,emit:i,off:s,on:o,clear:a};return l}const Kg={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Zg(e){function t(o,s){return iu(o,s||{})}function n(o){const s=o.breakpoints||{},a=Pr(s).filter(l=>e.matchMedia(l).matches).map(l=>s[l]).reduce((l,c)=>t(l,c),{});return t(o,a)}function r(o){return o.map(s=>Pr(s.breakpoints||{})).reduce((s,a)=>s.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function Jg(e){let t=[];function n(o,s){return t=s.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(o,e)),s.reduce((a,l)=>Object.assign(a,{[l.name]:l}),{})}function r(){t=t.filter(o=>o.destroy())}return{init:n,destroy:r}}function wi(e,t,n){const r=e.ownerDocument,i=r.defaultView,o=Zg(i),s=Jg(o),a=Ir(),l=Xg(),{mergeOptions:c,optionsAtMedia:p,optionsMediaQueries:u}=o,{on:v,off:g,emit:m}=l,f=R;let y=!1,d,h=c(Kg,wi.globalOptions),w=c(h),S=[],x,T,A;function k(){const{container:te,slides:H}=w;T=(Yo(te)?e.querySelector(te):te)||e.children[0];const fe=Yo(H)?T.querySelectorAll(H):H;A=[].slice.call(fe||T.children)}function _(te){const H=qg(e,T,A,r,i,te,l);if(te.loop&&!H.slideLooper.canLoop()){const le=Object.assign({},te,{loop:!1});return _(le)}return H}function z(te,H){y||(h=c(h,te),w=p(h),S=H||S,k(),d=_(w),u([h,...S.map(({options:le})=>le)]).forEach(le=>a.add(le,"change",R)),w.active&&(d.translate.to(d.location.get()),d.animation.init(),d.slidesInView.init(),d.slideFocus.init(de),d.eventHandler.init(de),d.resizeHandler.init(de),d.slidesHandler.init(de),d.options.loop&&d.slideLooper.loop(),T.offsetParent&&A.length&&d.dragHandler.init(de),x=s.init(de,S)))}function R(te,H){const le=re();I(),z(c({startIndex:le},te),H),l.emit("reInit")}function I(){d.dragHandler.destroy(),d.eventStore.clear(),d.translate.clear(),d.slideLooper.clear(),d.resizeHandler.destroy(),d.slidesHandler.destroy(),d.slidesInView.destroy(),d.animation.destroy(),s.destroy(),a.clear()}function L(){y||(y=!0,a.clear(),I(),l.emit("destroy"),l.clear())}function N(te,H,le){!w.active||y||(d.scrollBody.useBaseFriction().useDuration(H===!0?0:w.duration),d.scrollTo.index(te,le||0))}function j(te){const H=d.index.add(1).get();N(H,te,-1)}function B(te){const H=d.index.add(-1).get();N(H,te,1)}function V(){return d.index.add(1).get()!==re()}function U(){return d.index.add(-1).get()!==re()}function J(){return d.scrollSnapList}function ge(){return d.scrollProgress.get(d.location.get())}function re(){return d.index.get()}function Re(){return d.indexPrevious.get()}function ve(){return d.slidesInView.get()}function Ae(){return d.slidesInView.get(!1)}function oe(){return x}function Se(){return d}function Z(){return e}function se(){return T}function we(){return A}const de={canScrollNext:V,canScrollPrev:U,containerNode:se,internalEngine:Se,destroy:L,off:g,on:v,emit:m,plugins:oe,previousScrollSnap:Re,reInit:f,rootNode:Z,scrollNext:j,scrollPrev:B,scrollProgress:ge,scrollSnapList:J,scrollTo:N,selectedScrollSnap:re,slideNodes:we,slidesInView:ve,slidesNotInView:Ae};return z(t,n),setTimeout(()=>l.emit("init"),0),de}wi.globalOptions=void 0;function Ns(e={},t=[]){const n=b.useRef(e),r=b.useRef(t),[i,o]=b.useState(),[s,a]=b.useState(),l=b.useCallback(()=>{i&&i.reInit(n.current,r.current)},[i]);return b.useEffect(()=>{_s(n.current,e)||(n.current=e,l())},[e,l]),b.useEffect(()=>{xg(r.current,t)||(r.current=t,l())},[t,l]),b.useEffect(()=>{if(Sg()&&s){wi.globalOptions=Ns.globalOptions;const c=wi(s,n.current,r.current);return o(c),()=>c.destroy()}else o(void 0)},[s,o]),[a,i]}Ns.globalOptions=void 0;var Fs="Collapsible",[Qg,BC]=Wt(Fs),[eb,$s]=Qg(Fs),au=b.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:o,onOpenChange:s,...a}=e,[l=!1,c]=En({prop:r,defaultProp:i,onChange:s});return M.jsx(eb,{scope:n,disabled:o,contentId:xn(),open:l,onOpenToggle:b.useCallback(()=>c(p=>!p),[c]),children:M.jsx(ke.div,{"data-state":Bs(l),"data-disabled":o?"":void 0,...a,ref:t})})});au.displayName=Fs;var lu="CollapsibleTrigger",cu=b.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=$s(lu,n);return M.jsx(ke.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Bs(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:ye(e.onClick,i.onOpenToggle)})});cu.displayName=lu;var zs="CollapsibleContent",uu=b.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=$s(zs,e.__scopeCollapsible);return M.jsx(On,{present:n||i.open,children:({present:o})=>M.jsx(tb,{...r,ref:t,present:o})})});uu.displayName=zs;var tb=b.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...o}=e,s=$s(zs,n),[a,l]=b.useState(r),c=b.useRef(null),p=Te(t,c),u=b.useRef(0),v=u.current,g=b.useRef(0),m=g.current,f=s.open||a,y=b.useRef(f),d=b.useRef();return b.useEffect(()=>{const h=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(h)},[]),Qe(()=>{const h=c.current;if(h){d.current=d.current||{transitionDuration:h.style.transitionDuration,animationName:h.style.animationName},h.style.transitionDuration="0s",h.style.animationName="none";const w=h.getBoundingClientRect();u.current=w.height,g.current=w.width,y.current||(h.style.transitionDuration=d.current.transitionDuration,h.style.animationName=d.current.animationName),l(r)}},[s.open,r]),M.jsx(ke.div,{"data-state":Bs(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!f,...o,ref:p,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:f&&i})});function Bs(e){return e?"open":"closed"}var nb=au,rb=cu,ib=uu,Dr=e=>e.type==="checkbox",Hn=e=>e instanceof Date,it=e=>e==null;const du=e=>typeof e=="object";var He=e=>!it(e)&&!Array.isArray(e)&&du(e)&&!Hn(e),fu=e=>He(e)&&e.target?Dr(e.target)?e.target.checked:e.target.value:e,ob=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,pu=(e,t)=>e.has(ob(t)),sb=e=>{const t=e.constructor&&e.constructor.prototype;return He(t)&&t.hasOwnProperty("isPrototypeOf")},js=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function lt(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(js&&(e instanceof Blob||e instanceof FileList))&&(n||He(e)))if(t=n?[]:{},!n&&!sb(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=lt(e[r]));else return e;return t}var Gi=e=>Array.isArray(e)?e.filter(Boolean):[],$e=e=>e===void 0,K=(e,t,n)=>{if(!t||!He(e))return n;const r=Gi(t.split(/[,[\].]+?/)).reduce((i,o)=>it(i)?i:i[o],e);return $e(r)||r===e?$e(e[t])?n:e[t]:r},xt=e=>typeof e=="boolean",Vs=e=>/^\w*$/.test(e),mu=e=>Gi(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ie=(e,t,n)=>{let r=-1;const i=Vs(t)?[t]:mu(t),o=i.length,s=o-1;for(;++r<o;){const a=i[r];let l=n;if(r!==s){const c=e[a];l=He(c)||Array.isArray(c)?c:isNaN(+i[r+1])?{}:[]}if(a==="__proto__")return;e[a]=l,e=e[a]}return e};const Si={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Pt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ut={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},hu=pe.createContext(null),Ui=()=>pe.useContext(hu),ab=e=>{const{children:t,...n}=e;return pe.createElement(hu.Provider,{value:n},t)};var gu=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const s=o;return t._proxyFormState[s]!==Pt.all&&(t._proxyFormState[s]=!r||Pt.all),n&&(n[s]=!0),e[s]}});return i},ut=e=>He(e)&&!Object.keys(e).length,bu=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return ut(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(s=>t[s]===(!r||Pt.all))},Sr=e=>Array.isArray(e)?e:[e],vu=(e,t,n)=>!e||!t||e===t||Sr(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Hs(e){const t=pe.useRef(e);t.current=e,pe.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function lb(e){const t=Ui(),{control:n=t.control,disabled:r,name:i,exact:o}=e,[s,a]=pe.useState(n._formState),l=pe.useRef(!0),c=pe.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),p=pe.useRef(i);return p.current=i,Hs({disabled:r,next:u=>l.current&&vu(p.current,u.name,o)&&bu(u,c.current,n._updateFormState)&&a({...n._formState,...u}),subject:n._subjects.state}),pe.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),gu(s,n,c.current,!1)}var jt=e=>typeof e=="string",yu=(e,t,n,r,i)=>jt(e)?(r&&t.watch.add(e),K(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),K(n,o))):(r&&(t.watchAll=!0),n);function cb(e){const t=Ui(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:s}=e,a=pe.useRef(r);a.current=r,Hs({disabled:o,subject:n._subjects.values,next:p=>{vu(a.current,p.name,s)&&c(lt(yu(a.current,n._names,p.values||n._formValues,!1,i)))}});const[l,c]=pe.useState(n._getWatch(r,i));return pe.useEffect(()=>n._removeUnmounted()),l}function ub(e){const t=Ui(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o}=e,s=pu(i._names.array,n),a=cb({control:i,name:n,defaultValue:K(i._formValues,n,K(i._defaultValues,n,e.defaultValue)),exact:!0}),l=lb({control:i,name:n,exact:!0}),c=pe.useRef(i.register(n,{...e.rules,value:a,...xt(e.disabled)?{disabled:e.disabled}:{}}));return pe.useEffect(()=>{const p=i._options.shouldUnregister||o,u=(v,g)=>{const m=K(i._fields,v);m&&m._f&&(m._f.mount=g)};if(u(n,!0),p){const v=lt(K(i._options.defaultValues,n));Ie(i._defaultValues,n,v),$e(K(i._formValues,n))&&Ie(i._formValues,n,v)}return()=>{(s?p&&!i._state.action:p)?i.unregister(n):u(n,!1)}},[n,i,s,o]),pe.useEffect(()=>{K(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:K(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:a,...xt(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:pe.useCallback(p=>c.current.onChange({target:{value:fu(p),name:n},type:Si.CHANGE}),[n]),onBlur:pe.useCallback(()=>c.current.onBlur({target:{value:K(i._formValues,n),name:n},type:Si.BLUR}),[n,i]),ref:pe.useCallback(p=>{const u=K(i._fields,n);u&&p&&(u._f.ref={focus:()=>p.focus(),select:()=>p.select(),setCustomValidity:v=>p.setCustomValidity(v),reportValidity:()=>p.reportValidity()})},[i._fields,n])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!K(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!K(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!K(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!K(l.validatingFields,n)},error:{enumerable:!0,get:()=>K(l.errors,n)}})}}var db=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},dl=e=>({isOnSubmit:!e||e===Pt.onSubmit,isOnBlur:e===Pt.onBlur,isOnChange:e===Pt.onChange,isOnAll:e===Pt.all,isOnTouch:e===Pt.onTouched}),fl=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const xr=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=K(e,i);if(o){const{_f:s,...a}=o;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)return!0;if(s.ref&&t(s.ref,s.name)&&!r)return!0;if(xr(a,t))break}else if(He(a)&&xr(a,t))break}}};var fb=(e,t,n)=>{const r=Sr(K(e,n));return Ie(r,"root",t[n]),Ie(e,n,r),e},Ws=e=>e.type==="file",Kt=e=>typeof e=="function",xi=e=>{if(!js)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},fi=e=>jt(e),Gs=e=>e.type==="radio",Ci=e=>e instanceof RegExp;const pl={value:!1,isValid:!1},ml={value:!0,isValid:!0};var wu=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!$e(e[0].attributes.value)?$e(e[0].value)||e[0].value===""?ml:{value:e[0].value,isValid:!0}:ml:pl}return pl};const hl={isValid:!1,value:null};var Su=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,hl):hl;function gl(e,t,n="validate"){if(fi(e)||Array.isArray(e)&&e.every(fi)||xt(e)&&!e)return{type:n,message:fi(e)?e:"",ref:t}}var Fn=e=>He(e)&&!Ci(e)?e:{value:e,message:""},bl=async(e,t,n,r,i)=>{const{ref:o,refs:s,required:a,maxLength:l,minLength:c,min:p,max:u,pattern:v,validate:g,name:m,valueAsNumber:f,mount:y,disabled:d}=e._f,h=K(t,m);if(!y||d)return{};const w=s?s[0]:o,S=I=>{r&&w.reportValidity&&(w.setCustomValidity(xt(I)?"":I||""),w.reportValidity())},x={},T=Gs(o),A=Dr(o),k=T||A,_=(f||Ws(o))&&$e(o.value)&&$e(h)||xi(o)&&o.value===""||h===""||Array.isArray(h)&&!h.length,z=db.bind(null,m,n,x),R=(I,L,N,j=Ut.maxLength,B=Ut.minLength)=>{const V=I?L:N;x[m]={type:I?j:B,message:V,ref:o,...z(I?j:B,V)}};if(i?!Array.isArray(h)||!h.length:a&&(!k&&(_||it(h))||xt(h)&&!h||A&&!wu(s).isValid||T&&!Su(s).isValid)){const{value:I,message:L}=fi(a)?{value:!!a,message:a}:Fn(a);if(I&&(x[m]={type:Ut.required,message:L,ref:w,...z(Ut.required,L)},!n))return S(L),x}if(!_&&(!it(p)||!it(u))){let I,L;const N=Fn(u),j=Fn(p);if(!it(h)&&!isNaN(h)){const B=o.valueAsNumber||h&&+h;it(N.value)||(I=B>N.value),it(j.value)||(L=B<j.value)}else{const B=o.valueAsDate||new Date(h),V=ge=>new Date(new Date().toDateString()+" "+ge),U=o.type=="time",J=o.type=="week";jt(N.value)&&h&&(I=U?V(h)>V(N.value):J?h>N.value:B>new Date(N.value)),jt(j.value)&&h&&(L=U?V(h)<V(j.value):J?h<j.value:B<new Date(j.value))}if((I||L)&&(R(!!I,N.message,j.message,Ut.max,Ut.min),!n))return S(x[m].message),x}if((l||c)&&!_&&(jt(h)||i&&Array.isArray(h))){const I=Fn(l),L=Fn(c),N=!it(I.value)&&h.length>+I.value,j=!it(L.value)&&h.length<+L.value;if((N||j)&&(R(N,I.message,L.message),!n))return S(x[m].message),x}if(v&&!_&&jt(h)){const{value:I,message:L}=Fn(v);if(Ci(I)&&!h.match(I)&&(x[m]={type:Ut.pattern,message:L,ref:o,...z(Ut.pattern,L)},!n))return S(L),x}if(g){if(Kt(g)){const I=await g(h,t),L=gl(I,w);if(L&&(x[m]={...L,...z(Ut.validate,L.message)},!n))return S(L.message),x}else if(He(g)){let I={};for(const L in g){if(!ut(I)&&!n)break;const N=gl(await g[L](h,t),w,L);N&&(I={...N,...z(L,N.message)},S(N.message),n&&(x[m]=I))}if(!ut(I)&&(x[m]={ref:w,...I},!n))return x}}return S(!0),x};function pb(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=$e(e)?r++:e[t[r++]];return e}function mb(e){for(const t in e)if(e.hasOwnProperty(t)&&!$e(e[t]))return!1;return!0}function Ge(e,t){const n=Array.isArray(t)?t:Vs(t)?[t]:mu(t),r=n.length===1?e:pb(e,n),i=n.length-1,o=n[i];return r&&delete r[o],i!==0&&(He(r)&&ut(r)||Array.isArray(r)&&mb(r))&&Ge(e,n.slice(0,-1)),e}var So=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},Ei=e=>it(e)||!du(e);function fn(e,t){if(Ei(e)||Ei(t))return e===t;if(Hn(e)&&Hn(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if(Hn(o)&&Hn(s)||He(o)&&He(s)||Array.isArray(o)&&Array.isArray(s)?!fn(o,s):o!==s)return!1}}return!0}var xu=e=>e.type==="select-multiple",hb=e=>Gs(e)||Dr(e),xo=e=>xi(e)&&e.isConnected,Cu=e=>{for(const t in e)if(Kt(e[t]))return!0;return!1};function ki(e,t={}){const n=Array.isArray(e);if(He(e)||n)for(const r in e)Array.isArray(e[r])||He(e[r])&&!Cu(e[r])?(t[r]=Array.isArray(e[r])?[]:{},ki(e[r],t[r])):it(e[r])||(t[r]=!0);return t}function Eu(e,t,n){const r=Array.isArray(e);if(He(e)||r)for(const i in e)Array.isArray(e[i])||He(e[i])&&!Cu(e[i])?$e(t)||Ei(n[i])?n[i]=Array.isArray(e[i])?ki(e[i],[]):{...ki(e[i])}:Eu(e[i],it(t)?{}:t[i],n[i]):n[i]=!fn(e[i],t[i]);return n}var Jr=(e,t)=>Eu(e,t,ki(t)),ku=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>$e(e)?e:t?e===""?NaN:e&&+e:n&&jt(e)?new Date(e):r?r(e):e;function Co(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Ws(t)?t.files:Gs(t)?Su(e.refs).value:xu(t)?[...t.selectedOptions].map(({value:n})=>n):Dr(t)?wu(e.refs).value:ku($e(t.value)?e.ref.value:t.value,e)}var gb=(e,t,n,r)=>{const i={};for(const o of e){const s=K(t,o);s&&Ie(i,o,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},fr=e=>$e(e)?e:Ci(e)?e.source:He(e)?Ci(e.value)?e.value.source:e.value:e;const vl="AsyncFunction";var bb=e=>(!e||!e.validate)&&!!(Kt(e.validate)&&e.validate.constructor.name===vl||He(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===vl)),vb=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function yl(e,t,n){const r=K(e,n);if(r||Vs(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),s=K(t,o),a=K(e,o);if(s&&!Array.isArray(s)&&n!==o)return{name:n};if(a&&a.type)return{name:o,error:a};i.pop()}return{name:n}}var yb=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,wb=(e,t)=>!Gi(K(e,t)).length&&Ge(e,t);const Sb={mode:Pt.onSubmit,reValidateMode:Pt.onChange,shouldFocusError:!0};function xb(e={}){let t={...Sb,...e},n={submitCount:0,isDirty:!1,isLoading:Kt(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=He(t.defaultValues)||He(t.values)?lt(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:lt(i),s={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},u={values:So(),array:So(),state:So()},v=dl(t.mode),g=dl(t.reValidateMode),m=t.criteriaMode===Pt.all,f=E=>O=>{clearTimeout(c),c=setTimeout(E,O)},y=async E=>{if(p.isValid||E){const O=t.resolver?ut((await k()).errors):await z(r,!0);O!==n.isValid&&u.state.next({isValid:O})}},d=(E,O)=>{(p.isValidating||p.validatingFields)&&((E||Array.from(a.mount)).forEach(F=>{F&&(O?Ie(n.validatingFields,F,O):Ge(n.validatingFields,F))}),u.state.next({validatingFields:n.validatingFields,isValidating:!ut(n.validatingFields)}))},h=(E,O=[],F,X,q=!0,W=!0)=>{if(X&&F){if(s.action=!0,W&&Array.isArray(K(r,E))){const Q=F(K(r,E),X.argA,X.argB);q&&Ie(r,E,Q)}if(W&&Array.isArray(K(n.errors,E))){const Q=F(K(n.errors,E),X.argA,X.argB);q&&Ie(n.errors,E,Q),wb(n.errors,E)}if(p.touchedFields&&W&&Array.isArray(K(n.touchedFields,E))){const Q=F(K(n.touchedFields,E),X.argA,X.argB);q&&Ie(n.touchedFields,E,Q)}p.dirtyFields&&(n.dirtyFields=Jr(i,o)),u.state.next({name:E,isDirty:I(E,O),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Ie(o,E,O)},w=(E,O)=>{Ie(n.errors,E,O),u.state.next({errors:n.errors})},S=E=>{n.errors=E,u.state.next({errors:n.errors,isValid:!1})},x=(E,O,F,X)=>{const q=K(r,E);if(q){const W=K(o,E,$e(F)?K(i,E):F);$e(W)||X&&X.defaultChecked||O?Ie(o,E,O?W:Co(q._f)):j(E,W),s.mount&&y()}},T=(E,O,F,X,q)=>{let W=!1,Q=!1;const me={name:E},Pe=!!(K(r,E)&&K(r,E)._f&&K(r,E)._f.disabled);if(!F||X){p.isDirty&&(Q=n.isDirty,n.isDirty=me.isDirty=I(),W=Q!==me.isDirty);const Me=Pe||fn(K(i,E),O);Q=!!(!Pe&&K(n.dirtyFields,E)),Me||Pe?Ge(n.dirtyFields,E):Ie(n.dirtyFields,E,!0),me.dirtyFields=n.dirtyFields,W=W||p.dirtyFields&&Q!==!Me}if(F){const Me=K(n.touchedFields,E);Me||(Ie(n.touchedFields,E,F),me.touchedFields=n.touchedFields,W=W||p.touchedFields&&Me!==F)}return W&&q&&u.state.next(me),W?me:{}},A=(E,O,F,X)=>{const q=K(n.errors,E),W=p.isValid&&xt(O)&&n.isValid!==O;if(e.delayError&&F?(l=f(()=>w(E,F)),l(e.delayError)):(clearTimeout(c),l=null,F?Ie(n.errors,E,F):Ge(n.errors,E)),(F?!fn(q,F):q)||!ut(X)||W){const Q={...X,...W&&xt(O)?{isValid:O}:{},errors:n.errors,name:E};n={...n,...Q},u.state.next(Q)}},k=async E=>{d(E,!0);const O=await t.resolver(o,t.context,gb(E||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return d(E),O},_=async E=>{const{errors:O}=await k(E);if(E)for(const F of E){const X=K(O,F);X?Ie(n.errors,F,X):Ge(n.errors,F)}else n.errors=O;return O},z=async(E,O,F={valid:!0})=>{for(const X in E){const q=E[X];if(q){const{_f:W,...Q}=q;if(W){const me=a.array.has(W.name),Pe=q._f&&bb(q._f);Pe&&p.validatingFields&&d([X],!0);const Me=await bl(q,o,m,t.shouldUseNativeValidation&&!O,me);if(Pe&&p.validatingFields&&d([X]),Me[W.name]&&(F.valid=!1,O))break;!O&&(K(Me,W.name)?me?fb(n.errors,Me,W.name):Ie(n.errors,W.name,Me[W.name]):Ge(n.errors,W.name))}!ut(Q)&&await z(Q,O,F)}}return F.valid},R=()=>{for(const E of a.unMount){const O=K(r,E);O&&(O._f.refs?O._f.refs.every(F=>!xo(F)):!xo(O._f.ref))&&Se(E)}a.unMount=new Set},I=(E,O)=>(E&&O&&Ie(o,E,O),!fn(re(),i)),L=(E,O,F)=>yu(E,a,{...s.mount?o:$e(O)?i:jt(E)?{[E]:O}:O},F,O),N=E=>Gi(K(s.mount?o:i,E,e.shouldUnregister?K(i,E,[]):[])),j=(E,O,F={})=>{const X=K(r,E);let q=O;if(X){const W=X._f;W&&(!W.disabled&&Ie(o,E,ku(O,W)),q=xi(W.ref)&&it(O)?"":O,xu(W.ref)?[...W.ref.options].forEach(Q=>Q.selected=q.includes(Q.value)):W.refs?Dr(W.ref)?W.refs.length>1?W.refs.forEach(Q=>(!Q.defaultChecked||!Q.disabled)&&(Q.checked=Array.isArray(q)?!!q.find(me=>me===Q.value):q===Q.value)):W.refs[0]&&(W.refs[0].checked=!!q):W.refs.forEach(Q=>Q.checked=Q.value===q):Ws(W.ref)?W.ref.value="":(W.ref.value=q,W.ref.type||u.values.next({name:E,values:{...o}})))}(F.shouldDirty||F.shouldTouch)&&T(E,q,F.shouldTouch,F.shouldDirty,!0),F.shouldValidate&&ge(E)},B=(E,O,F)=>{for(const X in O){const q=O[X],W=`${E}.${X}`,Q=K(r,W);(a.array.has(E)||!Ei(q)||Q&&!Q._f)&&!Hn(q)?B(W,q,F):j(W,q,F)}},V=(E,O,F={})=>{const X=K(r,E),q=a.array.has(E),W=lt(O);Ie(o,E,W),q?(u.array.next({name:E,values:{...o}}),(p.isDirty||p.dirtyFields)&&F.shouldDirty&&u.state.next({name:E,dirtyFields:Jr(i,o),isDirty:I(E,W)})):X&&!X._f&&!it(W)?B(E,W,F):j(E,W,F),fl(E,a)&&u.state.next({...n}),u.values.next({name:s.mount?E:void 0,values:{...o}})},U=async E=>{s.mount=!0;const O=E.target;let F=O.name,X=!0;const q=K(r,F),W=()=>O.type?Co(q._f):fu(E),Q=me=>{X=Number.isNaN(me)||fn(me,K(o,F,me))};if(q){let me,Pe;const Me=W(),wt=E.type===Si.BLUR||E.type===Si.FOCUS_OUT,ln=!vb(q._f)&&!t.resolver&&!K(n.errors,F)&&!q._f.deps||yb(wt,K(n.touchedFields,F),n.isSubmitted,g,v),Ke=fl(F,a,wt);Ie(o,F,Me),wt?(q._f.onBlur&&q._f.onBlur(E),l&&l(0)):q._f.onChange&&q._f.onChange(E);const Mt=T(F,Me,wt,!1),Dt=!ut(Mt)||Ke;if(!wt&&u.values.next({name:F,type:E.type,values:{...o}}),ln)return p.isValid&&(e.mode==="onBlur"?wt&&y():y()),Dt&&u.state.next({name:F,...Ke?{}:Mt});if(!wt&&Ke&&u.state.next({...n}),t.resolver){const{errors:St}=await k([F]);if(Q(Me),X){const et=yl(n.errors,r,F),kt=yl(St,r,et.name||F);me=kt.error,F=kt.name,Pe=ut(St)}}else d([F],!0),me=(await bl(q,o,m,t.shouldUseNativeValidation))[F],d([F]),Q(Me),X&&(me?Pe=!1:p.isValid&&(Pe=await z(r,!0)));X&&(q._f.deps&&ge(q._f.deps),A(F,Pe,me,Mt))}},J=(E,O)=>{if(K(n.errors,O)&&E.focus)return E.focus(),1},ge=async(E,O={})=>{let F,X;const q=Sr(E);if(t.resolver){const W=await _($e(E)?E:q);F=ut(W),X=E?!q.some(Q=>K(W,Q)):F}else E?(X=(await Promise.all(q.map(async W=>{const Q=K(r,W);return await z(Q&&Q._f?{[W]:Q}:Q)}))).every(Boolean),!(!X&&!n.isValid)&&y()):X=F=await z(r);return u.state.next({...!jt(E)||p.isValid&&F!==n.isValid?{}:{name:E},...t.resolver||!E?{isValid:F}:{},errors:n.errors}),O.shouldFocus&&!X&&xr(r,J,E?q:a.mount),X},re=E=>{const O={...s.mount?o:i};return $e(E)?O:jt(E)?K(O,E):E.map(F=>K(O,F))},Re=(E,O)=>({invalid:!!K((O||n).errors,E),isDirty:!!K((O||n).dirtyFields,E),error:K((O||n).errors,E),isValidating:!!K(n.validatingFields,E),isTouched:!!K((O||n).touchedFields,E)}),ve=E=>{E&&Sr(E).forEach(O=>Ge(n.errors,O)),u.state.next({errors:E?n.errors:{}})},Ae=(E,O,F)=>{const X=(K(r,E,{_f:{}})._f||{}).ref,q=K(n.errors,E)||{},{ref:W,message:Q,type:me,...Pe}=q;Ie(n.errors,E,{...Pe,...O,ref:X}),u.state.next({name:E,errors:n.errors,isValid:!1}),F&&F.shouldFocus&&X&&X.focus&&X.focus()},oe=(E,O)=>Kt(E)?u.values.subscribe({next:F=>E(L(void 0,O),F)}):L(E,O,!0),Se=(E,O={})=>{for(const F of E?Sr(E):a.mount)a.mount.delete(F),a.array.delete(F),O.keepValue||(Ge(r,F),Ge(o,F)),!O.keepError&&Ge(n.errors,F),!O.keepDirty&&Ge(n.dirtyFields,F),!O.keepTouched&&Ge(n.touchedFields,F),!O.keepIsValidating&&Ge(n.validatingFields,F),!t.shouldUnregister&&!O.keepDefaultValue&&Ge(i,F);u.values.next({values:{...o}}),u.state.next({...n,...O.keepDirty?{isDirty:I()}:{}}),!O.keepIsValid&&y()},Z=({disabled:E,name:O,field:F,fields:X,value:q})=>{if(xt(E)&&s.mount||E){const W=E?void 0:$e(q)?Co(F?F._f:K(X,O)._f):q;Ie(o,O,W),T(O,W,!1,!1,!0)}},se=(E,O={})=>{let F=K(r,E);const X=xt(O.disabled)||xt(e.disabled);return Ie(r,E,{...F||{},_f:{...F&&F._f?F._f:{ref:{name:E}},name:E,mount:!0,...O}}),a.mount.add(E),F?Z({field:F,disabled:xt(O.disabled)?O.disabled:e.disabled,name:E,value:O.value}):x(E,!0,O.value),{...X?{disabled:O.disabled||e.disabled}:{},...t.progressive?{required:!!O.required,min:fr(O.min),max:fr(O.max),minLength:fr(O.minLength),maxLength:fr(O.maxLength),pattern:fr(O.pattern)}:{},name:E,onChange:U,onBlur:U,ref:q=>{if(q){se(E,O),F=K(r,E);const W=$e(q.value)&&q.querySelectorAll&&q.querySelectorAll("input,select,textarea")[0]||q,Q=hb(W),me=F._f.refs||[];if(Q?me.find(Pe=>Pe===W):W===F._f.ref)return;Ie(r,E,{_f:{...F._f,...Q?{refs:[...me.filter(xo),W,...Array.isArray(K(i,E))?[{}]:[]],ref:{type:W.type,name:E}}:{ref:W}}}),x(E,!1,void 0,W)}else F=K(r,E,{}),F._f&&(F._f.mount=!1),(t.shouldUnregister||O.shouldUnregister)&&!(pu(a.array,E)&&s.action)&&a.unMount.add(E)}}},we=()=>t.shouldFocusError&&xr(r,J,a.mount),de=E=>{xt(E)&&(u.state.next({disabled:E}),xr(r,(O,F)=>{const X=K(r,F);X&&(O.disabled=X._f.disabled||E,Array.isArray(X._f.refs)&&X._f.refs.forEach(q=>{q.disabled=X._f.disabled||E}))},0,!1))},te=(E,O)=>async F=>{let X;F&&(F.preventDefault&&F.preventDefault(),F.persist&&F.persist());let q=lt(o);if(u.state.next({isSubmitting:!0}),t.resolver){const{errors:W,values:Q}=await k();n.errors=W,q=Q}else await z(r);if(Ge(n.errors,"root"),ut(n.errors)){u.state.next({errors:{}});try{await E(q,F)}catch(W){X=W}}else O&&await O({...n.errors},F),we(),setTimeout(we);if(u.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ut(n.errors)&&!X,submitCount:n.submitCount+1,errors:n.errors}),X)throw X},H=(E,O={})=>{K(r,E)&&($e(O.defaultValue)?V(E,lt(K(i,E))):(V(E,O.defaultValue),Ie(i,E,lt(O.defaultValue))),O.keepTouched||Ge(n.touchedFields,E),O.keepDirty||(Ge(n.dirtyFields,E),n.isDirty=O.defaultValue?I(E,lt(K(i,E))):I()),O.keepError||(Ge(n.errors,E),p.isValid&&y()),u.state.next({...n}))},le=(E,O={})=>{const F=E?lt(E):i,X=lt(F),q=ut(E),W=q?i:X;if(O.keepDefaultValues||(i=F),!O.keepValues){if(O.keepDirtyValues)for(const Q of a.mount)K(n.dirtyFields,Q)?Ie(W,Q,K(o,Q)):V(Q,K(W,Q));else{if(js&&$e(E))for(const Q of a.mount){const me=K(r,Q);if(me&&me._f){const Pe=Array.isArray(me._f.refs)?me._f.refs[0]:me._f.ref;if(xi(Pe)){const Me=Pe.closest("form");if(Me){Me.reset();break}}}}r={}}o=e.shouldUnregister?O.keepDefaultValues?lt(i):{}:lt(W),u.array.next({values:{...W}}),u.values.next({values:{...W}})}a={mount:O.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!p.isValid||!!O.keepIsValid||!!O.keepDirtyValues,s.watch=!!e.shouldUnregister,u.state.next({submitCount:O.keepSubmitCount?n.submitCount:0,isDirty:q?!1:O.keepDirty?n.isDirty:!!(O.keepDefaultValues&&!fn(E,i)),isSubmitted:O.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:q?{}:O.keepDirtyValues?O.keepDefaultValues&&o?Jr(i,o):n.dirtyFields:O.keepDefaultValues&&E?Jr(i,E):O.keepDirty?n.dirtyFields:{},touchedFields:O.keepTouched?n.touchedFields:{},errors:O.keepErrors?n.errors:{},isSubmitSuccessful:O.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},fe=(E,O)=>le(Kt(E)?E(o):E,O);return{control:{register:se,unregister:Se,getFieldState:Re,handleSubmit:te,setError:Ae,_executeSchema:k,_getWatch:L,_getDirty:I,_updateValid:y,_removeUnmounted:R,_updateFieldArray:h,_updateDisabledField:Z,_getFieldArray:N,_reset:le,_resetDefaultValues:()=>Kt(t.defaultValues)&&t.defaultValues().then(E=>{fe(E,t.resetOptions),u.state.next({isLoading:!1})}),_updateFormState:E=>{n={...n,...E}},_disableForm:de,_subjects:u,_proxyFormState:p,_setErrors:S,get _fields(){return r},get _formValues(){return o},get _state(){return s},set _state(E){s=E},get _defaultValues(){return i},get _names(){return a},set _names(E){a=E},get _formState(){return n},set _formState(E){n=E},get _options(){return t},set _options(E){t={...t,...E}}},trigger:ge,register:se,handleSubmit:te,watch:oe,setValue:V,getValues:re,reset:fe,resetField:H,clearErrors:ve,unregister:Se,setError:Ae,setFocus:(E,O={})=>{const F=K(r,E),X=F&&F._f;if(X){const q=X.refs?X.refs[0]:X.ref;q.focus&&(q.focus(),O.shouldSelect&&q.select())}},getFieldState:Re}}function Cb(e={}){const t=pe.useRef(),n=pe.useRef(),[r,i]=pe.useState({isDirty:!1,isValidating:!1,isLoading:Kt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Kt(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...xb(e),formState:r});const o=t.current.control;return o._options=e,Hs({subject:o._subjects.state,next:s=>{bu(s,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),pe.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),pe.useEffect(()=>{if(o._proxyFormState.isDirty){const s=o._getDirty();s!==r.isDirty&&o._subjects.state.next({isDirty:s})}},[o,r.isDirty]),pe.useEffect(()=>{e.values&&!fn(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(s=>({...s}))):o._resetDefaultValues()},[e.values,o]),pe.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),pe.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),pe.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=gu(r,o),t.current}var Ti=b.forwardRef((e,t)=>{const{children:n,...r}=e,i=b.Children.toArray(n),o=i.find(kb);if(o){const s=o.props.children,a=i.map(l=>l===o?b.Children.count(s)>1?b.Children.only(null):b.isValidElement(s)?s.props.children:null:l);return M.jsx(Xo,{...r,ref:t,children:b.isValidElement(s)?b.cloneElement(s,void 0,a):null})}return M.jsx(Xo,{...r,ref:t,children:n})});Ti.displayName="Slot";var Xo=b.forwardRef((e,t)=>{const{children:n,...r}=e;if(b.isValidElement(n)){const i=Ab(n);return b.cloneElement(n,{...Tb(r,n.props),ref:t?ys(t,i):i})}return b.Children.count(n)>1?b.Children.only(null):null});Xo.displayName="SlotClone";var Eb=({children:e})=>M.jsx(M.Fragment,{children:e});function kb(e){return b.isValidElement(e)&&e.type===Eb}function Tb(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{o(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function Ab(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Pb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Lr=Pb.reduce((e,t)=>{const n=b.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?Ti:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),M.jsx(a,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ib(e){const t=e+"CollectionProvider",[n,r]=Wt(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:m,children:f}=g,y=pe.useRef(null),d=pe.useRef(new Map).current;return M.jsx(i,{scope:m,itemMap:d,collectionRef:y,children:f})};s.displayName=t;const a=e+"CollectionSlot",l=pe.forwardRef((g,m)=>{const{scope:f,children:y}=g,d=o(a,f),h=Te(m,d.collectionRef);return M.jsx(Ti,{ref:h,children:y})});l.displayName=a;const c=e+"CollectionItemSlot",p="data-radix-collection-item",u=pe.forwardRef((g,m)=>{const{scope:f,children:y,...d}=g,h=pe.useRef(null),w=Te(m,h),S=o(c,f);return pe.useEffect(()=>(S.itemMap.set(h,{ref:h,...d}),()=>void S.itemMap.delete(h))),M.jsx(Ti,{[p]:"",ref:w,children:y})});u.displayName=c;function v(g){const m=o(e+"CollectionConsumer",g);return pe.useCallback(()=>{const y=m.collectionRef.current;if(!y)return[];const d=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(m.itemMap.values()).sort((S,x)=>d.indexOf(S.ref.current)-d.indexOf(x.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:s,Slot:l,ItemSlot:u},v,r]}var Ob=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},Rb=Cr.useId||(()=>{}),_b=0;function Mb(e){const[t,n]=b.useState(Rb());return Ob(()=>{n(r=>r??String(_b++))},[e]),t?`radix-${t}`:""}function Db(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var Lb=b.createContext(void 0);function Tu(e){const t=b.useContext(Lb);return e||t||"ltr"}var Eo="rovingFocusGroup.onEntryFocus",Nb={bubbles:!1,cancelable:!0},Yi="RovingFocusGroup",[Ko,Au,Fb]=Ib(Yi),[$b,Pu]=Wt(Yi,[Fb]),[zb,Bb]=$b(Yi),Iu=b.forwardRef((e,t)=>M.jsx(Ko.Provider,{scope:e.__scopeRovingFocusGroup,children:M.jsx(Ko.Slot,{scope:e.__scopeRovingFocusGroup,children:M.jsx(jb,{...e,ref:t})})}));Iu.displayName=Yi;var jb=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:p=!1,...u}=e,v=b.useRef(null),g=Te(t,v),m=Tu(o),[f=null,y]=En({prop:s,defaultProp:a,onChange:l}),[d,h]=b.useState(!1),w=Db(c),S=Au(n),x=b.useRef(!1),[T,A]=b.useState(0);return b.useEffect(()=>{const k=v.current;if(k)return k.addEventListener(Eo,w),()=>k.removeEventListener(Eo,w)},[w]),M.jsx(zb,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:f,onItemFocus:b.useCallback(k=>y(k),[y]),onItemShiftTab:b.useCallback(()=>h(!0),[]),onFocusableItemAdd:b.useCallback(()=>A(k=>k+1),[]),onFocusableItemRemove:b.useCallback(()=>A(k=>k-1),[]),children:M.jsx(Lr.div,{tabIndex:d||T===0?-1:0,"data-orientation":r,...u,ref:g,style:{outline:"none",...e.style},onMouseDown:ye(e.onMouseDown,()=>{x.current=!0}),onFocus:ye(e.onFocus,k=>{const _=!x.current;if(k.target===k.currentTarget&&_&&!d){const z=new CustomEvent(Eo,Nb);if(k.currentTarget.dispatchEvent(z),!z.defaultPrevented){const R=S().filter(B=>B.focusable),I=R.find(B=>B.active),L=R.find(B=>B.id===f),j=[I,L,...R].filter(Boolean).map(B=>B.ref.current);_u(j,p)}}x.current=!1}),onBlur:ye(e.onBlur,()=>h(!1))})})}),Ou="RovingFocusGroupItem",Ru=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,...s}=e,a=Mb(),l=o||a,c=Bb(Ou,n),p=c.currentTabStopId===l,u=Au(n),{onFocusableItemAdd:v,onFocusableItemRemove:g}=c;return b.useEffect(()=>{if(r)return v(),()=>g()},[r,v,g]),M.jsx(Ko.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:M.jsx(Lr.span,{tabIndex:p?0:-1,"data-orientation":c.orientation,...s,ref:t,onMouseDown:ye(e.onMouseDown,m=>{r?c.onItemFocus(l):m.preventDefault()}),onFocus:ye(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:ye(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const f=Wb(m,c.orientation,c.dir);if(f!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let d=u().filter(h=>h.focusable).map(h=>h.ref.current);if(f==="last")d.reverse();else if(f==="prev"||f==="next"){f==="prev"&&d.reverse();const h=d.indexOf(m.currentTarget);d=c.loop?Gb(d,h+1):d.slice(h+1)}setTimeout(()=>_u(d))}})})})});Ru.displayName=Ou;var Vb={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Hb(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Wb(e,t,n){const r=Hb(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Vb[r]}function _u(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Gb(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ub=Iu,Yb=Ru;function Us(e){const[t,n]=b.useState(void 0);return Qe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let s,a;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function Ys(e){const t=b.useRef({value:e,previous:e});return b.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var qs="Radio",[qb,Mu]=Wt(qs),[Xb,Kb]=qb(qs),Du=b.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:i=!1,required:o,disabled:s,value:a="on",onCheck:l,...c}=e,[p,u]=b.useState(null),v=Te(t,f=>u(f)),g=b.useRef(!1),m=p?!!p.closest("form"):!0;return M.jsxs(Xb,{scope:n,checked:i,disabled:s,children:[M.jsx(Lr.button,{type:"button",role:"radio","aria-checked":i,"data-state":Fu(i),"data-disabled":s?"":void 0,disabled:s,value:a,...c,ref:v,onClick:ye(e.onClick,f=>{i||l==null||l(),m&&(g.current=f.isPropagationStopped(),g.current||f.stopPropagation())})}),m&&M.jsx(Zb,{control:p,bubbles:!g.current,name:r,value:a,checked:i,required:o,disabled:s,style:{transform:"translateX(-100%)"}})]})});Du.displayName=qs;var Lu="RadioIndicator",Nu=b.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...i}=e,o=Kb(Lu,n);return M.jsx(On,{present:r||o.checked,children:M.jsx(Lr.span,{"data-state":Fu(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t})})});Nu.displayName=Lu;var Zb=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,o=b.useRef(null),s=Ys(n),a=Us(t);return b.useEffect(()=>{const l=o.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(s!==n&&u){const v=new Event("click",{bubbles:r});u.call(l,n),l.dispatchEvent(v)}},[s,n,r]),M.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:o,style:{...e.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Fu(e){return e?"checked":"unchecked"}var Jb=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Xs="RadioGroup",[Qb,jC]=Wt(Xs,[Pu,Mu]),$u=Pu(),zu=Mu(),[ev,tv]=Qb(Xs),Bu=b.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:i,value:o,required:s=!1,disabled:a=!1,orientation:l,dir:c,loop:p=!0,onValueChange:u,...v}=e,g=$u(n),m=Tu(c),[f,y]=En({prop:o,defaultProp:i,onChange:u});return M.jsx(ev,{scope:n,name:r,required:s,disabled:a,value:f,onValueChange:y,children:M.jsx(Ub,{asChild:!0,...g,orientation:l,dir:m,loop:p,children:M.jsx(Lr.div,{role:"radiogroup","aria-required":s,"aria-orientation":l,"data-disabled":a?"":void 0,dir:m,...v,ref:t})})})});Bu.displayName=Xs;var ju="RadioGroupItem",Vu=b.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...i}=e,o=tv(ju,n),s=o.disabled||r,a=$u(n),l=zu(n),c=b.useRef(null),p=Te(t,c),u=o.value===i.value,v=b.useRef(!1);return b.useEffect(()=>{const g=f=>{Jb.includes(f.key)&&(v.current=!0)},m=()=>v.current=!1;return document.addEventListener("keydown",g),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",g),document.removeEventListener("keyup",m)}},[]),M.jsx(Yb,{asChild:!0,...a,focusable:!s,active:u,children:M.jsx(Du,{disabled:s,required:o.required,checked:u,...l,...i,name:o.name,ref:p,onCheck:()=>o.onValueChange(i.value),onKeyDown:ye(g=>{g.key==="Enter"&&g.preventDefault()}),onFocus:ye(i.onFocus,()=>{var g;v.current&&((g=c.current)==null||g.click())})})})});Vu.displayName=ju;var nv="RadioGroupIndicator",Hu=b.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,i=zu(n);return M.jsx(Nu,{...i,...r,ref:t})});Hu.displayName=nv;var rv=Bu,iv=Vu,ov=Hu;function wl(e,[t,n]){return Math.min(n,Math.max(t,e))}function sv(e){const t=e+"CollectionProvider",[n,r]=Wt(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:m,children:f}=g,y=pe.useRef(null),d=pe.useRef(new Map).current;return M.jsx(i,{scope:m,itemMap:d,collectionRef:y,children:f})};s.displayName=t;const a=e+"CollectionSlot",l=pe.forwardRef((g,m)=>{const{scope:f,children:y}=g,d=o(a,f),h=Te(m,d.collectionRef);return M.jsx(Kn,{ref:h,children:y})});l.displayName=a;const c=e+"CollectionItemSlot",p="data-radix-collection-item",u=pe.forwardRef((g,m)=>{const{scope:f,children:y,...d}=g,h=pe.useRef(null),w=Te(m,h),S=o(c,f);return pe.useEffect(()=>(S.itemMap.set(h,{ref:h,...d}),()=>void S.itemMap.delete(h))),M.jsx(Kn,{[p]:"",ref:w,children:y})});u.displayName=c;function v(g){const m=o(e+"CollectionConsumer",g);return pe.useCallback(()=>{const y=m.collectionRef.current;if(!y)return[];const d=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(m.itemMap.values()).sort((S,x)=>d.indexOf(S.ref.current)-d.indexOf(x.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:s,Slot:l,ItemSlot:u},v,r]}var av=b.createContext(void 0);function lv(e){const t=b.useContext(av);return e||t||"ltr"}const cv=["top","right","bottom","left"],Vt=Math.min,ht=Math.max,Ai=Math.round,Qr=Math.floor,hn=e=>({x:e,y:e}),uv={left:"right",right:"left",bottom:"top",top:"bottom"},dv={start:"end",end:"start"};function Zo(e,t,n){return ht(e,Vt(t,n))}function Qt(e,t){return typeof e=="function"?e(t):e}function en(e){return e.split("-")[0]}function Qn(e){return e.split("-")[1]}function Ks(e){return e==="x"?"y":"x"}function Zs(e){return e==="y"?"height":"width"}function gn(e){return["top","bottom"].includes(en(e))?"y":"x"}function Js(e){return Ks(gn(e))}function fv(e,t,n){n===void 0&&(n=!1);const r=Qn(e),i=Js(e),o=Zs(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Pi(s)),[s,Pi(s)]}function pv(e){const t=Pi(e);return[Jo(e),t,Jo(t)]}function Jo(e){return e.replace(/start|end/g,t=>dv[t])}function mv(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function hv(e,t,n,r){const i=Qn(e);let o=mv(en(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Jo)))),o}function Pi(e){return e.replace(/left|right|bottom|top/g,t=>uv[t])}function gv(e){return{top:0,right:0,bottom:0,left:0,...e}}function Wu(e){return typeof e!="number"?gv(e):{top:e,right:e,bottom:e,left:e}}function Ii(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Sl(e,t,n){let{reference:r,floating:i}=e;const o=gn(t),s=Js(t),a=Zs(s),l=en(t),c=o==="y",p=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,v=r[a]/2-i[a]/2;let g;switch(l){case"top":g={x:p,y:r.y-i.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:u};break;case"left":g={x:r.x-i.width,y:u};break;default:g={x:r.x,y:r.y}}switch(Qn(t)){case"start":g[s]-=v*(n&&c?-1:1);break;case"end":g[s]+=v*(n&&c?-1:1);break}return g}const bv=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:u}=Sl(c,r,l),v=r,g={},m=0;for(let f=0;f<a.length;f++){const{name:y,fn:d}=a[f],{x:h,y:w,data:S,reset:x}=await d({x:p,y:u,initialPlacement:r,placement:v,strategy:i,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});p=h??p,u=w??u,g={...g,[y]:{...g[y],...S}},x&&m<=50&&(m++,typeof x=="object"&&(x.placement&&(v=x.placement),x.rects&&(c=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:p,y:u}=Sl(c,v,l)),f=-1)}return{x:p,y:u,placement:v,strategy:i,middlewareData:g}};async function Or(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:v=!1,padding:g=0}=Qt(t,e),m=Wu(g),y=a[v?u==="floating"?"reference":"floating":u],d=Ii(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(y)))==null||n?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:p,strategy:l})),h=u==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),S=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},x=Ii(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:h,offsetParent:w,strategy:l}):h);return{top:(d.top-x.top+m.top)/S.y,bottom:(x.bottom-d.bottom+m.bottom)/S.y,left:(d.left-x.left+m.left)/S.x,right:(x.right-d.right+m.right)/S.x}}const vv=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:p=0}=Qt(e,t)||{};if(c==null)return{};const u=Wu(p),v={x:n,y:r},g=Js(i),m=Zs(g),f=await s.getDimensions(c),y=g==="y",d=y?"top":"left",h=y?"bottom":"right",w=y?"clientHeight":"clientWidth",S=o.reference[m]+o.reference[g]-v[g]-o.floating[m],x=v[g]-o.reference[g],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let A=T?T[w]:0;(!A||!await(s.isElement==null?void 0:s.isElement(T)))&&(A=a.floating[w]||o.floating[m]);const k=S/2-x/2,_=A/2-f[m]/2-1,z=Vt(u[d],_),R=Vt(u[h],_),I=z,L=A-f[m]-R,N=A/2-f[m]/2+k,j=Zo(I,N,L),B=!l.arrow&&Qn(i)!=null&&N!==j&&o.reference[m]/2-(N<I?z:R)-f[m]/2<0,V=B?N<I?N-I:N-L:0;return{[g]:v[g]+V,data:{[g]:j,centerOffset:N-j-V,...B&&{alignmentOffset:V}},reset:B}}}),yv=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:v,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:f=!0,...y}=Qt(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const d=en(i),h=gn(a),w=en(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),x=v||(w||!f?[Pi(a)]:pv(a)),T=m!=="none";!v&&T&&x.push(...hv(a,f,m,S));const A=[a,...x],k=await Or(t,y),_=[];let z=((r=o.flip)==null?void 0:r.overflows)||[];if(p&&_.push(k[d]),u){const N=fv(i,s,S);_.push(k[N[0]],k[N[1]])}if(z=[...z,{placement:i,overflows:_}],!_.every(N=>N<=0)){var R,I;const N=(((R=o.flip)==null?void 0:R.index)||0)+1,j=A[N];if(j)return{data:{index:N,overflows:z},reset:{placement:j}};let B=(I=z.filter(V=>V.overflows[0]<=0).sort((V,U)=>V.overflows[1]-U.overflows[1])[0])==null?void 0:I.placement;if(!B)switch(g){case"bestFit":{var L;const V=(L=z.filter(U=>{if(T){const J=gn(U.placement);return J===h||J==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(J=>J>0).reduce((J,ge)=>J+ge,0)]).sort((U,J)=>U[1]-J[1])[0])==null?void 0:L[0];V&&(B=V);break}case"initialPlacement":B=a;break}if(i!==B)return{reset:{placement:B}}}return{}}}};function xl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Cl(e){return cv.some(t=>e[t]>=0)}const wv=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Qt(e,t);switch(r){case"referenceHidden":{const o=await Or(t,{...i,elementContext:"reference"}),s=xl(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Cl(s)}}}case"escaped":{const o=await Or(t,{...i,altBoundary:!0}),s=xl(o,n.floating);return{data:{escapedOffsets:s,escaped:Cl(s)}}}default:return{}}}}};async function Sv(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=en(n),a=Qn(n),l=gn(n)==="y",c=["left","top"].includes(s)?-1:1,p=o&&l?-1:1,u=Qt(t,e);let{mainAxis:v,crossAxis:g,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof m=="number"&&(g=a==="end"?m*-1:m),l?{x:g*p,y:v*c}:{x:v*c,y:g*p}}const xv=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await Sv(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},Cv=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:d,y:h}=y;return{x:d,y:h}}},...l}=Qt(e,t),c={x:n,y:r},p=await Or(t,l),u=gn(en(i)),v=Ks(u);let g=c[v],m=c[u];if(o){const y=v==="y"?"top":"left",d=v==="y"?"bottom":"right",h=g+p[y],w=g-p[d];g=Zo(h,g,w)}if(s){const y=u==="y"?"top":"left",d=u==="y"?"bottom":"right",h=m+p[y],w=m-p[d];m=Zo(h,m,w)}const f=a.fn({...t,[v]:g,[u]:m});return{...f,data:{x:f.x-n,y:f.y-r}}}}},Ev=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Qt(e,t),p={x:n,y:r},u=gn(i),v=Ks(u);let g=p[v],m=p[u];const f=Qt(a,t),y=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(l){const w=v==="y"?"height":"width",S=o.reference[v]-o.floating[w]+y.mainAxis,x=o.reference[v]+o.reference[w]-y.mainAxis;g<S?g=S:g>x&&(g=x)}if(c){var d,h;const w=v==="y"?"width":"height",S=["top","left"].includes(en(i)),x=o.reference[u]-o.floating[w]+(S&&((d=s.offset)==null?void 0:d[u])||0)+(S?0:y.crossAxis),T=o.reference[u]+o.reference[w]+(S?0:((h=s.offset)==null?void 0:h[u])||0)-(S?y.crossAxis:0);m<x?m=x:m>T&&(m=T)}return{[v]:g,[u]:m}}}},kv=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:o}=t,{apply:s=()=>{},...a}=Qt(e,t),l=await Or(t,a),c=en(n),p=Qn(n),u=gn(n)==="y",{width:v,height:g}=r.floating;let m,f;c==="top"||c==="bottom"?(m=c,f=p===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(f=c,m=p==="end"?"top":"bottom");const y=g-l.top-l.bottom,d=v-l.left-l.right,h=Vt(g-l[m],y),w=Vt(v-l[f],d),S=!t.middlewareData.shift;let x=h,T=w;if(u?T=p||S?Vt(w,d):d:x=p||S?Vt(h,y):y,S&&!p){const k=ht(l.left,0),_=ht(l.right,0),z=ht(l.top,0),R=ht(l.bottom,0);u?T=v-2*(k!==0||_!==0?k+_:ht(l.left,l.right)):x=g-2*(z!==0||R!==0?z+R:ht(l.top,l.bottom))}await s({...t,availableWidth:T,availableHeight:x});const A=await i.getDimensions(o.floating);return v!==A.width||g!==A.height?{reset:{rects:!0}}:{}}}};function er(e){return Gu(e)?(e.nodeName||"").toLowerCase():"#document"}function bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rn(e){var t;return(t=(Gu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Gu(e){return e instanceof Node||e instanceof bt(e).Node}function Be(e){return e instanceof Element||e instanceof bt(e).Element}function vt(e){return e instanceof HTMLElement||e instanceof bt(e).HTMLElement}function Qo(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bt(e).ShadowRoot}function Nr(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Tv(e){return["table","td","th"].includes(er(e))}function qi(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Qs(e){const t=ea(),n=Be(e)?Et(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Av(e){let t=tn(e);for(;vt(t)&&!bn(t);){if(Qs(t))return t;if(qi(t))return null;t=tn(t)}return null}function ea(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function bn(e){return["html","body","#document"].includes(er(e))}function Et(e){return bt(e).getComputedStyle(e)}function Xi(e){return Be(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tn(e){if(er(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Qo(e)&&e.host||rn(e);return Qo(t)?t.host:t}function Uu(e){const t=tn(e);return bn(t)?e.ownerDocument?e.ownerDocument.body:e.body:vt(t)&&Nr(t)?t:Uu(t)}function mn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Uu(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=bt(i);if(o){const a=es(s);return t.concat(s,s.visualViewport||[],Nr(i)?i:[],a&&n?mn(a):[])}return t.concat(i,mn(i,[],n))}function es(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Yu(e){const t=Et(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=vt(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=Ai(n)!==o||Ai(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function ta(e){return Be(e)?e:e.contextElement}function qn(e){const t=ta(e);if(!vt(t))return hn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Yu(t);let s=(o?Ai(n.width):n.width)/r,a=(o?Ai(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Pv=hn(0);function qu(e){const t=bt(e);return!ea()||!t.visualViewport?Pv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Iv(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==bt(e)?!1:t}function An(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=ta(e);let s=hn(1);t&&(r?Be(r)&&(s=qn(r)):s=qn(e));const a=Iv(o,n,r)?qu(o):hn(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,p=i.width/s.x,u=i.height/s.y;if(o){const v=bt(o),g=r&&Be(r)?bt(r):r;let m=v,f=es(m);for(;f&&r&&g!==m;){const y=qn(f),d=f.getBoundingClientRect(),h=Et(f),w=d.left+(f.clientLeft+parseFloat(h.paddingLeft))*y.x,S=d.top+(f.clientTop+parseFloat(h.paddingTop))*y.y;l*=y.x,c*=y.y,p*=y.x,u*=y.y,l+=w,c+=S,m=bt(f),f=es(m)}}return Ii({width:p,height:u,x:l,y:c})}function Ov(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=rn(r),a=t?qi(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=hn(1);const p=hn(0),u=vt(r);if((u||!u&&!o)&&((er(r)!=="body"||Nr(s))&&(l=Xi(r)),vt(r))){const v=An(r);c=qn(r),p.x=v.x+r.clientLeft,p.y=v.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+p.x,y:n.y*c.y-l.scrollTop*c.y+p.y}}function Rv(e){return Array.from(e.getClientRects())}function Xu(e){return An(rn(e)).left+Xi(e).scrollLeft}function _v(e){const t=rn(e),n=Xi(e),r=e.ownerDocument.body,i=ht(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ht(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Xu(e);const a=-n.scrollTop;return Et(r).direction==="rtl"&&(s+=ht(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function Mv(e,t){const n=bt(e),r=rn(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const c=ea();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function Dv(e,t){const n=An(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=vt(e)?qn(e):hn(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:s,height:a,x:l,y:c}}function El(e,t,n){let r;if(t==="viewport")r=Mv(e,n);else if(t==="document")r=_v(rn(e));else if(Be(t))r=Dv(t,n);else{const i=qu(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Ii(r)}function Ku(e,t){const n=tn(e);return n===t||!Be(n)||bn(n)?!1:Et(n).position==="fixed"||Ku(n,t)}function Lv(e,t){const n=t.get(e);if(n)return n;let r=mn(e,[],!1).filter(a=>Be(a)&&er(a)!=="body"),i=null;const o=Et(e).position==="fixed";let s=o?tn(e):e;for(;Be(s)&&!bn(s);){const a=Et(s),l=Qs(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Nr(s)&&!l&&Ku(e,s))?r=r.filter(p=>p!==s):i=a,s=tn(s)}return t.set(e,r),r}function Nv(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?qi(t)?[]:Lv(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,p)=>{const u=El(t,p,i);return c.top=ht(u.top,c.top),c.right=Vt(u.right,c.right),c.bottom=Vt(u.bottom,c.bottom),c.left=ht(u.left,c.left),c},El(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Fv(e){const{width:t,height:n}=Yu(e);return{width:t,height:n}}function $v(e,t,n){const r=vt(t),i=rn(t),o=n==="fixed",s=An(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=hn(0);if(r||!r&&!o)if((er(t)!=="body"||Nr(i))&&(a=Xi(t)),r){const u=An(t,!0,o,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else i&&(l.x=Xu(i));const c=s.left+a.scrollLeft-l.x,p=s.top+a.scrollTop-l.y;return{x:c,y:p,width:s.width,height:s.height}}function ko(e){return Et(e).position==="static"}function kl(e,t){return!vt(e)||Et(e).position==="fixed"?null:t?t(e):e.offsetParent}function Zu(e,t){const n=bt(e);if(qi(e))return n;if(!vt(e)){let i=tn(e);for(;i&&!bn(i);){if(Be(i)&&!ko(i))return i;i=tn(i)}return n}let r=kl(e,t);for(;r&&Tv(r)&&ko(r);)r=kl(r,t);return r&&bn(r)&&ko(r)&&!Qs(r)?n:r||Av(e)||n}const zv=async function(e){const t=this.getOffsetParent||Zu,n=this.getDimensions,r=await n(e.floating);return{reference:$v(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Bv(e){return Et(e).direction==="rtl"}const jv={convertOffsetParentRelativeRectToViewportRelativeRect:Ov,getDocumentElement:rn,getClippingRect:Nv,getOffsetParent:Zu,getElementRects:zv,getClientRects:Rv,getDimensions:Fv,getScale:qn,isElement:Be,isRTL:Bv};function Vv(e,t){let n=null,r;const i=rn(e);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();const{left:c,top:p,width:u,height:v}=e.getBoundingClientRect();if(a||t(),!u||!v)return;const g=Qr(p),m=Qr(i.clientWidth-(c+u)),f=Qr(i.clientHeight-(p+v)),y=Qr(c),h={rootMargin:-g+"px "+-m+"px "+-f+"px "+-y+"px",threshold:ht(0,Vt(1,l))||1};let w=!0;function S(x){const T=x[0].intersectionRatio;if(T!==l){if(!w)return s();T?s(!1,T):r=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(S,{...h,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,h)}n.observe(e)}return s(!0),o}function na(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=ta(e),p=i||o?[...c?mn(c):[],...mn(t)]:[];p.forEach(d=>{i&&d.addEventListener("scroll",n,{passive:!0}),o&&d.addEventListener("resize",n)});const u=c&&a?Vv(c,n):null;let v=-1,g=null;s&&(g=new ResizeObserver(d=>{let[h]=d;h&&h.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),c&&!l&&g.observe(c),g.observe(t));let m,f=l?An(e):null;l&&y();function y(){const d=An(e);f&&(d.x!==f.x||d.y!==f.y||d.width!==f.width||d.height!==f.height)&&n(),f=d,m=requestAnimationFrame(y)}return n(),()=>{var d;p.forEach(h=>{i&&h.removeEventListener("scroll",n),o&&h.removeEventListener("resize",n)}),u==null||u(),(d=g)==null||d.disconnect(),g=null,l&&cancelAnimationFrame(m)}}const Hv=xv,Wv=Cv,Gv=yv,Uv=kv,Yv=wv,Tl=vv,qv=Ev,Xv=(e,t,n)=>{const r=new Map,i={platform:jv,...n},o={...i.platform,_c:r};return bv(e,t,{...i,platform:o})};var pi=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Oi(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Oi(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Oi(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Ju(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Al(e,t){const n=Ju(e);return Math.round(t*n)/n}function Pl(e){const t=b.useRef(e);return pi(()=>{t.current=e}),t}function Qu(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[p,u]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,g]=b.useState(r);Oi(v,r)||g(r);const[m,f]=b.useState(null),[y,d]=b.useState(null),h=b.useCallback(V=>{V!==T.current&&(T.current=V,f(V))},[]),w=b.useCallback(V=>{V!==A.current&&(A.current=V,d(V))},[]),S=o||m,x=s||y,T=b.useRef(null),A=b.useRef(null),k=b.useRef(p),_=l!=null,z=Pl(l),R=Pl(i),I=b.useCallback(()=>{if(!T.current||!A.current)return;const V={placement:t,strategy:n,middleware:v};R.current&&(V.platform=R.current),Xv(T.current,A.current,V).then(U=>{const J={...U,isPositioned:!0};L.current&&!Oi(k.current,J)&&(k.current=J,Zn.flushSync(()=>{u(J)}))})},[v,t,n,R]);pi(()=>{c===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,u(V=>({...V,isPositioned:!1})))},[c]);const L=b.useRef(!1);pi(()=>(L.current=!0,()=>{L.current=!1}),[]),pi(()=>{if(S&&(T.current=S),x&&(A.current=x),S&&x){if(z.current)return z.current(S,x,I);I()}},[S,x,I,z,_]);const N=b.useMemo(()=>({reference:T,floating:A,setReference:h,setFloating:w}),[h,w]),j=b.useMemo(()=>({reference:S,floating:x}),[S,x]),B=b.useMemo(()=>{const V={position:n,left:0,top:0};if(!j.floating)return V;const U=Al(j.floating,p.x),J=Al(j.floating,p.y);return a?{...V,transform:"translate("+U+"px, "+J+"px)",...Ju(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:U,top:J}},[n,a,j.floating,p.x,p.y]);return b.useMemo(()=>({...p,update:I,refs:N,elements:j,floatingStyles:B}),[p,I,N,j,B])}const Kv=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Tl({element:r.current,padding:i}).fn(n):{}:r?Tl({element:r,padding:i}).fn(n):{}}}},ed=(e,t)=>({...Hv(e),options:[e,t]}),td=(e,t)=>({...Wv(e),options:[e,t]}),Zv=(e,t)=>({...qv(e),options:[e,t]}),nd=(e,t)=>({...Gv(e),options:[e,t]}),Jv=(e,t)=>({...Uv(e),options:[e,t]}),Qv=(e,t)=>({...Yv(e),options:[e,t]}),ey=(e,t)=>({...Kv(e),options:[e,t]});var ty="Arrow",rd=b.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return M.jsx(ke.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:M.jsx("polygon",{points:"0,0 30,0 15,10"})})});rd.displayName=ty;var ny=rd,ra="Popper",[id,od]=Wt(ra),[ry,sd]=id(ra),ad=e=>{const{__scopePopper:t,children:n}=e,[r,i]=b.useState(null);return M.jsx(ry,{scope:t,anchor:r,onAnchorChange:i,children:n})};ad.displayName=ra;var ld="PopperAnchor",cd=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=sd(ld,n),s=b.useRef(null),a=Te(t,s);return b.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:M.jsx(ke.div,{...i,ref:a})});cd.displayName=ld;var ia="PopperContent",[iy,oy]=id(ia),ud=b.forwardRef((e,t)=>{var Z,se,we,de,te,H;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:p=0,sticky:u="partial",hideWhenDetached:v=!1,updatePositionStrategy:g="optimized",onPlaced:m,...f}=e,y=sd(ia,n),[d,h]=b.useState(null),w=Te(t,le=>h(le)),[S,x]=b.useState(null),T=Us(S),A=(T==null?void 0:T.width)??0,k=(T==null?void 0:T.height)??0,_=r+(o!=="center"?"-"+o:""),z=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},R=Array.isArray(c)?c:[c],I=R.length>0,L={padding:z,boundary:R.filter(ay),altBoundary:I},{refs:N,floatingStyles:j,placement:B,isPositioned:V,middlewareData:U}=Qu({strategy:"fixed",placement:_,whileElementsMounted:(...le)=>na(...le,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[ed({mainAxis:i+k,alignmentAxis:s}),l&&td({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Zv():void 0,...L}),l&&nd({...L}),Jv({...L,apply:({elements:le,rects:fe,availableWidth:_e,availableHeight:ze})=>{const{width:Le,height:E}=fe.reference,O=le.floating.style;O.setProperty("--radix-popper-available-width",`${_e}px`),O.setProperty("--radix-popper-available-height",`${ze}px`),O.setProperty("--radix-popper-anchor-width",`${Le}px`),O.setProperty("--radix-popper-anchor-height",`${E}px`)}}),S&&ey({element:S,padding:a}),ly({arrowWidth:A,arrowHeight:k}),v&&Qv({strategy:"referenceHidden",...L})]}),[J,ge]=pd(B),re=Jt(m);Qe(()=>{V&&(re==null||re())},[V,re]);const Re=(Z=U.arrow)==null?void 0:Z.x,ve=(se=U.arrow)==null?void 0:se.y,Ae=((we=U.arrow)==null?void 0:we.centerOffset)!==0,[oe,Se]=b.useState();return Qe(()=>{d&&Se(window.getComputedStyle(d).zIndex)},[d]),M.jsx("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:V?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[(de=U.transformOrigin)==null?void 0:de.x,(te=U.transformOrigin)==null?void 0:te.y].join(" "),...((H=U.hide)==null?void 0:H.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:M.jsx(iy,{scope:n,placedSide:J,onArrowChange:x,arrowX:Re,arrowY:ve,shouldHideArrow:Ae,children:M.jsx(ke.div,{"data-side":J,"data-align":ge,...f,ref:w,style:{...f.style,animation:V?void 0:"none"}})})})});ud.displayName=ia;var dd="PopperArrow",sy={top:"bottom",right:"left",bottom:"top",left:"right"},fd=b.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=oy(dd,r),s=sy[o.placedSide];return M.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:M.jsx(ny,{...i,ref:n,style:{...i.style,display:"block"}})})});fd.displayName=dd;function ay(e){return e!==null}var ly=e=>({name:"transformOrigin",options:e,fn(t){var y,d,h;const{placement:n,rects:r,middlewareData:i}=t,s=((y=i.arrow)==null?void 0:y.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,p]=pd(n),u={start:"0%",center:"50%",end:"100%"}[p],v=(((d=i.arrow)==null?void 0:d.x)??0)+a/2,g=(((h=i.arrow)==null?void 0:h.y)??0)+l/2;let m="",f="";return c==="bottom"?(m=s?u:`${v}px`,f=`${-l}px`):c==="top"?(m=s?u:`${v}px`,f=`${r.floating.height+l}px`):c==="right"?(m=`${-l}px`,f=s?u:`${g}px`):c==="left"&&(m=`${r.floating.width+l}px`,f=s?u:`${g}px`),{data:{x:m,y:f}}}});function pd(e){const[t,n="center"]=e.split("-");return[t,n]}var cy=ad,uy=cd,dy=ud,fy=fd,py="VisuallyHidden",md=b.forwardRef((e,t)=>M.jsx(ke.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));md.displayName=py;var dt=function(){return dt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},dt.apply(this,arguments)};function hd(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function gd(e,t,n){for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var bd=Es(),To=function(){},Ki=b.forwardRef(function(e,t){var n=b.useRef(null),r=b.useState({onScrollCapture:To,onWheelCapture:To,onTouchMoveCapture:To}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,p=e.enabled,u=e.shards,v=e.sideCar,g=e.noIsolation,m=e.inert,f=e.allowPinchZoom,y=e.as,d=y===void 0?"div":y,h=e.gapMode,w=hd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,x=Cs([n,t]),T=dt(dt({},w),i);return b.createElement(b.Fragment,null,p&&b.createElement(S,{sideCar:bd,removeScrollBar:c,shards:u,noIsolation:g,inert:m,setCallbacks:o,allowPinchZoom:!!f,lockRef:n,gapMode:h}),s?b.cloneElement(b.Children.only(a),dt(dt({},T),{ref:x})):b.createElement(d,dt({},T,{className:l,ref:x}),a))});Ki.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ki.classNames={fullWidth:Un,zeroRight:Gn};var ts=!1;if(typeof window<"u")try{var ei=Object.defineProperty({},"passive",{get:function(){return ts=!0,!0}});window.addEventListener("test",ei,ei),window.removeEventListener("test",ei,ei)}catch{ts=!1}var $n=ts?{passive:!1}:!1,my=function(e){return e.tagName==="TEXTAREA"},vd=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!my(e)&&n[t]==="visible")},hy=function(e){return vd(e,"overflowY")},gy=function(e){return vd(e,"overflowX")},Il=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=yd(e,r);if(i){var o=wd(e,r),s=o[1],a=o[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},by=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},vy=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},yd=function(e,t){return e==="v"?hy(t):gy(t)},wd=function(e,t){return e==="v"?by(t):vy(t)},yy=function(e,t){return e==="h"&&t==="rtl"?-1:1},wy=function(e,t,n,r,i){var o=yy(e,window.getComputedStyle(t).direction),s=o*r,a=n.target,l=t.contains(a),c=!1,p=s>0,u=0,v=0;do{var g=wd(e,a),m=g[0],f=g[1],y=g[2],d=f-y-o*m;(m||d)&&yd(e,a)&&(u+=d,v+=m),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(p&&Math.abs(u)<1||!p&&Math.abs(v)<1)&&(c=!0),c},ti=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ol=function(e){return[e.deltaX,e.deltaY]},Rl=function(e){return e&&"current"in e?e.current:e},Sy=function(e,t){return e[0]===t[0]&&e[1]===t[1]},xy=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},Cy=0,zn=[];function Ey(e){var t=b.useRef([]),n=b.useRef([0,0]),r=b.useRef(),i=b.useState(Cy++)[0],o=b.useState(Vi)[0],s=b.useRef(e);b.useEffect(function(){s.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var f=gd([e.lockRef.current],(e.shards||[]).map(Rl)).filter(Boolean);return f.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),f.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=b.useCallback(function(f,y){if("touches"in f&&f.touches.length===2)return!s.current.allowPinchZoom;var d=ti(f),h=n.current,w="deltaX"in f?f.deltaX:h[0]-d[0],S="deltaY"in f?f.deltaY:h[1]-d[1],x,T=f.target,A=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in f&&A==="h"&&T.type==="range")return!1;var k=Il(A,T);if(!k)return!0;if(k?x=A:(x=A==="v"?"h":"v",k=Il(A,T)),!k)return!1;if(!r.current&&"changedTouches"in f&&(w||S)&&(r.current=x),!x)return!0;var _=r.current||x;return wy(_,y,f,_==="h"?w:S)},[]),l=b.useCallback(function(f){var y=f;if(!(!zn.length||zn[zn.length-1]!==o)){var d="deltaY"in y?Ol(y):ti(y),h=t.current.filter(function(x){return x.name===y.type&&(x.target===y.target||y.target===x.shadowParent)&&Sy(x.delta,d)})[0];if(h&&h.should){y.cancelable&&y.preventDefault();return}if(!h){var w=(s.current.shards||[]).map(Rl).filter(Boolean).filter(function(x){return x.contains(y.target)}),S=w.length>0?a(y,w[0]):!s.current.noIsolation;S&&y.cancelable&&y.preventDefault()}}},[]),c=b.useCallback(function(f,y,d,h){var w={name:f,delta:y,target:d,should:h,shadowParent:ky(d)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),p=b.useCallback(function(f){n.current=ti(f),r.current=void 0},[]),u=b.useCallback(function(f){c(f.type,Ol(f),f.target,a(f,e.lockRef.current))},[]),v=b.useCallback(function(f){c(f.type,ti(f),f.target,a(f,e.lockRef.current))},[]);b.useEffect(function(){return zn.push(o),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:v}),document.addEventListener("wheel",l,$n),document.addEventListener("touchmove",l,$n),document.addEventListener("touchstart",p,$n),function(){zn=zn.filter(function(f){return f!==o}),document.removeEventListener("wheel",l,$n),document.removeEventListener("touchmove",l,$n),document.removeEventListener("touchstart",p,$n)}},[]);var g=e.removeScrollBar,m=e.inert;return b.createElement(b.Fragment,null,m?b.createElement(o,{styles:xy(i)}):null,g?b.createElement(Ts,{gapMode:e.gapMode}):null)}function ky(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ty=ks(bd,Ey);var Sd=b.forwardRef(function(e,t){return b.createElement(Ki,dt({},e,{ref:t,sideCar:Ty}))});Sd.classNames=Ki.classNames;var Ay=[" ","Enter","ArrowUp","ArrowDown"],Py=[" ","Enter"],Fr="Select",[Zi,Ji,Iy]=sv(Fr),[tr,VC]=Wt(Fr,[Iy,od]),Qi=od(),[Oy,vn]=tr(Fr),[Ry,_y]=tr(Fr),xd=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:o,value:s,defaultValue:a,onValueChange:l,dir:c,name:p,autoComplete:u,disabled:v,required:g}=e,m=Qi(t),[f,y]=b.useState(null),[d,h]=b.useState(null),[w,S]=b.useState(!1),x=lv(c),[T=!1,A]=En({prop:r,defaultProp:i,onChange:o}),[k,_]=En({prop:s,defaultProp:a,onChange:l}),z=b.useRef(null),R=f?!!f.closest("form"):!0,[I,L]=b.useState(new Set),N=Array.from(I).map(j=>j.props.value).join(";");return M.jsx(cy,{...m,children:M.jsxs(Oy,{required:g,scope:t,trigger:f,onTriggerChange:y,valueNode:d,onValueNodeChange:h,valueNodeHasChildren:w,onValueNodeHasChildrenChange:S,contentId:xn(),value:k,onValueChange:_,open:T,onOpenChange:A,dir:x,triggerPointerDownPosRef:z,disabled:v,children:[M.jsx(Zi.Provider,{scope:t,children:M.jsx(Ry,{scope:e.__scopeSelect,onNativeOptionAdd:b.useCallback(j=>{L(B=>new Set(B).add(j))},[]),onNativeOptionRemove:b.useCallback(j=>{L(B=>{const V=new Set(B);return V.delete(j),V})},[]),children:n})}),R?M.jsxs(Vd,{"aria-hidden":!0,required:g,tabIndex:-1,name:p,autoComplete:u,value:k,onChange:j=>_(j.target.value),disabled:v,children:[k===void 0?M.jsx("option",{value:""}):null,Array.from(I)]},N):null]})})};xd.displayName=Fr;var Cd="SelectTrigger",Ed=b.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,o=Qi(n),s=vn(Cd,n),a=s.disabled||r,l=Te(t,s.onTriggerChange),c=Ji(n),[p,u,v]=Hd(m=>{const f=c().filter(h=>!h.disabled),y=f.find(h=>h.value===s.value),d=Wd(f,m,y);d!==void 0&&s.onValueChange(d.value)}),g=()=>{a||(s.onOpenChange(!0),v())};return M.jsx(uy,{asChild:!0,...o,children:M.jsx(ke.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":jd(s.value)?"":void 0,...i,ref:l,onClick:ye(i.onClick,m=>{m.currentTarget.focus()}),onPointerDown:ye(i.onPointerDown,m=>{const f=m.target;f.hasPointerCapture(m.pointerId)&&f.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&(g(),s.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)},m.preventDefault())}),onKeyDown:ye(i.onKeyDown,m=>{const f=p.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&u(m.key),!(f&&m.key===" ")&&Ay.includes(m.key)&&(g(),m.preventDefault())})})})});Ed.displayName=Cd;var kd="SelectValue",Td=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:o,placeholder:s="",...a}=e,l=vn(kd,n),{onValueNodeHasChildrenChange:c}=l,p=o!==void 0,u=Te(t,l.onValueNodeChange);return Qe(()=>{c(p)},[c,p]),M.jsx(ke.span,{...a,ref:u,style:{pointerEvents:"none"},children:jd(l.value)?M.jsx(M.Fragment,{children:s}):o})});Td.displayName=kd;var My="SelectIcon",Ad=b.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return M.jsx(ke.span,{"aria-hidden":!0,...i,ref:t,children:r||"â–¼"})});Ad.displayName=My;var Dy="SelectPortal",Pd=e=>M.jsx(xs,{asChild:!0,...e});Pd.displayName=Dy;var Pn="SelectContent",Id=b.forwardRef((e,t)=>{const n=vn(Pn,e.__scopeSelect),[r,i]=b.useState();if(Qe(()=>{i(new DocumentFragment)},[]),!n.open){const o=r;return o?Zn.createPortal(M.jsx(Od,{scope:e.__scopeSelect,children:M.jsx(Zi.Slot,{scope:e.__scopeSelect,children:M.jsx("div",{children:e.children})})}),o):null}return M.jsx(Rd,{...e,ref:t})});Id.displayName=Pn;var qt=10,[Od,yn]=tr(Pn),Ly="SelectContentImpl",Rd=b.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:s,side:a,sideOffset:l,align:c,alignOffset:p,arrowPadding:u,collisionBoundary:v,collisionPadding:g,sticky:m,hideWhenDetached:f,avoidCollisions:y,...d}=e,h=vn(Pn,n),[w,S]=b.useState(null),[x,T]=b.useState(null),A=Te(t,Z=>S(Z)),[k,_]=b.useState(null),[z,R]=b.useState(null),I=Ji(n),[L,N]=b.useState(!1),j=b.useRef(!1);b.useEffect(()=>{if(w)return Mc(w)},[w]),kc();const B=b.useCallback(Z=>{const[se,...we]=I().map(H=>H.ref.current),[de]=we.slice(-1),te=document.activeElement;for(const H of Z)if(H===te||(H==null||H.scrollIntoView({block:"nearest"}),H===se&&x&&(x.scrollTop=0),H===de&&x&&(x.scrollTop=x.scrollHeight),H==null||H.focus(),document.activeElement!==te))return},[I,x]),V=b.useCallback(()=>B([k,w]),[B,k,w]);b.useEffect(()=>{L&&V()},[L,V]);const{onOpenChange:U,triggerPointerDownPosRef:J}=h;b.useEffect(()=>{if(w){let Z={x:0,y:0};const se=de=>{var te,H;Z={x:Math.abs(Math.round(de.pageX)-(((te=J.current)==null?void 0:te.x)??0)),y:Math.abs(Math.round(de.pageY)-(((H=J.current)==null?void 0:H.y)??0))}},we=de=>{Z.x<=10&&Z.y<=10?de.preventDefault():w.contains(de.target)||U(!1),document.removeEventListener("pointermove",se),J.current=null};return J.current!==null&&(document.addEventListener("pointermove",se),document.addEventListener("pointerup",we,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",se),document.removeEventListener("pointerup",we,{capture:!0})}}},[w,U,J]),b.useEffect(()=>{const Z=()=>U(!1);return window.addEventListener("blur",Z),window.addEventListener("resize",Z),()=>{window.removeEventListener("blur",Z),window.removeEventListener("resize",Z)}},[U]);const[ge,re]=Hd(Z=>{const se=I().filter(te=>!te.disabled),we=se.find(te=>te.ref.current===document.activeElement),de=Wd(se,Z,we);de&&setTimeout(()=>de.ref.current.focus())}),Re=b.useCallback((Z,se,we)=>{const de=!j.current&&!we;(h.value!==void 0&&h.value===se||de)&&(_(Z),de&&(j.current=!0))},[h.value]),ve=b.useCallback(()=>w==null?void 0:w.focus(),[w]),Ae=b.useCallback((Z,se,we)=>{const de=!j.current&&!we;(h.value!==void 0&&h.value===se||de)&&R(Z)},[h.value]),oe=r==="popper"?ns:_d,Se=oe===ns?{side:a,sideOffset:l,align:c,alignOffset:p,arrowPadding:u,collisionBoundary:v,collisionPadding:g,sticky:m,hideWhenDetached:f,avoidCollisions:y}:{};return M.jsx(Od,{scope:n,content:w,viewport:x,onViewportChange:T,itemRefCallback:Re,selectedItem:k,onItemLeave:ve,itemTextRefCallback:Ae,focusSelectedItem:V,selectedItemText:z,position:r,isPositioned:L,searchRef:ge,children:M.jsx(Sd,{as:Kn,allowPinchZoom:!0,children:M.jsx(Ss,{asChild:!0,trapped:h.open,onMountAutoFocus:Z=>{Z.preventDefault()},onUnmountAutoFocus:ye(i,Z=>{var se;(se=h.trigger)==null||se.focus({preventScroll:!0}),Z.preventDefault()}),children:M.jsx(ws,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:Z=>Z.preventDefault(),onDismiss:()=>h.onOpenChange(!1),children:M.jsx(oe,{role:"listbox",id:h.contentId,"data-state":h.open?"open":"closed",dir:h.dir,onContextMenu:Z=>Z.preventDefault(),...d,...Se,onPlaced:()=>N(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...d.style},onKeyDown:ye(d.onKeyDown,Z=>{const se=Z.ctrlKey||Z.altKey||Z.metaKey;if(Z.key==="Tab"&&Z.preventDefault(),!se&&Z.key.length===1&&re(Z.key),["ArrowUp","ArrowDown","Home","End"].includes(Z.key)){let de=I().filter(te=>!te.disabled).map(te=>te.ref.current);if(["ArrowUp","End"].includes(Z.key)&&(de=de.slice().reverse()),["ArrowUp","ArrowDown"].includes(Z.key)){const te=Z.target,H=de.indexOf(te);de=de.slice(H+1)}setTimeout(()=>B(de)),Z.preventDefault()}})})})})})})});Rd.displayName=Ly;var Ny="SelectItemAlignedPosition",_d=b.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,o=vn(Pn,n),s=yn(Pn,n),[a,l]=b.useState(null),[c,p]=b.useState(null),u=Te(t,A=>p(A)),v=Ji(n),g=b.useRef(!1),m=b.useRef(!0),{viewport:f,selectedItem:y,selectedItemText:d,focusSelectedItem:h}=s,w=b.useCallback(()=>{if(o.trigger&&o.valueNode&&a&&c&&f&&y&&d){const A=o.trigger.getBoundingClientRect(),k=c.getBoundingClientRect(),_=o.valueNode.getBoundingClientRect(),z=d.getBoundingClientRect();if(o.dir!=="rtl"){const te=z.left-k.left,H=_.left-te,le=A.left-H,fe=A.width+le,_e=Math.max(fe,k.width),ze=window.innerWidth-qt,Le=wl(H,[qt,ze-_e]);a.style.minWidth=fe+"px",a.style.left=Le+"px"}else{const te=k.right-z.right,H=window.innerWidth-_.right-te,le=window.innerWidth-A.right-H,fe=A.width+le,_e=Math.max(fe,k.width),ze=window.innerWidth-qt,Le=wl(H,[qt,ze-_e]);a.style.minWidth=fe+"px",a.style.right=Le+"px"}const R=v(),I=window.innerHeight-qt*2,L=f.scrollHeight,N=window.getComputedStyle(c),j=parseInt(N.borderTopWidth,10),B=parseInt(N.paddingTop,10),V=parseInt(N.borderBottomWidth,10),U=parseInt(N.paddingBottom,10),J=j+B+L+U+V,ge=Math.min(y.offsetHeight*5,J),re=window.getComputedStyle(f),Re=parseInt(re.paddingTop,10),ve=parseInt(re.paddingBottom,10),Ae=A.top+A.height/2-qt,oe=I-Ae,Se=y.offsetHeight/2,Z=y.offsetTop+Se,se=j+B+Z,we=J-se;if(se<=Ae){const te=y===R[R.length-1].ref.current;a.style.bottom="0px";const H=c.clientHeight-f.offsetTop-f.offsetHeight,le=Math.max(oe,Se+(te?ve:0)+H+V),fe=se+le;a.style.height=fe+"px"}else{const te=y===R[0].ref.current;a.style.top="0px";const le=Math.max(Ae,j+f.offsetTop+(te?Re:0)+Se)+we;a.style.height=le+"px",f.scrollTop=se-Ae+f.offsetTop}a.style.margin=`${qt}px 0`,a.style.minHeight=ge+"px",a.style.maxHeight=I+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[v,o.trigger,o.valueNode,a,c,f,y,d,o.dir,r]);Qe(()=>w(),[w]);const[S,x]=b.useState();Qe(()=>{c&&x(window.getComputedStyle(c).zIndex)},[c]);const T=b.useCallback(A=>{A&&m.current===!0&&(w(),h==null||h(),m.current=!1)},[w,h]);return M.jsx($y,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:g,onScrollButtonChange:T,children:M.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:M.jsx(ke.div,{...i,ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});_d.displayName=Ny;var Fy="SelectPopperPosition",ns=b.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=qt,...o}=e,s=Qi(n);return M.jsx(dy,{...s,...o,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ns.displayName=Fy;var[$y,oa]=tr(Pn,{}),rs="SelectViewport",Md=b.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,o=yn(rs,n),s=oa(rs,n),a=Te(t,o.onViewportChange),l=b.useRef(0);return M.jsxs(M.Fragment,{children:[M.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),M.jsx(Zi.Slot,{scope:n,children:M.jsx(ke.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:a,style:{position:"relative",flex:1,overflow:"auto",...i.style},onScroll:ye(i.onScroll,c=>{const p=c.currentTarget,{contentWrapper:u,shouldExpandOnScrollRef:v}=s;if(v!=null&&v.current&&u){const g=Math.abs(l.current-p.scrollTop);if(g>0){const m=window.innerHeight-qt*2,f=parseFloat(u.style.minHeight),y=parseFloat(u.style.height),d=Math.max(f,y);if(d<m){const h=d+g,w=Math.min(m,h),S=h-w;u.style.height=w+"px",u.style.bottom==="0px"&&(p.scrollTop=S>0?S:0,u.style.justifyContent="flex-end")}}}l.current=p.scrollTop})})})]})});Md.displayName=rs;var Dd="SelectGroup",[zy,By]=tr(Dd),jy=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=xn();return M.jsx(zy,{scope:n,id:i,children:M.jsx(ke.div,{role:"group","aria-labelledby":i,...r,ref:t})})});jy.displayName=Dd;var Ld="SelectLabel",Vy=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=By(Ld,n);return M.jsx(ke.div,{id:i.id,...r,ref:t})});Vy.displayName=Ld;var Ri="SelectItem",[Hy,Nd]=tr(Ri),Fd=b.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...s}=e,a=vn(Ri,n),l=yn(Ri,n),c=a.value===r,[p,u]=b.useState(o??""),[v,g]=b.useState(!1),m=Te(t,d=>{var h;return(h=l.itemRefCallback)==null?void 0:h.call(l,d,r,i)}),f=xn(),y=()=>{i||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return M.jsx(Hy,{scope:n,value:r,disabled:i,textId:f,isSelected:c,onItemTextChange:b.useCallback(d=>{u(h=>h||((d==null?void 0:d.textContent)??"").trim())},[]),children:M.jsx(Zi.ItemSlot,{scope:n,value:r,disabled:i,textValue:p,children:M.jsx(ke.div,{role:"option","aria-labelledby":f,"data-highlighted":v?"":void 0,"aria-selected":c&&v,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...s,ref:m,onFocus:ye(s.onFocus,()=>g(!0)),onBlur:ye(s.onBlur,()=>g(!1)),onPointerUp:ye(s.onPointerUp,y),onPointerMove:ye(s.onPointerMove,d=>{var h;i?(h=l.onItemLeave)==null||h.call(l):d.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ye(s.onPointerLeave,d=>{var h;d.currentTarget===document.activeElement&&((h=l.onItemLeave)==null||h.call(l))}),onKeyDown:ye(s.onKeyDown,d=>{var w;((w=l.searchRef)==null?void 0:w.current)!==""&&d.key===" "||(Py.includes(d.key)&&y(),d.key===" "&&d.preventDefault())})})})})});Fd.displayName=Ri;var br="SelectItemText",$d=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...o}=e,s=vn(br,n),a=yn(br,n),l=Nd(br,n),c=_y(br,n),[p,u]=b.useState(null),v=Te(t,d=>u(d),l.onItemTextChange,d=>{var h;return(h=a.itemTextRefCallback)==null?void 0:h.call(a,d,l.value,l.disabled)}),g=p==null?void 0:p.textContent,m=b.useMemo(()=>M.jsx("option",{value:l.value,disabled:l.disabled,children:g},l.value),[l.disabled,l.value,g]),{onNativeOptionAdd:f,onNativeOptionRemove:y}=c;return Qe(()=>(f(m),()=>y(m)),[f,y,m]),M.jsxs(M.Fragment,{children:[M.jsx(ke.span,{id:l.textId,...o,ref:v}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Zn.createPortal(o.children,s.valueNode):null]})});$d.displayName=br;var zd="SelectItemIndicator",Wy=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Nd(zd,n).isSelected?M.jsx(ke.span,{"aria-hidden":!0,...r,ref:t}):null});Wy.displayName=zd;var is="SelectScrollUpButton",Gy=b.forwardRef((e,t)=>{const n=yn(is,e.__scopeSelect),r=oa(is,e.__scopeSelect),[i,o]=b.useState(!1),s=Te(t,r.onScrollButtonChange);return Qe(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollTop>0;o(c)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),i?M.jsx(Bd,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});Gy.displayName=is;var os="SelectScrollDownButton",Uy=b.forwardRef((e,t)=>{const n=yn(os,e.__scopeSelect),r=oa(os,e.__scopeSelect),[i,o]=b.useState(!1),s=Te(t,r.onScrollButtonChange);return Qe(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollHeight-l.clientHeight,p=Math.ceil(l.scrollTop)<c;o(p)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),i?M.jsx(Bd,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});Uy.displayName=os;var Bd=b.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,o=yn("SelectScrollButton",n),s=b.useRef(null),a=Ji(n),l=b.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return b.useEffect(()=>()=>l(),[l]),Qe(()=>{var p;const c=a().find(u=>u.ref.current===document.activeElement);(p=c==null?void 0:c.ref.current)==null||p.scrollIntoView({block:"nearest"})},[a]),M.jsx(ke.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:ye(i.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:ye(i.onPointerMove,()=>{var c;(c=o.onItemLeave)==null||c.call(o),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:ye(i.onPointerLeave,()=>{l()})})}),Yy="SelectSeparator",qy=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return M.jsx(ke.div,{"aria-hidden":!0,...r,ref:t})});qy.displayName=Yy;var ss="SelectArrow",Xy=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Qi(n),o=vn(ss,n),s=yn(ss,n);return o.open&&s.position==="popper"?M.jsx(fy,{...i,...r,ref:t}):null});Xy.displayName=ss;function jd(e){return e===""||e===void 0}var Vd=b.forwardRef((e,t)=>{const{value:n,...r}=e,i=b.useRef(null),o=Te(t,i),s=Ys(n);return b.useEffect(()=>{const a=i.current,l=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==n&&p){const u=new Event("change",{bubbles:!0});p.call(a,n),a.dispatchEvent(u)}},[s,n]),M.jsx(md,{asChild:!0,children:M.jsx("select",{...r,ref:o,defaultValue:n})})});Vd.displayName="BubbleSelect";function Hd(e){const t=Jt(e),n=b.useRef(""),r=b.useRef(0),i=b.useCallback(s=>{const a=n.current+s;t(a),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),o=b.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,o]}function Wd(e,t,n){const i=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let s=Ky(e,Math.max(o,0));i.length===1&&(s=s.filter(c=>c!==n));const l=s.find(c=>c.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function Ky(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Zy=xd,Jy=Ed,Qy=Td,ew=Ad,tw=Pd,nw=Id,rw=Md,iw=Fd,ow=$d,sa="Checkbox",[sw,HC]=Wt(sa),[aw,lw]=sw(sa),Gd=b.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:o,required:s,disabled:a,value:l="on",onCheckedChange:c,...p}=e,[u,v]=b.useState(null),g=Te(t,w=>v(w)),m=b.useRef(!1),f=u?!!u.closest("form"):!0,[y=!1,d]=En({prop:i,defaultProp:o,onChange:c}),h=b.useRef(y);return b.useEffect(()=>{const w=u==null?void 0:u.form;if(w){const S=()=>d(h.current);return w.addEventListener("reset",S),()=>w.removeEventListener("reset",S)}},[u,d]),M.jsxs(aw,{scope:n,state:y,disabled:a,children:[M.jsx(ke.button,{type:"button",role:"checkbox","aria-checked":Cn(y)?"mixed":y,"aria-required":s,"data-state":qd(y),"data-disabled":a?"":void 0,disabled:a,value:l,...p,ref:g,onKeyDown:ye(e.onKeyDown,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:ye(e.onClick,w=>{d(S=>Cn(S)?!0:!S),f&&(m.current=w.isPropagationStopped(),m.current||w.stopPropagation())})}),f&&M.jsx(cw,{control:u,bubbles:!m.current,name:r,value:l,checked:y,required:s,disabled:a,style:{transform:"translateX(-100%)"}})]})});Gd.displayName=sa;var Ud="CheckboxIndicator",Yd=b.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,o=lw(Ud,n);return M.jsx(On,{present:r||Cn(o.state)||o.state===!0,children:M.jsx(ke.span,{"data-state":qd(o.state),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});Yd.displayName=Ud;var cw=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,o=b.useRef(null),s=Ys(n),a=Us(t);return b.useEffect(()=>{const l=o.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(s!==n&&u){const v=new Event("click",{bubbles:r});l.indeterminate=Cn(n),u.call(l,Cn(n)?!1:n),l.dispatchEvent(v)}},[s,n,r]),M.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:Cn(n)?!1:n,...i,tabIndex:-1,ref:o,style:{...e.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Cn(e){return e==="indeterminate"}function qd(e){return Cn(e)?"indeterminate":e?"checked":"unchecked"}var Xd=Gd,Kd=Yd,Zd=Es(),Ao=function(){},eo=b.forwardRef(function(e,t){var n=b.useRef(null),r=b.useState({onScrollCapture:Ao,onWheelCapture:Ao,onTouchMoveCapture:Ao}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,p=e.enabled,u=e.shards,v=e.sideCar,g=e.noIsolation,m=e.inert,f=e.allowPinchZoom,y=e.as,d=y===void 0?"div":y,h=e.gapMode,w=hd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,x=Cs([n,t]),T=dt(dt({},w),i);return b.createElement(b.Fragment,null,p&&b.createElement(S,{sideCar:Zd,removeScrollBar:c,shards:u,noIsolation:g,inert:m,setCallbacks:o,allowPinchZoom:!!f,lockRef:n,gapMode:h}),s?b.cloneElement(b.Children.only(a),dt(dt({},T),{ref:x})):b.createElement(d,dt({},T,{className:l,ref:x}),a))});eo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};eo.classNames={fullWidth:Un,zeroRight:Gn};var as=!1;if(typeof window<"u")try{var ni=Object.defineProperty({},"passive",{get:function(){return as=!0,!0}});window.addEventListener("test",ni,ni),window.removeEventListener("test",ni,ni)}catch{as=!1}var Bn=as?{passive:!1}:!1,uw=function(e){return e.tagName==="TEXTAREA"},Jd=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!uw(e)&&n[t]==="visible")},dw=function(e){return Jd(e,"overflowY")},fw=function(e){return Jd(e,"overflowX")},_l=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=Qd(e,r);if(i){var o=ef(e,r),s=o[1],a=o[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},pw=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},mw=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Qd=function(e,t){return e==="v"?dw(t):fw(t)},ef=function(e,t){return e==="v"?pw(t):mw(t)},hw=function(e,t){return e==="h"&&t==="rtl"?-1:1},gw=function(e,t,n,r,i){var o=hw(e,window.getComputedStyle(t).direction),s=o*r,a=n.target,l=t.contains(a),c=!1,p=s>0,u=0,v=0;do{var g=ef(e,a),m=g[0],f=g[1],y=g[2],d=f-y-o*m;(m||d)&&Qd(e,a)&&(u+=d,v+=m),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(p&&Math.abs(u)<1||!p&&Math.abs(v)<1)&&(c=!0),c},ri=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ml=function(e){return[e.deltaX,e.deltaY]},Dl=function(e){return e&&"current"in e?e.current:e},bw=function(e,t){return e[0]===t[0]&&e[1]===t[1]},vw=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},yw=0,jn=[];function ww(e){var t=b.useRef([]),n=b.useRef([0,0]),r=b.useRef(),i=b.useState(yw++)[0],o=b.useState(Vi)[0],s=b.useRef(e);b.useEffect(function(){s.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var f=gd([e.lockRef.current],(e.shards||[]).map(Dl)).filter(Boolean);return f.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),f.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=b.useCallback(function(f,y){if("touches"in f&&f.touches.length===2)return!s.current.allowPinchZoom;var d=ri(f),h=n.current,w="deltaX"in f?f.deltaX:h[0]-d[0],S="deltaY"in f?f.deltaY:h[1]-d[1],x,T=f.target,A=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in f&&A==="h"&&T.type==="range")return!1;var k=_l(A,T);if(!k)return!0;if(k?x=A:(x=A==="v"?"h":"v",k=_l(A,T)),!k)return!1;if(!r.current&&"changedTouches"in f&&(w||S)&&(r.current=x),!x)return!0;var _=r.current||x;return gw(_,y,f,_==="h"?w:S)},[]),l=b.useCallback(function(f){var y=f;if(!(!jn.length||jn[jn.length-1]!==o)){var d="deltaY"in y?Ml(y):ri(y),h=t.current.filter(function(x){return x.name===y.type&&(x.target===y.target||y.target===x.shadowParent)&&bw(x.delta,d)})[0];if(h&&h.should){y.cancelable&&y.preventDefault();return}if(!h){var w=(s.current.shards||[]).map(Dl).filter(Boolean).filter(function(x){return x.contains(y.target)}),S=w.length>0?a(y,w[0]):!s.current.noIsolation;S&&y.cancelable&&y.preventDefault()}}},[]),c=b.useCallback(function(f,y,d,h){var w={name:f,delta:y,target:d,should:h,shadowParent:Sw(d)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),p=b.useCallback(function(f){n.current=ri(f),r.current=void 0},[]),u=b.useCallback(function(f){c(f.type,Ml(f),f.target,a(f,e.lockRef.current))},[]),v=b.useCallback(function(f){c(f.type,ri(f),f.target,a(f,e.lockRef.current))},[]);b.useEffect(function(){return jn.push(o),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:v}),document.addEventListener("wheel",l,Bn),document.addEventListener("touchmove",l,Bn),document.addEventListener("touchstart",p,Bn),function(){jn=jn.filter(function(f){return f!==o}),document.removeEventListener("wheel",l,Bn),document.removeEventListener("touchmove",l,Bn),document.removeEventListener("touchstart",p,Bn)}},[]);var g=e.removeScrollBar,m=e.inert;return b.createElement(b.Fragment,null,m?b.createElement(o,{styles:vw(i)}):null,g?b.createElement(Ts,{gapMode:e.gapMode}):null)}function Sw(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xw=ks(Zd,ww);var tf=b.forwardRef(function(e,t){return b.createElement(eo,dt({},e,{ref:t,sideCar:xw}))});tf.classNames=eo.classNames;function Ll(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Qo(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Nl(e,t){return["mouse","pen"].includes(e)}function Cw(e){return"nativeEvent"in e}function Ew(e){return e.matches("html,body")}function Fl(e){return(e==null?void 0:e.ownerDocument)||document}function Po(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function pr(e){return"composedPath"in e?e.composedPath()[0]:e.target}const kw="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Tw(e){return vt(e)&&e.matches(kw)}const nf={...Cr},Aw=nf.useInsertionEffect,Pw=Aw||(e=>e());function Vn(e){const t=b.useRef(()=>{});return Pw(()=>{t.current=e}),b.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var ls=typeof document<"u"?b.useLayoutEffect:b.useEffect;let $l=!1,Iw=0;const zl=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Iw++;function Ow(){const[e,t]=b.useState(()=>$l?zl():void 0);return ls(()=>{e==null&&t(zl())},[]),b.useEffect(()=>{$l=!0},[]),e}const Rw=nf.useId,rf=Rw||Ow;function _w(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const Mw=b.createContext(null),Dw=b.createContext(null),of=()=>{var e;return((e=b.useContext(Mw))==null?void 0:e.id)||null},sf=()=>b.useContext(Dw);function Lw(e){return"data-floating-ui-"+e}function Io(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(s=>{var a;return i.parentId===s.id&&((a=i.context)==null?void 0:a.open)})}),n=n.concat(r);return n}const Nw="data-floating-ui-focusable";function Bl(e){return vt(e.target)&&e.target.tagName==="BUTTON"}function jl(e){return Tw(e)}function Fw(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:s=!0,event:a="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:p=!0}=t,u=b.useRef(),v=b.useRef(!1),g=b.useMemo(()=>({onPointerDown(m){u.current=m.pointerType},onMouseDown(m){const f=u.current;m.button===0&&a!=="click"&&(Nl(f)&&c||(n&&l&&(!i.current.openEvent||i.current.openEvent.type==="mousedown")?r(!1,m.nativeEvent,"click"):(m.preventDefault(),r(!0,m.nativeEvent,"click"))))},onClick(m){const f=u.current;if(a==="mousedown"&&u.current){u.current=void 0;return}Nl(f)&&c||(n&&l&&(!i.current.openEvent||i.current.openEvent.type==="click")?r(!1,m.nativeEvent,"click"):r(!0,m.nativeEvent,"click"))},onKeyDown(m){u.current=void 0,!(m.defaultPrevented||!p||Bl(m))&&(m.key===" "&&!jl(o)&&(m.preventDefault(),v.current=!0),m.key==="Enter"&&r(!(n&&l),m.nativeEvent,"click"))},onKeyUp(m){m.defaultPrevented||!p||Bl(m)||jl(o)||m.key===" "&&v.current&&(v.current=!1,r(!(n&&l),m.nativeEvent,"click"))}}),[i,o,a,c,p,r,n,l]);return b.useMemo(()=>s?{reference:g}:{},[s,g])}const $w={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},zw={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Vl=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function Bw(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:p=!1,referencePressEvent:u="pointerdown",ancestorScroll:v=!1,bubbles:g,capture:m}=t,f=sf(),y=Vn(typeof l=="function"?l:()=>!1),d=typeof l=="function"?y:l,h=b.useRef(!1),w=b.useRef(!1),{escapeKey:S,outsidePress:x}=Vl(g),{escapeKey:T,outsidePress:A}=Vl(m),k=Vn(N=>{var j;if(!n||!s||!a||N.key!=="Escape")return;const B=(j=o.current.floatingContext)==null?void 0:j.nodeId,V=f?Io(f.nodesRef.current,B):[];if(!S&&(N.stopPropagation(),V.length>0)){let U=!0;if(V.forEach(J=>{var ge;if((ge=J.context)!=null&&ge.open&&!J.context.dataRef.current.__escapeKeyBubbles){U=!1;return}}),!U)return}r(!1,Cw(N)?N.nativeEvent:N,"escape-key")}),_=Vn(N=>{var j;const B=()=>{var V;k(N),(V=pr(N))==null||V.removeEventListener("keydown",B)};(j=pr(N))==null||j.addEventListener("keydown",B)}),z=Vn(N=>{var j;const B=h.current;h.current=!1;const V=w.current;if(w.current=!1,c==="click"&&V||B||typeof d=="function"&&!d(N))return;const U=pr(N),J="["+Lw("inert")+"]",ge=Fl(i.floating).querySelectorAll(J);let re=Be(U)?U:null;for(;re&&!bn(re);){const oe=tn(re);if(bn(oe)||!Be(oe))break;re=oe}if(ge.length&&Be(U)&&!Ew(U)&&!Ll(U,i.floating)&&Array.from(ge).every(oe=>!Ll(re,oe)))return;if(vt(U)&&L){const oe=U.clientWidth>0&&U.scrollWidth>U.clientWidth,Se=U.clientHeight>0&&U.scrollHeight>U.clientHeight;let Z=Se&&N.offsetX>U.clientWidth;if(Se&&Et(U).direction==="rtl"&&(Z=N.offsetX<=U.offsetWidth-U.clientWidth),Z||oe&&N.offsetY>U.clientHeight)return}const Re=(j=o.current.floatingContext)==null?void 0:j.nodeId,ve=f&&Io(f.nodesRef.current,Re).some(oe=>{var Se;return Po(N,(Se=oe.context)==null?void 0:Se.elements.floating)});if(Po(N,i.floating)||Po(N,i.domReference)||ve)return;const Ae=f?Io(f.nodesRef.current,Re):[];if(Ae.length>0){let oe=!0;if(Ae.forEach(Se=>{var Z;if((Z=Se.context)!=null&&Z.open&&!Se.context.dataRef.current.__outsidePressBubbles){oe=!1;return}}),!oe)return}r(!1,N,"outside-press")}),R=Vn(N=>{var j;const B=()=>{var V;z(N),(V=pr(N))==null||V.removeEventListener(c,B)};(j=pr(N))==null||j.addEventListener(c,B)});b.useEffect(()=>{if(!n||!s)return;o.current.__escapeKeyBubbles=S,o.current.__outsidePressBubbles=x;function N(V){r(!1,V,"ancestor-scroll")}const j=Fl(i.floating);a&&j.addEventListener("keydown",T?_:k,T),d&&j.addEventListener(c,A?R:z,A);let B=[];return v&&(Be(i.domReference)&&(B=mn(i.domReference)),Be(i.floating)&&(B=B.concat(mn(i.floating))),!Be(i.reference)&&i.reference&&i.reference.contextElement&&(B=B.concat(mn(i.reference.contextElement)))),B=B.filter(V=>{var U;return V!==((U=j.defaultView)==null?void 0:U.visualViewport)}),B.forEach(V=>{V.addEventListener("scroll",N,{passive:!0})}),()=>{a&&j.removeEventListener("keydown",T?_:k,T),d&&j.removeEventListener(c,A?R:z,A),B.forEach(V=>{V.removeEventListener("scroll",N)})}},[o,i,a,d,c,n,r,v,s,S,x,k,T,_,z,A,R]),b.useEffect(()=>{h.current=!1},[d,c]);const I=b.useMemo(()=>({onKeyDown:k,[$w[u]]:N=>{p&&r(!1,N.nativeEvent,"reference-press")}}),[k,r,p,u]),L=b.useMemo(()=>({onKeyDown:k,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[zw[c]]:()=>{h.current=!0}}),[k,c]);return b.useMemo(()=>s?{reference:I,floating:L}:{},[s,I,L])}function jw(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=rf(),o=b.useRef({}),[s]=b.useState(()=>_w()),a=of()!=null,[l,c]=b.useState(r.reference),p=Vn((g,m,f)=>{o.current.openEvent=g?m:void 0,s.emit("openchange",{open:g,event:m,reason:f,nested:a}),n==null||n(g,m,f)}),u=b.useMemo(()=>({setPositionReference:c}),[]),v=b.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return b.useMemo(()=>({dataRef:o,open:t,onOpenChange:p,elements:v,events:s,floatingId:i,refs:u}),[t,p,v,s,i,u])}function af(e){e===void 0&&(e={});const{nodeId:t}=e,n=jw({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=b.useState(null),[a,l]=b.useState(null),p=(i==null?void 0:i.reference)||o,u=b.useRef(null),v=sf();ls(()=>{p&&(u.current=p)},[p]);const g=Qu({...e,elements:{...i,...a&&{reference:a}}}),m=b.useCallback(w=>{const S=Be(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;l(S),g.refs.setReference(S)},[g.refs]),f=b.useCallback(w=>{(Be(w)||w===null)&&(u.current=w,s(w)),(Be(g.refs.reference.current)||g.refs.reference.current===null||w!==null&&!Be(w))&&g.refs.setReference(w)},[g.refs]),y=b.useMemo(()=>({...g.refs,setReference:f,setPositionReference:m,domReference:u}),[g.refs,f,m]),d=b.useMemo(()=>({...g.elements,domReference:p}),[g.elements,p]),h=b.useMemo(()=>({...g,...r,refs:y,elements:d,nodeId:t}),[g,y,d,t,r]);return ls(()=>{r.dataRef.current.floatingContext=h;const w=v==null?void 0:v.nodesRef.current.find(S=>S.id===t);w&&(w.context=h)}),b.useMemo(()=>({...g,context:h,refs:y,elements:d}),[g,y,d,h])}const Hl="active",Wl="selected";function Oo(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Hl]:s,[Wl]:a,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[Nw]:""},...o,...t.map(s=>{const a=s?s[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[c,p]=l;if(!(i&&[Hl,Wl].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof p=="function"){var u;(u=r.get(c))==null||u.push(p),s[c]=function(){for(var v,g=arguments.length,m=new Array(g),f=0;f<g;f++)m[f]=arguments[f];return(v=r.get(c))==null?void 0:v.map(y=>y(...m)).find(y=>y!==void 0)}}}else s[c]=p}),s),{})}}function Vw(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),n=e.map(a=>a==null?void 0:a.floating),r=e.map(a=>a==null?void 0:a.item),i=b.useCallback(a=>Oo(a,e,"reference"),t),o=b.useCallback(a=>Oo(a,e,"floating"),n),s=b.useCallback(a=>Oo(a,e,"item"),r);return b.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}const Hw=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Ww(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:s="dialog"}=t,a=(n=Hw.get(s))!=null?n:s,l=rf(),p=of()!=null,u=b.useMemo(()=>a==="tooltip"||s==="label"?{["aria-"+(s==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":a==="alertdialog"?"dialog":a,"aria-controls":r?i:void 0,...a==="listbox"&&{role:"combobox"},...a==="menu"&&{id:l},...a==="menu"&&p&&{role:"menuitem"},...s==="select"&&{"aria-autocomplete":"none"},...s==="combobox"&&{"aria-autocomplete":"list"}},[a,i,p,r,l,s]),v=b.useMemo(()=>{const m={id:i,...a&&{role:a}};return a==="tooltip"||s==="label"?m:{...m,...a==="menu"&&{"aria-labelledby":l}}},[a,i,l,s]),g=b.useCallback(m=>{let{active:f,selected:y}=m;const d={role:"option",...f&&{id:i+"-option"}};switch(s){case"select":return{...d,"aria-selected":f&&y};case"combobox":return{...d,...f&&{"aria-selected":!0}}}return{}},[i,s]);return b.useMemo(()=>o?{reference:u,floating:v,item:g}:{},[o,u,v,g])}var lf=Object.defineProperty,Gw=Object.defineProperties,Uw=Object.getOwnPropertyDescriptors,_i=Object.getOwnPropertySymbols,cf=Object.prototype.hasOwnProperty,uf=Object.prototype.propertyIsEnumerable,Gl=(e,t,n)=>t in e?lf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D=(e,t)=>{for(var n in t||(t={}))cf.call(t,n)&&Gl(e,n,t[n]);if(_i)for(var n of _i(t))uf.call(t,n)&&Gl(e,n,t[n]);return e},G=(e,t)=>Gw(e,Uw(t)),Yw=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),ie=(e,t)=>{var n={};for(var r in e)cf.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&_i)for(var r of _i(e))t.indexOf(r)<0&&uf.call(e,r)&&(n[r]=e[r]);return n},on=(e,t)=>{for(var n in t)lf(e,n,{get:t[n],enumerable:!0})},In=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});function df(e){return C("svg",G(D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5"},e),{children:C("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"})}))}var qw={borderWidths:{md:"1px"}},Mi=[5,10,20,35,50,65,80,95,98],ff=[...Mi],cs=[...Mi];ff[4]=40;cs[4]=60;var Xw={blue:{h:213,s:100,l:Mi},gray:{h:220,s:10,l:Mi},green:{h:141,s:90,l:ff},red:{h:9,s:90,l:cs},yellow:{h:50,s:90,l:cs}},We={};for(let[e,{h:t,s:n,l:r}]of Object.entries(Xw))We[e]=Object.fromEntries(r.map((i,o)=>[`${(o+1)*100}`,`hsl(${t} ${n}% ${i}%)`]));var Kw=G(D({black:"hsl(0 0% 0%)",white:"hsl(0 0% 100%)"},We),{gray100:We.gray[100],gray200:We.gray[200],gray300:We.gray[300],gray400:We.gray[400],gray500:We.gray[500],gray600:We.gray[600],gray700:We.gray[700],gray800:We.gray[800],gray900:We.gray[900],blue400:We.blue[400],blue500:We.blue[500],blue800:We.blue[800],blue900:We.blue[900],green400:We.blue[400],green500:We.green[500],green800:We.green[800],red500:We.red[500],transparent:"#FFFFFF00",inherit:"inherit"}),Zw={md:"8px",lg:"20px",round:"50%"},$=e=>`var(--fr-colors-${e})`,Jw={negative:{100:$("red-100"),200:$("red-200"),300:$("red-300"),400:$("red-400"),500:$("red-500"),600:$("red-600"),700:$("red-700"),800:$("red-800"),900:$("red-900"),background:$("negative-500"),border:$("negative-500"),foreground:$("white"),surface:$("negative-500"),active:{background:$("negative-400"),border:$("negative-400"),foreground:$("white"),surface:$("negative-400")},focus:{background:$("negative-500"),border:$("negative-500"),foreground:$("white"),surface:$("negative-500")},hover:{background:$("negative-400"),border:$("negative-400"),foreground:$("white"),surface:$("negative-400")}},neutral:{100:$("gray-100"),200:$("gray-200"),300:$("gray-300"),400:$("gray-400"),500:$("gray-500"),600:$("gray-600"),700:$("gray-700"),800:$("gray-800"),900:$("gray-900"),background:$("white"),border:$("neutral-800"),foreground:$("black"),surface:$("neutral-700"),active:{background:$("white"),border:$("neutral-900"),foreground:$("black"),surface:$("neutral-700")},focus:{background:$("white"),border:$("neutral-900"),foreground:$("black"),surface:$("neutral-700")},hover:{background:$("white"),border:$("neutral-900"),foreground:$("black"),surface:$("neutral-700")}},positive:{100:$("green-100"),200:$("green-200"),300:$("green-300"),400:$("green-400"),500:$("green-500"),600:$("green-600"),700:$("green-700"),800:$("green-800"),900:$("green-900"),background:$("positive-500"),border:$("positive-500"),foreground:$("white"),surface:$("positive-500"),active:{background:$("positive-400"),border:$("positive-400"),foreground:$("white"),surface:$("positive-400")},focus:{background:$("positive-500"),border:$("positive-500"),foreground:$("white"),surface:$("positive-500")},hover:{background:$("positive-400"),border:$("positive-400"),foreground:$("white"),surface:$("positive-400")}},primary:{100:$("blue-100"),200:$("blue-200"),300:$("blue-300"),400:$("blue-400"),500:$("blue-500"),600:$("blue-600"),700:$("blue-700"),800:$("blue-800"),900:$("blue-900"),background:$("primary-500"),border:$("primary-500"),foreground:$("white"),surface:$("primary-500"),active:{background:$("primary-400"),border:$("primary-400"),foreground:$("white"),surface:$("primary-400")},focus:{background:$("primary-500"),border:$("primary-500"),foreground:$("white"),surface:$("primary-500")},hover:{background:$("primary-400"),border:$("primary-400"),foreground:$("white"),surface:$("primary-400")}},secondary:{100:$("gray-100"),200:$("gray-200"),300:$("gray-300"),400:$("gray-400"),500:$("gray-500"),600:$("gray-600"),700:$("gray-700"),800:$("gray-800"),900:$("gray-900"),background:$("white"),border:$("secondary-800"),foreground:$("black"),surface:$("secondary-900"),active:{background:$("secondary-900"),border:$("secondary-800"),foreground:$("black"),surface:$("secondary-800")},focus:{background:$("secondary-900"),border:$("secondary-800"),foreground:$("black"),surface:$("secondary-900")},hover:{background:$("secondary-900"),border:$("secondary-800"),foreground:$("black"),surface:$("secondary-800")}}},Qw={md:"0px 4px 20px rgba(0, 0, 0, 0.1)"},eS="px",tS=e=>typeof e=="number"?`${4*e}${eS}`:e,nS=[-20,-19,-18,-17,-16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,-.5,0,.5,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,"auto"],rS=Object.fromEntries(nS.map(e=>[e,tS(e)])),iS={fontFamilies:{default:"inherit"},fontSizes:{xs:"12px",sm:"14px",md:"16px",lg:"18px",xl:"20px","2xl":"24px","3xl":"30px","4xl":"36px","5xl":"48px"},fontWeights:{thin:"100",extralight:"200",light:"300",regular:"400",medium:"500",demibold:"600",bold:"700",extrabold:"800",black:"900"},letterSpacings:{md:"0.02em"},lineHeights:{xs:"18px",sm:"22px",md:"24px",lg:"26px",xl:"30px","2xl":"38px","3xl":"46px","4xl":"60px"}},pf=G(D(G(D({},qw),{colors:D(D({},Kw),Jw)}),iS),{radii:Zw,shadows:Qw,space:rS});function aa(e,t="",n="."){return Object.keys(e).reduce((r,i)=>{let o=`${t.length?`${t}${n}`:""}${i}`,s=e[i];return typeof s=="object"&&s!==null&&!Array.isArray(s)?Object.assign(r,aa(s,o,n)):r[o]=s,r},{})}function mf(e){let t=aa(e,"--fr","-");for(let[n,r]of Object.entries(t))if(n.indexOf(".")>-1){let i=n.replace(/\./g,"-");t[i]=r,delete t[n]}return t}function hf(e,t="--fr"){let n={};return Object.keys(e).forEach(r=>{let i=e[r],o=r.replace(/\./g,"-");typeof i=="object"&&i!==null&&!Array.isArray(i)?n[r]=hf(i,`${t}-${r}`):n[r]=`var(${t}-${o})`}),n}var oS=mf(pf),Oe=hf(pf),sS=new Set(["alt","size","src"]),aS=Kc.all.filter(e=>e.indexOf("-")!=0&&!sS.has(e)).map(e=>[e.replace(/-([a-z])/g,(t,n)=>n.toUpperCase()),null]),lS=Object.fromEntries(aS),ii=aa(Oe.colors),cS={color:ii,backgroundColor:ii,borderColor:ii,border:D(D({},Oe.borderWidths),ii),borderRadius:Oe.radii,borderWidth:Oe.borderWidths,boxShadow:Oe.shadows,fontFamily:Oe.fontFamilies,fontSize:Oe.fontSizes,fontWeight:Oe.fontWeights,gap:Oe.space,lineHeight:Oe.lineHeights,margin:Oe.space,marginBottom:Oe.space,marginLeft:Oe.space,marginRight:Oe.space,marginTop:Oe.space,padding:Oe.space,paddingBottom:Oe.space,paddingLeft:Oe.space,paddingRight:Oe.space,paddingTop:Oe.space},uS=D(D({},lS),cS),dS={bg:["backgroundColor"],m:["margin"],mt:["marginTop"],mr:["marginRight"],mb:["marginBottom"],ml:["marginLeft"],mx:["marginLeft","marginRight"],my:["marginTop","marginBottom"],p:["padding"],pt:["paddingTop"],pr:["paddingRight"],pb:["paddingBottom"],pl:["paddingLeft"],px:["paddingLeft","paddingRight"],py:["paddingTop","paddingBottom"]},fS=new Set(["active","disabled","focus","focusVisible","focusWithin","hover"]);function pS(e){return Array.isArray(e)?new Map(e.map(t=>[t,t])):typeof e=="object"&&e!==null?new Map(Object.entries(e)):typeof e=="string"||typeof e=="number"?new Map([[e,e]]):new Map}var Ul=new Map(Object.entries(uS).map(([e,t])=>[e,pS(t)])),mS=new Map(Object.entries(dS).map(([e,t])=>[e,new Set(t)])),hS=new Set(["height","width"]),gS=new Set(["canvas","embed","iframe","img","input","object","video"]);function Yl(e){let[t,n]=e.split(":");return[t,fS.has(n)?n:null]}function bS(e,t="div"){let n=Object.assign({},e),r={};function i(o){if(o==null)return r;let s=`&:${o.replace(/[A-Z]/g,a=>`-${a.toLocaleLowerCase()}`)}`;return r[s]==null&&(r[s]={}),r[s]}return Object.entries(n).forEach(([o,s])=>{let[a,l]=Yl(o),c=mS.get(a);c!=null&&(c.forEach(p=>{let u=`${p}${l?":"+l:""}`;n[u]=s}),delete n[o])}),Object.entries(n).forEach(([o,s])=>{let[a,l]=Yl(o),c=Ul.get(a);if(c!=null){if(s==null)delete n[o];else if(typeof s=="string"&&s.indexOf(" ")>-1){let p=s.split(" ");i(l)[a]=p.map(u=>{var v;return(v=c.get(u.toString()))!=null?v:u}).join(" ")}else c.has(s.toString())?i(l)[a]=c.get(s.toString()):i(l)[a]=s;(typeof t!="string"||!gS.has(t)||!hS.has(a))&&delete n[o]}}),Object.keys(n).forEach(o=>{let s=o.substring(1);o.indexOf("_")===0&&Ul.has(s)&&(n[s]=n[o],delete n[o])}),{cssFromProps:r,unmatchedProps:n}}function vS(){if(typeof window>"u"){let{JSDOM:e}=Yw("jsdom");return new e("<!DOCTYPE html>").window}return window}function yS(e){return e?{__html:Wh(vS()).sanitize(e,{ALLOWED_TAGS:["b","strong","i","em","a","span","div","p","pre","s","u","br","img","code","li","ol","ul","table","tbody","thead","tr","td","th","h1","h2","h3","h4","video","p","style"],ALLOWED_ATTR:["style","class","target","id","href","alt","src","controls","autoplay","loop","muted","playsinline"]})}:{__html:""}}function wS(e){return e&&`fr-${e}`}function gf(e){return e&&(Array.isArray(e)?e.filter(t=>t!=null).map(t=>gf(t)).join(" "):wS(e))}function SS(e,t){var n=e,{as:r,children:i,className:o,css:s={},part:a}=n,l=ie(n,["as","children","className","css","part"]);let c=r??"div",{cssFromProps:p,unmatchedProps:u}=bS(l,c),v=gf(a),g=o||v?wh(o,v):void 0,m=[{boxSizing:"border-box"},p,s];return typeof i=="string"?C(c,G(D({className:g,css:m},u),{ref:t,dangerouslySetInnerHTML:yS(i)})):C(c,G(D({className:g,css:m},u),{ref:t,children:i}))}var ae=b.forwardRef(SS),yt={};on(yt,{Link:()=>qS,Plain:()=>XS,Primary:()=>US,Secondary:()=>YS});var Fe={};on(Fe,{Body1:()=>$S,Body2:()=>zS,Caption:()=>BS,Display1:()=>_S,Display2:()=>MS,H1:()=>DS,H2:()=>LS,H3:()=>NS,H4:()=>FS});var bf={};on(bf,{Body1:()=>PS,Body2:()=>IS,Caption:()=>OS,Display1:()=>xS,Display2:()=>CS,H1:()=>ES,H2:()=>kS,H3:()=>TS,H4:()=>AS});var sn={color:"neutral.foreground",fontFamily:"default",margin:"0"},xS=G(D({},sn),{fontSize:"5xl",fontWeight:"bold",lineHeight:"4xl"}),CS=G(D({},sn),{fontSize:"4xl",fontWeight:"bold",lineHeight:"3xl"}),ES=G(D({},sn),{fontSize:"3xl",fontWeight:"demibold",lineHeight:"2xl"}),kS=G(D({},sn),{fontSize:"2xl",fontWeight:"demibold",lineHeight:"xl"}),TS=G(D({},sn),{fontSize:"xl",fontWeight:"demibold",lineHeight:"lg"}),AS=G(D({},sn),{fontSize:"md",fontWeight:"demibold",lineHeight:"md"}),PS=G(D({},sn),{fontSize:"md",fontWeight:"regular",lineHeight:"md"}),IS=G(D({},sn),{fontSize:"sm",fontWeight:"regular",lineHeight:"sm"}),OS=G(D({},sn),{fontSize:"xs",fontWeight:"regular",lineHeight:"xs"}),RS=["Display1","Display2","H1","H2","H3","H4","Body1","Body2","Caption"],an=Object.fromEntries(RS.map(e=>{let t=["H1","H2","H3","H4"].includes(e)?e.toLowerCase():"span",n=b.forwardRef((r,i)=>{var o=r,{as:s=t,children:a}=o,l=ie(o,["as","children"]);return C(ae,G(D(D({as:s},bf[e]),l),{ref:i,children:a}))});return n.displayName=`Text.${e}`,[e,n]})),_S=an.Display1,MS=an.Display2,DS=an.H1,LS=an.H2,NS=an.H3,FS=an.H4,$S=an.Body1,zS=an.Body2,BS=an.Caption,vf={};on(vf,{Link:()=>HS,Plain:()=>WS,Primary:()=>jS,Secondary:()=>VS,loadingCSSStyle:()=>yf});var to={borderWidth:"md",borderRadius:"md",borderStyle:"solid","cursor:disabled":"not-allowed",display:"flex",gap:"2",padding:"2 4",fontFamily:"inherit"},jS=G(D({},to),{backgroundColor:"primary.surface",borderColor:"primary.border",color:"primary.foreground","backgroundColor:disabled":"primary.surface","backgroundColor:hover":"primary.hover.surface","opacity:disabled":"0.6","pointerEvents:disabled":"none"}),VS=G(D({},to),{backgroundColor:"secondary.background",borderColor:"secondary.border",color:"secondary.foreground","backgroundColor:hover":"secondary.hover.background","backgroundColor:disabled":"secondary.background","opacity:disabled":"0.6"}),HS=G(D({},to),{backgroundColor:"transparent",borderColor:"transparent",color:"primary.surface","color:hover":"primary.hover.surface"}),WS=G(D({},to),{backgroundColor:"transparent",borderColor:"transparent",color:"neutral.foreground"}),GS=nn({from:{transform:"rotate(0turn)"},to:{transform:"rotate(1turn)"}}),yf={position:"relative",color:"transparent","&:after":{content:'""',position:"absolute",width:"16px",height:"16px",top:0,left:0,right:0,bottom:0,margin:"auto",border:"4px solid transparent",borderTopColor:"var(--fr-colors-primary-foreground)",borderRadius:"50%",animation:GS+" 1s ease infinite"}};function no(e){var t=e,{as:n,children:r,part:i,title:o,variant:s="Primary"}=t,a=ie(t,["as","children","part","title","variant"]),l;let c=s.toLocaleLowerCase();return ce(ae,G(D(G(D({as:n??"button",part:[`button-${c}`,i]},vf[s]),{css:D(D({},(l=a.css)!=null?l:{}),a.loading?yf:{})}),a),{loading:void 0,children:[r,o&&C(Fe.Body2,{color:"inherit",css:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},flexGrow:"1",fontWeight:"medium",lineHeight:"20px",part:"button-title",textWrap:"nowrap",children:o})]}))}function US(e){var t=e,{children:n}=t,r=ie(t,["children"]);return C(no,G(D({},r),{variant:"Primary",children:n}))}function YS(e){var t=e,{children:n}=t,r=ie(t,["children"]);return C(no,G(D({},r),{variant:"Secondary",children:n}))}function qS(e){var t=e,{children:n}=t,r=ie(t,["children"]);return C(no,G(D({},r),{variant:"Link",children:n}))}function XS(e){var t=e,{children:n}=t,r=ie(t,["children"]);return C(no,G(D({},r),{variant:"Plain",children:n}))}var Ee={};on(Ee,{Column:()=>ZS,Row:()=>KS});var KS=b.forwardRef((e,t)=>C(ae,G(D({display:"flex",flexDirection:"row"},e),{ref:t}))),ZS=b.forwardRef((e,t)=>C(ae,G(D({display:"flex",flexDirection:"column"},e),{ref:t})));function JS(e){var t=e,{dismissible:n,flowId:r,part:i}=t,o=ie(t,["dismissible","flowId","part"]);return C(Rn,G(D({as:null,flowId:r},o),{children:({handleDismiss:s,handlePrimary:a,handleSecondary:l,parentProps:{containerProps:c},step:p})=>{var u,v,g,m,f;let y=(u=p.props)!=null?u:{},d=(g=(v=p.primaryButton)==null?void 0:v.title)!=null?g:p.primaryButtonTitle,h=(f=(m=p.secondaryButton)==null?void 0:m.title)!=null?f:p.secondaryButtonTitle,w=p.$state.blocked;return ce(ue,G(D(D({alignItems:"center",borderWidth:"md",display:"flex",flexDirection:"row",gap:3,justifyContent:"flex-start",part:["banner",i]},c),y),{children:[p.imageUri&&C(ae,{as:"img",part:"image",src:p.imageUri,style:{height:40,width:40,alignSelf:"center"}}),ce(Ee.Column,{marginInlineEnd:"auto",part:"banner-title-wrapper",children:[C(ue.Title,{part:"title",children:p.title}),C(ue.Subtitle,{part:"subtitle",children:p.subtitle})]}),C(ue.Secondary,{disabled:w,title:h,onClick:l}),C(ue.Primary,{disabled:w,title:d,onClick:a}),n&&C(ue.Dismiss,{onClick:s})]}))}}))}var QS={};on(QS,{Carousel:()=>ux,Collapsible:()=>Af,CollapsibleStep:()=>Sf});var ex={};on(ex,{Bar:()=>la,Dots:()=>tx,Fraction:()=>wf,Segments:()=>nx});function la(e){var t=e,{current:n,total:r}=t,i=ie(t,["current","total"]);let o=r>0?Math.min(n/r,1):0,s=o===0?"10px":`${100*o}%`;return C(ae,G(D({part:"progress-bar",backgroundColor:"neutral.800",borderRadius:"md",height:"10px"},i),{children:C(ae,{backgroundColor:"primary.surface",part:"progress-bar-fill",borderRadius:"md",height:"100%",style:{width:s},transition:"width 300ms ease-out"})}))}function tx(e){var t=e,{current:n,total:r}=t,i=ie(t,["current","total"]);if(r==1)return null;let o=[...Array(r)].map((s,a)=>C(ae,{as:"circle",r:4,cx:4+16*a,cy:"4px",fill:n-1===a?Oe.colors.blue500:Oe.colors.blue800},a));return C(ae,G(D({as:"svg",height:"8px",part:"progress-dots",viewBox:`0 0 ${16*r-8} 8`,width:16*r-8},i),{children:o}))}function wf(e){var t=e,{current:n,total:r}=t,i=ie(t,["current","total"]);return C(Fe.Body2,G(D({part:"progress-fraction"},i),{children:`${n}/${r}`}))}function nx(e){var t=e,{current:n,total:r}=t,i=ie(t,["current","total"]);let o=[...Array(r)].map((s,a)=>C(ae,{backgroundColor:n-1===a?"primary.surface":"blue800",borderRadius:"md",flexGrow:1,height:"100%"},a));return C(Ee.Row,G(D({gap:1,height:"10px",part:"progress-segments"},i),{children:o}))}function rx(e){return C("svg",G(D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:"size-4"},e),{children:C("path",{fillRule:"evenodd",d:"M8 1a3.5 3.5 0 0 0-3.5 3.5V7A1.5 1.5 0 0 0 3 8.5v5A1.5 1.5 0 0 0 4.5 15h7a1.5 1.5 0 0 0 1.5-1.5v-5A1.5 1.5 0 0 0 11.5 7V4.5A3.5 3.5 0 0 0 8 1Zm2 6V4.5a2 2 0 1 0-4 0V7h4Z",clipRule:"evenodd"})}))}function ix(){return C(ae,{as:"svg",color:"primary.foreground",fill:"none",height:"8px",part:"check-icon",viewBox:"0 0 10 8",width:"10px",children:C("path",{d:"M1 4.34664L3.4618 6.99729L3.4459 6.98017L9 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function ox(e){var t=e,{checked:n=!1}=t,r=ie(t,["checked"]);return C(ae,G(D({backgroundColor:"inherit",borderWidth:"md",borderStyle:"solid",borderColor:"neutral.border",borderRadius:"100%",padding:"0",part:"check-indicator",position:"relative",height:"22px",width:"22px"},r),{children:n&&C(ae,{alignItems:"center",bg:"green500",borderWidth:"md",borderStyle:"solid",borderColor:"green500",borderRadius:"100%",display:"flex",height:"calc(100% + 2px)",justifyContent:"center",left:"-1px",part:"check-indicator-checked",position:"absolute",top:"-1px",width:"calc(100% + 2px)",children:C(ix,{})})}))}function ro(e,{onPrimary:t,onSecondary:n}={}){let{navigate:r}=b.useContext(nr),i={"flow.back":()=>e.flow.back(),"flow.complete":()=>e.flow.complete(),"flow.forward":()=>e.flow.forward(),"flow.restart":()=>e.flow.restart(),"flow.skip":()=>e.flow.skip(),"flow.start":()=>e.flow.start(),"step.complete":()=>e.complete(),"step.skip":()=>e.skip(),"step.reset":()=>e.reset(),"step.start":()=>e.start()};return{handlePrimary:b.useCallback((o,s,a=!0)=>In(this,null,function*(){if((yield t==null?void 0:t(e,o,s))===!1)return o.preventDefault(),!1;if(e.primaryButton!=null){let l=e.primaryButton.action===!1?!1:i[e.primaryButton.action];typeof l=="function"?l():l!==!1&&(yield e.complete(s,a)),e.primaryButton.uri!=null&&r(e.primaryButton.uri,e.primaryButton.target)}else yield e.complete(s,a),e.primaryButtonUri!=null&&r(e.primaryButtonUri,e.primaryButtonUriTarget);return!0}),[e]),handleSecondary:b.useCallback((o,s)=>In(this,null,function*(){if((yield n==null?void 0:n(e,o,s))===!1)return o.preventDefault(),!1;if(e.secondaryButton!=null){let a=e.secondaryButton.action===!1?!1:i[e.secondaryButton.action];typeof a=="function"?a():a!==!1&&e.complete(s),e.secondaryButton.uri!=null&&r(e.secondaryButton.uri,e.secondaryButton.target)}else e.complete(s),e.secondaryButtonUri!=null&&r(e.secondaryButtonUri,e.secondaryButtonUriTarget);return!0}),[e])}}function sx({onPrimary:e,onSecondary:t,step:n}){var r,i;let{handlePrimary:o,handleSecondary:s}=ro(n,{onPrimary:e,onSecondary:t}),{blocked:a,completed:l,skipped:c}=n.$state,p=l||c||!a?C(ox,{checked:l||c,marginLeft:"auto"}):C(ae,{as:rx,height:"22px",marginLeft:"auto",width:"22px"});return ce(ue,{borderWidth:1,containerType:"inline-size",css:{"@container (max-width: 600px)":{flexBasis:"85%"},"@container (min-width: 601px) and (max-width: 900px)":{flexBasis:"45%"},"@container (min-width: 1200px)":{flexBasis:"25%"}},flex:"0 0 30%",gap:"2",p:"4",part:"carousel-step",userSelect:"none",disabled:a,opacity:a?.5:1,children:[ce(Ee.Row,{marginBottom:"2",part:"carousel-step-header",children:[n.iconUri&&C(ue.Media,{borderRadius:"0",height:"24px",src:n.iconUri,width:"24px"}),p]}),C(ue.Title,{children:n.title}),C(ue.Subtitle,{children:n.subtitle}),ce(Ee.Row,{css:{"@container (max-width: 200px)":{"& > button":{flexBasis:"50%",flexGrow:1},flexDirection:"column-reverse"}},gap:"2",marginTop:"auto",paddingTop:"3",part:"carousel-step-footer",children:[C(ue.Secondary,{disabled:a,onClick:s,title:(r=n.secondaryButton)==null?void 0:r.title}),C(ue.Primary,{disabled:a,onClick:o,title:(i=n.primaryButton)==null?void 0:i.title})]})]})}function ax(e){return C("svg",G(D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5"},e),{children:C("path",{fillRule:"evenodd",d:"M3 10a.75.75 0 0 1 .75-.75h10.638L10.23 5.29a.75.75 0 1 1 1.04-1.08l5.5 5.25a.75.75 0 0 1 0 1.08l-5.5 5.25a.75.75 0 1 1-1.04-1.08l4.158-3.96H3.75A.75.75 0 0 1 3 10Z",clipRule:"evenodd"})}))}function lx(e){return C("svg",G(D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5"},e),{children:C("path",{fillRule:"evenodd",d:"M17 10a.75.75 0 0 1-.75.75H5.612l4.158 3.96a.75.75 0 1 1-1.04 1.08l-5.5-5.25a.75.75 0 0 1 0-1.08l5.5-5.25a.75.75 0 1 1 1.04 1.08L5.612 9.25H16.25A.75.75 0 0 1 17 10Z",clipRule:"evenodd"})}))}var ql=nn` from { opacity: 0; } to { opacity: 1; } `;function cx({flow:e,sort:t,onPrimary:n,onSecondary:r}){var i,o;let[s,a]=b.useState(),[l]=b.useState({align:"start",container:".fr-carousel-content",skipSnaps:!0,slides:".fr-carousel-step",startIndex:t=="completed-last"?0:(o=(i=Array.from(e.steps.values()).find(d=>!d.$state.completed&&!d.$state.skipped))==null?void 0:i.order)!=null?o:0}),[c,p]=Ns(l),[u,v]=b.useState(),[g,m]=b.useState();b.useLayoutEffect(()=>{p&&(u==null&&v(p.canScrollNext()),g==null&&m(p.canScrollPrev()),p.on("select",()=>{v(p.canScrollNext()),m(p.canScrollPrev())}))},[p]),b.useEffect(()=>{if(!s){let d=Array.from(e.steps.values()),h=d.filter(S=>S.$state.completed||S.$state.skipped).sort((S,x)=>S.order-x.order),w=d.filter(S=>!S.$state.completed&&!S.$state.skipped).sort((S,x)=>S.order-x.order);a(t==="completed-last"?[...w,...h].map(S=>S.id):d.map(S=>S.id))}},[]);let f=e.getNumberOfCompletedSteps(),y=e.getNumberOfAvailableSteps();return s?ce(Hi,{children:[ce(Ee.Row,{css:{"@container (max-width: 750px)":{flexDirection:"column",gap:Oe.space[5]}},justifyContent:"space-between",part:"carousel-header",children:[ce(Ee.Column,{part:"carousel-header-content",children:[C(Fe.H3,{children:e.title}),C(Fe.Body2,{color:"neutral.400",children:e.subtitle})]}),ce(Ee.Row,{alignItems:"center",gap:2,part:"progress",children:[ce(Fe.Body2,{fontWeight:"demibold",part:"progress-text",children:[f,"/",y]}),C(la,{current:f,total:y,minWidth:"200px"})]})]}),ce(ae,{margin:`0 ${Oe.space[-4]}`,overflow:"hidden",part:"carousel-wrapper",px:"4",position:"relative",ref:c,children:[C(Ee.Row,{gap:4,part:"carousel-content",children:Array.from(e.steps.values()).filter(d=>d.$state.visible).sort((d,h)=>s.indexOf(d.id)-s.indexOf(h.id)).map(d=>C(sx,{onPrimary:n,onSecondary:r,step:d},d.id))}),g&&C(Ee.Column,{animation:`${ql} 300ms ease-out`,background:"linear-gradient(to right, rgba(255, 255, 255, 0.5), transparent 50%)",bottom:"0",left:"0",justifyContent:"center",paddingLeft:"3",part:"carousel-prev-wrapper",position:"absolute",top:"0",children:C(yt.Plain,{border:"1px solid neutral.border",borderRadius:"100%",boxShadow:"md",backgroundColor:"neutral.background",color:"primary.surface",onClick:()=>p.scrollPrev(),padding:"2",children:C(lx,{height:"24px",width:"24px"})})}),u&&C(Ee.Column,{animation:`${ql} 300ms ease-out`,background:"linear-gradient(to left, rgba(255, 255, 255, 0.5), transparent 50%)",bottom:"0",justifyContent:"center",paddingRight:"3",part:"carousel-next-wrapper",position:"absolute",right:"0",top:"0",children:C(yt.Plain,{border:"1px solid neutral.border",borderRadius:"100%",boxShadow:"md",backgroundColor:"neutral.background",color:"primary.surface",onClick:()=>p.scrollNext(),padding:"2",children:C(ax,{height:"24px",width:"24px"})})})]})]}):null}function ux(e){var t=ie(e,[]);return C(Rn,G(D({as:ue,borderWidth:1,containerType:"inline-size",p:"4",part:"carousel"},t),{children:n=>C(cx,D(D({},t),n))}))}var Sf={};on(Sf,{Content:()=>xf,Root:()=>Cf,Trigger:()=>Ef});function dx(e){return C("svg",G(D({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6"},e),{children:C("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})}))}var fx=nn` from { height: 0; opacity: 0; } to { height: var(--radix-collapsible-content-height); opacity: 1; } `,px=nn` from { height: var(--radix-collapsible-content-height); opacity: 1; } to { height: 0; opacity: 0; } `,mx=()=>C(ae,{as:"svg",color:"primary.foreground",width:"10px",height:"8px",viewBox:"0 0 10 8",fill:"none",children:C("path",{d:"M1 4.34664L3.4618 6.99729L3.4459 6.98017L9 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});function hx({checked:e=!1}){return C(ae,{backgroundColor:"inherit",borderWidth:"md",borderStyle:"solid",borderColor:"neutral.border",borderRadius:"100%",padding:"0",part:"field-radio-value",position:"relative",height:"22px",width:"22px",children:e&&C(ae,{alignItems:"center",bg:"green500",borderWidth:"md",borderStyle:"solid",borderColor:"green500",borderRadius:"100%",display:"flex",height:"calc(100% + 2px)",justifyContent:"center",left:"-1px",part:"field-radio-indicator",position:"absolute",top:"-1px",width:"calc(100% + 2px)",children:C(mx,{})})})}function xf({children:e}){return C(ib,{asChild:!0,children:ce(Ee.Column,{css:{'&[data-state="open"]':{animation:`${fx} 300ms ease-out`},'&[data-state="closed"]':{animation:`${px} 300ms ease-out`},overflow:"hidden"},gap:5,part:"collapsible-content",children:[C(ae,{}),e]})})}function Cf(e){var t=e,{children:n,disabled:r=!1,onOpenChange:i=()=>{},open:o=!1}=t,s=ie(t,["children","disabled","onOpenChange","open"]);return C(nb,{asChild:!0,disabled:r,open:o,onOpenChange:i,children:C(ue,G(D({borderWidth:"md",css:{'&[data-state="open"] .fr-collapsible-step-icon':{transform:"rotate(180deg)"}},gap:0,part:"collapsible-step"},s),{children:n}))})}function Ef({isCompleted:e,isBlocked:t,title:n}){return C(rb,{asChild:!0,children:ce(Ee.Row,{alignItems:"center",justifyContent:"space-between",margin:-5,padding:5,zIndex:1,opacity:t?.4:1,disabled:t,pointerEvents:t?"none":"auto",cursor:t?"not-allowed":"pointer",part:"collapsible-header",children:[ce(Ee.Row,{alignItems:"center",gap:2,children:[C(hx,{checked:e}),C(Fe.Body2,{fontWeight:"demibold",userSelect:"none",part:"collapsible-title",children:n})]}),C(ae,{as:dx,color:"neutral.100",css:{"& path":{vectorEffect:"non-scaling-stroke"}},display:"block",height:"16px",order:2,part:"collapsible-step-icon",width:"16px"})]})})}var kf=b.createContext({onPrimary:()=>{},onSecondary:()=>{},openStepId:null,setOpenStepId:()=>{},stepTypes:{}});function Tf({handlePrimary:e,handleSecondary:t,open:n,onOpenChange:r,step:i}){var o,s,a,l,c,p;let{$state:{blocked:u,completed:v,skipped:g},subtitle:m,title:f}=i,y=(s=(o=i.primaryButton)==null?void 0:o.title)!=null?s:i.primaryButtonTitle,d=(l=(a=i.secondaryButton)==null?void 0:a.title)!=null?l:i.secondaryButtonTitle,h=(c=i.props)!=null?c:{},w=!!u;return ce(Cf,G(D({open:n,onOpenChange:r},h),{children:[C(Ef,{isBlocked:i.$state.blocked,isCompleted:v||g,title:f}),ce(xf,{children:[C(ue.Media,{aspectRatio:2.5,objectFit:"cover",overflowClipMargin:"unset",src:(p=i.videoUri)!=null?p:i.imageUri,transform:"translate3d(0, 0, 1px)",type:i.videoUri?"video":"image"}),C(ue.Subtitle,{color:"neutral.400",children:m}),ce(Ee.Row,{gap:3,part:"collapsible-footer",children:[C(ue.Secondary,{title:d,onClick:t}),C(ue.Primary,{disabled:w,title:y,onClick:e})]})]})]}))}var gx={default:Tf};function bx(e){var t=e,{flow:n,step:r}=t,i=ie(t,["flow","step"]),o;let{onPrimary:s,onSecondary:a,openStepId:l,setOpenStepId:c,stepTypes:p}=b.useContext(kf),{handlePrimary:u,handleSecondary:v}=ro(r,{onPrimary:s,onSecondary:a}),g=(l??n.getCurrentStep().id)===r.id,m=(o=p[r.type])!=null?o:Tf;function f(y){return In(this,null,function*(){c(y?r.id:""),y&&!r.$state.completed&&(yield r.start(),c(null))})}return C(m,G(D({flow:n,onOpenChange:f,open:g,step:r},i),{handlePrimary:u,handleSecondary:v}),r.id)}function Af(e){var t=e,{dismissible:n,flowId:r,onPrimary:i,onSecondary:o,part:s,stepTypes:a={}}=t,l=ie(t,["dismissible","flowId","onPrimary","onSecondary","part","stepTypes"]);let[c,p]=b.useState(null),u=D(D({},gx),a);return C(kf.Provider,{value:{openStepId:c,setOpenStepId:p,onPrimary:i,onSecondary:o,stepTypes:u},children:C(Rn,G(D({as:ue,borderWidth:"md",flowId:r,part:["checklist",s]},l),{children:v=>{var g=v,{flow:m,handleDismiss:f}=g,y=ie(g,["flow","handleDismiss"]);let d=Array.from(m.steps.entries()).filter(([,S])=>S.$state.visible===!0).map(([,S])=>C(bx,G(D({flow:m,handleDismiss:f},y),{step:S}),S.id)),h=m.getNumberOfCompletedSteps(),w=m.getNumberOfAvailableSteps();return ce(Hi,{children:[ce(Ee.Column,{gap:2,children:[C(ue.Header,{dismissible:n,handleDismiss:f,part:"checklist-header",subtitle:m.subtitle,title:m.title}),ce(Ee.Row,{alignItems:"center",gap:2,children:[ce(Fe.Body2,{fontWeight:"demibold",children:[h,"/",w]}),C(la,{current:h,total:w,flexGrow:1})]})]}),d]})}}))})}var vx=new Set(["required","min","max","minLength","maxLength","pattern"]);function yx({fieldComponent:e,control:t,fieldData:n,submit:r}){let i=Ui();n.pattern!=null&&(typeof n.pattern=="string"?n.pattern=new RegExp(n.pattern.replace(/^\/|\/$/g,"")):typeof n.pattern=="object"&&typeof n.pattern.value=="string"&&(n.pattern.value=new RegExp(n.pattern.value.replace(/^\/|\/$/g,""))));let o=Object.fromEntries(Object.entries(n).filter(([a])=>vx.has(a))),s=ub({name:n.id,control:t,rules:o});return C(e,G(D({},s),{fieldData:n,formContext:i,submit:r}))}function wx({fieldTypes:e,handleDismiss:t,handlePrimary:n,handleSecondary:r,parentProps:{dismissible:i},step:o}){var s,a,l,c,p;let{__readOnly:u}=b.useContext(nr),v=b.useMemo(()=>{var k;return(k=o.fields)==null?void 0:k.filter(_=>e[_.type]!=null&&_.id)},[o.fields,e]),g=Cb({delayError:2e3,mode:"onChange",defaultValues:v.reduce((k,_)=>{var z;return k[_.id]=(z=_.value)!=null?z:"",k},{})});b.useEffect(()=>{g.formState.isDirty||g.reset(v.reduce((k,_)=>{var z;return k[_.id]=(z=_.value)!=null?z:"",k},{}))},[v]);let[m,f]=b.useState(!1),y=[],{control:d,handleSubmit:h}=g,w=(s=o.props)!=null?s:{};function S(k,_){f(!0),n(_,k,u===!0).then(()=>f(!1))}v.forEach(k=>{e[k.type]!=null&&y.push(C(yx,{control:d,fieldComponent:e[k.type],fieldData:k,submit:h(S)},`${o.flow.id}-${k.id}`))});let x=(l=(a=o.primaryButton)==null?void 0:a.title)!=null?l:o.primaryButtonTitle,T=(p=(c=o.secondaryButton)==null?void 0:c.title)!=null?p:o.secondaryButtonTitle,A=!!(o.$state.blocked||!g.formState.isValid);return b.useEffect(()=>{g.clearErrors()},[o]),ce(Ee.Column,G(D({gap:5,part:"form-step"},w),{children:[C(ue.Header,{dismissible:i,handleDismiss:t,part:"form-step-header",subtitle:o.subtitle,title:o.title}),C(ab,G(D({},g),{children:y})),ce(Ee.Row,{part:"form-step-footer",justifyContent:"flex-end",gap:3,children:[T&&C(yt.Secondary,{onClick:r,title:T}),C(yt.Primary,{disabled:A||m,onClick:h(S),title:x??"Submit",loading:m})]},`form-footer-${o.id}`)]}))}function Sx({error:e}){var t;return(t=e==null?void 0:e.message)!=null&&t.length?C(Fe.Caption,{color:"red500",display:"block",part:"field-error",mt:"1",textAlign:"end",children:e==null?void 0:e.message}):null}function xx({children:e,id:t,required:n=!1}){return ce(Fe.Body2,{as:"label",htmlFor:t,part:"field-label",fontWeight:"medium",mb:"2",display:"block",children:[e,C(ae,{part:"field-label-required",display:"inline",children:n&&"*"})]})}var Pf={backgroundColor:"neutral.background",borderColor:"neutral.border",borderStyle:"solid",borderWidth:"md",borderRadius:"md"},us=G(D({},Pf),{px:"4",py:"2",display:"block",outline:"none",width:"100%"}),If={alignItems:"center",bg:"primary.surface",borderWidth:"md",borderStyle:"solid",borderColor:"primary.border",borderRadius:"100%",display:"flex",height:"calc(100% + 2px)",justifyContent:"center",left:"-1px",position:"absolute",top:"-1px",width:"calc(100% + 2px)",color:"primary.foreground"};function $r({children:e,field:t,fieldData:n,fieldState:r}){var i;let{id:o,label:s,placeholder:a}=n,{error:l}=r,c=G(D(D(D({id:o},t),a?{placeholder:a}:{}),us),{"aria-invalid":!!l,value:(i=t.value)!=null?i:""});return ce(ae,{part:"field",children:[C(xx,{id:o,required:!!n.required,children:s}),e(c),C(Sx,{error:l})]})}function ca(e){return C("svg",G(D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5"},e),{children:C("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",clipRule:"evenodd"})}))}var Cx=b.forwardRef(({label:e,value:t},n)=>ce(ae,{as:"label",backgroundColor:"neutral.background",borderColor:"neutral.border",borderRadius:"md",borderStyle:"solid",borderWidth:"md",display:"flex",htmlFor:t,justifyContent:"space-between",part:"field-radio",px:4,py:2,children:[C(Fe.Body2,{part:"field-radio-label",children:e}),C(iv,{id:t,value:t,ref:n,asChild:!0,children:C(ae,{as:"button",backgroundColor:"inherit",borderWidth:"md",borderStyle:"solid",borderColor:"neutral.border",borderRadius:"100%",flex:"0 0 auto",padding:"0",part:"field-radio-value",position:"relative",height:"24px",width:"24px",children:C(ae,G(D({as:ov},If),{children:C(ca,{height:"14",width:"14"})}))})})]}));function Ex(e){let{field:{onChange:t,value:n},fieldData:{options:r=[]}}=e,i=r.map(({label:o,value:s})=>C(Cx,{value:s,label:o},s));return C($r,G(D({},e),{children:()=>C(rv,{value:n,onValueChange:t,asChild:!0,children:C(Ee.Column,{gap:2,part:"field-radio-group",children:i})})}))}function kx(e){return C("svg",G(D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5"},e),{children:C("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})}))}function Tx(e){let{field:{onChange:t,value:n},fieldData:{options:r=[]}}=e,[i,o]=b.useState([]);function s(a){let l=[];i.includes(a)?l=[...i.filter(c=>c!==a)]:l=[...i,a],o(l),t(l)}return C($r,G(D({},e),{children:()=>C(Ee.Column,{gap:2,part:"field-select-multiple",children:r.map(({label:a,value:l})=>C(Xd,{value:i.includes(l)?l:void 0,onCheckedChange:()=>s(l),asChild:!0,children:ce(ae,{as:"label",backgroundColor:"neutral.background",borderColor:"neutral.border",borderRadius:"md",borderStyle:"solid",borderWidth:"md",display:"flex",htmlFor:l,justifyContent:"space-between",part:"field-check",px:4,py:2,children:[C(Fe.Body2,{part:"field-check-label",children:a}),C(ae,{as:"button",backgroundColor:"inherit",borderWidth:"md",borderStyle:"solid",borderColor:"neutral.border",borderRadius:"100%",flex:"0 0 auto",id:l,padding:"0",part:"field-check-value",position:"relative",height:"24px",width:"24px",children:C(Kd,{asChild:!0,children:C(ae,G(D({},If),{children:C(ca,{height:"14",width:"14"})}))})})]})},l))})}))}var Ax=b.forwardRef(({label:e,value:t},n)=>C(iw,{value:t,ref:n,asChild:!0,children:C(ae,{"backgroundColor:hover":"neutral.900",borderRadius:"md",outline:"none",part:"field-select-option",px:"3",py:"2",children:C(ow,{asChild:!0,children:C(Fe.Body2,{part:"field-select-option-label",children:e})})})}));function Px(e){let{field:{onChange:t,value:n},fieldData:{options:r=[],placeholder:i}}=e,o=r.map(({label:s,value:a})=>C(Ax,{value:a,label:s},a));return e.fieldData.multiple?C(Tx,D({},e)):C($r,G(D({},e),{children:()=>ce(Zy,{value:n,onValueChange:t,children:[C(Jy,{asChild:!0,children:ce(Fe.Body2,G(D({},us),{alignItems:"center",display:"flex",justifyContent:"space-between",part:"field-select",children:[C(Qy,{placeholder:i??"Select one"}),C(ew,{children:C(ae,{as:kx,color:"neutral.100",display:"block",height:"24px",part:"field-select-icon",width:"24px"})})]}))}),C(tw,{children:C(nw,{position:"popper",sideOffset:4,asChild:!0,children:C(ae,G(D({},us),{boxShadow:"md",maxHeight:"var(--radix-select-content-available-height)",p:"1",part:"field-select-options",width:"var(--radix-popper-anchor-width)",zIndex:"99999",children:C(rw,{children:o})}))})})]})}))}function Ix(e){return C($r,G(D({},e),{children:t=>C(Fe.Body2,D({as:"input",part:"field-text",type:"text"},t))}))}function Ox(e){return C($r,G(D({},e),{children:t=>C(Fe.Body2,D({as:"textarea",part:"field-textarea"},t))}))}function Rx(e){let{field:{onChange:t,value:n},fieldData:{options:r,label:i,id:o=[]}}=e;return ce(ae,{part:"field",display:"flex",gap:2,alignItems:"center",children:[C(Xd,{defaultChecked:!0,onCheckedChange:t,value:n,checked:n===!0,asChild:!0,children:C(ae,G(D({},Pf),{as:"button",width:"25px",minWidth:"25px",height:"25px",justifyContent:"center",alignItems:"center",display:"flex","backgroundColor:hover":"neutral.900",part:"field-checkbox",id:o,children:C(Kd,{asChild:!0,children:C(ae,{width:"20px",height:"20px",display:"flex",alignItems:"center",justifyContent:"center",children:C(ca,{height:"14",fill:"currentColor"})})})}))}),C(Fe.Body2,{part:"field-checkbox-label",as:"label",htmlFor:o,children:i})]})}var _x={checkbox:Rx,radio:Ex,select:Px,text:Ix,textarea:Ox};function ds(e){var t=e,{fieldTypes:n={},flowId:r,part:i}=t,o=ie(t,["fieldTypes","flowId","part"]);let s=Object.assign({},_x,n);return C(Rn,G(D({flowId:r,part:["form",i]},o),{children:a=>C(wx,D({fieldTypes:s},a))}))}var Mx={};on(Mx,{NPS:()=>fs});function Dx({field:e,fieldData:t,submit:n}){var r,i;let o=[...Array(11)].map((s,a)=>{let l=e.value===a?yt.Primary:yt.Secondary;return C(l,{borderWidth:"1px",onClick:()=>{e.onChange(a),n()},title:`${a}`,css:{".fr-button-title":{fontSize:"15px"}}},a)});return ce(Ee.Column,{gap:2,children:[C(Ee.Row,{gap:2,part:"field-nps",css:{"@media (min-width: 660px)":{flexWrap:"nowrap",justifyContent:"space-between"},flexWrap:"wrap",justifyContent:"center"},children:o}),ce(Ee.Row,{justifyContent:"space-between",part:"field-nps-label",children:[C(Fe.Caption,{part:"field-nps-left-label",color:"neutral.400",children:(r=t.negativeLabel)!=null?r:"Not likely at all"}),C(Fe.Caption,{part:"field-nps-right-label",color:"neutral.400",children:(i=t.positiveLabel)!=null?i:"Extremely likely"})]})]})}function fs(e){var t=e,{as:n=Ue,flowId:r,fieldTypes:i,part:o}=t,s=ie(t,["as","flowId","fieldTypes","part"]);let{flow:a}=ua(r);return C(ds,D({alignSelf:"end",as:n,flowId:r,fieldTypes:D({nps:Dx},i),modal:!1,onEscapeKeyDown:l=>{typeof s.onEscapeKeyDown=="function"&&s.onEscapeKeyDown(l),l.defaultPrevented||a.skip()},part:["nps",o],css:G(D({},!a||a.getCurrentStepIndex()==0?{".fr-form-step-footer":{display:"none"}}:{}),{".fr-form":{padding:"20px","@media (min-width: 660px)":{minWidth:"600px"},minWidth:"100%"},".fr-form-step":{gap:"14px","@media (min-width: 660px)":{gap:"1"}}})},s))}function Lx(e,t){var n=e,{children:r,part:i}=n,o=ie(n,["children","part"]);return C(tf,{forwardProps:!0,ref:t,children:C(ae,G(D({backgroundColor:"black",inset:"0",opacity:"0.5",part:["overlay",i],position:"absolute"},o),{children:r}))})}var Of=b.forwardRef(Lx),Nx=nn({"0%":{opacity:.5,transform:"scale(0.5)"},"50%":{opacity:0,transform:"scale(1)"},"100%":{opacity:0,transform:"scale(1)"}});function Fx(e){var t=e,{part:n=""}=t,r=ie(t,["part"]);return ce(ae,G(D({borderRadius:"24px",height:"24px",part:`ping-wrapper ${n}`,position:"relative",width:"24px"},r),{children:[C(ae,{backgroundColor:"primary.surface",animation:`2s ease-out infinite ${Nx}`,borderRadius:"24px",height:"48px",left:"-12px",part:"ping-pulse",pointerEvents:"none",position:"absolute",top:"-12px",transformOrigin:"center center",width:"48px"}),C(ae,{backgroundColor:"primary.surface",borderRadius:"12px",height:"24px",left:"0",part:"ping",position:"absolute",top:"0",width:"24px"})]}))}function $x({maxX:e,maxY:t,radius:n,x1:r,x2:i,y1:o,y2:s}){return n>0?`path("${[`M${r+n},${o}`,`H${i-n}`,`A${n} ${n} 0,0,1 ${i} ${o+n}`,`V${s-n}`,`A${n} ${n} 0,0,1 ${i-n} ${s}`,`H${r+n}`,`A${n} ${n} 0,0,1 ${r} ${s-n}`,`V${t}`,`H${e}`,"V0","H0",`V${t}`,`H${r}`,`V${o+n}`,`A${n} ${n} 0,0,1 ${r+n} ${o}`,"Z"].join(" ")}")`:`path("M${r},${o} H${i} V${s} H${r} V${t} H${e} V0 H0 V${t} H${r} Z")`}function zx(e){if(!window||!("nodeType"in e))return 0;let t=Number(window.getComputedStyle(e).borderRadius.replace(/\D/g,""));return Number.isNaN(t)?0:t}function Bx(e){var t=e,{anchor:n,part:r,style:i={}}=t,o=ie(t,["anchor","part","style"]);let[s,a]=b.useState({maxX:0,maxY:0,radius:0,x1:0,x2:0,y1:0,y2:0}),{refs:l}=af({middleware:[{name:"clipPath",fn({elements:c,rects:p}){return a({maxX:c.floating.clientWidth,maxY:c.floating.clientHeight,radius:zx(c.reference),x1:p.reference.x,x2:p.reference.x+p.reference.width,y1:p.reference.y,y2:p.reference.y+p.reference.height}),{}}}],open:!0,placement:"top-center",transform:!1,whileElementsMounted:na});return b.useEffect(()=>{let c=document.querySelector(n);c!=null?l.setReference(c):console.debug(`[frigade] Spotlight: No anchor found for selector: ${n}`)},[n]),C(Of,D({part:["spotlight",r],ref:l.setFloating,style:D({clipPath:$x(s)},i)},o))}function jx({align:e,side:t}){let n={},r="-12px",i={top:"bottom",right:"left",bottom:"top",left:"right"};return n[i[t]]=r,["before","end"].includes(e)?["top","bottom"].includes(t)?n.right=r:n.bottom=r:["after","start"].includes(e)?["top","bottom"].includes(t)?n.left=r:n.top=r:["top","bottom"].includes(t)?n.left=`calc(50% + ${r})`:n.top=`calc(50% + ${r})`,n}function Vx(e){switch(e){case"after":return"end";case"before":return"start";default:return e}}function Hx({align:e,alignOffset:t,anchor:n,onOpenChange:r=()=>{},open:i,side:o,sideOffset:s}){let a=`${o}-${Vx(e)}`;function l({rects:w}){let S={alignmentAxis:t,mainAxis:s};return["after","before"].includes(e)&&(["bottom","top"].includes(o)?S.alignmentAxis=t-w.floating.width:S.alignmentAxis=t-w.floating.height),S}let{context:c,floatingStyles:p,placement:u,refs:v}=af({middleware:[ed(l),nd(),td()],onOpenChange:r,open:i,placement:a,whileElementsMounted:na}),g=Fw(c),m=Bw(c,{outsidePress:!1}),f=Ww(c),{getFloatingProps:y,getReferenceProps:d}=Vw([g,m,f]);b.useEffect(()=>{let w=document.querySelector(n);w!=null?v.setReference(w):console.debug(`[frigade] Hint: No anchor found for selector: ${n}`)},[n]);let h=u.split("-");return e==="before"?h[1]=h[1]==="end"?"after":"before":e==="after"&&(h[1]=h[1]==="start"?"before":"after"),{context:c,getFloatingProps:y,getReferenceProps:d,floatingStyles:p,placement:h.join("-"),refs:v}}function Wx(e){var t=e,{align:n="center",alignOffset:r=0,anchor:i,children:o,defaultOpen:s=!0,modal:a=!1,onOpenChange:l=()=>{},open:c,part:p,side:u="bottom",sideOffset:v=0,spotlight:g=!1,style:m={}}=t,f=ie(t,["align","alignOffset","anchor","children","defaultOpen","modal","onOpenChange","open","part","side","sideOffset","spotlight","style"]);let[y,d]=b.useState(s),h=c??y,{getFloatingProps:w,getReferenceProps:S,floatingStyles:x,placement:T,refs:A}=Hx({align:n,alignOffset:r,anchor:i,onOpenChange:R=>{l(R),c==null&&d(R)},open:h,side:u,sideOffset:v}),[k,_]=T.split("-"),z=S();return ce(Hi,{children:[g&&h&&C(Bx,{anchor:i}),a&&!g&&h&&C(Of,{lockScroll:!0}),ce(ae,G(D(D({part:["hint",p],ref:A.setFloating,style:D(D({},x),m)},w()),f),{children:[h&&o,C(Fx,G(D({},z),{position:"absolute",style:jx({align:_,side:k})}))]}))]})}var Gx=nn` from { opacity: 0; } 25% { opacity: 0; } to { opacity: 1; } `;function Xl(e){var t=e,{align:n,alignOffset:r,defaultOpen:i,dismissible:o,flow:s,handleDismiss:a,modal:l,onPrimary:c,onSecondary:p,part:u,side:v,sideOffset:g,spotlight:m,step:f}=t,y=ie(t,["align","alignOffset","defaultOpen","dismissible","flow","handleDismiss","modal","onPrimary","onSecondary","part","side","sideOffset","spotlight","step"]),d,h,w,S,x;let{handlePrimary:T,handleSecondary:A}=ro(f,{onPrimary:c,onSecondary:p}),k=(h=(d=f.primaryButton)==null?void 0:d.title)!=null?h:f.primaryButtonTitle,_=(S=(w=f.secondaryButton)==null?void 0:w.title)!=null?S:f.secondaryButtonTitle,z=!!f.$state.blocked;return C(Wx,G(D({align:n,alignOffset:r,anchor:f.selector,"data-step-id":f.id,defaultOpen:i,modal:l,part:u,side:v,sideOffset:g,spotlight:m},y),{children:ce(ue,{animation:`${Gx} 300ms ease-out`,boxShadow:"md",maxWidth:"min(360px, calc(100vw - 25px))",children:[C(ue.Media,{aspectRatio:"2",borderRadius:"md md 0 0",borderWidth:"0",margin:"-5 -5 0",objectFit:"cover",overflowClipMargin:"unset",src:(x=f.videoUri)!=null?x:f.imageUri,transform:"translate3d(0, 0, 1px)",type:f.videoUri?"video":"image"}),C(ue.Header,{css:{".fr-dismiss":{position:"absolute",right:"12px",top:"12px"}},dismissible:o,handleDismiss:a,subtitle:f.subtitle,title:f.title}),ce(ue.Footer,{children:[s.getNumberOfAvailableSteps()>1&&C(wf,{current:s.getCurrentStepOrder()+1,marginRight:"auto",total:s.getNumberOfAvailableSteps()}),C(ue.Secondary,{disabled:z,onClick:A,title:_}),C(ue.Primary,{disabled:z,onClick:T,title:k})]})]})}))}function Ux(e,t,n){let[r,i]=b.useState(!1),o=b.useRef();return b.useEffect(()=>{o.current=document.querySelector(t),i(!0)},[]),r?Zn.createPortal(e,o.current,n):null}function Yx(e){var t=e,{align:n="after",alignOffset:r=0,as:i,defaultOpen:o,dismissible:s=!1,flowId:a,modal:l,part:c,sequential:p=!0,side:u="bottom",sideOffset:v=0,spotlight:g,zIndex:m=9999}=t,f=ie(t,["align","alignOffset","as","defaultOpen","dismissible","flowId","modal","part","sequential","side","sideOffset","spotlight","zIndex"]);let{onDismiss:y,onPrimary:d,onSecondary:h}=f;return Ux(C(Rn,G(D({as:i,flowId:a,part:"tour"},f),{children:({flow:w,handleDismiss:S,parentProps:{containerProps:x},step:T})=>{var A,k,_,z;let R=D({align:n,alignOffset:r,dismissible:s,flow:w,handleDismiss:S,modal:l,onPrimary:d,onSecondary:h,part:c,side:u,sideOffset:v,spotlight:g,step:T,zIndex:(_=(k=(A=T.props)==null?void 0:A.zIndex)!=null?k:x==null?void 0:x.zIndex)!=null?_:m},(z=T.props)!=null?z:{});return p?C(Xl,D({defaultOpen:o??!0},R)):Array.from(w.steps.values()).filter(I=>{let{blocked:L,completed:N,skipped:j,visible:B}=I.$state;return!L&&!N&&!j&&B}).map(I=>{var L,N,j,B,V;function U(Re){return In(this,null,function*(){return(yield y==null?void 0:y(w,Re))===!1?(Re.preventDefault(),!1):(I.skip(),!0)})}let J=g&&I.id===T.id,ge=(j=(N=(L=I.props)==null?void 0:L.zIndex)!=null?N:x==null?void 0:x.zIndex)!=null?j:m,re=D({align:n,alignOffset:r,dismissible:s,flow:w,handleDismiss:U,onPrimary:d,onSecondary:h,part:c,side:u,sideOffset:v,spotlight:g,zIndex:ge},(B=I.props)!=null?B:{});return C(Xl,D({css:{"&:has([aria-expanded=true])":{zIndex:Number(ge)+2},".fr-overlay":{zIndex:Number(ge)+1},".fr-progress-fraction":{display:"none"}},defaultOpen:(V=o||J)!=null?V:!1,step:I},re),`${I.id}-${J}`)})}})),"body")}function qx(e){var t,n,r;let{frigade:i}=b.useContext(nr),[,o]=b.useState(!1),s,a=b.useCallback(u=>{i==null||i.getCollection(e).then(()=>{u()});let v=()=>{clearTimeout(s),s=setTimeout(()=>{o(g=>!g),u()},100)};return i==null||i.onStateChange(v),()=>{i==null||i.removeStateChangeHandler(v)}},[e]),l=b.useSyncExternalStore(a,()=>{let u;try{u=i==null?void 0:i.getCollectionSync(e)}catch{}return u},()=>{let u;try{u=i==null?void 0:i.getCollectionSync(e)}catch{}return u}),c=(r=((n=(t=l==null?void 0:l.flows)==null?void 0:t.map(u=>G(D({},u),{flow:i==null?void 0:i.getFlowSync(u.flowId)})))!=null?n:[]).find(({flow:u})=>u.isVisible))==null?void 0:r.flowId,{flow:p}=ua(c);return{collection:l,currentFlow:p}}function Xx(e){var t=e,{collectionId:n,part:r}=t,i=ie(t,["collectionId","part"]),o,s,a;let l={ANNOUNCEMENT:a0,BANNER:JS,CARD:ue,CHECKLIST:Af,EMBEDDED_TIP:ue,FORM:ds,NPS_SURVEY:fs,SURVEY:fs,TOUR:Yx},{currentFlow:c}=qx(n),p=(s=l[(o=c==null?void 0:c.rawData)==null?void 0:o.flowType])!=null?s:null;return c==null||p==null?null:((a=c==null?void 0:c.rawData)==null?void 0:a.flowType)===yi.FORM?C(ae,G(D({part:["collection",r],"data-collection-id":n},i),{children:C(ds,{flowId:c.id,as:Ue},c.id)})):C(ae,G(D({part:["collection",r],"data-collection-id":n},i),{children:C(p,{flowId:c.id},c.id)}))}function Rf(){let{frigade:e}=b.useContext(nr);return{frigade:e,isLoading:!(e!=null&&e.isReady())}}function Kx(){let[e,t]=b.useState(),{frigade:n}=Rf();return b.useEffect(()=>{n.getCollections().then(r=>{r==null||r.forEach((i,o)=>{i.collectionType==="DEFAULT"&&t(o)})})},[]),e==null?null:C(Xx,{as:null,collectionId:e})}var nr=b.createContext({apiKey:"",navigate:()=>{},hasInitialized:!1,registerComponent:()=>{},unregisterComponent:()=>{}});function Zx(){let{frigade:e}=Rf();return b.useEffect(()=>{In(this,null,function*(){(yield e.getFlows()).forEach(t=>{t.steps.forEach(n=>{if(n.imageUri){let r=new Image;r.src=n.imageUri}})})})},[]),null}var Jx="2.5.1";function WC(e){var t=e,{children:n,css:r={},defaultCollection:i=!0,navigate:o,theme:s}=t,a=ie(t,["children","css","defaultCollection","navigate","theme"]);let l=s?mf(s):{},c=b.useRef(new Map),p=b.useRef(),[u,v]=b.useState(!1),g=b.useMemo(()=>(v(!1),p.current=void 0,new bg(a.apiKey,{apiKey:a.apiKey,apiUrl:a.apiUrl,userId:a.userId,groupId:a.groupId,userProperties:a.userProperties,groupProperties:a.groupProperties,generateGuestId:a.generateGuestId,syncOnWindowUpdates:a.syncOnWindowUpdates,__readOnly:a.__readOnly,__flowStateOverrides:a.__flowStateOverrides,__platformVersion:Jx,__platformName:"React"})),[a.userId,a.groupId,a.apiKey]);b.useEffect(()=>{if(a.__flowStateOverrides){let h=g.getConfig();h.__flowStateOverrides=a.__flowStateOverrides,g.reload(h)}},[a.__flowStateOverrides]);function m(){let h=[...c.current.entries()].map(([w,S])=>[w,S.callback]);g.batchRegister(h),v(!0)}function f(h,w){if(p.current&&clearTimeout(p.current),u){c.current.has(h)?g.getFlow(h).then(S=>w(S.isVisible)):(g.getFlow(h).then(S=>S.register(w)),c.current.set(h,{callback:w}));return}c.current.has(h)||c.current.set(h,{callback:w}),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>m(),0)}function y(h){c.current.has(h)&&g.getFlow(h).then(w=>{c.current.delete(h),w==null||w.unregister()})}let d=o??((h,w="_self")=>{window.open(h,w)});return b.useEffect(()=>()=>{g.destroy()},[]),ce(nr.Provider,{value:G(D({navigate:d},a),{frigade:g,registerComponent:f,unregisterComponent:y,hasInitialized:u}),children:[C(Vp,{styles:{":root":D(D(D({},oS),l),r)}}),ce(zp,{theme:Oe,children:[i&&C(Kx,{}),n]}),a.preloadImages!==!1&&C(Zx,{})]})}function ua(e,t){let{frigade:n}=b.useContext(nr),[,r]=b.useState(!1),i=b.useCallback(s=>{n==null||n.getFlow(e).then(()=>{s()});let a=l=>{l.id===e&&setTimeout(()=>{r(c=>!c),s()},0)};return n==null||n.onStateChange(a),()=>{n==null||n.removeStateChangeHandler(a)}},[e]),o=b.useSyncExternalStore(i,()=>n==null?void 0:n.getFlowSync(e),()=>n==null?void 0:n.getFlowSync(e));return o!=null&&t!=null&&t.variables&&o.applyVariables(t.variables),{flow:o,isLoading:n!=null&&n.hasFailedToLoad()?!1:!o}}function Qx(e,{onComplete:t,onDismiss:n}={}){let r=b.useRef(null);return b.useEffect(()=>{e!=null&&(e.isCompleted&&r.current===!1&&In(this,null,function*(){yield t==null?void 0:t(e)}),r.current=e==null?void 0:e.isCompleted)},[e==null?void 0:e.isCompleted]),{handleDismiss:b.useCallback(i=>In(this,null,function*(){if((yield n==null?void 0:n(e,i))===!1)return i.preventDefault(),!1;e.skip()}),[e])}}var Yt=new Set;function e0(e,t=!0){let n=b.useCallback(()=>{Yt.has(e==null?void 0:e.id)&&Yt.delete(e==null?void 0:e.id)},[Yt,t]),r=b.useCallback(()=>{t&&e!=null&&e.isVisible&&!Yt.has(e.id)&&Yt.add(e.id)},[Yt,t]);b.useEffect(()=>()=>{n()},[]),e!=null&&e.isVisible?r():n();let i=Yt.size>0?Yt.values().next().value:null;return{isCurrentModal:t?i===(e==null?void 0:e.id)||Yt.size==0:!0}}function Rn(e){var t=e,{as:n,children:r,flowId:i,onComplete:o,onDismiss:s,onPrimary:a,onSecondary:l,variables:c}=t,p=ie(t,["as","children","flowId","onComplete","onDismiss","onPrimary","onSecondary","variables"]),u,v;let{flow:g}=ua(i,{variables:c}),m=D(D({},p),(u=g==null?void 0:g.props)!=null?u:{}),{dismissible:f=!1,forceMount:y=!1}=m,d=ie(m,["dismissible","forceMount"]),h=g==null?void 0:g.getCurrentStep(),{handleDismiss:w}=Qx(g,{onComplete:o,onDismiss:s}),{handlePrimary:S,handleSecondary:x}=ro(h,{onPrimary:a,onSecondary:l}),T=(d==null?void 0:d.modal)||typeof n=="function"&&(n==null?void 0:n.displayName)==="Dialog"||[yi.ANNOUNCEMENT,yi.TOUR].includes((v=g==null?void 0:g.rawData)==null?void 0:v.flowType),{isCurrentModal:A}=e0(g,T),k=y&&((g==null?void 0:g.isCompleted)||(g==null?void 0:g.isSkipped));if(!g||!g.isVisible&&!k||!k&&!A)return null;(k||!g.isCompleted&&!g.isSkipped)&&h.start();let _=n===null?b.Fragment:n??ae,z=G(D({},d),{"data-flow-id":g.id});return C(_,G(D({},n===null?{}:z),{children:r({flow:g,handleDismiss:w,handlePrimary:S,handleSecondary:x,parentProps:{dismissible:f,flowId:i,variables:c,containerProps:z},step:h})}))}function t0(e){var t=e,{part:n}=t,r=ie(t,["part"]);return C(Rn,G(D({as:ue,gap:5,borderColor:"neutral.border",borderStyle:"solid",borderWidth:"md",part:["card",n]},r),{children:({handleDismiss:i,handlePrimary:o,handleSecondary:s,parentProps:{dismissible:a},step:l})=>{var c,p,u,v;let g=(p=(c=l.primaryButton)==null?void 0:c.title)!=null?p:l.primaryButtonTitle,m=(v=(u=l.secondaryButton)==null?void 0:u.title)!=null?v:l.secondaryButtonTitle;return ce(Hi,{children:[C(ue.Header,{dismissible:a,handleDismiss:i,subtitle:l.subtitle,title:l.title}),C(ue.Media,{src:l.imageUri,css:{objectFit:"contain",width:"100%"}}),ce(Ee.Row,{gap:3,justifyContent:"flex-end",part:"card-footer",children:[C(ue.Secondary,{title:m,onClick:s}),C(ue.Primary,{title:g,onClick:o})]})]})}}))}function n0(e){var t=e,{part:n,src:r}=t,i=ie(t,["part","src"]);return C(ae,D({as:"img",maxWidth:"unset",part:["image",n],src:r},i))}function r0(e){var t,n,r,i,o;return e.includes("youtube")?`https://www.youtube.com/embed/${(t=e.split("v=")[1])==null?void 0:t.split("&")[0]}`:e.includes("youtu.be")?`https://www.youtube.com/embed/${(n=e.split("youtu.be/")[1])==null?void 0:n.split("&")[0]}`:e.includes("vimeo")?`https://player.vimeo.com/video/${(r=e.split("vimeo.com/")[1])==null?void 0:r.split("&")[0]}`:e.includes("wistia")?`https://fast.wistia.net/embed/iframe/${(i=e.split("wistia.com/medias/")[1])==null?void 0:i.split("&")[0]}`:e.includes("loom")?`https://loom.com/embed/${(o=e.split("loom.com/share/")[1])==null?void 0:o.split("&")[0]}?hideEmbedTopBar=true&hide_title=true&hide_share=true&hide_owner=true`:null}function i0(e){var t=e,{part:n,src:r}=t,i=ie(t,["part","src"]);let o=r0(r);return o?C(ae,D({allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,as:"iframe",backgroundColor:"neutral.100",borderWidth:"0",part:["video",n],src:o},i)):r!=null&&r.endsWith(".mp4")?C(ae,D({as:"video",controls:!0,part:["video",n],src:r},i)):(console.error(`Could not map videoUri ${r} to a known provider (Youtube, Vimeo, Wistia, Loom) or valid mp4 file.`),null)}function _f(e){var t=e,{src:n,type:r}=t,i=ie(t,["src","type"]);return C(r==="video"?i0:n0,D({src:n},i))}var ue=b.forwardRef((e,t)=>{var n=e,{children:r,flowId:i,part:o}=n,s=ie(n,["children","flowId","part"]),a;if(i!=null)return C(t0,D({flowId:i},s));let l=(a=s.as)!=null?a:Ee.Column;return C(l,G(D({backgroundColor:"neutral.background",borderColor:"neutral.border",borderStyle:"solid",borderRadius:"md",borderWidth:"0",gap:5,p:5,part:["card",o]},s),{ref:t,children:r}))});ue.Dismiss=e=>C(yt.Plain,G(D({part:"dismiss",padding:0},e),{children:C(df,{height:"20",fill:"currentColor"})}));ue.Footer=e=>{var t=e,{children:n,part:r}=t,i=ie(t,["children","part"]);return C(Ee.Row,G(D({alignItems:"center",gap:3,justifyContent:"flex-end",part:["card-footer",r]},i),{children:n}))};ue.Header=e=>{var t=e,{dismissible:n,handleDismiss:r,part:i,subtitle:o,title:s}=t,a=ie(t,["dismissible","handleDismiss","part","subtitle","title"]);return ce(Ee.Row,G(D({alignItems:"flex-start",flexWrap:"wrap",gap:1,part:["card-header",i]},a),{children:[C(ue.Title,{maxWidth:"calc(100% - 32px)",children:s}),n&&C(ue.Dismiss,{onClick:r,marginLeft:"auto"}),C(ue.Subtitle,{color:"neutral.400",flexBasis:"100%",children:o})]}))};ue.Media=e=>{var t=e,{src:n}=t,r=ie(t,["src"]);return n==null||(n==null?void 0:n.length)===0?null:C(_f,D({borderRadius:"md",src:n},r))};ue.Primary=e=>{var t=e,{onClick:n,title:r}=t,i=ie(t,["onClick","title"]);return r==null||(r==null?void 0:r.length)===0?null:C(yt.Primary,D({title:r,onClick:n},i))};ue.Secondary=e=>{var t=e,{onClick:n,title:r}=t,i=ie(t,["onClick","title"]);return r==null||(r==null?void 0:r.length)===0?null:C(yt.Secondary,D({title:r,onClick:n},i))};ue.Subtitle=e=>{var t=e,{children:n,part:r}=t,i=ie(t,["children","part"]);return n==null?null:C(Fe.Body2,G(D({display:"block",color:"neutral.400",part:["subtitle",r]},i),{children:n}))};ue.Title=e=>{var t=e,{children:n,part:r}=t,i=ie(t,["children","part"]);return n==null?null:C(Fe.H4,G(D({display:"block",part:["title",r]},i),{children:n}))};var oi={content:["onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","onInteractOutside"],root:["defaultOpen","modal","onOpenChange","open"]};function o0(e){let t=Object.fromEntries(oi.content.map(i=>[i,e[i]]).filter(i=>i[1]!==void 0)),n=Object.fromEntries(oi.root.map(i=>[i,e[i]]).filter(i=>i[1]!==void 0)),r={};for(let i of Object.keys(e))!oi.content.some(o=>o===i)&&!oi.root.some(o=>o===i)&&(r[i]=e[i]);return{contentProps:t,otherProps:r,rootProps:n}}var s0=nn` from { opacity: 0; } 25% { opacity: 0; } to { opacity: 1; } `;function Ue(e){var t=e,{children:n,className:r,modal:i=!0}=t,o=ie(t,["children","className","modal"]);let{rootProps:s,contentProps:a,otherProps:l}=o0(o),c=l,{zIndex:p}=c,u=ie(c,["zIndex"]);return C(ph,G(D({defaultOpen:!0,modal:i},s),{children:C(mh,{children:ce(ae,{animation:`${s0} 300ms ease-out`,className:r,display:"grid",inset:"0",padding:"6",part:"dialog-wrapper",pointerEvents:"none",position:"fixed",zIndex:p??10,children:[i&&C(hh,{asChild:!0,children:C(ae,{background:"rgb(0 0 0 / 0.5)",inset:"0",part:"dialog-overlay",position:"absolute"})}),C(gh,G(D({asChild:!0,onOpenAutoFocus:v=>v.preventDefault(),onPointerDownOutside:v=>v.preventDefault(),onInteractOutside:v=>v.preventDefault()},a),{children:C(ue,G(D({alignSelf:"center",boxShadow:"md",justifySelf:"center",maxHeight:"100%",maxWidth:"430px",overflowY:"auto",padding:8,part:"dialog",pointerEvents:"auto",position:"relative"},u),{children:n}))}))]})})}))}Ue.Dismiss=e=>C(yh,{"aria-label":"Close",asChild:!0,children:C(yt.Plain,G(D({part:"close",position:"absolute",right:"2px",top:"2px"},e),{children:C(df,{height:"20",fill:"currentColor"})}))});Ue.Subtitle=e=>{var t=e,{children:n}=t,r=ie(t,["children"]);return C(vh,{asChild:!0,children:C(Fe.Body2,G(D({part:"subtitle"},r),{children:n}))})};Ue.Media=e=>{var t=e,{src:n}=t,r=ie(t,["src"]);return n==null?null:C(_f,D({borderRadius:"md",src:n},r))};Ue.Primary=e=>{var t=e,{onClick:n,title:r}=t,i=ie(t,["onClick","title"]);return r==null?null:C(yt.Primary,D({title:r,onClick:n},i))};Ue.ProgressDots=({current:e,total:t})=>{if(t==1)return null;let n=[...Array(t)].map((r,i)=>C(ae,{as:"circle",r:4,cx:4+16*i,cy:"4px",fill:e===i?Oe.colors.primary.surface:Oe.colors.neutral[700],part:e===i?"progress-dot-selected":"progress-dot"},i));return C(ae,{as:"svg",height:"8px",marginInline:"auto",part:"progress",viewBox:`0 0 ${16*t-8} 8`,width:16*t-8,children:n})};Ue.Secondary=e=>{var t=e,{onClick:n,title:r}=t,i=ie(t,["onClick","title"]);return r==null?null:C(yt.Secondary,D({title:r,onClick:n},i))};Ue.Title=e=>{var t=e,{children:n}=t,r=ie(t,["children"]);return C(bh,{asChild:!0,children:C(Fe.H4,G(D({part:"title"},r),{children:n}))})};Ue.displayName="Dialog";var Kl=["dismissible","flowId","forceMount","onComplete","onDismiss","onPrimary","onSecondary","variables"];function a0(e){var t=e,{flowId:n,part:r}=t,i=ie(t,["flowId","part"]);let o=Object.fromEntries(Object.entries(i).filter(([a])=>Kl.some(l=>a===l))),s=Object.fromEntries(Object.entries(i).filter(([a])=>Kl.indexOf(a)===-1));return C(Rn,G(D({as:null,flowId:n},o),{children:({flow:a,handleDismiss:l,handlePrimary:c,handleSecondary:p,parentProps:{containerProps:u,dismissible:v},step:g})=>{var m,f,y,d,h,w;let S=(m=g.props)!=null?m:{},x=(y=(f=g.primaryButton)==null?void 0:f.title)!=null?y:g.primaryButtonTitle,T=(h=(d=g.secondaryButton)==null?void 0:d.title)!=null?h:g.secondaryButtonTitle,A=g.$state.blocked;return C(Ue,G(D(D({part:["announcement",r],textAlign:"center"},u),s),{onEscapeKeyDown:k=>{if(i.dismissible===!1){k.preventDefault();return}typeof i.onEscapeKeyDown=="function"&&i.onEscapeKeyDown(k),k.defaultPrevented||l(k)},children:ce(Ee.Column,G(D({gap:5,part:"announcement-step"},S),{children:[v&&C(Ue.Dismiss,{onClick:l}),ce(Ee.Column,{gap:1,part:"announcement-header",children:[C(Ue.Title,{children:g.title}),C(Ue.Subtitle,{children:g.subtitle})]}),C(Ue.Media,{aspectRatio:"1.5",objectFit:"cover",overflowClipMargin:"unset",src:(w=g.videoUri)!=null?w:g.imageUri,transform:"translate3d(0, 0, 1px)",type:g.videoUri?"video":"image",width:"100%"}),C(Ue.ProgressDots,{current:a.getCurrentStepIndex(),total:a.getNumberOfAvailableSteps()}),ce(Ee.Row,{css:{"& > button":{flexBasis:"50%",flexGrow:1}},gap:3,part:"announcement-footer",children:[T&&C(Ue.Secondary,{disabled:A,onClick:p,title:T}),x&&C(Ue.Primary,{disabled:A,onClick:c,title:x})]})]}))}))}}))}nn({"0%":{opacity:.5,transform:"scale(0.5)"},"50%":{opacity:0,transform:"scale(1)"},"100%":{opacity:0,transform:"scale(1)"}});nn` from { opacity: 0; } 25% { opacity: 0; } to { opacity: 1; } `;function Zl(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function da(e={},t={}){Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:Zl(t[n])&&Zl(e[n])&&Object.keys(t[n]).length>0&&da(e[n],t[n])})}const Mf={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Rt(){const e=typeof document<"u"?document:{};return da(e,Mf),e}const l0={document:Mf,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function pt(){const e=typeof window<"u"?window:{};return da(e,l0),e}function c0(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function Rr(e,t=0){return setTimeout(e,t)}function Xt(){return Date.now()}function u0(e){const t=pt();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function d0(e,t="x"){const n=pt();let r,i,o;const s=u0(e);return n.WebKitCSSMatrix?(i=s.transform||s.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(a=>a.replace(",",".")).join(", ")),o=new n.WebKitCSSMatrix(i==="none"?"":i)):(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=o.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=o.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function vr(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function f0(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function mt(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){const i=e[r];if(i!=null&&!f0(i)){const o=Object.keys(Object(i)).filter(s=>n.indexOf(s)<0);for(let s=0,a=o.length;s<a;s+=1){const l=o[s],c=Object.getOwnPropertyDescriptor(i,l);c!==void 0&&c.enumerable&&(vr(t[l])&&vr(i[l])?i[l].__swiper__?t[l]=i[l]:mt(t[l],i[l]):!vr(t[l])&&vr(i[l])?(t[l]={},i[l].__swiper__?t[l]=i[l]:mt(t[l],i[l])):t[l]=i[l])}}}return t}function si(e,t,n){e.style.setProperty(t,n)}function Df({swiper:e,targetPosition:t,side:n}){const r=pt(),i=-e.translate;let o=null,s;const a=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const l=t>i?"next":"prev",c=(u,v)=>l==="next"&&u>=v||l==="prev"&&u<=v,p=()=>{s=new Date().getTime(),o===null&&(o=s);const u=Math.max(Math.min((s-o)/a,1),0),v=.5-Math.cos(u*Math.PI)/2;let g=i+v*(t-i);if(c(g,t)&&(g=t),e.wrapperEl.scrollTo({[n]:g}),c(g,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:g})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(p)};p()}function It(e,t=""){return[...e.children].filter(n=>n.matches(t))}function Lf(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function p0(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function m0(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function pn(e,t){return pt().getComputedStyle(e,null).getPropertyValue(t)}function Di(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Nf(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function ps(e,t,n){const r=pt();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}let Ro;function h0(){const e=pt(),t=Rt();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Ff(){return Ro||(Ro=h0()),Ro}let _o;function g0({userAgent:e}={}){const t=Ff(),n=pt(),r=n.navigator.platform,i=e||n.navigator.userAgent,o={ios:!1,android:!1},s=n.screen.width,a=n.screen.height,l=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad).*OS\s([\d_]+)/);const p=i.match(/(iPod)(.*OS\s([\d_]+))?/),u=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),v=r==="Win32";let g=r==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&g&&t.touch&&m.indexOf(`${s}x${a}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),g=!1),l&&!v&&(o.os="android",o.android=!0),(c||u||p)&&(o.os="ios",o.ios=!0),o}function b0(e={}){return _o||(_o=g0(e)),_o}let Mo;function v0(){const e=pt();let t=!1;function n(){const r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(n()){const r=String(e.navigator.userAgent);if(r.includes("Version/")){const[i,o]=r.split("Version/")[1].split(" ")[0].split(".").map(s=>Number(s));t=i<16||i===16&&o<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function y0(){return Mo||(Mo=v0()),Mo}function w0({swiper:e,on:t,emit:n}){const r=pt();let i=null,o=null;const s=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},a=()=>{!e||e.destroyed||!e.initialized||(i=new ResizeObserver(p=>{o=r.requestAnimationFrame(()=>{const{width:u,height:v}=e;let g=u,m=v;p.forEach(({contentBoxSize:f,contentRect:y,target:d})=>{d&&d!==e.el||(g=y?y.width:(f[0]||f).inlineSize,m=y?y.height:(f[0]||f).blockSize)}),(g!==u||m!==v)&&s()})}),i.observe(e.el))},l=()=>{o&&r.cancelAnimationFrame(o),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},c=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){a();return}r.addEventListener("resize",s),r.addEventListener("orientationchange",c)}),t("destroy",()=>{l(),r.removeEventListener("resize",s),r.removeEventListener("orientationchange",c)})}function S0({swiper:e,extendParams:t,on:n,emit:r}){const i=[],o=pt(),s=(c,p={})=>{const u=o.MutationObserver||o.WebkitMutationObserver,v=new u(g=>{if(e.__preventObserver__)return;if(g.length===1){r("observerUpdate",g[0]);return}const m=function(){r("observerUpdate",g[0])};o.requestAnimationFrame?o.requestAnimationFrame(m):o.setTimeout(m,0)});v.observe(c,{attributes:typeof p.attributes>"u"?!0:p.attributes,childList:typeof p.childList>"u"?!0:p.childList,characterData:typeof p.characterData>"u"?!0:p.characterData}),i.push(v)},a=()=>{if(e.params.observer){if(e.params.observeParents){const c=Nf(e.el);for(let p=0;p<c.length;p+=1)s(c[p])}s(e.el,{childList:e.params.observeSlideChildren}),s(e.wrapperEl,{attributes:!1})}},l=()=>{i.forEach(c=>{c.disconnect()}),i.splice(0,i.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",a),n("destroy",l)}const x0={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=n?"unshift":"push";return e.split(" ").forEach(o=>{r.eventsListeners[o]||(r.eventsListeners[o]=[]),r.eventsListeners[o][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function i(...o){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,o)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,o)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(o,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,i;return typeof e[0]=="string"||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=t):(n=e[0].events,r=e[0].data,i=e[0].context||t),r.unshift(i),(Array.isArray(n)?n:n.split(" ")).forEach(s=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(a=>{a.apply(i,[s,...r])}),t.eventsListeners&&t.eventsListeners[s]&&t.eventsListeners[s].forEach(a=>{a.apply(i,r)})}),t}};function C0(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(pn(r,"padding-left")||0,10)-parseInt(pn(r,"padding-right")||0,10),n=n-parseInt(pn(r,"padding-top")||0,10)-parseInt(pn(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function E0(){const e=this;function t(R){return e.isHorizontal()?R:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[R]}function n(R,I){return parseFloat(R.getPropertyValue(t(I))||0)}const r=e.params,{wrapperEl:i,slidesEl:o,size:s,rtlTranslate:a,wrongRTL:l}=e,c=e.virtual&&r.virtual.enabled,p=c?e.virtual.slides.length:e.slides.length,u=It(o,`.${e.params.slideClass}, swiper-slide`),v=c?e.virtual.slides.length:u.length;let g=[];const m=[],f=[];let y=r.slidesOffsetBefore;typeof y=="function"&&(y=r.slidesOffsetBefore.call(e));let d=r.slidesOffsetAfter;typeof d=="function"&&(d=r.slidesOffsetAfter.call(e));const h=e.snapGrid.length,w=e.slidesGrid.length;let S=r.spaceBetween,x=-y,T=0,A=0;if(typeof s>"u")return;typeof S=="string"&&S.indexOf("%")>=0?S=parseFloat(S.replace("%",""))/100*s:typeof S=="string"&&(S=parseFloat(S)),e.virtualSize=-S,u.forEach(R=>{a?R.style.marginLeft="":R.style.marginRight="",R.style.marginBottom="",R.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(si(i,"--swiper-centered-offset-before",""),si(i,"--swiper-centered-offset-after",""));const k=r.grid&&r.grid.rows>1&&e.grid;k&&e.grid.initSlides(v);let _;const z=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(R=>typeof r.breakpoints[R].slidesPerView<"u").length>0;for(let R=0;R<v;R+=1){_=0;let I;if(u[R]&&(I=u[R]),k&&e.grid.updateSlide(R,I,v,t),!(u[R]&&pn(I,"display")==="none")){if(r.slidesPerView==="auto"){z&&(u[R].style[t("width")]="");const L=getComputedStyle(I),N=I.style.transform,j=I.style.webkitTransform;if(N&&(I.style.transform="none"),j&&(I.style.webkitTransform="none"),r.roundLengths)_=e.isHorizontal()?ps(I,"width"):ps(I,"height");else{const B=n(L,"width"),V=n(L,"padding-left"),U=n(L,"padding-right"),J=n(L,"margin-left"),ge=n(L,"margin-right"),re=L.getPropertyValue("box-sizing");if(re&&re==="border-box")_=B+J+ge;else{const{clientWidth:Re,offsetWidth:ve}=I;_=B+V+U+J+ge+(ve-Re)}}N&&(I.style.transform=N),j&&(I.style.webkitTransform=j),r.roundLengths&&(_=Math.floor(_))}else _=(s-(r.slidesPerView-1)*S)/r.slidesPerView,r.roundLengths&&(_=Math.floor(_)),u[R]&&(u[R].style[t("width")]=`${_}px`);u[R]&&(u[R].swiperSlideSize=_),f.push(_),r.centeredSlides?(x=x+_/2+T/2+S,T===0&&R!==0&&(x=x-s/2-S),R===0&&(x=x-s/2-S),Math.abs(x)<1/1e3&&(x=0),r.roundLengths&&(x=Math.floor(x)),A%r.slidesPerGroup===0&&g.push(x),m.push(x)):(r.roundLengths&&(x=Math.floor(x)),(A-Math.min(e.params.slidesPerGroupSkip,A))%e.params.slidesPerGroup===0&&g.push(x),m.push(x),x=x+_+S),e.virtualSize+=_+S,T=_,A+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+d,a&&l&&(r.effect==="slide"||r.effect==="coverflow")&&(i.style.width=`${e.virtualSize+S}px`),r.setWrapperSize&&(i.style[t("width")]=`${e.virtualSize+S}px`),k&&e.grid.updateWrapperSize(_,g,t),!r.centeredSlides){const R=[];for(let I=0;I<g.length;I+=1){let L=g[I];r.roundLengths&&(L=Math.floor(L)),g[I]<=e.virtualSize-s&&R.push(L)}g=R,Math.floor(e.virtualSize-s)-Math.floor(g[g.length-1])>1&&g.push(e.virtualSize-s)}if(c&&r.loop){const R=f[0]+S;if(r.slidesPerGroup>1){const I=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),L=R*r.slidesPerGroup;for(let N=0;N<I;N+=1)g.push(g[g.length-1]+L)}for(let I=0;I<e.virtual.slidesBefore+e.virtual.slidesAfter;I+=1)r.slidesPerGroup===1&&g.push(g[g.length-1]+R),m.push(m[m.length-1]+R),e.virtualSize+=R}if(g.length===0&&(g=[0]),S!==0){const R=e.isHorizontal()&&a?"marginLeft":t("marginRight");u.filter((I,L)=>!r.cssMode||r.loop?!0:L!==u.length-1).forEach(I=>{I.style[R]=`${S}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let R=0;f.forEach(L=>{R+=L+(S||0)}),R-=S;const I=R-s;g=g.map(L=>L<=0?-y:L>I?I+d:L)}if(r.centerInsufficientSlides){let R=0;if(f.forEach(I=>{R+=I+(S||0)}),R-=S,R<s){const I=(s-R)/2;g.forEach((L,N)=>{g[N]=L-I}),m.forEach((L,N)=>{m[N]=L+I})}}if(Object.assign(e,{slides:u,snapGrid:g,slidesGrid:m,slidesSizesGrid:f}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){si(i,"--swiper-centered-offset-before",`${-g[0]}px`),si(i,"--swiper-centered-offset-after",`${e.size/2-f[f.length-1]/2}px`);const R=-e.snapGrid[0],I=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(L=>L+R),e.slidesGrid=e.slidesGrid.map(L=>L+I)}if(v!==p&&e.emit("slidesLengthChange"),g.length!==h&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),m.length!==w&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!c&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const R=`${r.containerModifierClass}backface-hidden`,I=e.el.classList.contains(R);v<=r.maxBackfaceHiddenSlides?I||e.el.classList.add(R):I&&e.el.classList.remove(R)}}function k0(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i=0,o;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const s=a=>r?t.slides[t.getSlideIndexByData(a)]:t.slides[a];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(a=>{n.push(a)});else for(o=0;o<Math.ceil(t.params.slidesPerView);o+=1){const a=t.activeIndex+o;if(a>t.slides.length&&!r)break;n.push(s(a))}else n.push(s(t.activeIndex));for(o=0;o<n.length;o+=1)if(typeof n[o]<"u"){const a=n[o].offsetHeight;i=a>i?a:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function T0(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}function A0(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:o}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let s=-e;i&&(s=e),r.forEach(l=>{l.classList.remove(n.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l<r.length;l+=1){const c=r[l];let p=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(p-=r[0].swiperSlideOffset);const u=(s+(n.centeredSlides?t.minTranslate():0)-p)/(c.swiperSlideSize+a),v=(s-o[0]+(n.centeredSlides?t.minTranslate():0)-p)/(c.swiperSlideSize+a),g=-(s-p),m=g+t.slidesSizesGrid[l];(g>=0&&g<t.size-1||m>1&&m<=t.size||g<=0&&m>=t.size)&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(l),r[l].classList.add(n.slideVisibleClass)),c.progress=i?-u:u,c.originalProgress=i?-v:v}}function P0(e){const t=this;if(typeof e>"u"){const p=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*p||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:s,progressLoop:a}=t;const l=o,c=s;if(r===0)i=0,o=!0,s=!0;else{i=(e-t.minTranslate())/r;const p=Math.abs(e-t.minTranslate())<1,u=Math.abs(e-t.maxTranslate())<1;o=p||i<=0,s=u||i>=1,p&&(i=0),u&&(i=1)}if(n.loop){const p=t.getSlideIndexByData(0),u=t.getSlideIndexByData(t.slides.length-1),v=t.slidesGrid[p],g=t.slidesGrid[u],m=t.slidesGrid[t.slidesGrid.length-1],f=Math.abs(e);f>=v?a=(f-v)/m:a=(f+m-g)/m,a>1&&(a-=1)}Object.assign(t,{progress:i,progressLoop:a,isBeginning:o,isEnd:s}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),s&&!c&&t.emit("reachEnd toEdge"),(l&&!o||c&&!s)&&t.emit("fromEdge"),t.emit("progress",i)}function I0(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,o=e.virtual&&n.virtual.enabled,s=l=>It(r,`.${n.slideClass}${l}, swiper-slide${l}`)[0];t.forEach(l=>{l.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let a;if(o)if(n.loop){let l=i-e.virtual.slidesBefore;l<0&&(l=e.virtual.slides.length+l),l>=e.virtual.slides.length&&(l-=e.virtual.slides.length),a=s(`[data-swiper-slide-index="${l}"]`)}else a=s(`[data-swiper-slide-index="${i}"]`);else a=t[i];if(a){a.classList.add(n.slideActiveClass);let l=m0(a,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!l&&(l=t[0]),l&&l.classList.add(n.slideNextClass);let c=p0(a,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!c===0&&(c=t[t.length-1]),c&&c.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}const mi=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){const i=r.querySelector(`.${e.params.lazyPreloaderClass}`);i&&i.remove()}},Do=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},ms=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const s=i,a=[s-t];a.push(...Array.from({length:t}).map((l,c)=>s+r+c)),e.slides.forEach((l,c)=>{a.includes(l.column)&&Do(e,c)});return}const o=i+r-1;if(e.params.rewind||e.params.loop)for(let s=i-t;s<=o+t;s+=1){const a=(s%n+n)%n;(a<i||a>o)&&Do(e,a)}else for(let s=Math.max(i-t,0);s<=Math.min(o+t,n-1);s+=1)s!==i&&(s>o||s<i)&&Do(e,s)};function O0(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let o=0;o<t.length;o+=1)typeof t[o+1]<"u"?r>=t[o]&&r<t[o+1]-(t[o+1]-t[o])/2?i=o:r>=t[o]&&r<t[o+1]&&(i=o+1):r>=t[o]&&(i=o);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function R0(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:o,realIndex:s,snapIndex:a}=t;let l=e,c;const p=v=>{let g=v-t.virtual.slidesBefore;return g<0&&(g=t.virtual.slides.length+g),g>=t.virtual.slides.length&&(g-=t.virtual.slides.length),g};if(typeof l>"u"&&(l=O0(t)),r.indexOf(n)>=0)c=r.indexOf(n);else{const v=Math.min(i.slidesPerGroupSkip,l);c=v+Math.floor((l-v)/i.slidesPerGroup)}if(c>=r.length&&(c=r.length-1),l===o){c!==a&&(t.snapIndex=c,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=p(l));return}let u;t.virtual&&i.virtual.enabled&&i.loop?u=p(l):t.slides[l]?u=parseInt(t.slides[l].getAttribute("data-swiper-slide-index")||l,10):u=l,Object.assign(t,{previousSnapIndex:a,snapIndex:c,previousRealIndex:s,realIndex:u,previousIndex:o,activeIndex:l}),t.initialized&&ms(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),s!==u&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function _0(e){const t=this,n=t.params,r=e.closest(`.${n.slideClass}, swiper-slide`);let i=!1,o;if(r){for(let s=0;s<t.slides.length;s+=1)if(t.slides[s]===r){i=!0,o=s;break}}if(r&&i)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=o;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}const M0={updateSize:C0,updateSlides:E0,updateAutoHeight:k0,updateSlidesOffset:T0,updateSlidesProgress:A0,updateProgress:P0,updateSlidesClasses:I0,updateActiveIndex:R0,updateClickedSlide:_0};function D0(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:r,translate:i,wrapperEl:o}=t;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;let s=d0(o,e);return s+=t.cssOverflowAdjustment(),r&&(s=-s),s||0}function L0(e,t){const n=this,{rtlTranslate:r,params:i,wrapperEl:o,progress:s}=n;let a=0,l=0;const c=0;n.isHorizontal()?a=r?-e:e:l=e,i.roundLengths&&(a=Math.floor(a),l=Math.floor(l)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?a:l,i.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-a:-l:i.virtualTranslate||(n.isHorizontal()?a-=n.cssOverflowAdjustment():l-=n.cssOverflowAdjustment(),o.style.transform=`translate3d(${a}px, ${l}px, ${c}px)`);let p;const u=n.maxTranslate()-n.minTranslate();u===0?p=0:p=(e-n.minTranslate())/u,p!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function N0(){return-this.snapGrid[0]}function F0(){return-this.snapGrid[this.snapGrid.length-1]}function $0(e=0,t=this.params.speed,n=!0,r=!0,i){const o=this,{params:s,wrapperEl:a}=o;if(o.animating&&s.preventInteractionOnTransition)return!1;const l=o.minTranslate(),c=o.maxTranslate();let p;if(r&&e>l?p=l:r&&e<c?p=c:p=e,o.updateProgress(p),s.cssMode){const u=o.isHorizontal();if(t===0)a[u?"scrollLeft":"scrollTop"]=-p;else{if(!o.support.smoothScroll)return Df({swiper:o,targetPosition:-p,side:u?"left":"top"}),!0;a.scrollTo({[u?"left":"top"]:-p,behavior:"smooth"})}return!0}return t===0?(o.setTransition(0),o.setTranslate(p),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(p),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(v){!o||o.destroyed||v.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}const z0={getTranslate:D0,setTranslate:L0,minTranslate:N0,maxTranslate:F0,translateTo:$0};function B0(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`),n.emit("setTransition",e,t)}function $f({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:i,previousIndex:o}=e;let s=n;if(s||(i>o?s="next":i<o?s="prev":s="reset"),e.emit(`transition${r}`),t&&i!==o){if(s==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),s==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function j0(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),$f({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function V0(e=!0,t){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),$f({swiper:n,runCallbacks:e,direction:t,step:"End"}))}const H0={setTransition:B0,transitionStart:j0,transitionEnd:V0};function W0(e=0,t=this.params.speed,n=!0,r,i){typeof e=="string"&&(e=parseInt(e,10));const o=this;let s=e;s<0&&(s=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:p,activeIndex:u,rtlTranslate:v,wrapperEl:g,enabled:m}=o;if(o.animating&&a.preventInteractionOnTransition||!m&&!r&&!i)return!1;const f=Math.min(o.params.slidesPerGroupSkip,s);let y=f+Math.floor((s-f)/o.params.slidesPerGroup);y>=l.length&&(y=l.length-1);const d=-l[y];if(a.normalizeSlideIndex)for(let w=0;w<c.length;w+=1){const S=-Math.floor(d*100),x=Math.floor(c[w]*100),T=Math.floor(c[w+1]*100);typeof c[w+1]<"u"?S>=x&&S<T-(T-x)/2?s=w:S>=x&&S<T&&(s=w+1):S>=x&&(s=w)}if(o.initialized&&s!==u&&(!o.allowSlideNext&&(v?d>o.translate&&d>o.minTranslate():d<o.translate&&d<o.minTranslate())||!o.allowSlidePrev&&d>o.translate&&d>o.maxTranslate()&&(u||0)!==s))return!1;s!==(p||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(d);let h;if(s>u?h="next":s<u?h="prev":h="reset",v&&-d===o.translate||!v&&d===o.translate)return o.updateActiveIndex(s),a.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),a.effect!=="slide"&&o.setTranslate(d),h!=="reset"&&(o.transitionStart(n,h),o.transitionEnd(n,h)),!1;if(a.cssMode){const w=o.isHorizontal(),S=v?d:-d;if(t===0){const x=o.virtual&&o.params.virtual.enabled;x&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),x&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{g[w?"scrollLeft":"scrollTop"]=S})):g[w?"scrollLeft":"scrollTop"]=S,x&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return Df({swiper:o,targetPosition:S,side:w?"left":"top"}),!0;g.scrollTo({[w?"left":"top"]:S,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(d),o.updateActiveIndex(s),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,h),t===0?o.transitionEnd(n,h):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(S){!o||o.destroyed||S.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,h))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function G0(e=0,t=this.params.speed,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const i=this;let o=e;return i.params.loop&&(i.virtual&&i.params.virtual.enabled?o=o+i.virtual.slidesBefore:o=i.getSlideIndexByData(o)),i.slideTo(o,t,n,r)}function U0(e=this.params.speed,t=!0,n){const r=this,{enabled:i,params:o,animating:s}=r;if(!i)return r;let a=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(a=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<o.slidesPerGroupSkip?1:a,c=r.virtual&&o.virtual.enabled;if(o.loop){if(s&&!c&&o.loopPreventsSliding)return!1;r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)}function Y0(e=this.params.speed,t=!0,n){const r=this,{params:i,snapGrid:o,slidesGrid:s,rtlTranslate:a,enabled:l,animating:c}=r;if(!l)return r;const p=r.virtual&&i.virtual.enabled;if(i.loop){if(c&&!p&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const u=a?r.translate:-r.translate;function v(d){return d<0?-Math.floor(Math.abs(d)):Math.floor(d)}const g=v(u),m=o.map(d=>v(d));let f=o[m.indexOf(g)-1];if(typeof f>"u"&&i.cssMode){let d;o.forEach((h,w)=>{g>=h&&(d=w)}),typeof d<"u"&&(f=o[d>0?d-1:d])}let y=0;if(typeof f<"u"&&(y=s.indexOf(f),y<0&&(y=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(y=y-r.slidesPerViewDynamic("previous",!0)+1,y=Math.max(y,0))),i.rewind&&r.isBeginning){const d=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(d,e,t,n)}return r.slideTo(y,e,t,n)}function q0(e=this.params.speed,t=!0,n){const r=this;return r.slideTo(r.activeIndex,e,t,n)}function X0(e=this.params.speed,t=!0,n,r=.5){const i=this;let o=i.activeIndex;const s=Math.min(i.params.slidesPerGroupSkip,o),a=s+Math.floor((o-s)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[a]){const c=i.snapGrid[a],p=i.snapGrid[a+1];l-c>(p-c)*r&&(o+=i.params.slidesPerGroup)}else{const c=i.snapGrid[a-1],p=i.snapGrid[a];l-c<=(p-c)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)}function K0(){const e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex,o;const s=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;o=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?i<e.loopedSlides-r/2||i>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),i=e.getSlideIndex(It(n,`${s}[data-swiper-slide-index="${o}"]`)[0]),Rr(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-r?(e.loopFix(),i=e.getSlideIndex(It(n,`${s}[data-swiper-slide-index="${o}"]`)[0]),Rr(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}const Z0={slideTo:W0,slideToLoop:G0,slideNext:U0,slidePrev:Y0,slideReset:q0,slideToClosest:X0,slideToClickedSlide:K0};function J0(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;It(r,`.${n.slideClass}, swiper-slide`).forEach((o,s)=>{o.setAttribute("data-swiper-slide-index",s)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function Q0({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:i,byController:o,byMousewheel:s}={}){const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:l,allowSlidePrev:c,allowSlideNext:p,slidesEl:u,params:v}=a;if(a.allowSlidePrev=!0,a.allowSlideNext=!0,a.virtual&&v.virtual.enabled){t&&(!v.centeredSlides&&a.snapIndex===0?a.slideTo(a.virtual.slides.length,0,!1,!0):v.centeredSlides&&a.snapIndex<v.slidesPerView?a.slideTo(a.virtual.slides.length+a.snapIndex,0,!1,!0):a.snapIndex===a.snapGrid.length-1&&a.slideTo(a.virtual.slidesBefore,0,!1,!0)),a.allowSlidePrev=c,a.allowSlideNext=p,a.emit("loopFix");return}const g=v.slidesPerView==="auto"?a.slidesPerViewDynamic():Math.ceil(parseFloat(v.slidesPerView,10));let m=v.loopedSlides||g;m%v.slidesPerGroup!==0&&(m+=v.slidesPerGroup-m%v.slidesPerGroup),a.loopedSlides=m;const f=[],y=[];let d=a.activeIndex;typeof i>"u"?i=a.getSlideIndex(a.slides.filter(T=>T.classList.contains(v.slideActiveClass))[0]):d=i;const h=n==="next"||!n,w=n==="prev"||!n;let S=0,x=0;if(i<m){S=Math.max(m-i,v.slidesPerGroup);for(let T=0;T<m-i;T+=1){const A=T-Math.floor(T/l.length)*l.length;f.push(l.length-A-1)}}else if(i>a.slides.length-m*2){x=Math.max(i-(a.slides.length-m*2),v.slidesPerGroup);for(let T=0;T<x;T+=1){const A=T-Math.floor(T/l.length)*l.length;y.push(A)}}if(w&&f.forEach(T=>{a.slides[T].swiperLoopMoveDOM=!0,u.prepend(a.slides[T]),a.slides[T].swiperLoopMoveDOM=!1}),h&&y.forEach(T=>{a.slides[T].swiperLoopMoveDOM=!0,u.append(a.slides[T]),a.slides[T].swiperLoopMoveDOM=!1}),a.recalcSlides(),v.slidesPerView==="auto"&&a.updateSlides(),v.watchSlidesProgress&&a.updateSlidesOffset(),t){if(f.length>0&&w)if(typeof e>"u"){const T=a.slidesGrid[d],k=a.slidesGrid[d+S]-T;s?a.setTranslate(a.translate-k):(a.slideTo(d+S,0,!1,!0),r&&(a.touches[a.isHorizontal()?"startX":"startY"]+=k))}else r&&a.slideToLoop(e,0,!1,!0);else if(y.length>0&&h)if(typeof e>"u"){const T=a.slidesGrid[d],k=a.slidesGrid[d-x]-T;s?a.setTranslate(a.translate-k):(a.slideTo(d-x,0,!1,!0),r&&(a.touches[a.isHorizontal()?"startX":"startY"]+=k))}else a.slideToLoop(e,0,!1,!0)}if(a.allowSlidePrev=c,a.allowSlideNext=p,a.controller&&a.controller.control&&!o){const T={slideRealIndex:e,slideTo:!1,direction:n,setTranslate:r,activeSlideIndex:i,byController:!0};Array.isArray(a.controller.control)?a.controller.control.forEach(A=>{!A.destroyed&&A.params.loop&&A.loopFix(T)}):a.controller.control instanceof a.constructor&&a.controller.control.params.loop&&a.controller.control.loopFix(T)}a.emit("loopFix")}function eC(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(i=>{const o=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;r[o]=i}),e.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),r.forEach(i=>{n.append(i)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}const tC={loopCreate:J0,loopFix:Q0,loopDestroy:eC};function nC(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function rC(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}const iC={setGrabCursor:nC,unsetGrabCursor:rC};function oC(e,t=this){function n(r){if(!r||r===Rt()||r===pt())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(e);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(t)}function sC(e){const t=this,n=Rt(),r=pt(),i=t.touchEventsData;i.evCache.push(e);const{params:o,touches:s,enabled:a}=t;if(!a||!o.simulateTouch&&e.pointerType==="mouse"||t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=e;l.originalEvent&&(l=l.originalEvent);let c=l.target;if(o.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(c)||"which"in l&&l.which===3||"button"in l&&l.button>0||i.isTouched&&i.isMoved)return;const p=!!o.noSwipingClass&&o.noSwipingClass!=="",u=e.composedPath?e.composedPath():e.path;p&&l.target&&l.target.shadowRoot&&u&&(c=u[0]);const v=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,g=!!(l.target&&l.target.shadowRoot);if(o.noSwiping&&(g?oC(v,c):c.closest(v))){t.allowClick=!0;return}if(o.swipeHandler&&!c.closest(o.swipeHandler))return;s.currentX=l.pageX,s.currentY=l.pageY;const m=s.currentX,f=s.currentY,y=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,d=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(y&&(m<=d||m>=r.innerWidth-d))if(y==="prevent")e.preventDefault();else return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=m,s.startY=f,i.touchStartTime=Xt(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);let h=!0;c.matches(i.focusableElements)&&(h=!1,c.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==c&&n.activeElement.blur();const w=h&&t.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||w)&&!c.isContentEditable&&l.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function aC(e){const t=Rt(),n=this,r=n.touchEventsData,{params:i,touches:o,rtlTranslate:s,enabled:a}=n;if(!a||!i.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}const c=r.evCache.findIndex(T=>T.pointerId===l.pointerId);c>=0&&(r.evCache[c]=l);const p=r.evCache.length>1?r.evCache[0]:l,u=p.pageX,v=p.pageY;if(l.preventedByNestedSwiper){o.startX=u,o.startY=v;return}if(!n.allowTouchMove){l.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(o,{startX:u,startY:v,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:u,currentY:v}),r.touchStartTime=Xt());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(v<o.startY&&n.translate<=n.maxTranslate()||v>o.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(u<o.startX&&n.translate<=n.maxTranslate()||u>o.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;o.currentX=u,o.currentY=v;const g=o.currentX-o.startX,m=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(g**2+m**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let T;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:g*g+m*m>=25&&(T=Math.atan2(Math.abs(m),Math.abs(g))*180/Math.PI,r.isScrolling=n.isHorizontal()?T>i.touchAngle:90-T>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(r.startMoving=!0),r.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let f=n.isHorizontal()?g:m,y=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(f=Math.abs(f)*(s?1:-1),y=Math.abs(y)*(s?1:-1)),o.diff=f,f*=i.touchRatio,s&&(f=-f,y=-y);const d=n.touchesDirection;n.swipeDirection=f>0?"prev":"next",n.touchesDirection=y>0?"prev":"next";const h=n.params.loop&&!i.cssMode;if(!r.isMoved){if(h&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const T=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(T)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let w;r.isMoved&&d!==n.touchesDirection&&h&&Math.abs(f)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),w=!0),n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=f+r.startTranslate;let S=!0,x=i.resistanceRatio;if(i.touchReleaseOnEdges&&(x=0),f>0?(h&&!w&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(S=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+f)**x))):f<0&&(h&&!w&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(S=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-f)**x))),S&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(f)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function lC(e){const t=this,n=t.touchEventsData,r=n.evCache.findIndex(w=>w.pointerId===e.pointerId);if(r>=0&&n.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&!(e.type==="pointercancel"&&(t.browser.isSafari||t.browser.isWebView)))return;const{params:i,touches:o,rtlTranslate:s,slidesGrid:a,enabled:l}=t;if(!l||!i.simulateTouch&&e.pointerType==="mouse")return;let c=e;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&i.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}i.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const p=Xt(),u=p-n.touchStartTime;if(t.allowClick){const w=c.path||c.composedPath&&c.composedPath();t.updateClickedSlide(w&&w[0]||c.target),t.emit("tap click",c),u<300&&p-n.lastClickTime<300&&t.emit("doubleTap doubleClick",c)}if(n.lastClickTime=Xt(),Rr(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||o.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let v;if(i.followFinger?v=s?t.translate:-t.translate:v=-n.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:v});return}let g=0,m=t.slidesSizesGrid[0];for(let w=0;w<a.length;w+=w<i.slidesPerGroupSkip?1:i.slidesPerGroup){const S=w<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;typeof a[w+S]<"u"?v>=a[w]&&v<a[w+S]&&(g=w,m=a[w+S]-a[w]):v>=a[w]&&(g=w,m=a[a.length-1]-a[a.length-2])}let f=null,y=null;i.rewind&&(t.isBeginning?y=i.virtual&&i.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(f=0));const d=(v-a[g])/m,h=g<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(u>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(d>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?f:g+h):t.slideTo(g)),t.swipeDirection==="prev"&&(d>1-i.longSwipesRatio?t.slideTo(g+h):y!==null&&d<0&&Math.abs(d)>i.longSwipesRatio?t.slideTo(y):t.slideTo(g))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(g+h):t.slideTo(g):(t.swipeDirection==="next"&&t.slideTo(f!==null?f:g+h),t.swipeDirection==="prev"&&t.slideTo(y!==null?y:g))}}function Jl(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=s&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!a?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!s?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function cC(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function uC(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i;const o=e.maxTranslate()-e.minTranslate();o===0?i=0:i=(e.translate-e.minTranslate())/o,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function dC(e){const t=this;mi(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}let Ql=!1;function fC(){}const zf=(e,t)=>{const n=Rt(),{params:r,el:i,wrapperEl:o,device:s}=e,a=!!r.nested,l=t==="on"?"addEventListener":"removeEventListener",c=t;i[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:a}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",e.onClick,!0),r.cssMode&&o[l]("scroll",e.onScroll),r.updateOnWindowResize?e[c](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",Jl,!0):e[c]("observerUpdate",Jl,!0),i[l]("load",e.onLoad,{capture:!0})};function pC(){const e=this,t=Rt(),{params:n}=e;e.onTouchStart=sC.bind(e),e.onTouchMove=aC.bind(e),e.onTouchEnd=lC.bind(e),n.cssMode&&(e.onScroll=uC.bind(e)),e.onClick=cC.bind(e),e.onLoad=dC.bind(e),Ql||(t.addEventListener("touchstart",fC),Ql=!0),zf(e,"on")}function mC(){zf(this,"off")}const hC={attachEvents:pC,detachEvents:mC},ec=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function gC(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,o=r.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const s=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!s||e.currentBreakpoint===s)return;const l=(s in o?o[s]:void 0)||e.originalParams,c=ec(e,r),p=ec(e,l),u=r.enabled;c&&!p?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&p&&(i.classList.add(`${r.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(f=>{if(typeof l[f]>"u")return;const y=r[f]&&r[f].enabled,d=l[f]&&l[f].enabled;y&&!d&&e[f].disable(),!y&&d&&e[f].enable()});const v=l.direction&&l.direction!==r.direction,g=r.loop&&(l.slidesPerView!==r.slidesPerView||v);v&&n&&e.changeDirection(),mt(e.params,l);const m=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),u&&!m?e.disable():!u&&m&&e.enable(),e.currentBreakpoint=s,e.emit("_beforeBreakpoint",l),g&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",l)}function bC(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const i=pt(),o=t==="window"?i.innerHeight:n.clientHeight,s=Object.keys(e).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const l=parseFloat(a.substr(1));return{value:o*l,point:a}}return{value:a,point:a}});s.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a<s.length;a+=1){const{point:l,value:c}=s[a];t==="window"?i.matchMedia(`(min-width: ${c}px)`).matches&&(r=l):c<=n.clientWidth&&(r=l)}return r||"max"}const vC={setBreakpoint:gC,getBreakpoint:bC};function yC(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function wC(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:o}=e,s=yC(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...s),i.classList.add(...t),e.emitContainerClasses()}function SC(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}const xC={addClasses:wC,removeClasses:SC};function CC(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const i=e.slides.length-1,o=e.slidesGrid[i]+e.slidesSizesGrid[i]+r*2;e.isLocked=e.size>o}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}const EC={checkOverflow:CC},tc={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function kC(e,t){return function(r={}){const i=Object.keys(r)[0],o=r[i];if(typeof o!="object"||o===null){mt(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(i)>=0&&e[i]===!0&&(e[i]={auto:!0}),!(i in e&&"enabled"in o)){mt(t,r);return}e[i]===!0&&(e[i]={enabled:!0}),typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),mt(t,r)}}const Lo={eventsEmitter:x0,update:M0,translate:z0,transition:H0,slide:Z0,loop:tC,grabCursor:iC,events:hC,breakpoints:vC,checkOverflow:EC,classes:xC},No={};class At{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[n,r]=t,r||(r={}),r=mt({},r),n&&!r.el&&(r.el=n);const i=Rt();if(r.el&&typeof r.el=="string"&&i.querySelectorAll(r.el).length>1){const l=[];return i.querySelectorAll(r.el).forEach(c=>{const p=mt({},r,{el:c});l.push(new At(p))}),l}const o=this;o.__swiper__=!0,o.support=Ff(),o.device=b0({userAgent:r.userAgent}),o.browser=y0(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],r.modules&&Array.isArray(r.modules)&&o.modules.push(...r.modules);const s={};o.modules.forEach(l=>{l({params:r,swiper:o,extendParams:kC(r,s),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const a=mt({},tc,s);return o.params=mt({},a,No,r),o.originalParams=mt({},o.params),o.passedParams=mt({},r),o.params&&o.params.on&&Object.keys(o.params.on).forEach(l=>{o.on(l,o.params.on[l])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getSlideIndex(t){const{slidesEl:n,params:r}=this,i=It(n,`.${r.slideClass}, swiper-slide`),o=Di(i[0]);return Di(t)-o}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=It(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const i=r.minTranslate(),s=(r.maxTranslate()-i)*t+i;r.translateTo(s,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const i=t.getSlideClasses(r);n.push({slideEl:r,classNames:i}),t.emit("_slideClass",r,i)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const r=this,{params:i,slides:o,slidesGrid:s,slidesSizesGrid:a,size:l,activeIndex:c}=r;let p=1;if(i.centeredSlides){let u=o[c]?o[c].swiperSlideSize:0,v;for(let g=c+1;g<o.length;g+=1)o[g]&&!v&&(u+=o[g].swiperSlideSize,p+=1,u>l&&(v=!0));for(let g=c-1;g>=0;g-=1)o[g]&&!v&&(u+=o[g].swiperSlideSize,p+=1,u>l&&(v=!0))}else if(t==="current")for(let u=c+1;u<o.length;u+=1)(n?s[u]+a[u]-s[c]<l:s[u]-s[c]<l)&&(p+=1);else for(let u=c-1;u>=0;u-=1)s[c]-s[u]<l&&(p+=1);return p}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&mi(t,s)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const s=t.rtlTranslate?t.translate*-1:t.translate,a=Math.min(Math.max(s,t.maxTranslate()),t.minTranslate());t.setTranslate(a),t.updateActiveIndex(),t.updateSlidesClasses()}let o;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const s=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;o=t.slideTo(s.length-1,0,!1,!0)}else o=t.slideTo(t.activeIndex,0,!1,!0);o||i()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,i=r.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(o=>{t==="vertical"?o.style.width="":o.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.shadowEl&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):It(r,i())[0];return!s&&n.params.createElements&&(s=Lf("div",n.params.wrapperClass),r.append(s),It(r,`.${n.params.slideClass}`).forEach(a=>{s.append(a)})),Object.assign(n,{el:r,wrapperEl:s,slidesEl:n.isElement?r:s,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||pn(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||pn(r,"direction")==="rtl"),wrongRTL:pn(s,"display")==="-webkit-box"}),!0}init(t){const n=this;return n.initialized||n.mount(t)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(i=>{i.complete?mi(n,i):i.addEventListener("load",o=>{mi(n,o.target)})}),ms(n),n.initialized=!0,ms(n),n.emit("init"),n.emit("afterInit")),n}destroy(t=!0,n=!0){const r=this,{params:i,el:o,wrapperEl:s,slides:a}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),o.removeAttribute("style"),s.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),t!==!1&&(r.el.swiper=null,c0(r)),r.destroyed=!0),null}static extendDefaults(t){mt(No,t)}static get extendedDefaults(){return No}static get defaults(){return tc}static installModule(t){At.prototype.__modules__||(At.prototype.__modules__=[]);const n=At.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>At.installModule(n)),At):(At.installModule(t),At)}}Object.keys(Lo).forEach(e=>{Object.keys(Lo[e]).forEach(t=>{At.prototype[t]=Lo[e][t]})});At.use([w0,S0]);function GC({swiper:e,extendParams:t,on:n,emit:r}){const i=pt();t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let o,s=Xt(),a;const l=[];function c(h){let T=0,A=0,k=0,_=0;return"detail"in h&&(A=h.detail),"wheelDelta"in h&&(A=-h.wheelDelta/120),"wheelDeltaY"in h&&(A=-h.wheelDeltaY/120),"wheelDeltaX"in h&&(T=-h.wheelDeltaX/120),"axis"in h&&h.axis===h.HORIZONTAL_AXIS&&(T=A,A=0),k=T*10,_=A*10,"deltaY"in h&&(_=h.deltaY),"deltaX"in h&&(k=h.deltaX),h.shiftKey&&!k&&(k=_,_=0),(k||_)&&h.deltaMode&&(h.deltaMode===1?(k*=40,_*=40):(k*=800,_*=800)),k&&!T&&(T=k<1?-1:1),_&&!A&&(A=_<1?-1:1),{spinX:T,spinY:A,pixelX:k,pixelY:_}}function p(){e.enabled&&(e.mouseEntered=!0)}function u(){e.enabled&&(e.mouseEntered=!1)}function v(h){return e.params.mousewheel.thresholdDelta&&h.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Xt()-s<e.params.mousewheel.thresholdTime?!1:h.delta>=6&&Xt()-s<60?!0:(h.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),r("scroll",h.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),r("scroll",h.raw)),s=new i.Date().getTime(),!1)}function g(h){const w=e.params.mousewheel;if(h.direction<0){if(e.isEnd&&!e.params.loop&&w.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&w.releaseOnEdges)return!0;return!1}function m(h){let w=h,S=!0;if(!e.enabled||h.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const x=e.params.mousewheel;e.params.cssMode&&w.preventDefault();let T=e.el;e.params.mousewheel.eventsTarget!=="container"&&(T=document.querySelector(e.params.mousewheel.eventsTarget));const A=T&&T.contains(w.target);if(!e.mouseEntered&&!A&&!x.releaseOnEdges)return!0;w.originalEvent&&(w=w.originalEvent);let k=0;const _=e.rtlTranslate?-1:1,z=c(w);if(x.forceToAxis)if(e.isHorizontal())if(Math.abs(z.pixelX)>Math.abs(z.pixelY))k=-z.pixelX*_;else return!0;else if(Math.abs(z.pixelY)>Math.abs(z.pixelX))k=-z.pixelY;else return!0;else k=Math.abs(z.pixelX)>Math.abs(z.pixelY)?-z.pixelX*_:-z.pixelY;if(k===0)return!0;x.invert&&(k=-k);let R=e.getTranslate()+k*x.sensitivity;if(R>=e.minTranslate()&&(R=e.minTranslate()),R<=e.maxTranslate()&&(R=e.maxTranslate()),S=e.params.loop?!0:!(R===e.minTranslate()||R===e.maxTranslate()),S&&e.params.nested&&w.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const I={time:Xt(),delta:Math.abs(k),direction:Math.sign(k),raw:h};l.length>=2&&l.shift();const L=l.length?l[l.length-1]:void 0;if(l.push(I),L?(I.direction!==L.direction||I.delta>L.delta||I.time>L.time+150)&&v(I):v(I),g(I))return!0}else{const I={time:Xt(),delta:Math.abs(k),direction:Math.sign(k)},L=a&&I.time<a.time+500&&I.delta<=a.delta&&I.direction===a.direction;if(!L){a=void 0;let N=e.getTranslate()+k*x.sensitivity;const j=e.isBeginning,B=e.isEnd;if(N>=e.minTranslate()&&(N=e.minTranslate()),N<=e.maxTranslate()&&(N=e.maxTranslate()),e.setTransition(0),e.setTranslate(N),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!j&&e.isBeginning||!B&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:I.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(o),o=void 0,l.length>=15&&l.shift();const V=l.length?l[l.length-1]:void 0,U=l[0];if(l.push(I),V&&(I.delta>V.delta||I.direction!==V.direction))l.splice(0);else if(l.length>=15&&I.time-U.time<500&&U.delta-I.delta>=1&&I.delta<=6){const J=k>0?.8:.2;a=I,l.splice(0),o=Rr(()=>{e.slideToClosest(e.params.speed,!0,void 0,J)},0)}o||(o=Rr(()=>{a=I,l.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(L||r("scroll",w),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),N===e.minTranslate()||N===e.maxTranslate())return!0}}return w.preventDefault?w.preventDefault():w.returnValue=!1,!1}function f(h){let w=e.el;e.params.mousewheel.eventsTarget!=="container"&&(w=document.querySelector(e.params.mousewheel.eventsTarget)),w[h]("mouseenter",p),w[h]("mouseleave",u),w[h]("wheel",m)}function y(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",m),!0):e.mousewheel.enabled?!1:(f("addEventListener"),e.mousewheel.enabled=!0,!0)}function d(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,m),!0):e.mousewheel.enabled?(f("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&d(),e.params.mousewheel.enabled&&y()}),n("destroy",()=>{e.params.cssMode&&y(),e.mousewheel.enabled&&d()}),Object.assign(e.mousewheel,{enable:y,disable:d})}function Bf(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&n.auto===!0){let o=It(e.el,`.${r[i]}`)[0];o||(o=Lf("div",r[i]),o.className=r[i],e.el.append(o)),n[i]=o,t[i]=o}}),n}function UC({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const i=m=>(Array.isArray(m)||(m=[m].filter(f=>!!f)),m);function o(m){let f;return m&&typeof m=="string"&&e.isElement&&(f=e.el.shadowRoot.querySelector(m),f)?f:(m&&(typeof m=="string"&&(f=[...document.querySelectorAll(m)]),e.params.uniqueNavElements&&typeof m=="string"&&f.length>1&&e.el.querySelectorAll(m).length===1&&(f=e.el.querySelector(m))),m&&!f?m:f)}function s(m,f){const y=e.params.navigation;m=i(m),m.forEach(d=>{d&&(d.classList[f?"add":"remove"](...y.disabledClass.split(" ")),d.tagName==="BUTTON"&&(d.disabled=f),e.params.watchOverflow&&e.enabled&&d.classList[e.isLocked?"add":"remove"](y.lockClass))})}function a(){const{nextEl:m,prevEl:f}=e.navigation;if(e.params.loop){s(f,!1),s(m,!1);return}s(f,e.isBeginning&&!e.params.rewind),s(m,e.isEnd&&!e.params.rewind)}function l(m){m.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function c(m){m.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function p(){const m=e.params.navigation;if(e.params.navigation=Bf(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(m.nextEl||m.prevEl))return;let f=o(m.nextEl),y=o(m.prevEl);Object.assign(e.navigation,{nextEl:f,prevEl:y}),f=i(f),y=i(y);const d=(h,w)=>{h&&h.addEventListener("click",w==="next"?c:l),!e.enabled&&h&&h.classList.add(...m.lockClass.split(" "))};f.forEach(h=>d(h,"next")),y.forEach(h=>d(h,"prev"))}function u(){let{nextEl:m,prevEl:f}=e.navigation;m=i(m),f=i(f);const y=(d,h)=>{d.removeEventListener("click",h==="next"?c:l),d.classList.remove(...e.params.navigation.disabledClass.split(" "))};m.forEach(d=>y(d,"next")),f.forEach(d=>y(d,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?g():(p(),a())}),n("toEdge fromEdge lock unlock",()=>{a()}),n("destroy",()=>{u()}),n("enable disable",()=>{let{nextEl:m,prevEl:f}=e.navigation;m=i(m),f=i(f),[...m,...f].filter(y=>!!y).forEach(y=>y.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),n("click",(m,f)=>{let{nextEl:y,prevEl:d}=e.navigation;y=i(y),d=i(d);const h=f.target;if(e.params.navigation.hideOnClick&&!d.includes(h)&&!y.includes(h)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===h||e.pagination.el.contains(h)))return;let w;y.length?w=y[0].classList.contains(e.params.navigation.hiddenClass):d.length&&(w=d[0].classList.contains(e.params.navigation.hiddenClass)),r(w===!0?"navigationShow":"navigationHide"),[...y,...d].filter(S=>!!S).forEach(S=>S.classList.toggle(e.params.navigation.hiddenClass))}});const v=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),p(),a()},g=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(e.navigation,{enable:v,disable:g,update:a,init:p,destroy:u})}function mr(e=""){return`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function YC({swiper:e,extendParams:t,on:n,emit:r}){const i="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:d=>d,formatFractionTotal:d=>d,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let o,s=0;const a=d=>(Array.isArray(d)||(d=[d].filter(h=>!!h)),d);function l(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(d,h){const{bulletActiveClass:w}=e.params.pagination;d&&(d=d[`${h==="prev"?"previous":"next"}ElementSibling`],d&&(d.classList.add(`${w}-${h}`),d=d[`${h==="prev"?"previous":"next"}ElementSibling`],d&&d.classList.add(`${w}-${h}-${h}`)))}function p(d){const h=d.target.closest(mr(e.params.pagination.bulletClass));if(!h)return;d.preventDefault();const w=Di(h)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===w)return;const S=e.getSlideIndexByData(w),x=e.getSlideIndexByData(e.realIndex);S>e.slides.length-e.loopedSlides&&e.loopFix({direction:S>x?"next":"prev",activeSlideIndex:S,slideTo:!1}),e.slideToLoop(w)}else e.slideTo(w)}function u(){const d=e.rtl,h=e.params.pagination;if(l())return;let w=e.pagination.el;w=a(w);let S,x;const T=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,A=e.params.loop?Math.ceil(T/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(x=e.previousRealIndex||0,S=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(S=e.snapIndex,x=e.previousSnapIndex):(x=e.previousIndex||0,S=e.activeIndex||0),h.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const k=e.pagination.bullets;let _,z,R;if(h.dynamicBullets&&(o=ps(k[0],e.isHorizontal()?"width":"height"),w.forEach(I=>{I.style[e.isHorizontal()?"width":"height"]=`${o*(h.dynamicMainBullets+4)}px`}),h.dynamicMainBullets>1&&x!==void 0&&(s+=S-(x||0),s>h.dynamicMainBullets-1?s=h.dynamicMainBullets-1:s<0&&(s=0)),_=Math.max(S-s,0),z=_+(Math.min(k.length,h.dynamicMainBullets)-1),R=(z+_)/2),k.forEach(I=>{const L=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(N=>`${h.bulletActiveClass}${N}`)].map(N=>typeof N=="string"&&N.includes(" ")?N.split(" "):N).flat();I.classList.remove(...L)}),w.length>1)k.forEach(I=>{const L=Di(I);L===S?I.classList.add(...h.bulletActiveClass.split(" ")):e.isElement&&I.setAttribute("part","bullet"),h.dynamicBullets&&(L>=_&&L<=z&&I.classList.add(...`${h.bulletActiveClass}-main`.split(" ")),L===_&&c(I,"prev"),L===z&&c(I,"next"))});else{const I=k[S];if(I&&I.classList.add(...h.bulletActiveClass.split(" ")),e.isElement&&k.forEach((L,N)=>{L.setAttribute("part",N===S?"bullet-active":"bullet")}),h.dynamicBullets){const L=k[_],N=k[z];for(let j=_;j<=z;j+=1)k[j]&&k[j].classList.add(...`${h.bulletActiveClass}-main`.split(" "));c(L,"prev"),c(N,"next")}}if(h.dynamicBullets){const I=Math.min(k.length,h.dynamicMainBullets+4),L=(o*I-o)/2-R*o,N=d?"right":"left";k.forEach(j=>{j.style[e.isHorizontal()?N:"top"]=`${L}px`})}}w.forEach((k,_)=>{if(h.type==="fraction"&&(k.querySelectorAll(mr(h.currentClass)).forEach(z=>{z.textContent=h.formatFractionCurrent(S+1)}),k.querySelectorAll(mr(h.totalClass)).forEach(z=>{z.textContent=h.formatFractionTotal(A)})),h.type==="progressbar"){let z;h.progressbarOpposite?z=e.isHorizontal()?"vertical":"horizontal":z=e.isHorizontal()?"horizontal":"vertical";const R=(S+1)/A;let I=1,L=1;z==="horizontal"?I=R:L=R,k.querySelectorAll(mr(h.progressbarFillClass)).forEach(N=>{N.style.transform=`translate3d(0,0,0) scaleX(${I}) scaleY(${L})`,N.style.transitionDuration=`${e.params.speed}ms`})}h.type==="custom"&&h.renderCustom?(k.innerHTML=h.renderCustom(e,S+1,A),_===0&&r("paginationRender",k)):(_===0&&r("paginationRender",k),r("paginationUpdate",k)),e.params.watchOverflow&&e.enabled&&k.classList[e.isLocked?"add":"remove"](h.lockClass)})}function v(){const d=e.params.pagination;if(l())return;const h=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let w=e.pagination.el;w=a(w);let S="";if(d.type==="bullets"){let x=e.params.loop?Math.ceil(h/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&x>h&&(x=h);for(let T=0;T<x;T+=1)d.renderBullet?S+=d.renderBullet.call(e,T,d.bulletClass):S+=`<${d.bulletElement} ${e.isElement?'part="bullet"':""} class="${d.bulletClass}"></${d.bulletElement}>`}d.type==="fraction"&&(d.renderFraction?S=d.renderFraction.call(e,d.currentClass,d.totalClass):S=`<span class="${d.currentClass}"></span> / <span class="${d.totalClass}"></span>`),d.type==="progressbar"&&(d.renderProgressbar?S=d.renderProgressbar.call(e,d.progressbarFillClass):S=`<span class="${d.progressbarFillClass}"></span>`),e.pagination.bullets=[],w.forEach(x=>{d.type!=="custom"&&(x.innerHTML=S||""),d.type==="bullets"&&e.pagination.bullets.push(...x.querySelectorAll(mr(d.bulletClass)))}),d.type!=="custom"&&r("paginationRender",w[0])}function g(){e.params.pagination=Bf(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const d=e.params.pagination;if(!d.el)return;let h;typeof d.el=="string"&&e.isElement&&(h=e.el.shadowRoot.querySelector(d.el)),!h&&typeof d.el=="string"&&(h=[...document.querySelectorAll(d.el)]),h||(h=d.el),!(!h||h.length===0)&&(e.params.uniqueNavElements&&typeof d.el=="string"&&Array.isArray(h)&&h.length>1&&(h=[...e.el.querySelectorAll(d.el)],h.length>1&&(h=h.filter(w=>Nf(w,".swiper")[0]===e.el)[0])),Array.isArray(h)&&h.length===1&&(h=h[0]),Object.assign(e.pagination,{el:h}),h=a(h),h.forEach(w=>{d.type==="bullets"&&d.clickable&&w.classList.add(d.clickableClass),w.classList.add(d.modifierClass+d.type),w.classList.add(e.isHorizontal()?d.horizontalClass:d.verticalClass),d.type==="bullets"&&d.dynamicBullets&&(w.classList.add(`${d.modifierClass}${d.type}-dynamic`),s=0,d.dynamicMainBullets<1&&(d.dynamicMainBullets=1)),d.type==="progressbar"&&d.progressbarOpposite&&w.classList.add(d.progressbarOppositeClass),d.clickable&&w.addEventListener("click",p),e.enabled||w.classList.add(d.lockClass)}))}function m(){const d=e.params.pagination;if(l())return;let h=e.pagination.el;h&&(h=a(h),h.forEach(w=>{w.classList.remove(d.hiddenClass),w.classList.remove(d.modifierClass+d.type),w.classList.remove(e.isHorizontal()?d.horizontalClass:d.verticalClass),d.clickable&&w.removeEventListener("click",p)})),e.pagination.bullets&&e.pagination.bullets.forEach(w=>w.classList.remove(...d.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const d=e.params.pagination;let{el:h}=e.pagination;h=a(h),h.forEach(w=>{w.classList.remove(d.horizontalClass,d.verticalClass),w.classList.add(e.isHorizontal()?d.horizontalClass:d.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?y():(g(),v(),u())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&u()}),n("snapIndexChange",()=>{u()}),n("snapGridLengthChange",()=>{v(),u()}),n("destroy",()=>{m()}),n("enable disable",()=>{let{el:d}=e.pagination;d&&(d=a(d),d.forEach(h=>h.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{u()}),n("click",(d,h)=>{const w=h.target;let{el:S}=e.pagination;if(Array.isArray(S)||(S=[S].filter(x=>!!x)),e.params.pagination.el&&e.params.pagination.hideOnClick&&S&&S.length>0&&!w.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&w===e.navigation.nextEl||e.navigation.prevEl&&w===e.navigation.prevEl))return;const x=S[0].classList.contains(e.params.pagination.hiddenClass);r(x===!0?"paginationShow":"paginationHide"),S.forEach(T=>T.classList.toggle(e.params.pagination.hiddenClass))}});const f=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:d}=e.pagination;d&&(d=a(d),d.forEach(h=>h.classList.remove(e.params.pagination.paginationDisabledClass))),g(),v(),u()},y=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:d}=e.pagination;d&&(d=a(d),d.forEach(h=>h.classList.add(e.params.pagination.paginationDisabledClass))),m()};Object.assign(e.pagination,{enable:f,disable:y,render:v,update:u,init:g,destroy:m})}function qC({swiper:e,extendParams:t,on:n,emit:r,params:i}){e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,s,a=i&&i.autoplay?i.autoplay.delay:3e3,l=i&&i.autoplay?i.autoplay.delay:3e3,c,p=new Date().getTime,u,v,g,m,f,y;function d(B){!e||e.destroyed||!e.wrapperEl||B.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",d),k())}const h=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?u=!0:u&&(l=c,u=!1);const B=e.autoplay.paused?c:p+l-new Date().getTime();e.autoplay.timeLeft=B,r("autoplayTimeLeft",B,B/a),s=requestAnimationFrame(()=>{h()})},w=()=>{let B;return e.virtual&&e.params.virtual.enabled?B=e.slides.filter(U=>U.classList.contains("swiper-slide-active"))[0]:B=e.slides[e.activeIndex],B?parseInt(B.getAttribute("data-swiper-autoplay"),10):void 0},S=B=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(s),h();let V=typeof B>"u"?e.params.autoplay.delay:B;a=e.params.autoplay.delay,l=e.params.autoplay.delay;const U=w();!Number.isNaN(U)&&U>0&&typeof B>"u"&&(V=U,a=U,l=U),c=V;const J=e.params.speed,ge=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(J,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,J,!0,!0),r("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(J,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,J,!0,!0),r("autoplay")),e.params.cssMode&&(p=new Date().getTime(),requestAnimationFrame(()=>{S()})))};return V>0?(clearTimeout(o),o=setTimeout(()=>{ge()},V)):requestAnimationFrame(()=>{ge()}),V},x=()=>{e.autoplay.running=!0,S(),r("autoplayStart")},T=()=>{e.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(s),r("autoplayStop")},A=(B,V)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(o),B||(y=!0);const U=()=>{r("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",d):k()};if(e.autoplay.paused=!0,V){f&&(c=e.params.autoplay.delay),f=!1,U();return}c=(c||e.params.autoplay.delay)-(new Date().getTime()-p),!(e.isEnd&&c<0&&!e.params.loop)&&(c<0&&(c=0),U())},k=()=>{e.isEnd&&c<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(p=new Date().getTime(),y?(y=!1,S(c)):S(),e.autoplay.paused=!1,r("autoplayResume"))},_=()=>{if(e.destroyed||!e.autoplay.running)return;const B=Rt();B.visibilityState==="hidden"&&(y=!0,A(!0)),B.visibilityState==="visible"&&k()},z=B=>{B.pointerType==="mouse"&&(y=!0,A(!0))},R=B=>{B.pointerType==="mouse"&&e.autoplay.paused&&k()},I=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",z),e.el.addEventListener("pointerleave",R))},L=()=>{e.el.removeEventListener("pointerenter",z),e.el.removeEventListener("pointerleave",R)},N=()=>{Rt().addEventListener("visibilitychange",_)},j=()=>{Rt().removeEventListener("visibilitychange",_)};n("init",()=>{e.params.autoplay.enabled&&(I(),N(),p=new Date().getTime(),x())}),n("destroy",()=>{L(),j(),e.autoplay.running&&T()}),n("beforeTransitionStart",(B,V,U)=>{e.destroyed||!e.autoplay.running||(U||!e.params.autoplay.disableOnInteraction?A(!0,!0):T())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){T();return}v=!0,g=!1,y=!1,m=setTimeout(()=>{y=!0,g=!0,A(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!v)){if(clearTimeout(m),clearTimeout(o),e.params.autoplay.disableOnInteraction){g=!1,v=!1;return}g&&e.params.cssMode&&k(),g=!1,v=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(f=!0)}),Object.assign(e.autoplay,{start:x,stop:T,pause:A,resume:k})}function XC({swiper:e,extendParams:t,on:n}){t({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let r=!1,i=!1;e.thumbs={swiper:null};function o(){const l=e.thumbs.swiper;if(!l||l.destroyed)return;const c=l.clickedIndex,p=l.clickedSlide;if(p&&p.classList.contains(e.params.thumbs.slideThumbActiveClass)||typeof c>"u"||c===null)return;let u;l.params.loop?u=parseInt(l.clickedSlide.getAttribute("data-swiper-slide-index"),10):u=c,e.params.loop?e.slideToLoop(u):e.slideTo(u)}function s(){const{thumbs:l}=e.params;if(r)return!1;r=!0;const c=e.constructor;if(l.swiper instanceof c)e.thumbs.swiper=l.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(vr(l.swiper)){const p=Object.assign({},l.swiper);Object.assign(p,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new c(p),i=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",o),!0}function a(l){const c=e.thumbs.swiper;if(!c||c.destroyed)return;const p=c.params.slidesPerView==="auto"?c.slidesPerViewDynamic():c.params.slidesPerView;let u=1;const v=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(u=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(u=1),u=Math.floor(u),c.slides.forEach(f=>f.classList.remove(v)),c.params.loop||c.params.virtual&&c.params.virtual.enabled)for(let f=0;f<u;f+=1)It(c.slidesEl,`[data-swiper-slide-index="${e.realIndex+f}"]`).forEach(y=>{y.classList.add(v)});else for(let f=0;f<u;f+=1)c.slides[e.realIndex+f]&&c.slides[e.realIndex+f].classList.add(v);const g=e.params.thumbs.autoScrollOffset,m=g&&!c.params.loop;if(e.realIndex!==c.realIndex||m){const f=c.activeIndex;let y,d;if(c.params.loop){const h=c.slides.filter(w=>w.getAttribute("data-swiper-slide-index")===`${e.realIndex}`)[0];y=c.slides.indexOf(h),d=e.activeIndex>e.previousIndex?"next":"prev"}else y=e.realIndex,d=y>e.previousIndex?"next":"prev";m&&(y+=d==="next"?g:-1*g),c.visibleSlidesIndexes&&c.visibleSlidesIndexes.indexOf(y)<0&&(c.params.centeredSlides?y>f?y=y-Math.floor(p/2)+1:y=y+Math.floor(p/2)-1:y>f&&c.params.slidesPerGroup,c.slideTo(y,l?0:void 0))}}n("beforeInit",()=>{const{thumbs:l}=e.params;if(!(!l||!l.swiper))if(typeof l.swiper=="string"||l.swiper instanceof HTMLElement){const c=Rt(),p=()=>{const v=typeof l.swiper=="string"?c.querySelector(l.swiper):l.swiper;if(v&&v.swiper)l.swiper=v.swiper,s(),a(!0);else if(v){const g=m=>{l.swiper=m.detail[0],v.removeEventListener("init",g),s(),a(!0),l.swiper.update(),e.update()};v.addEventListener("init",g)}return v},u=()=>{if(e.destroyed)return;p()||requestAnimationFrame(u)};requestAnimationFrame(u)}else s(),a(!0)}),n("slideChange update resize observerUpdate",()=>{a()}),n("setTransition",(l,c)=>{const p=e.thumbs.swiper;!p||p.destroyed||p.setTransition(c)}),n("beforeDestroy",()=>{const l=e.thumbs.swiper;!l||l.destroyed||i&&l.destroy()}),Object.assign(e.thumbs,{init:s,update:a})}function TC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nc(Object(n),!0).forEach(function(r){TC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function PC(e,t){if(e==null)return{};var n=AC(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Li(e,t){return IC(e)||OC(e,t)||RC(e,t)||_C()}function IC(e){if(Array.isArray(e))return e}function OC(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),a;!(r=(a=s.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return n}}function RC(e,t){if(e){if(typeof e=="string")return ic(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ic(e,t)}}function ic(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _C(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MC(e){var t=e.src,n=e.checkForExisting,r=n===void 0?!1:n,i=PC(e,["src","checkForExisting"]),o=b.useState(!!t),s=Li(o,2),a=s[0],l=s[1],c=b.useState(null),p=Li(c,2),u=p[0],v=p[1];return b.useEffect(function(){if(!(!DC||!t)){if(r){var g=document.querySelectorAll('script[src="'.concat(t,'"]'));if(g.length>0){l(!1);return}}var m=document.createElement("script");m.setAttribute("src",t),Object.keys(i).forEach(function(d){m[d]===void 0?m.setAttribute(d,i[d]):m[d]=i[d]});var f=function(){l(!1)},y=function(h){v(h)};return m.addEventListener("load",f),m.addEventListener("error",y),document.body.appendChild(m),function(){m.removeEventListener("load",f),m.removeEventListener("error",y)}}},[t]),[a,u]}var DC=typeof window<"u"&&typeof window.document<"u",KC=function(t){var n=MC({src:"https://cdn.merge.dev/initialize.js",checkForExisting:!0}),r=Li(n,2),i=r[0],o=r[1],s=b.useState(!1),a=Li(s,2),l=a[0],c=a[1],p=typeof window>"u",u=!p&&!!window.MergeLink&&!i&&!o;b.useEffect(function(){u&&window.MergeLink&&window.MergeLink.initialize(rc(rc({},t),{},{onReady:function(){return c(!0)}}))},[u,t]);var v=function(){window.MergeLink&&window.MergeLink.openLink(t)};return{open:v,isReady:l,error:o}};export{qC as A,WC as B,dy as C,GC as M,UC as N,YC as P,ex as R,ua as S,XC as T,Rf as _,Rn as a,At as b,Qu as c,na as d,Jv as e,nd as f,ey as g,Qv as h,Om as i,M as j,Es as k,Zv as l,Cs as m,Un as n,ed as o,Vi as p,Ts as q,ks as r,td as s,od as t,KC as u,uy as v,Mc as w,fy as x,cy as y,Gn as z}; //# sourceMappingURL=vendors-CmRCG4VZ.js.map