import{r as g,R as kr,_ as Kf,a as Qn,b as Zf,c as pe}from"./react-Bmxett5h.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]="97379108-38f5-4c42-a96b-66fbeecf3952",e._sentryDebugIdIdentifier="sentry-dbid-97379108-38f5-4c42-a96b-66fbeecf3952")}catch{}})();var uc={exports:{}},$i={};/**
 * @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 Jf=g,Qf=Symbol.for("react.element"),ep=Symbol.for("react.fragment"),tp=Object.prototype.hasOwnProperty,np=Jf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rp={key:!0,ref:!0,__self:!0,__source:!0};function dc(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)tp.call(t,r)&&!rp.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:Qf,type:e,key:o,ref:s,props:i,_owner:np.current}}$i.Fragment=ep;$i.jsx=dc;$i.jsxs=dc;uc.exports=$i;var M=uc.exports;function kn(){return kn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kn.apply(this,arguments)}function ip(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}var op=function(t){return Object.keys(t).length===0&&t.constructor===Object},zo=typeof window>"u",sp=function e(t){return Object.keys(t).forEach(function(n){t[n]&&typeof t[n]=="object"?e(t[n]):t[n]===void 0&&delete t[n]}),t},Ue=function(t){if(!zo&&window.Intercom){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return window.Intercom.apply(null,[t].concat(r))}},fc=g.createContext(void 0),ap=function(t,n){n===void 0&&(n=0);var r=window,i=r.Intercom;if(typeof i=="function")i("reattach_activator"),i("update",r.intercomSettings);else{var o=document,s=function l(){l.c(arguments)};s.q=[],s.c=function(l){s.q.push(l)},r.Intercom=s;var a=function(){setTimeout(function(){var c=o.createElement("script");c.type="text/javascript",c.async=!0,c.src="https://widget.intercom.io/widget/"+t;var p=o.getElementsByTagName("script")[0];p.parentNode.insertBefore(c,p)},n)};document.readyState==="complete"?a():r.attachEvent?r.attachEvent("onload",a):r.addEventListener("load",a,!1)}},lp=function(t){return{custom_launcher_selector:t.customLauncherSelector,alignment:t.alignment,vertical_padding:t.verticalPadding,horizontal_padding:t.horizontalPadding,hide_default_launcher:t.hideDefaultLauncher,session_duration:t.sessionDuration,action_color:t.actionColor,background_color:t.backgroundColor}},Aa=function(t){return kn({company_id:t.companyId,name:t.name,created_at:t.createdAt,plan:t.plan,monthly_spend:t.monthlySpend,user_count:t.userCount,size:t.size,website:t.website,industry:t.industry},t.customAttributes)},cp=function(t){return{type:t.type,image_url:t.imageUrl}},up=function(t){var n;return kn({email:t.email,user_id:t.userId,created_at:t.createdAt,name:t.name,phone:t.phone,last_request_at:t.lastRequestAt,unsubscribed_from_emails:t.unsubscribedFromEmails,language_override:t.languageOverride,utm_campaign:t.utmCampaign,utm_content:t.utmContent,utm_medium:t.utmMedium,utm_source:t.utmSource,utm_term:t.utmTerm,avatar:t.avatar&&cp(t.avatar),user_hash:t.userHash,company:t.company&&Aa(t.company),companies:(n=t.companies)==null?void 0:n.map(Aa)},t.customAttributes)},Pa=function(t){return sp(kn({},lp(t),up(t)))},KC=function(t){var n=t.appId,r=t.autoBoot,i=r===void 0?!1:r,o=t.autoBootProps,s=t.children,a=t.onHide,l=t.onShow,c=t.onUnreadCountChange,p=t.shouldInitialize,u=p===void 0?!zo:p,v=t.apiBase,b=t.initializeDelay,h=ip(t,["appId","autoBoot","autoBootProps","children","onHide","onShow","onUnreadCountChange","shouldInitialize","apiBase","initializeDelay"]),d=g.useRef(!1),y=g.useRef(!1);op(h);var f=g.useCallback(function($){if(!(!window.Intercom&&!u)&&!d.current){var j=kn({app_id:n},v&&{api_base:v},$&&Pa($));window.intercomSettings=j,Ue("boot",j),d.current=!0}},[v,n,u]);!zo&&u&&!y.current&&(ap(n,b),a&&Ue("onHide",a),l&&Ue("onShow",l),c&&Ue("onUnreadCountChange",c),i&&f(o),y.current=!0);var m=g.useCallback(function($,j){if(!(!window.Intercom&&!u)&&d.current)return j()},[u]),w=g.useCallback(function(){d.current&&(Ue("shutdown"),d.current=!1)},[]),S=g.useCallback(function(){d.current&&(Ue("shutdown"),delete window.Intercom,delete window.intercomSettings,d.current=!1)},[]),x=g.useCallback(function(){m("update",function(){var $=new Date().getTime();Ue("update",{last_requested_at:$})})},[m]),T=g.useCallback(function($){m("update",function(){if(!$){x();return}var j=Pa($);window.intercomSettings=kn({},window.intercomSettings,j),Ue("update",j)})},[m,x]),A=g.useCallback(function(){m("hide",function(){Ue("hide")})},[m]),k=g.useCallback(function(){m("show",function(){return Ue("show")})},[m]),_=g.useCallback(function(){m("showMessages",function(){Ue("showMessages")})},[m]),z=g.useCallback(function($){m("showNewMessage",function(){$?Ue("showNewMessage",$):Ue("showNewMessage")})},[m]),R=g.useCallback(function(){return m("getVisitorId",function(){return Ue("getVisitorId")})},[m]),I=g.useCallback(function($){m("startTour",function(){Ue("startTour",$)})},[m]),L=g.useCallback(function($,j){m("trackEvent",function(){j?Ue("trackEvent",$,j):Ue("trackEvent",$)})},[m]),N=g.useCallback(function($){return m("showArticle",function(){Ue("showArticle",$)})},[m]),V=g.useMemo(function(){return{boot:f,shutdown:w,hardShutdown:S,update:T,hide:A,show:k,showMessages:_,showNewMessages:z,getVisitorId:R,startTour:I,trackEvent:L,showArticle:N}},[f,w,S,T,A,k,_,z,R,I,L,N]);return g.createElement(fc.Provider,{value:V},s)},dp=function(){var t=g.useContext(fc);return t},ZC=function(){return dp()};function fp(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 pp(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 mp=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(pp(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=fp(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}(),Qe="-ms-",bi="-moz-",xe="-webkit-",pc="comm",vs="rule",ys="decl",hp="@import",mc="@keyframes",gp="@layer",bp=Math.abs,zi=String.fromCharCode,vp=Object.assign;function yp(e,t){return Ke(e,0)^45?(((t<<2^Ke(e,0))<<2^Ke(e,1))<<2^Ke(e,2))<<2^Ke(e,3):0}function hc(e){return e.trim()}function wp(e,t){return(e=t.exec(e))?e[0]:e}function Ce(e,t,n){return e.replace(t,n)}function Bo(e,t){return e.indexOf(t)}function Ke(e,t){return e.charCodeAt(t)|0}function Tr(e,t,n){return e.slice(t,n)}function Bt(e){return e.length}function ws(e){return e.length}function Gr(e,t){return t.push(e),e}function Sp(e,t){return e.map(t).join("")}var Bi=1,Zn=1,gc=0,pt=0,Ve=0,er="";function ji(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Bi,column:Zn,length:s,return:""}}function lr(e,t){return vp(ji("",null,null,"",null,null,0),e,{length:-e.length},t)}function xp(){return Ve}function Cp(){return Ve=pt>0?Ke(er,--pt):0,Zn--,Ve===10&&(Zn=1,Bi--),Ve}function bt(){return Ve=pt<gc?Ke(er,pt++):0,Zn++,Ve===10&&(Zn=1,Bi++),Ve}function Wt(){return Ke(er,pt)}function ci(){return pt}function Dr(e,t){return Tr(er,e,t)}function Ar(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 bc(e){return Bi=Zn=1,gc=Bt(er=e),pt=0,[]}function vc(e){return er="",e}function ui(e){return hc(Dr(pt-1,jo(e===91?e+2:e===40?e+1:e)))}function Ep(e){for(;(Ve=Wt())&&Ve<33;)bt();return Ar(e)>2||Ar(Ve)>3?"":" "}function kp(e,t){for(;--t&&bt()&&!(Ve<48||Ve>102||Ve>57&&Ve<65||Ve>70&&Ve<97););return Dr(e,ci()+(t<6&&Wt()==32&&bt()==32))}function jo(e){for(;bt();)switch(Ve){case e:return pt;case 34:case 39:e!==34&&e!==39&&jo(Ve);break;case 40:e===41&&jo(e);break;case 92:bt();break}return pt}function Tp(e,t){for(;bt()&&e+Ve!==57;)if(e+Ve===84&&Wt()===47)break;return"/*"+Dr(t,pt-1)+"*"+zi(e===47?e:bt())}function Ap(e){for(;!Ar(Wt());)bt();return Dr(e,pt)}function Pp(e){return vc(di("",null,null,null,[""],e=bc(e),0,[0],e))}function di(e,t,n,r,i,o,s,a,l){for(var c=0,p=0,u=s,v=0,b=0,h=0,d=1,y=1,f=1,m=0,w="",S=i,x=o,T=r,A=w;y;)switch(h=m,m=bt()){case 40:if(h!=108&&Ke(A,u-1)==58){Bo(A+=Ce(ui(m),"&","&\f"),"&\f")!=-1&&(f=-1);break}case 34:case 39:case 91:A+=ui(m);break;case 9:case 10:case 13:case 32:A+=Ep(h);break;case 92:A+=kp(ci()-1,7);continue;case 47:switch(Wt()){case 42:case 47:Gr(Ip(Tp(bt(),ci()),t,n),l);break;default:A+="/"}break;case 123*d:a[c++]=Bt(A)*f;case 125*d:case 59:case 0:switch(m){case 0:case 125:y=0;case 59+p:f==-1&&(A=Ce(A,/\f/g,"")),b>0&&Bt(A)-u&&Gr(b>32?Oa(A+";",r,n,u-1):Oa(Ce(A," ","")+";",r,n,u-2),l);break;case 59:A+=";";default:if(Gr(T=Ia(A,t,n,c,p,i,a,w,S=[],x=[],u),o),m===123)if(p===0)di(A,t,T,T,S,o,u,a,x);else switch(v===99&&Ke(A,3)===110?100:v){case 100:case 108:case 109:case 115:di(e,T,T,r&&Gr(Ia(e,T,T,0,0,i,a,w,i,S=[],u),x),i,x,u,a,r?S:x);break;default:di(A,T,T,T,[""],x,0,a,x)}}c=p=b=0,d=f=1,w=A="",u=s;break;case 58:u=1+Bt(A),b=h;default:if(d<1){if(m==123)--d;else if(m==125&&d++==0&&Cp()==125)continue}switch(A+=zi(m),m*d){case 38:f=p>0?1:(A+="\f",-1);break;case 44:a[c++]=(Bt(A)-1)*f,f=1;break;case 64:Wt()===45&&(A+=ui(bt())),v=Wt(),p=u=Bt(w=A+=Ap(ci())),m++;break;case 45:h===45&&Bt(A)==2&&(d=0)}}return o}function Ia(e,t,n,r,i,o,s,a,l,c,p){for(var u=i-1,v=i===0?o:[""],b=ws(v),h=0,d=0,y=0;h<r;++h)for(var f=0,m=Tr(e,u+1,u=bp(d=s[h])),w=e;f<b;++f)(w=hc(d>0?v[f]+" "+m:Ce(m,/&\f/g,v[f])))&&(l[y++]=w);return ji(e,t,n,i===0?vs:a,l,c,p)}function Ip(e,t,n){return ji(e,t,n,pc,zi(xp()),Tr(e,2,-2),0)}function Oa(e,t,n,r){return ji(e,t,n,ys,Tr(e,0,r),Tr(e,r+1,-1),r)}function Un(e,t){for(var n="",r=ws(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Op(e,t,n,r){switch(e.type){case gp:if(e.children.length)break;case hp:case ys:return e.return=e.return||e.value;case pc:return"";case mc:return e.return=e.value+"{"+Un(e.children,r)+"}";case vs:e.value=e.props.join(",")}return Bt(n=Un(e.children,r))?e.return=e.value+"{"+n+"}":""}function Rp(e){var t=ws(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 _p(e){return function(t){t.root||(t=t.return)&&e(t)}}var Ra=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 Mp(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Dp=function(t,n,r){for(var i=0,o=0;i=o,o=Wt(),i===38&&o===12&&(n[r]=1),!Ar(o);)bt();return Dr(t,pt)},Lp=function(t,n){var r=-1,i=44;do switch(Ar(i)){case 0:i===38&&Wt()===12&&(n[r]=1),t[r]+=Dp(pt-1,n,r);break;case 2:t[r]+=ui(i);break;case 4:if(i===44){t[++r]=Wt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=zi(i)}while(i=bt());return t},Np=function(t,n){return vc(Lp(bc(t),n))},_a=new WeakMap,Fp=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&&!_a.get(r))&&!i){_a.set(t,!0);for(var o=[],s=Np(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]}}},$p=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function yc(e,t){switch(yp(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+bi+e+Qe+e+e;case 6828:case 4268:return xe+e+Qe+e+e;case 6165:return xe+e+Qe+"flex-"+e+e;case 5187:return xe+e+Ce(e,/(\w+).+(:[^]+)/,xe+"box-$1$2"+Qe+"flex-$1$2")+e;case 5443:return xe+e+Qe+"flex-item-"+Ce(e,/flex-|-self/,"")+e;case 4675:return xe+e+Qe+"flex-line-pack"+Ce(e,/align-content|flex-|-self/,"")+e;case 5548:return xe+e+Qe+Ce(e,"shrink","negative")+e;case 5292:return xe+e+Qe+Ce(e,"basis","preferred-size")+e;case 6060:return xe+"box-"+Ce(e,"-grow","")+xe+e+Qe+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"+Qe+"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(Bt(e)-1-t>6)switch(Ke(e,t+1)){case 109:if(Ke(e,t+4)!==45)break;case 102:return Ce(e,/(.+:)(.+)-([^]+)/,"$1"+xe+"$2-$3$1"+bi+(Ke(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Bo(e,"stretch")?yc(Ce(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ke(e,t+1)!==115)break;case 6444:switch(Ke(e,Bt(e)-3-(~Bo(e,"!important")&&10))){case 107:return Ce(e,":",":"+xe)+e;case 101:return Ce(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xe+(Ke(e,14)===45?"inline-":"")+"box$3$1"+xe+"$2$3$1"+Qe+"$2box$3")+e}break;case 5936:switch(Ke(e,t+11)){case 114:return xe+e+Qe+Ce(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xe+e+Qe+Ce(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xe+e+Qe+Ce(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xe+e+Qe+e+e}return e}var zp=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case ys:t.return=yc(t.value,t.length);break;case mc:return Un([lr(t,{value:Ce(t.value,"@","@"+xe)})],i);case vs:if(t.length)return Sp(t.props,function(o){switch(wp(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Un([lr(t,{props:[Ce(o,/:(read-\w+)/,":"+bi+"$1")]})],i);case"::placeholder":return Un([lr(t,{props:[Ce(o,/:(plac\w+)/,":"+xe+"input-$1")]}),lr(t,{props:[Ce(o,/:(plac\w+)/,":"+bi+"$1")]}),lr(t,{props:[Ce(o,/:(plac\w+)/,Qe+"input-$1")]})],i)}return""})}},Bp=[zp],jp=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(d){var y=d.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(d),d.setAttribute("data-s",""))})}var i=t.stylisPlugins||Bp,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(d){for(var y=d.getAttribute("data-emotion").split(" "),f=1;f<y.length;f++)o[y[f]]=!0;a.push(d)});var l,c=[Fp,$p];{var p,u=[Op,_p(function(d){p.insert(d)})],v=Rp(c.concat(i,u)),b=function(y){return Un(Pp(y),v)};l=function(y,f,m,w){p=m,b(y?y+"{"+f.styles+"}":f.styles),w&&(h.inserted[f.name]=!0)}}var h={key:n,sheet:new mp({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 h.sheet.hydrate(a),h},Vp=!0;function Hp(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var wc=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Vp===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Sc=function(t,n,r){wc(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 Wp(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 Gp={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},Up=/[A-Z]|^ms/g,Yp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,xc=function(t){return t.charCodeAt(1)===45},Ma=function(t){return t!=null&&typeof t!="boolean"},co=Mp(function(e){return xc(e)?e:e.replace(Up,"-$&").toLowerCase()}),Da=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Yp,function(r,i,o){return jt={name:i,styles:o,next:jt},i})}return Gp[t]!==1&&!xc(t)&&typeof n=="number"&&n!==0?n+"px":n};function Pr(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 jt={name:i.name,styles:i.styles,next:jt},i.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)jt={name:s.name,styles:s.styles,next:jt},s=s.next;var a=o.styles+";";return a}return qp(e,t,n)}case"function":{if(e!==void 0){var l=jt,c=n(e);return jt=l,Pr(e,t,c)}break}}var p=n;return p}function qp(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Pr(e,t,n[i])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var a=s;Ma(a)&&(r+=co(o)+":"+Da(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var l=0;l<s.length;l++)Ma(s[l])&&(r+=co(o)+":"+Da(o,s[l])+";");else{var c=Pr(e,t,s);switch(o){case"animation":case"animationName":{r+=co(o)+":"+c+";";break}default:r+=o+"{"+c+"}"}}}return r}var La=/label:\s*([^\s;\n{]+)\s*(;|$)/g,jt;function Ss(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="";jt=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=Pr(n,t,o);else{var s=o;i+=s[0]}for(var a=1;a<e.length;a++)if(i+=Pr(n,t,e[a]),r){var l=o;i+=l[a]}La.lastIndex=0;for(var c="",p;(p=La.exec(i))!==null;)c+="-"+p[1];var u=Wp(i)+c;return{name:u,styles:i,next:jt}}var Xp=function(t){return t()},Cc=kr.useInsertionEffect?kr.useInsertionEffect:!1,Kp=Cc||Xp,Na=Cc||g.useLayoutEffect,Ec=g.createContext(typeof HTMLElement<"u"?jp({key:"css"}):null);Ec.Provider;var kc=function(t){return g.forwardRef(function(n,r){var i=g.useContext(Ec);return t(n,i,r)})},vi=g.createContext({}),Zp=function(t,n){if(typeof n=="function"){var r=n(t);return r}return Kf({},t,n)},Jp=Ra(function(e){return Ra(function(t){return Zp(e,t)})}),Qp=function(t){var n=g.useContext(vi);return t.theme!==n&&(n=Jp(n)(t.theme)),g.createElement(vi.Provider,{value:n},t.children)},Vi={}.hasOwnProperty,Vo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Tc=function(t,n){var r={};for(var i in n)Vi.call(n,i)&&(r[i]=n[i]);return r[Vo]=t,r},em=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return wc(n,r,i),Kp(function(){return Sc(n,r,i)}),null},tm=kc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Vo],o=[r],s="";typeof e.className=="string"?s=Hp(t.registered,o,e.className):e.className!=null&&(s=e.className+" ");var a=Ss(o,void 0,g.useContext(vi));s+=t.key+"-"+a.name;var l={};for(var c in e)Vi.call(e,c)&&c!=="css"&&c!==Vo&&(l[c]=e[c]);return l.className=s,n&&(l.ref=n),g.createElement(g.Fragment,null,g.createElement(em,{cache:t,serialized:a,isStringTag:typeof i=="string"}),g.createElement(i,l))}),Ac=tm,nm=kc(function(e,t){var n=e.styles,r=Ss([n],void 0,g.useContext(vi)),i=g.useRef();return Na(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]),Na(function(){var o=i.current,s=o[0],a=o[1];if(a){o[1]=!1;return}if(r.next!==void 0&&Sc(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 rm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ss(t)}var rn=function(){var t=rm.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 im(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function xs(...e){return t=>e.forEach(n=>im(n,t))}function Te(...e){return g.useCallback(xs(...e),e)}function om(e,t){const n=g.createContext(t);function r(o){const{children:s,...a}=o,l=g.useMemo(()=>a,Object.values(a));return M.jsx(n.Provider,{value:l,children:s})}function i(o){const s=g.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 Gt(e,t=[]){let n=[];function r(o,s){const a=g.createContext(s),l=n.length;n=[...n,s];function c(u){const{scope:v,children:b,...h}=u,d=(v==null?void 0:v[e][l])||a,y=g.useMemo(()=>h,Object.values(h));return M.jsx(d.Provider,{value:y,children:b})}function p(u,v){const b=(v==null?void 0:v[e][l])||a,h=g.useContext(b);if(h)return h;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=>g.createContext(s));return function(a){const l=(a==null?void 0:a[e])||o;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,sm(i,...t)]}function sm(...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 g.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var et=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},am=kr.useId||(()=>{}),lm=0;function Cn(e){const[t,n]=g.useState(am());return et(()=>{n(r=>r??String(lm++))},[e]),t?`radix-${t}`:""}function Qt(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Tn({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=cm({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:r,a=Qt(n),l=g.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 cm({defaultProp:e,onChange:t}){const n=g.useState(e),[r]=n,i=g.useRef(r),o=Qt(t);return g.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var Jn=g.forwardRef((e,t)=>{const{children:n,...r}=e,i=g.Children.toArray(n),o=i.find(dm);if(o){const s=o.props.children,a=i.map(l=>l===o?g.Children.count(s)>1?g.Children.only(null):g.isValidElement(s)?s.props.children:null:l);return M.jsx(Ho,{...r,ref:t,children:g.isValidElement(s)?g.cloneElement(s,void 0,a):null})}return M.jsx(Ho,{...r,ref:t,children:n})});Jn.displayName="Slot";var Ho=g.forwardRef((e,t)=>{const{children:n,...r}=e;if(g.isValidElement(n)){const i=pm(n);return g.cloneElement(n,{...fm(r,n.props),ref:t?xs(t,i):i})}return g.Children.count(n)>1?g.Children.only(null):null});Ho.displayName="SlotClone";var um=({children:e})=>M.jsx(M.Fragment,{children:e});function dm(e){return g.isValidElement(e)&&e.type===um}function fm(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 pm(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 mm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ke=mm.reduce((e,t)=>{const n=g.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?Jn: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 hm(e,t){e&&Qn.flushSync(()=>e.dispatchEvent(t))}function gm(e,t=globalThis==null?void 0:globalThis.document){const n=Qt(e);g.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 bm="DismissableLayer",Wo="dismissableLayer.update",vm="dismissableLayer.pointerDownOutside",ym="dismissableLayer.focusOutside",Fa,Pc=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Cs=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...l}=e,c=g.useContext(Pc),[p,u]=g.useState(null),v=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,b]=g.useState({}),h=Te(t,A=>u(A)),d=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),f=d.indexOf(y),m=p?d.indexOf(p):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,S=m>=f,x=xm(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 gm(A=>{m===c.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},v),g.useEffect(()=>{if(p)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Fa=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(p)),c.layers.add(p),$a(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Fa)}},[p,v,n,c]),g.useEffect(()=>()=>{p&&(c.layers.delete(p),c.layersWithOutsidePointerEventsDisabled.delete(p),$a())},[p,c]),g.useEffect(()=>{const A=()=>b({});return document.addEventListener(Wo,A),()=>document.removeEventListener(Wo,A)},[]),M.jsx(ke.div,{...l,ref:h,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)})});Cs.displayName=bm;var wm="DismissableLayerBranch",Sm=g.forwardRef((e,t)=>{const n=g.useContext(Pc),r=g.useRef(null),i=Te(t,r);return g.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})});Sm.displayName=wm;function xm(e,t=globalThis==null?void 0:globalThis.document){const n=Qt(e),r=g.useRef(!1),i=g.useRef(()=>{});return g.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let l=function(){Ic(vm,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=Qt(e),r=g.useRef(!1);return g.useEffect(()=>{const i=o=>{o.target&&!r.current&&Ic(ym,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 $a(){const e=new CustomEvent(Wo);document.dispatchEvent(e)}function Ic(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?hm(i,o):i.dispatchEvent(o)}var uo="focusScope.autoFocusOnMount",fo="focusScope.autoFocusOnUnmount",za={bubbles:!1,cancelable:!0},Em="FocusScope",Es=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[a,l]=g.useState(null),c=Qt(i),p=Qt(o),u=g.useRef(null),v=Te(t,d=>l(d)),b=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let d=function(w){if(b.paused||!a)return;const S=w.target;a.contains(S)?u.current=S:dn(u.current,{select:!0})},y=function(w){if(b.paused||!a)return;const S=w.relatedTarget;S!==null&&(a.contains(S)||dn(u.current,{select:!0}))},f=function(w){if(document.activeElement===document.body)for(const x of w)x.removedNodes.length>0&&dn(a)};document.addEventListener("focusin",d),document.addEventListener("focusout",y);const m=new MutationObserver(f);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",y),m.disconnect()}}},[r,a,b.paused]),g.useEffect(()=>{if(a){ja.add(b);const d=document.activeElement;if(!a.contains(d)){const f=new CustomEvent(uo,za);a.addEventListener(uo,c),a.dispatchEvent(f),f.defaultPrevented||(km(Om(Oc(a)),{select:!0}),document.activeElement===d&&dn(a))}return()=>{a.removeEventListener(uo,c),setTimeout(()=>{const f=new CustomEvent(fo,za);a.addEventListener(fo,p),a.dispatchEvent(f),f.defaultPrevented||dn(d??document.body,{select:!0}),a.removeEventListener(fo,p),ja.remove(b)},0)}}},[a,c,p,b]);const h=g.useCallback(d=>{if(!n&&!r||b.paused)return;const y=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,f=document.activeElement;if(y&&f){const m=d.currentTarget,[w,S]=Tm(m);w&&S?!d.shiftKey&&f===S?(d.preventDefault(),n&&dn(w,{select:!0})):d.shiftKey&&f===w&&(d.preventDefault(),n&&dn(S,{select:!0})):f===m&&d.preventDefault()}},[n,r,b.paused]);return M.jsx(ke.div,{tabIndex:-1,...s,ref:v,onKeyDown:h})});Es.displayName=Em;function km(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(dn(r,{select:t}),document.activeElement!==n)return}function Tm(e){const t=Oc(e),n=Ba(t,e),r=Ba(t.reverse(),e);return[n,r]}function Oc(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 Ba(e,t){for(const n of e)if(!Am(n,{upTo:t}))return n}function Am(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 Pm(e){return e instanceof HTMLInputElement&&"select"in e}function dn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Pm(e)&&t&&e.select()}}var ja=Im();function Im(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Va(e,t),e.unshift(t)},remove(t){var n;e=Va(e,t),(n=e[0])==null||n.resume()}}}function Va(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Om(e){return e.filter(t=>t.tagName!=="A")}var Rm="Portal",ks=g.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,o]=g.useState(!1);et(()=>o(!0),[]);const s=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Zf.createPortal(M.jsx(ke.div,{...r,ref:t}),s):null});ks.displayName=Rm;function _m(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var _n=e=>{const{present:t,children:n}=e,r=Mm(t),i=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),o=Te(r.ref,Dm(i));return typeof n=="function"||r.isPresent?g.cloneElement(i,{ref:o}):null};_n.displayName="Presence";function Mm(e){const[t,n]=g.useState(),r=g.useRef({}),i=g.useRef(e),o=g.useRef("none"),s=e?"mounted":"unmounted",[a,l]=_m(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const c=Ur(r.current);o.current=a==="mounted"?c:"none"},[a]),et(()=>{const c=r.current,p=i.current;if(p!==e){const v=o.current,b=Ur(c);e?l("MOUNT"):b==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(p&&v!==b?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),et(()=>{if(t){const c=u=>{const b=Ur(r.current).includes(u.animationName);u.target===t&&b&&Qn.flushSync(()=>l("ANIMATION_END"))},p=u=>{u.target===t&&(o.current=Ur(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:g.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Ur(e){return(e==null?void 0:e.animationName)||"none"}function Dm(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 po=0;function Rc(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ha()),document.body.insertAdjacentElement("beforeend",e[1]??Ha()),po++,()=>{po===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),po--}},[])}function Ha(){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 fn=function(){return fn=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},fn.apply(this,arguments)};function Lm(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 Nm(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 Yn="right-scroll-bar-position",qn="width-before-scroll-bar",Fm="with-scroll-bars-hidden",$m="--removed-body-scroll-bar-size";function mo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function zm(e,t){var n=g.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 Bm=typeof window<"u"?g.useLayoutEffect:g.useEffect,Wa=new WeakMap;function Ts(e,t){var n=zm(null,function(r){return e.forEach(function(i){return mo(i,r)})});return Bm(function(){var r=Wa.get(n);if(r){var i=new Set(r),o=new Set(e),s=n.current;i.forEach(function(a){o.has(a)||mo(a,null)}),o.forEach(function(a){i.has(a)||mo(a,s)})}Wa.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 yi=function(){return yi=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},yi.apply(this,arguments)};function jm(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 Vm(e){return e}function Hm(e,t){t===void 0&&(t=Vm);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 As(e){e===void 0&&(e={});var t=Hm(null);return t.options=yi({async:!0,ssr:!1},e),t}var _c=function(e){var t=e.sideCar,n=jm(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 g.createElement(r,yi({},n))};_c.isSideCarExport=!0;function Ps(e,t){return e.useMedium(t),_c}var Mc=As(),ho=function(){},Hi=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:ho,onWheelCapture:ho,onTouchMoveCapture:ho}),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,b=e.noIsolation,h=e.inert,d=e.allowPinchZoom,y=e.as,f=y===void 0?"div":y,m=e.gapMode,w=Lm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,x=Ts([n,t]),T=fn(fn({},w),i);return g.createElement(g.Fragment,null,p&&g.createElement(S,{sideCar:Mc,removeScrollBar:c,shards:u,noIsolation:b,inert:h,setCallbacks:o,allowPinchZoom:!!d,lockRef:n,gapMode:m}),s?g.cloneElement(g.Children.only(a),fn(fn({},T),{ref:x})):g.createElement(f,fn({},T,{className:l,ref:x}),a))});Hi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Hi.classNames={fullWidth:qn,zeroRight:Yn};var Wm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Gm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Wm();return t&&e.setAttribute("nonce",t),e}function Um(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ym(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var qm=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Gm())&&(Um(t,n),Ym(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Xm=function(){var e=qm();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Wi=function(){var e=Xm(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},Km={left:0,top:0,right:0,gap:0},go=function(e){return parseInt(e||"",10)||0},Zm=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[go(n),go(r),go(i)]},Jm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Km;var t=Zm(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])}},Qm=Wi(),Xn="data-scroll-locked",eh=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(Fm,` {
   overflow: hidden `).concat(r,`;
   padding-right: `).concat(a,"px ").concat(r,`;
  }
  body[`).concat(Xn,`] {
    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(Yn,` {
    right: `).concat(a,"px ").concat(r,`;
  }
  
  .`).concat(qn,` {
    margin-right: `).concat(a,"px ").concat(r,`;
  }
  
  .`).concat(Yn," .").concat(Yn,` {
    right: 0 `).concat(r,`;
  }
  
  .`).concat(qn," .").concat(qn,` {
    margin-right: 0 `).concat(r,`;
  }
  
  body[`).concat(Xn,`] {
    `).concat($m,": ").concat(a,`px;
  }
`)},Ga=function(){var e=parseInt(document.body.getAttribute(Xn)||"0",10);return isFinite(e)?e:0},th=function(){g.useEffect(function(){return document.body.setAttribute(Xn,(Ga()+1).toString()),function(){var e=Ga()-1;e<=0?document.body.removeAttribute(Xn):document.body.setAttribute(Xn,e.toString())}},[])},Is=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;th();var o=g.useMemo(function(){return Jm(i)},[i]);return g.createElement(Qm,{styles:eh(o,!t,i,n?"":"!important")})},Go=!1;if(typeof window<"u")try{var Yr=Object.defineProperty({},"passive",{get:function(){return Go=!0,!0}});window.addEventListener("test",Yr,Yr),window.removeEventListener("test",Yr,Yr)}catch{Go=!1}var Nn=Go?{passive:!1}:!1,nh=function(e){return e.tagName==="TEXTAREA"},Dc=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!nh(e)&&n[t]==="visible")},rh=function(e){return Dc(e,"overflowY")},ih=function(e){return Dc(e,"overflowX")},Ua=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=Lc(e,r);if(i){var o=Nc(e,r),s=o[1],a=o[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},oh=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},sh=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Lc=function(e,t){return e==="v"?rh(t):ih(t)},Nc=function(e,t){return e==="v"?oh(t):sh(t)},ah=function(e,t){return e==="h"&&t==="rtl"?-1:1},lh=function(e,t,n,r,i){var o=ah(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 b=Nc(e,a),h=b[0],d=b[1],y=b[2],f=d-y-o*h;(h||f)&&Lc(e,a)&&(u+=f,v+=h),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},qr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ya=function(e){return[e.deltaX,e.deltaY]},qa=function(e){return e&&"current"in e?e.current:e},ch=function(e,t){return e[0]===t[0]&&e[1]===t[1]},uh=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},dh=0,Fn=[];function fh(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),i=g.useState(dh++)[0],o=g.useState(Wi)[0],s=g.useRef(e);g.useEffect(function(){s.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var d=Nm([e.lockRef.current],(e.shards||[]).map(qa)).filter(Boolean);return d.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),d.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=g.useCallback(function(d,y){if("touches"in d&&d.touches.length===2)return!s.current.allowPinchZoom;var f=qr(d),m=n.current,w="deltaX"in d?d.deltaX:m[0]-f[0],S="deltaY"in d?d.deltaY:m[1]-f[1],x,T=d.target,A=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in d&&A==="h"&&T.type==="range")return!1;var k=Ua(A,T);if(!k)return!0;if(k?x=A:(x=A==="v"?"h":"v",k=Ua(A,T)),!k)return!1;if(!r.current&&"changedTouches"in d&&(w||S)&&(r.current=x),!x)return!0;var _=r.current||x;return lh(_,y,d,_==="h"?w:S)},[]),l=g.useCallback(function(d){var y=d;if(!(!Fn.length||Fn[Fn.length-1]!==o)){var f="deltaY"in y?Ya(y):qr(y),m=t.current.filter(function(x){return x.name===y.type&&(x.target===y.target||y.target===x.shadowParent)&&ch(x.delta,f)})[0];if(m&&m.should){y.cancelable&&y.preventDefault();return}if(!m){var w=(s.current.shards||[]).map(qa).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=g.useCallback(function(d,y,f,m){var w={name:d,delta:y,target:f,should:m,shadowParent:ph(f)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),p=g.useCallback(function(d){n.current=qr(d),r.current=void 0},[]),u=g.useCallback(function(d){c(d.type,Ya(d),d.target,a(d,e.lockRef.current))},[]),v=g.useCallback(function(d){c(d.type,qr(d),d.target,a(d,e.lockRef.current))},[]);g.useEffect(function(){return Fn.push(o),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:v}),document.addEventListener("wheel",l,Nn),document.addEventListener("touchmove",l,Nn),document.addEventListener("touchstart",p,Nn),function(){Fn=Fn.filter(function(d){return d!==o}),document.removeEventListener("wheel",l,Nn),document.removeEventListener("touchmove",l,Nn),document.removeEventListener("touchstart",p,Nn)}},[]);var b=e.removeScrollBar,h=e.inert;return g.createElement(g.Fragment,null,h?g.createElement(o,{styles:uh(i)}):null,b?g.createElement(Is,{gapMode:e.gapMode}):null)}function ph(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const mh=Ps(Mc,fh);var Fc=g.forwardRef(function(e,t){return g.createElement(Hi,fn({},e,{ref:t,sideCar:mh}))});Fc.classNames=Hi.classNames;var hh=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},$n=new WeakMap,Xr=new WeakMap,Kr={},bo=0,$c=function(e){return e&&(e.host||$c(e.parentNode))},gh=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})},bh=function(e,t,n,r){var i=gh(t,Array.isArray(e)?e:[e]);Kr[n]||(Kr[n]=new WeakMap);var o=Kr[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 b=v.getAttribute(r),h=b!==null&&b!=="false",d=($n.get(v)||0)+1,y=(o.get(v)||0)+1;$n.set(v,d),o.set(v,y),s.push(v),d===1&&h&&Xr.set(v,!0),y===1&&v.setAttribute(n,"true"),h||v.setAttribute(r,"true")}catch(f){console.error("aria-hidden: cannot operate on ",v,f)}})};return p(t),a.clear(),bo++,function(){s.forEach(function(u){var v=$n.get(u)-1,b=o.get(u)-1;$n.set(u,v),o.set(u,b),v||(Xr.has(u)||u.removeAttribute(r),Xr.delete(u)),b||u.removeAttribute(n)}),bo--,bo||($n=new WeakMap,$n=new WeakMap,Xr=new WeakMap,Kr={})}},zc=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=hh(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),bh(r,i,n,"aria-hidden")):function(){return null}},Os="Dialog",[Bc,JC]=Gt(Os),[vh,Mt]=Bc(Os),jc=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,a=g.useRef(null),l=g.useRef(null),[c=!1,p]=Tn({prop:r,defaultProp:i,onChange:o});return M.jsx(vh,{scope:t,triggerRef:a,contentRef:l,contentId:Cn(),titleId:Cn(),descriptionId:Cn(),open:c,onOpenChange:p,onOpenToggle:g.useCallback(()=>p(u=>!u),[p]),modal:s,children:n})};jc.displayName=Os;var Vc="DialogTrigger",yh=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Mt(Vc,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":Ms(i.open),...r,ref:o,onClick:ye(e.onClick,i.onOpenToggle)})});yh.displayName=Vc;var Rs="DialogPortal",[wh,Hc]=Bc(Rs,{forceMount:void 0}),Wc=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=Mt(Rs,t);return M.jsx(wh,{scope:t,forceMount:n,children:g.Children.map(r,s=>M.jsx(_n,{present:n||o.open,children:M.jsx(ks,{asChild:!0,container:i,children:s})}))})};Wc.displayName=Rs;var wi="DialogOverlay",Gc=g.forwardRef((e,t)=>{const n=Hc(wi,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=Mt(wi,e.__scopeDialog);return o.modal?M.jsx(_n,{present:r||o.open,children:M.jsx(Sh,{...i,ref:t})}):null});Gc.displayName=wi;var Sh=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Mt(wi,n);return M.jsx(Fc,{as:Jn,allowPinchZoom:!0,shards:[i.contentRef],children:M.jsx(ke.div,{"data-state":Ms(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),An="DialogContent",Uc=g.forwardRef((e,t)=>{const n=Hc(An,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=Mt(An,e.__scopeDialog);return M.jsx(_n,{present:r||o.open,children:o.modal?M.jsx(xh,{...i,ref:t}):M.jsx(Ch,{...i,ref:t})})});Uc.displayName=An;var xh=g.forwardRef((e,t)=>{const n=Mt(An,e.__scopeDialog),r=g.useRef(null),i=Te(t,n.contentRef,r);return g.useEffect(()=>{const o=r.current;if(o)return zc(o)},[]),M.jsx(Yc,{...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=g.forwardRef((e,t)=>{const n=Mt(An,e.__scopeDialog),r=g.useRef(!1),i=g.useRef(!1);return M.jsx(Yc,{...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()}})}),Yc=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,a=Mt(An,n),l=g.useRef(null),c=Te(t,l);return Rc(),M.jsxs(M.Fragment,{children:[M.jsx(Es,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:M.jsx(Cs,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Ms(a.open),...s,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),M.jsxs(M.Fragment,{children:[M.jsx(Eh,{titleId:a.titleId}),M.jsx(Th,{contentRef:l,descriptionId:a.descriptionId})]})]})}),_s="DialogTitle",qc=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Mt(_s,n);return M.jsx(ke.h2,{id:i.titleId,...r,ref:t})});qc.displayName=_s;var Xc="DialogDescription",Kc=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Mt(Xc,n);return M.jsx(ke.p,{id:i.descriptionId,...r,ref:t})});Kc.displayName=Xc;var Zc="DialogClose",Jc=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Mt(Zc,n);return M.jsx(ke.button,{type:"button",...r,ref:t,onClick:ye(e.onClick,()=>i.onOpenChange(!1))})});Jc.displayName=Zc;function Ms(e){return e?"open":"closed"}var Qc="DialogTitleWarning",[QC,eu]=om(Qc,{contentName:An,titleName:_s,docsSlug:"dialog"}),Eh=({titleId:e})=>{const t=eu(Qc),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 g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},kh="DialogDescriptionWarning",Th=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${eu(kh).contentName}}.`;return g.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},Ah=jc,Ph=Wc,Ih=Gc,Oh=Uc,Rh=qc,_h=Kc,Mh=Jc,Gi=M.Fragment;function C(e,t,n){return Vi.call(t,"css")?M.jsx(Ac,Tc(e,t),n):M.jsx(e,t,n)}function ce(e,t,n){return Vi.call(t,"css")?M.jsxs(Ac,Tc(e,t),n):M.jsxs(e,t,n)}function tu(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=tu(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Dh(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=tu(e))&&(r&&(r+=" "),r+=t);return r}var nu={};const Lh=["-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"],Nh={properties:Lh};nu.all=Nh.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:ru,setPrototypeOf:Xa,isFrozen:Fh,getPrototypeOf:$h,getOwnPropertyDescriptor:zh}=Object;let{freeze:st,seal:Et,create:iu}=Object,{apply:Uo,construct:Yo}=typeof Reflect<"u"&&Reflect;st||(st=function(t){return t});Et||(Et=function(t){return t});Uo||(Uo=function(t,n,r){return t.apply(n,r)});Yo||(Yo=function(t,n){return new t(...n)});const Zr=at(Array.prototype.forEach),Bh=at(Array.prototype.lastIndexOf),Ka=at(Array.prototype.pop),cr=at(Array.prototype.push),jh=at(Array.prototype.splice),fi=at(String.prototype.toLowerCase),vo=at(String.prototype.toString),Za=at(String.prototype.match),ur=at(String.prototype.replace),Vh=at(String.prototype.indexOf),Hh=at(String.prototype.trim),At=at(Object.prototype.hasOwnProperty),rt=at(RegExp.prototype.test),dr=Wh(TypeError);function at(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 Uo(e,t,r)}}function Wh(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Yo(e,n)}}function be(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fi;Xa&&Xa(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(Fh(t)||(t[r]=o),i=o)}e[i]=!0}return e}function Gh(e){for(let t=0;t<e.length;t++)At(e,t)||(e[t]=null);return e}function xn(e){const t=iu(null);for(const[n,r]of ru(e))At(e,n)&&(Array.isArray(r)?t[n]=Gh(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=xn(r):t[n]=r);return t}function fr(e,t){for(;e!==null;){const r=zh(e,t);if(r){if(r.get)return at(r.get);if(typeof r.value=="function")return at(r.value)}e=$h(e)}function n(){return null}return n}const Ja=st(["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"]),yo=st(["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"]),wo=st(["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"]),Uh=st(["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"]),So=st(["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"]),Yh=st(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Qa=st(["#text"]),el=st(["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"]),xo=st(["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"]),tl=st(["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"]),Jr=st(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),qh=Et(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Xh=Et(/<%[\w\W]*|[\w\W]*%>/gm),Kh=Et(/\$\{[\w\W]*/gm),Zh=Et(/^data-[\-\w.\u00B7-\uFFFF]+$/),Jh=Et(/^aria-[\-\w]+$/),ou=Et(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Qh=Et(/^(?:\w+script|data):/i),eg=Et(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),su=Et(/^html$/i),tg=Et(/^[a-z][.\w]*(-[.\w]+)+$/i);var nl=Object.freeze({__proto__:null,ARIA_ATTR:Jh,ATTR_WHITESPACE:eg,CUSTOM_ELEMENT:tg,DATA_ATTR:Zh,DOCTYPE_NAME:su,ERB_EXPR:Xh,IS_ALLOWED_URI:ou,IS_SCRIPT_OR_DATA:Qh,MUSTACHE_EXPR:qh,TMPLIT_EXPR:Kh});const pr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ng=function(){return typeof window>"u"?null:window},rg=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}},rl=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function au(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ng();const t=ne=>au(ne);if(t.version="3.2.4",t.removed=[],!e||!e.document||e.document.nodeType!==pr.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:b}=e,h=l.prototype,d=fr(h,"cloneNode"),y=fr(h,"remove"),f=fr(h,"nextSibling"),m=fr(h,"childNodes"),w=fr(h,"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=rl();t.isSupported=typeof ru=="function"&&typeof w=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:I,ERB_EXPR:L,TMPLIT_EXPR:N,DATA_ATTR:V,ARIA_ATTR:$,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:J}=nl;let{IS_ALLOWED_URI:ge}=nl,re=null;const Re=be({},[...Ja,...yo,...wo,...So,...Qa]);let ve=null;const Ae=be({},[...el,...xo,...tl,...Jr]);let oe=Object.seal(iu(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 St=null;const cn=be({},["audio","video","img","source","image","track"]);let Ze=null;const Dt=be({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Lt="http://www.w3.org/1998/Math/MathML",xt="http://www.w3.org/2000/svg",tt="http://www.w3.org/1999/xhtml";let Tt=tt,or=!1,sr=null;const jr=be({},[Lt,xt,tt],vo);let Dn=be({},["mi","mo","mn","ms","mtext"]),Sn=be({},["annotation-xml"]);const Vr=be({},["title","style","font","a","script"]);let un=null;const so=["application/xhtml+xml","text/html"],Hr="text/html";let je=null,Ln=null;const Yf=n.createElement("form"),ha=function(P){return P instanceof RegExp||P instanceof Function},ao=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ln&&Ln===P)){if((!P||typeof P!="object")&&(P={}),P=xn(P),un=so.indexOf(P.PARSER_MEDIA_TYPE)===-1?Hr:P.PARSER_MEDIA_TYPE,je=un==="application/xhtml+xml"?vo:fi,re=At(P,"ALLOWED_TAGS")?be({},P.ALLOWED_TAGS,je):Re,ve=At(P,"ALLOWED_ATTR")?be({},P.ALLOWED_ATTR,je):Ae,sr=At(P,"ALLOWED_NAMESPACES")?be({},P.ALLOWED_NAMESPACES,vo):jr,Ze=At(P,"ADD_URI_SAFE_ATTR")?be(xn(Dt),P.ADD_URI_SAFE_ATTR,je):Dt,St=At(P,"ADD_DATA_URI_TAGS")?be(xn(cn),P.ADD_DATA_URI_TAGS,je):cn,Pe=At(P,"FORBID_CONTENTS")?be({},P.FORBID_CONTENTS,je):Me,Se=At(P,"FORBID_TAGS")?be({},P.FORBID_TAGS,je):{},Z=At(P,"FORBID_ATTR")?be({},P.FORBID_ATTR,je):{},me=At(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||ou,Tt=P.NAMESPACE||tt,Dn=P.MATHML_TEXT_INTEGRATION_POINTS||Dn,Sn=P.HTML_INTEGRATION_POINTS||Sn,oe=P.CUSTOM_ELEMENT_HANDLING||{},P.CUSTOM_ELEMENT_HANDLING&&ha(P.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(oe.tagNameCheck=P.CUSTOM_ELEMENT_HANDLING.tagNameCheck),P.CUSTOM_ELEMENT_HANDLING&&ha(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,Ja),be(ve,el)),me.svg===!0&&(be(re,yo),be(ve,xo),be(ve,Jr)),me.svgFilters===!0&&(be(re,wo),be(ve,xo),be(ve,Jr)),me.mathMl===!0&&(be(re,So),be(ve,tl),be(ve,Jr))),P.ADD_TAGS&&(re===Re&&(re=xn(re)),be(re,P.ADD_TAGS,je)),P.ADD_ATTR&&(ve===Ae&&(ve=xn(ve)),be(ve,P.ADD_ATTR,je)),P.ADD_URI_SAFE_ATTR&&be(Ze,P.ADD_URI_SAFE_ATTR,je),P.FORBID_CONTENTS&&(Pe===Me&&(Pe=xn(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 dr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof P.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw dr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=P.TRUSTED_TYPES_POLICY,x=S.createHTML("")}else S===void 0&&(S=rg(b,i)),S!==null&&typeof x=="string"&&(x=S.createHTML(""));st&&st(P),Ln=P}},ga=be({},[...yo,...wo,...Uh]),ba=be({},[...So,...Yh]),qf=function(P){let Y=w(P);(!Y||!Y.tagName)&&(Y={namespaceURI:Tt,tagName:"template"});const ee=fi(P.tagName),De=fi(Y.tagName);return sr[P.namespaceURI]?P.namespaceURI===xt?Y.namespaceURI===tt?ee==="svg":Y.namespaceURI===Lt?ee==="svg"&&(De==="annotation-xml"||Dn[De]):!!ga[ee]:P.namespaceURI===Lt?Y.namespaceURI===tt?ee==="math":Y.namespaceURI===xt?ee==="math"&&Sn[De]:!!ba[ee]:P.namespaceURI===tt?Y.namespaceURI===xt&&!Sn[De]||Y.namespaceURI===Lt&&!Dn[De]?!1:!ba[ee]&&(Vr[ee]||!ga[ee]):!!(un==="application/xhtml+xml"&&sr[P.namespaceURI]):!1},Nt=function(P){cr(t.removed,{element:P});try{w(P).removeChild(P)}catch{y(P)}},Wr=function(P,Y){try{cr(t.removed,{attribute:Y.getAttributeNode(P),from:Y})}catch{cr(t.removed,{attribute:null,from:Y})}if(Y.removeAttribute(P),P==="is")if(Le||E)try{Nt(Y)}catch{}else try{Y.setAttribute(P,"")}catch{}},va=function(P){let Y=null,ee=null;if(ze)P="<remove></remove>"+P;else{const qe=Za(P,/^[\r\n\t ]+/);ee=qe&&qe[0]}un==="application/xhtml+xml"&&Tt===tt&&(P='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+P+"</body></html>");const De=S?S.createHTML(P):P;if(Tt===tt)try{Y=new v().parseFromString(De,un)}catch{}if(!Y||!Y.documentElement){Y=T.createDocument(Tt,"template",null);try{Y.documentElement.innerHTML=or?x:De}catch{}}const Je=Y.body||Y.documentElement;return P&&ee&&Je.insertBefore(n.createTextNode(ee),Je.childNodes[0]||null),Tt===tt?_.call(Y,fe?"html":"body")[0]:fe?Y.documentElement:Je},ya=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)},lo=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")},wa=function(P){return typeof a=="function"&&P instanceof a};function Ut(ne,P,Y){Zr(ne,ee=>{ee.call(t,P,Y,Ln)})}const Sa=function(P){let Y=null;if(Ut(R.beforeSanitizeElements,P,null),lo(P))return Nt(P),!0;const ee=je(P.nodeName);if(Ut(R.uponSanitizeElement,P,{tagName:ee,allowedTags:re}),P.hasChildNodes()&&!wa(P.firstElementChild)&&rt(/<[/\w]/g,P.innerHTML)&&rt(/<[/\w]/g,P.textContent)||P.nodeType===pr.progressingInstruction||le&&P.nodeType===pr.comment&&rt(/<[/\w]/g,P.data))return Nt(P),!0;if(!re[ee]||Se[ee]){if(!Se[ee]&&Ca(ee)&&(oe.tagNameCheck instanceof RegExp&&rt(oe.tagNameCheck,ee)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(ee)))return!1;if(W&&!Pe[ee]){const De=w(P)||P.parentNode,Je=m(P)||P.childNodes;if(Je&&De){const qe=Je.length;for(let lt=qe-1;lt>=0;--lt){const Ft=d(Je[lt],!0);Ft.__removalCount=(P.__removalCount||0)+1,De.insertBefore(Ft,f(P))}}}return Nt(P),!0}return P instanceof l&&!qf(P)||(ee==="noscript"||ee==="noembed"||ee==="noframes")&&rt(/<\/no(script|embed|frames)/i,P.innerHTML)?(Nt(P),!0):(H&&P.nodeType===pr.text&&(Y=P.textContent,Zr([I,L,N],De=>{Y=ur(Y,De," ")}),P.textContent!==Y&&(cr(t.removed,{element:P.cloneNode()}),P.textContent=Y)),Ut(R.afterSanitizeElements,P,null),!1)},xa=function(P,Y,ee){if(F&&(Y==="id"||Y==="name")&&(ee in n||ee in Yf))return!1;if(!(we&&!Z[Y]&&rt(V,Y))){if(!(se&&rt($,Y))){if(!ve[Y]||Z[Y]){if(!(Ca(P)&&(oe.tagNameCheck instanceof RegExp&&rt(oe.tagNameCheck,P)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(P))&&(oe.attributeNameCheck instanceof RegExp&&rt(oe.attributeNameCheck,Y)||oe.attributeNameCheck instanceof Function&&oe.attributeNameCheck(Y))||Y==="is"&&oe.allowCustomizedBuiltInElements&&(oe.tagNameCheck instanceof RegExp&&rt(oe.tagNameCheck,ee)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(ee))))return!1}else if(!Ze[Y]){if(!rt(ge,ur(ee,U,""))){if(!((Y==="src"||Y==="xlink:href"||Y==="href")&&P!=="script"&&Vh(ee,"data:")===0&&St[P])){if(!(de&&!rt(j,ur(ee,U,"")))){if(ee)return!1}}}}}}return!0},Ca=function(P){return P!=="annotation-xml"&&Za(P,J)},Ea=function(P){Ut(R.beforeSanitizeAttributes,P,null);const{attributes:Y}=P;if(!Y||lo(P))return;const ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ve,forceKeepAttr:void 0};let De=Y.length;for(;De--;){const Je=Y[De],{name:qe,namespaceURI:lt,value:Ft}=Je,ar=je(qe);let nt=qe==="value"?Ft:Hh(Ft);if(ee.attrName=ar,ee.attrValue=nt,ee.keepAttr=!0,ee.forceKeepAttr=void 0,Ut(R.uponSanitizeAttribute,P,ee),nt=ee.attrValue,X&&(ar==="id"||ar==="name")&&(Wr(qe,P),nt=q+nt),le&&rt(/((--!?|])>)|<\/(style|title)/i,nt)){Wr(qe,P);continue}if(ee.forceKeepAttr||(Wr(qe,P),!ee.keepAttr))continue;if(!te&&rt(/\/>/i,nt)){Wr(qe,P);continue}H&&Zr([I,L,N],Ta=>{nt=ur(nt,Ta," ")});const ka=je(P.nodeName);if(xa(ka,ar,nt)){if(S&&typeof b=="object"&&typeof b.getAttributeType=="function"&&!lt)switch(b.getAttributeType(ka,ar)){case"TrustedHTML":{nt=S.createHTML(nt);break}case"TrustedScriptURL":{nt=S.createScriptURL(nt);break}}try{lt?P.setAttributeNS(lt,qe,nt):P.setAttribute(qe,nt),lo(P)?Nt(P):Ka(t.removed)}catch{}}}Ut(R.afterSanitizeAttributes,P,null)},Xf=function ne(P){let Y=null;const ee=ya(P);for(Ut(R.beforeSanitizeShadowDOM,P,null);Y=ee.nextNode();)Ut(R.uponSanitizeShadowNode,Y,null),Sa(Y),Ea(Y),Y.content instanceof o&&ne(Y.content);Ut(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,Je=null;if(or=!ne,or&&(ne="<!-->"),typeof ne!="string"&&!wa(ne))if(typeof ne.toString=="function"){if(ne=ne.toString(),typeof ne!="string")throw dr("dirty is not a string, aborting")}else throw dr("toString is not a function");if(!t.isSupported)return ne;if(_e||ao(P),t.removed=[],typeof ne=="string"&&(Q=!1),Q){if(ne.nodeName){const Ft=je(ne.nodeName);if(!re[Ft]||Se[Ft])throw dr("root node is forbidden and cannot be sanitized in-place")}}else if(ne instanceof a)Y=va("<!---->"),ee=Y.ownerDocument.importNode(ne,!0),ee.nodeType===pr.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=va(ne),!Y)return Le?null:O?x:""}Y&&ze&&Nt(Y.firstChild);const qe=ya(Q?ne:Y);for(;De=qe.nextNode();)Sa(De),Ea(De),De.content instanceof o&&Xf(De.content);if(Q)return ne;if(Le){if(E)for(Je=k.call(Y.ownerDocument);Y.firstChild;)Je.appendChild(Y.firstChild);else Je=Y;return(ve.shadowroot||ve.shadowrootmode)&&(Je=z.call(r,Je,!0)),Je}let lt=fe?Y.outerHTML:Y.innerHTML;return fe&&re["!doctype"]&&Y.ownerDocument&&Y.ownerDocument.doctype&&Y.ownerDocument.doctype.name&&rt(su,Y.ownerDocument.doctype.name)&&(lt="<!DOCTYPE "+Y.ownerDocument.doctype.name+`>
`+lt),H&&Zr([I,L,N],Ft=>{lt=ur(lt,Ft," ")}),S&&O?S.createHTML(lt):lt},t.setConfig=function(){let ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ao(ne),_e=!0},t.clearConfig=function(){Ln=null,_e=!1},t.isValidAttribute=function(ne,P,Y){Ln||ao({});const ee=je(ne),De=je(P);return xa(ee,De,Y)},t.addHook=function(ne,P){typeof P=="function"&&cr(R[ne],P)},t.removeHook=function(ne,P){if(P!==void 0){const Y=Bh(R[ne],P);return Y===-1?void 0:jh(R[ne],Y,1)[0]}return Ka(R[ne])},t.removeHooks=function(ne){R[ne]=[]},t.removeAllHooks=function(){R=rl()},t}var ig=au();let Qr;const og=new Uint8Array(16);function sg(){if(!Qr&&(Qr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Qr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Qr(og)}const Xe=[];for(let e=0;e<256;++e)Xe.push((e+256).toString(16).slice(1));function ag(e,t=0){return Xe[e[t+0]]+Xe[e[t+1]]+Xe[e[t+2]]+Xe[e[t+3]]+"-"+Xe[e[t+4]]+Xe[e[t+5]]+"-"+Xe[e[t+6]]+Xe[e[t+7]]+"-"+Xe[e[t+8]]+Xe[e[t+9]]+"-"+Xe[e[t+10]]+Xe[e[t+11]]+Xe[e[t+12]]+Xe[e[t+13]]+Xe[e[t+14]]+Xe[e[t+15]]}const lg=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),il={randomUUID:lg};function ol(e,t,n){if(il.randomUUID&&!e)return il.randomUUID();e=e||{};const r=e.random||(e.rng||sg)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,ag(r)}var cg=Object.defineProperty,ug=Object.defineProperties,dg=Object.getOwnPropertyDescriptors,sl=Object.getOwnPropertySymbols,fg=Object.prototype.hasOwnProperty,pg=Object.prototype.propertyIsEnumerable,al=(e,t,n)=>t in e?cg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,it=(e,t)=>{for(var n in t||(t={}))fg.call(t,n)&&al(e,n,t[n]);if(sl)for(var n of sl(t))pg.call(t,n)&&al(e,n,t[n]);return e},Sr=(e,t)=>ug(e,dg(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())}),ut={};function br(e){return`${e.__instanceId}-${e.apiKey}`}var lu=class{constructor(e){this.config={apiKey:"",apiUrl:"https://api.frigade.com",userId:Ig(),__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=it(it({},this.config),t)}fetch(e,t){return he(this,null,function*(){return this.config.__readOnly?zt():Pg(this.getAPIUrl(e),it(it({keepalive:!0},t??{}),xg(this.config)))})}getAPIUrl(e){return`${this.config.apiUrl.replace(/\/$/,"")}/${e.replace(/^\//,"")}`}getGlobalState(){let e=br(this.config);if(!ut[e])throw new Error("Frigade has not yet been initialized");return ut[e]}},qo=class extends lu{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=$t(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 Sr(it({},e),{flow:this,$state:Sr(it({},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=$t(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(cl,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=$t(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(cl,void 0,u.id),this.resyncState()}return}let p=this.getCurrentStepOrder()+1===this.getNumberOfAvailableSteps();if(l){let u=$t(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"?yg:wg,a,c.id),p&&(yield this.sendFlowStateToAPI(ll,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=$t(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(hg,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??$t(c)),this.lastStepUpdate.set(s,$t(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(bg,e))})}complete(e){return he(this,null,function*(){this.isCompleted||(this.optimisticallyMarkFlowCompleted(),yield this.sendFlowStateToAPI(ll,e))})}skip(e){return he(this,null,function*(){this.isSkipped||(this.optimisticallyMarkFlowSkipped(),yield this.sendFlowStateToAPI(gg,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(vg)})}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=$t(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=$t(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:cu(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=$t(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,pi(this))}),e==null||e(t)})}unregister(){this.getGlobalState().collections&&this.getGlobalState().collections.unregister(this.id)}},mg="0.7.9",hg="NOT_STARTED_STEP",ll="COMPLETED_FLOW",gg="SKIPPED_FLOW",bg="STARTED_FLOW",vg="NOT_STARTED_FLOW",yg="COMPLETED_STEP",wg="SKIPPED_STEP",cl="STARTED_STEP",ul="frigade-guest-key",Xo="guest_",Sg="get-cache-",Ds="fr-js-";function pi(e){return new qo({config:e.config,id:e.id})}function $t(e){return JSON.parse(JSON.stringify(e))}function xg(e){var t,n;return{headers:{Authorization:`Bearer ${e.apiKey}`,"Content-Type":"application/json","x-frigade-sdk-version":(t=e.__platformVersion)!=null?t:mg,"x-frigade-sdk-platform":(n=e.__platformName)!=null?n:"Javascript"}}}function Cg(e){return Jt()?window.localStorage.getItem(`${Ds}${e}`):null}function Eg(e,t){Jt()&&window.localStorage.setItem(`${Ds}${e}`,t)}function kg(){Object.keys(ut).forEach(e=>{e.startsWith(Sg)&&delete ut[e]})}function Tg(){Jt()&&Object.keys(window.localStorage).forEach(e=>{e.startsWith(Ds)&&window.localStorage.removeItem(e)})}var Ag=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)}},dl=new Ag;function Pg(e,t){return he(this,null,function*(){var n;if(typeof globalThis.fetch!="function")return zt("- Attempted to call fetch() in an environment that doesn't support it.");let r=`${e}${JSON.stringify((n=t.body)!=null?n:{})}`,i,o=Jt()&&t&&t.body&&t.method==="POST";if(o){let s=dl.hasIdenticalCall(r);s!=null&&s.response!=null&&(i=(yield s.response).clone())}if(!i)try{let s=fetch(e,t);o&&dl.push(r,s.then(a=>a.clone()).catch(()=>zt())),i=yield s}catch(s){return zt(s)}if(!i)return zt("Received an empty response");if(i.status>=400)return zt(i.statusText);try{if(i.status===204)return zt();let s;try{s=yield i.json()}catch{return zt()}return s.error?zt(s.error):s}catch(s){return zt(s)}})}function zt(e){return e&&console.warn("Call to Frigade failed",e),{json:()=>({}),clone:()=>({})}}function Ig(){if(Jt()){let e=Cg(ul);return e||(e=`${Xo}${ol()}`,Eg(ul,e)),e}else return`${Xo}${ol()}`}function Jt(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.localStorage<"u"}function cu(e){let t={registeredCollectionIds:Array.from(e.registeredCollectionIds)};return Jt()?it({url:e.currentUrl,userAgent:navigator.userAgent},t):t}var Og=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)}},Rg=class extends lu{constructor(t,n){super(it({apiKey:t},n)),this.flows=[],this.hasFailed=!1,this.visibilityChangeHandler=()=>he(this,null,function*(){document.visibilityState==="visible"&&(yield this.refreshStateFromAPI())}),this.init(this.config),Jt()&&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(Jt()){document.removeEventListener("visibilitychange",this.visibilityChangeHandler);let t=br(this.config);ut[t]&&(ut[t].onFlowStateChangeHandlers=[])}}init(t){return he(this,null,function*(){if(this.updateConfig(it(it({},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(Xo)||(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(Sr(it({},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(Sr(it({},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 Sr(it({},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*(){Tg(),kg(),t&&(yield this.updateConfig(t),this.mockFlowStates(br(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,pi(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=br(this.config);if(!ut[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(ut[t]={refreshStateFromAPI:()=>he(this,null,function*(){}),collections:new Og(new Map),registeredCollectionIds:new Set,flowStates:new Proxy({},r),onFlowStateChangeHandlerWrappers:new Map,onStepStateChangeHandlerWrappers:new Map,onFlowStateChangeHandlers:[],previousFlows:new Map,variables:{},config:this.config,currentUrl:Jt()?window.location.href:"",pendingRequests:new Map,lastFlowSyncDate:new Map},this.config.__readOnly&&this.config.__flowStateOverrides){this.mockFlowStates(t);return}ut[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:cu(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:b})=>{var h;let d=(h=l.get(p))!=null?h:{allowedComponents:c,collectionType:u,flows:[]};d.flows.push({flowId:v,visible:b}),l.set(p,d)}),l.size>0&&ut[t].collections.ingestCollectionsData(l),a&&a.eligibleFlows?(a.eligibleFlows.forEach(c=>{ut[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 qo({config:this.config,id:c.flowSlug}))}),this.hasFailed=!1):this.hasFailed=!0})}yield ut[t].refreshStateFromAPI()})}mockFlowStates(t){Object.keys(this.config.__flowStateOverrides).forEach(n=>{ut[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 qo({config:this.config,id:n}))})}updateConfig(t){return he(this,null,function*(){this.config=it(it({},this.config),t),ut[br(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,pi(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,pi(s))}),o==null||o(a)}]}));Promise.all(n).then(r=>{this.getGlobalState().collections.batchRegister(r)})})}},_g=(e=>(e.MANUAL="MANUAL",e.AUTOMATIC="AUTOMATIC",e))(_g||{}),Mg=(e=>(e.DRAFT="DRAFT",e.ACTIVE="ACTIVE",e.ARCHIVED="ARCHIVED",e))(Mg||{}),Si=(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))(Si||{});function Dg(e){return Object.prototype.toString.call(e)==="[object Object]"}function fl(e){return Dg(e)||Array.isArray(e)}function Lg(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ls(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}`:!fl(a)||!fl(l)?a===l:Ls(a,l)})}function pl(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function Ng(e,t){if(e.length!==t.length)return!1;const n=pl(e),r=pl(t);return n.every((i,o)=>{const s=r[o];return Ls(i,s)})}function Ns(e){return typeof e=="number"}function Ko(e){return typeof e=="string"}function Ui(e){return typeof e=="boolean"}function ml(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ne(e){return Math.abs(e)}function Fs(e){return Math.sign(e)}function xr(e,t){return Ne(e-t)}function Fg(e,t){if(e===0||t===0||Ne(e)<=Ne(t))return 0;const n=xr(Ne(e),Ne(t));return Ne(n/e)}function Ir(e){return Or(e).map(Number)}function Rt(e){return e[Lr(e)]}function Lr(e){return Math.max(0,e.length-1)}function $s(e,t){return t===Lr(e)}function hl(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Or(e){return Object.keys(e)}function uu(e,t){return[e,t].reduce((n,r)=>(Or(r).forEach(i=>{const o=n[i],s=r[i],a=ml(o)&&ml(s);n[i]=a?uu(o,s):s}),n),{})}function Zo(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function $g(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 Ko(e)?n[e](l):e(t,l,c)}return{measure:s}}function Rr(){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 zg(e,t,n,r){const i=Rr(),o=1e3/60;let s=null,a=0,l=0;function c(){i.add(e,"visibilitychange",()=>{e.hidden&&h()})}function p(){b(),i.clear()}function u(y){if(!l)return;s||(s=y);const f=y-s;for(s=y,a+=f;a>=o;)n(o),a-=o;const m=a/o;r(m),l&&t.requestAnimationFrame(u)}function v(){l||(l=t.requestAnimationFrame(u))}function b(){t.cancelAnimationFrame(l),s=null,a=0,l=0}function h(){s=null,a=0}return{init:c,destroy:p,start:v,stop:b,update:()=>n(o),render:r}}function Bg(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(h){const{height:d,width:y}=h;return r?d:y}function p(){return r?"top":n?"right":"left"}function u(){return r?"bottom":n?"left":"right"}function v(h){return h*s}return{scroll:i,cross:o,startEdge:a,endEdge:l,measureSize:c,direction:v}}function Pn(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 du(e,t,n){const{constrain:r}=Pn(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 du(e,a(),n)}const u={get:a,set:l,add:c,clone:p};return u}function jg(e,t,n,r,i,o,s,a,l,c,p,u,v,b,h,d,y,f,m){const{cross:w,direction:S}=e,x=["INPUT","SELECT","TEXTAREA"],T={passive:!1},A=Rr(),k=Rr(),_=Pn(50,225).constrain(b.measure(20)),z={mouse:300,touch:400},R={mouse:500,touch:600},I=h?43:25;let L=!1,N=0,V=0,$=!1,j=!1,U=!1,J=!1;function ge(H){if(!m)return;function le(_e){(Ui(m)||m(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(h?R:z)[J?"mouse":"touch"]}function oe(H,le){const fe=u.add(Fs(H)*-1),_e=p.byDistance(H,!h).distance;return h||Ne(H)<_?_e:y&&le?_e*.5:p.byIndex(fe.get(),0).distance}function Se(H){const le=Zo(H,r);J=le,U=h&&le&&!H.buttons&&L,L=xr(i.get(),s.get())>=2,!(le&&H.button!==0)&&(ve(H.target)||($=!0,o.pointerDown(H),c.useFriction(0).useDuration(0),i.set(s),Re(),N=o.readPoint(H),V=o.readPoint(H,w),v.emit("pointerDown")))}function Z(H){if(!Zo(H,r)&&H.touches.length>=2)return se(H);const fe=o.readPoint(H),_e=o.readPoint(H,w),ze=xr(fe,N),Le=xr(_e,V);if(!j&&!J&&(!H.cancelable||(j=ze>Le,!j)))return se(H);const E=o.pointerMove(H);ze>d&&(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=Fg(_e,ze),E=I-10*Le,O=f+Le/50;j=!1,$=!1,k.clear(),c.useDuration(E).useFriction(O),l.distance(ze,!h),J=!1,v.emit("pointerUp")}function we(H){U&&(H.stopPropagation(),H.preventDefault(),U=!1)}function de(){return $}return{init:ge,destroy:re,pointerDown:de}}function Vg(e,t){let r,i;function o(u){return u.timeStamp}function s(u,v){const h=`client${(v||e.scroll)==="x"?"X":"Y"}`;return(Zo(u,t)?u:u.touches[0])[h]}function a(u){return r=u,i=u,s(u)}function l(u){const v=s(u)-s(i),b=o(u)-o(r)>170;return i=u,b&&(r=u),v}function c(u){if(!r||!i)return 0;const v=s(i)-s(r),b=o(u)-o(r),h=o(u)-o(i)>170,d=v/b;return b&&!h&&Ne(d)>.1?d:0}return{pointerDown:a,pointerMove:l,pointerUp:c,readPoint:s}}function Hg(){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 Wg(e){function t(r){return e*(r/100)}return{measure:t}}function Gg(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 b(y){if(!o)return;c=v(e),p=r.map(v);function f(m){for(const w of m){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(m=>{(Ui(o)||o(y,m))&&f(m)}),n.requestAnimationFrame(()=>{a.forEach(m=>l.observe(m))})}function h(){u=!0,l&&l.disconnect()}return{init:b,destroy:h}}function Ug(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=Fs(R),u=p,x}function b(){const T=r.get()-t.get();return Ne(T)<.001}function h(){return l}function d(){return a}function y(){return s}function f(){return w(i)}function m(){return S(o)}function w(T){return l=T,x}function S(T){return c=T,x}const x={direction:d,duration:h,velocity:y,seek:v,settled:b,useBaseFriction:m,useBaseDuration:f,useFriction:S,useDuration:w};return x}function Yg(e,t,n,r,i){const o=i.measure(10),s=i.measure(50),a=Pn(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function p(b){if(!c())return;const h=e.reachedMin(t.get())?"min":"max",d=Ne(e[h]-t.get()),y=n.get()-t.get(),f=a.constrain(d/s);n.subtract(y*f),!b&&Ne(y)<o&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function u(b){l=!b}return{shouldConstrain:c,constrain:p,toggleActive:u}}function qg(e,t,n,r,i){const o=Pn(-t+e,0),s=u(),a=p(),l=v();function c(h,d){return xr(h,d)<1}function p(){const h=s[0],d=Rt(s),y=s.lastIndexOf(h),f=s.indexOf(d)+1;return Pn(y,f)}function u(){return n.map((h,d)=>{const{min:y,max:f}=o,m=o.constrain(h),w=!d,S=$s(n,d);return w?f:S||c(y,m)?y:c(f,m)?f:m}).map(h=>parseFloat(h.toFixed(3)))}function v(){if(t<=e+i)return[o.max];if(r==="keepSnaps")return s;const{min:h,max:d}=a;return s.slice(h,d)}return{snapsContained:l,scrollContainLimit:a}}function Xg(e,t,n){const r=t[0],i=n?r-e:Rt(t);return{limit:Pn(i,r)}}function Kg(e,t,n,r){const o=t.min+.1,s=t.max+.1,{reachedMin:a,reachedMax:l}=Pn(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 b=e*(v*-1);r.forEach(h=>h.add(b))}return{loop:p}}function Zg(e){const{max:t,length:n}=e;function r(o){const s=o-t;return n?s/-n:0}return{get:r}}function Jg(e,t,n,r,i){const{startEdge:o,endEdge:s}=e,{groupSlides:a}=i,l=u().map(t.measure),c=v(),p=b();function u(){return a(r).map(d=>Rt(d)[s]-d[0][o]).map(Ne)}function v(){return r.map(d=>n[o]-d[o]).map(d=>-Ne(d))}function b(){return a(c).map(d=>d[0]).map((d,y)=>d+l[y])}return{snaps:c,snapsAligned:p}}function Qg(e,t,n,r,i,o){const{groupSlides:s}=i,{min:a,max:l}=r,c=p();function p(){const v=s(o),b=!e||t==="keepSnaps";return n.length===1?[o]:b?v:v.slice(a,l).map((h,d,y)=>{const f=!d,m=$s(y,d);if(f){const w=Rt(y[0])+1;return hl(w)}if(m){const w=Lr(o)-Rt(y)[0]+1;return hl(w,Rt(y)[0])}return h})}return{slideRegistry:c}}function eb(e,t,n,r,i){const{reachedAny:o,removeOffset:s,constrain:a}=r;function l(h){return h.concat().sort((d,y)=>Ne(d)-Ne(y))[0]}function c(h){const d=e?s(h):a(h),y=t.map((m,w)=>({diff:p(m-d,0),index:w})).sort((m,w)=>Ne(m.diff)-Ne(w.diff)),{index:f}=y[0];return{index:f,distance:d}}function p(h,d){const y=[h,h+n,h-n];if(!e)return h;if(!d)return l(y);const f=y.filter(m=>Fs(m)===d);return f.length?l(f):Rt(y)-n}function u(h,d){const y=t[h]-i.get(),f=p(y,d);return{index:h,distance:f}}function v(h,d){const y=i.get()+h,{index:f,distance:m}=c(y),w=!e&&o(y);if(!d||w)return{index:f,distance:h};const S=t[f]-m,x=h+p(S,0);return{index:f,distance:x}}return{byDistance:v,byIndex:u,shortcut:p}}function tb(e,t,n,r,i,o,s){function a(u){const v=u.distance,b=u.index!==t.get();o.add(v),v&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),b&&(n.set(t.get()),t.set(u.index),s.emit("select"))}function l(u,v){const b=i.byDistance(u,v);a(b)}function c(u,v){const b=t.clone().set(u),h=i.byIndex(b.get(),v);a(h)}return{distance:l,index:c}}function nb(e,t,n,r,i,o,s,a){const l={passive:!0,capture:!0};let c=0;function p(b){if(!a)return;function h(d){if(new Date().getTime()-c>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;const m=n.findIndex(w=>w.includes(d));Ns(m)&&(i.useDuration(0),r.index(m,0),s.emit("slideFocus"))}o.add(document,"keydown",u,!1),t.forEach((d,y)=>{o.add(d,"focus",f=>{(Ui(a)||a(b,f))&&h(y)},l)})}function u(b){b.code==="Tab"&&(c=new Date().getTime())}return{init:p}}function vr(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 Ns(l)?l:l.get()}return{get:n,set:r,add:i,subtract:o}}function fu(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 rb(e,t,n,r,i,o,s,a,l){const p=Ir(i),u=Ir(i).reverse(),v=f().concat(m());function b(A,k){return A.reduce((_,z)=>_-i[z],k)}function h(A,k){return A.reduce((_,z)=>b(_,k)>0?_.concat([z]):_,[])}function d(A){return o.map((k,_)=>({start:k-r[_]+.5+A,end:k+t-.5+A}))}function y(A,k,_){const z=d(k);return A.map(R=>{const I=_?0:-n,L=_?n:0,N=_?"end":"start",V=z[R][N];return{index:R,loopPoint:V,slideLocation:vr(-1),translate:fu(e,l[R]),target:()=>a.get()>V?I:L}})}function f(){const A=s[0],k=h(u,A);return y(k,n,!1)}function m(){const A=t-s[0]-1,k=h(p,A);return y(k,-n,!0)}function w(){return v.every(({index:A})=>{const k=p.filter(_=>_!==A);return b(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 ib(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||(Ui(n)||n(l,p))&&c(p)}),r.observe(e,{childList:!0})}function s(){r&&r.disconnect(),i=!0}return{init:o,destroy:s}}function ob(e,t,n,r){const i={};let o=null,s=null,a,l=!1;function c(){a=new IntersectionObserver(h=>{l||(h.forEach(d=>{const y=t.indexOf(d.target);i[y]=d}),o=null,s=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(h=>a.observe(h))}function p(){a&&a.disconnect(),l=!0}function u(h){return Or(i).reduce((d,y)=>{const f=parseInt(y),{isIntersecting:m}=i[f];return(h&&m||!h&&!m)&&d.push(f),d},[])}function v(h=!0){if(h&&o)return o;if(!h&&s)return s;const d=u(h);return h&&(o=d),h||(s=d),d}return{init:c,destroy:p,get:v}}function sb(e,t,n,r,i,o){const{measureSize:s,startEdge:a,endEdge:l}=e,c=n[0]&&i,p=h(),u=d(),v=n.map(s),b=y();function h(){if(!c)return 0;const m=n[0];return Ne(t[a]-m[a])}function d(){if(!c)return 0;const m=o.getComputedStyle(Rt(r));return parseFloat(m.getPropertyValue(`margin-${l}`))}function y(){return n.map((m,w,S)=>{const x=!w,T=$s(S,w);return x?v[w]+p:T?v[w]+u:S[w+1][a]-m[a]}).map(Ne)}return{slideSizes:v,slideSizesWithGaps:b,startGap:p,endGap:u}}function ab(e,t,n,r,i,o,s,a,l){const{startEdge:c,endEdge:p,direction:u}=e,v=Ns(n);function b(f,m){return Ir(f).filter(w=>w%m===0).map(w=>f.slice(w,w+m))}function h(f){return f.length?Ir(f).reduce((m,w,S)=>{const x=Rt(m)||0,T=x===0,A=w===Lr(f),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&&m.push(w),A&&m.push(f.length),m},[]).map((m,w,S)=>{const x=Math.max(S[w-1]||0);return f.slice(x,m)}):[]}function d(f){return v?b(f,n):h(f)}return{groupSlides:d}}function lb(e,t,n,r,i,o,s){const{align:a,axis:l,direction:c,startIndex:p,loop:u,duration:v,dragFree:b,dragThreshold:h,inViewThreshold:d,slidesToScroll:y,skipSnaps:f,containScroll:m,watchResize:w,watchSlides:S,watchDrag:x,watchFocus:T}=o,A=2,k=Hg(),_=k.measure(t),z=n.map(k.measure),R=Bg(l,c),I=R.measureSize(_),L=Wg(I),N=$g(a,I),V=!u&&!!m,$=u||!!m,{slideSizes:j,slideSizesWithGaps:U,startGap:J,endGap:ge}=sb(R,_,z,n,$,i),re=ab(R,I,y,u,_,z,J,ge,A),{snaps:Re,snapsAligned:ve}=Jg(R,N,_,z,re),Ae=-Rt(Re)+Rt(U),{snapsContained:oe,scrollContainLimit:Se}=qg(I,Ae,ve,m,A),Z=V?oe:ve,{limit:se}=Xg(Ae,Z,u),we=du(Lr(Z),p,u),de=we.clone(),te=Ir(n),H=({dragHandler:Ze,scrollBody:Dt,scrollBounds:Lt,options:{loop:xt}},tt)=>{xt||Lt.constrain(Ze.pointerDown()),Dt.seek(tt)},le=({scrollBody:Ze,translate:Dt,location:Lt,offsetLocation:xt,scrollLooper:tt,slideLooper:Tt,dragHandler:or,animation:sr,eventHandler:jr,scrollBounds:Dn,options:{loop:Sn}},Vr)=>{const un=Ze.settled(),so=!Dn.shouldConstrain(),Hr=Sn?un:un&&so;Hr&&!or.pointerDown()&&(sr.stop(),jr.emit("settle")),Hr||jr.emit("scroll");const je=Lt.get()*Vr+E.get()*(1-Vr);xt.set(je),Sn&&(tt.loop(Ze.direction()),Tt.loop()),Dt.to(xt.get())},fe=zg(r,i,Ze=>H(cn,Ze),Ze=>le(cn,Ze)),_e=.68,ze=Z[we.get()],Le=vr(ze),E=vr(ze),O=vr(ze),F=vr(ze),X=Ug(Le,O,E,F,v,_e),q=eb(u,Z,Ae,se,F),W=tb(fe,we,de,X,q,F,s),Q=Zg(se),me=Rr(),Pe=ob(t,n,s,d),{slideRegistry:Me}=Qg(V,m,Z,Se,re,te),St=nb(e,n,Me,W,X,me,s,T),cn={ownerDocument:r,ownerWindow:i,eventHandler:s,containerRect:_,slideRects:z,animation:fe,axis:R,dragHandler:jg(R,e,r,i,F,Vg(R,i),Le,fe,W,X,q,we,s,L,b,h,f,_e,x),eventStore:me,percentOfView:L,index:we,indexPrevious:de,limit:se,location:Le,offsetLocation:O,previousLocation:E,options:o,resizeHandler:Gg(t,s,i,n,R,w,k),scrollBody:X,scrollBounds:Yg(se,O,F,X,L),scrollLooper:Kg(Ae,se,O,[Le,O,E,F]),scrollProgress:Q,scrollSnapList:Z.map(Q.get),scrollSnaps:Z,scrollTarget:q,scrollTo:W,slideLooper:rb(R,I,Ae,j,U,Re,Z,O,n),slideFocus:St,slidesHandler:ib(t,s,S),slidesInView:Pe,slideIndexes:te,slideRegistry:Me,slidesToScroll:re,target:F,translate:fu(R,t)};return cn}function cb(){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 ub={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 db(e){function t(o,s){return uu(o,s||{})}function n(o){const s=o.breakpoints||{},a=Or(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=>Or(s.breakpoints||{})).reduce((s,a)=>s.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function fb(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 xi(e,t,n){const r=e.ownerDocument,i=r.defaultView,o=db(i),s=fb(o),a=Rr(),l=cb(),{mergeOptions:c,optionsAtMedia:p,optionsMediaQueries:u}=o,{on:v,off:b,emit:h}=l,d=R;let y=!1,f,m=c(ub,xi.globalOptions),w=c(m),S=[],x,T,A;function k(){const{container:te,slides:H}=w;T=(Ko(te)?e.querySelector(te):te)||e.children[0];const fe=Ko(H)?T.querySelectorAll(H):H;A=[].slice.call(fe||T.children)}function _(te){const H=lb(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||(m=c(m,te),w=p(m),S=H||S,k(),f=_(w),u([m,...S.map(({options:le})=>le)]).forEach(le=>a.add(le,"change",R)),w.active&&(f.translate.to(f.location.get()),f.animation.init(),f.slidesInView.init(),f.slideFocus.init(de),f.eventHandler.init(de),f.resizeHandler.init(de),f.slidesHandler.init(de),f.options.loop&&f.slideLooper.loop(),T.offsetParent&&A.length&&f.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(){f.dragHandler.destroy(),f.eventStore.clear(),f.translate.clear(),f.slideLooper.clear(),f.resizeHandler.destroy(),f.slidesHandler.destroy(),f.slidesInView.destroy(),f.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||(f.scrollBody.useBaseFriction().useDuration(H===!0?0:w.duration),f.scrollTo.index(te,le||0))}function V(te){const H=f.index.add(1).get();N(H,te,-1)}function $(te){const H=f.index.add(-1).get();N(H,te,1)}function j(){return f.index.add(1).get()!==re()}function U(){return f.index.add(-1).get()!==re()}function J(){return f.scrollSnapList}function ge(){return f.scrollProgress.get(f.location.get())}function re(){return f.index.get()}function Re(){return f.indexPrevious.get()}function ve(){return f.slidesInView.get()}function Ae(){return f.slidesInView.get(!1)}function oe(){return x}function Se(){return f}function Z(){return e}function se(){return T}function we(){return A}const de={canScrollNext:j,canScrollPrev:U,containerNode:se,internalEngine:Se,destroy:L,off:b,on:v,emit:h,plugins:oe,previousScrollSnap:Re,reInit:d,rootNode:Z,scrollNext:V,scrollPrev:$,scrollProgress:ge,scrollSnapList:J,scrollTo:N,selectedScrollSnap:re,slideNodes:we,slidesInView:ve,slidesNotInView:Ae};return z(t,n),setTimeout(()=>l.emit("init"),0),de}xi.globalOptions=void 0;function zs(e={},t=[]){const n=g.useRef(e),r=g.useRef(t),[i,o]=g.useState(),[s,a]=g.useState(),l=g.useCallback(()=>{i&&i.reInit(n.current,r.current)},[i]);return g.useEffect(()=>{Ls(n.current,e)||(n.current=e,l())},[e,l]),g.useEffect(()=>{Ng(r.current,t)||(r.current=t,l())},[t,l]),g.useEffect(()=>{if(Lg()&&s){xi.globalOptions=zs.globalOptions;const c=xi(s,n.current,r.current);return o(c),()=>c.destroy()}else o(void 0)},[s,o]),[a,i]}zs.globalOptions=void 0;var Bs="Collapsible",[pb,nE]=Gt(Bs),[mb,js]=pb(Bs),pu=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:o,onOpenChange:s,...a}=e,[l=!1,c]=Tn({prop:r,defaultProp:i,onChange:s});return M.jsx(mb,{scope:n,disabled:o,contentId:Cn(),open:l,onOpenToggle:g.useCallback(()=>c(p=>!p),[c]),children:M.jsx(ke.div,{"data-state":Hs(l),"data-disabled":o?"":void 0,...a,ref:t})})});pu.displayName=Bs;var mu="CollapsibleTrigger",hu=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=js(mu,n);return M.jsx(ke.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Hs(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:ye(e.onClick,i.onOpenToggle)})});hu.displayName=mu;var Vs="CollapsibleContent",gu=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=js(Vs,e.__scopeCollapsible);return M.jsx(_n,{present:n||i.open,children:({present:o})=>M.jsx(hb,{...r,ref:t,present:o})})});gu.displayName=Vs;var hb=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...o}=e,s=js(Vs,n),[a,l]=g.useState(r),c=g.useRef(null),p=Te(t,c),u=g.useRef(0),v=u.current,b=g.useRef(0),h=b.current,d=s.open||a,y=g.useRef(d),f=g.useRef();return g.useEffect(()=>{const m=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(m)},[]),et(()=>{const m=c.current;if(m){f.current=f.current||{transitionDuration:m.style.transitionDuration,animationName:m.style.animationName},m.style.transitionDuration="0s",m.style.animationName="none";const w=m.getBoundingClientRect();u.current=w.height,b.current=w.width,y.current||(m.style.transitionDuration=f.current.transitionDuration,m.style.animationName=f.current.animationName),l(r)}},[s.open,r]),M.jsx(ke.div,{"data-state":Hs(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!d,...o,ref:p,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:d&&i})});function Hs(e){return e?"open":"closed"}var gb=pu,bb=hu,vb=gu,Nr=e=>e.type==="checkbox",Gn=e=>e instanceof Date,ot=e=>e==null;const bu=e=>typeof e=="object";var He=e=>!ot(e)&&!Array.isArray(e)&&bu(e)&&!Gn(e),vu=e=>He(e)&&e.target?Nr(e.target)?e.target.checked:e.target.value:e,yb=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,yu=(e,t)=>e.has(yb(t)),wb=e=>{const t=e.constructor&&e.constructor.prototype;return He(t)&&t.hasOwnProperty("isPrototypeOf")},Ws=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ct(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(!(Ws&&(e instanceof Blob||e instanceof FileList))&&(n||He(e)))if(t=n?[]:{},!n&&!wb(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=ct(e[r]));else return e;return t}var Yi=e=>Array.isArray(e)?e.filter(Boolean):[],$e=e=>e===void 0,K=(e,t,n)=>{if(!t||!He(e))return n;const r=Yi(t.split(/[,[\].]+?/)).reduce((i,o)=>ot(i)?i:i[o],e);return $e(r)||r===e?$e(e[t])?n:e[t]:r},Ct=e=>typeof e=="boolean",Gs=e=>/^\w*$/.test(e),wu=e=>Yi(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ie=(e,t,n)=>{let r=-1;const i=Gs(t)?[t]:wu(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 Ci={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},It={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Yt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Su=pe.createContext(null),qi=()=>pe.useContext(Su),Sb=e=>{const{children:t,...n}=e;return pe.createElement(Su.Provider,{value:n},t)};var xu=(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]!==It.all&&(t._proxyFormState[s]=!r||It.all),n&&(n[s]=!0),e[s]}});return i},dt=e=>He(e)&&!Object.keys(e).length,Cu=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return dt(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(s=>t[s]===(!r||It.all))},Cr=e=>Array.isArray(e)?e:[e],Eu=(e,t,n)=>!e||!t||e===t||Cr(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Us(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 xb(e){const t=qi(),{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,Us({disabled:r,next:u=>l.current&&Eu(p.current,u.name,o)&&Cu(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]),xu(s,n,c.current,!1)}var Vt=e=>typeof e=="string",ku=(e,t,n,r,i)=>Vt(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=qi(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:s}=e,a=pe.useRef(r);a.current=r,Us({disabled:o,subject:n._subjects.values,next:p=>{Eu(a.current,p.name,s)&&c(ct(ku(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 Eb(e){const t=qi(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o}=e,s=yu(i._names.array,n),a=Cb({control:i,name:n,defaultValue:K(i._formValues,n,K(i._defaultValues,n,e.defaultValue)),exact:!0}),l=xb({control:i,name:n,exact:!0}),c=pe.useRef(i.register(n,{...e.rules,value:a,...Ct(e.disabled)?{disabled:e.disabled}:{}}));return pe.useEffect(()=>{const p=i._options.shouldUnregister||o,u=(v,b)=>{const h=K(i._fields,v);h&&h._f&&(h._f.mount=b)};if(u(n,!0),p){const v=ct(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,...Ct(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:pe.useCallback(p=>c.current.onChange({target:{value:vu(p),name:n},type:Ci.CHANGE}),[n]),onBlur:pe.useCallback(()=>c.current.onBlur({target:{value:K(i._formValues,n),name:n},type:Ci.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 kb=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},gl=e=>({isOnSubmit:!e||e===It.onSubmit,isOnBlur:e===It.onBlur,isOnChange:e===It.onChange,isOnAll:e===It.all,isOnTouch:e===It.onTouched}),bl=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Er=(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(Er(a,t))break}else if(He(a)&&Er(a,t))break}}};var Tb=(e,t,n)=>{const r=Cr(K(e,n));return Ie(r,"root",t[n]),Ie(e,n,r),e},Ys=e=>e.type==="file",Zt=e=>typeof e=="function",Ei=e=>{if(!Ws)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},mi=e=>Vt(e),qs=e=>e.type==="radio",ki=e=>e instanceof RegExp;const vl={value:!1,isValid:!1},yl={value:!0,isValid:!0};var Tu=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===""?yl:{value:e[0].value,isValid:!0}:yl:vl}return vl};const wl={isValid:!1,value:null};var Au=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,wl):wl;function Sl(e,t,n="validate"){if(mi(e)||Array.isArray(e)&&e.every(mi)||Ct(e)&&!e)return{type:n,message:mi(e)?e:"",ref:t}}var zn=e=>He(e)&&!ki(e)?e:{value:e,message:""},xl=async(e,t,n,r,i)=>{const{ref:o,refs:s,required:a,maxLength:l,minLength:c,min:p,max:u,pattern:v,validate:b,name:h,valueAsNumber:d,mount:y,disabled:f}=e._f,m=K(t,h);if(!y||f)return{};const w=s?s[0]:o,S=I=>{r&&w.reportValidity&&(w.setCustomValidity(Ct(I)?"":I||""),w.reportValidity())},x={},T=qs(o),A=Nr(o),k=T||A,_=(d||Ys(o))&&$e(o.value)&&$e(m)||Ei(o)&&o.value===""||m===""||Array.isArray(m)&&!m.length,z=kb.bind(null,h,n,x),R=(I,L,N,V=Yt.maxLength,$=Yt.minLength)=>{const j=I?L:N;x[h]={type:I?V:$,message:j,ref:o,...z(I?V:$,j)}};if(i?!Array.isArray(m)||!m.length:a&&(!k&&(_||ot(m))||Ct(m)&&!m||A&&!Tu(s).isValid||T&&!Au(s).isValid)){const{value:I,message:L}=mi(a)?{value:!!a,message:a}:zn(a);if(I&&(x[h]={type:Yt.required,message:L,ref:w,...z(Yt.required,L)},!n))return S(L),x}if(!_&&(!ot(p)||!ot(u))){let I,L;const N=zn(u),V=zn(p);if(!ot(m)&&!isNaN(m)){const $=o.valueAsNumber||m&&+m;ot(N.value)||(I=$>N.value),ot(V.value)||(L=$<V.value)}else{const $=o.valueAsDate||new Date(m),j=ge=>new Date(new Date().toDateString()+" "+ge),U=o.type=="time",J=o.type=="week";Vt(N.value)&&m&&(I=U?j(m)>j(N.value):J?m>N.value:$>new Date(N.value)),Vt(V.value)&&m&&(L=U?j(m)<j(V.value):J?m<V.value:$<new Date(V.value))}if((I||L)&&(R(!!I,N.message,V.message,Yt.max,Yt.min),!n))return S(x[h].message),x}if((l||c)&&!_&&(Vt(m)||i&&Array.isArray(m))){const I=zn(l),L=zn(c),N=!ot(I.value)&&m.length>+I.value,V=!ot(L.value)&&m.length<+L.value;if((N||V)&&(R(N,I.message,L.message),!n))return S(x[h].message),x}if(v&&!_&&Vt(m)){const{value:I,message:L}=zn(v);if(ki(I)&&!m.match(I)&&(x[h]={type:Yt.pattern,message:L,ref:o,...z(Yt.pattern,L)},!n))return S(L),x}if(b){if(Zt(b)){const I=await b(m,t),L=Sl(I,w);if(L&&(x[h]={...L,...z(Yt.validate,L.message)},!n))return S(L.message),x}else if(He(b)){let I={};for(const L in b){if(!dt(I)&&!n)break;const N=Sl(await b[L](m,t),w,L);N&&(I={...N,...z(L,N.message)},S(N.message),n&&(x[h]=I))}if(!dt(I)&&(x[h]={ref:w,...I},!n))return x}}return S(!0),x};function Ab(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 Pb(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:Gs(t)?[t]:wu(t),r=n.length===1?e:Ab(e,n),i=n.length-1,o=n[i];return r&&delete r[o],i!==0&&(He(r)&&dt(r)||Array.isArray(r)&&Pb(r))&&Ge(e,n.slice(0,-1)),e}var Co=()=>{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=[]}}},Ti=e=>ot(e)||!bu(e);function pn(e,t){if(Ti(e)||Ti(t))return e===t;if(Gn(e)&&Gn(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(Gn(o)&&Gn(s)||He(o)&&He(s)||Array.isArray(o)&&Array.isArray(s)?!pn(o,s):o!==s)return!1}}return!0}var Pu=e=>e.type==="select-multiple",Ib=e=>qs(e)||Nr(e),Eo=e=>Ei(e)&&e.isConnected,Iu=e=>{for(const t in e)if(Zt(e[t]))return!0;return!1};function Ai(e,t={}){const n=Array.isArray(e);if(He(e)||n)for(const r in e)Array.isArray(e[r])||He(e[r])&&!Iu(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Ai(e[r],t[r])):ot(e[r])||(t[r]=!0);return t}function Ou(e,t,n){const r=Array.isArray(e);if(He(e)||r)for(const i in e)Array.isArray(e[i])||He(e[i])&&!Iu(e[i])?$e(t)||Ti(n[i])?n[i]=Array.isArray(e[i])?Ai(e[i],[]):{...Ai(e[i])}:Ou(e[i],ot(t)?{}:t[i],n[i]):n[i]=!pn(e[i],t[i]);return n}var ei=(e,t)=>Ou(e,t,Ai(t)),Ru=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>$e(e)?e:t?e===""?NaN:e&&+e:n&&Vt(e)?new Date(e):r?r(e):e;function ko(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Ys(t)?t.files:qs(t)?Au(e.refs).value:Pu(t)?[...t.selectedOptions].map(({value:n})=>n):Nr(t)?Tu(e.refs).value:Ru($e(t.value)?e.ref.value:t.value,e)}var Ob=(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}},mr=e=>$e(e)?e:ki(e)?e.source:He(e)?ki(e.value)?e.value.source:e.value:e;const Cl="AsyncFunction";var Rb=e=>(!e||!e.validate)&&!!(Zt(e.validate)&&e.validate.constructor.name===Cl||He(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Cl)),_b=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function El(e,t,n){const r=K(e,n);if(r||Gs(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 Mb=(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,Db=(e,t)=>!Yi(K(e,t)).length&&Ge(e,t);const Lb={mode:It.onSubmit,reValidateMode:It.onChange,shouldFocusError:!0};function Nb(e={}){let t={...Lb,...e},n={submitCount:0,isDirty:!1,isLoading:Zt(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)?ct(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:ct(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:Co(),array:Co(),state:Co()},v=gl(t.mode),b=gl(t.reValidateMode),h=t.criteriaMode===It.all,d=E=>O=>{clearTimeout(c),c=setTimeout(E,O)},y=async E=>{if(p.isValid||E){const O=t.resolver?dt((await k()).errors):await z(r,!0);O!==n.isValid&&u.state.next({isValid:O})}},f=(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:!dt(n.validatingFields)}))},m=(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),Db(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=ei(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:ko(q._f)):V(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||pn(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&&Ct(O)&&n.isValid!==O;if(e.delayError&&F?(l=d(()=>w(E,F)),l(e.delayError)):(clearTimeout(c),l=null,F?Ie(n.errors,E,F):Ge(n.errors,E)),(F?!pn(q,F):q)||!dt(X)||W){const Q={...X,...W&&Ct(O)?{isValid:O}:{},errors:n.errors,name:E};n={...n,...Q},u.state.next(Q)}},k=async E=>{f(E,!0);const O=await t.resolver(o,t.context,Ob(E||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return f(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&&Rb(q._f);Pe&&p.validatingFields&&f([X],!0);const Me=await xl(q,o,h,t.shouldUseNativeValidation&&!O,me);if(Pe&&p.validatingFields&&f([X]),Me[W.name]&&(F.valid=!1,O))break;!O&&(K(Me,W.name)?me?Tb(n.errors,Me,W.name):Ie(n.errors,W.name,Me[W.name]):Ge(n.errors,W.name))}!dt(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=>!Eo(F)):!Eo(O._f.ref))&&Se(E)}a.unMount=new Set},I=(E,O)=>(E&&O&&Ie(o,E,O),!pn(re(),i)),L=(E,O,F)=>ku(E,a,{...s.mount?o:$e(O)?i:Vt(E)?{[E]:O}:O},F,O),N=E=>Yi(K(s.mount?o:i,E,e.shouldUnregister?K(i,E,[]):[])),V=(E,O,F={})=>{const X=K(r,E);let q=O;if(X){const W=X._f;W&&(!W.disabled&&Ie(o,E,Ru(O,W)),q=Ei(W.ref)&&ot(O)?"":O,Pu(W.ref)?[...W.ref.options].forEach(Q=>Q.selected=q.includes(Q.value)):W.refs?Nr(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):Ys(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)},$=(E,O,F)=>{for(const X in O){const q=O[X],W=`${E}.${X}`,Q=K(r,W);(a.array.has(E)||!Ti(q)||Q&&!Q._f)&&!Gn(q)?$(W,q,F):V(W,q,F)}},j=(E,O,F={})=>{const X=K(r,E),q=a.array.has(E),W=ct(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:ei(i,o),isDirty:I(E,W)})):X&&!X._f&&!ot(W)?$(E,W,F):V(E,W,F),bl(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?ko(q._f):vu(E),Q=me=>{X=Number.isNaN(me)||pn(me,K(o,F,me))};if(q){let me,Pe;const Me=W(),St=E.type===Ci.BLUR||E.type===Ci.FOCUS_OUT,cn=!_b(q._f)&&!t.resolver&&!K(n.errors,F)&&!q._f.deps||Mb(St,K(n.touchedFields,F),n.isSubmitted,b,v),Ze=bl(F,a,St);Ie(o,F,Me),St?(q._f.onBlur&&q._f.onBlur(E),l&&l(0)):q._f.onChange&&q._f.onChange(E);const Dt=T(F,Me,St,!1),Lt=!dt(Dt)||Ze;if(!St&&u.values.next({name:F,type:E.type,values:{...o}}),cn)return p.isValid&&(e.mode==="onBlur"?St&&y():y()),Lt&&u.state.next({name:F,...Ze?{}:Dt});if(!St&&Ze&&u.state.next({...n}),t.resolver){const{errors:xt}=await k([F]);if(Q(Me),X){const tt=El(n.errors,r,F),Tt=El(xt,r,tt.name||F);me=Tt.error,F=Tt.name,Pe=dt(xt)}}else f([F],!0),me=(await xl(q,o,h,t.shouldUseNativeValidation))[F],f([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,Dt))}},J=(E,O)=>{if(K(n.errors,O)&&E.focus)return E.focus(),1},ge=async(E,O={})=>{let F,X;const q=Cr(E);if(t.resolver){const W=await _($e(E)?E:q);F=dt(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({...!Vt(E)||p.isValid&&F!==n.isValid?{}:{name:E},...t.resolver||!E?{isValid:F}:{},errors:n.errors}),O.shouldFocus&&!X&&Er(r,J,E?q:a.mount),X},re=E=>{const O={...s.mount?o:i};return $e(E)?O:Vt(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&&Cr(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)=>Zt(E)?u.values.subscribe({next:F=>E(L(void 0,O),F)}):L(E,O,!0),Se=(E,O={})=>{for(const F of E?Cr(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(Ct(E)&&s.mount||E){const W=E?void 0:$e(q)?ko(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=Ct(O.disabled)||Ct(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:Ct(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:mr(O.min),max:mr(O.max),minLength:mr(O.minLength),maxLength:mr(O.maxLength),pattern:mr(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=Ib(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(Eo),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)&&!(yu(a.array,E)&&s.action)&&a.unMount.add(E)}}},we=()=>t.shouldFocusError&&Er(r,J,a.mount),de=E=>{Ct(E)&&(u.state.next({disabled:E}),Er(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=ct(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"),dt(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:dt(n.errors)&&!X,submitCount:n.submitCount+1,errors:n.errors}),X)throw X},H=(E,O={})=>{K(r,E)&&($e(O.defaultValue)?j(E,ct(K(i,E))):(j(E,O.defaultValue),Ie(i,E,ct(O.defaultValue))),O.keepTouched||Ge(n.touchedFields,E),O.keepDirty||(Ge(n.dirtyFields,E),n.isDirty=O.defaultValue?I(E,ct(K(i,E))):I()),O.keepError||(Ge(n.errors,E),p.isValid&&y()),u.state.next({...n}))},le=(E,O={})=>{const F=E?ct(E):i,X=ct(F),q=dt(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)):j(Q,K(W,Q));else{if(Ws&&$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(Ei(Pe)){const Me=Pe.closest("form");if(Me){Me.reset();break}}}}r={}}o=e.shouldUnregister?O.keepDefaultValues?ct(i):{}:ct(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&&!pn(E,i)),isSubmitted:O.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:q?{}:O.keepDirtyValues?O.keepDefaultValues&&o?ei(i,o):n.dirtyFields:O.keepDefaultValues&&E?ei(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(Zt(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:m,_updateDisabledField:Z,_getFieldArray:N,_reset:le,_resetDefaultValues:()=>Zt(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:j,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 Fb(e={}){const t=pe.useRef(),n=pe.useRef(),[r,i]=pe.useState({isDirty:!1,isValidating:!1,isLoading:Zt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Zt(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Nb(e),formState:r});const o=t.current.control;return o._options=e,Us({subject:o._subjects.state,next:s=>{Cu(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&&!pn(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=xu(r,o),t.current}var Pi=g.forwardRef((e,t)=>{const{children:n,...r}=e,i=g.Children.toArray(n),o=i.find(zb);if(o){const s=o.props.children,a=i.map(l=>l===o?g.Children.count(s)>1?g.Children.only(null):g.isValidElement(s)?s.props.children:null:l);return M.jsx(Jo,{...r,ref:t,children:g.isValidElement(s)?g.cloneElement(s,void 0,a):null})}return M.jsx(Jo,{...r,ref:t,children:n})});Pi.displayName="Slot";var Jo=g.forwardRef((e,t)=>{const{children:n,...r}=e;if(g.isValidElement(n)){const i=jb(n);return g.cloneElement(n,{...Bb(r,n.props),ref:t?xs(t,i):i})}return g.Children.count(n)>1?g.Children.only(null):null});Jo.displayName="SlotClone";var $b=({children:e})=>M.jsx(M.Fragment,{children:e});function zb(e){return g.isValidElement(e)&&e.type===$b}function Bb(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 jb(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 Vb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Fr=Vb.reduce((e,t)=>{const n=g.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?Pi: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 Hb(e){const t=e+"CollectionProvider",[n,r]=Gt(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=b=>{const{scope:h,children:d}=b,y=pe.useRef(null),f=pe.useRef(new Map).current;return M.jsx(i,{scope:h,itemMap:f,collectionRef:y,children:d})};s.displayName=t;const a=e+"CollectionSlot",l=pe.forwardRef((b,h)=>{const{scope:d,children:y}=b,f=o(a,d),m=Te(h,f.collectionRef);return M.jsx(Pi,{ref:m,children:y})});l.displayName=a;const c=e+"CollectionItemSlot",p="data-radix-collection-item",u=pe.forwardRef((b,h)=>{const{scope:d,children:y,...f}=b,m=pe.useRef(null),w=Te(h,m),S=o(c,d);return pe.useEffect(()=>(S.itemMap.set(m,{ref:m,...f}),()=>void S.itemMap.delete(m))),M.jsx(Pi,{[p]:"",ref:w,children:y})});u.displayName=c;function v(b){const h=o(e+"CollectionConsumer",b);return pe.useCallback(()=>{const y=h.collectionRef.current;if(!y)return[];const f=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((S,x)=>f.indexOf(S.ref.current)-f.indexOf(x.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:s,Slot:l,ItemSlot:u},v,r]}var Wb=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},Gb=kr.useId||(()=>{}),Ub=0;function Yb(e){const[t,n]=g.useState(Gb());return Wb(()=>{n(r=>r??String(Ub++))},[e]),t?`radix-${t}`:""}function qb(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var Xb=g.createContext(void 0);function _u(e){const t=g.useContext(Xb);return e||t||"ltr"}var To="rovingFocusGroup.onEntryFocus",Kb={bubbles:!1,cancelable:!0},Xi="RovingFocusGroup",[Qo,Mu,Zb]=Hb(Xi),[Jb,Du]=Gt(Xi,[Zb]),[Qb,ev]=Jb(Xi),Lu=g.forwardRef((e,t)=>M.jsx(Qo.Provider,{scope:e.__scopeRovingFocusGroup,children:M.jsx(Qo.Slot,{scope:e.__scopeRovingFocusGroup,children:M.jsx(tv,{...e,ref:t})})}));Lu.displayName=Xi;var tv=g.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=g.useRef(null),b=Te(t,v),h=_u(o),[d=null,y]=Tn({prop:s,defaultProp:a,onChange:l}),[f,m]=g.useState(!1),w=qb(c),S=Mu(n),x=g.useRef(!1),[T,A]=g.useState(0);return g.useEffect(()=>{const k=v.current;if(k)return k.addEventListener(To,w),()=>k.removeEventListener(To,w)},[w]),M.jsx(Qb,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:d,onItemFocus:g.useCallback(k=>y(k),[y]),onItemShiftTab:g.useCallback(()=>m(!0),[]),onFocusableItemAdd:g.useCallback(()=>A(k=>k+1),[]),onFocusableItemRemove:g.useCallback(()=>A(k=>k-1),[]),children:M.jsx(Fr.div,{tabIndex:f||T===0?-1:0,"data-orientation":r,...u,ref:b,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&&_&&!f){const z=new CustomEvent(To,Kb);if(k.currentTarget.dispatchEvent(z),!z.defaultPrevented){const R=S().filter($=>$.focusable),I=R.find($=>$.active),L=R.find($=>$.id===d),V=[I,L,...R].filter(Boolean).map($=>$.ref.current);$u(V,p)}}x.current=!1}),onBlur:ye(e.onBlur,()=>m(!1))})})}),Nu="RovingFocusGroupItem",Fu=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,...s}=e,a=Yb(),l=o||a,c=ev(Nu,n),p=c.currentTabStopId===l,u=Mu(n),{onFocusableItemAdd:v,onFocusableItemRemove:b}=c;return g.useEffect(()=>{if(r)return v(),()=>b()},[r,v,b]),M.jsx(Qo.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:M.jsx(Fr.span,{tabIndex:p?0:-1,"data-orientation":c.orientation,...s,ref:t,onMouseDown:ye(e.onMouseDown,h=>{r?c.onItemFocus(l):h.preventDefault()}),onFocus:ye(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:ye(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){c.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const d=iv(h,c.orientation,c.dir);if(d!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let f=u().filter(m=>m.focusable).map(m=>m.ref.current);if(d==="last")f.reverse();else if(d==="prev"||d==="next"){d==="prev"&&f.reverse();const m=f.indexOf(h.currentTarget);f=c.loop?ov(f,m+1):f.slice(m+1)}setTimeout(()=>$u(f))}})})})});Fu.displayName=Nu;var nv={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function rv(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function iv(e,t,n){const r=rv(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return nv[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 ov(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var sv=Lu,av=Fu;function Xs(e){const[t,n]=g.useState(void 0);return et(()=>{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 Ks(e){const t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Zs="Radio",[lv,zu]=Gt(Zs),[cv,uv]=lv(Zs),Bu=g.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:i=!1,required:o,disabled:s,value:a="on",onCheck:l,...c}=e,[p,u]=g.useState(null),v=Te(t,d=>u(d)),b=g.useRef(!1),h=p?!!p.closest("form"):!0;return M.jsxs(cv,{scope:n,checked:i,disabled:s,children:[M.jsx(Fr.button,{type:"button",role:"radio","aria-checked":i,"data-state":Hu(i),"data-disabled":s?"":void 0,disabled:s,value:a,...c,ref:v,onClick:ye(e.onClick,d=>{i||l==null||l(),h&&(b.current=d.isPropagationStopped(),b.current||d.stopPropagation())})}),h&&M.jsx(dv,{control:p,bubbles:!b.current,name:r,value:a,checked:i,required:o,disabled:s,style:{transform:"translateX(-100%)"}})]})});Bu.displayName=Zs;var ju="RadioIndicator",Vu=g.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...i}=e,o=uv(ju,n);return M.jsx(_n,{present:r||o.checked,children:M.jsx(Fr.span,{"data-state":Hu(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t})})});Vu.displayName=ju;var dv=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,o=g.useRef(null),s=Ks(n),a=Xs(t);return g.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 Hu(e){return e?"checked":"unchecked"}var fv=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Js="RadioGroup",[pv,rE]=Gt(Js,[Du,zu]),Wu=Du(),Gu=zu(),[mv,hv]=pv(Js),Uu=g.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,b=Wu(n),h=_u(c),[d,y]=Tn({prop:o,defaultProp:i,onChange:u});return M.jsx(mv,{scope:n,name:r,required:s,disabled:a,value:d,onValueChange:y,children:M.jsx(sv,{asChild:!0,...b,orientation:l,dir:h,loop:p,children:M.jsx(Fr.div,{role:"radiogroup","aria-required":s,"aria-orientation":l,"data-disabled":a?"":void 0,dir:h,...v,ref:t})})})});Uu.displayName=Js;var Yu="RadioGroupItem",qu=g.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...i}=e,o=hv(Yu,n),s=o.disabled||r,a=Wu(n),l=Gu(n),c=g.useRef(null),p=Te(t,c),u=o.value===i.value,v=g.useRef(!1);return g.useEffect(()=>{const b=d=>{fv.includes(d.key)&&(v.current=!0)},h=()=>v.current=!1;return document.addEventListener("keydown",b),document.addEventListener("keyup",h),()=>{document.removeEventListener("keydown",b),document.removeEventListener("keyup",h)}},[]),M.jsx(av,{asChild:!0,...a,focusable:!s,active:u,children:M.jsx(Bu,{disabled:s,required:o.required,checked:u,...l,...i,name:o.name,ref:p,onCheck:()=>o.onValueChange(i.value),onKeyDown:ye(b=>{b.key==="Enter"&&b.preventDefault()}),onFocus:ye(i.onFocus,()=>{var b;v.current&&((b=c.current)==null||b.click())})})})});qu.displayName=Yu;var gv="RadioGroupIndicator",Xu=g.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,i=Gu(n);return M.jsx(Vu,{...i,...r,ref:t})});Xu.displayName=gv;var bv=Uu,vv=qu,yv=Xu;function kl(e,[t,n]){return Math.min(n,Math.max(t,e))}function wv(e){const t=e+"CollectionProvider",[n,r]=Gt(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=b=>{const{scope:h,children:d}=b,y=pe.useRef(null),f=pe.useRef(new Map).current;return M.jsx(i,{scope:h,itemMap:f,collectionRef:y,children:d})};s.displayName=t;const a=e+"CollectionSlot",l=pe.forwardRef((b,h)=>{const{scope:d,children:y}=b,f=o(a,d),m=Te(h,f.collectionRef);return M.jsx(Jn,{ref:m,children:y})});l.displayName=a;const c=e+"CollectionItemSlot",p="data-radix-collection-item",u=pe.forwardRef((b,h)=>{const{scope:d,children:y,...f}=b,m=pe.useRef(null),w=Te(h,m),S=o(c,d);return pe.useEffect(()=>(S.itemMap.set(m,{ref:m,...f}),()=>void S.itemMap.delete(m))),M.jsx(Jn,{[p]:"",ref:w,children:y})});u.displayName=c;function v(b){const h=o(e+"CollectionConsumer",b);return pe.useCallback(()=>{const y=h.collectionRef.current;if(!y)return[];const f=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((S,x)=>f.indexOf(S.ref.current)-f.indexOf(x.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:s,Slot:l,ItemSlot:u},v,r]}var Sv=g.createContext(void 0);function xv(e){const t=g.useContext(Sv);return e||t||"ltr"}const Cv=["top","right","bottom","left"],Ht=Math.min,gt=Math.max,Ii=Math.round,ti=Math.floor,gn=e=>({x:e,y:e}),Ev={left:"right",right:"left",bottom:"top",top:"bottom"},kv={start:"end",end:"start"};function es(e,t,n){return gt(e,Ht(t,n))}function en(e,t){return typeof e=="function"?e(t):e}function tn(e){return e.split("-")[0]}function tr(e){return e.split("-")[1]}function Qs(e){return e==="x"?"y":"x"}function ea(e){return e==="y"?"height":"width"}function bn(e){return["top","bottom"].includes(tn(e))?"y":"x"}function ta(e){return Qs(bn(e))}function Tv(e,t,n){n===void 0&&(n=!1);const r=tr(e),i=ta(e),o=ea(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Oi(s)),[s,Oi(s)]}function Av(e){const t=Oi(e);return[ts(e),t,ts(t)]}function ts(e){return e.replace(/start|end/g,t=>kv[t])}function Pv(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 Iv(e,t,n,r){const i=tr(e);let o=Pv(tn(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(ts)))),o}function Oi(e){return e.replace(/left|right|bottom|top/g,t=>Ev[t])}function Ov(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ku(e){return typeof e!="number"?Ov(e):{top:e,right:e,bottom:e,left:e}}function Ri(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 Tl(e,t,n){let{reference:r,floating:i}=e;const o=bn(t),s=ta(t),a=ea(s),l=tn(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 b;switch(l){case"top":b={x:p,y:r.y-i.height};break;case"bottom":b={x:p,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:u};break;case"left":b={x:r.x-i.width,y:u};break;default:b={x:r.x,y:r.y}}switch(tr(t)){case"start":b[s]-=v*(n&&c?-1:1);break;case"end":b[s]+=v*(n&&c?-1:1);break}return b}const Rv=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}=Tl(c,r,l),v=r,b={},h=0;for(let d=0;d<a.length;d++){const{name:y,fn:f}=a[d],{x:m,y:w,data:S,reset:x}=await f({x:p,y:u,initialPlacement:r,placement:v,strategy:i,middlewareData:b,rects:c,platform:s,elements:{reference:e,floating:t}});p=m??p,u=w??u,b={...b,[y]:{...b[y],...S}},x&&h<=50&&(h++,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}=Tl(c,v,l)),d=-1)}return{x:p,y:u,placement:v,strategy:i,middlewareData:b}};async function _r(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:b=0}=en(t,e),h=Ku(b),y=a[v?u==="floating"?"reference":"floating":u],f=Ri(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})),m=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=Ri(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:w,strategy:l}):m);return{top:(f.top-x.top+h.top)/S.y,bottom:(x.bottom-f.bottom+h.bottom)/S.y,left:(f.left-x.left+h.left)/S.x,right:(x.right-f.right+h.right)/S.x}}const _v=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}=en(e,t)||{};if(c==null)return{};const u=Ku(p),v={x:n,y:r},b=ta(i),h=ea(b),d=await s.getDimensions(c),y=b==="y",f=y?"top":"left",m=y?"bottom":"right",w=y?"clientHeight":"clientWidth",S=o.reference[h]+o.reference[b]-v[b]-o.floating[h],x=v[b]-o.reference[b],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[h]);const k=S/2-x/2,_=A/2-d[h]/2-1,z=Ht(u[f],_),R=Ht(u[m],_),I=z,L=A-d[h]-R,N=A/2-d[h]/2+k,V=es(I,N,L),$=!l.arrow&&tr(i)!=null&&N!==V&&o.reference[h]/2-(N<I?z:R)-d[h]/2<0,j=$?N<I?N-I:N-L:0;return{[b]:v[b]+j,data:{[b]:V,centerOffset:N-V-j,...$&&{alignmentOffset:j}},reset:$}}}),Mv=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:b="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:d=!0,...y}=en(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const f=tn(i),m=bn(a),w=tn(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),x=v||(w||!d?[Oi(a)]:Av(a)),T=h!=="none";!v&&T&&x.push(...Iv(a,d,h,S));const A=[a,...x],k=await _r(t,y),_=[];let z=((r=o.flip)==null?void 0:r.overflows)||[];if(p&&_.push(k[f]),u){const N=Tv(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,V=A[N];if(V)return{data:{index:N,overflows:z},reset:{placement:V}};let $=(I=z.filter(j=>j.overflows[0]<=0).sort((j,U)=>j.overflows[1]-U.overflows[1])[0])==null?void 0:I.placement;if(!$)switch(b){case"bestFit":{var L;const j=(L=z.filter(U=>{if(T){const J=bn(U.placement);return J===m||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];j&&($=j);break}case"initialPlacement":$=a;break}if(i!==$)return{reset:{placement:$}}}return{}}}};function Al(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pl(e){return Cv.some(t=>e[t]>=0)}const Dv=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=en(e,t);switch(r){case"referenceHidden":{const o=await _r(t,{...i,elementContext:"reference"}),s=Al(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Pl(s)}}}case"escaped":{const o=await _r(t,{...i,altBoundary:!0}),s=Al(o,n.floating);return{data:{escapedOffsets:s,escaped:Pl(s)}}}default:return{}}}}};async function Lv(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=tn(n),a=tr(n),l=bn(n)==="y",c=["left","top"].includes(s)?-1:1,p=o&&l?-1:1,u=en(t,e);let{mainAxis:v,crossAxis:b,alignmentAxis:h}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof h=="number"&&(b=a==="end"?h*-1:h),l?{x:b*p,y:v*c}:{x:v*c,y:b*p}}const Nv=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 Lv(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}}}}},Fv=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:f,y:m}=y;return{x:f,y:m}}},...l}=en(e,t),c={x:n,y:r},p=await _r(t,l),u=bn(tn(i)),v=Qs(u);let b=c[v],h=c[u];if(o){const y=v==="y"?"top":"left",f=v==="y"?"bottom":"right",m=b+p[y],w=b-p[f];b=es(m,b,w)}if(s){const y=u==="y"?"top":"left",f=u==="y"?"bottom":"right",m=h+p[y],w=h-p[f];h=es(m,h,w)}const d=a.fn({...t,[v]:b,[u]:h});return{...d,data:{x:d.x-n,y:d.y-r}}}}},$v=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}=en(e,t),p={x:n,y:r},u=bn(i),v=Qs(u);let b=p[v],h=p[u];const d=en(a,t),y=typeof d=="number"?{mainAxis:d,crossAxis:0}:{mainAxis:0,crossAxis:0,...d};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;b<S?b=S:b>x&&(b=x)}if(c){var f,m;const w=v==="y"?"width":"height",S=["top","left"].includes(tn(i)),x=o.reference[u]-o.floating[w]+(S&&((f=s.offset)==null?void 0:f[u])||0)+(S?0:y.crossAxis),T=o.reference[u]+o.reference[w]+(S?0:((m=s.offset)==null?void 0:m[u])||0)-(S?y.crossAxis:0);h<x?h=x:h>T&&(h=T)}return{[v]:b,[u]:h}}}},zv=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}=en(e,t),l=await _r(t,a),c=tn(n),p=tr(n),u=bn(n)==="y",{width:v,height:b}=r.floating;let h,d;c==="top"||c==="bottom"?(h=c,d=p===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(d=c,h=p==="end"?"top":"bottom");const y=b-l.top-l.bottom,f=v-l.left-l.right,m=Ht(b-l[h],y),w=Ht(v-l[d],f),S=!t.middlewareData.shift;let x=m,T=w;if(u?T=p||S?Ht(w,f):f:x=p||S?Ht(m,y):y,S&&!p){const k=gt(l.left,0),_=gt(l.right,0),z=gt(l.top,0),R=gt(l.bottom,0);u?T=v-2*(k!==0||_!==0?k+_:gt(l.left,l.right)):x=b-2*(z!==0||R!==0?z+R:gt(l.top,l.bottom))}await s({...t,availableWidth:T,availableHeight:x});const A=await i.getDimensions(o.floating);return v!==A.width||b!==A.height?{reset:{rects:!0}}:{}}}};function nr(e){return Zu(e)?(e.nodeName||"").toLowerCase():"#document"}function vt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function on(e){var t;return(t=(Zu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zu(e){return e instanceof Node||e instanceof vt(e).Node}function Be(e){return e instanceof Element||e instanceof vt(e).Element}function yt(e){return e instanceof HTMLElement||e instanceof vt(e).HTMLElement}function ns(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof vt(e).ShadowRoot}function $r(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Bv(e){return["table","td","th"].includes(nr(e))}function Ki(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function na(e){const t=ra(),n=Be(e)?kt(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 jv(e){let t=nn(e);for(;yt(t)&&!vn(t);){if(na(t))return t;if(Ki(t))return null;t=nn(t)}return null}function ra(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function vn(e){return["html","body","#document"].includes(nr(e))}function kt(e){return vt(e).getComputedStyle(e)}function Zi(e){return Be(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nn(e){if(nr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ns(e)&&e.host||on(e);return ns(t)?t.host:t}function Ju(e){const t=nn(e);return vn(t)?e.ownerDocument?e.ownerDocument.body:e.body:yt(t)&&$r(t)?t:Ju(t)}function hn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Ju(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=vt(i);if(o){const a=rs(s);return t.concat(s,s.visualViewport||[],$r(i)?i:[],a&&n?hn(a):[])}return t.concat(i,hn(i,[],n))}function rs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qu(e){const t=kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=yt(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=Ii(n)!==o||Ii(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function ia(e){return Be(e)?e:e.contextElement}function Kn(e){const t=ia(e);if(!yt(t))return gn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Qu(t);let s=(o?Ii(n.width):n.width)/r,a=(o?Ii(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Vv=gn(0);function ed(e){const t=vt(e);return!ra()||!t.visualViewport?Vv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Hv(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==vt(e)?!1:t}function In(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=ia(e);let s=gn(1);t&&(r?Be(r)&&(s=Kn(r)):s=Kn(e));const a=Hv(o,n,r)?ed(o):gn(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=vt(o),b=r&&Be(r)?vt(r):r;let h=v,d=rs(h);for(;d&&r&&b!==h;){const y=Kn(d),f=d.getBoundingClientRect(),m=kt(d),w=f.left+(d.clientLeft+parseFloat(m.paddingLeft))*y.x,S=f.top+(d.clientTop+parseFloat(m.paddingTop))*y.y;l*=y.x,c*=y.y,p*=y.x,u*=y.y,l+=w,c+=S,h=vt(d),d=rs(h)}}return Ri({width:p,height:u,x:l,y:c})}function Wv(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=on(r),a=t?Ki(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=gn(1);const p=gn(0),u=yt(r);if((u||!u&&!o)&&((nr(r)!=="body"||$r(s))&&(l=Zi(r)),yt(r))){const v=In(r);c=Kn(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 Gv(e){return Array.from(e.getClientRects())}function td(e){return In(on(e)).left+Zi(e).scrollLeft}function Uv(e){const t=on(e),n=Zi(e),r=e.ownerDocument.body,i=gt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=gt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+td(e);const a=-n.scrollTop;return kt(r).direction==="rtl"&&(s+=gt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function Yv(e,t){const n=vt(e),r=on(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=ra();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function qv(e,t){const n=In(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=yt(e)?Kn(e):gn(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 Il(e,t,n){let r;if(t==="viewport")r=Yv(e,n);else if(t==="document")r=Uv(on(e));else if(Be(t))r=qv(t,n);else{const i=ed(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Ri(r)}function nd(e,t){const n=nn(e);return n===t||!Be(n)||vn(n)?!1:kt(n).position==="fixed"||nd(n,t)}function Xv(e,t){const n=t.get(e);if(n)return n;let r=hn(e,[],!1).filter(a=>Be(a)&&nr(a)!=="body"),i=null;const o=kt(e).position==="fixed";let s=o?nn(e):e;for(;Be(s)&&!vn(s);){const a=kt(s),l=na(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||$r(s)&&!l&&nd(e,s))?r=r.filter(p=>p!==s):i=a,s=nn(s)}return t.set(e,r),r}function Kv(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Ki(t)?[]:Xv(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,p)=>{const u=Il(t,p,i);return c.top=gt(u.top,c.top),c.right=Ht(u.right,c.right),c.bottom=Ht(u.bottom,c.bottom),c.left=gt(u.left,c.left),c},Il(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Zv(e){const{width:t,height:n}=Qu(e);return{width:t,height:n}}function Jv(e,t,n){const r=yt(t),i=on(t),o=n==="fixed",s=In(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=gn(0);if(r||!r&&!o)if((nr(t)!=="body"||$r(i))&&(a=Zi(t)),r){const u=In(t,!0,o,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else i&&(l.x=td(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 Ao(e){return kt(e).position==="static"}function Ol(e,t){return!yt(e)||kt(e).position==="fixed"?null:t?t(e):e.offsetParent}function rd(e,t){const n=vt(e);if(Ki(e))return n;if(!yt(e)){let i=nn(e);for(;i&&!vn(i);){if(Be(i)&&!Ao(i))return i;i=nn(i)}return n}let r=Ol(e,t);for(;r&&Bv(r)&&Ao(r);)r=Ol(r,t);return r&&vn(r)&&Ao(r)&&!na(r)?n:r||jv(e)||n}const Qv=async function(e){const t=this.getOffsetParent||rd,n=this.getDimensions,r=await n(e.floating);return{reference:Jv(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ey(e){return kt(e).direction==="rtl"}const ty={convertOffsetParentRelativeRectToViewportRelativeRect:Wv,getDocumentElement:on,getClippingRect:Kv,getOffsetParent:rd,getElementRects:Qv,getClientRects:Gv,getDimensions:Zv,getScale:Kn,isElement:Be,isRTL:ey};function ny(e,t){let n=null,r;const i=on(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 b=ti(p),h=ti(i.clientWidth-(c+u)),d=ti(i.clientHeight-(p+v)),y=ti(c),m={rootMargin:-b+"px "+-h+"px "+-d+"px "+-y+"px",threshold:gt(0,Ht(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,{...m,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,m)}n.observe(e)}return s(!0),o}function oa(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=ia(e),p=i||o?[...c?hn(c):[],...hn(t)]:[];p.forEach(f=>{i&&f.addEventListener("scroll",n,{passive:!0}),o&&f.addEventListener("resize",n)});const u=c&&a?ny(c,n):null;let v=-1,b=null;s&&(b=new ResizeObserver(f=>{let[m]=f;m&&m.target===c&&b&&(b.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var w;(w=b)==null||w.observe(t)})),n()}),c&&!l&&b.observe(c),b.observe(t));let h,d=l?In(e):null;l&&y();function y(){const f=In(e);d&&(f.x!==d.x||f.y!==d.y||f.width!==d.width||f.height!==d.height)&&n(),d=f,h=requestAnimationFrame(y)}return n(),()=>{var f;p.forEach(m=>{i&&m.removeEventListener("scroll",n),o&&m.removeEventListener("resize",n)}),u==null||u(),(f=b)==null||f.disconnect(),b=null,l&&cancelAnimationFrame(h)}}const ry=Nv,iy=Fv,oy=Mv,sy=zv,ay=Dv,Rl=_v,ly=$v,cy=(e,t,n)=>{const r=new Map,i={platform:ty,...n},o={...i.platform,_c:r};return Rv(e,t,{...i,platform:o})};var hi=typeof document<"u"?g.useLayoutEffect:g.useEffect;function _i(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(!_i(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)&&!_i(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function id(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _l(e,t){const n=id(e);return Math.round(t*n)/n}function Ml(e){const t=g.useRef(e);return hi(()=>{t.current=e}),t}function od(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]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,b]=g.useState(r);_i(v,r)||b(r);const[h,d]=g.useState(null),[y,f]=g.useState(null),m=g.useCallback(j=>{j!==T.current&&(T.current=j,d(j))},[]),w=g.useCallback(j=>{j!==A.current&&(A.current=j,f(j))},[]),S=o||h,x=s||y,T=g.useRef(null),A=g.useRef(null),k=g.useRef(p),_=l!=null,z=Ml(l),R=Ml(i),I=g.useCallback(()=>{if(!T.current||!A.current)return;const j={placement:t,strategy:n,middleware:v};R.current&&(j.platform=R.current),cy(T.current,A.current,j).then(U=>{const J={...U,isPositioned:!0};L.current&&!_i(k.current,J)&&(k.current=J,Qn.flushSync(()=>{u(J)}))})},[v,t,n,R]);hi(()=>{c===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,u(j=>({...j,isPositioned:!1})))},[c]);const L=g.useRef(!1);hi(()=>(L.current=!0,()=>{L.current=!1}),[]),hi(()=>{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=g.useMemo(()=>({reference:T,floating:A,setReference:m,setFloating:w}),[m,w]),V=g.useMemo(()=>({reference:S,floating:x}),[S,x]),$=g.useMemo(()=>{const j={position:n,left:0,top:0};if(!V.floating)return j;const U=_l(V.floating,p.x),J=_l(V.floating,p.y);return a?{...j,transform:"translate("+U+"px, "+J+"px)",...id(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:U,top:J}},[n,a,V.floating,p.x,p.y]);return g.useMemo(()=>({...p,update:I,refs:N,elements:V,floatingStyles:$}),[p,I,N,V,$])}const uy=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?Rl({element:r.current,padding:i}).fn(n):{}:r?Rl({element:r,padding:i}).fn(n):{}}}},sd=(e,t)=>({...ry(e),options:[e,t]}),ad=(e,t)=>({...iy(e),options:[e,t]}),dy=(e,t)=>({...ly(e),options:[e,t]}),ld=(e,t)=>({...oy(e),options:[e,t]}),fy=(e,t)=>({...sy(e),options:[e,t]}),py=(e,t)=>({...ay(e),options:[e,t]}),my=(e,t)=>({...uy(e),options:[e,t]});var hy="Arrow",cd=g.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"})})});cd.displayName=hy;var gy=cd,sa="Popper",[ud,dd]=Gt(sa),[by,fd]=ud(sa),pd=e=>{const{__scopePopper:t,children:n}=e,[r,i]=g.useState(null);return M.jsx(by,{scope:t,anchor:r,onAnchorChange:i,children:n})};pd.displayName=sa;var md="PopperAnchor",hd=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=fd(md,n),s=g.useRef(null),a=Te(t,s);return g.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:M.jsx(ke.div,{...i,ref:a})});hd.displayName=md;var aa="PopperContent",[vy,yy]=ud(aa),gd=g.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:b="optimized",onPlaced:h,...d}=e,y=fd(aa,n),[f,m]=g.useState(null),w=Te(t,le=>m(le)),[S,x]=g.useState(null),T=Xs(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(Sy),altBoundary:I},{refs:N,floatingStyles:V,placement:$,isPositioned:j,middlewareData:U}=od({strategy:"fixed",placement:_,whileElementsMounted:(...le)=>oa(...le,{animationFrame:b==="always"}),elements:{reference:y.anchor},middleware:[sd({mainAxis:i+k,alignmentAxis:s}),l&&ad({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?dy():void 0,...L}),l&&ld({...L}),fy({...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&&my({element:S,padding:a}),xy({arrowWidth:A,arrowHeight:k}),v&&py({strategy:"referenceHidden",...L})]}),[J,ge]=yd($),re=Qt(h);et(()=>{j&&(re==null||re())},[j,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]=g.useState();return et(()=>{f&&Se(window.getComputedStyle(f).zIndex)},[f]),M.jsx("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:j?V.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(vy,{scope:n,placedSide:J,onArrowChange:x,arrowX:Re,arrowY:ve,shouldHideArrow:Ae,children:M.jsx(ke.div,{"data-side":J,"data-align":ge,...d,ref:w,style:{...d.style,animation:j?void 0:"none"}})})})});gd.displayName=aa;var bd="PopperArrow",wy={top:"bottom",right:"left",bottom:"top",left:"right"},vd=g.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=yy(bd,r),s=wy[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(gy,{...i,ref:n,style:{...i.style,display:"block"}})})});vd.displayName=bd;function Sy(e){return e!==null}var xy=e=>({name:"transformOrigin",options:e,fn(t){var y,f,m;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]=yd(n),u={start:"0%",center:"50%",end:"100%"}[p],v=(((f=i.arrow)==null?void 0:f.x)??0)+a/2,b=(((m=i.arrow)==null?void 0:m.y)??0)+l/2;let h="",d="";return c==="bottom"?(h=s?u:`${v}px`,d=`${-l}px`):c==="top"?(h=s?u:`${v}px`,d=`${r.floating.height+l}px`):c==="right"?(h=`${-l}px`,d=s?u:`${b}px`):c==="left"&&(h=`${r.floating.width+l}px`,d=s?u:`${b}px`),{data:{x:h,y:d}}}});function yd(e){const[t,n="center"]=e.split("-");return[t,n]}var Cy=pd,Ey=hd,ky=gd,Ty=vd,Ay="VisuallyHidden",wd=g.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}}));wd.displayName=Ay;var ft=function(){return ft=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},ft.apply(this,arguments)};function Sd(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 xd(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 Cd=As(),Po=function(){},Ji=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.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,b=e.noIsolation,h=e.inert,d=e.allowPinchZoom,y=e.as,f=y===void 0?"div":y,m=e.gapMode,w=Sd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,x=Ts([n,t]),T=ft(ft({},w),i);return g.createElement(g.Fragment,null,p&&g.createElement(S,{sideCar:Cd,removeScrollBar:c,shards:u,noIsolation:b,inert:h,setCallbacks:o,allowPinchZoom:!!d,lockRef:n,gapMode:m}),s?g.cloneElement(g.Children.only(a),ft(ft({},T),{ref:x})):g.createElement(f,ft({},T,{className:l,ref:x}),a))});Ji.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ji.classNames={fullWidth:qn,zeroRight:Yn};var is=!1;if(typeof window<"u")try{var ni=Object.defineProperty({},"passive",{get:function(){return is=!0,!0}});window.addEventListener("test",ni,ni),window.removeEventListener("test",ni,ni)}catch{is=!1}var Bn=is?{passive:!1}:!1,Py=function(e){return e.tagName==="TEXTAREA"},Ed=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Py(e)&&n[t]==="visible")},Iy=function(e){return Ed(e,"overflowY")},Oy=function(e){return Ed(e,"overflowX")},Dl=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=kd(e,r);if(i){var o=Td(e,r),s=o[1],a=o[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ry=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},_y=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},kd=function(e,t){return e==="v"?Iy(t):Oy(t)},Td=function(e,t){return e==="v"?Ry(t):_y(t)},My=function(e,t){return e==="h"&&t==="rtl"?-1:1},Dy=function(e,t,n,r,i){var o=My(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 b=Td(e,a),h=b[0],d=b[1],y=b[2],f=d-y-o*h;(h||f)&&kd(e,a)&&(u+=f,v+=h),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]},Ll=function(e){return[e.deltaX,e.deltaY]},Nl=function(e){return e&&"current"in e?e.current:e},Ly=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ny=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},Fy=0,jn=[];function $y(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),i=g.useState(Fy++)[0],o=g.useState(Wi)[0],s=g.useRef(e);g.useEffect(function(){s.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var d=xd([e.lockRef.current],(e.shards||[]).map(Nl)).filter(Boolean);return d.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),d.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=g.useCallback(function(d,y){if("touches"in d&&d.touches.length===2)return!s.current.allowPinchZoom;var f=ri(d),m=n.current,w="deltaX"in d?d.deltaX:m[0]-f[0],S="deltaY"in d?d.deltaY:m[1]-f[1],x,T=d.target,A=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in d&&A==="h"&&T.type==="range")return!1;var k=Dl(A,T);if(!k)return!0;if(k?x=A:(x=A==="v"?"h":"v",k=Dl(A,T)),!k)return!1;if(!r.current&&"changedTouches"in d&&(w||S)&&(r.current=x),!x)return!0;var _=r.current||x;return Dy(_,y,d,_==="h"?w:S)},[]),l=g.useCallback(function(d){var y=d;if(!(!jn.length||jn[jn.length-1]!==o)){var f="deltaY"in y?Ll(y):ri(y),m=t.current.filter(function(x){return x.name===y.type&&(x.target===y.target||y.target===x.shadowParent)&&Ly(x.delta,f)})[0];if(m&&m.should){y.cancelable&&y.preventDefault();return}if(!m){var w=(s.current.shards||[]).map(Nl).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=g.useCallback(function(d,y,f,m){var w={name:d,delta:y,target:f,should:m,shadowParent:zy(f)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),p=g.useCallback(function(d){n.current=ri(d),r.current=void 0},[]),u=g.useCallback(function(d){c(d.type,Ll(d),d.target,a(d,e.lockRef.current))},[]),v=g.useCallback(function(d){c(d.type,ri(d),d.target,a(d,e.lockRef.current))},[]);g.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(d){return d!==o}),document.removeEventListener("wheel",l,Bn),document.removeEventListener("touchmove",l,Bn),document.removeEventListener("touchstart",p,Bn)}},[]);var b=e.removeScrollBar,h=e.inert;return g.createElement(g.Fragment,null,h?g.createElement(o,{styles:Ny(i)}):null,b?g.createElement(Is,{gapMode:e.gapMode}):null)}function zy(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const By=Ps(Cd,$y);var Ad=g.forwardRef(function(e,t){return g.createElement(Ji,ft({},e,{ref:t,sideCar:By}))});Ad.classNames=Ji.classNames;var jy=[" ","Enter","ArrowUp","ArrowDown"],Vy=[" ","Enter"],zr="Select",[Qi,eo,Hy]=wv(zr),[rr,iE]=Gt(zr,[Hy,dd]),to=dd(),[Wy,yn]=rr(zr),[Gy,Uy]=rr(zr),Pd=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:b}=e,h=to(t),[d,y]=g.useState(null),[f,m]=g.useState(null),[w,S]=g.useState(!1),x=xv(c),[T=!1,A]=Tn({prop:r,defaultProp:i,onChange:o}),[k,_]=Tn({prop:s,defaultProp:a,onChange:l}),z=g.useRef(null),R=d?!!d.closest("form"):!0,[I,L]=g.useState(new Set),N=Array.from(I).map(V=>V.props.value).join(";");return M.jsx(Cy,{...h,children:M.jsxs(Wy,{required:b,scope:t,trigger:d,onTriggerChange:y,valueNode:f,onValueNodeChange:m,valueNodeHasChildren:w,onValueNodeHasChildrenChange:S,contentId:Cn(),value:k,onValueChange:_,open:T,onOpenChange:A,dir:x,triggerPointerDownPosRef:z,disabled:v,children:[M.jsx(Qi.Provider,{scope:t,children:M.jsx(Gy,{scope:e.__scopeSelect,onNativeOptionAdd:g.useCallback(V=>{L($=>new Set($).add(V))},[]),onNativeOptionRemove:g.useCallback(V=>{L($=>{const j=new Set($);return j.delete(V),j})},[]),children:n})}),R?M.jsxs(qd,{"aria-hidden":!0,required:b,tabIndex:-1,name:p,autoComplete:u,value:k,onChange:V=>_(V.target.value),disabled:v,children:[k===void 0?M.jsx("option",{value:""}):null,Array.from(I)]},N):null]})})};Pd.displayName=zr;var Id="SelectTrigger",Od=g.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,o=to(n),s=yn(Id,n),a=s.disabled||r,l=Te(t,s.onTriggerChange),c=eo(n),[p,u,v]=Xd(h=>{const d=c().filter(m=>!m.disabled),y=d.find(m=>m.value===s.value),f=Kd(d,h,y);f!==void 0&&s.onValueChange(f.value)}),b=()=>{a||(s.onOpenChange(!0),v())};return M.jsx(Ey,{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":Yd(s.value)?"":void 0,...i,ref:l,onClick:ye(i.onClick,h=>{h.currentTarget.focus()}),onPointerDown:ye(i.onPointerDown,h=>{const d=h.target;d.hasPointerCapture(h.pointerId)&&d.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&(b(),s.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)},h.preventDefault())}),onKeyDown:ye(i.onKeyDown,h=>{const d=p.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&u(h.key),!(d&&h.key===" ")&&jy.includes(h.key)&&(b(),h.preventDefault())})})})});Od.displayName=Id;var Rd="SelectValue",_d=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:o,placeholder:s="",...a}=e,l=yn(Rd,n),{onValueNodeHasChildrenChange:c}=l,p=o!==void 0,u=Te(t,l.onValueNodeChange);return et(()=>{c(p)},[c,p]),M.jsx(ke.span,{...a,ref:u,style:{pointerEvents:"none"},children:Yd(l.value)?M.jsx(M.Fragment,{children:s}):o})});_d.displayName=Rd;var Yy="SelectIcon",Md=g.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return M.jsx(ke.span,{"aria-hidden":!0,...i,ref:t,children:r||"â–¼"})});Md.displayName=Yy;var qy="SelectPortal",Dd=e=>M.jsx(ks,{asChild:!0,...e});Dd.displayName=qy;var On="SelectContent",Ld=g.forwardRef((e,t)=>{const n=yn(On,e.__scopeSelect),[r,i]=g.useState();if(et(()=>{i(new DocumentFragment)},[]),!n.open){const o=r;return o?Qn.createPortal(M.jsx(Nd,{scope:e.__scopeSelect,children:M.jsx(Qi.Slot,{scope:e.__scopeSelect,children:M.jsx("div",{children:e.children})})}),o):null}return M.jsx(Fd,{...e,ref:t})});Ld.displayName=On;var Xt=10,[Nd,wn]=rr(On),Xy="SelectContentImpl",Fd=g.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:b,sticky:h,hideWhenDetached:d,avoidCollisions:y,...f}=e,m=yn(On,n),[w,S]=g.useState(null),[x,T]=g.useState(null),A=Te(t,Z=>S(Z)),[k,_]=g.useState(null),[z,R]=g.useState(null),I=eo(n),[L,N]=g.useState(!1),V=g.useRef(!1);g.useEffect(()=>{if(w)return zc(w)},[w]),Rc();const $=g.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]),j=g.useCallback(()=>$([k,w]),[$,k,w]);g.useEffect(()=>{L&&j()},[L,j]);const{onOpenChange:U,triggerPointerDownPosRef:J}=m;g.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]),g.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]=Xd(Z=>{const se=I().filter(te=>!te.disabled),we=se.find(te=>te.ref.current===document.activeElement),de=Kd(se,Z,we);de&&setTimeout(()=>de.ref.current.focus())}),Re=g.useCallback((Z,se,we)=>{const de=!V.current&&!we;(m.value!==void 0&&m.value===se||de)&&(_(Z),de&&(V.current=!0))},[m.value]),ve=g.useCallback(()=>w==null?void 0:w.focus(),[w]),Ae=g.useCallback((Z,se,we)=>{const de=!V.current&&!we;(m.value!==void 0&&m.value===se||de)&&R(Z)},[m.value]),oe=r==="popper"?os:$d,Se=oe===os?{side:a,sideOffset:l,align:c,alignOffset:p,arrowPadding:u,collisionBoundary:v,collisionPadding:b,sticky:h,hideWhenDetached:d,avoidCollisions:y}:{};return M.jsx(Nd,{scope:n,content:w,viewport:x,onViewportChange:T,itemRefCallback:Re,selectedItem:k,onItemLeave:ve,itemTextRefCallback:Ae,focusSelectedItem:j,selectedItemText:z,position:r,isPositioned:L,searchRef:ge,children:M.jsx(Ad,{as:Jn,allowPinchZoom:!0,children:M.jsx(Es,{asChild:!0,trapped:m.open,onMountAutoFocus:Z=>{Z.preventDefault()},onUnmountAutoFocus:ye(i,Z=>{var se;(se=m.trigger)==null||se.focus({preventScroll:!0}),Z.preventDefault()}),children:M.jsx(Cs,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:Z=>Z.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:M.jsx(oe,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:Z=>Z.preventDefault(),...f,...Se,onPlaced:()=>N(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...f.style},onKeyDown:ye(f.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(()=>$(de)),Z.preventDefault()}})})})})})})});Fd.displayName=Xy;var Ky="SelectItemAlignedPosition",$d=g.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,o=yn(On,n),s=wn(On,n),[a,l]=g.useState(null),[c,p]=g.useState(null),u=Te(t,A=>p(A)),v=eo(n),b=g.useRef(!1),h=g.useRef(!0),{viewport:d,selectedItem:y,selectedItemText:f,focusSelectedItem:m}=s,w=g.useCallback(()=>{if(o.trigger&&o.valueNode&&a&&c&&d&&y&&f){const A=o.trigger.getBoundingClientRect(),k=c.getBoundingClientRect(),_=o.valueNode.getBoundingClientRect(),z=f.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-Xt,Le=kl(H,[Xt,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-Xt,Le=kl(H,[Xt,ze-_e]);a.style.minWidth=fe+"px",a.style.right=Le+"px"}const R=v(),I=window.innerHeight-Xt*2,L=d.scrollHeight,N=window.getComputedStyle(c),V=parseInt(N.borderTopWidth,10),$=parseInt(N.paddingTop,10),j=parseInt(N.borderBottomWidth,10),U=parseInt(N.paddingBottom,10),J=V+$+L+U+j,ge=Math.min(y.offsetHeight*5,J),re=window.getComputedStyle(d),Re=parseInt(re.paddingTop,10),ve=parseInt(re.paddingBottom,10),Ae=A.top+A.height/2-Xt,oe=I-Ae,Se=y.offsetHeight/2,Z=y.offsetTop+Se,se=V+$+Z,we=J-se;if(se<=Ae){const te=y===R[R.length-1].ref.current;a.style.bottom="0px";const H=c.clientHeight-d.offsetTop-d.offsetHeight,le=Math.max(oe,Se+(te?ve:0)+H+j),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,V+d.offsetTop+(te?Re:0)+Se)+we;a.style.height=le+"px",d.scrollTop=se-Ae+d.offsetTop}a.style.margin=`${Xt}px 0`,a.style.minHeight=ge+"px",a.style.maxHeight=I+"px",r==null||r(),requestAnimationFrame(()=>b.current=!0)}},[v,o.trigger,o.valueNode,a,c,d,y,f,o.dir,r]);et(()=>w(),[w]);const[S,x]=g.useState();et(()=>{c&&x(window.getComputedStyle(c).zIndex)},[c]);const T=g.useCallback(A=>{A&&h.current===!0&&(w(),m==null||m(),h.current=!1)},[w,m]);return M.jsx(Jy,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:b,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=Ky;var Zy="SelectPopperPosition",os=g.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=Xt,...o}=e,s=to(n);return M.jsx(ky,{...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)"}})});os.displayName=Zy;var[Jy,la]=rr(On,{}),ss="SelectViewport",zd=g.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,o=wn(ss,n),s=la(ss,n),a=Te(t,o.onViewportChange),l=g.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(Qi.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 b=Math.abs(l.current-p.scrollTop);if(b>0){const h=window.innerHeight-Xt*2,d=parseFloat(u.style.minHeight),y=parseFloat(u.style.height),f=Math.max(d,y);if(f<h){const m=f+b,w=Math.min(h,m),S=m-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})})})]})});zd.displayName=ss;var Bd="SelectGroup",[Qy,ew]=rr(Bd),tw=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Cn();return M.jsx(Qy,{scope:n,id:i,children:M.jsx(ke.div,{role:"group","aria-labelledby":i,...r,ref:t})})});tw.displayName=Bd;var jd="SelectLabel",nw=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=ew(jd,n);return M.jsx(ke.div,{id:i.id,...r,ref:t})});nw.displayName=jd;var Mi="SelectItem",[rw,Vd]=rr(Mi),Hd=g.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...s}=e,a=yn(Mi,n),l=wn(Mi,n),c=a.value===r,[p,u]=g.useState(o??""),[v,b]=g.useState(!1),h=Te(t,f=>{var m;return(m=l.itemRefCallback)==null?void 0:m.call(l,f,r,i)}),d=Cn(),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(rw,{scope:n,value:r,disabled:i,textId:d,isSelected:c,onItemTextChange:g.useCallback(f=>{u(m=>m||((f==null?void 0:f.textContent)??"").trim())},[]),children:M.jsx(Qi.ItemSlot,{scope:n,value:r,disabled:i,textValue:p,children:M.jsx(ke.div,{role:"option","aria-labelledby":d,"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:h,onFocus:ye(s.onFocus,()=>b(!0)),onBlur:ye(s.onBlur,()=>b(!1)),onPointerUp:ye(s.onPointerUp,y),onPointerMove:ye(s.onPointerMove,f=>{var m;i?(m=l.onItemLeave)==null||m.call(l):f.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ye(s.onPointerLeave,f=>{var m;f.currentTarget===document.activeElement&&((m=l.onItemLeave)==null||m.call(l))}),onKeyDown:ye(s.onKeyDown,f=>{var w;((w=l.searchRef)==null?void 0:w.current)!==""&&f.key===" "||(Vy.includes(f.key)&&y(),f.key===" "&&f.preventDefault())})})})})});Hd.displayName=Mi;var yr="SelectItemText",Wd=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...o}=e,s=yn(yr,n),a=wn(yr,n),l=Vd(yr,n),c=Uy(yr,n),[p,u]=g.useState(null),v=Te(t,f=>u(f),l.onItemTextChange,f=>{var m;return(m=a.itemTextRefCallback)==null?void 0:m.call(a,f,l.value,l.disabled)}),b=p==null?void 0:p.textContent,h=g.useMemo(()=>M.jsx("option",{value:l.value,disabled:l.disabled,children:b},l.value),[l.disabled,l.value,b]),{onNativeOptionAdd:d,onNativeOptionRemove:y}=c;return et(()=>(d(h),()=>y(h)),[d,y,h]),M.jsxs(M.Fragment,{children:[M.jsx(ke.span,{id:l.textId,...o,ref:v}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Qn.createPortal(o.children,s.valueNode):null]})});Wd.displayName=yr;var Gd="SelectItemIndicator",iw=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Vd(Gd,n).isSelected?M.jsx(ke.span,{"aria-hidden":!0,...r,ref:t}):null});iw.displayName=Gd;var as="SelectScrollUpButton",ow=g.forwardRef((e,t)=>{const n=wn(as,e.__scopeSelect),r=la(as,e.__scopeSelect),[i,o]=g.useState(!1),s=Te(t,r.onScrollButtonChange);return et(()=>{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(Ud,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});ow.displayName=as;var ls="SelectScrollDownButton",sw=g.forwardRef((e,t)=>{const n=wn(ls,e.__scopeSelect),r=la(ls,e.__scopeSelect),[i,o]=g.useState(!1),s=Te(t,r.onScrollButtonChange);return et(()=>{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(Ud,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});sw.displayName=ls;var Ud=g.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,o=wn("SelectScrollButton",n),s=g.useRef(null),a=eo(n),l=g.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return g.useEffect(()=>()=>l(),[l]),et(()=>{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()})})}),aw="SelectSeparator",lw=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return M.jsx(ke.div,{"aria-hidden":!0,...r,ref:t})});lw.displayName=aw;var cs="SelectArrow",cw=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=to(n),o=yn(cs,n),s=wn(cs,n);return o.open&&s.position==="popper"?M.jsx(Ty,{...i,...r,ref:t}):null});cw.displayName=cs;function Yd(e){return e===""||e===void 0}var qd=g.forwardRef((e,t)=>{const{value:n,...r}=e,i=g.useRef(null),o=Te(t,i),s=Ks(n);return g.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(wd,{asChild:!0,children:M.jsx("select",{...r,ref:o,defaultValue:n})})});qd.displayName="BubbleSelect";function Xd(e){const t=Qt(e),n=g.useRef(""),r=g.useRef(0),i=g.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=g.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,o]}function Kd(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=uw(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 uw(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var dw=Pd,fw=Od,pw=_d,mw=Md,hw=Dd,gw=Ld,bw=zd,vw=Hd,yw=Wd,ca="Checkbox",[ww,oE]=Gt(ca),[Sw,xw]=ww(ca),Zd=g.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]=g.useState(null),b=Te(t,w=>v(w)),h=g.useRef(!1),d=u?!!u.closest("form"):!0,[y=!1,f]=Tn({prop:i,defaultProp:o,onChange:c}),m=g.useRef(y);return g.useEffect(()=>{const w=u==null?void 0:u.form;if(w){const S=()=>f(m.current);return w.addEventListener("reset",S),()=>w.removeEventListener("reset",S)}},[u,f]),M.jsxs(Sw,{scope:n,state:y,disabled:a,children:[M.jsx(ke.button,{type:"button",role:"checkbox","aria-checked":En(y)?"mixed":y,"aria-required":s,"data-state":ef(y),"data-disabled":a?"":void 0,disabled:a,value:l,...p,ref:b,onKeyDown:ye(e.onKeyDown,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:ye(e.onClick,w=>{f(S=>En(S)?!0:!S),d&&(h.current=w.isPropagationStopped(),h.current||w.stopPropagation())})}),d&&M.jsx(Cw,{control:u,bubbles:!h.current,name:r,value:l,checked:y,required:s,disabled:a,style:{transform:"translateX(-100%)"}})]})});Zd.displayName=ca;var Jd="CheckboxIndicator",Qd=g.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,o=xw(Jd,n);return M.jsx(_n,{present:r||En(o.state)||o.state===!0,children:M.jsx(ke.span,{"data-state":ef(o.state),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});Qd.displayName=Jd;var Cw=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,o=g.useRef(null),s=Ks(n),a=Xs(t);return g.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=En(n),u.call(l,En(n)?!1:n),l.dispatchEvent(v)}},[s,n,r]),M.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:En(n)?!1:n,...i,tabIndex:-1,ref:o,style:{...e.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function En(e){return e==="indeterminate"}function ef(e){return En(e)?"indeterminate":e?"checked":"unchecked"}var tf=Zd,nf=Qd,rf=As(),Io=function(){},no=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:Io,onWheelCapture:Io,onTouchMoveCapture:Io}),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,b=e.noIsolation,h=e.inert,d=e.allowPinchZoom,y=e.as,f=y===void 0?"div":y,m=e.gapMode,w=Sd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,x=Ts([n,t]),T=ft(ft({},w),i);return g.createElement(g.Fragment,null,p&&g.createElement(S,{sideCar:rf,removeScrollBar:c,shards:u,noIsolation:b,inert:h,setCallbacks:o,allowPinchZoom:!!d,lockRef:n,gapMode:m}),s?g.cloneElement(g.Children.only(a),ft(ft({},T),{ref:x})):g.createElement(f,ft({},T,{className:l,ref:x}),a))});no.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};no.classNames={fullWidth:qn,zeroRight:Yn};var us=!1;if(typeof window<"u")try{var ii=Object.defineProperty({},"passive",{get:function(){return us=!0,!0}});window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{us=!1}var Vn=us?{passive:!1}:!1,Ew=function(e){return e.tagName==="TEXTAREA"},of=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ew(e)&&n[t]==="visible")},kw=function(e){return of(e,"overflowY")},Tw=function(e){return of(e,"overflowX")},Fl=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=sf(e,r);if(i){var o=af(e,r),s=o[1],a=o[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Aw=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Pw=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},sf=function(e,t){return e==="v"?kw(t):Tw(t)},af=function(e,t){return e==="v"?Aw(t):Pw(t)},Iw=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ow=function(e,t,n,r,i){var o=Iw(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 b=af(e,a),h=b[0],d=b[1],y=b[2],f=d-y-o*h;(h||f)&&sf(e,a)&&(u+=f,v+=h),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},oi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$l=function(e){return[e.deltaX,e.deltaY]},zl=function(e){return e&&"current"in e?e.current:e},Rw=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_w=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},Mw=0,Hn=[];function Dw(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),i=g.useState(Mw++)[0],o=g.useState(Wi)[0],s=g.useRef(e);g.useEffect(function(){s.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var d=xd([e.lockRef.current],(e.shards||[]).map(zl)).filter(Boolean);return d.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),d.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=g.useCallback(function(d,y){if("touches"in d&&d.touches.length===2)return!s.current.allowPinchZoom;var f=oi(d),m=n.current,w="deltaX"in d?d.deltaX:m[0]-f[0],S="deltaY"in d?d.deltaY:m[1]-f[1],x,T=d.target,A=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in d&&A==="h"&&T.type==="range")return!1;var k=Fl(A,T);if(!k)return!0;if(k?x=A:(x=A==="v"?"h":"v",k=Fl(A,T)),!k)return!1;if(!r.current&&"changedTouches"in d&&(w||S)&&(r.current=x),!x)return!0;var _=r.current||x;return Ow(_,y,d,_==="h"?w:S)},[]),l=g.useCallback(function(d){var y=d;if(!(!Hn.length||Hn[Hn.length-1]!==o)){var f="deltaY"in y?$l(y):oi(y),m=t.current.filter(function(x){return x.name===y.type&&(x.target===y.target||y.target===x.shadowParent)&&Rw(x.delta,f)})[0];if(m&&m.should){y.cancelable&&y.preventDefault();return}if(!m){var w=(s.current.shards||[]).map(zl).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=g.useCallback(function(d,y,f,m){var w={name:d,delta:y,target:f,should:m,shadowParent:Lw(f)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),p=g.useCallback(function(d){n.current=oi(d),r.current=void 0},[]),u=g.useCallback(function(d){c(d.type,$l(d),d.target,a(d,e.lockRef.current))},[]),v=g.useCallback(function(d){c(d.type,oi(d),d.target,a(d,e.lockRef.current))},[]);g.useEffect(function(){return Hn.push(o),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:v}),document.addEventListener("wheel",l,Vn),document.addEventListener("touchmove",l,Vn),document.addEventListener("touchstart",p,Vn),function(){Hn=Hn.filter(function(d){return d!==o}),document.removeEventListener("wheel",l,Vn),document.removeEventListener("touchmove",l,Vn),document.removeEventListener("touchstart",p,Vn)}},[]);var b=e.removeScrollBar,h=e.inert;return g.createElement(g.Fragment,null,h?g.createElement(o,{styles:_w(i)}):null,b?g.createElement(Is,{gapMode:e.gapMode}):null)}function Lw(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Nw=Ps(rf,Dw);var lf=g.forwardRef(function(e,t){return g.createElement(no,ft({},e,{ref:t,sideCar:Nw}))});lf.classNames=no.classNames;function Bl(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ns(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function jl(e,t){return["mouse","pen"].includes(e)}function Fw(e){return"nativeEvent"in e}function $w(e){return e.matches("html,body")}function Vl(e){return(e==null?void 0:e.ownerDocument)||document}function Oo(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 hr(e){return"composedPath"in e?e.composedPath()[0]:e.target}const zw="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Bw(e){return yt(e)&&e.matches(zw)}const cf={...kr},jw=cf.useInsertionEffect,Vw=jw||(e=>e());function Wn(e){const t=g.useRef(()=>{});return Vw(()=>{t.current=e}),g.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 ds=typeof document<"u"?g.useLayoutEffect:g.useEffect;let Hl=!1,Hw=0;const Wl=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Hw++;function Ww(){const[e,t]=g.useState(()=>Hl?Wl():void 0);return ds(()=>{e==null&&t(Wl())},[]),g.useEffect(()=>{Hl=!0},[]),e}const Gw=cf.useId,uf=Gw||Ww;function Uw(){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 Yw=g.createContext(null),qw=g.createContext(null),df=()=>{var e;return((e=g.useContext(Yw))==null?void 0:e.id)||null},ff=()=>g.useContext(qw);function Xw(e){return"data-floating-ui-"+e}function Ro(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 Kw="data-floating-ui-focusable";function Gl(e){return yt(e.target)&&e.target.tagName==="BUTTON"}function Ul(e){return Bw(e)}function Zw(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=g.useRef(),v=g.useRef(!1),b=g.useMemo(()=>({onPointerDown(h){u.current=h.pointerType},onMouseDown(h){const d=u.current;h.button===0&&a!=="click"&&(jl(d)&&c||(n&&l&&(!i.current.openEvent||i.current.openEvent.type==="mousedown")?r(!1,h.nativeEvent,"click"):(h.preventDefault(),r(!0,h.nativeEvent,"click"))))},onClick(h){const d=u.current;if(a==="mousedown"&&u.current){u.current=void 0;return}jl(d)&&c||(n&&l&&(!i.current.openEvent||i.current.openEvent.type==="click")?r(!1,h.nativeEvent,"click"):r(!0,h.nativeEvent,"click"))},onKeyDown(h){u.current=void 0,!(h.defaultPrevented||!p||Gl(h))&&(h.key===" "&&!Ul(o)&&(h.preventDefault(),v.current=!0),h.key==="Enter"&&r(!(n&&l),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!p||Gl(h)||Ul(o)||h.key===" "&&v.current&&(v.current=!1,r(!(n&&l),h.nativeEvent,"click"))}}),[i,o,a,c,p,r,n,l]);return g.useMemo(()=>s?{reference:b}:{},[s,b])}const Jw={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Qw={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Yl=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 eS(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:b,capture:h}=t,d=ff(),y=Wn(typeof l=="function"?l:()=>!1),f=typeof l=="function"?y:l,m=g.useRef(!1),w=g.useRef(!1),{escapeKey:S,outsidePress:x}=Yl(b),{escapeKey:T,outsidePress:A}=Yl(h),k=Wn(N=>{var V;if(!n||!s||!a||N.key!=="Escape")return;const $=(V=o.current.floatingContext)==null?void 0:V.nodeId,j=d?Ro(d.nodesRef.current,$):[];if(!S&&(N.stopPropagation(),j.length>0)){let U=!0;if(j.forEach(J=>{var ge;if((ge=J.context)!=null&&ge.open&&!J.context.dataRef.current.__escapeKeyBubbles){U=!1;return}}),!U)return}r(!1,Fw(N)?N.nativeEvent:N,"escape-key")}),_=Wn(N=>{var V;const $=()=>{var j;k(N),(j=hr(N))==null||j.removeEventListener("keydown",$)};(V=hr(N))==null||V.addEventListener("keydown",$)}),z=Wn(N=>{var V;const $=m.current;m.current=!1;const j=w.current;if(w.current=!1,c==="click"&&j||$||typeof f=="function"&&!f(N))return;const U=hr(N),J="["+Xw("inert")+"]",ge=Vl(i.floating).querySelectorAll(J);let re=Be(U)?U:null;for(;re&&!vn(re);){const oe=nn(re);if(vn(oe)||!Be(oe))break;re=oe}if(ge.length&&Be(U)&&!$w(U)&&!Bl(U,i.floating)&&Array.from(ge).every(oe=>!Bl(re,oe)))return;if(yt(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&&kt(U).direction==="rtl"&&(Z=N.offsetX<=U.offsetWidth-U.clientWidth),Z||oe&&N.offsetY>U.clientHeight)return}const Re=(V=o.current.floatingContext)==null?void 0:V.nodeId,ve=d&&Ro(d.nodesRef.current,Re).some(oe=>{var Se;return Oo(N,(Se=oe.context)==null?void 0:Se.elements.floating)});if(Oo(N,i.floating)||Oo(N,i.domReference)||ve)return;const Ae=d?Ro(d.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=Wn(N=>{var V;const $=()=>{var j;z(N),(j=hr(N))==null||j.removeEventListener(c,$)};(V=hr(N))==null||V.addEventListener(c,$)});g.useEffect(()=>{if(!n||!s)return;o.current.__escapeKeyBubbles=S,o.current.__outsidePressBubbles=x;function N(j){r(!1,j,"ancestor-scroll")}const V=Vl(i.floating);a&&V.addEventListener("keydown",T?_:k,T),f&&V.addEventListener(c,A?R:z,A);let $=[];return v&&(Be(i.domReference)&&($=hn(i.domReference)),Be(i.floating)&&($=$.concat(hn(i.floating))),!Be(i.reference)&&i.reference&&i.reference.contextElement&&($=$.concat(hn(i.reference.contextElement)))),$=$.filter(j=>{var U;return j!==((U=V.defaultView)==null?void 0:U.visualViewport)}),$.forEach(j=>{j.addEventListener("scroll",N,{passive:!0})}),()=>{a&&V.removeEventListener("keydown",T?_:k,T),f&&V.removeEventListener(c,A?R:z,A),$.forEach(j=>{j.removeEventListener("scroll",N)})}},[o,i,a,f,c,n,r,v,s,S,x,k,T,_,z,A,R]),g.useEffect(()=>{m.current=!1},[f,c]);const I=g.useMemo(()=>({onKeyDown:k,[Jw[u]]:N=>{p&&r(!1,N.nativeEvent,"reference-press")}}),[k,r,p,u]),L=g.useMemo(()=>({onKeyDown:k,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[Qw[c]]:()=>{m.current=!0}}),[k,c]);return g.useMemo(()=>s?{reference:I,floating:L}:{},[s,I,L])}function tS(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=uf(),o=g.useRef({}),[s]=g.useState(()=>Uw()),a=df()!=null,[l,c]=g.useState(r.reference),p=Wn((b,h,d)=>{o.current.openEvent=b?h:void 0,s.emit("openchange",{open:b,event:h,reason:d,nested:a}),n==null||n(b,h,d)}),u=g.useMemo(()=>({setPositionReference:c}),[]),v=g.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return g.useMemo(()=>({dataRef:o,open:t,onOpenChange:p,elements:v,events:s,floatingId:i,refs:u}),[t,p,v,s,i,u])}function pf(e){e===void 0&&(e={});const{nodeId:t}=e,n=tS({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=g.useState(null),[a,l]=g.useState(null),p=(i==null?void 0:i.reference)||o,u=g.useRef(null),v=ff();ds(()=>{p&&(u.current=p)},[p]);const b=od({...e,elements:{...i,...a&&{reference:a}}}),h=g.useCallback(w=>{const S=Be(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;l(S),b.refs.setReference(S)},[b.refs]),d=g.useCallback(w=>{(Be(w)||w===null)&&(u.current=w,s(w)),(Be(b.refs.reference.current)||b.refs.reference.current===null||w!==null&&!Be(w))&&b.refs.setReference(w)},[b.refs]),y=g.useMemo(()=>({...b.refs,setReference:d,setPositionReference:h,domReference:u}),[b.refs,d,h]),f=g.useMemo(()=>({...b.elements,domReference:p}),[b.elements,p]),m=g.useMemo(()=>({...b,...r,refs:y,elements:f,nodeId:t}),[b,y,f,t,r]);return ds(()=>{r.dataRef.current.floatingContext=m;const w=v==null?void 0:v.nodesRef.current.find(S=>S.id===t);w&&(w.context=m)}),g.useMemo(()=>({...b,context:m,refs:y,elements:f}),[b,y,f,m])}const ql="active",Xl="selected";function _o(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[ql]:s,[Xl]:a,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[Kw]:""},...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&&[ql,Xl].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,b=arguments.length,h=new Array(b),d=0;d<b;d++)h[d]=arguments[d];return(v=r.get(c))==null?void 0:v.map(y=>y(...h)).find(y=>y!==void 0)}}}else s[c]=p}),s),{})}}function nS(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=g.useCallback(a=>_o(a,e,"reference"),t),o=g.useCallback(a=>_o(a,e,"floating"),n),s=g.useCallback(a=>_o(a,e,"item"),r);return g.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}const rS=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function iS(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:s="dialog"}=t,a=(n=rS.get(s))!=null?n:s,l=uf(),p=df()!=null,u=g.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=g.useMemo(()=>{const h={id:i,...a&&{role:a}};return a==="tooltip"||s==="label"?h:{...h,...a==="menu"&&{"aria-labelledby":l}}},[a,i,l,s]),b=g.useCallback(h=>{let{active:d,selected:y}=h;const f={role:"option",...d&&{id:i+"-option"}};switch(s){case"select":return{...f,"aria-selected":d&&y};case"combobox":return{...f,...d&&{"aria-selected":!0}}}return{}},[i,s]);return g.useMemo(()=>o?{reference:u,floating:v,item:b}:{},[o,u,v,b])}var mf=Object.defineProperty,oS=Object.defineProperties,sS=Object.getOwnPropertyDescriptors,Di=Object.getOwnPropertySymbols,hf=Object.prototype.hasOwnProperty,gf=Object.prototype.propertyIsEnumerable,Kl=(e,t,n)=>t in e?mf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D=(e,t)=>{for(var n in t||(t={}))hf.call(t,n)&&Kl(e,n,t[n]);if(Di)for(var n of Di(t))gf.call(t,n)&&Kl(e,n,t[n]);return e},G=(e,t)=>oS(e,sS(t)),aS=(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)hf.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Di)for(var r of Di(e))t.indexOf(r)<0&&gf.call(e,r)&&(n[r]=e[r]);return n},sn=(e,t)=>{for(var n in t)mf(e,n,{get:t[n],enumerable:!0})},Rn=(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 bf(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 lS={borderWidths:{md:"1px"}},Li=[5,10,20,35,50,65,80,95,98],vf=[...Li],fs=[...Li];vf[4]=40;fs[4]=60;var cS={blue:{h:213,s:100,l:Li},gray:{h:220,s:10,l:Li},green:{h:141,s:90,l:vf},red:{h:9,s:90,l:fs},yellow:{h:50,s:90,l:fs}},We={};for(let[e,{h:t,s:n,l:r}]of Object.entries(cS))We[e]=Object.fromEntries(r.map((i,o)=>[`${(o+1)*100}`,`hsl(${t} ${n}% ${i}%)`]));var uS=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"}),dS={md:"8px",lg:"20px",round:"50%"},B=e=>`var(--fr-colors-${e})`,fS={negative:{100:B("red-100"),200:B("red-200"),300:B("red-300"),400:B("red-400"),500:B("red-500"),600:B("red-600"),700:B("red-700"),800:B("red-800"),900:B("red-900"),background:B("negative-500"),border:B("negative-500"),foreground:B("white"),surface:B("negative-500"),active:{background:B("negative-400"),border:B("negative-400"),foreground:B("white"),surface:B("negative-400")},focus:{background:B("negative-500"),border:B("negative-500"),foreground:B("white"),surface:B("negative-500")},hover:{background:B("negative-400"),border:B("negative-400"),foreground:B("white"),surface:B("negative-400")}},neutral:{100:B("gray-100"),200:B("gray-200"),300:B("gray-300"),400:B("gray-400"),500:B("gray-500"),600:B("gray-600"),700:B("gray-700"),800:B("gray-800"),900:B("gray-900"),background:B("white"),border:B("neutral-800"),foreground:B("black"),surface:B("neutral-700"),active:{background:B("white"),border:B("neutral-900"),foreground:B("black"),surface:B("neutral-700")},focus:{background:B("white"),border:B("neutral-900"),foreground:B("black"),surface:B("neutral-700")},hover:{background:B("white"),border:B("neutral-900"),foreground:B("black"),surface:B("neutral-700")}},positive:{100:B("green-100"),200:B("green-200"),300:B("green-300"),400:B("green-400"),500:B("green-500"),600:B("green-600"),700:B("green-700"),800:B("green-800"),900:B("green-900"),background:B("positive-500"),border:B("positive-500"),foreground:B("white"),surface:B("positive-500"),active:{background:B("positive-400"),border:B("positive-400"),foreground:B("white"),surface:B("positive-400")},focus:{background:B("positive-500"),border:B("positive-500"),foreground:B("white"),surface:B("positive-500")},hover:{background:B("positive-400"),border:B("positive-400"),foreground:B("white"),surface:B("positive-400")}},primary:{100:B("blue-100"),200:B("blue-200"),300:B("blue-300"),400:B("blue-400"),500:B("blue-500"),600:B("blue-600"),700:B("blue-700"),800:B("blue-800"),900:B("blue-900"),background:B("primary-500"),border:B("primary-500"),foreground:B("white"),surface:B("primary-500"),active:{background:B("primary-400"),border:B("primary-400"),foreground:B("white"),surface:B("primary-400")},focus:{background:B("primary-500"),border:B("primary-500"),foreground:B("white"),surface:B("primary-500")},hover:{background:B("primary-400"),border:B("primary-400"),foreground:B("white"),surface:B("primary-400")}},secondary:{100:B("gray-100"),200:B("gray-200"),300:B("gray-300"),400:B("gray-400"),500:B("gray-500"),600:B("gray-600"),700:B("gray-700"),800:B("gray-800"),900:B("gray-900"),background:B("white"),border:B("secondary-800"),foreground:B("black"),surface:B("secondary-900"),active:{background:B("secondary-900"),border:B("secondary-800"),foreground:B("black"),surface:B("secondary-800")},focus:{background:B("secondary-900"),border:B("secondary-800"),foreground:B("black"),surface:B("secondary-900")},hover:{background:B("secondary-900"),border:B("secondary-800"),foreground:B("black"),surface:B("secondary-800")}}},pS={md:"0px 4px 20px rgba(0, 0, 0, 0.1)"},mS="px",hS=e=>typeof e=="number"?`${4*e}${mS}`:e,gS=[-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"],bS=Object.fromEntries(gS.map(e=>[e,hS(e)])),vS={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"}},yf=G(D(G(D({},lS),{colors:D(D({},uS),fS)}),vS),{radii:dS,shadows:pS,space:bS});function ua(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,ua(s,o,n)):r[o]=s,r},{})}function wf(e){let t=ua(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 Sf(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]=Sf(i,`${t}-${r}`):n[r]=`var(${t}-${o})`}),n}var yS=wf(yf),Oe=Sf(yf),wS=new Set(["alt","size","src"]),SS=nu.all.filter(e=>e.indexOf("-")!=0&&!wS.has(e)).map(e=>[e.replace(/-([a-z])/g,(t,n)=>n.toUpperCase()),null]),xS=Object.fromEntries(SS),si=ua(Oe.colors),CS={color:si,backgroundColor:si,borderColor:si,border:D(D({},Oe.borderWidths),si),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},ES=D(D({},xS),CS),kS={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"]},TS=new Set(["active","disabled","focus","focusVisible","focusWithin","hover"]);function AS(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 Zl=new Map(Object.entries(ES).map(([e,t])=>[e,AS(t)])),PS=new Map(Object.entries(kS).map(([e,t])=>[e,new Set(t)])),IS=new Set(["height","width"]),OS=new Set(["canvas","embed","iframe","img","input","object","video"]);function Jl(e){let[t,n]=e.split(":");return[t,TS.has(n)?n:null]}function RS(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]=Jl(o),c=PS.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]=Jl(o),c=Zl.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"||!OS.has(t)||!IS.has(a))&&delete n[o]}}),Object.keys(n).forEach(o=>{let s=o.substring(1);o.indexOf("_")===0&&Zl.has(s)&&(n[s]=n[o],delete n[o])}),{cssFromProps:r,unmatchedProps:n}}function _S(){if(typeof window>"u"){let{JSDOM:e}=aS("jsdom");return new e("<!DOCTYPE html>").window}return window}function MS(e){return e?{__html:ig(_S()).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 DS(e){return e&&`fr-${e}`}function xf(e){return e&&(Array.isArray(e)?e.filter(t=>t!=null).map(t=>xf(t)).join(" "):DS(e))}function LS(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}=RS(l,c),v=xf(a),b=o||v?Dh(o,v):void 0,h=[{boxSizing:"border-box"},p,s];return typeof i=="string"?C(c,G(D({className:b,css:h},u),{ref:t,dangerouslySetInnerHTML:MS(i)})):C(c,G(D({className:b,css:h},u),{ref:t,children:i}))}var ae=g.forwardRef(LS),wt={};sn(wt,{Link:()=>lx,Plain:()=>cx,Primary:()=>sx,Secondary:()=>ax});var Fe={};sn(Fe,{Body1:()=>JS,Body2:()=>QS,Caption:()=>ex,Display1:()=>US,Display2:()=>YS,H1:()=>qS,H2:()=>XS,H3:()=>KS,H4:()=>ZS});var Cf={};sn(Cf,{Body1:()=>VS,Body2:()=>HS,Caption:()=>WS,Display1:()=>NS,Display2:()=>FS,H1:()=>$S,H2:()=>zS,H3:()=>BS,H4:()=>jS});var an={color:"neutral.foreground",fontFamily:"default",margin:"0"},NS=G(D({},an),{fontSize:"5xl",fontWeight:"bold",lineHeight:"4xl"}),FS=G(D({},an),{fontSize:"4xl",fontWeight:"bold",lineHeight:"3xl"}),$S=G(D({},an),{fontSize:"3xl",fontWeight:"demibold",lineHeight:"2xl"}),zS=G(D({},an),{fontSize:"2xl",fontWeight:"demibold",lineHeight:"xl"}),BS=G(D({},an),{fontSize:"xl",fontWeight:"demibold",lineHeight:"lg"}),jS=G(D({},an),{fontSize:"md",fontWeight:"demibold",lineHeight:"md"}),VS=G(D({},an),{fontSize:"md",fontWeight:"regular",lineHeight:"md"}),HS=G(D({},an),{fontSize:"sm",fontWeight:"regular",lineHeight:"sm"}),WS=G(D({},an),{fontSize:"xs",fontWeight:"regular",lineHeight:"xs"}),GS=["Display1","Display2","H1","H2","H3","H4","Body1","Body2","Caption"],ln=Object.fromEntries(GS.map(e=>{let t=["H1","H2","H3","H4"].includes(e)?e.toLowerCase():"span",n=g.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},Cf[e]),l),{ref:i,children:a}))});return n.displayName=`Text.${e}`,[e,n]})),US=ln.Display1,YS=ln.Display2,qS=ln.H1,XS=ln.H2,KS=ln.H3,ZS=ln.H4,JS=ln.Body1,QS=ln.Body2,ex=ln.Caption,Ef={};sn(Ef,{Link:()=>rx,Plain:()=>ix,Primary:()=>tx,Secondary:()=>nx,loadingCSSStyle:()=>kf});var ro={borderWidth:"md",borderRadius:"md",borderStyle:"solid","cursor:disabled":"not-allowed",display:"flex",gap:"2",padding:"2 4",fontFamily:"inherit"},tx=G(D({},ro),{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"}),nx=G(D({},ro),{backgroundColor:"secondary.background",borderColor:"secondary.border",color:"secondary.foreground","backgroundColor:hover":"secondary.hover.background","backgroundColor:disabled":"secondary.background","opacity:disabled":"0.6"}),rx=G(D({},ro),{backgroundColor:"transparent",borderColor:"transparent",color:"primary.surface","color:hover":"primary.hover.surface"}),ix=G(D({},ro),{backgroundColor:"transparent",borderColor:"transparent",color:"neutral.foreground"}),ox=rn({from:{transform:"rotate(0turn)"},to:{transform:"rotate(1turn)"}}),kf={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:ox+" 1s ease infinite"}};function io(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]},Ef[s]),{css:D(D({},(l=a.css)!=null?l:{}),a.loading?kf:{})}),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 sx(e){var t=e,{children:n}=t,r=ie(t,["children"]);return C(io,G(D({},r),{variant:"Primary",children:n}))}function ax(e){var t=e,{children:n}=t,r=ie(t,["children"]);return C(io,G(D({},r),{variant:"Secondary",children:n}))}function lx(e){var t=e,{children:n}=t,r=ie(t,["children"]);return C(io,G(D({},r),{variant:"Link",children:n}))}function cx(e){var t=e,{children:n}=t,r=ie(t,["children"]);return C(io,G(D({},r),{variant:"Plain",children:n}))}var Ee={};sn(Ee,{Column:()=>dx,Row:()=>ux});var ux=g.forwardRef((e,t)=>C(ae,G(D({display:"flex",flexDirection:"row"},e),{ref:t}))),dx=g.forwardRef((e,t)=>C(ae,G(D({display:"flex",flexDirection:"column"},e),{ref:t})));function fx(e){var t=e,{dismissible:n,flowId:r,part:i}=t,o=ie(t,["dismissible","flowId","part"]);return C(Mn,G(D({as:null,flowId:r},o),{children:({handleDismiss:s,handlePrimary:a,handleSecondary:l,parentProps:{containerProps:c},step:p})=>{var u,v,b,h,d;let y=(u=p.props)!=null?u:{},f=(b=(v=p.primaryButton)==null?void 0:v.title)!=null?b:p.primaryButtonTitle,m=(d=(h=p.secondaryButton)==null?void 0:h.title)!=null?d: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:m,onClick:l}),C(ue.Primary,{disabled:w,title:f,onClick:a}),n&&C(ue.Dismiss,{onClick:s})]}))}}))}var px={};sn(px,{Carousel:()=>Ex,Collapsible:()=>Mf,CollapsibleStep:()=>Af});var mx={};sn(mx,{Bar:()=>da,Dots:()=>hx,Fraction:()=>Tf,Segments:()=>gx});function da(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 hx(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 Tf(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 gx(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 bx(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 vx(){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 yx(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(vx,{})})}))}function oo(e,{onPrimary:t,onSecondary:n}={}){let{navigate:r}=g.useContext(ir),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:g.useCallback((o,s,a=!0)=>Rn(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:g.useCallback((o,s)=>Rn(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 wx({onPrimary:e,onSecondary:t,step:n}){var r,i;let{handlePrimary:o,handleSecondary:s}=oo(n,{onPrimary:e,onSecondary:t}),{blocked:a,completed:l,skipped:c}=n.$state,p=l||c||!a?C(yx,{checked:l||c,marginLeft:"auto"}):C(ae,{as:bx,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 Sx(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 xx(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=rn`
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
`;function Cx({flow:e,sort:t,onPrimary:n,onSecondary:r}){var i,o;let[s,a]=g.useState(),[l]=g.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(f=>!f.$state.completed&&!f.$state.skipped))==null?void 0:i.order)!=null?o:0}),[c,p]=zs(l),[u,v]=g.useState(),[b,h]=g.useState();g.useLayoutEffect(()=>{p&&(u==null&&v(p.canScrollNext()),b==null&&h(p.canScrollPrev()),p.on("select",()=>{v(p.canScrollNext()),h(p.canScrollPrev())}))},[p]),g.useEffect(()=>{if(!s){let f=Array.from(e.steps.values()),m=f.filter(S=>S.$state.completed||S.$state.skipped).sort((S,x)=>S.order-x.order),w=f.filter(S=>!S.$state.completed&&!S.$state.skipped).sort((S,x)=>S.order-x.order);a(t==="completed-last"?[...w,...m].map(S=>S.id):f.map(S=>S.id))}},[]);let d=e.getNumberOfCompletedSteps(),y=e.getNumberOfAvailableSteps();return s?ce(Gi,{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:[d,"/",y]}),C(da,{current:d,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(f=>f.$state.visible).sort((f,m)=>s.indexOf(f.id)-s.indexOf(m.id)).map(f=>C(wx,{onPrimary:n,onSecondary:r,step:f},f.id))}),b&&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(wt.Plain,{border:"1px solid neutral.border",borderRadius:"100%",boxShadow:"md",backgroundColor:"neutral.background",color:"primary.surface",onClick:()=>p.scrollPrev(),padding:"2",children:C(xx,{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(wt.Plain,{border:"1px solid neutral.border",borderRadius:"100%",boxShadow:"md",backgroundColor:"neutral.background",color:"primary.surface",onClick:()=>p.scrollNext(),padding:"2",children:C(Sx,{height:"24px",width:"24px"})})})]})]}):null}function Ex(e){var t=ie(e,[]);return C(Mn,G(D({as:ue,borderWidth:1,containerType:"inline-size",p:"4",part:"carousel"},t),{children:n=>C(Cx,D(D({},t),n))}))}var Af={};sn(Af,{Content:()=>Pf,Root:()=>If,Trigger:()=>Of});function kx(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 Tx=rn`
  from {
    height: 0;
    opacity: 0;
  }
  to {
    height: var(--radix-collapsible-content-height);
    opacity: 1;
  }
`,Ax=rn`
  from {
    height: var(--radix-collapsible-content-height);
    opacity: 1;
  }
  to {
    height: 0;
    opacity: 0;
  }
`,Px=()=>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 Ix({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(Px,{})})})}function Pf({children:e}){return C(vb,{asChild:!0,children:ce(Ee.Column,{css:{'&[data-state="open"]':{animation:`${Tx} 300ms ease-out`},'&[data-state="closed"]':{animation:`${Ax} 300ms ease-out`},overflow:"hidden"},gap:5,part:"collapsible-content",children:[C(ae,{}),e]})})}function If(e){var t=e,{children:n,disabled:r=!1,onOpenChange:i=()=>{},open:o=!1}=t,s=ie(t,["children","disabled","onOpenChange","open"]);return C(gb,{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 Of({isCompleted:e,isBlocked:t,title:n}){return C(bb,{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(Ix,{checked:e}),C(Fe.Body2,{fontWeight:"demibold",userSelect:"none",part:"collapsible-title",children:n})]}),C(ae,{as:kx,color:"neutral.100",css:{"& path":{vectorEffect:"non-scaling-stroke"}},display:"block",height:"16px",order:2,part:"collapsible-step-icon",width:"16px"})]})})}var Rf=g.createContext({onPrimary:()=>{},onSecondary:()=>{},openStepId:null,setOpenStepId:()=>{},stepTypes:{}});function _f({handlePrimary:e,handleSecondary:t,open:n,onOpenChange:r,step:i}){var o,s,a,l,c,p;let{$state:{blocked:u,completed:v,skipped:b},subtitle:h,title:d}=i,y=(s=(o=i.primaryButton)==null?void 0:o.title)!=null?s:i.primaryButtonTitle,f=(l=(a=i.secondaryButton)==null?void 0:a.title)!=null?l:i.secondaryButtonTitle,m=(c=i.props)!=null?c:{},w=!!u;return ce(If,G(D({open:n,onOpenChange:r},m),{children:[C(Of,{isBlocked:i.$state.blocked,isCompleted:v||b,title:d}),ce(Pf,{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:h}),ce(Ee.Row,{gap:3,part:"collapsible-footer",children:[C(ue.Secondary,{title:f,onClick:t}),C(ue.Primary,{disabled:w,title:y,onClick:e})]})]})]}))}var Ox={default:_f};function Rx(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}=g.useContext(Rf),{handlePrimary:u,handleSecondary:v}=oo(r,{onPrimary:s,onSecondary:a}),b=(l??n.getCurrentStep().id)===r.id,h=(o=p[r.type])!=null?o:_f;function d(y){return Rn(this,null,function*(){c(y?r.id:""),y&&!r.$state.completed&&(yield r.start(),c(null))})}return C(h,G(D({flow:n,onOpenChange:d,open:b,step:r},i),{handlePrimary:u,handleSecondary:v}),r.id)}function Mf(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]=g.useState(null),u=D(D({},Ox),a);return C(Rf.Provider,{value:{openStepId:c,setOpenStepId:p,onPrimary:i,onSecondary:o,stepTypes:u},children:C(Mn,G(D({as:ue,borderWidth:"md",flowId:r,part:["checklist",s]},l),{children:v=>{var b=v,{flow:h,handleDismiss:d}=b,y=ie(b,["flow","handleDismiss"]);let f=Array.from(h.steps.entries()).filter(([,S])=>S.$state.visible===!0).map(([,S])=>C(Rx,G(D({flow:h,handleDismiss:d},y),{step:S}),S.id)),m=h.getNumberOfCompletedSteps(),w=h.getNumberOfAvailableSteps();return ce(Gi,{children:[ce(Ee.Column,{gap:2,children:[C(ue.Header,{dismissible:n,handleDismiss:d,part:"checklist-header",subtitle:h.subtitle,title:h.title}),ce(Ee.Row,{alignItems:"center",gap:2,children:[ce(Fe.Body2,{fontWeight:"demibold",children:[m,"/",w]}),C(da,{current:m,total:w,flexGrow:1})]})]}),f]})}}))})}var _x=new Set(["required","min","max","minLength","maxLength","pattern"]);function Mx({fieldComponent:e,control:t,fieldData:n,submit:r}){let i=qi();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])=>_x.has(a))),s=Eb({name:n.id,control:t,rules:o});return C(e,G(D({},s),{fieldData:n,formContext:i,submit:r}))}function Dx({fieldTypes:e,handleDismiss:t,handlePrimary:n,handleSecondary:r,parentProps:{dismissible:i},step:o}){var s,a,l,c,p;let{__readOnly:u}=g.useContext(ir),v=g.useMemo(()=>{var k;return(k=o.fields)==null?void 0:k.filter(_=>e[_.type]!=null&&_.id)},[o.fields,e]),b=Fb({delayError:2e3,mode:"onChange",defaultValues:v.reduce((k,_)=>{var z;return k[_.id]=(z=_.value)!=null?z:"",k},{})});g.useEffect(()=>{b.formState.isDirty||b.reset(v.reduce((k,_)=>{var z;return k[_.id]=(z=_.value)!=null?z:"",k},{}))},[v]);let[h,d]=g.useState(!1),y=[],{control:f,handleSubmit:m}=b,w=(s=o.props)!=null?s:{};function S(k,_){d(!0),n(_,k,u===!0).then(()=>d(!1))}v.forEach(k=>{e[k.type]!=null&&y.push(C(Mx,{control:f,fieldComponent:e[k.type],fieldData:k,submit:m(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||!b.formState.isValid);return g.useEffect(()=>{b.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(Sb,G(D({},b),{children:y})),ce(Ee.Row,{part:"form-step-footer",justifyContent:"flex-end",gap:3,children:[T&&C(wt.Secondary,{onClick:r,title:T}),C(wt.Primary,{disabled:A||h,onClick:m(S),title:x??"Submit",loading:h})]},`form-footer-${o.id}`)]}))}function Lx({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 Nx({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 Df={backgroundColor:"neutral.background",borderColor:"neutral.border",borderStyle:"solid",borderWidth:"md",borderRadius:"md"},ps=G(D({},Df),{px:"4",py:"2",display:"block",outline:"none",width:"100%"}),Lf={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 Br({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}:{}),ps),{"aria-invalid":!!l,value:(i=t.value)!=null?i:""});return ce(ae,{part:"field",children:[C(Nx,{id:o,required:!!n.required,children:s}),e(c),C(Lx,{error:l})]})}function fa(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 Fx=g.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(vv,{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:yv},Lf),{children:C(fa,{height:"14",width:"14"})}))})})]}));function $x(e){let{field:{onChange:t,value:n},fieldData:{options:r=[]}}=e,i=r.map(({label:o,value:s})=>C(Fx,{value:s,label:o},s));return C(Br,G(D({},e),{children:()=>C(bv,{value:n,onValueChange:t,asChild:!0,children:C(Ee.Column,{gap:2,part:"field-radio-group",children:i})})}))}function zx(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 Bx(e){let{field:{onChange:t,value:n},fieldData:{options:r=[]}}=e,[i,o]=g.useState([]);function s(a){let l=[];i.includes(a)?l=[...i.filter(c=>c!==a)]:l=[...i,a],o(l),t(l)}return C(Br,G(D({},e),{children:()=>C(Ee.Column,{gap:2,part:"field-select-multiple",children:r.map(({label:a,value:l})=>C(tf,{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(nf,{asChild:!0,children:C(ae,G(D({},Lf),{children:C(fa,{height:"14",width:"14"})}))})})]})},l))})}))}var jx=g.forwardRef(({label:e,value:t},n)=>C(vw,{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(yw,{asChild:!0,children:C(Fe.Body2,{part:"field-select-option-label",children:e})})})}));function Vx(e){let{field:{onChange:t,value:n},fieldData:{options:r=[],placeholder:i}}=e,o=r.map(({label:s,value:a})=>C(jx,{value:a,label:s},a));return e.fieldData.multiple?C(Bx,D({},e)):C(Br,G(D({},e),{children:()=>ce(dw,{value:n,onValueChange:t,children:[C(fw,{asChild:!0,children:ce(Fe.Body2,G(D({},ps),{alignItems:"center",display:"flex",justifyContent:"space-between",part:"field-select",children:[C(pw,{placeholder:i??"Select one"}),C(mw,{children:C(ae,{as:zx,color:"neutral.100",display:"block",height:"24px",part:"field-select-icon",width:"24px"})})]}))}),C(hw,{children:C(gw,{position:"popper",sideOffset:4,asChild:!0,children:C(ae,G(D({},ps),{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(bw,{children:o})}))})})]})}))}function Hx(e){return C(Br,G(D({},e),{children:t=>C(Fe.Body2,D({as:"input",part:"field-text",type:"text"},t))}))}function Wx(e){return C(Br,G(D({},e),{children:t=>C(Fe.Body2,D({as:"textarea",part:"field-textarea"},t))}))}function Gx(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(tf,{defaultChecked:!0,onCheckedChange:t,value:n,checked:n===!0,asChild:!0,children:C(ae,G(D({},Df),{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(nf,{asChild:!0,children:C(ae,{width:"20px",height:"20px",display:"flex",alignItems:"center",justifyContent:"center",children:C(fa,{height:"14",fill:"currentColor"})})})}))}),C(Fe.Body2,{part:"field-checkbox-label",as:"label",htmlFor:o,children:i})]})}var Ux={checkbox:Gx,radio:$x,select:Vx,text:Hx,textarea:Wx};function ms(e){var t=e,{fieldTypes:n={},flowId:r,part:i}=t,o=ie(t,["fieldTypes","flowId","part"]);let s=Object.assign({},Ux,n);return C(Mn,G(D({flowId:r,part:["form",i]},o),{children:a=>C(Dx,D({fieldTypes:s},a))}))}var Yx={};sn(Yx,{NPS:()=>hs});function qx({field:e,fieldData:t,submit:n}){var r,i;let o=[...Array(11)].map((s,a)=>{let l=e.value===a?wt.Primary:wt.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 hs(e){var t=e,{as:n=Ye,flowId:r,fieldTypes:i,part:o}=t,s=ie(t,["as","flowId","fieldTypes","part"]);let{flow:a}=pa(r);return C(ms,D({alignSelf:"end",as:n,flowId:r,fieldTypes:D({nps:qx},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 Xx(e,t){var n=e,{children:r,part:i}=n,o=ie(n,["children","part"]);return C(lf,{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 Nf=g.forwardRef(Xx),Kx=rn({"0%":{opacity:.5,transform:"scale(0.5)"},"50%":{opacity:0,transform:"scale(1)"},"100%":{opacity:0,transform:"scale(1)"}});function Zx(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 ${Kx}`,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 Jx({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 Qx(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 e0(e){var t=e,{anchor:n,part:r,style:i={}}=t,o=ie(t,["anchor","part","style"]);let[s,a]=g.useState({maxX:0,maxY:0,radius:0,x1:0,x2:0,y1:0,y2:0}),{refs:l}=pf({middleware:[{name:"clipPath",fn({elements:c,rects:p}){return a({maxX:c.floating.clientWidth,maxY:c.floating.clientHeight,radius:Qx(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:oa});return g.useEffect(()=>{let c=document.querySelector(n);c!=null?l.setReference(c):console.debug(`[frigade] Spotlight: No anchor found for selector: ${n}`)},[n]),C(Nf,D({part:["spotlight",r],ref:l.setFloating,style:D({clipPath:Jx(s)},i)},o))}function t0({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 n0(e){switch(e){case"after":return"end";case"before":return"start";default:return e}}function r0({align:e,alignOffset:t,anchor:n,onOpenChange:r=()=>{},open:i,side:o,sideOffset:s}){let a=`${o}-${n0(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}=pf({middleware:[sd(l),ld(),ad()],onOpenChange:r,open:i,placement:a,whileElementsMounted:oa}),b=Zw(c),h=eS(c,{outsidePress:!1}),d=iS(c),{getFloatingProps:y,getReferenceProps:f}=nS([b,h,d]);g.useEffect(()=>{let w=document.querySelector(n);w!=null?v.setReference(w):console.debug(`[frigade] Hint: No anchor found for selector: ${n}`)},[n]);let m=u.split("-");return e==="before"?m[1]=m[1]==="end"?"after":"before":e==="after"&&(m[1]=m[1]==="start"?"before":"after"),{context:c,getFloatingProps:y,getReferenceProps:f,floatingStyles:p,placement:m.join("-"),refs:v}}function i0(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:b=!1,style:h={}}=t,d=ie(t,["align","alignOffset","anchor","children","defaultOpen","modal","onOpenChange","open","part","side","sideOffset","spotlight","style"]);let[y,f]=g.useState(s),m=c??y,{getFloatingProps:w,getReferenceProps:S,floatingStyles:x,placement:T,refs:A}=r0({align:n,alignOffset:r,anchor:i,onOpenChange:R=>{l(R),c==null&&f(R)},open:m,side:u,sideOffset:v}),[k,_]=T.split("-"),z=S();return ce(Gi,{children:[b&&m&&C(e0,{anchor:i}),a&&!b&&m&&C(Nf,{lockScroll:!0}),ce(ae,G(D(D({part:["hint",p],ref:A.setFloating,style:D(D({},x),h)},w()),d),{children:[m&&o,C(Zx,G(D({},z),{position:"absolute",style:t0({align:_,side:k})}))]}))]})}var o0=rn`
  from {
    opacity: 0;
  }
  25% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
`;function ec(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:b,spotlight:h,step:d}=t,y=ie(t,["align","alignOffset","defaultOpen","dismissible","flow","handleDismiss","modal","onPrimary","onSecondary","part","side","sideOffset","spotlight","step"]),f,m,w,S,x;let{handlePrimary:T,handleSecondary:A}=oo(d,{onPrimary:c,onSecondary:p}),k=(m=(f=d.primaryButton)==null?void 0:f.title)!=null?m:d.primaryButtonTitle,_=(S=(w=d.secondaryButton)==null?void 0:w.title)!=null?S:d.secondaryButtonTitle,z=!!d.$state.blocked;return C(i0,G(D({align:n,alignOffset:r,anchor:d.selector,"data-step-id":d.id,defaultOpen:i,modal:l,part:u,side:v,sideOffset:b,spotlight:h},y),{children:ce(ue,{animation:`${o0} 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=d.videoUri)!=null?x:d.imageUri,transform:"translate3d(0, 0, 1px)",type:d.videoUri?"video":"image"}),C(ue.Header,{css:{".fr-dismiss":{position:"absolute",right:"12px",top:"12px"}},dismissible:o,handleDismiss:a,subtitle:d.subtitle,title:d.title}),ce(ue.Footer,{children:[s.getNumberOfAvailableSteps()>1&&C(Tf,{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 s0(e,t,n){let[r,i]=g.useState(!1),o=g.useRef();return g.useEffect(()=>{o.current=document.querySelector(t),i(!0)},[]),r?Qn.createPortal(e,o.current,n):null}function a0(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:b,zIndex:h=9999}=t,d=ie(t,["align","alignOffset","as","defaultOpen","dismissible","flowId","modal","part","sequential","side","sideOffset","spotlight","zIndex"]);let{onDismiss:y,onPrimary:f,onSecondary:m}=d;return s0(C(Mn,G(D({as:i,flowId:a,part:"tour"},d),{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:f,onSecondary:m,part:c,side:u,sideOffset:v,spotlight:b,step:T,zIndex:(_=(k=(A=T.props)==null?void 0:A.zIndex)!=null?k:x==null?void 0:x.zIndex)!=null?_:h},(z=T.props)!=null?z:{});return p?C(ec,D({defaultOpen:o??!0},R)):Array.from(w.steps.values()).filter(I=>{let{blocked:L,completed:N,skipped:V,visible:$}=I.$state;return!L&&!N&&!V&&$}).map(I=>{var L,N,V,$,j;function U(Re){return Rn(this,null,function*(){return(yield y==null?void 0:y(w,Re))===!1?(Re.preventDefault(),!1):(I.skip(),!0)})}let J=b&&I.id===T.id,ge=(V=(N=(L=I.props)==null?void 0:L.zIndex)!=null?N:x==null?void 0:x.zIndex)!=null?V:h,re=D({align:n,alignOffset:r,dismissible:s,flow:w,handleDismiss:U,onPrimary:f,onSecondary:m,part:c,side:u,sideOffset:v,spotlight:b,zIndex:ge},($=I.props)!=null?$:{});return C(ec,D({css:{"&:has([aria-expanded=true])":{zIndex:Number(ge)+2},".fr-overlay":{zIndex:Number(ge)+1},".fr-progress-fraction":{display:"none"}},defaultOpen:(j=o||J)!=null?j:!1,step:I},re),`${I.id}-${J}`)})}})),"body")}function l0(e){var t,n,r;let{frigade:i}=g.useContext(ir),[,o]=g.useState(!1),s,a=g.useCallback(u=>{i==null||i.getCollection(e).then(()=>{u()});let v=()=>{clearTimeout(s),s=setTimeout(()=>{o(b=>!b),u()},100)};return i==null||i.onStateChange(v),()=>{i==null||i.removeStateChangeHandler(v)}},[e]),l=g.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}=pa(c);return{collection:l,currentFlow:p}}function c0(e){var t=e,{collectionId:n,part:r}=t,i=ie(t,["collectionId","part"]),o,s,a;let l={ANNOUNCEMENT:S0,BANNER:fx,CARD:ue,CHECKLIST:Mf,EMBEDDED_TIP:ue,FORM:ms,NPS_SURVEY:hs,SURVEY:hs,TOUR:a0},{currentFlow:c}=l0(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)===Si.FORM?C(ae,G(D({part:["collection",r],"data-collection-id":n},i),{children:C(ms,{flowId:c.id,as:Ye},c.id)})):C(ae,G(D({part:["collection",r],"data-collection-id":n},i),{children:C(p,{flowId:c.id},c.id)}))}function Ff(){let{frigade:e}=g.useContext(ir);return{frigade:e,isLoading:!(e!=null&&e.isReady())}}function u0(){let[e,t]=g.useState(),{frigade:n}=Ff();return g.useEffect(()=>{n.getCollections().then(r=>{r==null||r.forEach((i,o)=>{i.collectionType==="DEFAULT"&&t(o)})})},[]),e==null?null:C(c0,{as:null,collectionId:e})}var ir=g.createContext({apiKey:"",navigate:()=>{},hasInitialized:!1,registerComponent:()=>{},unregisterComponent:()=>{}});function d0(){let{frigade:e}=Ff();return g.useEffect(()=>{Rn(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 f0="2.5.1";function sE(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?wf(s):{},c=g.useRef(new Map),p=g.useRef(),[u,v]=g.useState(!1),b=g.useMemo(()=>(v(!1),p.current=void 0,new Rg(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:f0,__platformName:"React"})),[a.userId,a.groupId,a.apiKey]);g.useEffect(()=>{if(a.__flowStateOverrides){let m=b.getConfig();m.__flowStateOverrides=a.__flowStateOverrides,b.reload(m)}},[a.__flowStateOverrides]);function h(){let m=[...c.current.entries()].map(([w,S])=>[w,S.callback]);b.batchRegister(m),v(!0)}function d(m,w){if(p.current&&clearTimeout(p.current),u){c.current.has(m)?b.getFlow(m).then(S=>w(S.isVisible)):(b.getFlow(m).then(S=>S.register(w)),c.current.set(m,{callback:w}));return}c.current.has(m)||c.current.set(m,{callback:w}),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>h(),0)}function y(m){c.current.has(m)&&b.getFlow(m).then(w=>{c.current.delete(m),w==null||w.unregister()})}let f=o??((m,w="_self")=>{window.open(m,w)});return g.useEffect(()=>()=>{b.destroy()},[]),ce(ir.Provider,{value:G(D({navigate:f},a),{frigade:b,registerComponent:d,unregisterComponent:y,hasInitialized:u}),children:[C(nm,{styles:{":root":D(D(D({},yS),l),r)}}),ce(Qp,{theme:Oe,children:[i&&C(u0,{}),n]}),a.preloadImages!==!1&&C(d0,{})]})}function pa(e,t){let{frigade:n}=g.useContext(ir),[,r]=g.useState(!1),i=g.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=g.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 p0(e,{onComplete:t,onDismiss:n}={}){let r=g.useRef(null);return g.useEffect(()=>{e!=null&&(e.isCompleted&&r.current===!1&&Rn(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:g.useCallback(i=>Rn(this,null,function*(){if((yield n==null?void 0:n(e,i))===!1)return i.preventDefault(),!1;e.skip()}),[e])}}var qt=new Set;function m0(e,t=!0){let n=g.useCallback(()=>{qt.has(e==null?void 0:e.id)&&qt.delete(e==null?void 0:e.id)},[qt,t]),r=g.useCallback(()=>{t&&e!=null&&e.isVisible&&!qt.has(e.id)&&qt.add(e.id)},[qt,t]);g.useEffect(()=>()=>{n()},[]),e!=null&&e.isVisible?r():n();let i=qt.size>0?qt.values().next().value:null;return{isCurrentModal:t?i===(e==null?void 0:e.id)||qt.size==0:!0}}function Mn(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:b}=pa(i,{variables:c}),h=D(D({},p),(u=b==null?void 0:b.props)!=null?u:{}),{dismissible:d=!1,forceMount:y=!1}=h,f=ie(h,["dismissible","forceMount"]),m=b==null?void 0:b.getCurrentStep(),{handleDismiss:w}=p0(b,{onComplete:o,onDismiss:s}),{handlePrimary:S,handleSecondary:x}=oo(m,{onPrimary:a,onSecondary:l}),T=(f==null?void 0:f.modal)||typeof n=="function"&&(n==null?void 0:n.displayName)==="Dialog"||[Si.ANNOUNCEMENT,Si.TOUR].includes((v=b==null?void 0:b.rawData)==null?void 0:v.flowType),{isCurrentModal:A}=m0(b,T),k=y&&((b==null?void 0:b.isCompleted)||(b==null?void 0:b.isSkipped));if(!b||!b.isVisible&&!k||!k&&!A)return null;(k||!b.isCompleted&&!b.isSkipped)&&m.start();let _=n===null?g.Fragment:n??ae,z=G(D({},f),{"data-flow-id":b.id});return C(_,G(D({},n===null?{}:z),{children:r({flow:b,handleDismiss:w,handlePrimary:S,handleSecondary:x,parentProps:{dismissible:d,flowId:i,variables:c,containerProps:z},step:m})}))}function h0(e){var t=e,{part:n}=t,r=ie(t,["part"]);return C(Mn,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 b=(p=(c=l.primaryButton)==null?void 0:c.title)!=null?p:l.primaryButtonTitle,h=(v=(u=l.secondaryButton)==null?void 0:u.title)!=null?v:l.secondaryButtonTitle;return ce(Gi,{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:h,onClick:s}),C(ue.Primary,{title:b,onClick:o})]})]})}}))}function g0(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 b0(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 v0(e){var t=e,{part:n,src:r}=t,i=ie(t,["part","src"]);let o=b0(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"?v0:g0,D({src:n},i))}var ue=g.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(h0,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(wt.Plain,G(D({part:"dismiss",padding:0},e),{children:C(bf,{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(wt.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(wt.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 ai={content:["onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","onInteractOutside"],root:["defaultOpen","modal","onOpenChange","open"]};function y0(e){let t=Object.fromEntries(ai.content.map(i=>[i,e[i]]).filter(i=>i[1]!==void 0)),n=Object.fromEntries(ai.root.map(i=>[i,e[i]]).filter(i=>i[1]!==void 0)),r={};for(let i of Object.keys(e))!ai.content.some(o=>o===i)&&!ai.root.some(o=>o===i)&&(r[i]=e[i]);return{contentProps:t,otherProps:r,rootProps:n}}var w0=rn`
  from {
    opacity: 0;
  }
  25% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
`;function Ye(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}=y0(o),c=l,{zIndex:p}=c,u=ie(c,["zIndex"]);return C(Ah,G(D({defaultOpen:!0,modal:i},s),{children:C(Ph,{children:ce(ae,{animation:`${w0} 300ms ease-out`,className:r,display:"grid",inset:"0",padding:"6",part:"dialog-wrapper",pointerEvents:"none",position:"fixed",zIndex:p??10,children:[i&&C(Ih,{asChild:!0,children:C(ae,{background:"rgb(0 0 0 / 0.5)",inset:"0",part:"dialog-overlay",position:"absolute"})}),C(Oh,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}))}))]})})}))}Ye.Dismiss=e=>C(Mh,{"aria-label":"Close",asChild:!0,children:C(wt.Plain,G(D({part:"close",position:"absolute",right:"2px",top:"2px"},e),{children:C(bf,{height:"20",fill:"currentColor"})}))});Ye.Subtitle=e=>{var t=e,{children:n}=t,r=ie(t,["children"]);return C(_h,{asChild:!0,children:C(Fe.Body2,G(D({part:"subtitle"},r),{children:n}))})};Ye.Media=e=>{var t=e,{src:n}=t,r=ie(t,["src"]);return n==null?null:C($f,D({borderRadius:"md",src:n},r))};Ye.Primary=e=>{var t=e,{onClick:n,title:r}=t,i=ie(t,["onClick","title"]);return r==null?null:C(wt.Primary,D({title:r,onClick:n},i))};Ye.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})};Ye.Secondary=e=>{var t=e,{onClick:n,title:r}=t,i=ie(t,["onClick","title"]);return r==null?null:C(wt.Secondary,D({title:r,onClick:n},i))};Ye.Title=e=>{var t=e,{children:n}=t,r=ie(t,["children"]);return C(Rh,{asChild:!0,children:C(Fe.H4,G(D({part:"title"},r),{children:n}))})};Ye.displayName="Dialog";var tc=["dismissible","flowId","forceMount","onComplete","onDismiss","onPrimary","onSecondary","variables"];function S0(e){var t=e,{flowId:n,part:r}=t,i=ie(t,["flowId","part"]);let o=Object.fromEntries(Object.entries(i).filter(([a])=>tc.some(l=>a===l))),s=Object.fromEntries(Object.entries(i).filter(([a])=>tc.indexOf(a)===-1));return C(Mn,G(D({as:null,flowId:n},o),{children:({flow:a,handleDismiss:l,handlePrimary:c,handleSecondary:p,parentProps:{containerProps:u,dismissible:v},step:b})=>{var h,d,y,f,m,w;let S=(h=b.props)!=null?h:{},x=(y=(d=b.primaryButton)==null?void 0:d.title)!=null?y:b.primaryButtonTitle,T=(m=(f=b.secondaryButton)==null?void 0:f.title)!=null?m:b.secondaryButtonTitle,A=b.$state.blocked;return C(Ye,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(Ye.Dismiss,{onClick:l}),ce(Ee.Column,{gap:1,part:"announcement-header",children:[C(Ye.Title,{children:b.title}),C(Ye.Subtitle,{children:b.subtitle})]}),C(Ye.Media,{aspectRatio:"1.5",objectFit:"cover",overflowClipMargin:"unset",src:(w=b.videoUri)!=null?w:b.imageUri,transform:"translate3d(0, 0, 1px)",type:b.videoUri?"video":"image",width:"100%"}),C(Ye.ProgressDots,{current:a.getCurrentStepIndex(),total:a.getNumberOfAvailableSteps()}),ce(Ee.Row,{css:{"& > button":{flexBasis:"50%",flexGrow:1}},gap:3,part:"announcement-footer",children:[T&&C(Ye.Secondary,{disabled:A,onClick:p,title:T}),x&&C(Ye.Primary,{disabled:A,onClick:c,title:x})]})]}))}))}}))}rn({"0%":{opacity:.5,transform:"scale(0.5)"},"50%":{opacity:0,transform:"scale(1)"},"100%":{opacity:0,transform:"scale(1)"}});rn`
  from {
    opacity: 0;
  }
  25% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
`;function nc(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function ma(e={},t={}){Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:nc(t[n])&&nc(e[n])&&Object.keys(t[n]).length>0&&ma(e[n],t[n])})}const zf={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 _t(){const e=typeof document<"u"?document:{};return ma(e,zf),e}const x0={document:zf,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 mt(){const e=typeof window<"u"?window:{};return ma(e,x0),e}function C0(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function Mr(e,t=0){return setTimeout(e,t)}function Kt(){return Date.now()}function E0(e){const t=mt();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function k0(e,t="x"){const n=mt();let r,i,o;const s=E0(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 wr(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function T0(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function ht(...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&&!T0(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&&(wr(t[l])&&wr(i[l])?i[l].__swiper__?t[l]=i[l]:ht(t[l],i[l]):!wr(t[l])&&wr(i[l])?(t[l]={},i[l].__swiper__?t[l]=i[l]:ht(t[l],i[l])):t[l]=i[l])}}}return t}function li(e,t,n){e.style.setProperty(t,n)}function Bf({swiper:e,targetPosition:t,side:n}){const r=mt(),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 b=i+v*(t-i);if(c(b,t)&&(b=t),e.wrapperEl.scrollTo({[n]:b}),c(b,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:b})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(p)};p()}function Ot(e,t=""){return[...e.children].filter(n=>n.matches(t))}function jf(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function A0(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 P0(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 mn(e,t){return mt().getComputedStyle(e,null).getPropertyValue(t)}function Ni(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Vf(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 gs(e,t,n){const r=mt();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 Mo;function I0(){const e=mt(),t=_t();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Hf(){return Mo||(Mo=I0()),Mo}let Do;function O0({userAgent:e}={}){const t=Hf(),n=mt(),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 b=r==="MacIntel";const h=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&b&&t.touch&&h.indexOf(`${s}x${a}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),b=!1),l&&!v&&(o.os="android",o.android=!0),(c||u||p)&&(o.os="ios",o.ios=!0),o}function R0(e={}){return Do||(Do=O0(e)),Do}let Lo;function _0(){const e=mt();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 M0(){return Lo||(Lo=_0()),Lo}function D0({swiper:e,on:t,emit:n}){const r=mt();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 b=u,h=v;p.forEach(({contentBoxSize:d,contentRect:y,target:f})=>{f&&f!==e.el||(b=y?y.width:(d[0]||d).inlineSize,h=y?y.height:(d[0]||d).blockSize)}),(b!==u||h!==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 L0({swiper:e,extendParams:t,on:n,emit:r}){const i=[],o=mt(),s=(c,p={})=>{const u=o.MutationObserver||o.WebkitMutationObserver,v=new u(b=>{if(e.__preventObserver__)return;if(b.length===1){r("observerUpdate",b[0]);return}const h=function(){r("observerUpdate",b[0])};o.requestAnimationFrame?o.requestAnimationFrame(h):o.setTimeout(h,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=Vf(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 N0={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 F0(){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(mn(r,"padding-left")||0,10)-parseInt(mn(r,"padding-right")||0,10),n=n-parseInt(mn(r,"padding-top")||0,10)-parseInt(mn(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 $0(){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=Ot(o,`.${e.params.slideClass}, swiper-slide`),v=c?e.virtual.slides.length:u.length;let b=[];const h=[],d=[];let y=r.slidesOffsetBefore;typeof y=="function"&&(y=r.slidesOffsetBefore.call(e));let f=r.slidesOffsetAfter;typeof f=="function"&&(f=r.slidesOffsetAfter.call(e));const m=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&&(li(i,"--swiper-centered-offset-before",""),li(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]&&mn(I,"display")==="none")){if(r.slidesPerView==="auto"){z&&(u[R].style[t("width")]="");const L=getComputedStyle(I),N=I.style.transform,V=I.style.webkitTransform;if(N&&(I.style.transform="none"),V&&(I.style.webkitTransform="none"),r.roundLengths)_=e.isHorizontal()?gs(I,"width"):gs(I,"height");else{const $=n(L,"width"),j=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")_=$+J+ge;else{const{clientWidth:Re,offsetWidth:ve}=I;_=$+j+U+J+ge+(ve-Re)}}N&&(I.style.transform=N),V&&(I.style.webkitTransform=V),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=_),d.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&&b.push(x),h.push(x)):(r.roundLengths&&(x=Math.floor(x)),(A-Math.min(e.params.slidesPerGroupSkip,A))%e.params.slidesPerGroup===0&&b.push(x),h.push(x),x=x+_+S),e.virtualSize+=_+S,T=_,A+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+f,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(_,b,t),!r.centeredSlides){const R=[];for(let I=0;I<b.length;I+=1){let L=b[I];r.roundLengths&&(L=Math.floor(L)),b[I]<=e.virtualSize-s&&R.push(L)}b=R,Math.floor(e.virtualSize-s)-Math.floor(b[b.length-1])>1&&b.push(e.virtualSize-s)}if(c&&r.loop){const R=d[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)b.push(b[b.length-1]+L)}for(let I=0;I<e.virtual.slidesBefore+e.virtual.slidesAfter;I+=1)r.slidesPerGroup===1&&b.push(b[b.length-1]+R),h.push(h[h.length-1]+R),e.virtualSize+=R}if(b.length===0&&(b=[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;d.forEach(L=>{R+=L+(S||0)}),R-=S;const I=R-s;b=b.map(L=>L<=0?-y:L>I?I+f:L)}if(r.centerInsufficientSlides){let R=0;if(d.forEach(I=>{R+=I+(S||0)}),R-=S,R<s){const I=(s-R)/2;b.forEach((L,N)=>{b[N]=L-I}),h.forEach((L,N)=>{h[N]=L+I})}}if(Object.assign(e,{slides:u,snapGrid:b,slidesGrid:h,slidesSizesGrid:d}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){li(i,"--swiper-centered-offset-before",`${-b[0]}px`),li(i,"--swiper-centered-offset-after",`${e.size/2-d[d.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"),b.length!==m&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.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 z0(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 B0(){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 j0(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),b=-(s-p),h=b+t.slidesSizesGrid[l];(b>=0&&b<t.size-1||h>1&&h<=t.size||b<=0&&h>=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 V0(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],b=t.slidesGrid[u],h=t.slidesGrid[t.slidesGrid.length-1],d=Math.abs(e);d>=v?a=(d-v)/h:a=(d+h-b)/h,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 H0(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,o=e.virtual&&n.virtual.enabled,s=l=>Ot(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=P0(a,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!l&&(l=t[0]),l&&l.classList.add(n.slideNextClass);let c=A0(a,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!c===0&&(c=t[t.length-1]),c&&c.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}const gi=(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()}},No=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},bs=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)&&No(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)&&No(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)&&No(e,s)};function W0(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 G0(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 b=v-t.virtual.slidesBefore;return b<0&&(b=t.virtual.slides.length+b),b>=t.virtual.slides.length&&(b-=t.virtual.slides.length),b};if(typeof l>"u"&&(l=W0(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&&bs(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),s!==u&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function U0(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 Y0={updateSize:F0,updateSlides:$0,updateAutoHeight:z0,updateSlidesOffset:B0,updateSlidesProgress:j0,updateProgress:V0,updateSlidesClasses:H0,updateActiveIndex:G0,updateClickedSlide:U0};function q0(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=k0(o,e);return s+=t.cssOverflowAdjustment(),r&&(s=-s),s||0}function X0(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 K0(){return-this.snapGrid[0]}function Z0(){return-this.snapGrid[this.snapGrid.length-1]}function J0(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 Bf({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 Q0={getTranslate:q0,setTranslate:X0,minTranslate:K0,maxTranslate:Z0,translateTo:J0};function eC(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`),n.emit("setTransition",e,t)}function Wf({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 tC(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),Wf({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function nC(e=!0,t){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),Wf({swiper:n,runCallbacks:e,direction:t,step:"End"}))}const rC={setTransition:eC,transitionStart:tC,transitionEnd:nC};function iC(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:b,enabled:h}=o;if(o.animating&&a.preventInteractionOnTransition||!h&&!r&&!i)return!1;const d=Math.min(o.params.slidesPerGroupSkip,s);let y=d+Math.floor((s-d)/o.params.slidesPerGroup);y>=l.length&&(y=l.length-1);const f=-l[y];if(a.normalizeSlideIndex)for(let w=0;w<c.length;w+=1){const S=-Math.floor(f*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?f>o.translate&&f>o.minTranslate():f<o.translate&&f<o.minTranslate())||!o.allowSlidePrev&&f>o.translate&&f>o.maxTranslate()&&(u||0)!==s))return!1;s!==(p||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(f);let m;if(s>u?m="next":s<u?m="prev":m="reset",v&&-f===o.translate||!v&&f===o.translate)return o.updateActiveIndex(s),a.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),a.effect!=="slide"&&o.setTranslate(f),m!=="reset"&&(o.transitionStart(n,m),o.transitionEnd(n,m)),!1;if(a.cssMode){const w=o.isHorizontal(),S=v?f:-f;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(()=>{b[w?"scrollLeft":"scrollTop"]=S})):b[w?"scrollLeft":"scrollTop"]=S,x&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return Bf({swiper:o,targetPosition:S,side:w?"left":"top"}),!0;b.scrollTo({[w?"left":"top"]:S,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(f),o.updateActiveIndex(s),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,m),t===0?o.transitionEnd(n,m):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,m))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function oC(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 sC(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 aC(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(f){return f<0?-Math.floor(Math.abs(f)):Math.floor(f)}const b=v(u),h=o.map(f=>v(f));let d=o[h.indexOf(b)-1];if(typeof d>"u"&&i.cssMode){let f;o.forEach((m,w)=>{b>=m&&(f=w)}),typeof f<"u"&&(d=o[f>0?f-1:f])}let y=0;if(typeof d<"u"&&(y=s.indexOf(d),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 f=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(f,e,t,n)}return r.slideTo(y,e,t,n)}function lC(e=this.params.speed,t=!0,n){const r=this;return r.slideTo(r.activeIndex,e,t,n)}function cC(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 uC(){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(Ot(n,`${s}[data-swiper-slide-index="${o}"]`)[0]),Mr(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-r?(e.loopFix(),i=e.getSlideIndex(Ot(n,`${s}[data-swiper-slide-index="${o}"]`)[0]),Mr(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}const dC={slideTo:iC,slideToLoop:oC,slideNext:sC,slidePrev:aC,slideReset:lC,slideToClosest:cC,slideToClickedSlide:uC};function fC(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;Ot(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 pC({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 b=v.slidesPerView==="auto"?a.slidesPerViewDynamic():Math.ceil(parseFloat(v.slidesPerView,10));let h=v.loopedSlides||b;h%v.slidesPerGroup!==0&&(h+=v.slidesPerGroup-h%v.slidesPerGroup),a.loopedSlides=h;const d=[],y=[];let f=a.activeIndex;typeof i>"u"?i=a.getSlideIndex(a.slides.filter(T=>T.classList.contains(v.slideActiveClass))[0]):f=i;const m=n==="next"||!n,w=n==="prev"||!n;let S=0,x=0;if(i<h){S=Math.max(h-i,v.slidesPerGroup);for(let T=0;T<h-i;T+=1){const A=T-Math.floor(T/l.length)*l.length;d.push(l.length-A-1)}}else if(i>a.slides.length-h*2){x=Math.max(i-(a.slides.length-h*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&&d.forEach(T=>{a.slides[T].swiperLoopMoveDOM=!0,u.prepend(a.slides[T]),a.slides[T].swiperLoopMoveDOM=!1}),m&&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(d.length>0&&w)if(typeof e>"u"){const T=a.slidesGrid[f],k=a.slidesGrid[f+S]-T;s?a.setTranslate(a.translate-k):(a.slideTo(f+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&&m)if(typeof e>"u"){const T=a.slidesGrid[f],k=a.slidesGrid[f-x]-T;s?a.setTranslate(a.translate-k):(a.slideTo(f-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 mC(){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 hC={loopCreate:fC,loopFix:pC,loopDestroy:mC};function gC(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 bC(){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 vC={setGrabCursor:gC,unsetGrabCursor:bC};function yC(e,t=this){function n(r){if(!r||r===_t()||r===mt())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 wC(e){const t=this,n=_t(),r=mt(),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}`,b=!!(l.target&&l.target.shadowRoot);if(o.noSwiping&&(b?yC(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 h=s.currentX,d=s.currentY,y=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,f=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(y&&(h<=f||h>=r.innerWidth-f))if(y==="prevent")e.preventDefault();else return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=h,s.startY=d,i.touchStartTime=Kt(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);let m=!0;c.matches(i.focusableElements)&&(m=!1,c.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==c&&n.activeElement.blur();const w=m&&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 SC(e){const t=_t(),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=Kt());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 b=o.currentX-o.startX,h=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(b**2+h**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:b*b+h*h>=25&&(T=Math.atan2(Math.abs(h),Math.abs(b))*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 d=n.isHorizontal()?b:h,y=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(d=Math.abs(d)*(s?1:-1),y=Math.abs(y)*(s?1:-1)),o.diff=d,d*=i.touchRatio,s&&(d=-d,y=-y);const f=n.touchesDirection;n.swipeDirection=d>0?"prev":"next",n.touchesDirection=y>0?"prev":"next";const m=n.params.loop&&!i.cssMode;if(!r.isMoved){if(m&&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&&f!==n.touchesDirection&&m&&Math.abs(d)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),w=!0),n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=d+r.startTranslate;let S=!0,x=i.resistanceRatio;if(i.touchReleaseOnEdges&&(x=0),d>0?(m&&!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+d)**x))):d<0&&(m&&!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-d)**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(d)>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 xC(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=Kt(),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=Kt(),Mr(()=>{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 b=0,h=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]&&(b=w,h=a[w+S]-a[w]):v>=a[w]&&(b=w,h=a[a.length-1]-a[a.length-2])}let d=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&&(d=0));const f=(v-a[b])/h,m=b<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(u>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(f>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?d:b+m):t.slideTo(b)),t.swipeDirection==="prev"&&(f>1-i.longSwipesRatio?t.slideTo(b+m):y!==null&&f<0&&Math.abs(f)>i.longSwipesRatio?t.slideTo(y):t.slideTo(b))}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(b+m):t.slideTo(b):(t.swipeDirection==="next"&&t.slideTo(d!==null?d:b+m),t.swipeDirection==="prev"&&t.slideTo(y!==null?y:b))}}function rc(){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 EC(){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 kC(e){const t=this;gi(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}let ic=!1;function TC(){}const Gf=(e,t)=>{const n=_t(),{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",rc,!0):e[c]("observerUpdate",rc,!0),i[l]("load",e.onLoad,{capture:!0})};function AC(){const e=this,t=_t(),{params:n}=e;e.onTouchStart=wC.bind(e),e.onTouchMove=SC.bind(e),e.onTouchEnd=xC.bind(e),n.cssMode&&(e.onScroll=EC.bind(e)),e.onClick=CC.bind(e),e.onLoad=kC.bind(e),ic||(t.addEventListener("touchstart",TC),ic=!0),Gf(e,"on")}function PC(){Gf(this,"off")}const IC={attachEvents:AC,detachEvents:PC},oc=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function OC(){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=oc(e,r),p=oc(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(d=>{if(typeof l[d]>"u")return;const y=r[d]&&r[d].enabled,f=l[d]&&l[d].enabled;y&&!f&&e[d].disable(),!y&&f&&e[d].enable()});const v=l.direction&&l.direction!==r.direction,b=r.loop&&(l.slidesPerView!==r.slidesPerView||v);v&&n&&e.changeDirection(),ht(e.params,l);const h=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),u&&!h?e.disable():!u&&h&&e.enable(),e.currentBreakpoint=s,e.emit("_beforeBreakpoint",l),b&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",l)}function RC(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const i=mt(),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 _C={setBreakpoint:OC,getBreakpoint:RC};function MC(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 DC(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:o}=e,s=MC(["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 LC(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}const NC={addClasses:DC,removeClasses:LC};function FC(){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 $C={checkOverflow:FC},sc={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 zC(e,t){return function(r={}){const i=Object.keys(r)[0],o=r[i];if(typeof o!="object"||o===null){ht(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(i)>=0&&e[i]===!0&&(e[i]={auto:!0}),!(i in e&&"enabled"in o)){ht(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}),ht(t,r)}}const Fo={eventsEmitter:N0,update:Y0,translate:Q0,transition:rC,slide:dC,loop:hC,grabCursor:vC,events:IC,breakpoints:_C,checkOverflow:$C,classes:NC},$o={};class Pt{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=ht({},r),n&&!r.el&&(r.el=n);const i=_t();if(r.el&&typeof r.el=="string"&&i.querySelectorAll(r.el).length>1){const l=[];return i.querySelectorAll(r.el).forEach(c=>{const p=ht({},r,{el:c});l.push(new Pt(p))}),l}const o=this;o.__swiper__=!0,o.support=Hf(),o.device=R0({userAgent:r.userAgent}),o.browser=M0(),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:zC(r,s),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const a=ht({},sc,s);return o.params=ht({},a,$o,r),o.originalParams=ht({},o.params),o.passedParams=ht({},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=Ot(n,`.${r.slideClass}, swiper-slide`),o=Ni(i[0]);return Ni(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=Ot(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 b=c+1;b<o.length;b+=1)o[b]&&!v&&(u+=o[b].swiperSlideSize,p+=1,u>l&&(v=!0));for(let b=c-1;b>=0;b-=1)o[b]&&!v&&(u+=o[b].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&&gi(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()):Ot(r,i())[0];return!s&&n.params.createElements&&(s=jf("div",n.params.wrapperClass),r.append(s),Ot(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"||mn(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||mn(r,"direction")==="rtl"),wrongRTL:mn(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?gi(n,i):i.addEventListener("load",o=>{gi(n,o.target)})}),bs(n),n.initialized=!0,bs(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){ht($o,t)}static get extendedDefaults(){return $o}static get defaults(){return sc}static installModule(t){Pt.prototype.__modules__||(Pt.prototype.__modules__=[]);const n=Pt.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>Pt.installModule(n)),Pt):(Pt.installModule(t),Pt)}}Object.keys(Fo).forEach(e=>{Object.keys(Fo[e]).forEach(t=>{Pt.prototype[t]=Fo[e][t]})});Pt.use([D0,L0]);function aE({swiper:e,extendParams:t,on:n,emit:r}){const i=mt();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=Kt(),a;const l=[];function c(m){let T=0,A=0,k=0,_=0;return"detail"in m&&(A=m.detail),"wheelDelta"in m&&(A=-m.wheelDelta/120),"wheelDeltaY"in m&&(A=-m.wheelDeltaY/120),"wheelDeltaX"in m&&(T=-m.wheelDeltaX/120),"axis"in m&&m.axis===m.HORIZONTAL_AXIS&&(T=A,A=0),k=T*10,_=A*10,"deltaY"in m&&(_=m.deltaY),"deltaX"in m&&(k=m.deltaX),m.shiftKey&&!k&&(k=_,_=0),(k||_)&&m.deltaMode&&(m.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(m){return e.params.mousewheel.thresholdDelta&&m.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Kt()-s<e.params.mousewheel.thresholdTime?!1:m.delta>=6&&Kt()-s<60?!0:(m.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),r("scroll",m.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),r("scroll",m.raw)),s=new i.Date().getTime(),!1)}function b(m){const w=e.params.mousewheel;if(m.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 h(m){let w=m,S=!0;if(!e.enabled||m.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:Kt(),delta:Math.abs(k),direction:Math.sign(k),raw:m};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),b(I))return!0}else{const I={time:Kt(),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 V=e.isBeginning,$=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(),(!V&&e.isBeginning||!$&&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 j=l.length?l[l.length-1]:void 0,U=l[0];if(l.push(I),j&&(I.delta>j.delta||I.direction!==j.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=Mr(()=>{e.slideToClosest(e.params.speed,!0,void 0,J)},0)}o||(o=Mr(()=>{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 d(m){let w=e.el;e.params.mousewheel.eventsTarget!=="container"&&(w=document.querySelector(e.params.mousewheel.eventsTarget)),w[m]("mouseenter",p),w[m]("mouseleave",u),w[m]("wheel",h)}function y(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",h),!0):e.mousewheel.enabled?!1:(d("addEventListener"),e.mousewheel.enabled=!0,!0)}function f(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,h),!0):e.mousewheel.enabled?(d("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&f(),e.params.mousewheel.enabled&&y()}),n("destroy",()=>{e.params.cssMode&&y(),e.mousewheel.enabled&&f()}),Object.assign(e.mousewheel,{enable:y,disable:f})}function Uf(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&n.auto===!0){let o=Ot(e.el,`.${r[i]}`)[0];o||(o=jf("div",r[i]),o.className=r[i],e.el.append(o)),n[i]=o,t[i]=o}}),n}function lE({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=h=>(Array.isArray(h)||(h=[h].filter(d=>!!d)),h);function o(h){let d;return h&&typeof h=="string"&&e.isElement&&(d=e.el.shadowRoot.querySelector(h),d)?d:(h&&(typeof h=="string"&&(d=[...document.querySelectorAll(h)]),e.params.uniqueNavElements&&typeof h=="string"&&d.length>1&&e.el.querySelectorAll(h).length===1&&(d=e.el.querySelector(h))),h&&!d?h:d)}function s(h,d){const y=e.params.navigation;h=i(h),h.forEach(f=>{f&&(f.classList[d?"add":"remove"](...y.disabledClass.split(" ")),f.tagName==="BUTTON"&&(f.disabled=d),e.params.watchOverflow&&e.enabled&&f.classList[e.isLocked?"add":"remove"](y.lockClass))})}function a(){const{nextEl:h,prevEl:d}=e.navigation;if(e.params.loop){s(d,!1),s(h,!1);return}s(d,e.isBeginning&&!e.params.rewind),s(h,e.isEnd&&!e.params.rewind)}function l(h){h.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function c(h){h.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function p(){const h=e.params.navigation;if(e.params.navigation=Uf(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(h.nextEl||h.prevEl))return;let d=o(h.nextEl),y=o(h.prevEl);Object.assign(e.navigation,{nextEl:d,prevEl:y}),d=i(d),y=i(y);const f=(m,w)=>{m&&m.addEventListener("click",w==="next"?c:l),!e.enabled&&m&&m.classList.add(...h.lockClass.split(" "))};d.forEach(m=>f(m,"next")),y.forEach(m=>f(m,"prev"))}function u(){let{nextEl:h,prevEl:d}=e.navigation;h=i(h),d=i(d);const y=(f,m)=>{f.removeEventListener("click",m==="next"?c:l),f.classList.remove(...e.params.navigation.disabledClass.split(" "))};h.forEach(f=>y(f,"next")),d.forEach(f=>y(f,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?b():(p(),a())}),n("toEdge fromEdge lock unlock",()=>{a()}),n("destroy",()=>{u()}),n("enable disable",()=>{let{nextEl:h,prevEl:d}=e.navigation;h=i(h),d=i(d),[...h,...d].filter(y=>!!y).forEach(y=>y.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),n("click",(h,d)=>{let{nextEl:y,prevEl:f}=e.navigation;y=i(y),f=i(f);const m=d.target;if(e.params.navigation.hideOnClick&&!f.includes(m)&&!y.includes(m)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===m||e.pagination.el.contains(m)))return;let w;y.length?w=y[0].classList.contains(e.params.navigation.hiddenClass):f.length&&(w=f[0].classList.contains(e.params.navigation.hiddenClass)),r(w===!0?"navigationShow":"navigationHide"),[...y,...f].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()},b=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(e.navigation,{enable:v,disable:b,update:a,init:p,destroy:u})}function gr(e=""){return`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function cE({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:f=>f,formatFractionTotal:f=>f,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=f=>(Array.isArray(f)||(f=[f].filter(m=>!!m)),f);function l(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(f,m){const{bulletActiveClass:w}=e.params.pagination;f&&(f=f[`${m==="prev"?"previous":"next"}ElementSibling`],f&&(f.classList.add(`${w}-${m}`),f=f[`${m==="prev"?"previous":"next"}ElementSibling`],f&&f.classList.add(`${w}-${m}-${m}`)))}function p(f){const m=f.target.closest(gr(e.params.pagination.bulletClass));if(!m)return;f.preventDefault();const w=Ni(m)*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 f=e.rtl,m=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),m.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const k=e.pagination.bullets;let _,z,R;if(m.dynamicBullets&&(o=gs(k[0],e.isHorizontal()?"width":"height"),w.forEach(I=>{I.style[e.isHorizontal()?"width":"height"]=`${o*(m.dynamicMainBullets+4)}px`}),m.dynamicMainBullets>1&&x!==void 0&&(s+=S-(x||0),s>m.dynamicMainBullets-1?s=m.dynamicMainBullets-1:s<0&&(s=0)),_=Math.max(S-s,0),z=_+(Math.min(k.length,m.dynamicMainBullets)-1),R=(z+_)/2),k.forEach(I=>{const L=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(N=>`${m.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=Ni(I);L===S?I.classList.add(...m.bulletActiveClass.split(" ")):e.isElement&&I.setAttribute("part","bullet"),m.dynamicBullets&&(L>=_&&L<=z&&I.classList.add(...`${m.bulletActiveClass}-main`.split(" ")),L===_&&c(I,"prev"),L===z&&c(I,"next"))});else{const I=k[S];if(I&&I.classList.add(...m.bulletActiveClass.split(" ")),e.isElement&&k.forEach((L,N)=>{L.setAttribute("part",N===S?"bullet-active":"bullet")}),m.dynamicBullets){const L=k[_],N=k[z];for(let V=_;V<=z;V+=1)k[V]&&k[V].classList.add(...`${m.bulletActiveClass}-main`.split(" "));c(L,"prev"),c(N,"next")}}if(m.dynamicBullets){const I=Math.min(k.length,m.dynamicMainBullets+4),L=(o*I-o)/2-R*o,N=f?"right":"left";k.forEach(V=>{V.style[e.isHorizontal()?N:"top"]=`${L}px`})}}w.forEach((k,_)=>{if(m.type==="fraction"&&(k.querySelectorAll(gr(m.currentClass)).forEach(z=>{z.textContent=m.formatFractionCurrent(S+1)}),k.querySelectorAll(gr(m.totalClass)).forEach(z=>{z.textContent=m.formatFractionTotal(A)})),m.type==="progressbar"){let z;m.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(gr(m.progressbarFillClass)).forEach(N=>{N.style.transform=`translate3d(0,0,0) scaleX(${I}) scaleY(${L})`,N.style.transitionDuration=`${e.params.speed}ms`})}m.type==="custom"&&m.renderCustom?(k.innerHTML=m.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"](m.lockClass)})}function v(){const f=e.params.pagination;if(l())return;const m=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let w=e.pagination.el;w=a(w);let S="";if(f.type==="bullets"){let x=e.params.loop?Math.ceil(m/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&x>m&&(x=m);for(let T=0;T<x;T+=1)f.renderBullet?S+=f.renderBullet.call(e,T,f.bulletClass):S+=`<${f.bulletElement} ${e.isElement?'part="bullet"':""} class="${f.bulletClass}"></${f.bulletElement}>`}f.type==="fraction"&&(f.renderFraction?S=f.renderFraction.call(e,f.currentClass,f.totalClass):S=`<span class="${f.currentClass}"></span> / <span class="${f.totalClass}"></span>`),f.type==="progressbar"&&(f.renderProgressbar?S=f.renderProgressbar.call(e,f.progressbarFillClass):S=`<span class="${f.progressbarFillClass}"></span>`),e.pagination.bullets=[],w.forEach(x=>{f.type!=="custom"&&(x.innerHTML=S||""),f.type==="bullets"&&e.pagination.bullets.push(...x.querySelectorAll(gr(f.bulletClass)))}),f.type!=="custom"&&r("paginationRender",w[0])}function b(){e.params.pagination=Uf(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const f=e.params.pagination;if(!f.el)return;let m;typeof f.el=="string"&&e.isElement&&(m=e.el.shadowRoot.querySelector(f.el)),!m&&typeof f.el=="string"&&(m=[...document.querySelectorAll(f.el)]),m||(m=f.el),!(!m||m.length===0)&&(e.params.uniqueNavElements&&typeof f.el=="string"&&Array.isArray(m)&&m.length>1&&(m=[...e.el.querySelectorAll(f.el)],m.length>1&&(m=m.filter(w=>Vf(w,".swiper")[0]===e.el)[0])),Array.isArray(m)&&m.length===1&&(m=m[0]),Object.assign(e.pagination,{el:m}),m=a(m),m.forEach(w=>{f.type==="bullets"&&f.clickable&&w.classList.add(f.clickableClass),w.classList.add(f.modifierClass+f.type),w.classList.add(e.isHorizontal()?f.horizontalClass:f.verticalClass),f.type==="bullets"&&f.dynamicBullets&&(w.classList.add(`${f.modifierClass}${f.type}-dynamic`),s=0,f.dynamicMainBullets<1&&(f.dynamicMainBullets=1)),f.type==="progressbar"&&f.progressbarOpposite&&w.classList.add(f.progressbarOppositeClass),f.clickable&&w.addEventListener("click",p),e.enabled||w.classList.add(f.lockClass)}))}function h(){const f=e.params.pagination;if(l())return;let m=e.pagination.el;m&&(m=a(m),m.forEach(w=>{w.classList.remove(f.hiddenClass),w.classList.remove(f.modifierClass+f.type),w.classList.remove(e.isHorizontal()?f.horizontalClass:f.verticalClass),f.clickable&&w.removeEventListener("click",p)})),e.pagination.bullets&&e.pagination.bullets.forEach(w=>w.classList.remove(...f.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const f=e.params.pagination;let{el:m}=e.pagination;m=a(m),m.forEach(w=>{w.classList.remove(f.horizontalClass,f.verticalClass),w.classList.add(e.isHorizontal()?f.horizontalClass:f.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?y():(b(),v(),u())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&u()}),n("snapIndexChange",()=>{u()}),n("snapGridLengthChange",()=>{v(),u()}),n("destroy",()=>{h()}),n("enable disable",()=>{let{el:f}=e.pagination;f&&(f=a(f),f.forEach(m=>m.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{u()}),n("click",(f,m)=>{const w=m.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 d=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:f}=e.pagination;f&&(f=a(f),f.forEach(m=>m.classList.remove(e.params.pagination.paginationDisabledClass))),b(),v(),u()},y=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:f}=e.pagination;f&&(f=a(f),f.forEach(m=>m.classList.add(e.params.pagination.paginationDisabledClass))),h()};Object.assign(e.pagination,{enable:d,disable:y,render:v,update:u,init:b,destroy:h})}function uE({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,b,h,d,y;function f($){!e||e.destroyed||!e.wrapperEl||$.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",f),k())}const m=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?u=!0:u&&(l=c,u=!1);const $=e.autoplay.paused?c:p+l-new Date().getTime();e.autoplay.timeLeft=$,r("autoplayTimeLeft",$,$/a),s=requestAnimationFrame(()=>{m()})},w=()=>{let $;return e.virtual&&e.params.virtual.enabled?$=e.slides.filter(U=>U.classList.contains("swiper-slide-active"))[0]:$=e.slides[e.activeIndex],$?parseInt($.getAttribute("data-swiper-autoplay"),10):void 0},S=$=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(s),m();let j=typeof $>"u"?e.params.autoplay.delay:$;a=e.params.autoplay.delay,l=e.params.autoplay.delay;const U=w();!Number.isNaN(U)&&U>0&&typeof $>"u"&&(j=U,a=U,l=U),c=j;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 j>0?(clearTimeout(o),o=setTimeout(()=>{ge()},j)):requestAnimationFrame(()=>{ge()}),j},x=()=>{e.autoplay.running=!0,S(),r("autoplayStart")},T=()=>{e.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(s),r("autoplayStop")},A=($,j)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(o),$||(y=!0);const U=()=>{r("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",f):k()};if(e.autoplay.paused=!0,j){d&&(c=e.params.autoplay.delay),d=!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 $=_t();$.visibilityState==="hidden"&&(y=!0,A(!0)),$.visibilityState==="visible"&&k()},z=$=>{$.pointerType==="mouse"&&(y=!0,A(!0))},R=$=>{$.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=()=>{_t().addEventListener("visibilitychange",_)},V=()=>{_t().removeEventListener("visibilitychange",_)};n("init",()=>{e.params.autoplay.enabled&&(I(),N(),p=new Date().getTime(),x())}),n("destroy",()=>{L(),V(),e.autoplay.running&&T()}),n("beforeTransitionStart",($,j,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,b=!1,y=!1,h=setTimeout(()=>{y=!0,b=!0,A(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!v)){if(clearTimeout(h),clearTimeout(o),e.params.autoplay.disableOnInteraction){b=!1,v=!1;return}b&&e.params.cssMode&&k(),b=!1,v=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(d=!0)}),Object.assign(e.autoplay,{start:x,stop:T,pause:A,resume:k})}function dE({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(wr(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(d=>d.classList.remove(v)),c.params.loop||c.params.virtual&&c.params.virtual.enabled)for(let d=0;d<u;d+=1)Ot(c.slidesEl,`[data-swiper-slide-index="${e.realIndex+d}"]`).forEach(y=>{y.classList.add(v)});else for(let d=0;d<u;d+=1)c.slides[e.realIndex+d]&&c.slides[e.realIndex+d].classList.add(v);const b=e.params.thumbs.autoScrollOffset,h=b&&!c.params.loop;if(e.realIndex!==c.realIndex||h){const d=c.activeIndex;let y,f;if(c.params.loop){const m=c.slides.filter(w=>w.getAttribute("data-swiper-slide-index")===`${e.realIndex}`)[0];y=c.slides.indexOf(m),f=e.activeIndex>e.previousIndex?"next":"prev"}else y=e.realIndex,f=y>e.previousIndex?"next":"prev";h&&(y+=f==="next"?b:-1*b),c.visibleSlidesIndexes&&c.visibleSlidesIndexes.indexOf(y)<0&&(c.params.centeredSlides?y>d?y=y-Math.floor(p/2)+1:y=y+Math.floor(p/2)-1:y>d&&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=_t(),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 b=h=>{l.swiper=h.detail[0],v.removeEventListener("init",b),s(),a(!0),l.swiper.update(),e.update()};v.addEventListener("init",b)}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 BC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ac(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 lc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ac(Object(n),!0).forEach(function(r){BC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ac(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jC(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 VC(e,t){if(e==null)return{};var n=jC(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 Fi(e,t){return HC(e)||WC(e,t)||GC(e,t)||UC()}function HC(e){if(Array.isArray(e))return e}function WC(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 GC(e,t){if(e){if(typeof e=="string")return cc(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 cc(e,t)}}function cc(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 UC(){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 YC(e){var t=e.src,n=e.checkForExisting,r=n===void 0?!1:n,i=VC(e,["src","checkForExisting"]),o=g.useState(!!t),s=Fi(o,2),a=s[0],l=s[1],c=g.useState(null),p=Fi(c,2),u=p[0],v=p[1];return g.useEffect(function(){if(!(!qC||!t)){if(r){var b=document.querySelectorAll('script[src="'.concat(t,'"]'));if(b.length>0){l(!1);return}}var h=document.createElement("script");h.setAttribute("src",t),Object.keys(i).forEach(function(f){h[f]===void 0?h.setAttribute(f,i[f]):h[f]=i[f]});var d=function(){l(!1)},y=function(m){v(m)};return h.addEventListener("load",d),h.addEventListener("error",y),document.body.appendChild(h),function(){h.removeEventListener("load",d),h.removeEventListener("error",y)}}},[t]),[a,u]}var qC=typeof window<"u"&&typeof window.document<"u",fE=function(t){var n=YC({src:"https://cdn.merge.dev/initialize.js",checkForExisting:!0}),r=Fi(n,2),i=r[0],o=r[1],s=g.useState(!1),a=Fi(s,2),l=a[0],c=a[1],p=typeof window>"u",u=!p&&!!window.MergeLink&&!i&&!o;g.useEffect(function(){u&&window.MergeLink&&window.MergeLink.initialize(lc(lc({},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{uE as A,Cy as B,ky as C,sE as D,KC as I,aE as M,lE as N,cE as P,mx as R,pa as S,dE as T,Ff as _,Mn as a,Pt as b,fE as c,od as d,oa as e,ld as f,fy as g,my as h,py as i,M as j,Wm as k,dy as l,As as m,Ts as n,sd as o,qn as p,Wi as q,Is as r,ad as s,Ps as t,ZC as u,dd as v,Ey as w,zc as x,Ty as y,Yn as z};
//# sourceMappingURL=vendors-NqC9SIZP.js.map