Last active
June 16, 2025 14:29
-
-
Save VihangaN/00b57bda64227fcc0eb07e265df2c9f7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var UniqueWidgetB=function(Sr){"use strict";var kt,O,Wo,Je,Go,qo,Er,xr,Pr,Cr,Ko,Mt={},Xo=[],Nf=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,un=Array.isArray;function ke(e,t){for(var n in t)e[n]=t[n];return e}function Yo(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ne(e,t,n){var r,i,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?kt.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return Lt(e,s,r,i,null)}function Lt(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++Wo,__i:-1,__u:0};return i==null&&O.vnode!=null&&O.vnode(o),o}function Zo(){return{current:null}}function ae(e){return e.children}function ge(e,t){this.props=e,this.context=t}function ft(e,t){if(t==null)return e.__?ft(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?ft(e):null}function Jo(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Jo(e)}}function Rr(e){(!e.__d&&(e.__d=!0)&&Je.push(e)&&!fn.__r++||Go!==O.debounceRendering)&&((Go=O.debounceRendering)||qo)(fn)}function fn(){var e,t,n,r,i,o,s,a;for(Je.sort(Er);e=Je.shift();)e.__d&&(t=Je.length,r=void 0,o=(i=(n=e).__v).__e,s=[],a=[],n.__P&&((r=ke({},i)).__v=i.__v+1,O.vnode&&O.vnode(r),Or(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,o??ft(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,rs(s,r,a),r.__e!=o&&Jo(r)),Je.length>t&&Je.sort(Er));fn.__r=0}function Qo(e,t,n,r,i,o,s,a,c,l,f){var u,d,p,h,m,g=r&&r.__k||Xo,v=t.length;for(n.__d=c,Vf(n,t,g),c=n.__d,u=0;u<v;u++)(p=n.__k[u])!=null&&(d=p.__i===-1?Mt:g[p.__i]||Mt,p.__i=u,Or(e,p,d,i,o,s,a,c,l,f),h=p.__e,p.ref&&d.ref!=p.ref&&(d.ref&&Dr(d.ref,null,p),f.push(p.ref,p.__c||h,p)),m==null&&h!=null&&(m=h),65536&p.__u||d.__k===p.__k?c=es(p,c,e):typeof p.type=="function"&&p.__d!==void 0?c=p.__d:h&&(c=h.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=c,n.__e=m}function Vf(e,t,n){var r,i,o,s,a,c=t.length,l=n.length,f=l,u=0;for(e.__k=[],r=0;r<c;r++)(i=t[r])!=null&&typeof i!="boolean"&&typeof i!="function"?(s=r+u,(i=e.__k[r]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Lt(null,i,null,null,null):un(i)?Lt(ae,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?Lt(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,o=null,(a=i.__i=Bf(i,n,s,f))!==-1&&(f--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&u--,typeof i.type!="function"&&(i.__u|=65536)):a!==s&&(a==s-1?u--:a==s+1?u++:(a>s?u--:u++,i.__u|=65536))):i=e.__k[r]=null;if(f)for(r=0;r<l;r++)(o=n[r])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=ft(o)),is(o,o))}function es(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=es(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=ft(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Me(e,t){return t=t||[],e==null||typeof e=="boolean"||(un(e)?e.some(function(n){Me(n,t)}):t.push(e)),t}function Bf(e,t,n,r){var i=e.key,o=e.type,s=n-1,a=n+1,c=t[n];if(c===null||c&&i==c.key&&o===c.type&&!(131072&c.__u))return n;if(r>(c!=null&&!(131072&c.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((c=t[s])&&!(131072&c.__u)&&i==c.key&&o===c.type)return s;s--}if(a<t.length){if((c=t[a])&&!(131072&c.__u)&&i==c.key&&o===c.type)return a;a++}}return-1}function ts(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Nf.test(t)?n:n+"px"}function dn(e,t,n,r,i){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||ts(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||ts(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=xr,e.addEventListener(t,o?Cr:Pr,o)):e.removeEventListener(t,o?Cr:Pr,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function ns(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=xr++;else if(t.t<n.u)return;return n(O.event?O.event(t):t)}}}function Or(e,t,n,r,i,o,s,a,c,l){var f,u,d,p,h,m,g,v,y,_,A,b,E,D,S,C,P=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),o=[a=t.__e=n.__e]),(f=O.__b)&&f(t);e:if(typeof P=="function")try{if(v=t.props,y="prototype"in P&&P.prototype.render,_=(f=P.contextType)&&r[f.__c],A=f?_?_.props.value:f.__:r,n.__c?g=(u=t.__c=n.__c).__=u.__E:(y?t.__c=u=new P(v,A):(t.__c=u=new ge(v,A),u.constructor=P,u.render=If),_&&_.sub(u),u.props=v,u.state||(u.state={}),u.context=A,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),y&&u.__s==null&&(u.__s=u.state),y&&P.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=ke({},u.__s)),ke(u.__s,P.getDerivedStateFromProps(v,u.__s))),p=u.props,h=u.state,u.__v=t,d)y&&P.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),y&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(y&&P.getDerivedStateFromProps==null&&v!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,A),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,A)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(M){M&&(M.__=t)}),b=0;b<u._sb.length;b++)u.__h.push(u._sb[b]);u._sb=[],u.__h.length&&s.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,A),y&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,h,m)})}if(u.context=A,u.props=v,u.__P=e,u.__e=!1,E=O.__r,D=0,y){for(u.state=u.__s,u.__d=!1,E&&E(t),f=u.render(u.props,u.state,u.context),S=0;S<u._sb.length;S++)u.__h.push(u._sb[S]);u._sb=[]}else do u.__d=!1,E&&E(t),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++D<25);u.state=u.__s,u.getChildContext!=null&&(r=ke(ke({},r),u.getChildContext())),y&&!d&&u.getSnapshotBeforeUpdate!=null&&(m=u.getSnapshotBeforeUpdate(p,h)),Qo(e,un(C=f!=null&&f.type===ae&&f.key==null?f.props.children:f)?C:[C],t,n,r,i,o,s,a,c,l),u.base=t.__e,t.__u&=-161,u.__h.length&&s.push(u),g&&(u.__E=u.__=null)}catch(M){if(t.__v=null,c||o!=null){for(t.__u|=c?160:128;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;O.__e(M,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Ff(n.__e,t,n,r,i,o,s,c,l);(f=O.diffed)&&f(t)}function rs(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Dr(n[r],n[++r],n[++r]);O.__c&&O.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){O.__e(o,i.__v)}})}function Ff(e,t,n,r,i,o,s,a,c){var l,f,u,d,p,h,m,g=n.props,v=t.props,y=t.type;if(y==="svg"?i="http://www.w3.org/2000/svg":y==="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(l=0;l<o.length;l++)if((p=o[l])&&"setAttribute"in p==!!y&&(y?p.localName===y:p.nodeType===3)){e=p,o[l]=null;break}}if(e==null){if(y===null)return document.createTextNode(v);e=document.createElementNS(i,y,v.is&&v),a&&(O.__m&&O.__m(t,o),a=!1),o=null}if(y===null)g===v||a&&e.data===v||(e.data=v);else{if(o=o&&kt.call(e.childNodes),g=n.props||Mt,!a&&o!=null)for(g={},l=0;l<e.attributes.length;l++)g[(p=e.attributes[l]).name]=p.value;for(l in g)if(p=g[l],l!="children"){if(l=="dangerouslySetInnerHTML")u=p;else if(!(l in v)){if(l=="value"&&"defaultValue"in v||l=="checked"&&"defaultChecked"in v)continue;dn(e,l,null,p,i)}}for(l in v)p=v[l],l=="children"?d=p:l=="dangerouslySetInnerHTML"?f=p:l=="value"?h=p:l=="checked"?m=p:a&&typeof p!="function"||g[l]===p||dn(e,l,p,g[l],i);if(f)a||u&&(f.__html===u.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(u&&(e.innerHTML=""),Qo(e,un(d)?d:[d],t,n,r,y==="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&ft(n,0),a,c),o!=null)for(l=o.length;l--;)Yo(o[l]);a||(l="value",y==="progress"&&h==null?e.removeAttribute("value"):h!==void 0&&(h!==e[l]||y==="progress"&&!h||y==="option"&&h!==g[l])&&dn(e,l,h,g[l],i),l="checked",m!==void 0&&m!==e[l]&&dn(e,l,m,g[l],i))}return e}function Dr(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){O.__e(i,n)}}function is(e,t,n){var r,i;if(O.unmount&&O.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Dr(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){O.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&is(r[i],t,n||typeof e.type!="function");n||Yo(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function If(e,t,n){return this.constructor(e,n)}function dt(e,t,n){var r,i,o,s;O.__&&O.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],s=[],Or(t,e=(!r&&n||t).__k=ne(ae,null,[e]),i||Mt,Mt,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?kt.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,s),rs(o,e,s)}function os(e,t){dt(e,t,os)}function jf(e,t,n){var r,i,o,s,a=ke({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?i=t[o]:a[o]=t[o]===void 0&&s!==void 0?s[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?kt.call(arguments,2):n),Lt(e.type,a,r||e.key,i||e.ref,null)}function Ce(e,t){var n={__c:t="__cC"+Ko++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,o;return this.getChildContext||(i=new Set,(o={})[t]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&i.forEach(function(a){a.__e=!0,Rr(a)})},this.sub=function(s){i.add(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){i&&i.delete(s),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}kt=Xo.slice,O={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},Wo=0,ge.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ke({},this.state),typeof e=="function"&&(e=e(ke({},n),this.props)),e&&ke(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Rr(this))},ge.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Rr(this))},ge.prototype.render=ae,Je=[],qo=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Er=function(e,t){return e.__v.__b-t.__v.__b},fn.__r=0,xr=0,Pr=ns(!1),Cr=ns(!0),Ko=0;var Uf=0;function T(e,t,n,r,i,o){t||(t={});var s,a,c=t;"ref"in t&&(s=t.ref,delete t.ref);var l={type:e,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Uf,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)c[a]===void 0&&(c[a]=s[a]);return O.vnode&&O.vnode(l),l}var Le,B,kr,ss,ht=0,as=[],U=O,cs=U.__b,ls=U.__r,us=U.diffed,fs=U.__c,ds=U.unmount,hs=U.__;function Qe(e,t){U.__h&&U.__h(B,e,ht||t),ht=0;var n=B.__H||(B.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function W(e){return ht=1,hn(ms,e)}function hn(e,t,n){var r=Qe(Le++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ms(void 0,t),function(a){var c=r.__N?r.__N[0]:r.__[0],l=r.t(c,a);c!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=B,!B.u)){var i=function(a,c,l){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(d){return!!d.__c});if(f.every(function(d){return!d.__N}))return!o||o.call(this,a,c,l);var u=!1;return f.forEach(function(d){if(d.__N){var p=d.__[0];d.__=d.__N,d.__N=void 0,p!==d.__[0]&&(u=!0)}}),!(!u&&r.__c.props===a)&&(!o||o.call(this,a,c,l))};B.u=!0;var o=B.shouldComponentUpdate,s=B.componentWillUpdate;B.componentWillUpdate=function(a,c,l){if(this.__e){var f=o;o=void 0,i(a,c,l),o=f}s&&s.call(this,a,c,l)},B.shouldComponentUpdate=i}return r.__N||r.__}function Y(e,t){var n=Qe(Le++,3);!U.__s&&Nr(n.__H,t)&&(n.__=e,n.i=t,B.__H.__h.push(n))}function je(e,t){var n=Qe(Le++,4);!U.__s&&Nr(n.__H,t)&&(n.__=e,n.i=t,B.__h.push(n))}function H(e){return ht=5,re(function(){return{current:e}},[])}function pn(e,t,n){ht=6,je(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function re(e,t){var n=Qe(Le++,7);return Nr(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Z(e,t){return ht=8,re(function(){return e},t)}function j(e){var t=B.context[e.__c],n=Qe(Le++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(B)),t.props.value):e.__}function Mr(e,t){U.useDebugValue&&U.useDebugValue(t?t(e):e)}function Hf(e){var t=Qe(Le++,10),n=W();return t.__=e,B.componentDidCatch||(B.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function pt(){var e=Qe(Le++,11);if(!e.__){for(var t=B.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function zf(){for(var e;e=as.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(mn),e.__H.__h.forEach(Lr),e.__H.__h=[]}catch(t){e.__H.__h=[],U.__e(t,e.__v)}}U.__b=function(e){B=null,cs&&cs(e)},U.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),hs&&hs(e,t)},U.__r=function(e){ls&&ls(e),Le=0;var t=(B=e.__c).__H;t&&(kr===B?(t.__h=[],B.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(mn),t.__h.forEach(Lr),t.__h=[],Le=0)),kr=B},U.diffed=function(e){us&&us(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(as.push(t)!==1&&ss===U.requestAnimationFrame||((ss=U.requestAnimationFrame)||$f)(zf)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),kr=B=null},U.__c=function(e,t){t.some(function(n){try{n.__h.forEach(mn),n.__h=n.__h.filter(function(r){return!r.__||Lr(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],U.__e(r,n.__v)}}),fs&&fs(e,t)},U.unmount=function(e){ds&&ds(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{mn(r)}catch(i){t=i}}),n.__H=void 0,t&&U.__e(t,n.__v))};var ps=typeof requestAnimationFrame=="function";function $f(e){var t,n=function(){clearTimeout(r),ps&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ps&&(t=requestAnimationFrame(n))}function mn(e){var t=B,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),B=t}function Lr(e){var t=B;e.__c=e.__(),B=t}function Nr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function ms(e,t){return typeof t=="function"?t(e):t}function Vr(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function gn(e,t){this.props=e,this.context=t}function gs(e,t){function n(i){var o=this.props.ref,s=o==i.ref;return!s&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!s:Vr(this.props,i)}function r(i){return this.shouldComponentUpdate=n,ne(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(gn.prototype=new ge).isPureReactComponent=!0,gn.prototype.shouldComponentUpdate=function(e,t){return Vr(this.props,e)||Vr(this.state,t)};var vs=O.__b;O.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),vs&&vs(e)};var Wf=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Nt(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var i=e(n,r);return n.ref=r,i}return t.$$typeof=Wf,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ys=function(e,t){return e==null?null:Me(Me(e).map(t))},Br={map:ys,forEach:ys,count:function(e){return e?Me(e).length:0},only:function(e){var t=Me(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Me},Gf=O.__e;O.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}Gf(e,t,n,r)};var ws=O.unmount;function _s(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=function(r,i){for(var o in i)r[o]=i[o];return r}({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return _s(r,t,n)})),e}function bs(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return bs(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Vt(){this.__u=0,this.t=null,this.__b=null}function As(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ts(e){var t,n,r;function i(o){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return ne(n,o)}return i.displayName="Lazy",i.__f=!0,i}function mt(){this.u=null,this.o=null}O.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ws&&ws(e)},(Vt.prototype=new ge).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=As(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=bs(c,c.__c.__P,c.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.t.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Vt.prototype.componentWillUnmount=function(){this.t=[]},Vt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=_s(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&ne(ae,null,e.fallback);return i&&(i.__u&=-33),[ne(ae,null,t.__a?null:e.children),i]};var Ss=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function qf(e){return this.getChildContext=function(){return e.context},e.children}function Kf(e){var t=this,n=e.i;t.componentWillUnmount=function(){dt(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),dt(ne(qf,{context:t.context},e.__v),t.l)}function vn(e,t){var n=ne(Kf,{__v:e,i:t});return n.containerInfo=t,n}(mt.prototype=new ge).__a=function(e){var t=this,n=As(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Ss(t,e,r)):i()};n?n(o):o()}},mt.prototype.render=function(e){this.u=null,this.o=new Map;var t=Me(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},mt.prototype.componentDidUpdate=mt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Ss(e,n,t)})};var Es=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Xf=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Yf=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Zf=/[A-Z0-9]/g,Jf=typeof document<"u",Qf=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function xs(e,t,n){return t.__k==null&&(t.textContent=""),dt(e,t),typeof n=="function"&&n(),e?e.__c:null}function Ps(e,t,n){return os(e,t),typeof n=="function"&&n(),e?e.__c:null}ge.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ge.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Cs=O.event;function ed(){}function td(){return this.cancelBubble}function nd(){return this.defaultPrevented}O.event=function(e){return Cs&&(e=Cs(e)),e.persist=ed,e.isPropagationStopped=td,e.isDefaultPrevented=nd,e.nativeEvent=e};var Fr,rd={enumerable:!1,configurable:!0,get:function(){return this.class}},Rs=O.vnode;O.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={},o=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||Jf&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var c=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":c==="translate"&&a==="no"?a=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?s="ondblclick":c!=="onchange"||r!=="input"&&r!=="textarea"||Qf(n.type)?c==="onfocus"?s="onfocusin":c==="onblur"?s="onfocusout":Yf.test(s)&&(s=c):c=s="oninput":o&&Xf.test(s)?s=s.replace(Zf,"-$&").toLowerCase():a===null&&(a=void 0),c==="oninput"&&i[s=c]&&(s="oninputCapture"),i[s]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Me(n.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=Me(n.children).forEach(function(l){l.props.selected=i.multiple?i.defaultValue.indexOf(l.props.value)!=-1:i.defaultValue==l.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",rd)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Es,Rs&&Rs(e)};var Os=O.__r;O.__r=function(e){Os&&Os(e),Fr=e.__c};var Ds=O.diffed;O.diffed=function(e){Ds&&Ds(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Fr=null};var ks={ReactCurrentDispatcher:{current:{readContext:function(e){return Fr.__n[e.__c].props.value},useCallback:Z,useContext:j,useDebugValue:Mr,useDeferredValue:jr,useEffect:Y,useId:pt,useImperativeHandle:pn,useInsertionEffect:Bt,useLayoutEffect:je,useMemo:re,useReducer:hn,useRef:H,useState:W,useSyncExternalStore:Hr,useTransition:Ur}}},id="18.3.1";function Ms(e){return ne.bind(null,e)}function gt(e){return!!e&&e.$$typeof===Es}function Ls(e){return gt(e)&&e.type===ae}function Ns(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function yn(e){return gt(e)?jf.apply(null,arguments):e}function Vs(e){return!!e.__k&&(dt(null,e),!0)}function Bs(e){return e&&(e.base||e.nodeType===1&&e)||null}var Fs=function(e,t){return e(t)},Is=function(e,t){return e(t)},js=ae;function Ir(e){e()}function jr(e){return e}function Ur(){return[!1,Ir]}var Bt=je,Us=gt;function Hr(e,t){var n=t(),r=W({h:{__:n,v:t}}),i=r[0].h,o=r[1];return je(function(){i.__=n,i.v=t,zr(i)&&o({h:i})},[e,n,t]),Y(function(){return zr(i)&&o({h:i}),e(function(){zr(i)&&o({h:i})})},[e]),n}function zr(e){var t,n,r=e.v,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var od={useState:W,useId:pt,useReducer:hn,useEffect:Y,useLayoutEffect:je,useInsertionEffect:Bt,useTransition:Ur,useDeferredValue:jr,useSyncExternalStore:Hr,startTransition:Ir,useRef:H,useImperativeHandle:pn,useMemo:re,useCallback:Z,useContext:j,useDebugValue:Mr,version:"18.3.1",Children:Br,render:xs,hydrate:Ps,unmountComponentAtNode:Vs,createPortal:vn,createElement:ne,createContext:Ce,createFactory:Ms,cloneElement:yn,createRef:Zo,Fragment:ae,isValidElement:gt,isElement:Us,isFragment:Ls,isMemo:Ns,findDOMNode:Bs,Component:ge,PureComponent:gn,memo:gs,forwardRef:Nt,flushSync:Is,unstable_batchedUpdates:Fs,StrictMode:js,Suspense:Vt,SuspenseList:mt,lazy:Ts,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ks};const sd=Object.freeze(Object.defineProperty({__proto__:null,Children:Br,Component:ge,Fragment:ae,PureComponent:gn,StrictMode:js,Suspense:Vt,SuspenseList:mt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ks,cloneElement:yn,createContext:Ce,createElement:ne,createFactory:Ms,createPortal:vn,createRef:Zo,default:od,findDOMNode:Bs,flushSync:Is,forwardRef:Nt,hydrate:Ps,isElement:Us,isFragment:Ls,isMemo:Ns,isValidElement:gt,lazy:Ts,memo:gs,render:xs,startTransition:Ir,unmountComponentAtNode:Vs,unstable_batchedUpdates:Fs,useCallback:Z,useContext:j,useDebugValue:Mr,useDeferredValue:jr,useEffect:Y,useErrorBoundary:Hf,useId:pt,useImperativeHandle:pn,useInsertionEffect:Bt,useLayoutEffect:je,useMemo:re,useReducer:hn,useRef:H,useState:W,useSyncExternalStore:Hr,useTransition:Ur,version:id},Symbol.toStringTag,{value:"Module"}));var G=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ad(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var zs={exports:{}},cd="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ld=cd,ud=ld;function $s(){}function Ws(){}Ws.resetWarningCache=$s;var fd=function(){function e(r,i,o,s,a,c){if(c!==ud){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ws,resetWarningCache:$s};return n.PropTypes=n,n};zs.exports=fd();var dd=zs.exports;const Ue=Hs(dd);function hd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wn(e,t,n){return t&&hd(e.prototype,t),e}function ce(){return ce=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},ce.apply(this,arguments)}function pd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$r(e,t)}function $r(e,t){return $r=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},$r(e,t)}function md(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 gd(e,t){if(e){if(typeof e=="string")return Gs(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 Gs(e,t)}}function Gs(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 vt(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=gd(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. | |
| In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qs(e){var t=H(null);function n(r){!r||r===t.current||(t.current=r,e(r))}return n}function vd(e){var t=H(e);return re(function(){function n(i){typeof i=="function"?t.current=i(t.current):t.current=i}function r(){return t.current}return[r,n]},[])}function yd(){var e=H([]);return re(function(){function t(){return e.current.length>0}function n(){for(var i=vt(e.current),o;!(o=i()).done;){var s=o.value;s()}e.current=[]}function r(i){e.current.push(i)}return{hasEventSubscriptions:t,removeAllEventSubscriptions:n,addEventSubscription:r}},[])}var Wr=typeof window<"u"?je:Y;function wd(e,t){var n=H(e);return t?(n.current=e,n):(n.current=null,n)}function Ft(e){return parseFloat(e.replace("px",""))}function Gr(e,t,n){return e<t?t:e>n?n:e}function Ks(e){return e!=null}function Xs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=vt(t),o;!(o=i()).done;){var s=o.value;s&&(typeof s=="function"?s(r):s.current=r)}}}function _d(e,t){if(!(typeof e>"u"))return t||e.ResizeObserver}function Ys(e,t){var n=[];if(!e||!t||e===document.body)return n;var r=t.getComputedStyle(e),i=r.overflow,o=r.overflowX,s=r.overflowY;return[i,o,s].some(function(a){return["auto","scroll"].includes(a)})&&n.push(e),[].concat(n,Ys(e.parentElement,t))}function _n(e){return"react-laag: Could not find a valid reference for the "+e+` element. There might be 2 causes: | |
| - Make sure that the 'ref' is set correctly on the `+e+` element when isOpen: true. Also make sure your component forwards the ref with "forwardRef()". | |
| - Make sure that you are actually rendering the `+e+" when the isOpen prop is set to true"}function bd(e){var t=e.enabled,n=e.onChange,r=e.environment,i=e.ResizeObserverPolyfill,o=e.overflowContainer,s=e.triggerOption,a=_d(r,i);Y(function(){},[a]);var c=H(null),l=!!s,f=vd({scrollContainers:[],trigger:null,layer:null}),u=f[0],d=f[1],p=yd(),h=p.hasEventSubscriptions,m=p.addEventSubscription,g=p.removeAllEventSubscriptions,v=Z(function(){var C=u(),P=C.layer,M=C.trigger,V=C.scrollContainers,L=V[0];if(!P)throw new Error(_n("layer"));if(!M&&!l)throw new Error(_n("trigger"));var he={top:0,left:0};if(L){var pe=L.scrollLeft,Pe=L.scrollTop;he={top:Pe,left:pe}}else{var F=r.scrollX,I=r.scrollY;he={top:I,left:F}}var me={left:0,top:0};if(L){var te=r.getComputedStyle(L),Ze=te.borderLeftWidth,De=te.borderTopWidth;me={left:Ft(Ze)||0,top:Ft(De)||0}}n({layer:P,trigger:M,scrollContainers:V,arrow:c.current},he,me)},[u,n,r,c,l]),y=Z(function(){var C=u(),P=C.trigger,M=C.layer,V=C.scrollContainers;if(!M)throw new Error(_n("layer"));if(!P&&!l)throw new Error(_n("trigger"));if(a){for(var L=!1,he=function(){if(!L){L=!0;return}v()},pe=new a(he),Pe=0,F=[P,M,document.body];Pe<F.length;Pe++){var I=F[Pe];I&&pe.observe(I)}m(function(){for(var we=0,Ae=[P,M,document.body];we<Ae.length;we++){var lt=Ae[we];lt&&pe.unobserve(lt)}pe.disconnect()})}for(var me=[r].concat(V),te=function(){var Ae=De.value;Ae.addEventListener("scroll",v),m(function(){return Ae.removeEventListener("scroll",v)})},Ze=vt(me),De;!(De=Ze()).done;)te()},[u,m,v,r,a,l]),_=Z(function(S,C){t&&S&&S!==C&&(g(),y(),v())},[g,y,v,t]),A=qs(Z(function(S){var C=u(),P=C.layer;d(function(M){return ce({},M,{layer:S})}),_(P,S)},[u,d,_])),b=Z(function(C){var P=Ys(C,r),M=P[0];if(M){var V=r.getComputedStyle(M).position,L=["relative","absolute","fixed"].includes(V)||o;L||(M.style.position="relative")}return P},[r,o]),E=qs(Z(function(S){var C=b(S),P=u(),M=P.trigger;d(function(V){return ce({},V,{trigger:S,scrollContainers:C})}),_(M,S)},[u,d,_,b])),D=s==null||s.getParent==null?void 0:s.getParent();return Wr(function(){D&&d(function(S){return ce({},S,{scrollContainers:b(D)})})},[D,d,b]),Wr(function(){return t&&(h()||y()),function(){h()&&g()}},[t,h,y,g]),Wr(function(){t&&v()}),{triggerRef:E,layerRef:A,arrowRef:c,closestScrollContainer:u().scrollContainers[0]||null}}var Zs=Ce({});function Ad(e){var t=e.children,n=e.registrations,r=Z(function(o){return n.current.add(o),function(){return n.current.delete(o)}},[n]);return ne(Zs.Provider,{value:r},t)}function Td(e,t){for(var n=vt(e),r;!(r=n()).done;){var i=r.value.shouldCloseWhenClickedOutside;if(!i(t))return!1}return!0}function Sd(e){var t=e.isOpen,n=e.onOutsideClick,r=e.onParentClose,i=H(null),o=H(null),s=H(new Set),a=j(Zs),c=Z(function(f){var u=f.target,d=i.current&&i.current.contains(u),p=o.current&&o.current.contains(u),h=Td(s.current,f);return p&&h&&s.current.forEach(function(m){var g=m.closeChild;return g()}),!d&&!p&&h},[i,o,s]);return Y(function(){if(typeof a=="function")return a({shouldCloseWhenClickedOutside:c,closeChild:function(){r&&r()}})},[a,c,r,s]),Y(function(){var l=typeof a=="function",f=!t||!n||l;if(f)return;function u(d){c(d)&&n()}return document.addEventListener("click",u,!0),function(){return document.removeEventListener("click",u,!0)}},[t,n,c,a]),Y(function(){t||s.current.forEach(function(l){var f=l.closeChild;return f()})},[t]),{closeOnOutsideClickRefs:{trigger:i,layer:o},registrations:s}}var Ed=["bottom-start","bottom-end","bottom-center","top-start","top-center","top-end","left-end","left-center","left-start","right-end","right-center","right-start","center"],xd={top:"bottom",left:"right",bottom:"top",right:"left",center:"center"},Pd=function(){function e(n,r,i,o,s,a,c,l,f){this.prop=void 0,this.opposite=void 0,this.isHorizontal=void 0,this.sizeProp=void 0,this.oppositeSizeProp=void 0,this.cssProp=void 0,this.oppositeCssProp=void 0,this.isCenter=void 0,this.isPush=void 0,this.prop=n,this.opposite=r,this.isHorizontal=i,this.sizeProp=o,this.oppositeSizeProp=s,this.cssProp=a,this.oppositeCssProp=c,this.isCenter=l,this.isPush=f}var t=e.prototype;return t.factor=function(r){return r*(this.isPush?1:-1)},t.isOppositeDirection=function(r){return this.isHorizontal!==r.isHorizontal},e}();function yt(e,t){t===void 0&&(t=!0);var n=["left","right"].includes(e);return new Pd(e,t?yt(xd[e],!1):null,n,n?"width":"height",n?"height":"width",n?"left":"top",n?"top":"left",e==="center",!["right","bottom"].includes(e))}var X={top:yt("top"),bottom:yt("bottom"),left:yt("left"),right:yt("right")},q=ce({},X,{center:yt("center")}),bn=["top","left","bottom","right"],qr=function(){function e(t){return this.top=void 0,this.left=void 0,this.right=void 0,this.bottom=void 0,Object.assign(this,t)}return e.mergeSmallestSides=function(n){var r=n[0],i=n.slice(1);if(!r)throw new Error("Please provide at least 1 bounds objects in order to merge");for(var o=Object.fromEntries(bn.map(function(d){return[d,r[d]]})),s=vt(i),a;!(a=s()).done;)for(var c=a.value,l=vt(bn),f;!(f=l()).done;){var u=f.value;o[u]=Math.min(o[u],c[u])}return new e(o)},wn(e,[{key:"allSidesArePositive",get:function(){var n=this;return bn.every(function(r){return n[r]>=0})}},{key:"negativeSides",get:function(){var n=this;return Object.fromEntries(bn.filter(function(r){return n[r]<0}).map(function(r){return[r,n[r]]}))}}]),e}();function Js(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(r,i){return r+(i?Ft(i):0)},0)}function Kr(e){var t=e.top,n=e.left,r=e.right,i=e.bottom,o=e.width,s=e.height;return{top:t,left:n,right:r,bottom:i,width:o,height:s}}var Cd={top:0,left:0,right:0,bottom:0,width:0,height:0},Te=function(){e.create=function(r){return new e(r)},e.fromElement=function(r,i){i===void 0&&(i={});var o=i,s=o.withTransform,a=s===void 0?!0:s,c=o.environment,l=c===void 0?window:c,f=o.withScrollbars,u=f===void 0?!0:f,d=Kr(r.getBoundingClientRect()),p=new e(d);if(!a){var h=l.getComputedStyle(r),m=h.width,g=h.height,v=h.boxSizing,y=h.borderLeft,_=h.borderRight,A=h.borderTop,b=h.borderBottom,E=h.paddingLeft,D=h.paddingRight,S=h.paddingTop,C=h.paddingBottom,P=v==="border-box"?Ft(m):Js(m,y,_,E,D),M=v==="border-box"?Ft(g):Js(g,A,b,S,C);p=new e(ce({},p,{width:P,height:M}))}if(!u){var V=p.width-r.clientWidth,L=p.height-r.clientHeight;return p.substract({right:V,bottom:L})}return p},e.empty=function(){return new e},e.fromWindow=function(r){var i,o=(i=r==null?void 0:r.document.scrollingElement)!=null?i:r==null?void 0:r.document.documentElement,s=o??{},a=s.clientWidth,c=a===void 0?0:a,l=s.clientHeight,f=l===void 0?0:l;return new e({width:c,height:f,right:c,bottom:f})};function e(n){return n===void 0&&(n={}),this.top=void 0,this.left=void 0,this.right=void 0,this.bottom=void 0,this.width=void 0,this.height=void 0,Object.assign(this,Cd,n)}var t=e.prototype;return t.toObject=function(){return Kr(this)},t.merge=function(r){var i=this.toObject();return new e(ce({},i,typeof r=="function"?r(i):r))},t.substract=function(r){for(var i=this.toObject(),o=Object.entries(r),s=0,a=o;s<a.length;s++){var c=a[s],l=c[0],f=c[1];if(l in X){var u=X[l];i[l]+=u.factor(f),i[u.isHorizontal?"width":"height"]-=f}else i[l]-=f||0}return new e(i)},t.offsetsTo=function(r){return new qr({top:r.top-this.top,bottom:this.bottom-r.bottom,left:r.left-this.left,right:this.right-r.right})},t.mapSides=function(r){for(var i=this.toObject(),o=Object.values(X),s=0,a=o;s<a.length;s++){var c=a[s];i[c.prop]=r(c,i[c.prop])}return new e(i)},wn(e,[{key:"surface",get:function(){return this.width*this.height}}]),e}(),Qs=function(){function e(n,r,i,o,s){this.primary=void 0,this.secondary=void 0,this.offsets=void 0,this.subjectsBounds=void 0,this._cachedLayerBounds=null,this._cachedContainerOffsets=null,this.primary=n,this.secondary=r,this.offsets=s,this.setSubjectsBounds(i,o)}var t=e.prototype;return t.setSubjectsBounds=function(r,i){if(!i){this.subjectsBounds=r;return}var o=typeof i=="function"?i(this.primary.prop):i;this.subjectsBounds=r.merge({layer:ce({},r.layer,o)})},t.getLayerBounds=function(r){if(r===void 0&&(r=0),this._cachedLayerBounds&&r===0)return this._cachedLayerBounds;var i=this.primary,o=this.secondary,s=this.subjectsBounds,a=s.trigger,c=s.layer,l=s.arrow,f=i.isHorizontal,u=i.oppositeCssProp,d=i.oppositeSizeProp,p=i.prop,h=i.opposite,m=Te.empty();m[h.prop]=a[p]-i.factor(this.offsets.trigger),m[p]=m[h.prop]-i.factor(c[i.sizeProp]);var g=this.offsets.arrow*2,v=a[u]-(c[d]-l[d])+g,y=a[u]+(a[d]-l[d])-g;if(o.isPush||(v+=c[d],y+=c[d]),o.isCenter){var _=(f?X.top:X.left).prop,A=(f?X.bottom:X.right).prop;m[_]=Gr(a[_]+a[d]/2-c[d]/2+r,v,y),m[A]=m[_]+c[d]}else{var b=o,E=a[b.prop],D=E<v?v-E:E>y?y-E:0;m[b.prop]=Gr(E+r+D,v,y),m[b.opposite.prop]=m[b.prop]+o.factor(c[d])}m.width=m.right-m.left,m.height=m.bottom-m.top;var S=Te.create(m);return r===0&&(this._cachedLayerBounds=S),S},t.getLayerCollisionBounds=function(){var r=this.offsets.container;return this.getLayerBounds().mapSides(function(i,o){return o-=i.factor(r)}).merge(function(i){var o=i.width,s=i.height;return{width:o+r*2,height:s+r*2}})},t.getContainerOffsets=function(r){if(this._cachedContainerOffsets&&!r)return this._cachedContainerOffsets;var i=this.subjectsBounds.merge({layer:r||this.getLayerCollisionBounds()}),o=qr.mergeSmallestSides(i.layerOffsetsToScrollContainers);return r||(this._cachedContainerOffsets=o),o},wn(e,[{key:"type",get:function(){return this.primary.prop+"-"+(this.secondary.prop==="center"?"center":["bottom","right"].includes(this.secondary.prop)?"end":"start")}},{key:"triggerIsBigger",get:function(){var r=this.secondary.isHorizontal,i=this.subjectsBounds,o=i.triggerHasBiggerWidth,s=i.triggerHasBiggerHeight;return r&&o||!r&&s}},{key:"fitsContainer",get:function(){return this.getContainerOffsets().allSidesArePositive}},{key:"visibleSurface",get:function(){var r=this.getLayerBounds(),i=this.getContainerOffsets(r),o=i.negativeSides;for(var s in o)o[s]=-o[s];return r.substract(o).surface}},{key:"secondaryOffsetSide",get:function(){var r,i,o=this,s=this.getContainerOffsets(),a=(r=(i=Object.entries(s.negativeSides).map(function(l){var f=l[0],u=l[1];return[X[f],u]}).filter(function(l){var f=l[0];return o.primary.isOppositeDirection(f)}).sort(function(l,f){var u=l[1],d=f[1];return d-u}))==null?void 0:i[0])!=null?r:[],c=a[0];return c||null}}]),e}(),ea=function(e){pd(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.getLayerBounds=function(){var i=this.subjectsBounds,o=i.trigger,s=i.layer,a=Te.empty();return a.top=o.top+o.height/2-s.height/2,a.bottom=a.top+s.height,a.left=o.left+o.width/2-s.width/2,a.right=a.left+s.width,a.width=a.right-a.left,a.height=a.bottom-a.top,a},t}(Qs);function Rd(e,t,n){var r=e.layer,i=e.trigger,o=e.arrow,s=t.primary.oppositeSizeProp,a=t.primary.isHorizontal?["top","bottom"]:["left","right"],c=a[0],l=a[1],f=r[c]+r[s]/2-i[c]-o[s]/2-n,u=r[l]-r[s]/2-i[l]+o[s]/2+n;return(f<0?-f:0)+(u>0?-u:0)}var ta={position:"absolute",willChange:"top, left",left:null,right:null,top:null,bottom:null};function Od(e,t,n){var r;if(t.primary.isCenter)return ta;var i=e.layer,o=e.trigger,s=e.arrow,a=t.primary.oppositeSizeProp,c=o[a]>i[a],l=n+s[a]/2,f=i[a]-s[a]/2-n,u=Rd(e,t,n),d=t.primary.prop,p=t.primary.oppositeCssProp,h=c?i[a]/2+u:o[p]+o[a]/2-i[p];return ce({},ta,(r={},r[d]="100%",r[p]=Gr(h,l,f),r))}var na=function(){function e(n,r,i){this.placements=void 0,this.config=void 0,this.subjectsBounds=void 0,this.placements=n,this.config=r,this.subjectsBounds=i}e.getSidesFromPlacementType=function(r){var i=r.split("-"),o=i[0],s=i[1],a=X[o],c;return s==="center"?c=q.center:a.isHorizontal?c=s==="start"?q.top:q.bottom:c=s==="start"?q.left:q.right,[a,c]},e.create=function(r,i){var o={arrow:i.arrowOffset,container:i.containerOffset,trigger:i.triggerOffset};function s(a){a===void 0&&(a=i.placement);var c=e.getSidesFromPlacementType(a),l=c[0],f=c[1],u=X[l.isHorizontal?i.preferY:i.preferX],d=!l.isHorizontal&&r.triggerHasBiggerWidth||l.isHorizontal&&r.triggerHasBiggerHeight;function p(m,g){return new Qs(m,g,r,i.layerDimensions,o)}var h=[];return h[0]=p(l,f),h[1]=p(l,f.isCenter?u:q.center),h[2]=p(l,q[(f.opposite.isCenter?u.opposite:f.opposite).prop]),h[3]=p(u,d?l:q[l.opposite.prop]),h[4]=p(u,q.center),h[5]=p(u,d?q[l.opposite.prop]:l),h[6]=p(X[u.opposite.prop],d?l:q[l.opposite.prop]),h[7]=p(X[u.opposite.prop],q.center),h[8]=p(X[u.opposite.prop],d?q[l.opposite.prop]:l),h[9]=p(X[l.opposite.prop],f),h[10]=p(X[l.opposite.prop],f.isCenter?u:q.center),h[11]=p(X[l.opposite.prop],q[(f.opposite.isCenter?u.opposite:f.opposite).prop]),h=h.filter(function(m){return m.type===i.placement||i.possiblePlacements.includes(m.type)}),h}return i.placement==="center"?new e([new ea(q.center,q.center,r,i.layerDimensions,o)].concat(s(i.preferY+"-"+i.preferX)),i,r):new e(s(),i,r)};var t=e.prototype;return t.filterPlacementsBySide=function(r){return this.placements.filter(function(i){return i.primary===r})},t.findFirstPlacementThatFits=function(){return this.placements.find(function(r){return r.fitsContainer})},t.placementWithBiggestVisibleSurface=function(){var r=this.placements.map(function(o){return{placement:o,surface:o.visibleSurface}}).sort(function(o,s){return s.surface-o.surface}),i=r[0].placement;return i},t.findSuitablePlacement=function(){return this.config.auto?this.findFirstPlacementThatFits()||this.placementWithBiggestVisibleSurface():this.placements[0]},t.getSecondaryOffset=function(r){var i=this.config,o=i.auto,s=i.snap;if(!o||s||r instanceof ea)return 0;var a=this.filterPlacementsBySide(r.primary),c=a.indexOf(r)===0;if(c&&r.fitsContainer)return 0;var l=a.find(function(m){return!m.fitsContainer});if(!l)return 0;var f=l.secondaryOffsetSide;if(!f)return 0;var u=r.getContainerOffsets(),d=r.secondary,p;r.triggerIsBigger||l===r?p=f.isPush?-1:1:p=d===q.left||[q.top,q.center].includes(d)&&f.isPush?-1:1;var h=u[f.prop];return h*p},t.getStyles=function(r,i,o,s){var a={willChange:"top, left, width, height"},c=Od(this.subjectsBounds.merge({layer:r}),i,this.config.arrowOffset),l=this.config.overflowContainer?ce({},a,{position:"fixed",top:r.top,left:r.left}):ce({},a,{position:"absolute",top:r.top-this.subjectsBounds.parent.top+o.top-s.top,left:r.left-this.subjectsBounds.parent.left+o.left-s.left});return{arrow:c,layer:l}},t.getHasDisappeared=function(r){var i=this.config.overflowContainer?this.subjectsBounds.trigger:r,o=qr.mergeSmallestSides(this.subjectsBounds.offsetsToScrollContainers(i,!0)),s=Object.entries(o.negativeSides),a=s.some(function(c){var l=c[0],f=c[1],u=X[l];return f<=-i[u.sizeProp]});return a?"full":o.allSidesArePositive?null:"partial"},t.result=function(r,i){var o=this.findSuitablePlacement(),s=this.getSecondaryOffset(o),a=o.getLayerBounds(s),c=this.getStyles(a,o,r,i),l=o.primary.prop;return{styles:c,layerSide:l,placement:o,layerBounds:a,hasDisappeared:this.getHasDisappeared(a)}},e}(),Dd=function(){function e(n,r){this.overflowContainer=void 0,this.trigger=void 0,this.layer=void 0,this.arrow=void 0,this.parent=void 0,this.window=void 0,this.scrollContainers=void 0,this.overflowContainer=r,Object.assign(this,n)}e.create=function(r,i,o,s,a,c,l,f){var u=Te.fromWindow(r);return new e({layer:Te.fromElement(i,{environment:r,withTransform:!1}),trigger:f?Te.create(Kr(f())):Te.fromElement(o),arrow:a?Te.fromElement(a):Te.empty(),parent:s?Te.fromElement(s):u,window:u,scrollContainers:[u].concat(c.map(function(d){return Te.fromElement(d,{withScrollbars:!1})}))},l)};var t=e.prototype;return t.merge=function(r){return new e(ce({},this,r),this.overflowContainer)},t.offsetsToScrollContainers=function(r,i){i===void 0&&(i=!1);var o=this.overflowContainer&&!i?[this.window]:this.scrollContainers;return o.map(function(s){return s.offsetsTo(r)})},wn(e,[{key:"layerOffsetsToScrollContainers",get:function(){return this.offsetsToScrollContainers(this.layer)}},{key:"triggerHasBiggerWidth",get:function(){return this.trigger.width>this.layer.width}},{key:"triggerHasBiggerHeight",get:function(){return this.trigger.height>this.layer.height}}]),e}(),ra=null,Se={auto:!1,arrowOffset:0,containerOffset:10,triggerOffset:0,overflowContainer:!0,placement:"top-center",possiblePlacements:Ed,preferX:"right",preferY:"bottom",snap:!1,container:void 0,trigger:void 0};function kd(e){var t,n=e.isOpen,r=n===void 0?!1:n,i=e.overflowContainer,o=i===void 0?Se.overflowContainer:i,s=e.environment,a=s===void 0?typeof window<"u"?window:void 0:s,c=e.ResizeObserver,l=e.placement,f=l===void 0?Se.placement:l,u=e.possiblePlacements,d=u===void 0?Se.possiblePlacements:u,p=e.preferX,h=p===void 0?Se.preferX:p,m=e.preferY,g=m===void 0?Se.preferY:m,v=e.auto,y=v===void 0?Se.auto:v,_=e.snap,A=_===void 0?Se.snap:_,b=e.triggerOffset,E=b===void 0?Se.triggerOffset:b,D=e.containerOffset,S=D===void 0?Se.containerOffset:D,C=e.arrowOffset,P=C===void 0?Se.arrowOffset:C,M=e.container,V=M===void 0?Se.container:M,L=e.layerDimensions,he=L===void 0?null:L,pe=e.onDisappear,Pe=e.onOutsideClick,F=e.onParentClose,I=e.trigger,me=W(function(){return{layerSide:f==="center"?"center":na.getSidesFromPlacementType(f)[0].prop,styles:{layer:{position:o?"fixed":"absolute",top:0,left:0},arrow:{position:"absolute",top:0,left:0}}}}),te=me[0],Ze=me[1],De=H(null),we=wd(te,r),Ae=H({cancelled:!1});Y(function(){return function(){Ae.current.cancelled=!0}},[]);var lt=Z(function(Dt,Pw,Cw){var Rw=Dt.arrow,Ow=Dt.layer,kf=Dt.scrollContainers,Dw=Dt.trigger,kw=kf[0],Mw=Dd.create(a,Ow,Dw,kw,Rw,kf,o,I==null?void 0:I.getBounds),Lw={placement:f,possiblePlacements:d,auto:y,layerDimensions:he,arrowOffset:P,containerOffset:S,triggerOffset:E,preferX:h,preferY:g,snap:A,overflowContainer:o},zo=na.create(Mw,Lw).result(Pw,Cw),Mf=zo.hasDisappeared,Nw=zo.layerSide,Vw=zo.styles,$o={layerSide:Nw,styles:Vw};if(!we.current||Md(we.current,$o)){we.current=$o,Ae.current.cancelled=!0;var Lf={cancelled:!1};Ae.current=Lf,Promise.resolve().then(function(){Lf.cancelled||Ze($o)})}Ks(Mf)&&Ks(pe)&&pe(Mf)},[P,y,S,a,he,pe,o,f,d,h,g,A,E,we,I]),ut=bd({ResizeObserverPolyfill:c,environment:a,enabled:r,overflowContainer:o,onChange:lt,triggerOption:I}),br=ut.triggerRef,Ar=ut.layerRef,Tr=ut.arrowRef,cn=ut.closestScrollContainer,ln=Sd({isOpen:r,onOutsideClick:Pe,onParentClose:F}),Df=ln.closeOnOutsideClickRefs,Sw=ln.registrations,Ew={triggerProps:I?{}:{ref:Xs(br,Df.trigger,De)},layerProps:{ref:Xs(Ar,Df.layer),style:te.styles.layer},arrowProps:{ref:Tr,style:te.styles.arrow,layerSide:te.layerSide},layerSide:te.layerSide,triggerBounds:r?I?I.getBounds():(t=De.current)==null?void 0:t.getBoundingClientRect():null,renderLayer:function(Dt){return typeof document<"u"?vn(ne(Ad,{registrations:Sw,children:Dt}),o||!cn?Ld(V):cn):null}};return Ew}function Md(e,t){if(e.layerSide!==t.layerSide)return!0;for(var n=["position","top","left","right","bottom"],r=0,i=n;r<i.length;r++){var o=i[r];if(e.styles.layer[o]!==t.styles.layer[o]||e.styles.arrow[o]!==t.styles.arrow[o])return!0}return!1}var ia="layers";function Ld(e){var t;if(typeof e=="function"){if(t=e(),!t||!(t instanceof HTMLElement))throw new Error("react-laag: You've passed a function to the 'container' prop, but it returned no valid HTMLElement")}else if(e instanceof HTMLElement)t=e;else if(typeof e=="string"){if(t=document.getElementById(e),!t)throw new Error("react-laag: You've passed element with id '"+e+"' to the 'container' prop, but it returned no valid HTMLElement")}else{if(ra instanceof HTMLElement)return ra;t=document.getElementById(ia),t||(t=document.createElement("div"),t.id=ia,t.style.cssText=` | |
| position: absolute; | |
| top: 0px; | |
| left: 0px; | |
| right: 0px; | |
| `,document.body.appendChild(t))}return t}var Nd=["size","angle","borderWidth","borderColor","roundness","backgroundColor","layerSide","style"],An="left",Tn="top",Sn="bottom",En="right";function xn(e,t){return Math.tan(e*(Math.PI/180))*t}function Vd(e,t,n,r){var i,o=(i={},i[Sn]="0 "+-r+" "+t+" "+e,i[Tn]="0 0 "+t+" "+(e+r),i[En]=-r+" 0 "+e+" "+t,i[An]="0 0 "+(e+r)+" "+t,i);return o[n.prop]}function Bd(e,t,n,r,i){var o,s,a,c=r/10*e*2,l=(o={},o[Sn]=[0,e],o[Tn]=[0,0],o[En]=[e,t],o[An]=[0,t],o)[n.prop].join(" "),f=n.isHorizontal?"V 0":"H "+t,u=t/2,d=t/2+xn(i,e/8),p=e/8,h=(s={},s[Sn]=["C",d,p,u+c,0,u,0],s[Tn]=["C",d,e-p,u+c,e,u,e],s[En]=["C",p,t-d,0,u-c,0,u],s[An]=["C",e-p,t-d,e,u-c,e,u],s)[n.prop].join(" "),m=t/2-xn(i,e/8),g=e/8,v=(a={},a[Sn]=["C",u-c,0,m,g,l],a[Tn]=["C",u-c,e,m,e-g,l],a[En]=["C",0,u+c,g,t-m,l],a[An]=["C",e,u+c,e-g,t-m,l],a)[n.prop].join(" ");return["M",l,f,h,v].join(" ")}function Fd(e,t,n,r,i){var o=xn(i,n),s=r.isPush?[0,n]:[e,e-n],a=s[0],c=s[1];return r.isHorizontal?["M",a,n,"V",t-n,"L",c,t-n-o,"V",o+n,"Z"].join(" "):["M",n,a,"H",t-n,"L",t-n-o,c,"H",o+n,"Z"].join(" ")}var Id=Nt(function(t,n){var r=t.size,i=r===void 0?8:r,o=t.angle,s=o===void 0?45:o,a=t.borderWidth,c=a===void 0?0:a,l=t.borderColor,f=l===void 0?"black":l,u=t.roundness,d=u===void 0?0:u,p=t.backgroundColor,h=p===void 0?"white":p,m=t.layerSide,g=m===void 0?"top":m,v=t.style,y=v===void 0?{}:v,_=md(t,Nd);if(g==="center")return null;var A=X[g],b=i,E=xn(s,i)*2,D=Math.max(b,E);return ne("svg",ce({ref:n},_,{style:ce({},y,{transform:"translate"+(A.isHorizontal?"Y":"X")+"(-50%)"}),width:D,height:D,preserveAspectRatio:A.isPush?"xMinYMin":"xMaxYMax",viewBox:Vd(b,E,A,c)}),ne("path",{fill:h,strokeWidth:c,stroke:f,d:Bd(b,E,A,d,s)}),ne("path",{fill:h,d:Fd(b,E,c,A,s)}))}),oa;(function(e){e[e.ENTERING=0]="ENTERING",e[e.LEAVING=1]="LEAVING",e[e.IDLE=2]="IDLE"})(oa||(oa={}));function jd(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function It(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Xr=e=>Array.isArray(e);function sa(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function jt(e){return typeof e=="string"||Array.isArray(e)}function aa(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Yr(e,t,n,r){if(typeof t=="function"){const[i,o]=aa(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=aa(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function Pn(e,t,n){const r=e.getProps();return Yr(r,t,n!==void 0?n:r.custom,e)}const Zr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Jr=["initial",...Zr],Ut=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],He=new Set(Ut),Ne=e=>e*1e3,Ve=e=>e/1e3,Ud={type:"spring",stiffness:500,damping:25,restSpeed:10},Hd=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),zd={type:"keyframes",duration:.8},$d={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Wd=(e,{keyframes:t})=>t.length>2?zd:He.has(e)?e.startsWith("scale")?Hd(t[1]):Ud:$d;function Qr(e,t){return e?e[t]||e.default||e:void 0}const Gd={skipAnimations:!1,useManualTiming:!1},qd=e=>e!==null;function Cn(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(qd),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const ie=e=>e;function Kd(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(l){o.has(l)&&(c.schedule(l),e()),l(s)}const c={schedule:(l,f=!1,u=!1)=>{const p=u&&r?t:n;return f&&o.add(l),p.has(l)||p.add(l),l},cancel:l=>{n.delete(l),o.delete(l)},process:l=>{if(s=l,r){i=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,i&&(i=!1,c.process(l))}};return c}const Rn=["read","resolveKeyframes","update","preRender","render","postRender"],Xd=40;function ca(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Rn.reduce((v,y)=>(v[y]=Kd(o),v),{}),{read:a,resolveKeyframes:c,update:l,preRender:f,render:u,postRender:d}=s,p=()=>{const v=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(v-i.timestamp,Xd),1),i.timestamp=v,i.isProcessing=!0,a.process(i),c.process(i),l.process(i),f.process(i),u.process(i),d.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(p))},h=()=>{n=!0,r=!0,i.isProcessing||e(p)};return{schedule:Rn.reduce((v,y)=>{const _=s[y];return v[y]=(A,b=!1,E=!1)=>(n||h(),_.schedule(A,b,E)),v},{}),cancel:v=>{for(let y=0;y<Rn.length;y++)s[Rn[y]].cancel(v)},state:i,steps:s}}const{schedule:N,cancel:ze,state:J,steps:ei}=ca(typeof requestAnimationFrame<"u"?requestAnimationFrame:ie,!0),la=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Yd=1e-7,Zd=12;function Jd(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=la(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>Yd&&++a<Zd);return s}function Ht(e,t,n,r){if(e===t&&n===r)return ie;const i=o=>Jd(o,0,1,e,n);return o=>o===0||o===1?o:la(i(o),t,r)}const ua=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,fa=e=>t=>1-e(1-t),da=Ht(.33,1.53,.69,.99),ti=fa(da),ha=ua(ti),pa=e=>(e*=2)<1?.5*ti(e):.5*(2-Math.pow(2,-10*(e-1))),ni=e=>1-Math.sin(Math.acos(e)),ma=fa(ni),ga=ua(ni),va=e=>/^0[^.\s]+$/u.test(e);function Qd(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||va(e):!0}let ri=ie;const ya=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),wa=e=>t=>typeof t=="string"&&t.startsWith(e),_a=wa("--"),eh=wa("var(--"),ii=e=>eh(e)?th.test(e.split("/*")[0].trim()):!1,th=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,nh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function rh(e){const t=nh.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function ba(e,t,n=1){const[r,i]=rh(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return ya(s)?parseFloat(s):s}return ii(i)?ba(i,t,n+1):i}const $e=(e,t,n)=>n>t?t:n<e?e:n,wt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},zt={...wt,transform:e=>$e(0,1,e)},On={...wt,default:1},$t=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),We=$t("deg"),Re=$t("%"),x=$t("px"),ih=$t("vh"),oh=$t("vw"),Aa={...Re,parse:e=>Re.parse(e)/100,transform:e=>Re.transform(e*100)},sh=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Ta=e=>e===wt||e===x,Sa=(e,t)=>parseFloat(e.split(", ")[t]),Ea=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Sa(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?Sa(o[1],e):0}},ah=new Set(["x","y","z"]),ch=Ut.filter(e=>!ah.has(e));function lh(e){const t=[];return ch.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const _t={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Ea(4,13),y:Ea(5,14)};_t.translateX=_t.x,_t.translateY=_t.y;const xa=e=>t=>t.test(e),Pa=[wt,x,Re,We,oh,ih,{test:e=>e==="auto",parse:e=>e}],Ca=e=>Pa.find(xa(e)),et=new Set;let oi=!1,si=!1;function Ra(){if(si){const e=Array.from(et).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=lh(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var a;(a=r.getValue(o))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}si=!1,oi=!1,et.forEach(e=>e.complete()),et.clear()}function Oa(){et.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(si=!0)})}function uh(){Oa(),Ra()}class ai{constructor(t,n,r,i,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(et.add(this),oi||(oi=!0,N.read(Oa),N.resolveKeyframes(Ra))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const s=i==null?void 0:i.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const c=r.readValue(n,a);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=a),i&&s===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),et.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,et.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Wt=e=>Math.round(e*1e5)/1e5,ci=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function fh(e){return e==null}const dh=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,li=(e,t)=>n=>!!(typeof n=="string"&&dh.test(n)&&n.startsWith(e)||t&&!fh(n)&&Object.prototype.hasOwnProperty.call(n,t)),Da=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(ci);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},hh=e=>$e(0,255,e),ui={...wt,transform:e=>Math.round(hh(e))},tt={test:li("rgb","red"),parse:Da("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ui.transform(e)+", "+ui.transform(t)+", "+ui.transform(n)+", "+Wt(zt.transform(r))+")"};function ph(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const fi={test:li("#"),parse:ph,transform:tt.transform},bt={test:li("hsl","hue"),parse:Da("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Re.transform(Wt(t))+", "+Re.transform(Wt(n))+", "+Wt(zt.transform(r))+")"},oe={test:e=>tt.test(e)||fi.test(e)||bt.test(e),parse:e=>tt.test(e)?tt.parse(e):bt.test(e)?bt.parse(e):fi.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?tt.transform(e):bt.transform(e)},mh=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function gh(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(ci))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(mh))===null||n===void 0?void 0:n.length)||0)>0}const ka="number",Ma="color",vh="var",yh="var(",La="${}",wh=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Gt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(wh,c=>(oe.test(c)?(r.color.push(o),i.push(Ma),n.push(oe.parse(c))):c.startsWith(yh)?(r.var.push(o),i.push(vh),n.push(c)):(r.number.push(o),i.push(ka),n.push(parseFloat(c))),++o,La)).split(La);return{values:n,split:a,indexes:r,types:i}}function Na(e){return Gt(e).values}function Va(e){const{split:t,types:n}=Gt(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const a=n[s];a===ka?o+=Wt(i[s]):a===Ma?o+=oe.transform(i[s]):o+=i[s]}return o}}const _h=e=>typeof e=="number"?0:e;function bh(e){const t=Na(e);return Va(e)(t.map(_h))}const Ge={test:gh,parse:Na,createTransformer:Va,getAnimatableNone:bh},Ah=new Set(["brightness","contrast","saturate","opacity"]);function Th(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ci)||[];if(!r)return e;const i=n.replace(r,"");let o=Ah.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Sh=/\b([a-z-]*)\(.*?\)/gu,di={...Ge,getAnimatableNone:e=>{const t=e.match(Sh);return t?t.map(Th).join(" "):e}},Eh={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,radius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,top:x,right:x,bottom:x,left:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,backgroundPositionX:x,backgroundPositionY:x},xh={rotate:We,rotateX:We,rotateY:We,rotateZ:We,scale:On,scaleX:On,scaleY:On,scaleZ:On,skew:We,skewX:We,skewY:We,distance:x,translateX:x,translateY:x,translateZ:x,x,y:x,z:x,perspective:x,transformPerspective:x,opacity:zt,originX:Aa,originY:Aa,originZ:x},Ba={...wt,transform:Math.round},hi={...Eh,...xh,zIndex:Ba,size:x,fillOpacity:zt,strokeOpacity:zt,numOctaves:Ba},Ph={...hi,color:oe,backgroundColor:oe,outlineColor:oe,fill:oe,stroke:oe,borderColor:oe,borderTopColor:oe,borderRightColor:oe,borderBottomColor:oe,borderLeftColor:oe,filter:di,WebkitFilter:di},pi=e=>Ph[e];function Fa(e,t){let n=pi(e);return n!==di&&(n=Ge),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ch=new Set(["auto","none","0"]);function Rh(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!Ch.has(o)&&Gt(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Fa(n,i)}class Ia extends ai{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let l=t[c];if(typeof l=="string"&&(l=l.trim(),ii(l))){const f=ba(l,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!sh.has(r)||t.length!==2)return;const[i,o]=t,s=Ca(i),a=Ca(o);if(s!==a)if(Ta(s)&&Ta(a))for(let c=0;c<t.length;c++){const l=t[c];typeof l=="string"&&(t[c]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)Qd(t[i])&&r.push(i);r.length&&Rh(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=_t[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const s=i.length-1,a=i[s];i[s]=_t[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,l])=>{n.getValue(c).set(l)}),this.resolveNoneKeyframes()}}function mi(e){return typeof e=="function"}let Dn;function Oh(){Dn=void 0}const Oe={now:()=>(Dn===void 0&&Oe.set(J.isProcessing||Gd.useManualTiming?J.timestamp:performance.now()),Dn),set:e=>{Dn=e,queueMicrotask(Oh)}},ja=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ge.test(e)||e==="0")&&!e.startsWith("url("));function Dh(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function kh(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=ja(i,t),a=ja(o,t);return!s||!a?!1:Dh(e)||(n==="spring"||mi(n))&&r}const Mh=40;class Ua{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Oe.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Mh?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&uh(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Oe.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:a,onUpdate:c,isGenerator:l}=this.options;if(!l&&!kh(t,r,i,o))if(s)this.options.duration=0;else{c==null||c(Cn(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function Ha(e,t){return t?e*(1e3/t):0}const Lh=5;function za(e,t,n){const r=Math.max(t-Lh,0);return Ha(n-e(r),t-r)}const gi=.001,Nh=.01,Vh=10,Bh=.05,Fh=1;function Ih({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,s=1-t;s=$e(Bh,Fh,s),e=$e(Nh,Vh,Ve(e)),s<1?(i=l=>{const f=l*s,u=f*e,d=f-n,p=vi(l,s),h=Math.exp(-u);return gi-d/p*h},o=l=>{const u=l*s*e,d=u*n+n,p=Math.pow(s,2)*Math.pow(l,2)*e,h=Math.exp(-u),m=vi(Math.pow(l,2),s);return(-i(l)+gi>0?-1:1)*((d-p)*h)/m}):(i=l=>{const f=Math.exp(-l*e),u=(l-n)*e+1;return-gi+f*u},o=l=>{const f=Math.exp(-l*e),u=(n-l)*(e*e);return f*u});const a=5/e,c=Uh(i,o,a);if(e=Ne(e),isNaN(c))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const jh=12;function Uh(e,t,n){let r=n;for(let i=1;i<jh;i++)r=r-e(r)/t(r);return r}function vi(e,t){return e*Math.sqrt(1-t*t)}const Hh=["duration","bounce"],zh=["stiffness","damping","mass"];function $a(e,t){return t.some(n=>e[n]!==void 0)}function $h(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!$a(e,zh)&&$a(e,Hh)){const n=Ih(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Wa({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:c,mass:l,duration:f,velocity:u,isResolvedFromDuration:d}=$h({...r,velocity:-Ve(r.velocity||0)}),p=u||0,h=c/(2*Math.sqrt(a*l)),m=o-i,g=Ve(Math.sqrt(a/l)),v=Math.abs(m)<5;n||(n=v?.01:2),t||(t=v?.005:.5);let y;if(h<1){const _=vi(g,h);y=A=>{const b=Math.exp(-h*g*A);return o-b*((p+h*g*m)/_*Math.sin(_*A)+m*Math.cos(_*A))}}else if(h===1)y=_=>o-Math.exp(-g*_)*(m+(p+g*m)*_);else{const _=g*Math.sqrt(h*h-1);y=A=>{const b=Math.exp(-h*g*A),E=Math.min(_*A,300);return o-b*((p+h*g*m)*Math.sinh(E)+_*m*Math.cosh(E))/_}}return{calculatedDuration:d&&f||null,next:_=>{const A=y(_);if(d)s.done=_>=f;else{let b=0;h<1&&(b=_===0?Ne(p):za(y,_,A));const E=Math.abs(b)<=n,D=Math.abs(o-A)<=t;s.done=E&&D}return s.value=s.done?o:A,s}}}function Ga({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:c,restDelta:l=.5,restSpeed:f}){const u=e[0],d={done:!1,value:u},p=S=>a!==void 0&&S<a||c!==void 0&&S>c,h=S=>a===void 0?c:c===void 0||Math.abs(a-S)<Math.abs(c-S)?a:c;let m=n*t;const g=u+m,v=s===void 0?g:s(g);v!==g&&(m=v-u);const y=S=>-m*Math.exp(-S/r),_=S=>v+y(S),A=S=>{const C=y(S),P=_(S);d.done=Math.abs(C)<=l,d.value=d.done?v:P};let b,E;const D=S=>{p(d.value)&&(b=S,E=Wa({keyframes:[d.value,h(d.value)],velocity:za(_,S,d.value),damping:i,stiffness:o,restDelta:l,restSpeed:f}))};return D(0),{calculatedDuration:null,next:S=>{let C=!1;return!E&&b===void 0&&(C=!0,A(S),D(S)),b!==void 0&&S>=b?E.next(S-b):(!C&&A(S),d)}}}const Wh=Ht(.42,0,1,1),Gh=Ht(0,0,.58,1),qa=Ht(.42,0,.58,1),qh=e=>Array.isArray(e)&&typeof e[0]!="number",yi=e=>Array.isArray(e)&&typeof e[0]=="number",Ka={linear:ie,easeIn:Wh,easeInOut:qa,easeOut:Gh,circIn:ni,circInOut:ga,circOut:ma,backIn:ti,backInOut:ha,backOut:da,anticipate:pa},Xa=e=>{if(yi(e)){ri(e.length===4);const[t,n,r,i]=e;return Ht(t,n,r,i)}else if(typeof e=="string")return ri(Ka[e]!==void 0),Ka[e];return e},Kh=(e,t)=>n=>t(e(n)),Be=(...e)=>e.reduce(Kh),At=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},z=(e,t,n)=>e+(t-e)*n;function wi(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<.16666666666666666?e+(t-e)*6*n:n<.5?t:n<.6666666666666666?e+(t-e)*(.6666666666666666-n)*6:e}function Xh({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;i=wi(c,a,e+.3333333333333333),o=wi(c,a,e),s=wi(c,a,e-.3333333333333333)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function kn(e,t){return n=>n>0?t:e}const _i=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Yh=[fi,tt,bt],Zh=e=>Yh.find(t=>t.test(e));function Ya(e){const t=Zh(e);if(!t)return!1;let n=t.parse(e);return t===bt&&(n=Xh(n)),n}const Za=(e,t)=>{const n=Ya(e),r=Ya(t);if(!n||!r)return kn(e,t);const i={...n};return o=>(i.red=_i(n.red,r.red,o),i.green=_i(n.green,r.green,o),i.blue=_i(n.blue,r.blue,o),i.alpha=z(n.alpha,r.alpha,o),tt.transform(i))},bi=new Set(["none","hidden"]);function Jh(e,t){return bi.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Qh(e,t){return n=>z(e,t,n)}function Ai(e){return typeof e=="number"?Qh:typeof e=="string"?ii(e)?kn:oe.test(e)?Za:np:Array.isArray(e)?Ja:typeof e=="object"?oe.test(e)?Za:ep:kn}function Ja(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>Ai(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function ep(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ai(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function tp(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],a=e.indexes[s][i[s]],c=(n=e.values[a])!==null&&n!==void 0?n:0;r[o]=c,i[s]++}return r}const np=(e,t)=>{const n=Ge.createTransformer(t),r=Gt(e),i=Gt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?bi.has(e)&&!i.values.length||bi.has(t)&&!r.values.length?Jh(e,t):Be(Ja(tp(r,i),i.values),n):kn(e,t)};function Qa(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?z(e,t,n):Ai(e)(e,t)}function rp(e,t,n){const r=[],i=n||Qa,o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||ie:t;a=Be(c,a)}r.push(a)}return r}function ip(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(ri(o===t.length),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=rp(t,r,i),a=s.length,c=l=>{let f=0;if(a>1)for(;f<e.length-2&&!(l<e[f+1]);f++);const u=At(e[f],e[f+1],l);return s[f](u)};return n?l=>c($e(e[0],e[o-1],l)):c}function op(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=At(0,t,r);e.push(z(n,1,i))}}function sp(e){const t=[0];return op(t,e.length-1),t}function ap(e,t){return e.map(n=>n*t)}function cp(e,t){return e.map(()=>t||qa).splice(0,e.length-1)}function Mn({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=qh(r)?r.map(Xa):Xa(r),o={done:!1,value:t[0]},s=ap(n&&n.length===t.length?n:sp(t),e),a=ip(s,t,{ease:Array.isArray(i)?i:cp(t,i)});return{calculatedDuration:e,next:c=>(o.value=a(c),o.done=c>=e,o)}}const ec=2e4;function lp(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ec;)t+=n,r=e.next(t);return t>=ec?1/0:t}const up=e=>{const t=({timestamp:n})=>e(n);return{start:()=>N.update(t,!0),stop:()=>ze(t),now:()=>J.isProcessing?J.timestamp:Oe.now()}},fp={decay:Ga,inertia:Ga,tween:Mn,keyframes:Mn,spring:Wa},dp=e=>e/100;class Ti extends Ua{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,s=(i==null?void 0:i.KeyframeResolver)||ai,a=(c,l)=>this.onKeyframesResolved(c,l);this.resolver=new s(o,a,n,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=this.options,a=mi(n)?n:fp[n]||Mn;let c,l;a!==Mn&&typeof t[0]!="number"&&(c=Be(dp,Qa(t[0],t[1])),t=[0,100]);const f=a({...this.options,keyframes:t});o==="mirror"&&(l=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),f.calculatedDuration===null&&(f.calculatedDuration=lp(f));const{calculatedDuration:u}=f,d=u+i,p=d*(r+1)-i;return{generator:f,mirroredGenerator:l,mapPercentToKeyframes:c,calculatedDuration:u,resolvedDuration:d,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:c,calculatedDuration:l,totalDuration:f,resolvedDuration:u}=r;if(this.startTime===null)return o.next(0);const{delay:d,repeat:p,repeatType:h,repeatDelay:m,onUpdate:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?v<0:v>f;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let _=this.currentTime,A=o;if(p){const S=Math.min(this.currentTime,f)/u;let C=Math.floor(S),P=S%1;!P&&S>=1&&(P=1),P===1&&C--,C=Math.min(C,p+1),!!(C%2)&&(h==="reverse"?(P=1-P,m&&(P-=m/u)):h==="mirror"&&(A=s)),_=$e(0,1,P)*u}const b=y?{done:!1,value:c[0]}:A.next(_);a&&(b.value=a(b.value));let{done:E}=b;!y&&l!==null&&(E=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return D&&i!==void 0&&(b.value=Cn(c,this.options,i)),g&&g(b.value),D&&this.finish(),b}get duration(){const{resolved:t}=this;return t?Ve(t.calculatedDuration):0}get time(){return Ve(this.currentTime)}set time(t){t=Ne(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ve(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=up,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const tc=new Set(["opacity","clipPath","filter","transform"]),hp=10,pp=(e,t)=>{let n="";const r=Math.max(Math.round(t/hp),2);for(let i=0;i<r;i++)n+=e(At(0,r-1,i))+", ";return`linear(${n.substring(0,n.length-2)})`};function Si(e){let t;return()=>(t===void 0&&(t=e()),t)}const mp={linearEasing:void 0};function gp(e,t){const n=Si(e);return()=>{var r;return(r=mp[t])!==null&&r!==void 0?r:n()}}const Ln=gp(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function nc(e){return!!(typeof e=="function"&&Ln()||!e||typeof e=="string"&&(e in Ei||Ln())||yi(e)||Array.isArray(e)&&e.every(nc))}const qt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ei={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qt([0,.65,.55,1]),circOut:qt([.55,0,1,.45]),backIn:qt([.31,.01,.66,-.59]),backOut:qt([.33,1.53,.69,.99])};function rc(e,t){if(e)return typeof e=="function"&&Ln()?pp(e,t):yi(e)?qt(e):Array.isArray(e)?e.map(n=>rc(n,t)||Ei.easeOut):Ei[e]}function vp(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a,times:c}={}){const l={[t]:n};c&&(l.offset=c);const f=rc(a,i);return Array.isArray(f)&&(l.easing=f),e.animate(l,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function ic(e,t){e.timeline=t,e.onfinish=null}const yp=Si(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Nn=10,wp=2e4;function _p(e){return mi(e.type)||e.type==="spring"||!nc(e.ease)}function bp(e,t){const n=new Ti({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<wp;)r=n.sample(o),i.push(r.value),o+=Nn;return{times:void 0,keyframes:i,duration:o-Nn,ease:"linear"}}const oc={anticipate:pa,backInOut:ha,circInOut:ga};function Ap(e){return e in oc}class sc extends Ua{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new Ia(o,(s,a)=>this.onKeyframesResolved(s,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:s,type:a,motionValue:c,name:l,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof s=="string"&&Ln()&&Ap(s)&&(s=oc[s]),_p(this.options)){const{onComplete:d,onUpdate:p,motionValue:h,element:m,...g}=this.options,v=bp(t,g);t=v.keyframes,t.length===1&&(t[1]=t[0]),i=v.duration,o=v.times,s=v.ease,a="keyframes"}const u=vp(c.owner.current,l,t,{...this.options,duration:i,times:o,ease:s});return u.startTime=f??this.calcStartTime(),this.pendingTimeline?(ic(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;c.set(Cn(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:i,times:o,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ve(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ve(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ne(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return ie;const{animation:r}=n;ic(r,t)}return ie}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:f,onComplete:u,element:d,...p}=this.options,h=new Ti({...p,keyframes:r,duration:i,type:o,ease:s,times:a,isGenerator:!0}),m=Ne(this.time);l.setWithVelocity(h.sample(m-Nn).value,h.sample(m).value,Nn)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:s,type:a}=t;return yp()&&r&&tc.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&s!==0&&a!=="inertia"}}const Tp=Si(()=>window.ScrollTimeline!==void 0);class Sp{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>Tp()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function Ep({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:c,elapsed:l,...f}){return!!Object.keys(f).length}const xi=(e,t,n,r={},i,o)=>s=>{const a=Qr(r,e)||{},c=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Ne(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};Ep(a)||(f={...f,...Wd(e,f)}),f.duration&&(f.duration=Ne(f.duration)),f.repeatDelay&&(f.repeatDelay=Ne(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let u=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(u=!0)),u&&!o&&t.get()!==void 0){const d=Cn(f.keyframes,a);if(d!==void 0)return N.update(()=>{f.onUpdate(d),f.onComplete()}),new Sp([])}return!o&&sc.supports(f)?new sc(f):new Ti(f)},xp=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Pp=e=>Xr(e)?e[e.length-1]||0:e;function Pi(e,t){e.indexOf(t)===-1&&e.push(t)}function Ci(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ri{constructor(){this.subscriptions=[]}add(t){return Pi(this.subscriptions,t),()=>Ci(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ac=30,Cp=e=>!isNaN(parseFloat(e));class Rp{constructor(t,n={}){this.version="11.11.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Oe.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Oe.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Cp(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ri);const r=this.events[t].add(n);return t==="change"?()=>{r(),N.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Oe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ac)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ac);return Ha(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Kt(e,t){return new Rp(e,t)}function Op(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Kt(n))}function Dp(e,t){const n=Pn(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=Pp(o[s]);Op(e,s,a)}}const Vn=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),cc="data-"+Vn("framerAppearId");function lc(e){return e.props[cc]}const se=e=>!!(e&&e.getVelocity);function kp(e){return!!(se(e)&&e.add)}function Oi(e,t){if(!e.applyWillChange)return;const n=e.getValue("willChange");if(kp(n))return n.add(t)}function Mp({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function uc(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...c}=t;r&&(s=r);const l=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const u in c){const d=e.getValue(u,(o=e.latestValues[u])!==null&&o!==void 0?o:null),p=c[u];if(p===void 0||f&&Mp(f,u))continue;const h={delay:n,...Qr(s||{},u)};let m=!1;if(window.MotionHandoffAnimation){const v=lc(e);if(v){const y=window.MotionHandoffAnimation(v,u,N);y!==null&&(h.startTime=y,m=!0)}}Oi(e,u),d.start(xi(u,d,p,e.shouldReduceMotion&&He.has(u)?{type:!1}:h,e,m));const g=d.animation;g&&l.push(g)}return a&&Promise.all(l).then(()=>{N.update(()=>{a&&Dp(e,a)})}),l}function Di(e,t,n={}){var r;const i=Pn(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(uc(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:f=0,staggerChildren:u,staggerDirection:d}=o;return Lp(e,t,f+l,u,d,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[l,f]=c==="beforeChildren"?[s,a]:[a,s];return l().then(()=>f())}else return Promise.all([s(),a(n.delay)])}function Lp(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,c=i===1?(l=0)=>l*r:(l=0)=>a-l*r;return Array.from(e.variantChildren).sort(Np).forEach((l,f)=>{l.notify("AnimationStart",t),s.push(Di(l,t,{...o,delay:n+c(f)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(s)}function Np(e,t){return e.sortNodePosition(t)}function Vp(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Di(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Di(e,t,n);else{const i=typeof t=="function"?Pn(e,t,n.custom):t;r=Promise.all(uc(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Bp=Jr.length;function fc(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?fc(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Bp;n++){const r=Jr[n],i=e.props[r];(jt(i)||i===!1)&&(t[r]=i)}return t}const Fp=[...Zr].reverse(),Ip=Zr.length;function jp(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Vp(e,n,r)))}function Up(e){let t=jp(e),n=dc(),r=!0;const i=c=>(l,f)=>{var u;const d=Pn(e,f,c==="exit"?(u=e.presenceContext)===null||u===void 0?void 0:u.custom:void 0);if(d){const{transition:p,transitionEnd:h,...m}=d;l={...l,...m,...h}}return l};function o(c){t=c(e)}function s(c){const{props:l}=e,f=fc(e.parent)||{},u=[],d=new Set;let p={},h=1/0;for(let g=0;g<Ip;g++){const v=Fp[g],y=n[v],_=l[v]!==void 0?l[v]:f[v],A=jt(_),b=v===c?y.isActive:null;b===!1&&(h=g);let E=_===f[v]&&_!==l[v]&&A;if(E&&r&&e.manuallyAnimateOnMount&&(E=!1),y.protectedKeys={...p},!y.isActive&&b===null||!_&&!y.prevProp||It(_)||typeof _=="boolean")continue;const D=Hp(y.prevProp,_);let S=D||v===c&&y.isActive&&!E&&A||g>h&&A,C=!1;const P=Array.isArray(_)?_:[_];let M=P.reduce(i(v),{});b===!1&&(M={});const{prevResolvedValues:V={}}=y,L={...V,...M},he=F=>{S=!0,d.has(F)&&(C=!0,d.delete(F)),y.needsAnimating[F]=!0;const I=e.getValue(F);I&&(I.liveStyle=!1)};for(const F in L){const I=M[F],me=V[F];if(p.hasOwnProperty(F))continue;let te=!1;Xr(I)&&Xr(me)?te=!sa(I,me):te=I!==me,te?I!=null?he(F):d.add(F):I!==void 0&&d.has(F)?he(F):y.protectedKeys[F]=!0}y.prevProp=_,y.prevResolvedValues=M,y.isActive&&(p={...p,...M}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(E&&D)||C)&&u.push(...P.map(F=>({animation:F,options:{type:v}})))}if(d.size){const g={};d.forEach(v=>{const y=e.getBaseTarget(v),_=e.getValue(v);_&&(_.liveStyle=!0),g[v]=y??null}),u.push({animation:g})}let m=!!u.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(u):Promise.resolve()}function a(c,l){var f;if(n[c].isActive===l)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(d=>{var p;return(p=d.animationState)===null||p===void 0?void 0:p.setActive(c,l)}),n[c].isActive=l;const u=s(c);for(const d in n)n[d].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=dc(),r=!0}}}function Hp(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!sa(t,e):!1}function nt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function dc(){return{animate:nt(!0),whileInView:nt(),whileHover:nt(),whileTap:nt(),whileDrag:nt(),whileFocus:nt(),exit:nt()}}class qe{constructor(t){this.isMounted=!1,this.node=t}update(){}}class zp extends qe{constructor(t){super(t),t.animationState||(t.animationState=Up(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();It(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let $p=0;class Wp extends qe{constructor(){super(...arguments),this.id=$p++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Gp={animation:{Feature:zp},exit:{Feature:Wp}},hc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Bn(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const qp=e=>t=>hc(t)&&e(t,Bn(t));function Fe(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ie(e,t,n,r){return Fe(e,t,qp(n),r)}const pc=(e,t)=>Math.abs(e-t);function Kp(e,t){const n=pc(e.x,t.x),r=pc(e.y,t.y);return Math.sqrt(n**2+r**2)}class mc{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=Mi(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,p=Kp(u.offset,{x:0,y:0})>=3;if(!d&&!p)return;const{point:h}=u,{timestamp:m}=J;this.history.push({...h,timestamp:m});const{onStart:g,onMove:v}=this.handlers;d||(g&&g(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,u)},this.handlePointerMove=(u,d)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=ki(d,this.transformPagePoint),N.update(this.updatePoint,!0)},this.handlePointerUp=(u,d)=>{this.end();const{onEnd:p,onSessionEnd:h,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Mi(u.type==="pointercancel"?this.lastMoveEventInfo:ki(d,this.transformPagePoint),this.history);this.startEvent&&p&&p(u,g),h&&h(u,g)},!hc(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Bn(t),a=ki(s,this.transformPagePoint),{point:c}=a,{timestamp:l}=J;this.history=[{...c,timestamp:l}];const{onSessionStart:f}=n;f&&f(t,Mi(a,this.history)),this.removeListeners=Be(Ie(this.contextWindow,"pointermove",this.handlePointerMove),Ie(this.contextWindow,"pointerup",this.handlePointerUp),Ie(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ze(this.updatePoint)}}function ki(e,t){return t?{point:t(e.point)}:e}function gc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Mi({point:e},t){return{point:e,delta:gc(e,vc(t)),offset:gc(e,Xp(t)),velocity:Yp(t,.1)}}function Xp(e){return e[0]}function vc(e){return e[e.length-1]}function Yp(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=vc(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ne(t)));)n--;if(!r)return{x:0,y:0};const o=Ve(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function yc(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const wc=yc("dragHorizontal"),_c=yc("dragVertical");function bc(e){let t=!1;if(e==="y")t=_c();else if(e==="x")t=wc();else{const n=wc(),r=_c();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Ac(){const e=bc(!0);return e?(e(),!1):!0}function Tt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const Tc=1e-4,Zp=1-Tc,Jp=1+Tc,Sc=.01,Qp=0-Sc,em=0+Sc;function ve(e){return e.max-e.min}function tm(e,t,n){return Math.abs(e-t)<=n}function Ec(e,t,n,r=.5){e.origin=r,e.originPoint=z(t.min,t.max,e.origin),e.scale=ve(n)/ve(t),e.translate=z(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Zp&&e.scale<=Jp||isNaN(e.scale))&&(e.scale=1),(e.translate>=Qp&&e.translate<=em||isNaN(e.translate))&&(e.translate=0)}function Xt(e,t,n,r){Ec(e.x,t.x,n.x,r?r.originX:void 0),Ec(e.y,t.y,n.y,r?r.originY:void 0)}function xc(e,t,n){e.min=n.min+t.min,e.max=e.min+ve(t)}function nm(e,t,n){xc(e.x,t.x,n.x),xc(e.y,t.y,n.y)}function Pc(e,t,n){e.min=t.min-n.min,e.max=e.min+ve(t)}function Yt(e,t,n){Pc(e.x,t.x,n.x),Pc(e.y,t.y,n.y)}function rm(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?z(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?z(n,e,r.max):Math.min(e,n)),e}function Cc(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function im(e,{top:t,left:n,bottom:r,right:i}){return{x:Cc(e.x,n,i),y:Cc(e.y,t,r)}}function Rc(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function om(e,t){return{x:Rc(e.x,t.x),y:Rc(e.y,t.y)}}function sm(e,t){let n=.5;const r=ve(e),i=ve(t);return i>r?n=At(t.min,t.max-r,e.min):r>i&&(n=At(e.min,e.max-i,t.min)),$e(0,1,n)}function am(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Li=.35;function cm(e=Li){return e===!1?e=0:e===!0&&(e=Li),{x:Oc(e,"left","right"),y:Oc(e,"top","bottom")}}function Oc(e,t,n){return{min:Dc(e,t),max:Dc(e,n)}}function Dc(e,t){return typeof e=="number"?e:e[t]||0}const kc=()=>({translate:0,scale:1,origin:0,originPoint:0}),St=()=>({x:kc(),y:kc()}),Mc=()=>({min:0,max:0}),$=()=>({x:Mc(),y:Mc()});function _e(e){return[e("x"),e("y")]}function Lc({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function lm({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function um(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ni(e){return e===void 0||e===1}function Vi({scale:e,scaleX:t,scaleY:n}){return!Ni(e)||!Ni(t)||!Ni(n)}function rt(e){return Vi(e)||Nc(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Nc(e){return Vc(e.x)||Vc(e.y)}function Vc(e){return e&&e!=="0%"}function Fn(e,t,n){const r=e-n,i=t*r;return n+i}function Bc(e,t,n,r,i){return i!==void 0&&(e=Fn(e,i,r)),Fn(e,n,r)+t}function Bi(e,t=0,n=1,r,i){e.min=Bc(e.min,t,n,r,i),e.max=Bc(e.max,t,n,r,i)}function Fc(e,{x:t,y:n}){Bi(e.x,t.translate,t.scale,t.originPoint),Bi(e.y,n.translate,n.scale,n.originPoint)}const Ic=.999999999999,jc=1.0000000000001;function fm(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&xt(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Fc(e,s)),r&&rt(o.latestValues)&&xt(e,o.latestValues))}t.x<jc&&t.x>Ic&&(t.x=1),t.y<jc&&t.y>Ic&&(t.y=1)}function Et(e,t){e.min=e.min+t,e.max=e.max+t}function Uc(e,t,n,r,i=.5){const o=z(e.min,e.max,i);Bi(e,t,n,o,r)}function xt(e,t){Uc(e.x,t.x,t.scaleX,t.scale,t.originX),Uc(e.y,t.y,t.scaleY,t.scale,t.originY)}function Hc(e,t){return Lc(um(e.getBoundingClientRect(),t))}function dm(e,t,n){const r=Hc(e,n),{scroll:i}=t;return i&&(Et(r.x,i.offset.x),Et(r.y,i.offset.y)),r}const zc=({current:e})=>e?e.ownerDocument.defaultView:null,hm=new WeakMap;class pm{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Bn(f,"page").point)},o=(f,u)=>{const{drag:d,dragPropagation:p,onDragStart:h}=this.getProps();if(d&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=bc(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),_e(g=>{let v=this.getAxisMotionValue(g).get()||0;if(Re.test(v)){const{projection:y}=this.visualElement;if(y&&y.layout){const _=y.layout.layoutBox[g];_&&(v=ve(_)*(parseFloat(v)/100))}}this.originPoint[g]=v}),h&&N.postRender(()=>h(f,u)),Oi(this.visualElement,"transform");const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},s=(f,u)=>{const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:h,onDrag:m}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:g}=u;if(p&&this.currentDirection===null){this.currentDirection=mm(g),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",u.point,g),this.updateAxis("y",u.point,g),this.visualElement.render(),m&&m(f,u)},a=(f,u)=>this.stop(f,u),c=()=>_e(f=>{var u;return this.getAnimationState(f)==="paused"&&((u=this.getAxisMotionValue(f).animation)===null||u===void 0?void 0:u.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new mc(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:zc(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&N.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!In(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=rm(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Tt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=im(i.layoutBox,n):this.constraints=!1,this.elastic=cm(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&_e(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=am(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Tt(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=dm(r,i.root,this.visualElement.getTransformPagePoint());let s=om(i.layout.layoutBox,o);if(n){const a=n(lm(s));this.hasMutatedConstraints=!!a,a&&(s=Lc(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=_e(f=>{if(!In(f,n,this.currentDirection))return;let u=c&&c[f]||{};s&&(u={min:0,max:0});const d=i?200:1e6,p=i?40:1e7,h={type:"inertia",velocity:r?t[f]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...u};return this.startAxisValueAnimation(f,h)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Oi(this.visualElement,t),r.start(xi(t,r,0,n,this.visualElement,!1))}stopAnimation(){_e(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){_e(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){_e(n=>{const{drag:r}=this.getProps();if(!In(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-z(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Tt(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};_e(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const c=a.get();i[s]=sm({min:c,max:c},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),_e(s=>{if(!In(s,t,null))return;const a=this.getAxisMotionValue(s),{min:c,max:l}=this.constraints[s];a.set(z(c,l,i[s]))})}addListeners(){if(!this.visualElement.current)return;hm.set(this.visualElement,this);const t=this.visualElement.current,n=Ie(t,"pointerdown",c=>{const{drag:l,dragListener:f=!0}=this.getProps();l&&f&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Tt(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),N.read(r);const s=Fe(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(_e(f=>{const u=this.getAxisMotionValue(f);u&&(this.originPoint[f]+=c[f].translate,u.set(u.get()+c[f].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Li,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function In(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function mm(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class gm extends qe{constructor(t){super(t),this.removeGroupControls=ie,this.removeListeners=ie,this.controls=new pm(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ie}unmount(){this.removeGroupControls(),this.removeListeners()}}const $c=e=>(t,n)=>{e&&N.postRender(()=>e(t,n))};class vm extends qe{constructor(){super(...arguments),this.removePointerDownListener=ie}onPointerDown(t){this.session=new mc(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zc(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:$c(t),onStart:$c(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&N.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=Ie(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const jn=Ce(null);function ym(){const e=j(jn);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=pt();Y(()=>r(i),[]);const o=Z(()=>n&&n(i),[i,n]);return!t&&n?[!1,o]:[!0]}const Fi=Ce({}),Wc=Ce({}),Un={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Gc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Zt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(x.test(e))e=parseFloat(e);else return e;const n=Gc(e,t.target.x),r=Gc(e,t.target.y);return`${n}% ${r}%`}},wm={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ge.parse(e);if(i.length>5)return r;const o=Ge.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=c;const l=z(a,c,.5);return typeof i[2+s]=="number"&&(i[2+s]/=l),typeof i[3+s]=="number"&&(i[3+s]/=l),o(i)}},Hn={};function _m(e){Object.assign(Hn,e)}const{schedule:Ii,cancel:Iw}=ca(queueMicrotask,!1);class bm extends ge{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;_m(Am),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Un.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||N.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ii.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function qc(e){const[t,n]=ym(),r=j(Fi);return T(bm,{...e,layoutGroup:r,switchLayoutGroup:j(Wc),isPresent:t,safeToRemove:n})}const Am={borderRadius:{...Zt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Zt,borderTopRightRadius:Zt,borderBottomLeftRadius:Zt,borderBottomRightRadius:Zt,boxShadow:wm},Kc=["TopLeft","TopRight","BottomLeft","BottomRight"],Tm=Kc.length,Xc=e=>typeof e=="string"?parseFloat(e):e,Yc=e=>typeof e=="number"||x.test(e);function Sm(e,t,n,r,i,o){i?(e.opacity=z(0,n.opacity!==void 0?n.opacity:1,Em(r)),e.opacityExit=z(t.opacity!==void 0?t.opacity:1,0,xm(r))):o&&(e.opacity=z(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<Tm;s++){const a=`border${Kc[s]}Radius`;let c=Zc(t,a),l=Zc(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||Yc(c)===Yc(l)?(e[a]=Math.max(z(Xc(c),Xc(l),r),0),(Re.test(l)||Re.test(c))&&(e[a]+="%")):e[a]=l}(t.rotate||n.rotate)&&(e.rotate=z(t.rotate||0,n.rotate||0,r))}function Zc(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Em=Jc(0,.5,ma),xm=Jc(.5,.95,ie);function Jc(e,t,n){return r=>r<e?0:r>t?1:n(At(e,t,r))}function Qc(e,t){e.min=t.min,e.max=t.max}function be(e,t){Qc(e.x,t.x),Qc(e.y,t.y)}function el(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function tl(e,t,n,r,i){return e-=t,e=Fn(e,1/n,r),i!==void 0&&(e=Fn(e,1/i,r)),e}function Pm(e,t=0,n=1,r=.5,i,o=e,s=e){if(Re.test(t)&&(t=parseFloat(t),t=z(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=z(o.min,o.max,r);e===o&&(a-=t),e.min=tl(e.min,t,n,a,i),e.max=tl(e.max,t,n,a,i)}function nl(e,t,[n,r,i],o,s){Pm(e,t[n],t[r],t[i],t.scale,o,s)}const Cm=["x","scaleX","originX"],Rm=["y","scaleY","originY"];function rl(e,t,n,r){nl(e.x,t,Cm,n?n.x:void 0,r?r.x:void 0),nl(e.y,t,Rm,n?n.y:void 0,r?r.y:void 0)}function il(e){return e.translate===0&&e.scale===1}function ol(e){return il(e.x)&&il(e.y)}function sl(e,t){return e.min===t.min&&e.max===t.max}function Om(e,t){return sl(e.x,t.x)&&sl(e.y,t.y)}function al(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function cl(e,t){return al(e.x,t.x)&&al(e.y,t.y)}function ll(e){return ve(e.x)/ve(e.y)}function ul(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Dm{constructor(){this.members=[]}add(t){Pi(this.members,t),t.scheduleRender()}remove(t){if(Ci(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function km(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:f,rotateX:u,rotateY:d,skewX:p,skewY:h}=n;l&&(r=`perspective(${l}px) ${r}`),f&&(r+=`rotate(${f}deg) `),u&&(r+=`rotateX(${u}deg) `),d&&(r+=`rotateY(${d}deg) `),p&&(r+=`skewX(${p}deg) `),h&&(r+=`skewY(${h}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const Mm=(e,t)=>e.depth-t.depth;class Lm{constructor(){this.children=[],this.isDirty=!1}add(t){Pi(this.children,t),this.isDirty=!0}remove(t){Ci(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Mm),this.isDirty=!1,this.children.forEach(t)}}function zn(e){const t=se(e)?e.get():e;return xp(t)?t.toValue():t}function Nm(e,t){const n=Oe.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(ze(r),e(o-t))};return N.read(r,!0),()=>ze(r)}function Vm(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Bm(e,t,n){const r=se(e)?e:Kt(e);return r.start(xi("",r,t,n)),r.animation}const it={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Jt=typeof window<"u"&&window.MotionDebug!==void 0,ji=["","X","Y","Z"],Fm={visibility:"hidden"},fl=1e3;let Im=0;function Ui(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function dl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=lc(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",N,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&dl(r)}function hl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=Im++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Jt&&(it.totalNodes=it.resolvedTargetDeltas=it.recalculatedProjection=0),this.nodes.forEach(Hm),this.nodes.forEach(qm),this.nodes.forEach(Km),this.nodes.forEach(zm),Jt&&window.MotionDebug.record(it)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Lm)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Ri),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const c=this.eventHandlers.get(s);c&&c.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Vm(s),this.instance=s;const{layoutId:c,layout:l,visualElement:f}=this.options;if(f&&!f.current&&f.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(l||c)&&(this.isLayoutDirty=!0),e){let u;const d=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,u&&u(),u=Nm(d,250),Un.hasAnimatedSinceResize&&(Un.hasAnimatedSinceResize=!1,this.nodes.forEach(ml))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&f&&(c||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeTargetChanged:p,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||f.getDefaultTransition()||Qm,{onLayoutAnimationStart:g,onLayoutAnimationComplete:v}=f.getProps(),y=!this.targetLayout||!cl(this.targetLayout,h)||p,_=!d&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||_||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(u,_);const A={...Qr(m,"layout"),onPlay:g,onComplete:v};(f.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A)}else d||ml(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ze(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Xm),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&dl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const u=this.path[f];u.shouldResetTransform=!0,u.updateScroll("snapshot"),u.options.layoutRoot&&u.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(pl);return}this.isUpdating||this.nodes.forEach(Wm),this.isUpdating=!1,this.nodes.forEach(Gm),this.nodes.forEach(jm),this.nodes.forEach(Um),this.clearAllSnapshots();const a=Oe.now();J.delta=$e(0,16.666666666666668,a-J.timestamp),J.timestamp=a,J.isProcessing=!0,ei.update.process(J),ei.preRender.process(J),ei.render.process(J),J.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ii.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach($m),this.sharedNodes.forEach(Ym)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,N.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){N.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=$(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!ol(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,f=l!==this.prevTransformTemplateValue;s&&(a||rt(this.latestValues)||f)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return s&&(c=this.removeTransform(c)),eg(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:a}=this.options;if(!a)return $();const c=a.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(tg))){const{scroll:f}=this.root;f&&(Et(c.x,f.offset.x),Et(c.y,f.offset.y))}return c}removeElementScroll(s){var a;const c=$();if(be(c,s),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return c;for(let l=0;l<this.path.length;l++){const f=this.path[l],{scroll:u,options:d}=f;f!==this.root&&u&&d.layoutScroll&&(u.wasRoot&&be(c,s),Et(c.x,u.offset.x),Et(c.y,u.offset.y))}return c}applyTransform(s,a=!1){const c=$();be(c,s);for(let l=0;l<this.path.length;l++){const f=this.path[l];!a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&xt(c,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),rt(f.latestValues)&&xt(c,f.latestValues)}return rt(this.latestValues)&&xt(c,this.latestValues),c}removeTransform(s){const a=$();be(a,s);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!rt(l.latestValues))continue;Vi(l.latestValues)&&l.updateSnapshot();const f=$(),u=l.measurePageBox();be(f,u),rl(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,f)}return rt(this.latestValues)&&rl(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==J.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==c;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!(!this.layout||!(u||d))){if(this.resolvedRelativeTargetAt=J.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$(),this.relativeTargetOrigin=$(),Yt(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),be(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=$(),this.targetWithTransforms=$()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),nm(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):be(this.target,this.layout.layoutBox),Fc(this.target,this.targetDelta)):be(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$(),this.relativeTargetOrigin=$(),Yt(this.relativeTargetOrigin,this.target,p.target),be(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Jt&&it.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Vi(this.parent.latestValues)||Nc(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const a=this.getLead(),c=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(l=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===J.timestamp&&(l=!1),l)return;const{layout:f,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||u))return;be(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,p=this.treeScale.y;fm(this.layoutCorrected,this.treeScale,this.path,c),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=$());const{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(el(this.prevProjectionDelta.x,this.projectionDelta.x),el(this.prevProjectionDelta.y,this.projectionDelta.y)),Xt(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==p||!ul(this.projectionDelta.x,this.prevProjectionDelta.x)||!ul(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h)),Jt&&it.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),s){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=St(),this.projectionDelta=St(),this.projectionDeltaWithTransform=St()}setAnimationOrigin(s,a=!1){const c=this.snapshot,l=c?c.latestValues:{},f={...this.latestValues},u=St();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=$(),p=c?c.source:void 0,h=this.layout?this.layout.source:void 0,m=p!==h,g=this.getStack(),v=!g||g.members.length<=1,y=!!(m&&!v&&this.options.crossfade===!0&&!this.path.some(Jm));this.animationProgress=0;let _;this.mixTargetDelta=A=>{const b=A/1e3;gl(u.x,s.x,b),gl(u.y,s.y,b),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Yt(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Zm(this.relativeTarget,this.relativeTargetOrigin,d,b),_&&Om(this.relativeTarget,_)&&(this.isProjectionDirty=!1),_||(_=$()),be(_,this.relativeTarget)),m&&(this.animationValues=f,Sm(f,l,this.latestValues,b,y,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ze(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=N.update(()=>{Un.hasAnimatedSinceResize=!0,this.currentAnimation=Bm(0,fl,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fl),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:f}=s;if(!(!a||!c||!l)){if(this!==s&&this.layout&&l&&bl(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||$();const u=ve(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+u;const d=ve(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+d}be(a,c),xt(a,f),Xt(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Dm),this.sharedNodes.get(s).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:c}=s;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&Ui("z",s,l,this.animationValues);for(let f=0;f<ji.length;f++)Ui(`rotate${ji[f]}`,s,l,this.animationValues),Ui(`skew${ji[f]}`,s,l,this.animationValues);s.render();for(const f in l)s.setStaticValue(f,l[f]),this.animationValues&&(this.animationValues[f]=l[f]);s.scheduleRender()}getProjectionStyles(s){var a,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Fm;const l={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=zn(s==null?void 0:s.pointerEvents)||"",l.transform=f?f(this.latestValues,""):"none",l;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=zn(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!rt(this.latestValues)&&(m.transform=f?f({},""):"none",this.hasProjected=!1),m}const d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),l.transform=km(this.projectionDeltaWithTransform,this.treeScale,d),f&&(l.transform=f(d,l.transform));const{x:p,y:h}=this.projectionDelta;l.transformOrigin=`${p.origin*100}% ${h.origin*100}% 0`,u.animationValues?l.opacity=u===this?(c=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:l.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const m in Hn){if(d[m]===void 0)continue;const{correct:g,applyTo:v}=Hn[m],y=l.transform==="none"?d[m]:g(d[m],u);if(v){const _=v.length;for(let A=0;A<_;A++)l[v[A]]=y}else l[m]=y}return this.options.layoutId&&(l.pointerEvents=u===this?zn(s==null?void 0:s.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(pl),this.root.sharedNodes.clear()}}}function jm(e){e.updateLayout()}function Um(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?_e(u=>{const d=s?n.measuredBox[u]:n.layoutBox[u],p=ve(d);d.min=r[u].min,d.max=d.min+p}):bl(o,n.layoutBox,r)&&_e(u=>{const d=s?n.measuredBox[u]:n.layoutBox[u],p=ve(r[u]);d.max=d.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+p)});const a=St();Xt(a,r,n.layoutBox);const c=St();s?Xt(c,e.applyTransform(i,!0),n.measuredBox):Xt(c,r,n.layoutBox);const l=!ol(a);let f=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:p}=u;if(d&&p){const h=$();Yt(h,n.layoutBox,d.layoutBox);const m=$();Yt(m,r,p.layoutBox),cl(h,m)||(f=!0),u.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=h,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Hm(e){Jt&&it.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function zm(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $m(e){e.clearSnapshot()}function pl(e){e.clearMeasurements()}function Wm(e){e.isLayoutDirty=!1}function Gm(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ml(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function qm(e){e.resolveTargetDelta()}function Km(e){e.calcProjection()}function Xm(e){e.resetSkewAndRotation()}function Ym(e){e.removeLeadSnapshot()}function gl(e,t,n){e.translate=z(t.translate,0,n),e.scale=z(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vl(e,t,n,r){e.min=z(t.min,n.min,r),e.max=z(t.max,n.max,r)}function Zm(e,t,n,r){vl(e.x,t.x,n.x,r),vl(e.y,t.y,n.y,r)}function Jm(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Qm={duration:.45,ease:[.4,0,.1,1]},yl=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),wl=yl("applewebkit/")&&!yl("chrome/")?Math.round:ie;function _l(e){e.min=wl(e.min),e.max=wl(e.max)}function eg(e){_l(e.x),_l(e.y)}function bl(e,t,n){return e==="position"||e==="preserve-aspect"&&!tm(ll(t),ll(n),.2)}function tg(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const ng=hl({attachResizeListener:(e,t)=>Fe(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Hi={current:void 0},Al=hl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Hi.current){const e=new ng({});e.mount(window),e.setOptions({layoutScroll:!0}),Hi.current=e}return Hi.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),rg={pan:{Feature:vm},drag:{Feature:gm,ProjectionNode:Al,MeasureLayout:qc}};function Tl(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(o,s)=>{if(o.pointerType==="touch"||Ac())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const c=a[r];c&&N.postRender(()=>c(o,s))};return Ie(e.current,n,i,{passive:!e.getProps()[r]})}class ig extends qe{mount(){this.unmount=Be(Tl(this.node,!0),Tl(this.node,!1))}unmount(){}}class og extends qe{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Be(Fe(this.node.current,"focus",()=>this.onFocus()),Fe(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Sl=(e,t)=>t?e===t?!0:Sl(e,t.parentElement):!1;function zi(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Bn(n))}class sg extends qe{constructor(){super(...arguments),this.removeStartListeners=ie,this.removeEndListeners=ie,this.removeAccessibleListeners=ie,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=Ie(window,"pointerup",(a,c)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:f,globalTapTarget:u}=this.node.getProps(),d=!u&&!Sl(this.node.current,a.target)?f:l;d&&N.update(()=>d(a,c))},{passive:!(r.onTap||r.onPointerUp)}),s=Ie(window,"pointercancel",(a,c)=>this.cancelPress(a,c),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Be(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||zi("up",(c,l)=>{const{onTap:f}=this.node.getProps();f&&N.postRender(()=>f(c,l))})};this.removeEndListeners(),this.removeEndListeners=Fe(this.node.current,"keyup",s),zi("down",(a,c)=>{this.startPress(a,c)})},n=Fe(this.node.current,"keydown",t),r=()=>{this.isPressing&&zi("cancel",(o,s)=>this.cancelPress(o,s))},i=Fe(this.node.current,"blur",r);this.removeAccessibleListeners=Be(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&N.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ac()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&N.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Ie(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Fe(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Be(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const $i=new WeakMap,Wi=new WeakMap,ag=e=>{const t=$i.get(e.target);t&&t(e)},cg=e=>{e.forEach(ag)};function lg({root:e,...t}){const n=e||document;Wi.has(n)||Wi.set(n,{});const r=Wi.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(cg,{root:e,...t})),r[i]}function ug(e,t,n){const r=lg(t);return $i.set(e,n),r.observe(e),()=>{$i.delete(e),r.unobserve(e)}}const fg={some:0,all:1};class dg extends qe{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:fg[i]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,o&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:f,onViewportLeave:u}=this.node.getProps(),d=l?f:u;d&&d(c)};return ug(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(hg(t,n))&&this.startObserver()}unmount(){}}function hg({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const pg={inView:{Feature:dg},tap:{Feature:sg},focus:{Feature:og},hover:{Feature:ig}},mg={layout:{ProjectionNode:Al,MeasureLayout:qc}},Gi=Ce({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),$n=Ce({}),qi=typeof window<"u",El=qi?je:Y,xl=Ce({strict:!1});function gg(e,t,n,r,i){var o,s;const{visualElement:a}=j($n),c=j(xl),l=j(jn),f=j(Gi).reducedMotion,u=H();r=r||c.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:f}));const d=u.current,p=j(Wc);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&vg(u.current,n,i,p),Bt(()=>{d&&d.update(n,l)});const h=n[cc],m=H(!!h&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,h))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,h)));return El(()=>{d&&(window.MotionIsMounted=!0,d.updateFeatures(),Ii.render(d.render),m.current&&d.animationState&&d.animationState.animateChanges())}),Y(()=>{d&&(!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var g;(g=window.MotionHandoffMarkAsComplete)===null||g===void 0||g.call(window,h)}),m.current=!1))}),d}function vg(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:c,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Pl(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&Tt(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:l})}function Pl(e){if(e)return e.options.allowProjection!==!1?e.projection:Pl(e.parent)}function yg(e,t,n){return Z(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Tt(n)&&(n.current=r))},[t])}function Wn(e){return It(e.animate)||Jr.some(t=>jt(e[t]))}function Cl(e){return!!(Wn(e)||e.variants)}function wg(e,t){if(Wn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||jt(n)?n:void 0,animate:jt(r)?r:void 0}}return e.inherit!==!1?t:{}}function _g(e){const{initial:t,animate:n}=wg(e,j($n));return re(()=>({initial:t,animate:n}),[Rl(t),Rl(n)])}function Rl(e){return Array.isArray(e)?e.join(" "):e}const Ol={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Pt={};for(const e in Ol)Pt[e]={isEnabled:t=>Ol[e].some(n=>!!t[n])};function bg(e){for(const t in e)Pt[t]={...Pt[t],...e[t]}}const Ag=Symbol.for("motionComponentSymbol");function Tg({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&bg(e);function o(a,c){let l;const f={...j(Gi),...a,layoutId:Sg(a)},{isStatic:u}=f,d=_g(a),p=r(a,u);if(!u&&qi){Eg();const h=xg(f);l=h.MeasureLayout,d.visualElement=gg(i,p,f,t,h.ProjectionNode)}return T($n.Provider,{value:d,children:[l&&d.visualElement?T(l,{visualElement:d.visualElement,...f}):null,n(i,a,yg(p,d.visualElement,c),p,u,d.visualElement)]})}const s=Nt(o);return s[Ag]=i,s}function Sg({layoutId:e}){const t=j(Fi).id;return t&&e!==void 0?t+"-"+e:e}function Eg(e,t){j(xl).strict}function xg(e){const{drag:t,layout:n}=Pt;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Pg=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ki(e){return typeof e!="string"||e.includes("-")?!1:!!(Pg.indexOf(e)>-1||/[A-Z]/u.test(e))}function Dl(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const kl=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ml(e,t,n,r){Dl(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(kl.has(i)?i:Vn(i),t.attrs[i])}function Ll(e,{layout:t,layoutId:n}){return He.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Hn[e]||e==="opacity")}function Xi(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(se(i[s])||t.style&&se(t.style[s])||Ll(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return n&&i&&typeof i.willChange=="string"&&(n.applyWillChange=!1),o}function Nl(e,t,n){const r=Xi(e,t,n);for(const i in e)if(se(e[i])||se(t[i])){const o=Ut.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function Yi(e){const t=H(null);return t.current===null&&(t.current=e()),t.current}function Cg(e){if(He.has(e))return"transform";if(tc.has(e))return Vn(e)}function Rg({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},i,o,s,a){const c={latestValues:Og(i,o,s,a?!1:e,t),renderState:n()};return r&&(c.mount=l=>r(i,l,c)),c}const Vl=e=>(t,n)=>{const r=j($n),i=j(jn),o=()=>Rg(e,t,r,i,n);return n?o():Yi(o)};function Bl(e,t,n){const r=Array.isArray(t)?t:[t];for(let i=0;i<r.length;i++){const o=Yr(e,r[i]);if(o){const{transitionEnd:s,transition:a,...c}=o;n(c,s)}}}function Og(e,t,n,r,i){var o;const s={},a=new Set,c=r&&((o=e.style)===null||o===void 0?void 0:o.willChange)===void 0,l=i(e,{});for(const g in l)s[g]=zn(l[g]);let{initial:f,animate:u}=e;const d=Wn(e),p=Cl(e);t&&p&&!d&&e.inherit!==!1&&(f===void 0&&(f=t.initial),u===void 0&&(u=t.animate));let h=n?n.initial===!1:!1;h=h||f===!1;const m=h?u:f;return m&&typeof m!="boolean"&&!It(m)&&Bl(e,m,(g,v)=>{for(const y in g){let _=g[y];if(Array.isArray(_)){const A=h?_.length-1:0;_=_[A]}_!==null&&(s[y]=_)}for(const y in v)s[y]=v[y]}),c&&(u&&f!==!1&&!It(u)&&Bl(e,u,g=>{for(const v in g){const y=Cg(v);y&&a.add(y)}}),a.size&&(s.willChange=Array.from(a).join(","))),s}const Zi=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Fl=()=>({...Zi(),attrs:{}}),Il=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Dg={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},kg=Ut.length;function Mg(e,t,n){let r="",i=!0;for(let o=0;o<kg;o++){const s=Ut[o],a=e[s];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(s.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const l=Il(a,hi[s]);if(!c){i=!1;const f=Dg[s]||s;r+=`${f}(${l}) `}n&&(t[s]=l)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Ji(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,a=!1;for(const c in t){const l=t[c];if(He.has(c)){s=!0;continue}else if(_a(c)){i[c]=l;continue}else{const f=Il(l,hi[c]);c.startsWith("origin")?(a=!0,o[c]=f):r[c]=f}}if(t.transform||(s||n?r.transform=Mg(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${l} ${f}`}}function jl(e,t,n){return typeof e=="string"?e:x.transform(t+n*e)}function Lg(e,t,n){const r=jl(t,e.x,e.width),i=jl(n,e.y,e.height);return`${r} ${i}`}const Ng={offset:"stroke-dashoffset",array:"stroke-dasharray"},Vg={offset:"strokeDashoffset",array:"strokeDasharray"};function Bg(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Ng:Vg;e[o.offset]=x.transform(-r);const s=x.transform(t),a=x.transform(n);e[o.array]=`${s} ${a}`}function Qi(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:c=0,...l},f,u){if(Ji(e,l,u),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:p,dimensions:h}=e;d.transform&&(h&&(p.transform=d.transform),delete d.transform),h&&(i!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=Lg(h,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&Bg(d,s,a,c,!1)}const eo=e=>typeof e=="string"&&e.toLowerCase()==="svg",Fg={useVisualState:Vl({scrapeMotionValuesFromProps:Nl,createRenderState:Fl,onMount:(e,t,{renderState:n,latestValues:r})=>{N.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),N.render(()=>{Qi(n,r,eo(t.tagName),e.transformTemplate),Ml(t,n)})}})},Ig={useVisualState:Vl({applyWillChange:!0,scrapeMotionValuesFromProps:Xi,createRenderState:Zi})};function Ul(e,t,n){for(const r in t)!se(t[r])&&!Ll(r,n)&&(e[r]=t[r])}function jg({transformTemplate:e},t){return re(()=>{const n=Zi();return Ji(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Ug(e,t){const n=e.style||{},r={};return Ul(r,n,e),Object.assign(r,jg(e,t)),r}function Hg(e,t){const n={},r=Ug(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const zg=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Gn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||zg.has(e)}let Hl=e=>!Gn(e);function $g(e){e&&(Hl=t=>t.startsWith("on")?!Gn(t):e(t))}try{$g(require("@emotion/is-prop-valid").default)}catch{}function Wg(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Hl(i)||n===!0&&Gn(i)||!t&&!Gn(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Gg(e,t,n,r){const i=re(()=>{const o=Fl();return Qi(o,t,eo(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Ul(o,e.style,e),i.style={...o,...i.style}}return i}function qg(e=!1){return(n,r,i,{latestValues:o},s)=>{const c=(Ki(n)?Gg:Hg)(r,o,s,n),l=Wg(r,typeof n=="string",e),f=n!==ae?{...l,...c,ref:i}:{},{children:u}=r,d=re(()=>se(u)?u.get():u,[u]);return ne(n,{...f,children:d})}}function Kg(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...Ki(r)?Fg:Ig,preloadedFeatures:e,useRender:qg(i),createVisualElement:t,Component:r};return Tg(s)}}const to={current:null},zl={current:!1};function Xg(){if(zl.current=!0,!!qi)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>to.current=e.matches;e.addListener(t),t()}else to.current=!1}function Yg(e,t,n){for(const r in t){const i=t[r],o=n[r];if(se(i))e.addValue(r,i);else if(se(o))e.addValue(r,Kt(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Kt(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const $l=new WeakMap,Zg=[...Pa,oe,Ge],Jg=e=>Zg.find(xa(e)),Wl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Qg{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},a={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ai,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=Oe.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,N.render(this.render,!1,!0))};const{latestValues:c,renderState:l}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Wn(n),this.isVariantNode=Cl(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...u}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in u){const p=u[d];c[d]!==void 0&&se(p)&&p.set(c[d],!1)}}mount(t){this.current=t,$l.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),zl.current||Xg(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:to.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){$l.delete(this.current),this.projection&&this.projection.unmount(),ze(this.notifyUpdate),ze(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=He.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&N.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Pt){const n=Pt[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Wl.length;r++){const i=Wl[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=Yg(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Kt(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(ya(i)||va(i))?i=parseFloat(i):!Jg(i)&&Ge.test(n)&&(i=Fa(t,n)),this.setBaseTarget(t,se(i)?i.get():i)),se(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=Yr(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!se(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ri),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Gl extends Qg{constructor(){super(...arguments),this.KeyframeResolver=Ia}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function ev(e){return window.getComputedStyle(e)}class tv extends Gl{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=Dl}readValueFromInstance(t,n){if(He.has(n)){const r=pi(n);return r&&r.default||0}else{const r=ev(t),i=(_a(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Hc(t,n)}build(t,n,r){Ji(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Xi(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;se(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class nv extends Gl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(He.has(n)){const r=pi(n);return r&&r.default||0}return n=kl.has(n)?n:Vn(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Nl(t,n,r)}build(t,n,r){Qi(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Ml(t,n,r,i)}mount(t){this.isSVGTag=eo(t.tagName),super.mount(t)}}const rv=(e,t)=>Ki(e)?new nv(t):new tv(t,{allowProjection:e!==ae}),iv=Kg({...Gp,...pg,...rg,...mg},rv),no=jd(iv);class ov extends ge{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function sv({children:e,isPresent:t}){const n=pt(),r=H(null),i=H({width:0,height:0,top:0,left:0}),{nonce:o}=j(Gi);return Bt(()=>{const{width:s,height:a,top:c,left:l}=i.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const f=document.createElement("style");return o&&(f.nonce=o),document.head.appendChild(f),f.sheet&&f.sheet.insertRule(` | |
| [data-motion-pop-id="${n}"] { | |
| position: absolute !important; | |
| width: ${s}px !important; | |
| height: ${a}px !important; | |
| top: ${c}px !important; | |
| left: ${l}px !important; | |
| } | |
| `),()=>{document.head.removeChild(f)}},[t]),T(ov,{isPresent:t,childRef:r,sizeRef:i,children:yn(e,{ref:r})})}const av=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const a=Yi(cv),c=pt(),l=Z(u=>{a.set(u,!0);for(const d of a.values())if(!d)return;r&&r()},[a,r]),f=re(()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:l,register:u=>(a.set(u,!1),()=>a.delete(u))}),o?[Math.random(),l]:[n,l]);return re(()=>{a.forEach((u,d)=>a.set(d,!1))},[n]),Y(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=T(sv,{isPresent:n,children:e})),T(jn.Provider,{value:f,children:e})};function cv(){return new Map}const qn=e=>e.key||"";function ql(e){const t=[];return Br.forEach(e,n=>{gt(n)&&t.push(n)}),t}const lv=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const a=re(()=>ql(e),[e]),c=a.map(qn),l=H(!0),f=H(a),u=Yi(()=>new Map),[d,p]=W(a),[h,m]=W(a);El(()=>{l.current=!1,f.current=a;for(let y=0;y<h.length;y++){const _=qn(h[y]);c.includes(_)?u.delete(_):u.get(_)!==!0&&u.set(_,!1)}},[h,c.length,c.join("-")]);const g=[];if(a!==d){let y=[...a];for(let _=0;_<h.length;_++){const A=h[_],b=qn(A);c.includes(b)||(y.splice(_,0,A),g.push(A))}s==="wait"&&g.length&&(y=g),m(ql(y)),p(a);return}const{forceRender:v}=j(Fi);return T(ae,{children:h.map(y=>{const _=qn(y),A=a===h||c.includes(_),b=()=>{if(u.has(_))u.set(_,!0);else return;let E=!0;u.forEach(D=>{D||(E=!1)}),E&&(v==null||v(),m(f.current),i&&i())};return T(av,{isPresent:A,initial:!l.current||r?void 0:!1,custom:A?void 0:n,presenceAffectsLayout:o,mode:s,onExitComplete:A?void 0:b,children:y},_)})})};var Kl=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,o){return i[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,o=this.__entries__;i<o.length;i++){var s=o[i];n.call(r,s[1],s[0])}},t}()}(),ro=typeof window<"u"&&typeof document<"u"&&window.document===document,Kn=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),uv=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Kn):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),fv=2;function dv(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&a()}function s(){uv(o)}function a(){var c=Date.now();if(n){if(c-i<fv)return;r=!0}else n=!0,r=!1,setTimeout(s,t);i=c}return a}var hv=20,pv=["top","right","bottom","left","width","height","size","weight"],mv=typeof MutationObserver<"u",gv=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=dv(this.refresh.bind(this),hv)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!ro||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mv?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!ro||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=pv.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Xl=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},Ct=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Kn},Yl=Yn(0,0,0,0);function Xn(e){return parseFloat(e)||0}function Zl(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var o=e["border-"+i+"-width"];return r+Xn(o)},0)}function vv(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],s=e["padding-"+o];n[o]=Xn(s)}return n}function yv(e){var t=e.getBBox();return Yn(0,0,t.width,t.height)}function wv(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Yl;var r=Ct(e).getComputedStyle(e),i=vv(r),o=i.left+i.right,s=i.top+i.bottom,a=Xn(r.width),c=Xn(r.height);if(r.boxSizing==="border-box"&&(Math.round(a+o)!==t&&(a-=Zl(r,"left","right")+o),Math.round(c+s)!==n&&(c-=Zl(r,"top","bottom")+s)),!bv(e)){var l=Math.round(a+o)-t,f=Math.round(c+s)-n;Math.abs(l)!==1&&(a-=l),Math.abs(f)!==1&&(c-=f)}return Yn(i.left,i.top,a,c)}var _v=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ct(e).SVGGraphicsElement}:function(e){return e instanceof Ct(e).SVGElement&&typeof e.getBBox=="function"}}();function bv(e){return e===Ct(e).document.documentElement}function Av(e){return ro?_v(e)?yv(e):wv(e):Yl}function Tv(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(o.prototype);return Xl(s,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),s}function Yn(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Sv=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Yn(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Av(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Ev=function(){function e(t,n){var r=Tv(n);Xl(this,{target:t,contentRect:r})}return e}(),xv=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Kl,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ct(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Sv(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ct(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new Ev(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Jl=typeof WeakMap<"u"?new WeakMap:new Kl,Ql=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=gv.getInstance(),r=new xv(t,n,this);Jl.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Ql.prototype[e]=function(){var t;return(t=Jl.get(this))[e].apply(t,arguments)}});var Pv=function(){return typeof Kn.ResizeObserver<"u"?Kn.ResizeObserver:Ql}();const Q=[];for(let e=0;e<256;++e)Q.push((e+256).toString(16).slice(1));function Cv(e,t=0){return(Q[e[t+0]]+Q[e[t+1]]+Q[e[t+2]]+Q[e[t+3]]+"-"+Q[e[t+4]]+Q[e[t+5]]+"-"+Q[e[t+6]]+Q[e[t+7]]+"-"+Q[e[t+8]]+Q[e[t+9]]+"-"+Q[e[t+10]]+Q[e[t+11]]+Q[e[t+12]]+Q[e[t+13]]+Q[e[t+14]]+Q[e[t+15]]).toLowerCase()}let io;const Rv=new Uint8Array(16);function Ov(){if(!io){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");io=crypto.getRandomValues.bind(crypto)}return io(Rv)}const eu={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Dv(e,t,n){if(eu.randomUUID&&!t&&!e)return eu.randomUUID();e=e||{};const r=e.random||(e.rng||Ov)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Cv(r)}const oo={GET:"GET",POST:"POST",PUT:"PUT",DELETE:"DELETE",PATCH:"PATCH"},kv="auth/ai-token",Mv="ai-search",tu="velaris-connect-ai-widget-uuid",Lv="TokenExpiredError",Nv=401;function Vv(){return{ENV:"dev",APIG_URL:"https://bff.dev.connect.velaris.io/connect/v1/bfw/",ASSETS_URL:"https://connect-widget.dev.connect.velaris.io/assets",PRIVATE_ASSETS_URL:"https://private-assets.dev.velaris.io/",PUBLIC_ASSETS_URL:"https://velaris-assets.dev.velaris.io/",CLOUDFRONT_URL:"https://d1fca218vcftx3.cloudfront.net/",SOCKET_URL:"wss://websocket.dev.velaris.io",SOCKET_ENV:"dev"}}const nu=Vv();function ru(e,t){return function(){return e.apply(t,arguments)}}const{toString:Bv}=Object.prototype,{getPrototypeOf:so}=Object,Zn=(e=>t=>{const n=Bv.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ee=e=>(e=e.toLowerCase(),t=>Zn(t)===e),Jn=e=>t=>typeof t===e,{isArray:Rt}=Array,Qt=Jn("undefined");function Fv(e){return e!==null&&!Qt(e)&&e.constructor!==null&&!Qt(e.constructor)&&ye(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const iu=Ee("ArrayBuffer");function Iv(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&iu(e.buffer),t}const jv=Jn("string"),ye=Jn("function"),ou=Jn("number"),Qn=e=>e!==null&&typeof e=="object",Uv=e=>e===!0||e===!1,er=e=>{if(Zn(e)!=="object")return!1;const t=so(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Hv=Ee("Date"),zv=Ee("File"),$v=Ee("Blob"),Wv=Ee("FileList"),Gv=e=>Qn(e)&&ye(e.pipe),qv=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ye(e.append)&&((t=Zn(e))==="formdata"||t==="object"&&ye(e.toString)&&e.toString()==="[object FormData]"))},Kv=Ee("URLSearchParams"),[Xv,Yv,Zv,Jv]=["ReadableStream","Request","Response","Headers"].map(Ee),Qv=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function en(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Rt(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(r=0;r<s;r++)a=o[r],t.call(null,e[a],a,e)}}function su(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const ot=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,au=e=>!Qt(e)&&e!==ot;function ao(){const{caseless:e}=au(this)&&this||{},t={},n=(r,i)=>{const o=e&&su(t,i)||i;er(t[o])&&er(r)?t[o]=ao(t[o],r):er(r)?t[o]=ao({},r):Rt(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&en(arguments[r],n);return t}const ey=(e,t,n,{allOwnKeys:r}={})=>(en(t,(i,o)=>{n&&ye(i)?e[o]=ru(i,n):e[o]=i},{allOwnKeys:r}),e),ty=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ny=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ry=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&so(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},iy=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},oy=e=>{if(!e)return null;if(Rt(e))return e;let t=e.length;if(!ou(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},sy=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&so(Uint8Array)),ay=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},cy=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},ly=Ee("HTMLFormElement"),uy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),cu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),fy=Ee("RegExp"),lu=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};en(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},dy=e=>{lu(e,(t,n)=>{if(ye(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(ye(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},hy=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Rt(e)?r(e):r(String(e).split(t)),n},py=()=>{},my=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,co="abcdefghijklmnopqrstuvwxyz",uu="0123456789",fu={DIGIT:uu,ALPHA:co,ALPHA_DIGIT:co+co.toUpperCase()+uu},gy=(e=16,t=fu.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function vy(e){return!!(e&&ye(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const yy=e=>{const t=new Array(10),n=(r,i)=>{if(Qn(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Rt(r)?[]:{};return en(r,(s,a)=>{const c=n(s,i+1);!Qt(c)&&(o[a]=c)}),t[i]=void 0,o}}return r};return n(e,0)},wy=Ee("AsyncFunction"),_y=e=>e&&(Qn(e)||ye(e))&&ye(e.then)&&ye(e.catch),du=((e,t)=>e?setImmediate:t?((n,r)=>(ot.addEventListener("message",({source:i,data:o})=>{i===ot&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),ot.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ye(ot.postMessage)),by=typeof queueMicrotask<"u"?queueMicrotask.bind(ot):typeof process<"u"&&process.nextTick||du,w={isArray:Rt,isArrayBuffer:iu,isBuffer:Fv,isFormData:qv,isArrayBufferView:Iv,isString:jv,isNumber:ou,isBoolean:Uv,isObject:Qn,isPlainObject:er,isReadableStream:Xv,isRequest:Yv,isResponse:Zv,isHeaders:Jv,isUndefined:Qt,isDate:Hv,isFile:zv,isBlob:$v,isRegExp:fy,isFunction:ye,isStream:Gv,isURLSearchParams:Kv,isTypedArray:sy,isFileList:Wv,forEach:en,merge:ao,extend:ey,trim:Qv,stripBOM:ty,inherits:ny,toFlatObject:ry,kindOf:Zn,kindOfTest:Ee,endsWith:iy,toArray:oy,forEachEntry:ay,matchAll:cy,isHTMLForm:ly,hasOwnProperty:cu,hasOwnProp:cu,reduceDescriptors:lu,freezeMethods:dy,toObjectSet:hy,toCamelCase:uy,noop:py,toFiniteNumber:my,findKey:su,global:ot,isContextDefined:au,ALPHABET:fu,generateString:gy,isSpecCompliantForm:vy,toJSONObject:yy,isAsyncFn:wy,isThenable:_y,setImmediate:du,asap:by};function R(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}w.inherits(R,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.status}}});const hu=R.prototype,pu={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{pu[e]={value:e}}),Object.defineProperties(R,pu),Object.defineProperty(hu,"isAxiosError",{value:!0}),R.from=(e,t,n,r,i,o)=>{const s=Object.create(hu);return w.toFlatObject(e,s,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),R.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const Ay=null;function lo(e){return w.isPlainObject(e)||w.isArray(e)}function mu(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function gu(e,t,n){return e?e.concat(t).map(function(i,o){return i=mu(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Ty(e){return w.isArray(e)&&!e.some(lo)}const Sy=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function tr(e,t,n){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!w.isUndefined(g[m])});const r=n.metaTokens,i=n.visitor||f,o=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(i))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(w.isDate(h))return h.toISOString();if(!c&&w.isBlob(h))throw new R("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(h)||w.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function f(h,m,g){let v=h;if(h&&!g&&typeof h=="object"){if(w.endsWith(m,"{}"))m=r?m:m.slice(0,-2),h=JSON.stringify(h);else if(w.isArray(h)&&Ty(h)||(w.isFileList(h)||w.endsWith(m,"[]"))&&(v=w.toArray(h)))return m=mu(m),v.forEach(function(_,A){!(w.isUndefined(_)||_===null)&&t.append(s===!0?gu([m],A,o):s===null?m:m+"[]",l(_))}),!1}return lo(h)?!0:(t.append(gu(g,m,o),l(h)),!1)}const u=[],d=Object.assign(Sy,{defaultVisitor:f,convertValue:l,isVisitable:lo});function p(h,m){if(!w.isUndefined(h)){if(u.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));u.push(h),w.forEach(h,function(v,y){(!(w.isUndefined(v)||v===null)&&i.call(t,v,w.isString(y)?y.trim():y,m,d))===!0&&p(v,m?m.concat(y):[y])}),u.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return p(e),t}function vu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function uo(e,t){this._pairs=[],e&&tr(e,this,t)}const yu=uo.prototype;yu.append=function(t,n){this._pairs.push([t,n])},yu.toString=function(t){const n=t?function(r){return t.call(this,r,vu)}:vu;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Ey(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wu(e,t,n){if(!t)return e;const r=n&&n.encode||Ey,i=n&&n.serialize;let o;if(i?o=i(t,n):o=w.isURLSearchParams(t)?t.toString():new uo(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class _u{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(r){r!==null&&t(r)})}}const bu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xy={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:uo,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},fo=typeof window<"u"&&typeof document<"u",ho=typeof navigator=="object"&&navigator||void 0,Py=fo&&(!ho||["ReactNative","NativeScript","NS"].indexOf(ho.product)<0),Cy=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ry=fo&&window.location.href||"http://localhost",ue={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fo,hasStandardBrowserEnv:Py,hasStandardBrowserWebWorkerEnv:Cy,navigator:ho,origin:Ry},Symbol.toStringTag,{value:"Module"})),...xy};function Oy(e,t){return tr(e,new ue.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return ue.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Dy(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ky(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function Au(e){function t(n,r,i,o){let s=n[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=o>=n.length;return s=!s&&w.isArray(i)?i.length:s,c?(w.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!w.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&w.isArray(i[s])&&(i[s]=ky(i[s])),!a)}if(w.isFormData(e)&&w.isFunction(e.entries)){const n={};return w.forEachEntry(e,(r,i)=>{t(Dy(r),i,n,0)}),n}return null}function My(e,t,n){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const tn={transitional:bu,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=w.isObject(t);if(o&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return i?JSON.stringify(Au(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t)||w.isReadableStream(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Oy(t,this.formSerializer).toString();if((a=w.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return tr(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),My(t)):t}],transformResponse:[function(t){const n=this.transitional||tn.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(w.isResponse(t)||w.isReadableStream(t))return t;if(t&&w.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?R.from(a,R.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ue.classes.FormData,Blob:ue.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{tn.headers[e]={}});const Ly=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ny=e=>{const t={};let n,r,i;return e&&e.split(` | |
| `).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&Ly[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Tu=Symbol("internals");function nn(e){return e&&String(e).trim().toLowerCase()}function nr(e){return e===!1||e==null?e:w.isArray(e)?e.map(nr):String(e)}function Vy(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const By=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function po(e,t,n,r,i){if(w.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!w.isString(t)){if(w.isString(r))return t.indexOf(r)!==-1;if(w.isRegExp(r))return r.test(t)}}function Fy(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Iy(e,t){const n=w.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}class fe{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(a,c,l){const f=nn(c);if(!f)throw new Error("header name must be a non-empty string");const u=w.findKey(i,f);(!u||i[u]===void 0||l===!0||l===void 0&&i[u]!==!1)&&(i[u||c]=nr(a))}const s=(a,c)=>w.forEach(a,(l,f)=>o(l,f,c));if(w.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(w.isString(t)&&(t=t.trim())&&!By(t))s(Ny(t),n);else if(w.isHeaders(t))for(const[a,c]of t.entries())o(c,a,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=nn(t),t){const r=w.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Vy(i);if(w.isFunction(n))return n.call(this,i,r);if(w.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=nn(t),t){const r=w.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||po(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=nn(s),s){const a=w.findKey(r,s);a&&(!n||po(r,r[a],a,n))&&(delete r[a],i=!0)}}return w.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||po(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return w.forEach(this,(i,o)=>{const s=w.findKey(r,o);if(s){n[s]=nr(i),delete n[o];return}const a=t?Fy(o):String(o).trim();a!==o&&delete n[o],n[a]=nr(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return w.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&w.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` | |
| `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Tu]=this[Tu]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=nn(s);r[a]||(Iy(i,s),r[a]=!0)}return w.isArray(t)?t.forEach(o):o(t),this}}fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(fe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),w.freezeMethods(fe);function mo(e,t){const n=this||tn,r=t||n,i=fe.from(r.headers);let o=r.data;return w.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Su(e){return!!(e&&e.__CANCEL__)}function Ot(e,t,n){R.call(this,e??"canceled",R.ERR_CANCELED,t,n),this.name="CanceledError"}w.inherits(Ot,R,{__CANCEL__:!0});function Eu(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new R("Request failed with status code "+n.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function jy(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Uy(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),f=r[o];s||(s=l),n[i]=c,r[i]=l;let u=o,d=0;for(;u!==i;)d+=n[u++],u=u%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),l-s<t)return;const p=f&&l-f;return p?Math.round(d*1e3/p):void 0}}function Hy(e,t){let n=0,r=1e3/t,i,o;const s=(l,f=Date.now())=>{n=f,i=null,o&&(clearTimeout(o),o=null),e.apply(null,l)};return[(...l)=>{const f=Date.now(),u=f-n;u>=r?s(l,f):(i=l,o||(o=setTimeout(()=>{o=null,s(i)},r-u)))},()=>i&&s(i)]}const rr=(e,t,n=3)=>{let r=0;const i=Uy(50,250);return Hy(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,c=s-r,l=i(c),f=s<=a;r=s;const u={loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a&&f?(a-s)/l:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(u)},n)},xu=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Pu=e=>(...t)=>w.asap(()=>e(...t)),zy=ue.hasStandardBrowserEnv?function(){const t=ue.navigator&&/(msie|trident)/i.test(ue.navigator.userAgent),n=document.createElement("a");let r;function i(o){let s=o;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const a=w.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),$y=ue.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const s=[e+"="+encodeURIComponent(t)];w.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),w.isString(r)&&s.push("path="+r),w.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Wy(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Gy(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Cu(e,t){return e&&!Wy(t)?Gy(e,t):t}const Ru=e=>e instanceof fe?{...e}:e;function st(e,t){t=t||{};const n={};function r(l,f,u){return w.isPlainObject(l)&&w.isPlainObject(f)?w.merge.call({caseless:u},l,f):w.isPlainObject(f)?w.merge({},f):w.isArray(f)?f.slice():f}function i(l,f,u){if(w.isUndefined(f)){if(!w.isUndefined(l))return r(void 0,l,u)}else return r(l,f,u)}function o(l,f){if(!w.isUndefined(f))return r(void 0,f)}function s(l,f){if(w.isUndefined(f)){if(!w.isUndefined(l))return r(void 0,l)}else return r(void 0,f)}function a(l,f,u){if(u in t)return r(l,f);if(u in e)return r(void 0,l)}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(l,f)=>i(Ru(l),Ru(f),!0)};return w.forEach(Object.keys(Object.assign({},e,t)),function(f){const u=c[f]||i,d=u(e[f],t[f],f);w.isUndefined(d)&&u!==a||(n[f]=d)}),n}const Ou=e=>{const t=st({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;t.headers=s=fe.from(s),t.url=wu(Cu(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(w.isFormData(n)){if(ue.hasStandardBrowserEnv||ue.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[l,...f]=c?c.split(";").map(u=>u.trim()).filter(Boolean):[];s.setContentType([l||"multipart/form-data",...f].join("; "))}}if(ue.hasStandardBrowserEnv&&(r&&w.isFunction(r)&&(r=r(t)),r||r!==!1&&zy(t.url))){const l=i&&o&&$y.read(o);l&&s.set(i,l)}return t},qy=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=Ou(e);let o=i.data;const s=fe.from(i.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=i,f,u,d,p,h;function m(){p&&p(),h&&h(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function v(){if(!g)return;const _=fe.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:_,config:e,request:g};Eu(function(D){n(D),m()},function(D){r(D),m()},b),g=null}"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(r(new R("Request aborted",R.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new R("Network Error",R.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let A=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const b=i.transitional||bu;i.timeoutErrorMessage&&(A=i.timeoutErrorMessage),r(new R(A,b.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,e,g)),g=null},o===void 0&&s.setContentType(null),"setRequestHeader"in g&&w.forEach(s.toJSON(),function(A,b){g.setRequestHeader(b,A)}),w.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),a&&a!=="json"&&(g.responseType=i.responseType),l&&([d,h]=rr(l,!0),g.addEventListener("progress",d)),c&&g.upload&&([u,p]=rr(c),g.upload.addEventListener("progress",u),g.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(f=_=>{g&&(r(!_||_.type?new Ot(null,e,g):_),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const y=jy(i.url);if(y&&ue.protocols.indexOf(y)===-1){r(new R("Unsupported protocol "+y+":",R.ERR_BAD_REQUEST,e));return}g.send(o||null)})},Ky=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(l){if(!i){i=!0,a();const f=l instanceof Error?l:this.reason;r.abort(f instanceof R?f:new Ot(f instanceof Error?f.message:f))}};let s=t&&setTimeout(()=>{s=null,o(new R(`timeout ${t} of ms exceeded`,R.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),e=null)};e.forEach(l=>l.addEventListener("abort",o));const{signal:c}=r;return c.unsubscribe=()=>w.asap(a),c}},Xy=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Yy=async function*(e,t){for await(const n of Zy(e))yield*Xy(n,t)},Zy=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Du=(e,t,n,r)=>{const i=Yy(e,t);let o=0,s,a=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:f}=await i.next();if(l){a(),c.close();return}let u=f.byteLength;if(n){let d=o+=u;n(d)}c.enqueue(new Uint8Array(f))}catch(l){throw a(l),l}},cancel(c){return a(c),i.return()}},{highWaterMark:2})},ir=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ku=ir&&typeof ReadableStream=="function",Jy=ir&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Mu=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Qy=ku&&Mu(()=>{let e=!1;const t=new Request(ue.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Lu=64*1024,go=ku&&Mu(()=>w.isReadableStream(new Response("").body)),or={stream:go&&(e=>e.body)};ir&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!or[t]&&(or[t]=w.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new R(`Response type '${t}' is not supported`,R.ERR_NOT_SUPPORT,r)})})})(new Response);const e0=async e=>{if(e==null)return 0;if(w.isBlob(e))return e.size;if(w.isSpecCompliantForm(e))return(await new Request(ue.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(w.isArrayBufferView(e)||w.isArrayBuffer(e))return e.byteLength;if(w.isURLSearchParams(e)&&(e=e+""),w.isString(e))return(await Jy(e)).byteLength},t0=async(e,t)=>{const n=w.toFiniteNumber(e.getContentLength());return n??e0(t)},vo={http:Ay,xhr:qy,fetch:ir&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:f,withCredentials:u="same-origin",fetchOptions:d}=Ou(e);l=l?(l+"").toLowerCase():"text";let p=Ky([i,o&&o.toAbortSignal()],s),h;const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(c&&Qy&&n!=="get"&&n!=="head"&&(g=await t0(f,r))!==0){let b=new Request(t,{method:"POST",body:r,duplex:"half"}),E;if(w.isFormData(r)&&(E=b.headers.get("content-type"))&&f.setContentType(E),b.body){const[D,S]=xu(g,rr(Pu(c)));r=Du(b.body,Lu,D,S)}}w.isString(u)||(u=u?"include":"omit");const v="credentials"in Request.prototype;h=new Request(t,{...d,signal:p,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:v?u:void 0});let y=await fetch(h);const _=go&&(l==="stream"||l==="response");if(go&&(a||_&&m)){const b={};["status","statusText","headers"].forEach(C=>{b[C]=y[C]});const E=w.toFiniteNumber(y.headers.get("content-length")),[D,S]=a&&xu(E,rr(Pu(a),!0))||[];y=new Response(Du(y.body,Lu,D,()=>{S&&S(),m&&m()}),b)}l=l||"text";let A=await or[w.findKey(or,l)||"text"](y,e);return!_&&m&&m(),await new Promise((b,E)=>{Eu(b,E,{data:A,headers:fe.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:h})})}catch(v){throw m&&m(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new R("Network Error",R.ERR_NETWORK,e,h),{cause:v.cause||v}):R.from(v,v&&v.code,e,h)}})};w.forEach(vo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Nu=e=>`- ${e}`,n0=e=>w.isFunction(e)||e===null||e===!1,Vu={getAdapter:e=>{e=w.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let s;if(r=n,!n0(n)&&(r=vo[(s=String(n)).toLowerCase()],r===void 0))throw new R(`Unknown adapter '${s}'`);if(r)break;i[s||"#"+o]=r}if(!r){const o=Object.entries(i).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since : | |
| `+o.map(Nu).join(` | |
| `):" "+Nu(o[0]):"as no adapter specified";throw new R("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:vo};function yo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ot(null,e)}function Bu(e){return yo(e),e.headers=fe.from(e.headers),e.data=mo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Vu.getAdapter(e.adapter||tn.adapter)(e).then(function(r){return yo(e),r.data=mo.call(e,e.transformResponse,r),r.headers=fe.from(r.headers),r},function(r){return Su(r)||(yo(e),r&&r.response&&(r.response.data=mo.call(e,e.transformResponse,r.response),r.response.headers=fe.from(r.response.headers))),Promise.reject(r)})}const Fu="1.7.7",wo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wo[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Iu={};wo.transitional=function(t,n,r){function i(o,s){return"[Axios v"+Fu+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new R(i(s," has been removed"+(n?" in "+n:"")),R.ERR_DEPRECATED);return n&&!Iu[s]&&(Iu[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};function r0(e,t,n){if(typeof e!="object")throw new R("options must be an object",R.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],c=a===void 0||s(a,o,e);if(c!==!0)throw new R("option "+o+" must be "+c,R.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new R("Unknown option "+o,R.ERR_BAD_OPTION)}}const _o={assertOptions:r0,validators:wo},Ke=_o.validators;class at{constructor(t){this.defaults=t,this.interceptors={request:new _u,response:new _u}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` | |
| `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=st(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&_o.assertOptions(r,{silentJSONParsing:Ke.transitional(Ke.boolean),forcedJSONParsing:Ke.transitional(Ke.boolean),clarifyTimeoutError:Ke.transitional(Ke.boolean)},!1),i!=null&&(w.isFunction(i)?n.paramsSerializer={serialize:i}:_o.assertOptions(i,{encode:Ke.function,serialize:Ke.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&w.merge(o.common,o[n.method]);o&&w.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=fe.concat(s,o);const a=[];let c=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(c=c&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let f,u=0,d;if(!c){const h=[Bu.bind(this),void 0];for(h.unshift.apply(h,a),h.push.apply(h,l),d=h.length,f=Promise.resolve(n);u<d;)f=f.then(h[u++],h[u++]);return f}d=a.length;let p=n;for(u=0;u<d;){const h=a[u++],m=a[u++];try{p=h(p)}catch(g){m.call(this,g);break}}try{f=Bu.call(this,p)}catch(h){return Promise.reject(h)}for(u=0,d=l.length;u<d;)f=f.then(l[u++],l[u++]);return f}getUri(t){t=st(this.defaults,t);const n=Cu(t.baseURL,t.url);return wu(n,t.params,t.paramsSerializer)}}w.forEach(["delete","get","head","options"],function(t){at.prototype[t]=function(n,r){return this.request(st(r||{},{method:t,url:n,data:(r||{}).data}))}}),w.forEach(["post","put","patch"],function(t){function n(r){return function(o,s,a){return this.request(st(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}at.prototype[t]=n(),at.prototype[t+"Form"]=n(!0)});class bo{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new Ot(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new bo(function(i){t=i}),cancel:t}}}function i0(e){return function(n){return e.apply(null,n)}}function o0(e){return w.isObject(e)&&e.isAxiosError===!0}const Ao={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ao).forEach(([e,t])=>{Ao[t]=e});function ju(e){const t=new at(e),n=ru(at.prototype.request,t);return w.extend(n,at.prototype,t,{allOwnKeys:!0}),w.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return ju(st(e,i))},n}const K=ju(tn);K.Axios=at,K.CanceledError=Ot,K.CancelToken=bo,K.isCancel=Su,K.VERSION=Fu,K.toFormData=tr,K.AxiosError=R,K.Cancel=K.CanceledError,K.all=function(t){return Promise.all(t)},K.spread=i0,K.isAxiosError=o0,K.mergeConfig=st,K.AxiosHeaders=fe,K.formToJSON=e=>Au(w.isHTMLForm(e)?new FormData(e):e),K.getAdapter=Vu.getAdapter,K.HttpStatusCode=Ao,K.default=K;let To=null;const sr={setToken:e=>{To=e},getToken:()=>To,removeToken:()=>{To=null}},Uu=async({method:e=oo.GET,baseUrl:t=nu.APIG_URL,url:n,data:r=null,headers:i={},isAuthRequired:o=!0,retryCount:s=5})=>{var a,c,l,f;try{let u={...i};if(o){const p=sr.getToken();if(!p)throw new Error("Token not found.");u={Authorization:p.toString(),...i}}return(await K({method:e,url:`${t}${n}`,data:r,headers:u})).data}catch(u){if(((l=(c=(a=u==null?void 0:u.response)==null?void 0:a.data)==null?void 0:c.message)==null?void 0:l.name)===Lv&&s)return sr.removeToken(),Uu({method:e,url:n,data:r,headers:i,isAuthRequired:o,retryCount:s-1});throw((f=u==null?void 0:u.response)==null?void 0:f.status)===Nv&&sr.removeToken(),new Error(`${e.toUpperCase()} request to ${n} failed: ${u.message}`)}},Hu={makeRequest:Uu},s0=async(e,t)=>{const n=`${kv}`,r={apiKey:e,uuid:t};return Hu.makeRequest({method:oo.POST,url:n,data:r,isAuthRequired:!1})},a0=()=>({getToken:async(t,n,r,i)=>{let o=n;r("main",!0),o||(o=localStorage.getItem(tu),o||(o=Dv(),localStorage.setItem(tu,o)));const s=await s0(t,o);r("main",!1),i(s.data)}}),c0=async e=>{const t=`${Mv}?query=${e}`,n={searchTerm:e};return(await Hu.makeRequest({method:oo.GET,url:t,data:n,isAuthRequired:!0})).data},{ENV:l0,CLOUDFRONT_URL:u0,PUBLIC_ASSETS_URL:f0}=nu,rn=Ce(),zu=({children:e,apiKey:t,uuid:n})=>{const[r,i]=W(!1),[o,s]=W(!1),[a,c]=W(!1),[l,f]=W({widgetName:"Jothipala",triggerBtnImage:"https://i1.sndcdn.com/artworks-wBKJcCXyzqugehlR-RnBBfg-t500x500.jpg",triggerBtnStroke:"",profilePicture:"https://static.displate.com/857x1200/displate/2023-11-29/290040c0b433b7ed773e02cafc62fcd4_c1fb06f580e9b690656e858f7d90e4f1.jpg"}),[u,d]=W(null),[p,h]=W({apiKey:"",uuid:""}),[m,g]=W({main:!1,search:!1}),[v,y]=W(""),[_,A]=W([]),b=(V,L)=>g({...m,[V]:L}),{getToken:E}=a0(),D=Z(({configs:V,token:L})=>{d(L),sr.setToken(L),i(!0),f({...V})},[d,i]);Y(()=>{h({apiKey:t,uuid:n})},[t,n]),Y(()=>{p.apiKey&&E(p.apiKey,p.uuid,b,D)},[p]),Y(()=>{var Pe,F,I,me,te,Ze,De,we,Ae,lt,ut,br,Ar,Tr,cn,ln;const V=(F=(Pe=l==null?void 0:l.helpBar)==null?void 0:Pe.styles)==null?void 0:F.buttonSize,L=`${((te=(me=(I=l==null?void 0:l.helpBar)==null?void 0:I.styles)==null?void 0:me.verticalSpacing)==null?void 0:te.value)||""}${(we=(De=(Ze=l==null?void 0:l.helpBar)==null?void 0:Ze.styles)==null?void 0:De.verticalSpacing)==null?void 0:we.unit}`||"1rem",he=`${((ut=(lt=(Ae=l==null?void 0:l.helpBar)==null?void 0:Ae.styles)==null?void 0:lt.horizontalSpacing)==null?void 0:ut.value)||""}${(Tr=(Ar=(br=l==null?void 0:l.helpBar)==null?void 0:br.styles)==null?void 0:Ar.horizontalSpacing)==null?void 0:Tr.unit}`||"1rem";console.log("buttonSize",{buttonSize:V,buttonVertical:L,buttonHorizontal:he,position:(ln=(cn=l==null?void 0:l.helpBar)==null?void 0:cn.styles)==null?void 0:ln.buttonPosition});const pe=document.getElementById("connect-ai-widget-root");pe.style.setProperty("--connect-ai-widget-trigger-btn-size",`${V}px`),pe.style.setProperty("--connect-ai-widget-trigger-btn-vertical",L),pe.style.setProperty("--connect-ai-widget-trigger-btn-horizontal",he)},[l]);const S=async V=>{b("search",!0);const L=await c0(V);y(L==null?void 0:L.text),A(L==null?void 0:L.references),b("search",!1)},C=Z(V=>`${u0}${V}?token=${u}&env=${l0}&source=connect-widget`,[u]),P=Z(V=>`${f0}${V}`,[]),M=re(()=>({isWidgetOpen:o,setWidgetOpen:s,isFullScreen:a,setFullScreen:c,widgetConfig:l,setWidgetConfig:f,authToken:u,setAuthToken:d,config:p,setConfig:h,setLoader:b,loaders:m,onAISearch:S,searchResults:v,searchResultReferences:_,generateImageURL:C,generatePublicImageURL:P}),[o,a,l,u,p,m,v,_,C]);return r?T(rn.Provider,{value:M,children:e}):null};zu.propTypes={children:Ue.node.isRequired};const $u=Nt(({children:e,content:t,triggerRef:n=null},r)=>{const i=H(),o=H(),{isFullScreen:s,setFullScreen:a,isWidgetOpen:c,setWidgetOpen:l}=j(rn),f=()=>{l(!1),a(!1)},u=()=>{l(!0),a(!1)},d=()=>{l(y=>!y),s&&a(!1)},{triggerProps:p,layerProps:h,arrowProps:m}=kd({ResizeObserver:Pv,isOpen:c,overflowContainer:!0,auto:!0,container:i.current,placement:s?"center":"top-end",snap:!0,trigger:{getBounds:()=>s?null:n==null?void 0:n.getBoundingClientRect()},triggerOffset:10,containerOffset:20,arrowOffset:15}),g=yn(e,{ref:r,...p,onClick:y=>{e.props.onClick&&e.props.onClick(y),d()}});pn(r,()=>({openPopover:u,closePopover:f,togglePopover:d}));const v=T(lv,{children:c&&T(no.div,{...h,className:`connect-ai-widget-popover-base ${s?"connect-ai-widget-full-screen-base":""}`,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{type:"spring",duration:.4},children:[t,!s&&T(Id,{...m,className:"connect-ai-widget-popover-base-arrow"})]})});return T("div",{ref:i,className:`connect-ai-widget-content-wrapper ${s&&c?"connect-ai-widget-full-screen":""}`,children:[g,T("div",{ref:o}),c&&o.current?vn(v,o.current):null]})});$u.propTypes={children:Ue.node.isRequired,content:Ue.node.isRequired,triggerRef:Ue.object};const ar=({className:e})=>{const{widgetConfig:t,generatePublicImageURL:n}=j(rn),{identity:r}=t;return T("div",{className:`connect-ai-widget-profile-picture-wrapper ${r!=null&&r.profilePicture?"":"connect-ai-widget-default-pp"} ${e||""}`,children:r!=null&&r.profilePicture?T("img",{src:n(r==null?void 0:r.profilePicture),alt:"",className:"connect-ai-widget-profile-picture"}):T("i",{className:"connect-widget-icon connect-widget-ai-icon-default-profile"})})};ar.defaultProps={className:""},ar.propTypes={className:Ue.string};const d0="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Layer_2'%20data-name='Layer%202'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014.43%2015'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20%237b7a7a;%20}%20.cls-1,%20.cls-2,%20.cls-3%20{%20stroke-width:%200px;%20}%20.cls-2%20{%20fill:%20%23636162;%20}%20.cls-3%20{%20fill:%20%23999899;%20}%20%3c/style%3e%3c/defs%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3cg%3e%3cpath%20id='Vector'%20class='cls-1'%20d='m14.07,9.7l-2.3-2.18s-.01.1-.04.2c-.03.1-.14.27-.29.35l-2.15,1.23-1.36.78s-.02.01-.03.01l-1.05.6-.08.04c-.43.25-.92-.07-.92-.57,0,.49-.04.74-.02,1.11v.02c.08.92.25,1.46.49,1.89.36.65.82,1.27,1.36,1.77,1.24-.24,2.75-1.19,3.66-1.82.62-.43,1.78-1.23,2.65-1.82.56-.38.6-1.18.09-1.62h0Z'/%3e%3cpath%20id='Vector_2'%20data-name='Vector%202'%20class='cls-2'%20d='m7.8,14.94c-.55-.5-1.05-1.09-1.41-1.75-.33-.59-.53-1.37-.53-3.04v-5.35c0-.5.52-.75.96-.5,0,0-1.21-.9-1.87-1.25-.65-.34-1.85-.58-2.84-.26-.2.06-.41.12-.57.27-.38.36-1.53,1.67-1.53,4.32v.13c0,2.3.97,3.97,1.9,4.88.93.91,2.6,1.89,4.05,2.39.41.14.86.21,1.23.22.2,0,.35,0,.49-.03l.12-.03Z'/%3e%3cpath%20id='Vector_3'%20data-name='Vector%203'%20class='cls-3'%20d='m13.98,3.7c-.87-.59-2.03-1.39-2.65-1.82C10.26,1.14,8.39-.03,7.07,0c-1.68.04-3.87,1.65-5.21,2.78l-.32.28c1.07-.69,2.48-.33,3.24.08.65.35,1.99,1.14,1.99,1.14l.08.04,1.05.6s.02.01.03.01l1.36.78,2.15,1.23c.15.09.25.26.29.35.04.1.05.22.05.22l2.3-2.2c.51-.44.47-1.24-.09-1.62h0s0,0,0,0Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",h0=({link:e,title:t})=>T("a",{className:"connect-ai-widget-article-item-wrapper",role:"button",tabIndex:0,href:e,target:"_blank",children:[T("div",{className:"connect-ai-widget-article-item-icon",children:T("i",{className:"connect-widget-icon connect-widget-ai-icon-file-icon"})}),T("div",{className:"connect-ai-widget-article-item-text",children:t})]});var Wu={},So={},Eo={};Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.default=v0;var Gu="html",qu="head",cr="body",p0=/<([a-zA-Z]+[0-9]?)/,Ku=/<head[^]*>/i,Xu=/<body[^]*>/i,lr=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},xo=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},Yu=typeof window=="object"&&window.DOMParser;if(typeof Yu=="function"){var m0=new Yu,g0="text/html";xo=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),m0.parseFromString(e,g0)},lr=xo}if(typeof document=="object"&&document.implementation){var ur=document.implementation.createHTMLDocument();lr=function(e,t){if(t){var n=ur.documentElement.querySelector(t);return n&&(n.innerHTML=e),ur}return ur.documentElement.innerHTML=e,ur}}var fr=typeof document=="object"&&document.createElement("template"),Po;fr&&fr.content&&(Po=function(e){return fr.innerHTML=e,fr.content.childNodes});function v0(e){var t,n,r=e.match(p0),i=r&&r[1]?r[1].toLowerCase():"";switch(i){case Gu:{var o=xo(e);if(!Ku.test(e)){var s=o.querySelector(qu);(t=s==null?void 0:s.parentNode)===null||t===void 0||t.removeChild(s)}if(!Xu.test(e)){var s=o.querySelector(cr);(n=s==null?void 0:s.parentNode)===null||n===void 0||n.removeChild(s)}return o.querySelectorAll(Gu)}case qu:case cr:{var a=lr(e).querySelectorAll(i);return Xu.test(e)&&Ku.test(e)?a[0].parentNode.childNodes:a}default:{if(Po)return Po(e);var s=lr(e,cr).querySelector(cr);return s.childNodes}}}var dr={},Co={},Ro={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(r){return r.type===t.Tag||r.type===t.Script||r.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(Ro);var k={},Xe=G&&G.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),on=G&&G.__assign||function(){return on=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},on.apply(this,arguments)};Object.defineProperty(k,"__esModule",{value:!0}),k.cloneNode=k.hasChildren=k.isDocument=k.isDirective=k.isComment=k.isText=k.isCDATA=k.isTag=k.Element=k.Document=k.CDATA=k.NodeWithChildren=k.ProcessingInstruction=k.Comment=k.Text=k.DataNode=k.Node=void 0;var de=Ro,Oo=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),Do(this,t)},e}();k.Node=Oo;var hr=function(e){Xe(t,e);function t(n){var r=e.call(this)||this;return r.data=n,r}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(n){this.data=n},enumerable:!1,configurable:!0}),t}(Oo);k.DataNode=hr;var Zu=function(e){Xe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=de.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(hr);k.Text=Zu;var Ju=function(e){Xe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=de.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(hr);k.Comment=Ju;var Qu=function(e){Xe(t,e);function t(n,r){var i=e.call(this,r)||this;return i.name=n,i.type=de.ElementType.Directive,i}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(hr);k.ProcessingInstruction=Qu;var pr=function(e){Xe(t,e);function t(n){var r=e.call(this)||this;return r.children=n,r}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var n;return(n=this.children[0])!==null&&n!==void 0?n:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),t}(Oo);k.NodeWithChildren=pr;var ef=function(e){Xe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=de.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(pr);k.CDATA=ef;var tf=function(e){Xe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=de.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(pr);k.Document=tf;var nf=function(e){Xe(t,e);function t(n,r,i,o){i===void 0&&(i=[]),o===void 0&&(o=n==="script"?de.ElementType.Script:n==="style"?de.ElementType.Style:de.ElementType.Tag);var s=e.call(this,i)||this;return s.name=n,s.attribs=r,s.type=o,s}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var i,o;return{name:r,value:n.attribs[r],namespace:(i=n["x-attribsNamespace"])===null||i===void 0?void 0:i[r],prefix:(o=n["x-attribsPrefix"])===null||o===void 0?void 0:o[r]}})},enumerable:!1,configurable:!0}),t}(pr);k.Element=nf;function rf(e){return(0,de.isTag)(e)}k.isTag=rf;function of(e){return e.type===de.ElementType.CDATA}k.isCDATA=of;function sf(e){return e.type===de.ElementType.Text}k.isText=sf;function af(e){return e.type===de.ElementType.Comment}k.isComment=af;function cf(e){return e.type===de.ElementType.Directive}k.isDirective=cf;function lf(e){return e.type===de.ElementType.Root}k.isDocument=lf;function y0(e){return Object.prototype.hasOwnProperty.call(e,"children")}k.hasChildren=y0;function Do(e,t){t===void 0&&(t=!1);var n;if(sf(e))n=new Zu(e.data);else if(af(e))n=new Ju(e.data);else if(rf(e)){var r=t?ko(e.children):[],i=new nf(e.name,on({},e.attribs),r);r.forEach(function(c){return c.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=on({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=on({},e["x-attribsPrefix"])),n=i}else if(of(e)){var r=t?ko(e.children):[],o=new ef(r);r.forEach(function(l){return l.parent=o}),n=o}else if(lf(e)){var r=t?ko(e.children):[],s=new tf(r);r.forEach(function(l){return l.parent=s}),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else if(cf(e)){var a=new Qu(e.name,e.data);e["x-name"]!=null&&(a["x-name"]=e["x-name"],a["x-publicId"]=e["x-publicId"],a["x-systemId"]=e["x-systemId"]),n=a}else throw new Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}k.cloneNode=Do;function ko(e){for(var t=e.map(function(r){return Do(r,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}(function(e){var t=G&&G.__createBinding||(Object.create?function(a,c,l,f){f===void 0&&(f=l);var u=Object.getOwnPropertyDescriptor(c,l);(!u||("get"in u?!c.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return c[l]}}),Object.defineProperty(a,f,u)}:function(a,c,l,f){f===void 0&&(f=l),a[f]=c[l]}),n=G&&G.__exportStar||function(a,c){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(c,l)&&t(c,a,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=Ro,i=k;n(k,e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function a(c,l,f){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof l=="function"&&(f=l,l=o),typeof c=="object"&&(l=c,c=void 0),this.callback=c??null,this.options=l??o,this.elementCB=f??null}return a.prototype.onparserinit=function(c){this.parser=c},a.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},a.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},a.prototype.onerror=function(c){this.handleCallback(c)},a.prototype.onclosetag=function(){this.lastNode=null;var c=this.tagStack.pop();this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(c)},a.prototype.onopentag=function(c,l){var f=this.options.xmlMode?r.ElementType.Tag:void 0,u=new i.Element(c,l,void 0,f);this.addNode(u),this.tagStack.push(u)},a.prototype.ontext=function(c){var l=this.lastNode;if(l&&l.type===r.ElementType.Text)l.data+=c,this.options.withEndIndices&&(l.endIndex=this.parser.endIndex);else{var f=new i.Text(c);this.addNode(f),this.lastNode=f}},a.prototype.oncomment=function(c){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=c;return}var l=new i.Comment(c);this.addNode(l),this.lastNode=l},a.prototype.oncommentend=function(){this.lastNode=null},a.prototype.oncdatastart=function(){var c=new i.Text(""),l=new i.CDATA([c]);this.addNode(l),c.parent=l,this.lastNode=c},a.prototype.oncdataend=function(){this.lastNode=null},a.prototype.onprocessinginstruction=function(c,l){var f=new i.ProcessingInstruction(c,l);this.addNode(f)},a.prototype.handleCallback=function(c){if(typeof this.callback=="function")this.callback(c,this.dom);else if(c)throw c},a.prototype.addNode=function(c){var l=this.tagStack[this.tagStack.length-1],f=l.children[l.children.length-1];this.options.withStartIndices&&(c.startIndex=this.parser.startIndex),this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),l.children.push(c),f&&(c.prev=f,f.next=c),c.parent=l,this.lastNode=null},a}();e.DomHandler=s,e.default=s})(Co);var uf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,n){return t[n.toLowerCase()]=n,t},{})})(uf),Object.defineProperty(dr,"__esModule",{value:!0}),dr.formatAttributes=ff,dr.formatDOM=df;var mr=Co,w0=uf;function _0(e){return w0.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function ff(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function b0(e){e=e.toLowerCase();var t=_0(e);return t||e}function df(e,t,n){t===void 0&&(t=null);for(var r=[],i,o=0,s=e.length;o<s;o++){var a=e[o];switch(a.nodeType){case 1:{var c=b0(a.nodeName);i=new mr.Element(c,ff(a.attributes)),i.children=df(c==="template"?a.content.childNodes:a.childNodes,i);break}case 3:i=new mr.Text(a.nodeValue);break;case 8:i=new mr.Comment(a.nodeValue);break;default:continue}var l=r[o-1]||null;l&&(l.next=i),i.parent=t,i.prev=l,i.next=null,r.push(i)}return n&&(i=new mr.ProcessingInstruction(n.substring(0,n.indexOf(" ")).toLowerCase(),n),i.next=r[0]||null,i.parent=t,r.unshift(i),r[1]&&(r[1].prev=r[0])),r}var A0=G&&G.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(So,"__esModule",{value:!0}),So.default=x0;var T0=A0(Eo),S0=dr,E0=/<(![a-zA-Z\s]+)>/;function x0(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(E0),n=t?t[1]:void 0;return(0,S0.formatDOM)((0,T0.default)(e),null,n)}var gr={},xe={},vr={},P0=0;vr.SAME=P0;var C0=1;vr.CAMELCASE=C0,vr.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};const hf=0,Ye=1,yr=2,wr=3,Mo=4,pf=5,mf=6;function R0(e){return ee.hasOwnProperty(e)?ee[e]:null}function le(e,t,n,r,i,o,s){this.acceptsBooleans=t===yr||t===wr||t===Mo,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}const ee={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{ee[e]=new le(e,hf,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{ee[e]=new le(e,Ye,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{ee[e]=new le(e,yr,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{ee[e]=new le(e,yr,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{ee[e]=new le(e,wr,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{ee[e]=new le(e,wr,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{ee[e]=new le(e,Mo,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{ee[e]=new le(e,mf,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{ee[e]=new le(e,pf,!1,e.toLowerCase(),null,!1,!1)});const Lo=/[\-\:]([a-z])/g,No=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(Lo,No);ee[t]=new le(t,Ye,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(Lo,No);ee[t]=new le(t,Ye,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(Lo,No);ee[t]=new le(t,Ye,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{ee[e]=new le(e,Ye,!1,e.toLowerCase(),null,!1,!1)});const O0="xlinkHref";ee[O0]=new le("xlinkHref",Ye,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{ee[e]=new le(e,Ye,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:D0,SAME:k0,possibleStandardNames:gf}=vr,M0=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD"+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",L0=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+M0+"]*$")),N0=Object.keys(gf).reduce((e,t)=>{const n=gf[t];return n===k0?e[t]=t:n===D0?e[t.toLowerCase()]=t:e[t]=n,e},{});xe.BOOLEAN=wr,xe.BOOLEANISH_STRING=yr,xe.NUMERIC=pf,xe.OVERLOADED_BOOLEAN=Mo,xe.POSITIVE_NUMERIC=mf,xe.RESERVED=hf,xe.STRING=Ye,xe.getPropertyInfo=R0,xe.isCustomAttribute=L0,xe.possibleStandardNames=N0;var Vo={};const vf=ad(sd);var Bo={},yf=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,V0=/\n/g,B0=/^\s*/,F0=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,I0=/^:\s*/,j0=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,U0=/^[;\s]*/,H0=/^\s+|\s+$/g,z0=` | |
| `,wf="/",_f="*",ct="",$0="comment",W0="declaration",G0=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(h){var m=h.match(V0);m&&(n+=m.length);var g=h.lastIndexOf(z0);r=~g?h.length-g:r+h.length}function o(){var h={line:n,column:r};return function(m){return m.position=new s(h),l(),m}}function s(h){this.start=h,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function a(h){var m=new Error(t.source+":"+n+":"+r+": "+h);if(m.reason=h,m.filename=t.source,m.line=n,m.column=r,m.source=e,!t.silent)throw m}function c(h){var m=h.exec(e);if(m){var g=m[0];return i(g),e=e.slice(g.length),m}}function l(){c(B0)}function f(h){var m;for(h=h||[];m=u();)m!==!1&&h.push(m);return h}function u(){var h=o();if(!(wf!=e.charAt(0)||_f!=e.charAt(1))){for(var m=2;ct!=e.charAt(m)&&(_f!=e.charAt(m)||wf!=e.charAt(m+1));)++m;if(m+=2,ct===e.charAt(m-1))return a("End of comment missing");var g=e.slice(2,m-2);return r+=2,i(g),e=e.slice(m),r+=2,h({type:$0,comment:g})}}function d(){var h=o(),m=c(F0);if(m){if(u(),!c(I0))return a("property missing ':'");var g=c(j0),v=h({type:W0,property:bf(m[0].replace(yf,ct)),value:g?bf(g[0].replace(yf,ct)):ct});return c(U0),v}}function p(){var h=[];f(h);for(var m;m=d();)m!==!1&&(h.push(m),f(h));return h}return l(),p()};function bf(e){return e?e.replace(H0,ct):ct}var q0=G&&G.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=X0;var K0=q0(G0);function X0(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,K0.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var s=o.property,a=o.value;i?t(s,a,o):a&&(n=n||{},n[s]=a)}}),n}var _r={};Object.defineProperty(_r,"__esModule",{value:!0}),_r.camelCase=void 0;var Y0=/^--[a-zA-Z0-9_-]+$/,Z0=/-([a-z])/g,J0=/^[^-]+$/,Q0=/^-(webkit|moz|ms|o|khtml)-/,ew=/^-(ms)-/,tw=function(e){return!e||J0.test(e)||Y0.test(e)},nw=function(e,t){return t.toUpperCase()},Af=function(e,t){return"".concat(t,"-")},rw=function(e,t){return t===void 0&&(t={}),tw(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(ew,Af):e=e.replace(Q0,Af),e.replace(Z0,nw))};_r.camelCase=rw;var iw=G&&G.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},ow=iw(Bo),sw=_r;function Fo(e,t){var n={};return!e||typeof e!="string"||(0,ow.default)(e,function(r,i){r&&i&&(n[(0,sw.camelCase)(r,t)]=i)}),n}Fo.default=Fo;var aw=Fo;(function(e){var t=G&&G.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=o,e.setStyleProp=a;var n=vf,r=t(aw),i=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function o(f,u){return f.includes("-")?!i.has(f):!!(u&&typeof u.is=="string")}var s={reactCompat:!0};function a(f,u){if(typeof f=="string"){if(!f.trim()){u.style={};return}try{u.style=(0,r.default)(f,s)}catch{u.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(n.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var c=function(f){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(f.name)};e.canTextBeChildOfNode=c;var l=function(f){return f};e.returnFirstArg=l})(Vo),Object.defineProperty(gr,"__esModule",{value:!0}),gr.default=fw;var sn=xe,Tf=Vo,cw=["checked","value"],lw=["input","select","textarea"],uw={reset:!0,submit:!0};function fw(e,t){e===void 0&&(e={});var n={},r=!!(e.type&&uw[e.type]);for(var i in e){var o=e[i];if((0,sn.isCustomAttribute)(i)){n[i]=o;continue}var s=i.toLowerCase(),a=Sf(s);if(a){var c=(0,sn.getPropertyInfo)(a);switch(cw.includes(a)&&lw.includes(t)&&!r&&(a=Sf("default"+s)),n[a]=o,c&&c.type){case sn.BOOLEAN:n[a]=!0;break;case sn.OVERLOADED_BOOLEAN:o===""&&(n[a]=!0);break}continue}Tf.PRESERVE_CUSTOM_ATTRIBUTES&&(n[i]=o)}return(0,Tf.setStyleProp)(e.style,n),n}function Sf(e){return sn.possibleStandardNames[e]}var Io={},dw=G&&G.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Io,"__esModule",{value:!0}),Io.default=Ef;var jo=vf,hw=dw(gr),an=Vo,pw={cloneElement:jo.cloneElement,createElement:jo.createElement,isValidElement:jo.isValidElement};function Ef(e,t){t===void 0&&(t={});for(var n=[],r=typeof t.replace=="function",i=t.transform||an.returnFirstArg,o=t.library||pw,s=o.cloneElement,a=o.createElement,c=o.isValidElement,l=e.length,f=0;f<l;f++){var u=e[f];if(r){var d=t.replace(u,f);if(c(d)){l>1&&(d=s(d,{key:d.key||f})),n.push(i(d,u,f));continue}}if(u.type==="text"){var p=!u.data.trim().length;if(p&&u.parent&&!(0,an.canTextBeChildOfNode)(u.parent)||t.trim&&p)continue;n.push(i(u.data,u,f));continue}var h=u,m={};mw(h)?((0,an.setStyleProp)(h.attribs.style,h.attribs),m=h.attribs):h.attribs&&(m=(0,hw.default)(h.attribs,h.name));var g=void 0;switch(u.type){case"script":case"style":u.children[0]&&(m.dangerouslySetInnerHTML={__html:u.children[0].data});break;case"tag":u.name==="textarea"&&u.children[0]?m.defaultValue=u.children[0].data:u.children&&u.children.length&&(g=Ef(u.children,t));break;default:continue}l>1&&(m.key=f),n.push(i(a(u.name,m,g),u,f))}return n.length===1?n[0]:n}function mw(e){return an.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&(0,an.isCustomComponent)(e.name,e.attribs)}(function(e){var t=G&&G.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=a;var n=t(So);e.htmlToDOM=n.default;var r=t(gr);e.attributesToProps=r.default;var i=t(Io);e.domToReact=i.default;var o=Co;Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return o.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return o.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return o.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return o.Text}});var s={lowerCaseAttributeNames:!1};function a(c,l){if(typeof c!="string")throw new TypeError("First argument must be a string");return c?(0,i.default)((0,n.default)(c,(l==null?void 0:l.htmlparser2)||s),l):[]}})(Wu);const xf=Hs(Wu),gw=xf.default||xf,vw=e=>T("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 417.78 96",...e,children:[T("defs",{children:T(no.linearGradient,{id:"a",x1:-400,x2:0,y1:48,y2:48,gradientUnits:"userSpaceOnUse",animate:{x1:[-400,400],x2:[0,800]},transition:{repeat:1/0,ease:"linear",duration:1.5},children:[T("stop",{offset:0,stopColor:"#f3f1f1"}),T("stop",{offset:.5,stopColor:"#d9d9d9"}),T("stop",{offset:1,stopColor:"#f3f1f1"})]})}),T("path",{d:"M4 6h13.78c2.21 0 4 1.79 4 4v20c0 2.21-1.79 4-4 4H4c-2.21 0-4-1.79-4-4V10c0-2.21 1.79-4 4-4Zm37.78-6h368c4.42 0 8 3.58 8 8s-3.58 8-8 8h-368c-4.42 0-8-3.58-8-8s3.58-8 8-8Zm0 24h221c4.42 0 8 3.58 8 8s-3.58 8-8 8h-221c-4.42 0-8-3.58-8-8s3.58-8 8-8ZM4 62h13.78c2.21 0 4 1.79 4 4v20c0 2.21-1.79 4-4 4H4c-2.21 0-4-1.79-4-4V66c0-2.21 1.79-4 4-4Zm37.78-6h368c4.42 0 8 3.58 8 8s-3.58 8-8 8h-368c-4.42 0-8-3.58-8-8s3.58-8 8-8Zm0 24h221c4.42 0 8 3.58 8 8s-3.58 8-8 8h-221c-4.42 0-8-3.58-8-8s3.58-8 8-8Z",style:{fill:"url(#a)",strokeWidth:0}})]}),Uo=({isLoading:e})=>{const[t,n]=W(!1),{widgetConfig:r,isFullScreen:i,loaders:o,searchResults:s,searchResultReferences:a}=j(rn),{identity:c,helpBar:l}=r,f=re(()=>{try{return gw(s)||""}catch{return""}},[s]),u=()=>{n(h=>!h)},d=(h="",m)=>h.length>m?`${h.substring(0,m)}`:h,p=i?1e3:250;return T("div",{className:"connect-ai-widget-response-wrapper",children:[T("div",{className:"connect-ai-widget-response-header",children:[T(ar,{className:"connect-ai-widget-response-header-pp"}),T("div",{className:"connect-ai-widget-response-header-text",children:o!=null&&o.search?T(ae,{children:[c==null?void 0:c.name," is typing ..."]}):T(ae,{children:[c==null?void 0:c.name,"’s answer"]})})]}),o!=null&&o.search?T("div",{className:"connect-ai-widget-response-loader",children:T(vw,{})}):T("div",{className:"connect-ai-widget-response-content",children:[T("div",{className:"connect-ai-widget-response-bubble",children:T("div",{className:"connect-ai-widget-response-bubble-content",children:[T("div",{className:`connect-ai-widget-response-bubble-content-wrapper ${t?"content-expanded":""}`,children:!t&&s.length>p?d(f,p):f}),s.length>p&&T("div",{className:"connect-ai-widget-response-bubble-read-more",role:"button",tabIndex:-1,onClick:u,children:t?"Read less":"Read more"})]})}),a!=null&&a.length?T("div",{className:"connect-ai-widget-response-articles-wrapper",children:[T("div",{className:"connect-ai-widget-response-articles-header",children:["HELP ARTICLES (",a==null?void 0:a.length,")"]}),T("div",{className:"connect-ai-widget-response-articles-content",children:a==null?void 0:a.map(({title:h,url:m})=>T(h0,{link:m,title:h}))})]}):null]})]})};Uo.defaultProps={isLoading:!1},Uo.propTypes={isLoading:Ue.bool};const Pf=({text:e,children:t})=>{const[n,r]=W(!1);return T("div",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),className:"connect-ai-widget-tooltip-base",children:[t,n&&T(no.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"connect-ai-widget-tooltip-wrapper",children:e})]})};Pf.propTypes={text:Ue.string.isRequired,children:Ue.node.isRequired};const yw=()=>{var u,d;const{isFullScreen:e,setFullScreen:t,setWidgetOpen:n,widgetConfig:r,onAISearch:i}=j(rn),{identity:o,helpBar:s}=r,a=(u=s==null?void 0:s.content)==null?void 0:u.helpBarTitle,c=()=>{t(p=>!p)},l=()=>{n(!1)},f=p=>{p.key==="Enter"&&i(p.target.value)};return T("div",{className:"connect-ai-widget-popover-content",children:[T("div",{className:"connect-ai-widget-popover-header",children:[T("div",{className:"connect-ai-widget-ph-row-1",children:[T("div",{className:"connect-ai-widget-ph-r1-left",children:[T(ar,{}),a||`Ask ${o.name} AI Agent`]}),T("div",{className:"connect-ai-widget-ph-r1-right",children:[T(Pf,{text:e?"Exit Full Screen":"Full Screen",children:T("button",{className:"connect-ai-widget-button icon-btn full-screen-btn",onClick:c,children:T("i",{className:`connect-widget-icon ${e?"connect-widget-ai-icon-collapse-icon":"connect-widget-ai-icon-expand-icon"}`})})}),T("button",{className:"connect-ai-widget-button icon-btn",onClick:l,children:T("i",{class:"connect-widget-icon connect-widget-ai-icon-close-icon"})})]})]}),T("div",{className:"connect-ai-widget-ph-row-2",children:T("div",{className:"connect-ai-widget-search-wrapper",tabIndex:0,children:[T("div",{className:"connect-ai-widget-connect-widget-ai-icon-search-icon",children:T("i",{className:"connect-widget-icon connect-widget-ai-icon-search-icon"})}),T("div",{className:"connect-ai-widget-search-input",children:T("input",{type:"text",name:"searchBar",id:"",placeholder:(d=s==null?void 0:s.content)==null?void 0:d.searchBarPlaceholder,onKeyPress:f})})]})})]}),T("div",{className:"connect-ai-widget-popover-body",children:T(Uo,{})}),T("div",{className:"connect-ai-widget-footer-branding",children:["Powered by ",T("img",{src:d0,alt:"connect logo"}),"Connect"]})]})},ww=e=>{const t=document.createElement("link");t.rel="preconnect",t.href="https://fonts.googleapis.com",document.head.appendChild(t);const n=document.createElement("link");n.rel="preconnect",n.href="https://fonts.gstatic.com",n.crossOrigin="true",document.head.appendChild(n),e.forEach(r=>{const i=document.createElement("link");i.rel="stylesheet",i.href=`https://fonts.googleapis.com/css2?family=${r}&display=swap`,document.head.appendChild(i)})},_w=e=>{const t=document.createElement("style");t.textContent=e,document.head.appendChild(t)},bw='.connect-ai-widget-main-wrapper .connect-ai-widget-content-wrapper{display:inline-block}.connect-ai-widget-main-wrapper .connect-ai-widget-content-wrapper .connect-ai-widget-trigger{width:var(--connect-ai-widget-trigger-btn-size);height:var(--connect-ai-widget-trigger-btn-size);aspect-ratio:1/1;border-radius:50%;background:var(--connect-ai-widget-trigger-background);border:.0625rem solid var(--connect-ai-widget-trigger-border);cursor:pointer;z-index:99999;position:absolute;display:flex;align-items:center;justify-content:center;padding:0}.connect-ai-widget-main-wrapper .connect-ai-widget-content-wrapper .connect-ai-widget-trigger .connect-ai-widget-trigger-default{max-width:100%;height:100%}.connect-ai-widget-main-wrapper .connect-ai-widget-content-wrapper .connect-ai-widget-trigger .connect-ai-widget-trigger-btn-image{width:100%;height:100%;border-radius:50%}.connect-ai-widget-main-wrapper .connect-ai-widget-content-wrapper .connect-ai-widget-trigger-top-right{top:var(--connect-ai-widget-trigger-btn-vertical);right:var(--connect-ai-widget-trigger-btn-horizontal)}.connect-ai-widget-main-wrapper .connect-ai-widget-content-wrapper .connect-ai-widget-trigger-bottom-right{bottom:var(--connect-ai-widget-trigger-btn-vertical);right:var(--connect-ai-widget-trigger-btn-horizontal)}.connect-ai-widget-main-wrapper .connect-ai-widget-content-wrapper .connect-ai-widget-trigger-top-left{top:var(--connect-ai-widget-trigger-btn-vertical);left:var(--connect-ai-widget-trigger-btn-horizontal)}.connect-ai-widget-main-wrapper .connect-ai-widget-content-wrapper .connect-ai-widget-trigger-bottom-left{bottom:var(--connect-ai-widget-trigger-btn-vertical);left:var(--connect-ai-widget-trigger-btn-horizontal)}.connect-ai-widget-main-wrapper .connect-ai-widget-content-wrapper .connect-ai-widget-popover-base{z-index:99999;width:29.375rem;background:#fff;border-radius:.625rem;box-sizing:border-box;filter:drop-shadow(0rem 0rem .25rem rgba(0,0,0,.25));margin:.5rem 0}.connect-ai-widget-main-wrapper .connect-ai-widget-content-wrapper .connect-ai-widget-popover-base .connect-ai-widget-popover-base-arrow{pointer-events:none}.connect-ai-widget-popover-content{position:relative;box-sizing:border-box;padding-bottom:1.5rem;height:100%}.connect-ai-widget-popover-content .connect-ai-widget-popover-header{display:flex;flex-direction:column;gap:.75rem 1rem;padding:.75rem 1rem 1rem;border-bottom:.0625rem solid var(--connect-ai-widget-input-border)}.connect-ai-widget-popover-content .connect-ai-widget-popover-header .connect-ai-widget-ph-row-1{display:flex;align-items:center;justify-content:space-between}.connect-ai-widget-popover-content .connect-ai-widget-popover-header .connect-ai-widget-ph-row-1 .connect-ai-widget-ph-r1-left{display:flex;align-items:center;gap:.375rem;color:var(--connect-ai-widget-text-color-dark-grey);font-size:.8125rem;font-style:normal;font-weight:600;line-height:normal}.connect-ai-widget-popover-content .connect-ai-widget-popover-header .connect-ai-widget-ph-row-1 .connect-ai-widget-ph-r1-right{display:flex}.connect-ai-widget-popover-content .connect-ai-widget-popover-header .connect-ai-widget-ph-row-1 .connect-ai-widget-ph-r1-right .connect-ai-widget-button{padding:.1rem;width:1.75rem;box-sizing:border-box;aspect-ratio:1/1}.connect-ai-widget-popover-content .connect-ai-widget-popover-header .connect-ai-widget-ph-row-1 .connect-ai-widget-ph-r1-right .connect-ai-widget-button .connect-widget-ai-icon-expand-icon,.connect-ai-widget-popover-content .connect-ai-widget-popover-header .connect-ai-widget-ph-row-1 .connect-ai-widget-ph-r1-right .connect-ai-widget-button .connect-widget-ai-icon-collapse-icon{font-size:1.2rem;padding:0}.connect-ai-widget-popover-content .connect-ai-widget-popover-header .connect-ai-widget-ph-row-2{padding-right:.5rem}.connect-ai-widget-popover-content .connect-ai-widget-popover-header .connect-ai-widget-ph-row-2 .connect-ai-widget-search-wrapper{height:2rem;display:flex;align-items:center;border-radius:.5rem;overflow:hidden;padding:0 .5rem;border:.0625rem solid var(--connect-ai-widget-input-border);gap:.5rem}.connect-ai-widget-popover-content .connect-ai-widget-popover-header .connect-ai-widget-ph-row-2 .connect-ai-widget-search-wrapper:focus-within{border:.0625rem solid var(--connect-ai-widget-grey);transition:outline .2s ease;box-shadow:0 0 2px var(--connect-ai-widget-grey)}.connect-ai-widget-popover-content .connect-ai-widget-popover-header .connect-ai-widget-ph-row-2 .connect-ai-widget-search-wrapper .connect-ai-widget-connect-widget-ai-icon-search-icon .connect-widget-ai-icon-search-icon{font-size:1.8rem;color:var(--connect-ai-widget-blue-grey)}.connect-ai-widget-popover-content .connect-ai-widget-popover-header .connect-ai-widget-ph-row-2 .connect-ai-widget-search-wrapper .connect-ai-widget-search-input{width:100%;border:none;display:flex;padding:0;height:100%}.connect-ai-widget-popover-content .connect-ai-widget-popover-header .connect-ai-widget-ph-row-2 .connect-ai-widget-search-wrapper .connect-ai-widget-search-input input{height:100%;width:100%;display:flex;padding:0;border:none;outline:none;background:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-size:.8125rem}.connect-ai-widget-popover-content .connect-ai-widget-popover-body{height:25rem;display:flex;flex-direction:column;overflow-y:auto}.connect-ai-widget-popover-content .connect-ai-widget-footer-branding{display:flex;align-items:center;justify-content:center;font-size:.625rem;padding:.2rem 0;border-radius:0 0 .625rem .625rem;border-top:.0625rem solid var(--connect-ai-widget-input-border);background:var(--connect-ai-widget-footer-bg);box-shadow:0 -.0625rem .25rem #00000029;color:var(--connect-ai-widget-footer-text);font-weight:500;position:absolute;bottom:0;width:100%}.connect-ai-widget-popover-content .connect-ai-widget-footer-branding img{width:1.5em;margin:0 .2rem}.connect-ai-widget-profile-picture-wrapper{aspect-ratio:1/1;width:1.875rem;height:1.875rem;overflow:hidden;border-radius:50%;display:flex;align-items:center;justify-content:center;border:1px solid var(--connect-ai-widget-input-border)}.connect-ai-widget-profile-picture-wrapper.connect-ai-widget-default-pp{font-size:1.5rem;background:var(--connect-ai-widget-grey)}.connect-ai-widget-profile-picture-wrapper.connect-ai-widget-default-pp .connect-widget-icon{color:#000}.connect-ai-widget-profile-picture-wrapper .connect-ai-widget-profile-picture{max-width:100%;height:auto}.connect-widget-icon{display:inline-block;font: 1em/1 connect-ai-widget-font;color:inherit;flex-shrink:0;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.connect-widget-ai-icon-default-profile:before{content:""}.connect-widget-ai-icon-expand-icon:before{content:""}.connect-widget-ai-icon-collapse-icon:before{content:"î€"}.connect-widget-ai-icon-file-icon:before{content:""}.connect-widget-ai-icon-search-icon:before{content:""}.connect-widget-ai-icon-close-icon:before{content:""}.connect-ai-widget-button{border:none;cursor:pointer}.connect-ai-widget-button.icon-btn{background:none;aspect-ratio:1/1;border-radius:.25rem;display:flex;align-items:center;justify-content:center;padding:.125rem}.connect-ai-widget-button.icon-btn:hover{background:var(--connect-ai-widget-icon-btn-bg)}.connect-ai-widget-article-item-wrapper{text-decoration:none;border-bottom:.0625rem solid #eaecf0;padding:.3125rem 1.5rem;display:flex;gap:.5rem;align-items:center;cursor:pointer}.connect-ai-widget-article-item-wrapper:last-child{border:none}.connect-ai-widget-article-item-wrapper .connect-ai-widget-article-item-icon{font-size:1.8rem;color:var(--connect-ai-widget-text-color-dark-grey)}.connect-ai-widget-article-item-wrapper .connect-ai-widget-article-item-text{color:var(--connect-ai-widget-text-color-dark-grey);font-size:.8125rem;font-weight:500}.connect-ai-widget-tooltip-base{display:inline-block;position:relative;width:inherit}.connect-ai-widget-tooltip-base .connect-ai-widget-tooltip-wrapper{position:absolute;font-size:.75rem;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:.1875rem;padding:.3125rem;background-color:var(--connect-ai-widget-tooltip-bg);color:var(--connect-ai-widget-tooltip-text);border-radius:.25rem;white-space:nowrap;z-index:1000}.connect-ai-widget-tooltip-base .connect-ai-widget-tooltip-wrapper:after{content:"";position:absolute;top:100%;left:50%;margin-left:-.3125rem;border-width:.3125rem;border-style:solid;border-color:rgba(0,0,0,.75) transparent transparent transparent}.connect-ai-widget-suggest-wrapper{box-sizing:border-box;padding-top:1.5rem;display:flex;flex-direction:column}.connect-ai-widget-suggest-wrapper .connect-ai-widget-suggest-header{box-sizing:border-box;padding:.3125rem 0 .625rem 1rem;display:flex;align-items:center;color:var(--connect-ai-widget-text-color-dark-grey);font-size:.8125rem;font-weight:600;position:sticky;top:0;background:#fff;z-index:1}.connect-ai-widget-suggest-wrapper .connect-ai-widget-suggest-content{box-sizing:border-box;padding-bottom:.5rem;overflow:auto}.connect-ai-widget-suggest-wrapper .connect-ai-widget-suggest-content::-webkit-scrollbar{display:none}.connect-ai-widget-response-wrapper .connect-ai-widget-response-header{display:flex;align-items:center;gap:.375rem;padding:1rem}.connect-ai-widget-response-wrapper .connect-ai-widget-response-header .connect-ai-widget-response-header-pp{width:1.5rem;height:1.5rem;font-size:1.1rem}.connect-ai-widget-response-wrapper .connect-ai-widget-response-header .connect-ai-widget-response-header-text{color:var(--connect-ai-widget-text-color-dark-grey);font-size:.8125rem;font-weight:600}.connect-ai-widget-response-wrapper .connect-ai-widget-response-loader,.connect-ai-widget-response-wrapper .connect-ai-widget-response-content .connect-ai-widget-response-bubble{padding:0 1rem}.connect-ai-widget-response-wrapper .connect-ai-widget-response-content .connect-ai-widget-response-bubble .connect-ai-widget-response-bubble-content{border-radius:.5rem;background:var(--connect-ai-widget-response-bg);color:var(--connect-ai-widget-response-text);font-size:.8125rem;font-style:normal;font-weight:400;line-height:1.0625rem;box-sizing:border-box;padding:.5rem .8rem}.connect-ai-widget-response-wrapper .connect-ai-widget-response-content .connect-ai-widget-response-bubble .connect-ai-widget-response-bubble-content .connect-ai-widget-response-bubble-content-wrapper{overflow:hidden;max-height:6rem}.connect-ai-widget-response-wrapper .connect-ai-widget-response-content .connect-ai-widget-response-bubble .connect-ai-widget-response-bubble-content .connect-ai-widget-response-bubble-content-wrapper.content-expanded{max-height:100%}.connect-ai-widget-response-wrapper .connect-ai-widget-response-content .connect-ai-widget-response-bubble .connect-ai-widget-response-bubble-content .connect-ai-widget-response-bubble-read-more{color:var(--connect-ai-widget-response-text);font-size:.8125rem;font-style:normal;font-weight:600;line-height:1.0625rem;text-decoration-line:underline;margin-top:.5rem;cursor:pointer}.connect-ai-widget-response-wrapper .connect-ai-widget-response-content .connect-ai-widget-response-articles-wrapper{padding-top:1rem}.connect-ai-widget-response-wrapper .connect-ai-widget-response-content .connect-ai-widget-response-articles-wrapper .connect-ai-widget-response-articles-header{color:var(--connect-ai-widget-text-color-dark-grey);font-size:.8125rem;font-style:normal;font-weight:600;line-height:normal;padding-left:1.125rem}.connect-ai-widget-response-wrapper .connect-ai-widget-response-content .connect-ai-widget-response-articles-wrapper .connect-ai-widget-response-articles-content{margin-top:.625rem}.connect-ai-widget-full-screen:before{position:absolute;top:0;left:0;width:100%;height:100dvh;background:#0006;content:"";z-index:99999}.connect-ai-widget-full-screen .connect-ai-widget-full-screen-base{position:absolute!important;top:50%!important;left:50%!important;width:70%!important;height:70%;transform:translate(-50%,-50%)!important;display:flex}.connect-ai-widget-full-screen .connect-ai-widget-full-screen-base .connect-ai-widget-popover-content{display:flex;flex-direction:column;flex:1}.connect-ai-widget-full-screen .connect-ai-widget-full-screen-base .connect-ai-widget-popover-content .connect-ai-widget-popover-header .connect-ai-widget-ph-r1-right .connect-ai-widget-button.full-screen-btn:hover{background:var(--connect-ai-widget-full-screen-btn-active-bg);color:var(--connect-ai-widget-full-screen-btn-active-text);-webkit-text-stroke:.05px inherit;text-stroke:.05px inherit}.connect-ai-widget-full-screen .connect-ai-widget-full-screen-base .connect-ai-widget-popover-body{height:100%}.connect-ai-widget-full-screen .connect-ai-widget-response-loader{width:50%}body{font-family:Inter,sans-serif;font-optical-sizing:auto;font-style:normal;--connect-ai-widget-input-border: #dedede;--connect-ai-widget-icon-btn-bg: #eaecf0;--connect-ai-widget-footer-bg:#fcfcfd;--connect-ai-widget-grey:#d0d5dd;--connect-ai-widget-blue-grey:#73818f;--connect-ai-widget-text-color-dark-grey:#394e61;--connect-ai-widget-footer-text:#667085;--connect-ai-widget-response-bg:#f2f4f7;--connect-ai-widget-response-text:#201d1e;--connect-ai-widget-full-screen-btn-active-bg:#EDEEFF;--connect-ai-widget-full-screen-btn-active-text:#5358F8;--connect-ai-widget-tooltip-bg:#363C48;--connect-ai-widget-tooltip-text:#EFF0F2;--connect-ai-widget-trigger-border: "transparent";--connect-ai-widget-trigger-background: "transparent"}',Aw='@font-face{font-family:connect-ai-widget-font;src:url(data:@file/octet-stream;base64,d09GRgABAAAAAAe4AAsAAAAADFgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAHsAAAAAgAAAAIAAAAAU9TLzIAAAXsAAAASgAAAGBn71L4Y21hcAAABjgAAAA6AAAAUODF4KdnbHlmAAABCAAABDsAAAe8HqeYeGhlYWQAAAV4AAAANAAAADYoZCx1aGhlYQAABcwAAAAdAAAAJAa3Ag1obXR4AAAFrAAAACAAAAAgFEcAXWxvY2EAAAVkAAAAEgAAABIIfgbQbWF4cAAABUQAAAAgAAAAIAB/ALVuYW1lAAAGdAAAAQIAAAIUIqN7P3Bvc3QAAAd4AAAAOAAAAGK6ZM8ceAGNVFWY4zYQHsmJs5Zi+daxki3HcTY5zDXreF2G7OFT+ZivzE6ZmZ/KDE95KjMzM9NbeV/L7O0o4OPv+ikZ0sz845E0wGD5xC7kFq0IGmSAQwF2gCpMgzrsCfMA0u6gq0k/yHiBX0XuSy/wkFdll/odjlJv30tsaAgwMqPE0A/ILfFLZM+f2+6hh46V3EPdtntJu91sHto81HWb7ebafZE023PmtA+fU3xdG/93QRTtP/PdXQoz94+iM5ulQ/dwh9057p7l0pGlORegjL9/B92ZLv6AAJmI6Tv0LZgMkApHg0aVEEUrXilDiKK6dAqEKJr3R0JC8n6dPpQVIh4nQ0JkHVvEP8TjwraFaZKheNw0lUyGyDbCpmKd7KwXkzNVjJnLmUKoGAGA8BMTkKYP0yegBLPhSLgKoDwaBB1YVVLVH0FW8VRNaknpYC1FdMFycakdXdn8TL/asOMC3bCw/10ZVJWrclLLxyzhqFpBf6fa//JCP2ed/CRbzBIG59ES4TjingHdoDrRpIj/kFoqpQ3omXvUxpIW50xYLJKCfKD0iHNDCN5yhJAa0Qc0feCeeJae1qmO0UJGXJic89YSU2LatGMubTHGTcEjqSJ0iq6Ze03HMe/NYDRCJVGMtZaaDnkRDU6Liw2qw4KIhnjUQDyxcSEAumo6fZo+DWWYD4fBGXAZXA9Q7HRiNBhsdJpa8dxSp926HHQ67cr7bt3uSmjq7qFT1xvDuvF+3aWjScvRAx36TcUUCJCcgq6Ys4ENteIGGp08IqdIlk4zZCNh/GW4gU4qM6rMYWlK08iqM+IvUc9xpfMc6qRy/LztscfC4nZtqFDLKYmxHeZVtIa0hOS6JaX1Hv4Vjz/pCUn2cPPo9OQt4vXqiSfvsD23BELbuZzNObMmse13uCLwjhP5vDhOZwroWGkFSg0QM5F657MPfQVcmAv7w0o4Ds5a/3yq6spvcjh+XZOJnJyPt8n5pL2SsgSB3XkebvcM3ProBmpFacnDIs/NsD3bSOmv68Y9jRl2GeWUgWxG45O9aGpg0oCdO1tLZ/PZ4dontQovcF3TdGSVGtl7eYFqlASmacS/GUgJM9aTn0U6ZijSS0hGDIRBxUMlbvfQ6M1nW3nEwc5+txHAktowAqe1WwniFJbH002DmSaCXLKJAKnk7iez5n+MgOLWBwlsfRwVtz7U6F16Sr1e9c5PYpbFGDt5qZBS3BfPRbr0ZDSg9STZmygpPXMf+SQRRc8na5pZ9Pn3JnmSEpMkmX72LQSguhFwEkNeWz9erJd4S3UJqVoNirxIX4DtYWfsdffbO1dNdVD1KY+dCAtqXONccXSLdmZGJWjgXaX3MM4vcMuHXLNwwTWHHHLNgvDwKRewSfHX0diwq2mlRfVmq4k/pp7aBVMOD7teC65ZUC5dyOiZzWisvqikaW4ZpbGo+R+l/jb7AAABAAAACACWAAoAAAAAAAEAAgAeAAYAAABkAAAAAAAAAAAAYgBiAKgBYAIwAt4DlgPeAAB4AWNgZGAAYfvdsTnx/DZfGZiZXzAAwWP7rCVg2rFu6v///y2YzjIrALnsDEwgUQBe9wzqAfQAXQJYAAACzQABArT//wK8AAACQAAAArwAAALBAAB4AWNgZGBgfvHfgoGB6ex/IGA6CxRBBRwAvlAHxwAAAHgBY2Bh6mCcwMDKwMHUxRTBwMDgDaEZ4xiMGH4xoAJmASROqHe4H8MBBoUHbMwK/y0YTjC/YDgBFGZkABFfmPYAKQUGBgBLwQ2WAAB4AS3GBwFAUBSF4e/tG0AAQZTRTDSS2Gf+yCiYFOn9akHczphtez/Pn9J5nse5IoGKomq6IV97pwsnAAB4AYWNNVYDARBAP+7uVJFtcHfpcYcKWd+4JxfhLByBmqNwBOa9DG5v7I8D3TxSAyC+BZRraaJFuZ4eupUb6CCs3Eg309RRUy+T9LKtXEsnx1UWv8yNcj0R7pUbGOVBuZEQT8rNGDwrtzBY06/chlEzrtz94VcP8suMhSoxx3eLp65fSpr5tzykhUs3X4hl0qG56dnZWTNWbU5pE5MYISriHXxcipziCpVIYpJnjmlmEWGDC/a44lBItj7tTH3Z+n419GXiEld8gRgZ0oTe//x7+5IYgVAaX3yItORlpENR6ya7ZBAScQlRwBRxpFsUyUq+zoxIGVdvxigwLT7zAidBUTUAAHgBY2BiAIP/cxiMGLABDiBmZmRiZGZkYWRlZGNkZy/Ny3Q1MDCD0oZQ2ghKG0NpEyhtCgDtkA8BAAAAAQAAAAA=) format("woff"),url(data:@file/octet-stream;base64,d09GMgABAAAAAAY8AAoAAAAADEAAAAXzAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAUAqPPIxBATYCJAMgCxIABCAFhBQHYhsACqPAbGwaZP8ojJudxuWzCHXVvy0Gld+URecq9lw00USDn3/Wg+c//7D7ZiakKhhl2pyU8a5rAJVZlGBJ/PnHS/+vrk2Wn3NucwoimXh+180VDhOSzR1UZfDda9MJzkAcrWtTnHxkJh757J9fc/VumEeiTdtCpab7D30zUyCJeIhUCEXUI6XBOpxpb4aEMDHwXu0eGLUMtwIb7NWqVxeCWr0ZGUCZ/IbN1e6Na7TXdjZwnW4vbHW4lc99/WFUD0B2Qb6qywDCgZ4K0IC3EouuMxSjPQdzdjh7XthaVkmJz3pp5SRqTGK6wQZb7DaQBOwqdyAC1BOADoJAMzgmGg223GFQZiTsbOtobJ2dEqJ2jYkJ9nZFkbEOpKtr+6QQ72FnO5c+5G8naMQEN+sGHDhCTGMGiiAYGGh3ybE+mSNMEhkrytLrK9UEeW1JqRJoxOrURSUC9YDTFBfxNOALqdLiFPi6DULTDoJ6mfG1NsiL2AR4MgBcKw4X2QkBIDGKWvo63JhBbLFL3sfILPsSGZvEDzyAI06goppABo0y89HITHQ/C5deCDsSt3oz9OY3ddie6TmPtas7G3wwunkD8OI2tt+W4T6HE/D5Po27fcPabtIadXNw/V6PpP1aT4fGdTGHrqdWhzUdwCHxQEo6jpyWg1jd4cg9xVvv4dKdw2u5+sPOkdr661vxRS3V4gMnRK9H7emasLq9W3oNa22vfTgOh4Ml4QLtbhwftYyZRmGr188I4cPjwsZjJogNZzNeaorvjwuxZeJLr9g0F133ab6/e9Nc8gxIlppvcEKC/P37jnV378Ldu+e0UMpLUcBP1TZwd7PV6qN3sTrbM4SXJCfhQs6HnF+tDo+j26CiuCLmWnogRWvVYLp33CRmTqCnyJ1FMyEMXdRTnjgmmw6mC+gyTyDTczRHFwyJPZYk9ze6Z4/YRleJ2q4bDXbDY0+VyqcU69Jph/rxMXWNugn0g1e8VVcpUFxV6TY36kw3BeCnYYleh0Mg0QKRQKLdbkPZSLxnm79+jsLkEyPbTrAIe5Y4JQtJSwxy6WUnrafYHHYREaKASMHuKPRQPr8xSCUxTQaSUUsdQqKDiMqi2WNDvCzjuun9T4Kj+nyTwhpSkiGyUPfYc4haApUOG8BhbwBAuLrP7N71BWmhaQX1vWf3URcD924Aol2j6jNW9tHGhMZo+6zIrB8FDFRFbirbHHE7EFot9ep0RCSRKCJSVNzWUbfpMiCQcuGKsXuo1/zkoGpUQwohNO931I/sTiqeVkrMGaDcMGc+Pql1Da6d0dEqPjs5McB04UJ7wMnkWVmC8vdtydm8KkF3JvkeyGmeSvqkzfh/eaimdowN6bvfto+JvRerd1d4bCGxttjgQnflFn1s7qphlJxWQmpY8p2rDpgoC7i6MQAD9rNBcmxcyJ7Agj36+HEW7xjZDtQd4Tm9TpdAksJqgljtchb2LafBIXO5ywlS53TBv2Qh3pZx8XrZaXD3blOG/CFP1yEpOYRqpuihAxR9cKzsFFywTbjF23Ocf1Bxmtm4fLnRYpaMFpnr7zCZ04qDeI4X5KDzJHsBY2cTgi0wMlBuCUpgHAUFdpZFBtUMYBKId5pAfa8cQWoWf0PrDwB4XTYcQGPF4q7/T36+uqbD4X+DsuvxwVJAPbEYo9r/TX0w3V6+0q+6/kZGqC64g5cBqlyClt44aNSe3TiSHaIIxRYYg1nduUtpFxz+f3GFHQ7/QqsH7jXbBhci0BZSUtGICbJ6UopshStNbE0uA2xDJDvZNgRyiW1LOM/Z9kTzke2Ar6jZTkRLBxvrfhiWx5XDPbzTVVtfad3eU360pTDZ7lcfZ78uwFIM0+TTliKyB8rpAV4lXNFSc5EGW26mZfoBCwXDe+p88fgTlpDQbzoRCYMQTgQz/LX+enDSs7IAhxgWLf3Dbo3LGnOgF/FjlF7TcI7LWuIyogFzxMqBF+ffONGg8YE2unDPCXUabS/eFrHWwMEebg9oUaLFiI3Yip3dwtIbDCPpIraIK+KLBJEI) format("woff2");font-weight:400;font-style:normal;font-display:swap}',Cf=document.querySelector("#connect-ai-widget-root");Cf.attachShadow({mode:"open"});const Tw=Cf.shadowRoot,Ho=document.createElement("body"),Rf=document.createElement("style");Rf.textContent=`${bw}`,Ho.appendChild(Rf),Tw.appendChild(Ho),ww(["Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900"]),_w(Aw);function Of(){const{uuid:e,apiKey:t}=window.connectAIWidgetConfig||{};if(!t){console.error("API Key are required to initialize the widget");return}const[n,r]=W(null),i=H(null);return Y(()=>{const o=s=>{const a=s.target.closest("#velaris-ai-widget-trigger");a&&(r(a),i.current.openPopover())};return document.addEventListener("click",o),()=>document.removeEventListener("click",o)},[]),T("div",{className:"connect-ai-widget-main-wrapper",children:T(zu,{apiKey:t,children:T($u,{ref:i,triggerRef:n,content:T(yw,{})})})})}return dt(T(Of,{}),Ho),Sr.App=Of,Object.defineProperty(Sr,Symbol.toStringTag,{value:"Module"}),Sr}({}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment