@metrifox/react-sdk 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -0
- package/dist/index.cjs +14 -14
- package/dist/index.d.ts +220 -1
- package/dist/index.js +14 -14
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import*as G from"react";import R,{Fragment as Jt,useRef as se,useCallback as ue,useEffect as te,useState as K,useMemo as ve,useLayoutEffect as Tn,forwardRef as $a,isValidElement as U0,cloneElement as Z0,createElement as Oa,createContext as De,useId as Pt,useSyncExternalStore as z0,useContext as de,useReducer as K0,useInsertionEffect as Y0,Component as G0}from"react";import{jsxs as g,jsx as l,Fragment as ze}from"react/jsx-runtime";import*as Wr from"react-dom";import q0,{createPortal as X0}from"react-dom";var Qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*! Axios v1.12.2 Copyright (c) 2025 Matt Zabriskie and contributors */function _a(e,t){return function(){return e.apply(t,arguments)}}const{toString:J0}=Object.prototype,{getPrototypeOf:ni}=Object,{iterator:Zr,toStringTag:Ba}=Symbol,zr=(e=>t=>{const n=J0.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),pt=e=>(e=e.toLowerCase(),t=>zr(t)===e),Kr=e=>t=>typeof t===e,{isArray:Dn}=Array,Pn=Kr("undefined");function rr(e){return e!==null&&!Pn(e)&&e.constructor!==null&&!Pn(e.constructor)&&Ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ia=pt("ArrayBuffer");function Q0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ia(e.buffer),t}const e2=Kr("string"),Ke=Kr("function"),ja=Kr("number"),or=e=>e!==null&&typeof e=="object",t2=e=>e===!0||e===!1,Yr=e=>{if(zr(e)!=="object")return!1;const t=ni(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ba in e)&&!(Zr in e)},n2=e=>{if(!or(e)||rr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},r2=pt("Date"),o2=pt("File"),i2=pt("Blob"),s2=pt("FileList"),a2=e=>or(e)&&Ke(e.pipe),l2=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ke(e.append)&&((t=zr(e))==="formdata"||t==="object"&&Ke(e.toString)&&e.toString()==="[object FormData]"))},c2=pt("URLSearchParams"),[u2,d2,f2,h2]=["ReadableStream","Request","Response","Headers"].map(pt),p2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ir(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Dn(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(rr(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(r=0;r<s;r++)a=i[r],t.call(null,e[a],a,e)}}function Ha(e,t){if(rr(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const en=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Qt)(),Wa=e=>!Pn(e)&&e!==en;function ri(){const{caseless:e,skipUndefined:t}=Wa(this)&&this||{},n={},r=(o,i)=>{const s=e&&Ha(n,i)||i;Yr(n[s])&&Yr(o)?n[s]=ri(n[s],o):Yr(o)?n[s]=ri({},o):Dn(o)?n[s]=o.slice():(!t||!Pn(o))&&(n[s]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&ir(arguments[o],r);return n}const m2=(e,t,n,{allOwnKeys:r}={})=>(ir(t,(o,i)=>{n&&Ke(o)?e[i]=_a(o,n):e[i]=o},{allOwnKeys:r}),e),g2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),y2=(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)},v2=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&ni(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},b2=(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},w2=e=>{if(!e)return null;if(Dn(e))return e;let t=e.length;if(!ja(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},C2=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ni(Uint8Array)),x2=(e,t)=>{const r=(e&&e[Zr]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},k2=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},L2=pt("HTMLFormElement"),E2=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Ua=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),M2=pt("RegExp"),Za=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ir(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},S2=e=>{Za(e,(t,n)=>{if(Ke(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ke(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+"'")})}})},T2=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Dn(e)?r(e):r(String(e).split(t)),n},D2=()=>{},P2=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function A2(e){return!!(e&&Ke(e.append)&&e[Ba]==="FormData"&&e[Zr])}const N2=e=>{const t=new Array(10),n=(r,o)=>{if(or(r)){if(t.indexOf(r)>=0)return;if(rr(r))return r;if(!("toJSON"in r)){t[o]=r;const i=Dn(r)?[]:{};return ir(r,(s,a)=>{const c=n(s,o+1);!Pn(c)&&(i[a]=c)}),t[o]=void 0,i}}return r};return n(e,0)},R2=pt("AsyncFunction"),F2=e=>e&&(or(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),za=((e,t)=>e?setImmediate:t?((n,r)=>(en.addEventListener("message",({source:o,data:i})=>{o===en&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),en.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ke(en.postMessage)),V2=typeof queueMicrotask<"u"?queueMicrotask.bind(en):typeof process<"u"&&process.nextTick||za,$2=e=>e!=null&&Ke(e[Zr]);var T={isArray:Dn,isArrayBuffer:Ia,isBuffer:rr,isFormData:l2,isArrayBufferView:Q0,isString:e2,isNumber:ja,isBoolean:t2,isObject:or,isPlainObject:Yr,isEmptyObject:n2,isReadableStream:u2,isRequest:d2,isResponse:f2,isHeaders:h2,isUndefined:Pn,isDate:r2,isFile:o2,isBlob:i2,isRegExp:M2,isFunction:Ke,isStream:a2,isURLSearchParams:c2,isTypedArray:C2,isFileList:s2,forEach:ir,merge:ri,extend:m2,trim:p2,stripBOM:g2,inherits:y2,toFlatObject:v2,kindOf:zr,kindOfTest:pt,endsWith:b2,toArray:w2,forEachEntry:x2,matchAll:k2,isHTMLForm:L2,hasOwnProperty:Ua,hasOwnProp:Ua,reduceDescriptors:Za,freezeMethods:S2,toObjectSet:T2,toCamelCase:E2,noop:D2,toFiniteNumber:P2,findKey:Ha,global:en,isContextDefined:Wa,isSpecCompliantForm:A2,toJSONObject:N2,isAsyncFn:R2,isThenable:F2,setImmediate:za,asap:V2,isIterable:$2};function re(e,t,n,r,o){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),o&&(this.response=o,this.status=o.status?o.status:null)}T.inherits(re,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:T.toJSONObject(this.config),code:this.code,status:this.status}}});const Ka=re.prototype,Ya={};["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=>{Ya[e]={value:e}}),Object.defineProperties(re,Ya),Object.defineProperty(Ka,"isAxiosError",{value:!0}),re.from=(e,t,n,r,o,i)=>{const s=Object.create(Ka);T.toFlatObject(e,s,function(d){return d!==Error.prototype},u=>u!=="isAxiosError");const a=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return re.call(s,a,c,n,r,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};var O2=null;function oi(e){return T.isPlainObject(e)||T.isArray(e)}function Ga(e){return T.endsWith(e,"[]")?e.slice(0,-2):e}function qa(e,t,n){return e?e.concat(t).map(function(o,i){return o=Ga(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function _2(e){return T.isArray(e)&&!e.some(oi)}const B2=T.toFlatObject(T,{},null,function(t){return/^is[A-Z]/.test(t)});function Gr(e,t,n){if(!T.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=T.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,v){return!T.isUndefined(v[y])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&T.isSpecCompliantForm(t);if(!T.isFunction(o))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(T.isDate(p))return p.toISOString();if(T.isBoolean(p))return p.toString();if(!c&&T.isBlob(p))throw new re("Blob is not supported. Use a Buffer instead.");return T.isArrayBuffer(p)||T.isTypedArray(p)?c&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,y,v){let w=p;if(p&&!v&&typeof p=="object"){if(T.endsWith(y,"{}"))y=r?y:y.slice(0,-2),p=JSON.stringify(p);else if(T.isArray(p)&&_2(p)||(T.isFileList(p)||T.endsWith(y,"[]"))&&(w=T.toArray(p)))return y=Ga(y),w.forEach(function(b,L){!(T.isUndefined(b)||b===null)&&t.append(s===!0?qa([y],L,i):s===null?y:y+"[]",u(b))}),!1}return oi(p)?!0:(t.append(qa(v,y,i),u(p)),!1)}const f=[],h=Object.assign(B2,{defaultVisitor:d,convertValue:u,isVisitable:oi});function m(p,y){if(!T.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(p),T.forEach(p,function(w,C){(!(T.isUndefined(w)||w===null)&&o.call(t,w,T.isString(C)?C.trim():C,y,h))===!0&&m(w,y?y.concat(C):[C])}),f.pop()}}if(!T.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Xa(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ii(e,t){this._pairs=[],e&&Gr(e,this,t)}const Ja=ii.prototype;Ja.append=function(t,n){this._pairs.push([t,n])},Ja.toString=function(t){const n=t?function(r){return t.call(this,r,Xa)}:Xa;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function I2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Qa(e,t,n){if(!t)return e;const r=n&&n.encode||I2;T.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=T.isURLSearchParams(t)?t.toString():new ii(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class j2{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){T.forEach(this.handlers,function(r){r!==null&&t(r)})}}var el=j2,tl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},H2=typeof URLSearchParams<"u"?URLSearchParams:ii,W2=typeof FormData<"u"?FormData:null,U2=typeof Blob<"u"?Blob:null,Z2={isBrowser:!0,classes:{URLSearchParams:H2,FormData:W2,Blob:U2},protocols:["http","https","file","blob","url","data"]};const si=typeof window<"u"&&typeof document<"u",ai=typeof navigator=="object"&&navigator||void 0,z2=si&&(!ai||["ReactNative","NativeScript","NS"].indexOf(ai.product)<0),K2=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Y2=si&&window.location.href||"http://localhost";var G2=Object.freeze({__proto__:null,hasBrowserEnv:si,hasStandardBrowserWebWorkerEnv:K2,hasStandardBrowserEnv:z2,navigator:ai,origin:Y2}),$e={...G2,...Z2};function q2(e,t){return Gr(e,new $e.classes.URLSearchParams,{visitor:function(n,r,o,i){return $e.isNode&&T.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function X2(e){return T.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function J2(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function nl(e){function t(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=i>=n.length;return s=!s&&T.isArray(o)?o.length:s,c?(T.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!T.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&T.isArray(o[s])&&(o[s]=J2(o[s])),!a)}if(T.isFormData(e)&&T.isFunction(e.entries)){const n={};return T.forEachEntry(e,(r,o)=>{t(X2(r),o,n,0)}),n}return null}function Q2(e,t,n){if(T.isString(e))try{return(t||JSON.parse)(e),T.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const li={transitional:tl,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=T.isObject(t);if(i&&T.isHTMLForm(t)&&(t=new FormData(t)),T.isFormData(t))return o?JSON.stringify(nl(t)):t;if(T.isArrayBuffer(t)||T.isBuffer(t)||T.isStream(t)||T.isFile(t)||T.isBlob(t)||T.isReadableStream(t))return t;if(T.isArrayBufferView(t))return t.buffer;if(T.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return q2(t,this.formSerializer).toString();if((a=T.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Gr(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Q2(t)):t}],transformResponse:[function(t){const n=this.transitional||li.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(T.isResponse(t)||T.isReadableStream(t))return t;if(t&&T.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(a){if(s)throw a.name==="SyntaxError"?re.from(a,re.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:$e.classes.FormData,Blob:$e.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};T.forEach(["delete","get","head","post","put","patch"],e=>{li.headers[e]={}});var ci=li;const ef=T.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"]);var tf=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
2
|
-
`).forEach(function(
|
|
3
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}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(o=>r.set(o)),r}static accessor(t){const r=(this[rl]=this[rl]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=sr(s);r[a]||(sf(o,s),r[a]=!0)}return T.isArray(t)?t.forEach(i):i(t),this}}Xr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),T.reduceDescriptors(Xr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),T.freezeMethods(Xr);var mt=Xr;function di(e,t){const n=this||ci,r=t||n,o=mt.from(r.headers);let i=r.data;return T.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function ol(e){return!!(e&&e.__CANCEL__)}function An(e,t,n){re.call(this,e??"canceled",re.ERR_CANCELED,t,n),this.name="CanceledError"}T.inherits(An,re,{__CANCEL__:!0});function il(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new re("Request failed with status code "+n.status,[re.ERR_BAD_REQUEST,re.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function af(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function lf(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=r[i];s||(s=u),n[o]=c,r[o]=u;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s<t)return;const m=d&&u-d;return m?Math.round(h*1e3/m):void 0}}function cf(e,t){let n=0,r=1e3/t,o,i;const s=(u,d=Date.now())=>{n=d,o=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?s(u,d):(o=u,i||(i=setTimeout(()=>{i=null,s(o)},r-f)))},()=>o&&s(o)]}const Jr=(e,t,n=3)=>{let r=0;const o=lf(50,250);return cf(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,c=s-r,u=o(c),d=s<=a;r=s;const f={loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&d?(a-s)/u:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},sl=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},al=e=>(...t)=>T.asap(()=>e(...t));var uf=$e.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,$e.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL($e.origin),$e.navigator&&/(msie|trident)/i.test($e.navigator.userAgent)):()=>!0,df=$e.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];T.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),T.isString(r)&&s.push("path="+r),T.isString(o)&&s.push("domain="+o),i===!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 ff(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hf(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ll(e,t,n){let r=!ff(t);return e&&(r||n==!1)?hf(e,t):t}const cl=e=>e instanceof mt?{...e}:e;function tn(e,t){t=t||{};const n={};function r(u,d,f,h){return T.isPlainObject(u)&&T.isPlainObject(d)?T.merge.call({caseless:h},u,d):T.isPlainObject(d)?T.merge({},d):T.isArray(d)?d.slice():d}function o(u,d,f,h){if(T.isUndefined(d)){if(!T.isUndefined(u))return r(void 0,u,f,h)}else return r(u,d,f,h)}function i(u,d){if(!T.isUndefined(d))return r(void 0,d)}function s(u,d){if(T.isUndefined(d)){if(!T.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function a(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const c={url:i,method:i,data:i,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:(u,d,f)=>o(cl(u),cl(d),f,!0)};return T.forEach(Object.keys({...e,...t}),function(d){const f=c[d]||o,h=f(e[d],t[d],d);T.isUndefined(h)&&f!==a||(n[d]=h)}),n}var ul=e=>{const t=tn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=mt.from(s),t.url=Qa(ll(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),T.isFormData(n)){if($e.hasStandardBrowserEnv||$e.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(T.isFunction(n.getHeaders)){const c=n.getHeaders(),u=["content-type","content-length"];Object.entries(c).forEach(([d,f])=>{u.includes(d.toLowerCase())&&s.set(d,f)})}}if($e.hasStandardBrowserEnv&&(r&&T.isFunction(r)&&(r=r(t)),r||r!==!1&&uf(t.url))){const c=o&&i&&df.read(i);c&&s.set(o,c)}return t};const pf=typeof XMLHttpRequest<"u";var mf=pf&&function(e){return new Promise(function(n,r){const o=ul(e);let i=o.data;const s=mt.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=o,d,f,h,m,p;function y(){m&&m(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function w(){if(!v)return;const b=mt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),x={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:b,config:e,request:v};il(function(D){n(D),y()},function(D){r(D),y()},x),v=null}"onloadend"in v?v.onloadend=w:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(w)},v.onabort=function(){v&&(r(new re("Request aborted",re.ECONNABORTED,e,v)),v=null)},v.onerror=function(L){const x=L&&L.message?L.message:"Network Error",E=new re(x,re.ERR_NETWORK,e,v);E.event=L||null,r(E),v=null},v.ontimeout=function(){let L=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const x=o.transitional||tl;o.timeoutErrorMessage&&(L=o.timeoutErrorMessage),r(new re(L,x.clarifyTimeoutError?re.ETIMEDOUT:re.ECONNABORTED,e,v)),v=null},i===void 0&&s.setContentType(null),"setRequestHeader"in v&&T.forEach(s.toJSON(),function(L,x){v.setRequestHeader(x,L)}),T.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),a&&a!=="json"&&(v.responseType=o.responseType),u&&([h,p]=Jr(u,!0),v.addEventListener("progress",h)),c&&v.upload&&([f,m]=Jr(c),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(d=b=>{v&&(r(!b||b.type?new An(null,e,v):b),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const C=af(o.url);if(C&&$e.protocols.indexOf(C)===-1){r(new re("Unsupported protocol "+C+":",re.ERR_BAD_REQUEST,e));return}v.send(i||null)})};const gf=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(u){if(!o){o=!0,a();const d=u instanceof Error?u:this.reason;r.abort(d instanceof re?d:new An(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,i(new re(`timeout ${t} of ms exceeded`,re.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>T.asap(a),c}};var yf=gf;const vf=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},bf=async function*(e,t){for await(const n of wf(e))yield*vf(n,t)},wf=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()}},dl=(e,t,n,r)=>{const o=bf(e,t);let i=0,s,a=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await o.next();if(u){a(),c.close();return}let f=d.byteLength;if(n){let h=i+=f;n(h)}c.enqueue(new Uint8Array(d))}catch(u){throw a(u),u}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},fl=64*1024,{isFunction:Qr}=T,Cf=(({Request:e,Response:t})=>({Request:e,Response:t}))(T.global),{ReadableStream:hl,TextEncoder:pl}=T.global,ml=(e,...t)=>{try{return!!e(...t)}catch{return!1}},xf=e=>{e=T.merge.call({skipUndefined:!0},Cf,e);const{fetch:t,Request:n,Response:r}=e,o=t?Qr(t):typeof fetch=="function",i=Qr(n),s=Qr(r);if(!o)return!1;const a=o&&Qr(hl),c=o&&(typeof pl=="function"?(p=>y=>p.encode(y))(new pl):async p=>new Uint8Array(await new n(p).arrayBuffer())),u=i&&a&&ml(()=>{let p=!1;const y=new n($e.origin,{body:new hl,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!y}),d=s&&a&&ml(()=>T.isReadableStream(new r("").body)),f={stream:d&&(p=>p.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!f[p]&&(f[p]=(y,v)=>{let w=y&&y[p];if(w)return w.call(y);throw new re(`Response type '${p}' is not supported`,re.ERR_NOT_SUPPORT,v)})});const h=async p=>{if(p==null)return 0;if(T.isBlob(p))return p.size;if(T.isSpecCompliantForm(p))return(await new n($e.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(T.isArrayBufferView(p)||T.isArrayBuffer(p))return p.byteLength;if(T.isURLSearchParams(p)&&(p=p+""),T.isString(p))return(await c(p)).byteLength},m=async(p,y)=>{const v=T.toFiniteNumber(p.getContentLength());return v??h(y)};return async p=>{let{url:y,method:v,data:w,signal:C,cancelToken:b,timeout:L,onDownloadProgress:x,onUploadProgress:E,responseType:D,headers:N,withCredentials:W="same-origin",fetchOptions:O}=ul(p),B=t||fetch;D=D?(D+"").toLowerCase():"text";let Y=yf([C,b&&b.toAbortSignal()],L),z=null;const A=Y&&Y.unsubscribe&&(()=>{Y.unsubscribe()});let $;try{if(E&&u&&v!=="get"&&v!=="head"&&($=await m(N,w))!==0){let U=new n(y,{method:"POST",body:w,duplex:"half"}),q;if(T.isFormData(w)&&(q=U.headers.get("content-type"))&&N.setContentType(q),U.body){const[I,F]=sl($,Jr(al(E)));w=dl(U.body,fl,I,F)}}T.isString(W)||(W=W?"include":"omit");const M=i&&"credentials"in n.prototype,P={...O,signal:Y,method:v.toUpperCase(),headers:N.normalize().toJSON(),body:w,duplex:"half",credentials:M?W:void 0};z=i&&new n(y,P);let S=await(i?B(z,O):B(y,P));const _=d&&(D==="stream"||D==="response");if(d&&(x||_&&A)){const U={};["status","statusText","headers"].forEach(H=>{U[H]=S[H]});const q=T.toFiniteNumber(S.headers.get("content-length")),[I,F]=x&&sl(q,Jr(al(x),!0))||[];S=new r(dl(S.body,fl,I,()=>{F&&F(),A&&A()}),U)}D=D||"text";let V=await f[T.findKey(f,D)||"text"](S,p);return!_&&A&&A(),await new Promise((U,q)=>{il(U,q,{data:V,headers:mt.from(S.headers),status:S.status,statusText:S.statusText,config:p,request:z})})}catch(M){throw A&&A(),M&&M.name==="TypeError"&&/Load failed|fetch/i.test(M.message)?Object.assign(new re("Network Error",re.ERR_NETWORK,p,z),{cause:M.cause||M}):re.from(M,M&&M.code,p,z)}}},kf=new Map,gl=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let s=i.length,a=s,c,u,d=kf;for(;a--;)c=i[a],u=d.get(c),u===void 0&&d.set(c,u=a?new Map:xf(t)),d=u;return u};gl();const fi={http:O2,xhr:mf,fetch:{get:gl}};T.forEach(fi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const yl=e=>`- ${e}`,Lf=e=>T.isFunction(e)||e===null||e===!1;var vl={getAdapter:(e,t)=>{e=T.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let s=0;s<n;s++){r=e[s];let a;if(o=r,!Lf(r)&&(o=fi[(a=String(r)).toLowerCase()],o===void 0))throw new re(`Unknown adapter '${a}'`);if(o&&(T.isFunction(o)||(o=o.get(t))))break;i[a||"#"+s]=o}if(!o){const s=Object.entries(i).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=n?s.length>1?`since :
|
|
4
|
-
`+
|
|
5
|
-
`):" "+
|
|
6
|
-
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=tn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&to.assertOptions(r,{silentJSONParsing:Ct.transitional(Ct.boolean),forcedJSONParsing:Ct.transitional(Ct.boolean),clarifyTimeoutError:Ct.transitional(Ct.boolean)},!1),o!=null&&(T.isFunction(o)?n.paramsSerializer={serialize:o}:to.assertOptions(o,{encode:Ct.function,serialize:Ct.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),to.assertOptions(n,{baseUrl:Ct.spelling("baseURL"),withXsrfToken:Ct.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&T.merge(i.common,i[n.method]);i&&T.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=mt.concat(s,i);const a=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(c=c&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let d,f=0,h;if(!c){const p=[bl.bind(this),void 0];for(p.unshift(...a),p.push(...u),h=p.length,d=Promise.resolve(n);f<h;)d=d.then(p[f++],p[f++]);return d}h=a.length;let m=n;for(;f<h;){const p=a[f++],y=a[f++];try{m=p(m)}catch(v){y.call(this,v);break}}try{d=bl.call(this,m)}catch(p){return Promise.reject(p)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=tn(this.defaults,t);const n=ll(t.baseURL,t.url,t.allowAbsoluteUrls);return Qa(n,t.params,t.paramsSerializer)}}T.forEach(["delete","get","head","options"],function(t){no.prototype[t]=function(n,r){return this.request(tn(r||{},{method:t,url:n,data:(r||{}).data}))}}),T.forEach(["post","put","patch"],function(t){function n(r){return function(i,s,a){return this.request(tn(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}no.prototype[t]=n(),no.prototype[t+"Form"]=n(!0)});var ro=no;class Sa{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new An(i,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 Sa(function(o){t=o}),cancel:t}}}var Mf=Sa;function Sf(e){return function(n){return e.apply(null,n)}}function Tf(e){return T.isObject(e)&&e.isAxiosError===!0}const pi={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(pi).forEach(([e,t])=>{pi[t]=e});var Df=pi;function xl(e){const t=new ro(e),n=_a(ro.prototype.request,t);return T.extend(n,ro.prototype,t,{allOwnKeys:!0}),T.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return xl(tn(e,o))},n}const Me=xl(ci);Me.Axios=ro,Me.CanceledError=An,Me.CancelToken=Mf,Me.isCancel=ol,Me.VERSION=wl,Me.toFormData=Gr,Me.AxiosError=re,Me.Cancel=Me.CanceledError,Me.all=function(t){return Promise.all(t)},Me.spread=Sf,Me.isAxiosError=Tf,Me.mergeConfig=tn,Me.AxiosHeaders=mt,Me.formToJSON=e=>nl(T.isHTMLForm(e)?new FormData(e):e),Me.getAdapter=vl.getAdapter,Me.HttpStatusCode=Df,Me.default=Me;var Pf=Me,Af=Ur(Pf);const kl=e=>{let t;const n=new Set,r=(u,d)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const h=t;t=d??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(m=>m(t,h))}},o=()=>t,a={setState:r,getState:o,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u))},c=t=e(r,o,a);return a},Nf=e=>e?kl(e):kl,Rf=e=>e;function Ff(e,t=Rf){const n=R.useSyncExternalStore(e.subscribe,R.useCallback(()=>t(e.getState()),[e,t]),R.useCallback(()=>t(e.getInitialState()),[e,t]));return R.useDebugValue(n),n}const Ll=e=>{const t=Nf(e),n=r=>Ff(t,r);return Object.assign(n,t),n},El=e=>e?Ll(e):Ll,Ml=El(e=>({clientKey:"",baseUrl:"",setConfig:(t,n)=>e({clientKey:t,baseUrl:n})})),Sl=import.meta.env?.VITE_METRIFOX_BASE_URL||"https://api.metrifox.com/api/v1",gt=()=>{const{clientKey:e,baseUrl:t}=Ml.getState();if(!e)throw new Error("MetriFox SDK not initialized: Client key is missing. Please call metrifoxInit(clientKey) before using SDK feature(s).");return Af.create({baseURL:t||Sl,headers:{"x-client-key":e,"Content-Type":"application/json"},timeout:18e4})},Vf=e=>{Ml.getState().setConfig(e.clientKey,e.baseUrl||Sl)};function $f(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Of=e=>{switch(e){case"success":return If;case"info":return Hf;case"warning":return jf;case"error":return Wf;default:return null}},_f=Array(12).fill(0),Bf=({visible:e,className:t})=>R.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},R.createElement("div",{className:"sonner-spinner"},_f.map((n,r)=>R.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),If=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),jf=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Hf=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Wf=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Uf=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},R.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),R.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Zf=()=>{const[e,t]=R.useState(document.hidden);return R.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let mi=1;class zf{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,i=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:mi++,s=this.toasts.find(c=>c.id===i),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(c=>c.id===i?(this.publish({...c,...t,id:i,title:r}),{...c,...t,id:i,dismissible:a,title:r}):c):this.addToast({title:r,...o,dismissible:a,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,s;const a=o.then(async u=>{if(s=["resolve",u],R.isValidElement(u))i=!1,this.create({id:r,type:"default",message:u});else if(Yf(u)&&!u.ok){i=!1;const f=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,p=typeof f=="object"&&!R.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:h,...p})}else if(u instanceof Error){i=!1;const f=typeof n.error=="function"?await n.error(u):n.error,h=typeof n.description=="function"?await n.description(u):n.description,p=typeof f=="object"&&!R.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:h,...p})}else if(n.success!==void 0){i=!1;const f=typeof n.success=="function"?await n.success(u):n.success,h=typeof n.description=="function"?await n.description(u):n.description,p=typeof f=="object"&&!R.isValidElement(f)?f:{message:f};this.create({id:r,type:"success",description:h,...p})}}).catch(async u=>{if(s=["reject",u],n.error!==void 0){i=!1;const d=typeof n.error=="function"?await n.error(u):n.error,f=typeof n.description=="function"?await n.description(u):n.description,m=typeof d=="object"&&!R.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:f,...m})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),c=()=>new Promise((u,d)=>a.then(()=>s[0]==="reject"?d(s[1]):u(s[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:c}:Object.assign(r,{unwrap:c})},this.custom=(t,n)=>{const r=n?.id||mi++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ye=new zf,Kf=(e,t)=>{const n=t?.id||mi++;return Ye.addToast({title:e,...t,id:n}),n},Yf=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Gf=Kf,qf=()=>Ye.toasts,Xf=()=>Ye.getActiveToasts(),At=Object.assign(Gf,{success:Ye.success,info:Ye.info,warning:Ye.warning,error:Ye.error,custom:Ye.custom,message:Ye.message,promise:Ye.promise,dismiss:Ye.dismiss,loading:Ye.loading},{getHistory:qf,getToasts:Xf});$f("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function oo(e){return e.label!==void 0}const Jf=3,Qf="24px",e3="16px",Tl=4e3,t3=356,n3=14,r3=45,o3=200;function xt(...e){return e.filter(Boolean).join(" ")}function i3(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const s3=e=>{var t,n,r,o,i,s,a,c,u;const{invert:d,toast:f,unstyled:h,interacting:m,setHeights:p,visibleToasts:y,heights:v,index:w,toasts:C,expanded:b,removeToast:L,defaultRichColors:x,closeButton:E,style:D,cancelButtonStyle:N,actionButtonStyle:W,className:O="",descriptionClassName:B="",duration:Y,position:z,gap:A,expandByDefault:$,classNames:M,icons:P,closeButtonAriaLabel:S="Close toast"}=e,[_,V]=R.useState(null),[U,q]=R.useState(null),[I,F]=R.useState(!1),[H,ne]=R.useState(!1),[ie,X]=R.useState(!1),[le,ae]=R.useState(!1),[pe,ee]=R.useState(!1),[J,Ee]=R.useState(0),[fe,ye]=R.useState(0),Ce=R.useRef(f.duration||Y||Tl),Je=R.useRef(null),xe=R.useRef(null),dt=w===0,Qo=w+1<=y,Qe=f.type,En=f.dismissible!==!1,$0=f.className||"",O0=f.descriptionClassName||"",Ir=R.useMemo(()=>v.findIndex(oe=>oe.toastId===f.id)||0,[v,f.id]),_0=R.useMemo(()=>{var oe;return(oe=f.closeButton)!=null?oe:E},[f.closeButton,E]),Da=R.useMemo(()=>f.duration||Y||Tl,[f.duration,Y]),ei=R.useRef(0),Mn=R.useRef(0),Pa=R.useRef(0),Sn=R.useRef(null),[B0,I0]=z.split("-"),Aa=R.useMemo(()=>v.reduce((oe,Ae,Ve)=>Ve>=Ir?oe:oe+Ae.height,0),[v,Ir]),Na=Zf(),j0=f.invert||d,ti=Qe==="loading";Mn.current=R.useMemo(()=>Ir*A+Aa,[Ir,Aa]),R.useEffect(()=>{Ce.current=Da},[Da]),R.useEffect(()=>{F(!0)},[]),R.useEffect(()=>{const oe=xe.current;if(oe){const Ae=oe.getBoundingClientRect().height;return ye(Ae),p(Ve=>[{toastId:f.id,height:Ae,position:f.position},...Ve]),()=>p(Ve=>Ve.filter(et=>et.toastId!==f.id))}},[p,f.id]),R.useLayoutEffect(()=>{if(!I)return;const oe=xe.current,Ae=oe.style.height;oe.style.height="auto";const Ve=oe.getBoundingClientRect().height;oe.style.height=Ae,ye(Ve),p(et=>et.find(Re=>Re.toastId===f.id)?et.map(Re=>Re.toastId===f.id?{...Re,height:Ve}:Re):[{toastId:f.id,height:Ve,position:f.position},...et])},[I,f.title,f.description,p,f.id,f.jsx,f.action,f.cancel]);const Ht=R.useCallback(()=>{ne(!0),Ee(Mn.current),p(oe=>oe.filter(Ae=>Ae.toastId!==f.id)),setTimeout(()=>{L(f)},o3)},[f,L,p,Mn]);R.useEffect(()=>{if(f.promise&&Qe==="loading"||f.duration===1/0||f.type==="loading")return;let oe;return b||m||Na?(()=>{if(Pa.current<ei.current){const et=new Date().getTime()-ei.current;Ce.current=Ce.current-et}Pa.current=new Date().getTime()})():(()=>{Ce.current!==1/0&&(ei.current=new Date().getTime(),oe=setTimeout(()=>{f.onAutoClose==null||f.onAutoClose.call(f,f),Ht()},Ce.current))})(),()=>clearTimeout(oe)},[b,m,f,Qe,Na,Ht]),R.useEffect(()=>{f.delete&&(Ht(),f.onDismiss==null||f.onDismiss.call(f,f))},[Ht,f.delete]);function H0(){var oe;if(P?.loading){var Ae;return R.createElement("div",{className:xt(M?.loader,f==null||(Ae=f.classNames)==null?void 0:Ae.loader,"sonner-loader"),"data-visible":Qe==="loading"},P.loading)}return R.createElement(Bf,{className:xt(M?.loader,f==null||(oe=f.classNames)==null?void 0:oe.loader),visible:Qe==="loading"})}const W0=f.icon||P?.[Qe]||Of(Qe);var Ra,Fa;return R.createElement("li",{tabIndex:0,ref:xe,className:xt(O,$0,M?.toast,f==null||(t=f.classNames)==null?void 0:t.toast,M?.default,M?.[Qe],f==null||(n=f.classNames)==null?void 0:n[Qe]),"data-sonner-toast":"","data-rich-colors":(Ra=f.richColors)!=null?Ra:x,"data-styled":!(f.jsx||f.unstyled||h),"data-mounted":I,"data-promise":!!f.promise,"data-swiped":pe,"data-removed":H,"data-visible":Qo,"data-y-position":B0,"data-x-position":I0,"data-index":w,"data-front":dt,"data-swiping":ie,"data-dismissible":En,"data-type":Qe,"data-invert":j0,"data-swipe-out":le,"data-swipe-direction":U,"data-expanded":!!(b||$&&I),"data-testid":f.testId,style:{"--index":w,"--toasts-before":w,"--z-index":C.length-w,"--offset":`${H?J:Mn.current}px`,"--initial-height":$?"auto":`${fe}px`,...D,...f.style},onDragEnd:()=>{X(!1),V(null),Sn.current=null},onPointerDown:oe=>{oe.button!==2&&(ti||!En||(Je.current=new Date,Ee(Mn.current),oe.target.setPointerCapture(oe.pointerId),oe.target.tagName!=="BUTTON"&&(X(!0),Sn.current={x:oe.clientX,y:oe.clientY})))},onPointerUp:()=>{var oe,Ae,Ve;if(le||!En)return;Sn.current=null;const et=Number(((oe=xe.current)==null?void 0:oe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),jr=Number(((Ae=xe.current)==null?void 0:Ae.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Re=new Date().getTime()-((Ve=Je.current)==null?void 0:Ve.getTime()),rt=_==="x"?et:jr,Hr=Math.abs(rt)/Re;if(Math.abs(rt)>=r3||Hr>.11){Ee(Mn.current),f.onDismiss==null||f.onDismiss.call(f,f),q(_==="x"?et>0?"right":"left":jr>0?"down":"up"),Ht(),ae(!0);return}else{var ft,ht;(ft=xe.current)==null||ft.style.setProperty("--swipe-amount-x","0px"),(ht=xe.current)==null||ht.style.setProperty("--swipe-amount-y","0px")}ee(!1),X(!1),V(null)},onPointerMove:oe=>{var Ae,Ve,et;if(!Sn.current||!En||((Ae=window.getSelection())==null?void 0:Ae.toString().length)>0)return;const Re=oe.clientY-Sn.current.y,rt=oe.clientX-Sn.current.x;var Hr;const ft=(Hr=e.swipeDirections)!=null?Hr:i3(z);!_&&(Math.abs(rt)>1||Math.abs(Re)>1)&&V(Math.abs(rt)>Math.abs(Re)?"x":"y");let ht={x:0,y:0};const Va=Xt=>1/(1.5+Math.abs(Xt)/20);if(_==="y"){if(ft.includes("top")||ft.includes("bottom"))if(ft.includes("top")&&Re<0||ft.includes("bottom")&&Re>0)ht.y=Re;else{const Xt=Re*Va(Re);ht.y=Math.abs(Xt)<Math.abs(Re)?Xt:Re}}else if(_==="x"&&(ft.includes("left")||ft.includes("right")))if(ft.includes("left")&&rt<0||ft.includes("right")&&rt>0)ht.x=rt;else{const Xt=rt*Va(rt);ht.x=Math.abs(Xt)<Math.abs(rt)?Xt:rt}(Math.abs(ht.x)>0||Math.abs(ht.y)>0)&&ee(!0),(Ve=xe.current)==null||Ve.style.setProperty("--swipe-amount-x",`${ht.x}px`),(et=xe.current)==null||et.style.setProperty("--swipe-amount-y",`${ht.y}px`)}},_0&&!f.jsx&&Qe!=="loading"?R.createElement("button",{"aria-label":S,"data-disabled":ti,"data-close-button":!0,onClick:ti||!En?()=>{}:()=>{Ht(),f.onDismiss==null||f.onDismiss.call(f,f)},className:xt(M?.closeButton,f==null||(r=f.classNames)==null?void 0:r.closeButton)},(Fa=P?.close)!=null?Fa:Uf):null,(Qe||f.icon||f.promise)&&f.icon!==null&&(P?.[Qe]!==null||f.icon)?R.createElement("div",{"data-icon":"",className:xt(M?.icon,f==null||(o=f.classNames)==null?void 0:o.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||H0():null,f.type!=="loading"?W0:null):null,R.createElement("div",{"data-content":"",className:xt(M?.content,f==null||(i=f.classNames)==null?void 0:i.content)},R.createElement("div",{"data-title":"",className:xt(M?.title,f==null||(s=f.classNames)==null?void 0:s.title)},f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title),f.description?R.createElement("div",{"data-description":"",className:xt(B,O0,M?.description,f==null||(a=f.classNames)==null?void 0:a.description)},typeof f.description=="function"?f.description():f.description):null),R.isValidElement(f.cancel)?f.cancel:f.cancel&&oo(f.cancel)?R.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||N,onClick:oe=>{oo(f.cancel)&&En&&(f.cancel.onClick==null||f.cancel.onClick.call(f.cancel,oe),Ht())},className:xt(M?.cancelButton,f==null||(c=f.classNames)==null?void 0:c.cancelButton)},f.cancel.label):null,R.isValidElement(f.action)?f.action:f.action&&oo(f.action)?R.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||W,onClick:oe=>{oo(f.action)&&(f.action.onClick==null||f.action.onClick.call(f.action,oe),!oe.defaultPrevented&&Ht())},className:xt(M?.actionButton,f==null||(u=f.classNames)==null?void 0:u.actionButton)},f.action.label):null)};function Dl(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function a3(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,s=i?"--mobile-offset":"--offset",a=i?e3:Qf;function c(u){["top","right","bottom","left"].forEach(d=>{n[`${s}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=a:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):c(a)}),n}const l3=R.forwardRef(function(t,n){const{id:r,invert:o,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:a,closeButton:c,className:u,offset:d,mobileOffset:f,theme:h="light",richColors:m,duration:p,style:y,visibleToasts:v=Jf,toastOptions:w,dir:C=Dl(),gap:b=n3,icons:L,containerAriaLabel:x="Notifications"}=t,[E,D]=R.useState([]),N=R.useMemo(()=>r?E.filter(I=>I.toasterId===r):E.filter(I=>!I.toasterId),[E,r]),W=R.useMemo(()=>Array.from(new Set([i].concat(N.filter(I=>I.position).map(I=>I.position)))),[N,i]),[O,B]=R.useState([]),[Y,z]=R.useState(!1),[A,$]=R.useState(!1),[M,P]=R.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),S=R.useRef(null),_=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),V=R.useRef(null),U=R.useRef(!1),q=R.useCallback(I=>{D(F=>{var H;return(H=F.find(ne=>ne.id===I.id))!=null&&H.delete||Ye.dismiss(I.id),F.filter(({id:ne})=>ne!==I.id)})},[]);return R.useEffect(()=>Ye.subscribe(I=>{if(I.dismiss){requestAnimationFrame(()=>{D(F=>F.map(H=>H.id===I.id?{...H,delete:!0}:H))});return}setTimeout(()=>{q0.flushSync(()=>{D(F=>{const H=F.findIndex(ne=>ne.id===I.id);return H!==-1?[...F.slice(0,H),{...F[H],...I},...F.slice(H+1)]:[I,...F]})})})}),[E]),R.useEffect(()=>{if(h!=="system"){P(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?P("dark"):P("light")),typeof window>"u")return;const I=window.matchMedia("(prefers-color-scheme: dark)");try{I.addEventListener("change",({matches:F})=>{P(F?"dark":"light")})}catch{I.addListener(({matches:H})=>{try{P(H?"dark":"light")}catch(ne){console.error(ne)}})}},[h]),R.useEffect(()=>{E.length<=1&&z(!1)},[E]),R.useEffect(()=>{const I=F=>{var H;if(s.every(X=>F[X]||F.code===X)){var ie;z(!0),(ie=S.current)==null||ie.focus()}F.code==="Escape"&&(document.activeElement===S.current||(H=S.current)!=null&&H.contains(document.activeElement))&&z(!1)};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[s]),R.useEffect(()=>{if(S.current)return()=>{V.current&&(V.current.focus({preventScroll:!0}),V.current=null,U.current=!1)}},[S.current]),R.createElement("section",{ref:n,"aria-label":`${x} ${_}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},W.map((I,F)=>{var H;const[ne,ie]=I.split("-");return N.length?R.createElement("ol",{key:I,dir:C==="auto"?Dl():C,tabIndex:-1,ref:S,className:u,"data-sonner-toaster":!0,"data-sonner-theme":M,"data-y-position":ne,"data-x-position":ie,style:{"--front-toast-height":`${((H=O[0])==null?void 0:H.height)||0}px`,"--width":`${t3}px`,"--gap":`${b}px`,...y,...a3(d,f)},onBlur:X=>{U.current&&!X.currentTarget.contains(X.relatedTarget)&&(U.current=!1,V.current&&(V.current.focus({preventScroll:!0}),V.current=null))},onFocus:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||U.current||(U.current=!0,V.current=X.relatedTarget)},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{A||z(!1)},onDragEnd:()=>z(!1),onPointerDown:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||$(!0)},onPointerUp:()=>$(!1)},N.filter(X=>!X.position&&F===0||X.position===I).map((X,le)=>{var ae,pe;return R.createElement(s3,{key:X.id,icons:L,index:le,toast:X,defaultRichColors:m,duration:(ae=w?.duration)!=null?ae:p,className:w?.className,descriptionClassName:w?.descriptionClassName,invert:o,visibleToasts:v,closeButton:(pe=w?.closeButton)!=null?pe:c,interacting:A,position:I,style:w?.style,unstyled:w?.unstyled,classNames:w?.classNames,cancelButtonStyle:w?.cancelButtonStyle,actionButtonStyle:w?.actionButtonStyle,closeButtonAriaLabel:w?.closeButtonAriaLabel,removeToast:q,toasts:N.filter(ee=>ee.position==X.position),heights:O.filter(ee=>ee.position==X.position),setHeights:B,expandByDefault:a,gap:b,expanded:Y,swipeDirections:t.swipeDirections})})):null}))}),c3=({children:e})=>g(Jt,{children:[l(l3,{className:"backdrop-blur-md",toastOptions:{unstyled:!0,classNames:{title:"text-md font-500",description:"text-sm font-400",error:"flex items-center gap-1 bg-red-500 text-metrifox-white rounded-lg p-2",success:"flex items-center gap-1 bg-green-600 text-metrifox-white rounded-lg p-2",warning:"flex items-center gap-1 bg-amber-500 text-metrifox-white rounded-lg p-2",info:"flex items-center gap-1 bg-secondary-light text-metrifox-black rounded-lg p-2"}}}),e]}),k=({children:e,className:t="",...n})=>l("div",{className:t,...n,children:e}),Pl=typeof document<"u"?R.useLayoutEffect:()=>{};var gi;const u3=(gi=R.useInsertionEffect)!==null&&gi!==void 0?gi:Pl;function d3(e){const t=se(null);return u3(()=>{t.current=e},[e]),ue((...n)=>{const r=t.current;return r?.(...n)},[])}const Wt=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},nn=e=>e&&"window"in e&&e.window===e?e:Wt(e).defaultView||window;function f3(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function h3(e){return f3(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let p3=!1;function yi(){return p3}function Al(e,t){if(!yi())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:h3(n)?n=n.host:n=n.parentNode}return!1}const vi=(e=document)=>{var t;if(!yi())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function Nl(e){return yi()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function io(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function bi(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Nt(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const wi=Nt(function(){return bi(/^Mac/i)}),m3=Nt(function(){return bi(/^iPhone/i)}),g3=Nt(function(){return bi(/^iPad/i)||wi()&&navigator.maxTouchPoints>1}),y3=Nt(function(){return m3()||g3()});Nt(function(){return wi()||y3()}),Nt(function(){return io(/AppleWebKit/i)&&!v3()});const v3=Nt(function(){return io(/Chrome/i)}),b3=Nt(function(){return io(/Android/i)});Nt(function(){return io(/Firefox/i)});function Rl(){let e=se(new Map),t=ue((o,i,s,a)=>{let c=a?.once?(...u)=>{e.current.delete(s),s(...u)}:s;e.current.set(s,{type:i,eventTarget:o,fn:c,options:a}),o.addEventListener(i,c,a)},[]),n=ue((o,i,s,a)=>{var c;let u=((c=e.current.get(s))===null||c===void 0?void 0:c.fn)||s;o.removeEventListener(i,u,a),e.current.delete(s)},[]),r=ue(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return te(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function w3(e){return e.pointerType===""&&e.isTrusted?!0:b3()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Fl(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function C3(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Vl(e){let t=se({isFocused:!1,observer:null});Pl(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=d3(r=>{e?.(r)});return ue(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=s=>{if(t.current.isFocused=!1,o.disabled){let a=Fl(s);n(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let x3=!1,ar=null,Ci=new Set,lr=new Map,rn=!1,xi=!1;const k3={Tab:!0,Escape:!0};function ki(e,t){for(let n of Ci)n(e,t)}function L3(e){return!(e.metaKey||!wi()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function so(e){rn=!0,L3(e)&&(ar="keyboard",ki("keyboard",e))}function ot(e){ar="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(rn=!0,ki("pointer",e))}function $l(e){w3(e)&&(rn=!0,ar="virtual")}function Ol(e){e.target===window||e.target===document||x3||!e.isTrusted||(!rn&&!xi&&(ar="virtual",ki("virtual",e)),rn=!1,xi=!1)}function _l(){rn=!1,xi=!0}function Li(e){if(typeof window>"u"||typeof document>"u"||lr.get(nn(e)))return;const t=nn(e),n=Wt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){rn=!0,r.apply(this,arguments)},n.addEventListener("keydown",so,!0),n.addEventListener("keyup",so,!0),n.addEventListener("click",$l,!0),t.addEventListener("focus",Ol,!0),t.addEventListener("blur",_l,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ot,!0),n.addEventListener("pointermove",ot,!0),n.addEventListener("pointerup",ot,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",ot,!0),n.addEventListener("mousemove",ot,!0),n.addEventListener("mouseup",ot,!0)),t.addEventListener("beforeunload",()=>{Bl(e)},{once:!0}),lr.set(t,{focus:r})}const Bl=(e,t)=>{const n=nn(e),r=Wt(e);t&&r.removeEventListener("DOMContentLoaded",t),lr.has(n)&&(n.HTMLElement.prototype.focus=lr.get(n).focus,r.removeEventListener("keydown",so,!0),r.removeEventListener("keyup",so,!0),r.removeEventListener("click",$l,!0),n.removeEventListener("focus",Ol,!0),n.removeEventListener("blur",_l,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ot,!0),r.removeEventListener("pointermove",ot,!0),r.removeEventListener("pointerup",ot,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",ot,!0),r.removeEventListener("mousemove",ot,!0),r.removeEventListener("mouseup",ot,!0)),lr.delete(n))};function E3(e){const t=Wt(e);let n;return t.readyState!=="loading"?Li(e):(n=()=>{Li(e)},t.addEventListener("DOMContentLoaded",n)),()=>Bl(e,n)}typeof document<"u"&&E3();function Il(){return ar!=="pointer"}const M3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function S3(e,t,n){let r=Wt(n?.target);const o=typeof window<"u"?nn(n?.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?nn(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?nn(n?.target).HTMLElement:HTMLElement,a=typeof window<"u"?nn(n?.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!M3.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof s&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!k3[n.key])}function T3(e,t,n){Li(),te(()=>{let r=(o,i)=>{S3(!!n?.isTextInput,o,i)&&e(Il())};return Ci.add(r),()=>{Ci.delete(r)}},t)}function D3(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=ue(c=>{if(c.target===c.currentTarget)return r&&r(c),o&&o(!1),!0},[r,o]),s=Vl(i),a=ue(c=>{const u=Wt(c.target),d=u?vi(u):vi();c.target===c.currentTarget&&d===Nl(c.nativeEvent)&&(n&&n(c),o&&o(!0),s(c))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}function P3(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=se({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=Rl(),c=ue(f=>{f.currentTarget.contains(f.target)&&i.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(i.current.isFocusWithin=!1,a(),n&&n(f),o&&o(!1))},[n,o,i,a]),u=Vl(c),d=ue(f=>{if(!f.currentTarget.contains(f.target))return;const h=Wt(f.target),m=vi(h);if(!i.current.isFocusWithin&&m===Nl(f.nativeEvent)){r&&r(f),o&&o(!0),i.current.isFocusWithin=!0,u(f);let p=f.currentTarget;s(h,"focus",y=>{if(i.current.isFocusWithin&&!Al(p,y.target)){let v=new h.defaultView.FocusEvent("blur",{relatedTarget:y.target});C3(v,p);let w=Fl(v);c(w)}},{capture:!0})}},[r,o,u,s,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:c}}}let ao=!1,lo=0;function Ei(){ao=!0,setTimeout(()=>{ao=!1},50)}function jl(e){e.pointerType==="touch"&&Ei()}function A3(){if(!(typeof document>"u"))return lo===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",jl):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Ei)),lo++,()=>{lo--,!(lo>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",jl):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Ei))}}function Hl(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=K(!1),a=se({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;te(A3,[]);let{addGlobalListener:c,removeAllGlobalListeners:u}=Rl(),{hoverProps:d,triggerHoverEnd:f}=ve(()=>{let h=(y,v)=>{if(a.pointerType=v,o||v==="touch"||a.isHovered||!y.currentTarget.contains(y.target))return;a.isHovered=!0;let w=y.currentTarget;a.target=w,c(Wt(y.target),"pointerover",C=>{a.isHovered&&a.target&&!Al(a.target,C.target)&&m(C,C.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:w,pointerType:v}),n&&n(!0),s(!0)},m=(y,v)=>{let w=a.target;a.pointerType="",a.target=null,!(v==="touch"||!a.isHovered||!w)&&(a.isHovered=!1,u(),r&&r({type:"hoverend",target:w,pointerType:v}),n&&n(!1),s(!1))},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=y=>{ao&&y.pointerType==="mouse"||h(y,y.pointerType)},p.onPointerLeave=y=>{!o&&y.currentTarget.contains(y.target)&&m(y,y.pointerType)}):process.env.NODE_ENV==="test"&&(p.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=y=>{!a.ignoreEmulatedMouseEvents&&!ao&&h(y,"mouse"),a.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=y=>{!o&&y.currentTarget.contains(y.target)&&m(y,"mouse")}),{hoverProps:p,triggerHoverEnd:m}},[t,n,r,o,a,c,u]);return te(()=>{o&&f({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:d,isHovered:i}}function Mi(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=se({isFocused:!1,isFocusVisible:t||Il()}),[i,s]=K(!1),[a,c]=K(()=>o.current.isFocused&&o.current.isFocusVisible),u=ue(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),d=ue(m=>{o.current.isFocused=m,s(m),u()},[u]);T3(m=>{o.current.isFocusVisible=m,u()},[],{isTextInput:n});let{focusProps:f}=D3({isDisabled:r,onFocusChange:d}),{focusWithinProps:h}=P3({isDisabled:!r,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:a,focusProps:r?h:f}}var N3=Object.defineProperty,R3=(e,t,n)=>t in e?N3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Si=(e,t,n)=>(R3(e,typeof t!="symbol"?t+"":t,n),n);let F3=class{constructor(){Si(this,"current",this.detect()),Si(this,"handoffState","pending"),Si(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},on=new F3;function Nn(e){var t;return on.isServer?null:e==null?document:(t=e?.ownerDocument)!=null?t:document}function sn(e){var t,n;return on.isServer?null:e==null?document:(n=(t=e?.getRootNode)==null?void 0:t.call(e))!=null?n:document}function an(e){var t,n;return(n=(t=sn(e))==null?void 0:t.activeElement)!=null?n:null}function Ti(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Rt(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Ti(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=Rt();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function co(){let[e]=K(Rt);return te(()=>()=>e.dispose(),[e]),e}let Ie=(e,t)=>{on.isServer?te(e,t):Tn(e,t)};function it(e){let t=se(e);return Ie(()=>{t.current=e},[e]),t}let ce=function(e){let t=it(e);return R.useCallback((...n)=>t.current(...n),[t])};function V3(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function $3(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function Wl({disabled:e=!1}={}){let t=se(null),[n,r]=K(!1),o=co(),i=ce(()=>{t.current=null,r(!1),o.dispose()}),s=ce(a=>{if(o.dispose(),t.current===null){t.current=a.currentTarget,r(!0);{let c=Nn(a.currentTarget);o.addEventListener(c,"pointerup",i,!1),o.addEventListener(c,"pointermove",u=>{if(t.current){let d=V3(u);r($3(d,t.current.getBoundingClientRect()))}},!1),o.addEventListener(c,"pointercancel",i,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:i,onClick:i}}}function kt(e){return ve(()=>e,Object.values(e))}function Ul(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function je(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,je),r}var ln=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ln||{}),O3=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(O3||{});function Ge(){let e=B3();return ue(t=>_3({mergeRefs:e,...t}),[e])}function _3({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:a}){a=a??I3;let c=Zl(t,e);if(i)return uo(c,n,r,s,a);let u=o??0;if(u&2){let{static:d=!1,...f}=c;if(d)return uo(f,n,r,s,a)}if(u&1){let{unmount:d=!0,...f}=c;return je(d?0:1,{0(){return null},1(){return uo({...f,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return uo(c,n,r,s,a)}function uo(e,t={},n,r,o){let{as:i=n,children:s,refName:a="ref",...c}=Di(e,["unmount","static"]),u=e.ref!==void 0?{[a]:e.ref}:{},d=typeof s=="function"?s(t):s;"className"in c&&c.className&&typeof c.className=="function"&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let f={};if(t){let h=!1,m=[];for(let[p,y]of Object.entries(t))typeof y=="boolean"&&(h=!0),y===!0&&m.push(p.replace(/([A-Z])/g,v=>`-${v.toLowerCase()}`));if(h){f["data-headlessui-state"]=m.join(" ");for(let p of m)f[`data-${p}`]=""}}if(fo(i)&&(Object.keys(Rn(c)).length>0||Object.keys(Rn(f)).length>0))if(!U0(d)||Array.isArray(d)&&d.length>1||H3(d)){if(Object.keys(Rn(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Rn(c)).concat(Object.keys(Rn(f))).map(h=>` - ${h}`).join(`
|
|
1
|
+
import*as G from"react";import N,{Fragment as Sn,useRef as se,useCallback as ue,useEffect as te,useState as K,useMemo as ve,useLayoutEffect as Tn,forwardRef as Ba,isValidElement as Y0,cloneElement as G0,createElement as Ia,createContext as De,useId as Pt,useSyncExternalStore as q0,useContext as de,useReducer as X0,useInsertionEffect as J0,Component as Q0}from"react";import{jsxs as y,jsx as l,Fragment as Ie}from"react/jsx-runtime";import*as Wr from"react-dom";import e2,{createPortal as t2}from"react-dom";var Jt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*! Axios v1.12.2 Copyright (c) 2025 Matt Zabriskie and contributors */function ja(e,t){return function(){return e.apply(t,arguments)}}const{toString:n2}=Object.prototype,{getPrototypeOf:ni}=Object,{iterator:Zr,toStringTag:Ha}=Symbol,zr=(e=>t=>{const n=n2.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),pt=e=>(e=e.toLowerCase(),t=>zr(t)===e),Kr=e=>t=>typeof t===e,{isArray:Dn}=Array,Pn=Kr("undefined");function rr(e){return e!==null&&!Pn(e)&&e.constructor!==null&&!Pn(e.constructor)&&Ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Wa=pt("ArrayBuffer");function r2(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Wa(e.buffer),t}const o2=Kr("string"),Ke=Kr("function"),Ua=Kr("number"),or=e=>e!==null&&typeof e=="object",i2=e=>e===!0||e===!1,Yr=e=>{if(zr(e)!=="object")return!1;const t=ni(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ha in e)&&!(Zr in e)},s2=e=>{if(!or(e)||rr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},a2=pt("Date"),l2=pt("File"),c2=pt("Blob"),u2=pt("FileList"),d2=e=>or(e)&&Ke(e.pipe),f2=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ke(e.append)&&((t=zr(e))==="formdata"||t==="object"&&Ke(e.toString)&&e.toString()==="[object FormData]"))},h2=pt("URLSearchParams"),[p2,m2,g2,y2]=["ReadableStream","Request","Response","Headers"].map(pt),v2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ir(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Dn(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(rr(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let a;for(r=0;r<i;r++)a=s[r],t.call(null,e[a],a,e)}}function Za(e,t){if(rr(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Qt=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Jt)(),za=e=>!Pn(e)&&e!==Qt;function ri(){const{caseless:e,skipUndefined:t}=za(this)&&this||{},n={},r=(o,s)=>{const i=e&&Za(n,s)||s;Yr(n[i])&&Yr(o)?n[i]=ri(n[i],o):Yr(o)?n[i]=ri({},o):Dn(o)?n[i]=o.slice():(!t||!Pn(o))&&(n[i]=o)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&ir(arguments[o],r);return n}const b2=(e,t,n,{allOwnKeys:r}={})=>(ir(t,(o,s)=>{n&&Ke(o)?e[s]=ja(o,n):e[s]=o},{allOwnKeys:r}),e),C2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),w2=(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)},x2=(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&ni(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},k2=(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},L2=e=>{if(!e)return null;if(Dn(e))return e;let t=e.length;if(!Ua(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},E2=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ni(Uint8Array)),M2=(e,t)=>{const r=(e&&e[Zr]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},S2=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},T2=pt("HTMLFormElement"),D2=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Ka=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),P2=pt("RegExp"),Ya=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ir(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},A2=e=>{Ya(e,(t,n)=>{if(Ke(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ke(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+"'")})}})},N2=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return Dn(e)?r(e):r(String(e).split(t)),n},R2=()=>{},F2=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function V2(e){return!!(e&&Ke(e.append)&&e[Ha]==="FormData"&&e[Zr])}const $2=e=>{const t=new Array(10),n=(r,o)=>{if(or(r)){if(t.indexOf(r)>=0)return;if(rr(r))return r;if(!("toJSON"in r)){t[o]=r;const s=Dn(r)?[]:{};return ir(r,(i,a)=>{const c=n(i,o+1);!Pn(c)&&(s[a]=c)}),t[o]=void 0,s}}return r};return n(e,0)},_2=pt("AsyncFunction"),O2=e=>e&&(or(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),Ga=((e,t)=>e?setImmediate:t?((n,r)=>(Qt.addEventListener("message",({source:o,data:s})=>{o===Qt&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Qt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ke(Qt.postMessage)),B2=typeof queueMicrotask<"u"?queueMicrotask.bind(Qt):typeof process<"u"&&process.nextTick||Ga,I2=e=>e!=null&&Ke(e[Zr]);var T={isArray:Dn,isArrayBuffer:Wa,isBuffer:rr,isFormData:f2,isArrayBufferView:r2,isString:o2,isNumber:Ua,isBoolean:i2,isObject:or,isPlainObject:Yr,isEmptyObject:s2,isReadableStream:p2,isRequest:m2,isResponse:g2,isHeaders:y2,isUndefined:Pn,isDate:a2,isFile:l2,isBlob:c2,isRegExp:P2,isFunction:Ke,isStream:d2,isURLSearchParams:h2,isTypedArray:E2,isFileList:u2,forEach:ir,merge:ri,extend:b2,trim:v2,stripBOM:C2,inherits:w2,toFlatObject:x2,kindOf:zr,kindOfTest:pt,endsWith:k2,toArray:L2,forEachEntry:M2,matchAll:S2,isHTMLForm:T2,hasOwnProperty:Ka,hasOwnProp:Ka,reduceDescriptors:Ya,freezeMethods:A2,toObjectSet:N2,toCamelCase:D2,noop:R2,toFiniteNumber:F2,findKey:Za,global:Qt,isContextDefined:za,isSpecCompliantForm:V2,toJSONObject:$2,isAsyncFn:_2,isThenable:O2,setImmediate:Ga,asap:B2,isIterable:I2};function re(e,t,n,r,o){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),o&&(this.response=o,this.status=o.status?o.status:null)}T.inherits(re,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:T.toJSONObject(this.config),code:this.code,status:this.status}}});const qa=re.prototype,Xa={};["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=>{Xa[e]={value:e}}),Object.defineProperties(re,Xa),Object.defineProperty(qa,"isAxiosError",{value:!0}),re.from=(e,t,n,r,o,s)=>{const i=Object.create(qa);T.toFlatObject(e,i,function(d){return d!==Error.prototype},u=>u!=="isAxiosError");const a=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return re.call(i,a,c,n,r,o),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",s&&Object.assign(i,s),i};var j2=null;function oi(e){return T.isPlainObject(e)||T.isArray(e)}function Ja(e){return T.endsWith(e,"[]")?e.slice(0,-2):e}function Qa(e,t,n){return e?e.concat(t).map(function(o,s){return o=Ja(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function H2(e){return T.isArray(e)&&!e.some(oi)}const W2=T.toFlatObject(T,{},null,function(t){return/^is[A-Z]/.test(t)});function Gr(e,t,n){if(!T.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=T.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!T.isUndefined(v[g])});const r=n.metaTokens,o=n.visitor||d,s=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&T.isSpecCompliantForm(t);if(!T.isFunction(o))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(T.isDate(p))return p.toISOString();if(T.isBoolean(p))return p.toString();if(!c&&T.isBlob(p))throw new re("Blob is not supported. Use a Buffer instead.");return T.isArrayBuffer(p)||T.isTypedArray(p)?c&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,g,v){let b=p;if(p&&!v&&typeof p=="object"){if(T.endsWith(g,"{}"))g=r?g:g.slice(0,-2),p=JSON.stringify(p);else if(T.isArray(p)&&H2(p)||(T.isFileList(p)||T.endsWith(g,"[]"))&&(b=T.toArray(p)))return g=Ja(g),b.forEach(function(C,L){!(T.isUndefined(C)||C===null)&&t.append(i===!0?Qa([g],L,s):i===null?g:g+"[]",u(C))}),!1}return oi(p)?!0:(t.append(Qa(v,g,s),u(p)),!1)}const f=[],h=Object.assign(W2,{defaultVisitor:d,convertValue:u,isVisitable:oi});function m(p,g){if(!T.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(p),T.forEach(p,function(b,w){(!(T.isUndefined(b)||b===null)&&o.call(t,b,T.isString(w)?w.trim():w,g,h))===!0&&m(b,g?g.concat(w):[w])}),f.pop()}}if(!T.isObject(e))throw new TypeError("data must be an object");return m(e),t}function el(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ii(e,t){this._pairs=[],e&&Gr(e,this,t)}const tl=ii.prototype;tl.append=function(t,n){this._pairs.push([t,n])},tl.toString=function(t){const n=t?function(r){return t.call(this,r,el)}:el;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function U2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function nl(e,t,n){if(!t)return e;const r=n&&n.encode||U2;T.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(o?s=o(t,n):s=T.isURLSearchParams(t)?t.toString():new ii(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Z2{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){T.forEach(this.handlers,function(r){r!==null&&t(r)})}}var rl=Z2,ol={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},z2=typeof URLSearchParams<"u"?URLSearchParams:ii,K2=typeof FormData<"u"?FormData:null,Y2=typeof Blob<"u"?Blob:null,G2={isBrowser:!0,classes:{URLSearchParams:z2,FormData:K2,Blob:Y2},protocols:["http","https","file","blob","url","data"]};const si=typeof window<"u"&&typeof document<"u",ai=typeof navigator=="object"&&navigator||void 0,q2=si&&(!ai||["ReactNative","NativeScript","NS"].indexOf(ai.product)<0),X2=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),J2=si&&window.location.href||"http://localhost";var Q2=Object.freeze({__proto__:null,hasBrowserEnv:si,hasStandardBrowserWebWorkerEnv:X2,hasStandardBrowserEnv:q2,navigator:ai,origin:J2}),$e={...Q2,...G2};function ef(e,t){return Gr(e,new $e.classes.URLSearchParams,{visitor:function(n,r,o,s){return $e.isNode&&T.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function tf(e){return T.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function nf(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function il(e){function t(n,r,o,s){let i=n[s++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),c=s>=n.length;return i=!i&&T.isArray(o)?o.length:i,c?(T.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!a):((!o[i]||!T.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&T.isArray(o[i])&&(o[i]=nf(o[i])),!a)}if(T.isFormData(e)&&T.isFunction(e.entries)){const n={};return T.forEachEntry(e,(r,o)=>{t(tf(r),o,n,0)}),n}return null}function rf(e,t,n){if(T.isString(e))try{return(t||JSON.parse)(e),T.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const li={transitional:ol,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=T.isObject(t);if(s&&T.isHTMLForm(t)&&(t=new FormData(t)),T.isFormData(t))return o?JSON.stringify(il(t)):t;if(T.isArrayBuffer(t)||T.isBuffer(t)||T.isStream(t)||T.isFile(t)||T.isBlob(t)||T.isReadableStream(t))return t;if(T.isArrayBufferView(t))return t.buffer;if(T.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ef(t,this.formSerializer).toString();if((a=T.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Gr(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),rf(t)):t}],transformResponse:[function(t){const n=this.transitional||li.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(T.isResponse(t)||T.isReadableStream(t))return t;if(t&&T.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(a){if(i)throw a.name==="SyntaxError"?re.from(a,re.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:$e.classes.FormData,Blob:$e.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};T.forEach(["delete","get","head","post","put","patch"],e=>{li.headers[e]={}});var ci=li;const of=T.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"]);var sf=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
2
|
+
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&of[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};const sl=Symbol("internals");function sr(e){return e&&String(e).trim().toLowerCase()}function qr(e){return e===!1||e==null?e:T.isArray(e)?e.map(qr):String(e)}function af(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 lf=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ui(e,t,n,r,o){if(T.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!T.isString(t)){if(T.isString(r))return t.indexOf(r)!==-1;if(T.isRegExp(r))return r.test(t)}}function cf(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function uf(e,t){const n=T.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class Xr{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,c,u){const d=sr(c);if(!d)throw new Error("header name must be a non-empty string");const f=T.findKey(o,d);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||c]=qr(a))}const i=(a,c)=>T.forEach(a,(u,d)=>s(u,d,c));if(T.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(T.isString(t)&&(t=t.trim())&&!lf(t))i(sf(t),n);else if(T.isObject(t)&&T.isIterable(t)){let a={},c,u;for(const d of t){if(!T.isArray(d))throw TypeError("Object iterator must return a key-value pair");a[u=d[0]]=(c=a[u])?T.isArray(c)?[...c,d[1]]:[c,d[1]]:d[1]}i(a,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=sr(t),t){const r=T.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return af(o);if(T.isFunction(n))return n.call(this,o,r);if(T.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=sr(t),t){const r=T.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ui(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=sr(i),i){const a=T.findKey(r,i);a&&(!n||ui(r,r[a],a,n))&&(delete r[a],o=!0)}}return T.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||ui(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return T.forEach(this,(o,s)=>{const i=T.findKey(r,s);if(i){n[i]=qr(o),delete n[s];return}const a=t?cf(s):String(s).trim();a!==s&&delete n[s],n[a]=qr(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return T.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&T.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(`
|
|
3
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}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(o=>r.set(o)),r}static accessor(t){const r=(this[sl]=this[sl]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=sr(i);r[a]||(uf(o,i),r[a]=!0)}return T.isArray(t)?t.forEach(s):s(t),this}}Xr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),T.reduceDescriptors(Xr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),T.freezeMethods(Xr);var mt=Xr;function di(e,t){const n=this||ci,r=t||n,o=mt.from(r.headers);let s=r.data;return T.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function al(e){return!!(e&&e.__CANCEL__)}function An(e,t,n){re.call(this,e??"canceled",re.ERR_CANCELED,t,n),this.name="CanceledError"}T.inherits(An,re,{__CANCEL__:!0});function ll(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new re("Request failed with status code "+n.status,[re.ERR_BAD_REQUEST,re.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function df(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ff(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=r[s];i||(i=u),n[o]=c,r[o]=u;let f=s,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),u-i<t)return;const m=d&&u-d;return m?Math.round(h*1e3/m):void 0}}function hf(e,t){let n=0,r=1e3/t,o,s;const i=(u,d=Date.now())=>{n=d,o=null,s&&(clearTimeout(s),s=null),e(...u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?i(u,d):(o=u,s||(s=setTimeout(()=>{s=null,i(o)},r-f)))},()=>o&&i(o)]}const Jr=(e,t,n=3)=>{let r=0;const o=ff(50,250);return hf(s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,c=i-r,u=o(c),d=i<=a;r=i;const f={loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&d?(a-i)/u:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},cl=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ul=e=>(...t)=>T.asap(()=>e(...t));var pf=$e.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,$e.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL($e.origin),$e.navigator&&/(msie|trident)/i.test($e.navigator.userAgent)):()=>!0,mf=$e.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];T.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),T.isString(r)&&i.push("path="+r),T.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.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 gf(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yf(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function dl(e,t,n){let r=!gf(t);return e&&(r||n==!1)?yf(e,t):t}const fl=e=>e instanceof mt?{...e}:e;function en(e,t){t=t||{};const n={};function r(u,d,f,h){return T.isPlainObject(u)&&T.isPlainObject(d)?T.merge.call({caseless:h},u,d):T.isPlainObject(d)?T.merge({},d):T.isArray(d)?d.slice():d}function o(u,d,f,h){if(T.isUndefined(d)){if(!T.isUndefined(u))return r(void 0,u,f,h)}else return r(u,d,f,h)}function s(u,d){if(!T.isUndefined(d))return r(void 0,d)}function i(u,d){if(T.isUndefined(d)){if(!T.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function a(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(u,d,f)=>o(fl(u),fl(d),f,!0)};return T.forEach(Object.keys({...e,...t}),function(d){const f=c[d]||o,h=f(e[d],t[d],d);T.isUndefined(h)&&f!==a||(n[d]=h)}),n}var hl=e=>{const t=en({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;if(t.headers=i=mt.from(i),t.url=nl(dl(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),T.isFormData(n)){if($e.hasStandardBrowserEnv||$e.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(T.isFunction(n.getHeaders)){const c=n.getHeaders(),u=["content-type","content-length"];Object.entries(c).forEach(([d,f])=>{u.includes(d.toLowerCase())&&i.set(d,f)})}}if($e.hasStandardBrowserEnv&&(r&&T.isFunction(r)&&(r=r(t)),r||r!==!1&&pf(t.url))){const c=o&&s&&mf.read(s);c&&i.set(o,c)}return t};const vf=typeof XMLHttpRequest<"u";var bf=vf&&function(e){return new Promise(function(n,r){const o=hl(e);let s=o.data;const i=mt.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=o,d,f,h,m,p;function g(){m&&m(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function b(){if(!v)return;const C=mt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),k={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:C,config:e,request:v};ll(function(R){n(R),g()},function(R){r(R),g()},k),v=null}"onloadend"in v?v.onloadend=b:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(b)},v.onabort=function(){v&&(r(new re("Request aborted",re.ECONNABORTED,e,v)),v=null)},v.onerror=function(L){const k=L&&L.message?L.message:"Network Error",E=new re(k,re.ERR_NETWORK,e,v);E.event=L||null,r(E),v=null},v.ontimeout=function(){let L=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const k=o.transitional||ol;o.timeoutErrorMessage&&(L=o.timeoutErrorMessage),r(new re(L,k.clarifyTimeoutError?re.ETIMEDOUT:re.ECONNABORTED,e,v)),v=null},s===void 0&&i.setContentType(null),"setRequestHeader"in v&&T.forEach(i.toJSON(),function(L,k){v.setRequestHeader(k,L)}),T.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),a&&a!=="json"&&(v.responseType=o.responseType),u&&([h,p]=Jr(u,!0),v.addEventListener("progress",h)),c&&v.upload&&([f,m]=Jr(c),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(d=C=>{v&&(r(!C||C.type?new An(null,e,v):C),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const w=df(o.url);if(w&&$e.protocols.indexOf(w)===-1){r(new re("Unsupported protocol "+w+":",re.ERR_BAD_REQUEST,e));return}v.send(s||null)})};const Cf=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(u){if(!o){o=!0,a();const d=u instanceof Error?u:this.reason;r.abort(d instanceof re?d:new An(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,s(new re(`timeout ${t} of ms exceeded`,re.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>T.asap(a),c}};var wf=Cf;const xf=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},kf=async function*(e,t){for await(const n of Lf(e))yield*xf(n,t)},Lf=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()}},pl=(e,t,n,r)=>{const o=kf(e,t);let s=0,i,a=c=>{i||(i=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await o.next();if(u){a(),c.close();return}let f=d.byteLength;if(n){let h=s+=f;n(h)}c.enqueue(new Uint8Array(d))}catch(u){throw a(u),u}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},ml=64*1024,{isFunction:Qr}=T,Ef=(({Request:e,Response:t})=>({Request:e,Response:t}))(T.global),{ReadableStream:gl,TextEncoder:yl}=T.global,vl=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Mf=e=>{e=T.merge.call({skipUndefined:!0},Ef,e);const{fetch:t,Request:n,Response:r}=e,o=t?Qr(t):typeof fetch=="function",s=Qr(n),i=Qr(r);if(!o)return!1;const a=o&&Qr(gl),c=o&&(typeof yl=="function"?(p=>g=>p.encode(g))(new yl):async p=>new Uint8Array(await new n(p).arrayBuffer())),u=s&&a&&vl(()=>{let p=!1;const g=new n($e.origin,{body:new gl,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!g}),d=i&&a&&vl(()=>T.isReadableStream(new r("").body)),f={stream:d&&(p=>p.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!f[p]&&(f[p]=(g,v)=>{let b=g&&g[p];if(b)return b.call(g);throw new re(`Response type '${p}' is not supported`,re.ERR_NOT_SUPPORT,v)})});const h=async p=>{if(p==null)return 0;if(T.isBlob(p))return p.size;if(T.isSpecCompliantForm(p))return(await new n($e.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(T.isArrayBufferView(p)||T.isArrayBuffer(p))return p.byteLength;if(T.isURLSearchParams(p)&&(p=p+""),T.isString(p))return(await c(p)).byteLength},m=async(p,g)=>{const v=T.toFiniteNumber(p.getContentLength());return v??h(g)};return async p=>{let{url:g,method:v,data:b,signal:w,cancelToken:C,timeout:L,onDownloadProgress:k,onUploadProgress:E,responseType:R,headers:P,withCredentials:W="same-origin",fetchOptions:_}=hl(p),B=t||fetch;R=R?(R+"").toLowerCase():"text";let Y=wf([w,C&&C.toAbortSignal()],L),z=null;const A=Y&&Y.unsubscribe&&(()=>{Y.unsubscribe()});let $;try{if(E&&u&&v!=="get"&&v!=="head"&&($=await m(P,b))!==0){let U=new n(g,{method:"POST",body:b,duplex:"half"}),q;if(T.isFormData(b)&&(q=U.headers.get("content-type"))&&P.setContentType(q),U.body){const[I,F]=cl($,Jr(ul(E)));b=pl(U.body,ml,I,F)}}T.isString(W)||(W=W?"include":"omit");const M=s&&"credentials"in n.prototype,D={..._,signal:Y,method:v.toUpperCase(),headers:P.normalize().toJSON(),body:b,duplex:"half",credentials:M?W:void 0};z=s&&new n(g,D);let S=await(s?B(z,_):B(g,D));const O=d&&(R==="stream"||R==="response");if(d&&(k||O&&A)){const U={};["status","statusText","headers"].forEach(H=>{U[H]=S[H]});const q=T.toFiniteNumber(S.headers.get("content-length")),[I,F]=k&&cl(q,Jr(ul(k),!0))||[];S=new r(pl(S.body,ml,I,()=>{F&&F(),A&&A()}),U)}R=R||"text";let V=await f[T.findKey(f,R)||"text"](S,p);return!O&&A&&A(),await new Promise((U,q)=>{ll(U,q,{data:V,headers:mt.from(S.headers),status:S.status,statusText:S.statusText,config:p,request:z})})}catch(M){throw A&&A(),M&&M.name==="TypeError"&&/Load failed|fetch/i.test(M.message)?Object.assign(new re("Network Error",re.ERR_NETWORK,p,z),{cause:M.cause||M}):re.from(M,M&&M.code,p,z)}}},Sf=new Map,bl=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let i=s.length,a=i,c,u,d=Sf;for(;a--;)c=s[a],u=d.get(c),u===void 0&&d.set(c,u=a?new Map:Mf(t)),d=u;return u};bl();const fi={http:j2,xhr:bf,fetch:{get:bl}};T.forEach(fi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Cl=e=>`- ${e}`,Tf=e=>T.isFunction(e)||e===null||e===!1;var wl={getAdapter:(e,t)=>{e=T.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let i=0;i<n;i++){r=e[i];let a;if(o=r,!Tf(r)&&(o=fi[(a=String(r)).toLowerCase()],o===void 0))throw new re(`Unknown adapter '${a}'`);if(o&&(T.isFunction(o)||(o=o.get(t))))break;s[a||"#"+i]=o}if(!o){const i=Object.entries(s).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=n?i.length>1?`since :
|
|
4
|
+
`+i.map(Cl).join(`
|
|
5
|
+
`):" "+Cl(i[0]):"as no adapter specified";throw new re("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:fi};function hi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new An(null,e)}function xl(e){return hi(e),e.headers=mt.from(e.headers),e.data=di.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wl.getAdapter(e.adapter||ci.adapter,e)(e).then(function(r){return hi(e),r.data=di.call(e,e.transformResponse,r),r.headers=mt.from(r.headers),r},function(r){return al(r)||(hi(e),r&&r.response&&(r.response.data=di.call(e,e.transformResponse,r.response),r.response.headers=mt.from(r.response.headers))),Promise.reject(r)})}const kl="1.12.2",eo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{eo[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ll={};eo.transitional=function(t,n,r){function o(s,i){return"[Axios v"+kl+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(t===!1)throw new re(o(i," has been removed"+(n?" in "+n:"")),re.ERR_DEPRECATED);return n&&!Ll[i]&&(Ll[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,a):!0}},eo.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Df(e,t,n){if(typeof e!="object")throw new re("options must be an object",re.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const a=e[s],c=a===void 0||i(a,s,e);if(c!==!0)throw new re("option "+s+" must be "+c,re.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new re("Unknown option "+s,re.ERR_BAD_OPTION)}}var to={assertOptions:Df,validators:eo};const wt=to.validators;class no{constructor(t){this.defaults=t||{},this.interceptors={request:new rl,response:new rl}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
6
|
+
`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=en(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&to.assertOptions(r,{silentJSONParsing:wt.transitional(wt.boolean),forcedJSONParsing:wt.transitional(wt.boolean),clarifyTimeoutError:wt.transitional(wt.boolean)},!1),o!=null&&(T.isFunction(o)?n.paramsSerializer={serialize:o}:to.assertOptions(o,{encode:wt.function,serialize:wt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),to.assertOptions(n,{baseUrl:wt.spelling("baseURL"),withXsrfToken:wt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&T.merge(s.common,s[n.method]);s&&T.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),n.headers=mt.concat(i,s);const a=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(c=c&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let d,f=0,h;if(!c){const p=[xl.bind(this),void 0];for(p.unshift(...a),p.push(...u),h=p.length,d=Promise.resolve(n);f<h;)d=d.then(p[f++],p[f++]);return d}h=a.length;let m=n;for(;f<h;){const p=a[f++],g=a[f++];try{m=p(m)}catch(v){g.call(this,v);break}}try{d=xl.call(this,m)}catch(p){return Promise.reject(p)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=en(this.defaults,t);const n=dl(t.baseURL,t.url,t.allowAbsoluteUrls);return nl(n,t.params,t.paramsSerializer)}}T.forEach(["delete","get","head","options"],function(t){no.prototype[t]=function(n,r){return this.request(en(r||{},{method:t,url:n,data:(r||{}).data}))}}),T.forEach(["post","put","patch"],function(t){function n(r){return function(s,i,a){return this.request(en(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}no.prototype[t]=n(),no.prototype[t+"Form"]=n(!0)});var ro=no;class Pa{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,a){r.reason||(r.reason=new An(s,i,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 Pa(function(o){t=o}),cancel:t}}}var Pf=Pa;function Af(e){return function(n){return e.apply(null,n)}}function Nf(e){return T.isObject(e)&&e.isAxiosError===!0}const pi={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(pi).forEach(([e,t])=>{pi[t]=e});var Rf=pi;function El(e){const t=new ro(e),n=ja(ro.prototype.request,t);return T.extend(n,ro.prototype,t,{allOwnKeys:!0}),T.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return El(en(e,o))},n}const Me=El(ci);Me.Axios=ro,Me.CanceledError=An,Me.CancelToken=Pf,Me.isCancel=al,Me.VERSION=kl,Me.toFormData=Gr,Me.AxiosError=re,Me.Cancel=Me.CanceledError,Me.all=function(t){return Promise.all(t)},Me.spread=Af,Me.isAxiosError=Nf,Me.mergeConfig=en,Me.AxiosHeaders=mt,Me.formToJSON=e=>il(T.isHTMLForm(e)?new FormData(e):e),Me.getAdapter=wl.getAdapter,Me.HttpStatusCode=Rf,Me.default=Me;var Ff=Me,Vf=Ur(Ff);const Ml=e=>{let t;const n=new Set,r=(u,d)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const h=t;t=d??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(m=>m(t,h))}},o=()=>t,a={setState:r,getState:o,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u))},c=t=e(r,o,a);return a},$f=e=>e?Ml(e):Ml,_f=e=>e;function Of(e,t=_f){const n=N.useSyncExternalStore(e.subscribe,N.useCallback(()=>t(e.getState()),[e,t]),N.useCallback(()=>t(e.getInitialState()),[e,t]));return N.useDebugValue(n),n}const Sl=e=>{const t=$f(e),n=r=>Of(t,r);return Object.assign(n,t),n},mi=e=>e?Sl(e):Sl,Tl=mi(e=>({clientKey:"",baseUrl:"",setConfig:(t,n)=>e({clientKey:t,baseUrl:n})})),Dl=import.meta.env?.VITE_METRIFOX_BASE_URL||"https://api.metrifox.com/api/v1",gt=()=>{const{clientKey:e,baseUrl:t}=Tl.getState();if(!e)throw new Error("MetriFox SDK not initialized: Client key is missing. Please call metrifoxInit(clientKey) before using SDK feature(s).");return Vf.create({baseURL:t||Dl,headers:{"x-client-key":e,"Content-Type":"application/json"},timeout:18e4})},Bf=e=>{Tl.getState().setConfig(e.clientKey,e.baseUrl||Dl)};function If(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const jf=e=>{switch(e){case"success":return Uf;case"info":return zf;case"warning":return Zf;case"error":return Kf;default:return null}},Hf=Array(12).fill(0),Wf=({visible:e,className:t})=>N.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},N.createElement("div",{className:"sonner-spinner"},Hf.map((n,r)=>N.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Uf=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Zf=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},N.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),zf=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Kf=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Yf=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},N.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),N.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Gf=()=>{const[e,t]=N.useState(document.hidden);return N.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let gi=1;class qf{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,s=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:gi++,i=this.toasts.find(c=>c.id===s),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(c=>c.id===s?(this.publish({...c,...t,id:s,title:r}),{...c,...t,id:s,dismissible:a,title:r}):c):this.addToast({title:r,...o,dismissible:a,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let s=r!==void 0,i;const a=o.then(async u=>{if(i=["resolve",u],N.isValidElement(u))s=!1,this.create({id:r,type:"default",message:u});else if(Jf(u)&&!u.ok){s=!1;const f=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,p=typeof f=="object"&&!N.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:h,...p})}else if(u instanceof Error){s=!1;const f=typeof n.error=="function"?await n.error(u):n.error,h=typeof n.description=="function"?await n.description(u):n.description,p=typeof f=="object"&&!N.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:h,...p})}else if(n.success!==void 0){s=!1;const f=typeof n.success=="function"?await n.success(u):n.success,h=typeof n.description=="function"?await n.description(u):n.description,p=typeof f=="object"&&!N.isValidElement(f)?f:{message:f};this.create({id:r,type:"success",description:h,...p})}}).catch(async u=>{if(i=["reject",u],n.error!==void 0){s=!1;const d=typeof n.error=="function"?await n.error(u):n.error,f=typeof n.description=="function"?await n.description(u):n.description,m=typeof d=="object"&&!N.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:f,...m})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),c=()=>new Promise((u,d)=>a.then(()=>i[0]==="reject"?d(i[1]):u(i[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:c}:Object.assign(r,{unwrap:c})},this.custom=(t,n)=>{const r=n?.id||gi++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ye=new qf,Xf=(e,t)=>{const n=t?.id||gi++;return Ye.addToast({title:e,...t,id:n}),n},Jf=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Qf=Xf,e3=()=>Ye.toasts,t3=()=>Ye.getActiveToasts(),At=Object.assign(Qf,{success:Ye.success,info:Ye.info,warning:Ye.warning,error:Ye.error,custom:Ye.custom,message:Ye.message,promise:Ye.promise,dismiss:Ye.dismiss,loading:Ye.loading},{getHistory:e3,getToasts:t3});If("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function oo(e){return e.label!==void 0}const n3=3,r3="24px",o3="16px",Pl=4e3,i3=356,s3=14,a3=45,l3=200;function xt(...e){return e.filter(Boolean).join(" ")}function c3(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const u3=e=>{var t,n,r,o,s,i,a,c,u;const{invert:d,toast:f,unstyled:h,interacting:m,setHeights:p,visibleToasts:g,heights:v,index:b,toasts:w,expanded:C,removeToast:L,defaultRichColors:k,closeButton:E,style:R,cancelButtonStyle:P,actionButtonStyle:W,className:_="",descriptionClassName:B="",duration:Y,position:z,gap:A,expandByDefault:$,classNames:M,icons:D,closeButtonAriaLabel:S="Close toast"}=e,[O,V]=N.useState(null),[U,q]=N.useState(null),[I,F]=N.useState(!1),[H,ne]=N.useState(!1),[ie,X]=N.useState(!1),[ce,ae]=N.useState(!1),[pe,ee]=N.useState(!1),[J,Ee]=N.useState(0),[fe,ye]=N.useState(0),we=N.useRef(f.duration||Y||Pl),Je=N.useRef(null),xe=N.useRef(null),dt=b===0,Qo=b+1<=g,Qe=f.type,Ln=f.dismissible!==!1,I0=f.className||"",j0=f.descriptionClassName||"",Ir=N.useMemo(()=>v.findIndex(oe=>oe.toastId===f.id)||0,[v,f.id]),H0=N.useMemo(()=>{var oe;return(oe=f.closeButton)!=null?oe:E},[f.closeButton,E]),Na=N.useMemo(()=>f.duration||Y||Pl,[f.duration,Y]),ei=N.useRef(0),En=N.useRef(0),Ra=N.useRef(0),Mn=N.useRef(null),[W0,U0]=z.split("-"),Fa=N.useMemo(()=>v.reduce((oe,Ae,Ve)=>Ve>=Ir?oe:oe+Ae.height,0),[v,Ir]),Va=Gf(),Z0=f.invert||d,ti=Qe==="loading";En.current=N.useMemo(()=>Ir*A+Fa,[Ir,Fa]),N.useEffect(()=>{we.current=Na},[Na]),N.useEffect(()=>{F(!0)},[]),N.useEffect(()=>{const oe=xe.current;if(oe){const Ae=oe.getBoundingClientRect().height;return ye(Ae),p(Ve=>[{toastId:f.id,height:Ae,position:f.position},...Ve]),()=>p(Ve=>Ve.filter(et=>et.toastId!==f.id))}},[p,f.id]),N.useLayoutEffect(()=>{if(!I)return;const oe=xe.current,Ae=oe.style.height;oe.style.height="auto";const Ve=oe.getBoundingClientRect().height;oe.style.height=Ae,ye(Ve),p(et=>et.find(Re=>Re.toastId===f.id)?et.map(Re=>Re.toastId===f.id?{...Re,height:Ve}:Re):[{toastId:f.id,height:Ve,position:f.position},...et])},[I,f.title,f.description,p,f.id,f.jsx,f.action,f.cancel]);const Ht=N.useCallback(()=>{ne(!0),Ee(En.current),p(oe=>oe.filter(Ae=>Ae.toastId!==f.id)),setTimeout(()=>{L(f)},l3)},[f,L,p,En]);N.useEffect(()=>{if(f.promise&&Qe==="loading"||f.duration===1/0||f.type==="loading")return;let oe;return C||m||Va?(()=>{if(Ra.current<ei.current){const et=new Date().getTime()-ei.current;we.current=we.current-et}Ra.current=new Date().getTime()})():(()=>{we.current!==1/0&&(ei.current=new Date().getTime(),oe=setTimeout(()=>{f.onAutoClose==null||f.onAutoClose.call(f,f),Ht()},we.current))})(),()=>clearTimeout(oe)},[C,m,f,Qe,Va,Ht]),N.useEffect(()=>{f.delete&&(Ht(),f.onDismiss==null||f.onDismiss.call(f,f))},[Ht,f.delete]);function z0(){var oe;if(D?.loading){var Ae;return N.createElement("div",{className:xt(M?.loader,f==null||(Ae=f.classNames)==null?void 0:Ae.loader,"sonner-loader"),"data-visible":Qe==="loading"},D.loading)}return N.createElement(Wf,{className:xt(M?.loader,f==null||(oe=f.classNames)==null?void 0:oe.loader),visible:Qe==="loading"})}const K0=f.icon||D?.[Qe]||jf(Qe);var $a,_a;return N.createElement("li",{tabIndex:0,ref:xe,className:xt(_,I0,M?.toast,f==null||(t=f.classNames)==null?void 0:t.toast,M?.default,M?.[Qe],f==null||(n=f.classNames)==null?void 0:n[Qe]),"data-sonner-toast":"","data-rich-colors":($a=f.richColors)!=null?$a:k,"data-styled":!(f.jsx||f.unstyled||h),"data-mounted":I,"data-promise":!!f.promise,"data-swiped":pe,"data-removed":H,"data-visible":Qo,"data-y-position":W0,"data-x-position":U0,"data-index":b,"data-front":dt,"data-swiping":ie,"data-dismissible":Ln,"data-type":Qe,"data-invert":Z0,"data-swipe-out":ce,"data-swipe-direction":U,"data-expanded":!!(C||$&&I),"data-testid":f.testId,style:{"--index":b,"--toasts-before":b,"--z-index":w.length-b,"--offset":`${H?J:En.current}px`,"--initial-height":$?"auto":`${fe}px`,...R,...f.style},onDragEnd:()=>{X(!1),V(null),Mn.current=null},onPointerDown:oe=>{oe.button!==2&&(ti||!Ln||(Je.current=new Date,Ee(En.current),oe.target.setPointerCapture(oe.pointerId),oe.target.tagName!=="BUTTON"&&(X(!0),Mn.current={x:oe.clientX,y:oe.clientY})))},onPointerUp:()=>{var oe,Ae,Ve;if(ce||!Ln)return;Mn.current=null;const et=Number(((oe=xe.current)==null?void 0:oe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),jr=Number(((Ae=xe.current)==null?void 0:Ae.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Re=new Date().getTime()-((Ve=Je.current)==null?void 0:Ve.getTime()),rt=O==="x"?et:jr,Hr=Math.abs(rt)/Re;if(Math.abs(rt)>=a3||Hr>.11){Ee(En.current),f.onDismiss==null||f.onDismiss.call(f,f),q(O==="x"?et>0?"right":"left":jr>0?"down":"up"),Ht(),ae(!0);return}else{var ft,ht;(ft=xe.current)==null||ft.style.setProperty("--swipe-amount-x","0px"),(ht=xe.current)==null||ht.style.setProperty("--swipe-amount-y","0px")}ee(!1),X(!1),V(null)},onPointerMove:oe=>{var Ae,Ve,et;if(!Mn.current||!Ln||((Ae=window.getSelection())==null?void 0:Ae.toString().length)>0)return;const Re=oe.clientY-Mn.current.y,rt=oe.clientX-Mn.current.x;var Hr;const ft=(Hr=e.swipeDirections)!=null?Hr:c3(z);!O&&(Math.abs(rt)>1||Math.abs(Re)>1)&&V(Math.abs(rt)>Math.abs(Re)?"x":"y");let ht={x:0,y:0};const Oa=Xt=>1/(1.5+Math.abs(Xt)/20);if(O==="y"){if(ft.includes("top")||ft.includes("bottom"))if(ft.includes("top")&&Re<0||ft.includes("bottom")&&Re>0)ht.y=Re;else{const Xt=Re*Oa(Re);ht.y=Math.abs(Xt)<Math.abs(Re)?Xt:Re}}else if(O==="x"&&(ft.includes("left")||ft.includes("right")))if(ft.includes("left")&&rt<0||ft.includes("right")&&rt>0)ht.x=rt;else{const Xt=rt*Oa(rt);ht.x=Math.abs(Xt)<Math.abs(rt)?Xt:rt}(Math.abs(ht.x)>0||Math.abs(ht.y)>0)&&ee(!0),(Ve=xe.current)==null||Ve.style.setProperty("--swipe-amount-x",`${ht.x}px`),(et=xe.current)==null||et.style.setProperty("--swipe-amount-y",`${ht.y}px`)}},H0&&!f.jsx&&Qe!=="loading"?N.createElement("button",{"aria-label":S,"data-disabled":ti,"data-close-button":!0,onClick:ti||!Ln?()=>{}:()=>{Ht(),f.onDismiss==null||f.onDismiss.call(f,f)},className:xt(M?.closeButton,f==null||(r=f.classNames)==null?void 0:r.closeButton)},(_a=D?.close)!=null?_a:Yf):null,(Qe||f.icon||f.promise)&&f.icon!==null&&(D?.[Qe]!==null||f.icon)?N.createElement("div",{"data-icon":"",className:xt(M?.icon,f==null||(o=f.classNames)==null?void 0:o.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||z0():null,f.type!=="loading"?K0:null):null,N.createElement("div",{"data-content":"",className:xt(M?.content,f==null||(s=f.classNames)==null?void 0:s.content)},N.createElement("div",{"data-title":"",className:xt(M?.title,f==null||(i=f.classNames)==null?void 0:i.title)},f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title),f.description?N.createElement("div",{"data-description":"",className:xt(B,j0,M?.description,f==null||(a=f.classNames)==null?void 0:a.description)},typeof f.description=="function"?f.description():f.description):null),N.isValidElement(f.cancel)?f.cancel:f.cancel&&oo(f.cancel)?N.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||P,onClick:oe=>{oo(f.cancel)&&Ln&&(f.cancel.onClick==null||f.cancel.onClick.call(f.cancel,oe),Ht())},className:xt(M?.cancelButton,f==null||(c=f.classNames)==null?void 0:c.cancelButton)},f.cancel.label):null,N.isValidElement(f.action)?f.action:f.action&&oo(f.action)?N.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||W,onClick:oe=>{oo(f.action)&&(f.action.onClick==null||f.action.onClick.call(f.action,oe),!oe.defaultPrevented&&Ht())},className:xt(M?.actionButton,f==null||(u=f.classNames)==null?void 0:u.actionButton)},f.action.label):null)};function Al(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function d3(e,t){const n={};return[e,t].forEach((r,o)=>{const s=o===1,i=s?"--mobile-offset":"--offset",a=s?o3:r3;function c(u){["top","right","bottom","left"].forEach(d=>{n[`${i}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=a:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):c(a)}),n}const f3=N.forwardRef(function(t,n){const{id:r,invert:o,position:s="bottom-right",hotkey:i=["altKey","KeyT"],expand:a,closeButton:c,className:u,offset:d,mobileOffset:f,theme:h="light",richColors:m,duration:p,style:g,visibleToasts:v=n3,toastOptions:b,dir:w=Al(),gap:C=s3,icons:L,containerAriaLabel:k="Notifications"}=t,[E,R]=N.useState([]),P=N.useMemo(()=>r?E.filter(I=>I.toasterId===r):E.filter(I=>!I.toasterId),[E,r]),W=N.useMemo(()=>Array.from(new Set([s].concat(P.filter(I=>I.position).map(I=>I.position)))),[P,s]),[_,B]=N.useState([]),[Y,z]=N.useState(!1),[A,$]=N.useState(!1),[M,D]=N.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),S=N.useRef(null),O=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),V=N.useRef(null),U=N.useRef(!1),q=N.useCallback(I=>{R(F=>{var H;return(H=F.find(ne=>ne.id===I.id))!=null&&H.delete||Ye.dismiss(I.id),F.filter(({id:ne})=>ne!==I.id)})},[]);return N.useEffect(()=>Ye.subscribe(I=>{if(I.dismiss){requestAnimationFrame(()=>{R(F=>F.map(H=>H.id===I.id?{...H,delete:!0}:H))});return}setTimeout(()=>{e2.flushSync(()=>{R(F=>{const H=F.findIndex(ne=>ne.id===I.id);return H!==-1?[...F.slice(0,H),{...F[H],...I},...F.slice(H+1)]:[I,...F]})})})}),[E]),N.useEffect(()=>{if(h!=="system"){D(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?D("dark"):D("light")),typeof window>"u")return;const I=window.matchMedia("(prefers-color-scheme: dark)");try{I.addEventListener("change",({matches:F})=>{D(F?"dark":"light")})}catch{I.addListener(({matches:H})=>{try{D(H?"dark":"light")}catch(ne){console.error(ne)}})}},[h]),N.useEffect(()=>{E.length<=1&&z(!1)},[E]),N.useEffect(()=>{const I=F=>{var H;if(i.every(X=>F[X]||F.code===X)){var ie;z(!0),(ie=S.current)==null||ie.focus()}F.code==="Escape"&&(document.activeElement===S.current||(H=S.current)!=null&&H.contains(document.activeElement))&&z(!1)};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[i]),N.useEffect(()=>{if(S.current)return()=>{V.current&&(V.current.focus({preventScroll:!0}),V.current=null,U.current=!1)}},[S.current]),N.createElement("section",{ref:n,"aria-label":`${k} ${O}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},W.map((I,F)=>{var H;const[ne,ie]=I.split("-");return P.length?N.createElement("ol",{key:I,dir:w==="auto"?Al():w,tabIndex:-1,ref:S,className:u,"data-sonner-toaster":!0,"data-sonner-theme":M,"data-y-position":ne,"data-x-position":ie,style:{"--front-toast-height":`${((H=_[0])==null?void 0:H.height)||0}px`,"--width":`${i3}px`,"--gap":`${C}px`,...g,...d3(d,f)},onBlur:X=>{U.current&&!X.currentTarget.contains(X.relatedTarget)&&(U.current=!1,V.current&&(V.current.focus({preventScroll:!0}),V.current=null))},onFocus:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||U.current||(U.current=!0,V.current=X.relatedTarget)},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{A||z(!1)},onDragEnd:()=>z(!1),onPointerDown:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||$(!0)},onPointerUp:()=>$(!1)},P.filter(X=>!X.position&&F===0||X.position===I).map((X,ce)=>{var ae,pe;return N.createElement(u3,{key:X.id,icons:L,index:ce,toast:X,defaultRichColors:m,duration:(ae=b?.duration)!=null?ae:p,className:b?.className,descriptionClassName:b?.descriptionClassName,invert:o,visibleToasts:v,closeButton:(pe=b?.closeButton)!=null?pe:c,interacting:A,position:I,style:b?.style,unstyled:b?.unstyled,classNames:b?.classNames,cancelButtonStyle:b?.cancelButtonStyle,actionButtonStyle:b?.actionButtonStyle,closeButtonAriaLabel:b?.closeButtonAriaLabel,removeToast:q,toasts:P.filter(ee=>ee.position==X.position),heights:_.filter(ee=>ee.position==X.position),setHeights:B,expandByDefault:a,gap:C,expanded:Y,swipeDirections:t.swipeDirections})})):null}))}),h3=({children:e})=>y(Sn,{children:[l(f3,{className:"backdrop-blur-md",toastOptions:{unstyled:!0,classNames:{title:"text-md font-500",description:"text-sm font-400",error:"flex items-center gap-1 bg-red-500 text-metrifox-white rounded-lg p-2",success:"flex items-center gap-1 bg-green-600 text-metrifox-white rounded-lg p-2",warning:"flex items-center gap-1 bg-amber-500 text-metrifox-white rounded-lg p-2",info:"flex items-center gap-1 bg-secondary-light text-metrifox-black rounded-lg p-2"}}}),e]}),x=({children:e,className:t="",...n})=>l("div",{className:t,...n,children:e}),Nl=typeof document<"u"?N.useLayoutEffect:()=>{};var yi;const p3=(yi=N.useInsertionEffect)!==null&&yi!==void 0?yi:Nl;function m3(e){const t=se(null);return p3(()=>{t.current=e},[e]),ue((...n)=>{const r=t.current;return r?.(...n)},[])}const Wt=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},tn=e=>e&&"window"in e&&e.window===e?e:Wt(e).defaultView||window;function g3(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function y3(e){return g3(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let v3=!1;function vi(){return v3}function Rl(e,t){if(!vi())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:y3(n)?n=n.host:n=n.parentNode}return!1}const bi=(e=document)=>{var t;if(!vi())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function Fl(e){return vi()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function io(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function Ci(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Nt(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const wi=Nt(function(){return Ci(/^Mac/i)}),b3=Nt(function(){return Ci(/^iPhone/i)}),C3=Nt(function(){return Ci(/^iPad/i)||wi()&&navigator.maxTouchPoints>1}),w3=Nt(function(){return b3()||C3()});Nt(function(){return wi()||w3()}),Nt(function(){return io(/AppleWebKit/i)&&!x3()});const x3=Nt(function(){return io(/Chrome/i)}),k3=Nt(function(){return io(/Android/i)});Nt(function(){return io(/Firefox/i)});function Vl(){let e=se(new Map),t=ue((o,s,i,a)=>{let c=a?.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:s,eventTarget:o,fn:c,options:a}),o.addEventListener(s,c,a)},[]),n=ue((o,s,i,a)=>{var c;let u=((c=e.current.get(i))===null||c===void 0?void 0:c.fn)||i;o.removeEventListener(s,u,a),e.current.delete(i)},[]),r=ue(()=>{e.current.forEach((o,s)=>{n(o.eventTarget,o.type,s,o.options)})},[n]);return te(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function L3(e){return e.pointerType===""&&e.isTrusted?!0:k3()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function $l(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function E3(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function _l(e){let t=se({isFocused:!1,observer:null});Nl(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=m3(r=>{e?.(r)});return ue(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,s=i=>{if(t.current.isFocused=!1,o.disabled){let a=$l(i);n(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let M3=!1,ar=null,xi=new Set,lr=new Map,nn=!1,ki=!1;const S3={Tab:!0,Escape:!0};function Li(e,t){for(let n of xi)n(e,t)}function T3(e){return!(e.metaKey||!wi()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function so(e){nn=!0,T3(e)&&(ar="keyboard",Li("keyboard",e))}function ot(e){ar="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(nn=!0,Li("pointer",e))}function Ol(e){L3(e)&&(nn=!0,ar="virtual")}function Bl(e){e.target===window||e.target===document||M3||!e.isTrusted||(!nn&&!ki&&(ar="virtual",Li("virtual",e)),nn=!1,ki=!1)}function Il(){nn=!1,ki=!0}function Ei(e){if(typeof window>"u"||typeof document>"u"||lr.get(tn(e)))return;const t=tn(e),n=Wt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){nn=!0,r.apply(this,arguments)},n.addEventListener("keydown",so,!0),n.addEventListener("keyup",so,!0),n.addEventListener("click",Ol,!0),t.addEventListener("focus",Bl,!0),t.addEventListener("blur",Il,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ot,!0),n.addEventListener("pointermove",ot,!0),n.addEventListener("pointerup",ot,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",ot,!0),n.addEventListener("mousemove",ot,!0),n.addEventListener("mouseup",ot,!0)),t.addEventListener("beforeunload",()=>{jl(e)},{once:!0}),lr.set(t,{focus:r})}const jl=(e,t)=>{const n=tn(e),r=Wt(e);t&&r.removeEventListener("DOMContentLoaded",t),lr.has(n)&&(n.HTMLElement.prototype.focus=lr.get(n).focus,r.removeEventListener("keydown",so,!0),r.removeEventListener("keyup",so,!0),r.removeEventListener("click",Ol,!0),n.removeEventListener("focus",Bl,!0),n.removeEventListener("blur",Il,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ot,!0),r.removeEventListener("pointermove",ot,!0),r.removeEventListener("pointerup",ot,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",ot,!0),r.removeEventListener("mousemove",ot,!0),r.removeEventListener("mouseup",ot,!0)),lr.delete(n))};function D3(e){const t=Wt(e);let n;return t.readyState!=="loading"?Ei(e):(n=()=>{Ei(e)},t.addEventListener("DOMContentLoaded",n)),()=>jl(e,n)}typeof document<"u"&&D3();function Hl(){return ar!=="pointer"}const P3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function A3(e,t,n){let r=Wt(n?.target);const o=typeof window<"u"?tn(n?.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?tn(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?tn(n?.target).HTMLElement:HTMLElement,a=typeof window<"u"?tn(n?.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!P3.has(r.activeElement.type)||r.activeElement instanceof s||r.activeElement instanceof i&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!S3[n.key])}function N3(e,t,n){Ei(),te(()=>{let r=(o,s)=>{A3(!!n?.isTextInput,o,s)&&e(Hl())};return xi.add(r),()=>{xi.delete(r)}},t)}function R3(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const s=ue(c=>{if(c.target===c.currentTarget)return r&&r(c),o&&o(!1),!0},[r,o]),i=_l(s),a=ue(c=>{const u=Wt(c.target),d=u?bi(u):bi();c.target===c.currentTarget&&d===Fl(c.nativeEvent)&&(n&&n(c),o&&o(!0),i(c))},[o,n,i]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?s:void 0}}}function F3(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,s=se({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:a}=Vl(),c=ue(f=>{f.currentTarget.contains(f.target)&&s.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(s.current.isFocusWithin=!1,a(),n&&n(f),o&&o(!1))},[n,o,s,a]),u=_l(c),d=ue(f=>{if(!f.currentTarget.contains(f.target))return;const h=Wt(f.target),m=bi(h);if(!s.current.isFocusWithin&&m===Fl(f.nativeEvent)){r&&r(f),o&&o(!0),s.current.isFocusWithin=!0,u(f);let p=f.currentTarget;i(h,"focus",g=>{if(s.current.isFocusWithin&&!Rl(p,g.target)){let v=new h.defaultView.FocusEvent("blur",{relatedTarget:g.target});E3(v,p);let b=$l(v);c(b)}},{capture:!0})}},[r,o,u,i,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:c}}}let ao=!1,lo=0;function Mi(){ao=!0,setTimeout(()=>{ao=!1},50)}function Wl(e){e.pointerType==="touch"&&Mi()}function V3(){if(!(typeof document>"u"))return lo===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Wl):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Mi)),lo++,()=>{lo--,!(lo>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Wl):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Mi))}}function Ul(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[s,i]=K(!1),a=se({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;te(V3,[]);let{addGlobalListener:c,removeAllGlobalListeners:u}=Vl(),{hoverProps:d,triggerHoverEnd:f}=ve(()=>{let h=(g,v)=>{if(a.pointerType=v,o||v==="touch"||a.isHovered||!g.currentTarget.contains(g.target))return;a.isHovered=!0;let b=g.currentTarget;a.target=b,c(Wt(g.target),"pointerover",w=>{a.isHovered&&a.target&&!Rl(a.target,w.target)&&m(w,w.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:b,pointerType:v}),n&&n(!0),i(!0)},m=(g,v)=>{let b=a.target;a.pointerType="",a.target=null,!(v==="touch"||!a.isHovered||!b)&&(a.isHovered=!1,u(),r&&r({type:"hoverend",target:b,pointerType:v}),n&&n(!1),i(!1))},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=g=>{ao&&g.pointerType==="mouse"||h(g,g.pointerType)},p.onPointerLeave=g=>{!o&&g.currentTarget.contains(g.target)&&m(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(p.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=g=>{!a.ignoreEmulatedMouseEvents&&!ao&&h(g,"mouse"),a.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=g=>{!o&&g.currentTarget.contains(g.target)&&m(g,"mouse")}),{hoverProps:p,triggerHoverEnd:m}},[t,n,r,o,a,c,u]);return te(()=>{o&&f({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:d,isHovered:s}}function Si(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=se({isFocused:!1,isFocusVisible:t||Hl()}),[s,i]=K(!1),[a,c]=K(()=>o.current.isFocused&&o.current.isFocusVisible),u=ue(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),d=ue(m=>{o.current.isFocused=m,i(m),u()},[u]);N3(m=>{o.current.isFocusVisible=m,u()},[],{isTextInput:n});let{focusProps:f}=R3({isDisabled:r,onFocusChange:d}),{focusWithinProps:h}=F3({isDisabled:!r,onFocusWithinChange:d});return{isFocused:s,isFocusVisible:a,focusProps:r?h:f}}var $3=Object.defineProperty,_3=(e,t,n)=>t in e?$3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ti=(e,t,n)=>(_3(e,typeof t!="symbol"?t+"":t,n),n);let O3=class{constructor(){Ti(this,"current",this.detect()),Ti(this,"handoffState","pending"),Ti(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},rn=new O3;function Nn(e){var t;return rn.isServer?null:e==null?document:(t=e?.ownerDocument)!=null?t:document}function on(e){var t,n;return rn.isServer?null:e==null?document:(n=(t=e?.getRootNode)==null?void 0:t.call(e))!=null?n:document}function sn(e){var t,n;return(n=(t=on(e))==null?void 0:t.activeElement)!=null?n:null}function Di(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Rt(){let e=[],t={addEventListener(n,r,o,s){return n.addEventListener(r,o,s),t.add(()=>n.removeEventListener(r,o,s))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Di(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let s=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:s})})},group(n){let r=Rt();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function co(){let[e]=K(Rt);return te(()=>()=>e.dispose(),[e]),e}let je=(e,t)=>{rn.isServer?te(e,t):Tn(e,t)};function it(e){let t=se(e);return je(()=>{t.current=e},[e]),t}let le=function(e){let t=it(e);return N.useCallback((...n)=>t.current(...n),[t])};function B3(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function I3(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function Zl({disabled:e=!1}={}){let t=se(null),[n,r]=K(!1),o=co(),s=le(()=>{t.current=null,r(!1),o.dispose()}),i=le(a=>{if(o.dispose(),t.current===null){t.current=a.currentTarget,r(!0);{let c=Nn(a.currentTarget);o.addEventListener(c,"pointerup",s,!1),o.addEventListener(c,"pointermove",u=>{if(t.current){let d=B3(u);r(I3(d,t.current.getBoundingClientRect()))}},!1),o.addEventListener(c,"pointercancel",s,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:i,onPointerUp:s,onClick:s}}}function kt(e){return ve(()=>e,Object.values(e))}function zl(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function He(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,He),r}var an=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(an||{}),j3=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(j3||{});function Ge(){let e=W3();return ue(t=>H3({mergeRefs:e,...t}),[e])}function H3({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:s=!0,name:i,mergeRefs:a}){a=a??U3;let c=Kl(t,e);if(s)return uo(c,n,r,i,a);let u=o??0;if(u&2){let{static:d=!1,...f}=c;if(d)return uo(f,n,r,i,a)}if(u&1){let{unmount:d=!0,...f}=c;return He(d?0:1,{0(){return null},1(){return uo({...f,hidden:!0,style:{display:"none"}},n,r,i,a)}})}return uo(c,n,r,i,a)}function uo(e,t={},n,r,o){let{as:s=n,children:i,refName:a="ref",...c}=Pi(e,["unmount","static"]),u=e.ref!==void 0?{[a]:e.ref}:{},d=typeof i=="function"?i(t):i;"className"in c&&c.className&&typeof c.className=="function"&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let f={};if(t){let h=!1,m=[];for(let[p,g]of Object.entries(t))typeof g=="boolean"&&(h=!0),g===!0&&m.push(p.replace(/([A-Z])/g,v=>`-${v.toLowerCase()}`));if(h){f["data-headlessui-state"]=m.join(" ");for(let p of m)f[`data-${p}`]=""}}if(fo(s)&&(Object.keys(Rn(c)).length>0||Object.keys(Rn(f)).length>0))if(!Y0(d)||Array.isArray(d)&&d.length>1||z3(d)){if(Object.keys(Rn(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Rn(c)).concat(Object.keys(Rn(f))).map(h=>` - ${h}`).join(`
|
|
7
7
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(h=>` - ${h}`).join(`
|
|
8
8
|
`)].join(`
|
|
9
|
-
`))}else{let h=d.props,m=h?.className,p=typeof m=="function"?(...
|
|
9
|
+
`))}else{let h=d.props,m=h?.className,p=typeof m=="function"?(...b)=>zl(m(...b),c.className):zl(m,c.className),g=p?{className:p}:{},v=Kl(d.props,Rn(Pi(c,["ref"])));for(let b in f)b in v&&delete f[b];return G0(d,Object.assign({},v,f,u,{ref:o(Z3(d),u.ref)},g))}return Ia(s,Object.assign({},Pi(c,["ref"]),!fo(s)&&u,!fo(s)&&f),d)}function W3(){let e=se([]),t=ue(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function U3(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function Kl(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[o=>{var s;return(s=o?.preventDefault)==null?void 0:s.call(o)}]);for(let r in n)Object.assign(t,{[r](o,...s){let i=n[r];for(let a of i){if((o instanceof Event||o?.nativeEvent instanceof Event)&&o.defaultPrevented)return;a(o,...s)}}});return t}function cr(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];for(let r in n)Object.assign(t,{[r](...o){let s=n[r];for(let i of s)i?.(...o)}});return t}function We(e){var t;return Object.assign(Ba(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Rn(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Pi(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Z3(e){return N.version.split(".")[0]>="19"?e.props.ref:e.ref}function fo(e){return e===Sn||e===Symbol.for("react.fragment")}function z3(e){return fo(e.type)}let K3="span";var Fn=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Fn||{});function Y3(e,t){var n;let{features:r=1,...o}=e,s={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Ge()({ourProps:s,theirProps:o,slot:{},defaultTag:K3,name:"Hidden"})}let Vn=We(Y3);function G3(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function ln(e){return G3(e)&&"tagName"in e}function Ft(e){return ln(e)&&"accessKey"in e}function $n(e){return ln(e)&&"tabIndex"in e}function q3(e){return ln(e)&&"style"in e}function X3(e){return Ft(e)&&e.nodeName==="IFRAME"}function J3(e){return Ft(e)&&e.nodeName==="INPUT"}function Q3(e){return Ft(e)&&e.nodeName==="FIELDSET"}function Yl(e){return Ft(e)&&e.nodeName==="LEGEND"}function Gl(e){let t=e.parentElement,n=null;for(;t&&!Q3(t);)Yl(t)&&(n=t),t=t.parentElement;let r=t?.getAttribute("disabled")==="";return r&&eh(n)?!1:r}function eh(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(Yl(t))return!1;t=t.previousElementSibling}return!0}let ql=Symbol();function Xl(e,t=!0){return Object.assign(e,{[ql]:t})}function qe(...e){let t=se(e);te(()=>{t.current=e},[e]);let n=le(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||r?.[ql])?void 0:n}var Ne=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ne||{});let th=De(()=>{});function Jl({value:e,children:t}){return N.createElement(th.Provider,{value:e},t)}function Ql(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function nh(e,t,n=!1){let[r,o]=K(()=>Ql(t));return je(()=>{if(!t||!e)return;let s=Rt();return s.requestAnimationFrame(function i(){s.requestAnimationFrame(i),o(a=>{let c=Ql(t);return c.width===a.width&&c.height===a.height?a:c})}),()=>{s.dispose()}},[t,e]),n?{width:`${r.width}px`,height:`${r.height}px`}:r}let ec=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};var rh=Object.defineProperty,oh=(e,t,n)=>t in e?rh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ih=(e,t,n)=>(oh(e,t+"",n),n),tc=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},st=(e,t,n)=>(tc(e,t,"read from private field"),n?n.call(e):t.get(e)),Ai=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},nc=(e,t,n,r)=>(tc(e,t,"write to private field"),t.set(e,n),n),Lt,ur,dr;let rc=class{constructor(t){Ai(this,Lt,{}),Ai(this,ur,new ec(()=>new Set)),Ai(this,dr,new Set),ih(this,"disposables",Rt()),nc(this,Lt,t),rn.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return st(this,Lt)}subscribe(t,n){if(rn.isServer)return()=>{};let r={selector:t,callback:n,current:t(st(this,Lt))};return st(this,dr).add(r),this.disposables.add(()=>{st(this,dr).delete(r)})}on(t,n){return rn.isServer?()=>{}:(st(this,ur).get(t).add(n),this.disposables.add(()=>{st(this,ur).get(t).delete(n)}))}send(t){let n=this.reduce(st(this,Lt),t);if(n!==st(this,Lt)){nc(this,Lt,n);for(let r of st(this,dr)){let o=r.selector(st(this,Lt));oc(r.current,o)||(r.current=o,r.callback(o))}for(let r of st(this,ur).get(t.type))r(st(this,Lt),t)}}};Lt=new WeakMap,ur=new WeakMap,dr=new WeakMap;function oc(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:Ni(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size!==t.size?!1:Ni(e.entries(),t.entries()):ic(e)&&ic(t)?Ni(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function Ni(e,t){do{let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}while(!0)}function ic(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}var sh=Object.defineProperty,ah=(e,t,n)=>t in e?sh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sc=(e,t,n)=>(ah(e,typeof t!="symbol"?t+"":t,n),n),lh=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(lh||{});let ch={0(e,t){let n=t.id,r=e.stack,o=e.stack.indexOf(n);if(o!==-1){let s=e.stack.slice();return s.splice(o,1),s.push(n),r=s,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(r===-1)return e;let o=e.stack.slice();return o.splice(r,1),{...e,stack:o}}},uh=class B0 extends rc{constructor(){super(...arguments),sc(this,"actions",{push:t=>this.send({type:0,id:t}),pop:t=>this.send({type:1,id:t})}),sc(this,"selectors",{isTop:(t,n)=>t.stack[t.stack.length-1]===n,inStack:(t,n)=>t.stack.includes(n)})}static new(){return new B0({stack:[]})}reduce(t,n){return He(n.type,ch,t,n)}};const ac=new ec(()=>uh.new());var Ri={exports:{}},Fi={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* use-sync-external-store-with-selector.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ import*as G from"react";import R,{Fragment as Jt,useRef as se,useCallback as ue,
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var lc;function dh(){if(lc)return Fi;lc=1;var e=N;function t(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,o=e.useRef,s=e.useEffect,i=e.useMemo,a=e.useDebugValue;return Fi.useSyncExternalStoreWithSelector=function(c,u,d,f,h){var m=o(null);if(m.current===null){var p={hasValue:!1,value:null};m.current=p}else p=m.current;m=i(function(){function v(k){if(!b){if(b=!0,w=k,k=f(k),h!==void 0&&p.hasValue){var E=p.value;if(h(E,k))return C=E}return C=k}if(E=C,n(w,k))return E;var R=f(k);return h!==void 0&&h(E,R)?(w=k,E):(w=k,C=R)}var b=!1,w,C,L=d===void 0?null:d;return[function(){return v(u())},L===null?void 0:function(){return v(L())}]},[u,d,f,h]);var g=r(c,m[0],m[1]);return s(function(){p.hasValue=!0,p.value=g},[g]),a(g),g},Fi}var Vi={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* use-sync-external-store-with-selector.development.js
|
|
20
20
|
*
|
|
@@ -22,8 +22,8 @@ import*as G from"react";import R,{Fragment as Jt,useRef as se,useCallback as ue,
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var ac;function lh(){return ac||(ac=1,process.env.NODE_ENV!=="production"&&function(){function e(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=R,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,o=t.useRef,i=t.useEffect,s=t.useMemo,a=t.useDebugValue;Fi.useSyncExternalStoreWithSelector=function(c,u,d,f,h){var m=o(null);if(m.current===null){var p={hasValue:!1,value:null};m.current=p}else p=m.current;m=s(function(){function v(x){if(!w){if(w=!0,C=x,x=f(x),h!==void 0&&p.hasValue){var E=p.value;if(h(E,x))return b=E}return b=x}if(E=b,n(C,x))return E;var D=f(x);return h!==void 0&&h(E,D)?(C=x,E):(C=x,b=D)}var w=!1,C,b,L=d===void 0?null:d;return[function(){return v(u())},L===null?void 0:function(){return v(L())}]},[u,d,f,h]);var y=r(c,m[0],m[1]);return i(function(){p.hasValue=!0,p.value=y},[y]),a(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Fi}process.env.NODE_ENV==="production"?Ni.exports=ah():Ni.exports=lh();var ch=Ni.exports;function un(e,t,n=nc){return ch.useSyncExternalStoreWithSelector(ce(r=>e.subscribe(uh,r)),ce(()=>e.state),ce(()=>e.state),ce(t),n)}function uh(e){return e}function dh(e,t){let n=Pt(),r=ic.get(t),[o,i]=un(r,ue(s=>[r.selectors.isTop(s,n),r.selectors.inStack(s,n)],[r,n]));return Ie(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),e?i?o:!0:!1}function fh(e,t,n){let r=it(o=>{let i=o.getBoundingClientRect();i.x===0&&i.y===0&&i.width===0&&i.height===0&&n()});te(()=>{if(!e)return;let o=t===null?null:Ft(t)?t:t.current;if(!o)return;let i=Rt();if(typeof ResizeObserver<"u"){let s=new ResizeObserver(()=>r.current(o));s.observe(o),i.add(()=>s.disconnect())}if(typeof IntersectionObserver<"u"){let s=new IntersectionObserver(()=>r.current(o));s.observe(o),i.add(()=>s.disconnect())}return()=>i.dispose()},[t,r,e])}let Vi=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),hh=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Pe=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(Pe||{}),Ut=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ut||{}),ph=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(ph||{});function ho(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Vi)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function mh(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(hh)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var $i=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))($i||{});function lc(e,t=0){var n;return e===((n=Nn(e))==null?void 0:n.body)?!1:je(t,{0(){return e.matches(Vi)},1(){let r=e;for(;r!==null;){if(r.matches(Vi))return!0;r=r.parentElement}return!1}})}var gh=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(gh||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let yh=["textarea","input"].join(",");function vh(e){var t,n;return(n=(t=e?.matches)==null?void 0:t.call(e,yh))!=null?n:!1}function On(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let s=o.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function tt(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?sn(e[0]):document:sn(e),s=Array.isArray(e)?n?On(e):e:t&64?mh(e):ho(e);o.length>0&&s.length>1&&(s=s.filter(m=>!o.some(p=>p!=null&&"current"in p?p?.current===m:p===m))),r=r??i?.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(r))-1;if(t&4)return Math.max(0,s.indexOf(r))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},d=0,f=s.length,h;do{if(d>=f||d+f<=0)return 0;let m=c+d;if(t&16)m=(m+f)%f;else{if(m<0)return 3;if(m>=f)return 1}h=s[m],h?.focus(u),d+=a}while(h!==an(h));return t&6&&vh(h)&&h.select(),2}function cc(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function bh(){return/Android/gi.test(window.navigator.userAgent)}function uc(){return cc()||bh()}function po(e,t,n,r){let o=it(n);te(()=>{if(!e)return;function i(s){o.current(s)}return document.addEventListener(t,i,r),()=>document.removeEventListener(t,i,r)},[e,t,r])}function dc(e,t,n,r){let o=it(n);te(()=>{if(!e)return;function i(s){o.current(s)}return window.addEventListener(t,i,r),()=>window.removeEventListener(t,i,r)},[e,t,r])}const fc=30;function wh(e,t,n){let r=it(n),o=ue(function(a,c){if(a.defaultPrevented)return;let u=c(a);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let d=function f(h){return typeof h=="function"?f(h()):Array.isArray(h)||h instanceof Set?h:[h]}(t);for(let f of d)if(f!==null&&(f.contains(u)||a.composed&&a.composedPath().includes(f)))return;return!lc(u,$i.Loose)&&u.tabIndex!==-1&&a.preventDefault(),r.current(a,u)},[r,t]),i=se(null);po(e,"pointerdown",a=>{var c,u;uc()||(i.current=((u=(c=a.composedPath)==null?void 0:c.call(a))==null?void 0:u[0])||a.target)},!0),po(e,"pointerup",a=>{if(uc()||!i.current)return;let c=i.current;return i.current=null,o(a,()=>c)},!0);let s=se({x:0,y:0});po(e,"touchstart",a=>{s.current.x=a.touches[0].clientX,s.current.y=a.touches[0].clientY},!0),po(e,"touchend",a=>{let c={x:a.changedTouches[0].clientX,y:a.changedTouches[0].clientY};if(!(Math.abs(c.x-s.current.x)>=fc||Math.abs(c.y-s.current.y)>=fc))return o(a,()=>$n(a.target)?a.target:null)},!0),dc(e,"blur",a=>o(a,()=>K3(window.document.activeElement)?window.document.activeElement:null),!0)}function Oi(...e){return ve(()=>Nn(...e),[...e])}function Ch(...e){return ve(()=>sn(...e),[...e])}function xh(e,t,n,r){let o=it(n);te(()=>{e=e??window;function i(s){o.current(s)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function hc(e,t){return ve(()=>{var n;if(e.type)return e.type;let r=(n=e.as)!=null?n:"button";if(typeof r=="string"&&r.toLowerCase()==="button"||t?.tagName==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function kh(e){return z0(e.subscribe,e.getSnapshot,e.getSnapshot)}function Lh(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let s=t[o].call(n,...i);s&&(n=s,r.forEach(a=>a()))}}}function Eh(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=(n=t.defaultView)!=null?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function Mh(){return cc()?{before({doc:e,d:t,meta:n}){function r(o){for(let i of n().containers)for(let s of i())if(s.contains(o))return!0;return!1}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=Rt();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,s=null;t.addEventListener(e,"click",a=>{if($n(a.target))try{let c=a.target.closest("a");if(!c)return;let{hash:u}=new URL(c.href),d=e.querySelector(u);$n(d)&&!r(d)&&(s=d)}catch{}},!0),t.group(a=>{t.addEventListener(e,"touchstart",c=>{if(a.dispose(),$n(c.target)&&z3(c.target))if(r(c.target)){let u=c.target;for(;u.parentElement&&r(u.parentElement);)u=u.parentElement;a.style(u,"overscrollBehavior","contain")}else a.style(c.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",a=>{if($n(a.target)){if(Y3(a.target))return;if(r(a.target)){let c=a.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let c=(a=window.scrollY)!=null?a:window.pageYOffset;i!==c&&window.scrollTo(0,i),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function Sh(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function pc(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let dn=Lh(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Rt(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=pc(r.meta),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=pc(n.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta(){return e.computedMeta}},n=[Mh(),Eh(),Sh()];n.forEach(({before:r})=>r?.(t)),n.forEach(({after:r})=>r?.(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});dn.subscribe(()=>{let e=dn.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&dn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&dn.dispatch("TEARDOWN",n)}});function Th(e,t,n=()=>({containers:[]})){let r=kh(dn),o=t?r.get(t):void 0,i=o?o.count>0:!1;return Ie(()=>{if(!(!t||!e))return dn.dispatch("PUSH",t,n),()=>dn.dispatch("POP",t,n)},[e,t]),i}function Dh(e,t,n=()=>[document.body]){let r=dh(e,"scroll-lock");Th(r,t,o=>{var i;return{containers:[...(i=o.containers)!=null?i:[],n]}})}function Ph(e=0){let[t,n]=K(e),r=ue(c=>n(c),[]),o=ue(c=>n(u=>u|c),[]),i=ue(c=>(t&c)===c,[t]),s=ue(c=>n(u=>u&~c),[]),a=ue(c=>n(u=>u^c),[]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}var mc,gc;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((mc=process==null?void 0:process.env)==null?void 0:mc.NODE_ENV)==="test"&&typeof((gc=Element?.prototype)==null?void 0:gc.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
|
26
|
-
`)),[]});var Ah=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Ah||{});function yc(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function vc(e,t,n,r){let[o,i]=K(n),{hasFlag:s,addFlag:a,removeFlag:c}=Ph(e&&o?3:0),u=se(!1),d=se(!1),f=co();return Ie(()=>{var h;if(e){if(n&&i(!0),!t){n&&a(3);return}return(h=void 0)==null||h.call(r,n),Nh(t,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&&(n?(a(3),c(4)):(a(4),c(2)))},run(){d.current?n?(c(3),a(4)):(c(4),a(3)):n?c(1):a(1)},done(){var m;d.current&&Vh(t)||(u.current=!1,c(7),n||i(!1),(m=void 0)==null||m.call(r,n))}})}},[e,n,t,f]),e?[o,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Nh(e,{prepare:t,run:n,done:r,inFlight:o}){let i=Rt();return Fh(e,{prepare:t,inFlight:o}),i.nextFrame(()=>{n(),i.requestAnimationFrame(()=>{i.add(Rh(e,r))})}),i.dispose}function Rh(e,t){var n,r;let o=Rt();if(!e)return o.dispose;let i=!1;o.add(()=>{i=!0});let s=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(a=>a instanceof CSSTransition))!=null?r:[];return s.length===0?(t(),o.dispose):(Promise.allSettled(s.map(a=>a.finished)).then(()=>{i||t()}),o.dispose)}function Fh(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function Vh(e){var t,n;return((n=(t=e.getAnimations)==null?void 0:t.call(e))!=null?n:[]).some(r=>r instanceof CSSTransition&&r.playState!=="finished")}function mo(){return typeof window<"u"}function _n(e){return bc(e)?(e.nodeName||"").toLowerCase():"#document"}function nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Et(e){var t;return(t=(bc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function bc(e){return mo()?e instanceof Node||e instanceof nt(e).Node:!1}function Oe(e){return mo()?e instanceof Element||e instanceof nt(e).Element:!1}function Mt(e){return mo()?e instanceof HTMLElement||e instanceof nt(e).HTMLElement:!1}function wc(e){return!mo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof nt(e).ShadowRoot}const $h=new Set(["inline","contents"]);function fr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=yt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!$h.has(o)}const Oh=new Set(["table","td","th"]);function _h(e){return Oh.has(_n(e))}const Bh=[":popover-open",":modal"];function go(e){return Bh.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ih=["transform","translate","scale","rotate","perspective"],jh=["transform","translate","scale","rotate","perspective","filter"],Hh=["paint","layout","strict","content"];function _i(e){const t=Bi(),n=Oe(e)?yt(e):e;return Ih.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||jh.some(r=>(n.willChange||"").includes(r))||Hh.some(r=>(n.contain||"").includes(r))}function Wh(e){let t=Zt(e);for(;Mt(t)&&!Bn(t);){if(_i(t))return t;if(go(t))return null;t=Zt(t)}return null}function Bi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Uh=new Set(["html","body","#document"]);function Bn(e){return Uh.has(_n(e))}function yt(e){return nt(e).getComputedStyle(e)}function yo(e){return Oe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zt(e){if(_n(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wc(e)&&e.host||Et(e);return wc(t)?t.host:t}function Cc(e){const t=Zt(e);return Bn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mt(t)&&fr(t)?t:Cc(t)}function hr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Cc(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=nt(o);if(i){const a=Ii(s);return t.concat(s,s.visualViewport||[],fr(o)?o:[],a&&n?hr(a):[])}return t.concat(o,hr(o,[],n))}function Ii(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zh(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}const fn=Math.min,_e=Math.max,pr=Math.round,vo=Math.floor,St=e=>({x:e,y:e}),zh={left:"right",right:"left",bottom:"top",top:"bottom"},Kh={start:"end",end:"start"};function xc(e,t,n){return _e(e,fn(t,n))}function In(e,t){return typeof e=="function"?e(t):e}function zt(e){return e.split("-")[0]}function mr(e){return e.split("-")[1]}function kc(e){return e==="x"?"y":"x"}function Lc(e){return e==="y"?"height":"width"}const Yh=new Set(["top","bottom"]);function Vt(e){return Yh.has(zt(e))?"y":"x"}function Ec(e){return kc(Vt(e))}function Gh(e,t,n){n===void 0&&(n=!1);const r=mr(e),o=Ec(e),i=Lc(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=bo(s)),[s,bo(s)]}function qh(e){const t=bo(e);return[ji(e),t,ji(t)]}function ji(e){return e.replace(/start|end/g,t=>Kh[t])}const Mc=["left","right"],Sc=["right","left"],Xh=["top","bottom"],Jh=["bottom","top"];function Qh(e,t,n){switch(e){case"top":case"bottom":return n?t?Sc:Mc:t?Mc:Sc;case"left":case"right":return t?Xh:Jh;default:return[]}}function e5(e,t,n,r){const o=mr(e);let i=Qh(zt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(ji)))),i}function bo(e){return e.replace(/left|right|bottom|top/g,t=>zh[t])}function t5(e){return{top:0,right:0,bottom:0,left:0,...e}}function n5(e){return typeof e!="number"?t5(e):{top:e,right:e,bottom:e,left:e}}function wo(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Tc(e,t,n){let{reference:r,floating:o}=e;const i=Vt(t),s=Ec(t),a=Lc(s),c=zt(t),u=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let m;switch(c){case"top":m={x:d,y:r.y-o.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(mr(t)){case"start":m[s]-=h*(n&&u?-1:1);break;case"end":m[s]+=h*(n&&u?-1:1);break}return m}const r5=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Tc(u,r,c),h=r,m={},p=0;for(let y=0;y<a.length;y++){const{name:v,fn:w}=a[y],{x:C,y:b,data:L,reset:x}=await w({x:d,y:f,initialPlacement:r,placement:h,strategy:o,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});d=C??d,f=b??f,m={...m,[v]:{...m[v],...L}},x&&p<=50&&(p++,typeof x=="object"&&(x.placement&&(h=x.placement),x.rects&&(u=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:d,y:f}=Tc(u,h,c)),y=-1)}return{x:d,y:f,placement:h,strategy:o,middlewareData:m}};async function Co(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=In(t,e),p=n5(m),v=a[h?f==="floating"?"reference":"floating":f],w=wo(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),C=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),L=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},x=wo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:b,strategy:c}):C);return{top:(w.top-x.top+p.top)/L.y,bottom:(x.bottom-w.bottom+p.bottom)/L.y,left:(w.left-x.left+p.left)/L.x,right:(x.right-w.right+p.right)/L.x}}const o5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:y=!0,...v}=In(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=zt(o),C=Vt(a),b=zt(a)===a,L=await(c.isRTL==null?void 0:c.isRTL(u.floating)),x=h||(b||!y?[bo(a)]:qh(a)),E=p!=="none";!h&&E&&x.push(...e5(a,y,p,L));const D=[a,...x],N=await Co(t,v),W=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&W.push(N[w]),f){const A=Gh(o,s,L);W.push(N[A[0]],N[A[1]])}if(O=[...O,{placement:o,overflows:W}],!W.every(A=>A<=0)){var B,Y;const A=(((B=i.flip)==null?void 0:B.index)||0)+1,$=D[A];if($&&(!(f==="alignment"?C!==Vt($):!1)||O.every(S=>Vt(S.placement)===C?S.overflows[0]>0:!0)))return{data:{index:A,overflows:O},reset:{placement:$}};let M=(Y=O.filter(P=>P.overflows[0]<=0).sort((P,S)=>P.overflows[1]-S.overflows[1])[0])==null?void 0:Y.placement;if(!M)switch(m){case"bestFit":{var z;const P=(z=O.filter(S=>{if(E){const _=Vt(S.placement);return _===C||_==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(_=>_>0).reduce((_,V)=>_+V,0)]).sort((S,_)=>S[1]-_[1])[0])==null?void 0:z[0];P&&(M=P);break}case"initialPlacement":M=a;break}if(o!==M)return{reset:{placement:M}}}return{}}}},i5=new Set(["left","top"]);async function s5(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=zt(n),a=mr(n),c=Vt(n)==="y",u=i5.has(s)?-1:1,d=i&&c?-1:1,f=In(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof p=="number"&&(m=a==="end"?p*-1:p),c?{x:m*d,y:h*u}:{x:h*u,y:m*d}}const a5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await s5(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},l5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:w,y:C}=v;return{x:w,y:C}}},...c}=In(e,t),u={x:n,y:r},d=await Co(t,c),f=Vt(zt(o)),h=kc(f);let m=u[h],p=u[f];if(i){const v=h==="y"?"top":"left",w=h==="y"?"bottom":"right",C=m+d[v],b=m-d[w];m=xc(C,m,b)}if(s){const v=f==="y"?"top":"left",w=f==="y"?"bottom":"right",C=p+d[v],b=p-d[w];p=xc(C,p,b)}const y=a.fn({...t,[h]:m,[f]:p});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[h]:i,[f]:s}}}}}},c5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...u}=In(e,t),d=await Co(t,u),f=zt(o),h=mr(o),m=Vt(o)==="y",{width:p,height:y}=i.floating;let v,w;f==="top"||f==="bottom"?(v=f,w=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(w=f,v=h==="end"?"top":"bottom");const C=y-d.top-d.bottom,b=p-d.left-d.right,L=fn(y-d[v],C),x=fn(p-d[w],b),E=!t.middlewareData.shift;let D=L,N=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(D=C),E&&!h){const O=_e(d.left,0),B=_e(d.right,0),Y=_e(d.top,0),z=_e(d.bottom,0);m?N=p-2*(O!==0||B!==0?O+B:_e(d.left,d.right)):D=y-2*(Y!==0||z!==0?Y+z:_e(d.top,d.bottom))}await c({...t,availableWidth:N,availableHeight:D});const W=await s.getDimensions(a.floating);return p!==W.width||y!==W.height?{reset:{rects:!0}}:{}}}};function Dc(e){const t=yt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Mt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=pr(n)!==i||pr(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Hi(e){return Oe(e)?e:e.contextElement}function jn(e){const t=Hi(e);if(!Mt(t))return St(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Dc(t);let s=(i?pr(n.width):n.width)/r,a=(i?pr(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const u5=St(0);function Pc(e){const t=nt(e);return!Bi()||!t.visualViewport?u5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function d5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==nt(e)?!1:t}function hn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Hi(e);let s=St(1);t&&(r?Oe(r)&&(s=jn(r)):s=jn(e));const a=d5(i,n,r)?Pc(i):St(0);let c=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i){const h=nt(i),m=r&&Oe(r)?nt(r):r;let p=h,y=Ii(p);for(;y&&r&&m!==p;){const v=jn(y),w=y.getBoundingClientRect(),C=yt(y),b=w.left+(y.clientLeft+parseFloat(C.paddingLeft))*v.x,L=w.top+(y.clientTop+parseFloat(C.paddingTop))*v.y;c*=v.x,u*=v.y,d*=v.x,f*=v.y,c+=b,u+=L,p=nt(y),y=Ii(p)}}return wo({width:d,height:f,x:c,y:u})}function xo(e,t){const n=yo(e).scrollLeft;return t?t.left+n:hn(Et(e)).left+n}function Ac(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-xo(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function f5(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Et(r),a=t?go(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},u=St(1);const d=St(0),f=Mt(r);if((f||!f&&!i)&&((_n(r)!=="body"||fr(s))&&(c=yo(r)),Mt(r))){const m=hn(r);u=jn(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const h=s&&!f&&!i?Ac(s,c):St(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-c.scrollTop*u.y+d.y+h.y}}function h5(e){return Array.from(e.getClientRects())}function p5(e){const t=Et(e),n=yo(e),r=e.ownerDocument.body,o=_e(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=_e(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+xo(e);const a=-n.scrollTop;return yt(r).direction==="rtl"&&(s+=_e(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const Nc=25;function m5(e,t){const n=nt(e),r=Et(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const d=Bi();(!d||d&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const u=xo(r);if(u<=0){const d=r.ownerDocument,f=d.body,h=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,p=Math.abs(r.clientWidth-f.clientWidth-m);p<=Nc&&(i-=p)}else u<=Nc&&(i+=u);return{width:i,height:s,x:a,y:c}}const g5=new Set(["absolute","fixed"]);function y5(e,t){const n=hn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Mt(e)?jn(e):St(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,u=r*i.y;return{width:s,height:a,x:c,y:u}}function Rc(e,t,n){let r;if(t==="viewport")r=m5(e,n);else if(t==="document")r=p5(Et(e));else if(Oe(t))r=y5(t,n);else{const o=Pc(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return wo(r)}function Fc(e,t){const n=Zt(e);return n===t||!Oe(n)||Bn(n)?!1:yt(n).position==="fixed"||Fc(n,t)}function v5(e,t){const n=t.get(e);if(n)return n;let r=hr(e,[],!1).filter(a=>Oe(a)&&_n(a)!=="body"),o=null;const i=yt(e).position==="fixed";let s=i?Zt(e):e;for(;Oe(s)&&!Bn(s);){const a=yt(s),c=_i(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&g5.has(o.position)||fr(s)&&!c&&Fc(e,s))?r=r.filter(d=>d!==s):o=a,s=Zt(s)}return t.set(e,r),r}function b5(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?go(t)?[]:v5(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((u,d)=>{const f=Rc(t,d,o);return u.top=_e(f.top,u.top),u.right=fn(f.right,u.right),u.bottom=fn(f.bottom,u.bottom),u.left=_e(f.left,u.left),u},Rc(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function w5(e){const{width:t,height:n}=Dc(e);return{width:t,height:n}}function C5(e,t,n){const r=Mt(t),o=Et(t),i=n==="fixed",s=hn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=St(0);function u(){c.x=xo(o)}if(r||!r&&!i)if((_n(t)!=="body"||fr(o))&&(a=yo(t)),r){const m=hn(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&u();i&&!r&&o&&u();const d=o&&!r&&!i?Ac(o,a):St(0),f=s.left+a.scrollLeft-c.x-d.x,h=s.top+a.scrollTop-c.y-d.y;return{x:f,y:h,width:s.width,height:s.height}}function Wi(e){return yt(e).position==="static"}function Vc(e,t){if(!Mt(e)||yt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Et(e)===n&&(n=n.ownerDocument.body),n}function $c(e,t){const n=nt(e);if(go(e))return n;if(!Mt(e)){let o=Zt(e);for(;o&&!Bn(o);){if(Oe(o)&&!Wi(o))return o;o=Zt(o)}return n}let r=Vc(e,t);for(;r&&_h(r)&&Wi(r);)r=Vc(r,t);return r&&Bn(r)&&Wi(r)&&!_i(r)?n:r||Wh(e)||n}const x5=async function(e){const t=this.getOffsetParent||$c,n=this.getDimensions,r=await n(e.floating);return{reference:C5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function k5(e){return yt(e).direction==="rtl"}const L5={convertOffsetParentRelativeRectToViewportRelativeRect:f5,getDocumentElement:Et,getClippingRect:b5,getOffsetParent:$c,getElementRects:x5,getClientRects:h5,getDimensions:w5,getScale:jn,isElement:Oe,isRTL:k5};function Oc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function E5(e,t){let n=null,r;const o=Et(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:f,width:h,height:m}=u;if(a||t(),!h||!m)return;const p=vo(f),y=vo(o.clientWidth-(d+h)),v=vo(o.clientHeight-(f+m)),w=vo(d),b={rootMargin:-p+"px "+-y+"px "+-v+"px "+-w+"px",threshold:_e(0,fn(1,c))||1};let L=!0;function x(E){const D=E[0].intersectionRatio;if(D!==c){if(!L)return s();D?s(!1,D):r=setTimeout(()=>{s(!1,1e-7)},1e3)}D===1&&!Oc(u,e.getBoundingClientRect())&&s(),L=!1}try{n=new IntersectionObserver(x,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,b)}n.observe(e)}return s(!0),i}function M5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Hi(e),d=o||i?[...u?hr(u):[],...hr(t)]:[];d.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const f=u&&a?E5(u,n):null;let h=-1,m=null;s&&(m=new ResizeObserver(w=>{let[C]=w;C&&C.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t)})),n()}),u&&!c&&m.observe(u),m.observe(t));let p,y=c?hn(e):null;c&&v();function v(){const w=hn(e);y&&!Oc(y,w)&&n(),y=w,p=requestAnimationFrame(v)}return n(),()=>{var w;d.forEach(C=>{o&&C.removeEventListener("scroll",n),i&&C.removeEventListener("resize",n)}),f?.(),(w=m)==null||w.disconnect(),m=null,c&&cancelAnimationFrame(p)}}const Ui=Co,S5=a5,T5=l5,D5=o5,P5=c5,A5=(e,t,n)=>{const r=new Map,o={platform:L5,...n},i={...o.platform,_c:r};return r5(e,t,{...o,platform:i})};var N5=typeof document<"u",R5=function(){},ko=N5?Tn:R5;function Lo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Lo(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Lo(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function _c(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bc(e,t){const n=_c(e);return Math.round(t*n)/n}function Zi(e){const t=G.useRef(e);return ko(()=>{t.current=e}),t}function F5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[d,f]=G.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=G.useState(r);Lo(h,r)||m(r);const[p,y]=G.useState(null),[v,w]=G.useState(null),C=G.useCallback(S=>{S!==E.current&&(E.current=S,y(S))},[]),b=G.useCallback(S=>{S!==D.current&&(D.current=S,w(S))},[]),L=i||p,x=s||v,E=G.useRef(null),D=G.useRef(null),N=G.useRef(d),W=c!=null,O=Zi(c),B=Zi(o),Y=Zi(u),z=G.useCallback(()=>{if(!E.current||!D.current)return;const S={placement:t,strategy:n,middleware:h};B.current&&(S.platform=B.current),A5(E.current,D.current,S).then(_=>{const V={..._,isPositioned:Y.current!==!1};A.current&&!Lo(N.current,V)&&(N.current=V,Wr.flushSync(()=>{f(V)}))})},[h,t,n,B,Y]);ko(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,f(S=>({...S,isPositioned:!1})))},[u]);const A=G.useRef(!1);ko(()=>(A.current=!0,()=>{A.current=!1}),[]),ko(()=>{if(L&&(E.current=L),x&&(D.current=x),L&&x){if(O.current)return O.current(L,x,z);z()}},[L,x,z,O,W]);const $=G.useMemo(()=>({reference:E,floating:D,setReference:C,setFloating:b}),[C,b]),M=G.useMemo(()=>({reference:L,floating:x}),[L,x]),P=G.useMemo(()=>{const S={position:n,left:0,top:0};if(!M.floating)return S;const _=Bc(M.floating,d.x),V=Bc(M.floating,d.y);return a?{...S,transform:"translate("+_+"px, "+V+"px)",..._c(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:V}},[n,a,M.floating,d.x,d.y]);return G.useMemo(()=>({...d,update:z,refs:$,elements:M,floatingStyles:P}),[d,z,$,M,P])}const Ic=(e,t)=>({...S5(e),options:[e,t]}),V5=(e,t)=>({...T5(e),options:[e,t]}),$5=(e,t)=>({...D5(e),options:[e,t]}),O5=(e,t)=>({...P5(e),options:[e,t]}),jc={...G},_5=jc.useInsertionEffect,B5=_5||(e=>e());function Hc(e){const t=G.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return B5(()=>{t.current=e}),G.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}var zi=typeof document<"u"?Tn:te;let Wc=!1,I5=0;const Uc=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+I5++;function j5(){const[e,t]=G.useState(()=>Wc?Uc():void 0);return zi(()=>{e==null&&t(Uc())},[]),G.useEffect(()=>{Wc=!0},[]),e}const H5=jc.useId,W5=H5||j5;let gr;process.env.NODE_ENV!=="production"&&(gr=new Set);function U5(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=gr)!=null&&e.has(o))){var i;(i=gr)==null||i.add(o),console.warn(o)}}function Z5(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=gr)!=null&&e.has(o))){var i;(i=gr)==null||i.add(o),console.error(o)}}function z5(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const K5=G.createContext(null),Y5=G.createContext(null),G5=()=>{var e;return((e=G.useContext(K5))==null?void 0:e.id)||null},q5=()=>G.useContext(Y5),X5="data-floating-ui-focusable";function J5(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=W5(),i=G.useRef({}),[s]=G.useState(()=>z5()),a=G5()!=null;if(process.env.NODE_ENV!=="production"){const m=r.reference;m&&!Oe(m)&&Z5("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,u]=G.useState(r.reference),d=Hc((m,p,y)=>{i.current.openEvent=m?p:void 0,s.emit("openchange",{open:m,event:p,reason:y,nested:a}),n?.(m,p,y)}),f=G.useMemo(()=>({setPositionReference:u}),[]),h=G.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return G.useMemo(()=>({dataRef:i,open:t,onOpenChange:d,elements:h,events:s,floatingId:o,refs:f}),[t,d,h,s,o,f])}function Q5(e){e===void 0&&(e={});const{nodeId:t}=e,n=J5({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=G.useState(null),[a,c]=G.useState(null),d=o?.domReference||i,f=G.useRef(null),h=q5();zi(()=>{d&&(f.current=d)},[d]);const m=F5({...e,elements:{...o,...a&&{reference:a}}}),p=G.useCallback(b=>{const L=Oe(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;c(L),m.refs.setReference(L)},[m.refs]),y=G.useCallback(b=>{(Oe(b)||b===null)&&(f.current=b,s(b)),(Oe(m.refs.reference.current)||m.refs.reference.current===null||b!==null&&!Oe(b))&&m.refs.setReference(b)},[m.refs]),v=G.useMemo(()=>({...m.refs,setReference:y,setPositionReference:p,domReference:f}),[m.refs,y,p]),w=G.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),C=G.useMemo(()=>({...m,...r,refs:v,elements:w,nodeId:t}),[m,v,w,t,r]);return zi(()=>{r.dataRef.current.floatingContext=C;const b=h?.nodesRef.current.find(L=>L.id===t);b&&(b.context=C)}),G.useMemo(()=>({...m,context:C,refs:v,elements:w}),[m,v,w,C])}const Zc="active",zc="selected";function Ki(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[Zc]:s,[zc]:a,...c}=e;i=c}return{...n==="floating"&&{tabIndex:-1,[X5]:""},...i,...t.map(s=>{const a=s?s[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(c=>{let[u,d]=c;if(!(o&&[Zc,zc].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof d=="function"){var f;(f=r.get(u))==null||f.push(d),s[u]=function(){for(var h,m=arguments.length,p=new Array(m),y=0;y<m;y++)p[y]=arguments[y];return(h=r.get(u))==null?void 0:h.map(v=>v(...p)).find(v=>v!==void 0)}}}else s[u]=d}),s),{})}}function e9(e){e===void 0&&(e=[]);const t=e.map(a=>a?.reference),n=e.map(a=>a?.floating),r=e.map(a=>a?.item),o=G.useCallback(a=>Ki(a,e,"reference"),t),i=G.useCallback(a=>Ki(a,e,"floating"),n),s=G.useCallback(a=>Ki(a,e,"item"),r);return G.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}function Kc(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const t9=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:o,offset:i=0,index:s=0,minItemsVisible:a=4,referenceOverflowThreshold:c=0,scrollRef:u,...d}=In(e,t),{rects:f,elements:{floating:h}}=t,m=n.current[s],p=u?.current||h,y=h.clientTop||p.clientTop,v=h.clientTop!==0,w=p.clientTop!==0,C=h===p;if(process.env.NODE_ENV!=="production"&&(t.placement.startsWith("bottom")||U5('`placement` side must be "bottom" when using the `inner`',"middleware.")),!m)return{};const b={...t,...await Ic(-m.offsetTop-h.clientTop-f.reference.height/2-m.offsetHeight/2-i).fn(t)},L=await Ui(Kc(b,p.scrollHeight+y+h.clientTop),d),x=await Ui(b,{...d,elementContext:"reference"}),E=_e(0,L.top),D=b.y+E,O=(p.scrollHeight>p.clientHeight?B=>B:pr)(_e(0,p.scrollHeight+(v&&C||w?y*2:0)-E-_e(0,L.bottom)));if(p.style.maxHeight=O+"px",p.scrollTop=E,o){const B=p.offsetHeight<m.offsetHeight*fn(a,n.current.length)-1||x.top>=-c||x.bottom>=-c;Wr.flushSync(()=>o(B))}return r&&(r.current=await Ui(Kc({...b,y:D},p.offsetHeight+y+h.clientTop),d)),{y:D}}});function n9(e,t){const{open:n,elements:r}=e,{enabled:o=!0,overflowRef:i,scrollRef:s,onChange:a}=t,c=Hc(a),u=G.useRef(!1),d=G.useRef(null),f=G.useRef(null);G.useEffect(()=>{if(!o)return;function m(y){if(y.ctrlKey||!p||i.current==null)return;const v=y.deltaY,w=i.current.top>=-.5,C=i.current.bottom>=-.5,b=p.scrollHeight-p.clientHeight,L=v<0?-1:1,x=v<0?"max":"min";p.scrollHeight<=p.clientHeight||(!w&&v>0||!C&&v<0?(y.preventDefault(),Wr.flushSync(()=>{c(E=>E+Math[x](v,b*L))})):/firefox/i.test(Zh())&&(p.scrollTop+=v))}const p=s?.current||r.floating;if(n&&p)return p.addEventListener("wheel",m),requestAnimationFrame(()=>{d.current=p.scrollTop,i.current!=null&&(f.current={...i.current})}),()=>{d.current=null,f.current=null,p.removeEventListener("wheel",m)}},[o,n,r.floating,i,s,c]);const h=G.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const m=s?.current||r.floating;if(!(!i.current||!m||!u.current)){if(d.current!==null){const p=m.scrollTop-d.current;(i.current.bottom<-.5&&p<-1||i.current.top<-.5&&p>1)&&Wr.flushSync(()=>c(y=>y+p))}requestAnimationFrame(()=>{d.current=m.scrollTop})}}}),[r.floating,c,i,s]);return G.useMemo(()=>o?{floating:h}:{},[o,h])}let yr=De({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});yr.displayName="FloatingContext";let Yi=De(null);Yi.displayName="PlacementContext";function r9(e){return ve(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function o9(){return de(yr).setReference}function i9(){let{getFloatingProps:e,slot:t}=de(yr);return ue((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function s9(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=de(Yi),n=ve(()=>e,[JSON.stringify(e,(o,i)=>{var s;return(s=i?.outerHTML)!=null?s:i})]);Ie(()=>{t?.(n??null)},[t,n]);let r=de(yr);return ve(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let Yc=4;function a9({children:e,enabled:t=!0}){let[n,r]=K(null),[o,i]=K(0),s=se(null),[a,c]=K(null);l9(a);let u=t&&n!==null&&a!==null,{to:d="bottom",gap:f=0,offset:h=0,padding:m=0,inner:p}=c9(n,a),[y,v="center"]=d.split(" ");Ie(()=>{u&&i(0)},[u]);let{refs:w,floatingStyles:C,context:b}=Q5({open:u,placement:y==="selection"?v==="center"?"bottom":`bottom-${v}`:v==="center"?`${y}`:`${y}-${v}`,strategy:"absolute",transform:!1,middleware:[Ic({mainAxis:y==="selection"?0:f,crossAxis:h}),V5({padding:m}),y!=="selection"&&$5({padding:m}),y==="selection"&&p?t9({...p,padding:m,overflowRef:s,offset:o,minItemsVisible:Yc,referenceOverflowThreshold:m,onFallbackChange(B){var Y,z;if(!B)return;let A=b.elements.floating;if(!A)return;let $=parseFloat(getComputedStyle(A).scrollPaddingBottom)||0,M=Math.min(Yc,A.childElementCount),P=0,S=0;for(let _ of(z=(Y=b.elements.floating)==null?void 0:Y.childNodes)!=null?z:[])if(Ft(_)){let V=_.offsetTop,U=V+_.clientHeight+$,q=A.scrollTop,I=q+A.clientHeight;if(V>=q&&U<=I)M--;else{S=Math.max(0,Math.min(U,I)-Math.max(V,q)),P=_.clientHeight;break}}M>=1&&i(_=>{let V=P*M-S+$;return _>=V?_:V})}}):null,O5({padding:m,apply({availableWidth:B,availableHeight:Y,elements:z}){Object.assign(z.floating.style,{overflow:"auto",maxWidth:`${B}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${Y}px)`})}})].filter(Boolean),whileElementsMounted:M5}),[L=y,x=v]=b.placement.split("-");y==="selection"&&(L="selection");let E=ve(()=>({anchor:[L,x].filter(Boolean).join(" ")}),[L,x]),D=n9(b,{overflowRef:s,onChange:i}),{getReferenceProps:N,getFloatingProps:W}=e9([D]),O=ce(B=>{c(B),w.setFloating(B)});return G.createElement(Yi.Provider,{value:r},G.createElement(yr.Provider,{value:{setFloating:O,setReference:w.setReference,styles:C,getReferenceProps:N,getFloatingProps:W,slot:E}},e))}function l9(e){Ie(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,r=parseFloat(n);if(isNaN(r))return;let o=parseInt(n);isNaN(o)||r!==o&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function c9(e,t){var n,r,o;let i=Gi((n=e?.gap)!=null?n:"var(--anchor-gap, 0)",t),s=Gi((r=e?.offset)!=null?r:"var(--anchor-offset, 0)",t),a=Gi((o=e?.padding)!=null?o:"var(--anchor-padding, 0)",t);return{...e,gap:i,offset:s,padding:a}}function Gi(e,t,n=void 0){let r=co(),o=ce((c,u)=>{if(c==null)return[n,null];if(typeof c=="number")return[c,null];if(typeof c=="string"){if(!u)return[n,null];let d=qc(c,u);return[d,f=>{let h=Gc(c);{let m=h.map(p=>window.getComputedStyle(u).getPropertyValue(p));r.requestAnimationFrame(function p(){r.nextFrame(p);let y=!1;for(let[w,C]of h.entries()){let b=window.getComputedStyle(u).getPropertyValue(C);if(m[w]!==b){m[w]=b,y=!0;break}}if(!y)return;let v=qc(c,u);d!==v&&(f(v),d=v)})}return r.dispose}]}return[n,null]}),i=ve(()=>o(e,t)[0],[e,t]),[s=i,a]=K();return Ie(()=>{let[c,u]=o(e,t);if(a(c),!!u)return u(a)},[e,t]),s}function Gc(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let r=t[1].slice(0,n).trim(),o=t[1].slice(n+1).trim();return o?[r,...Gc(o)]:[r]}return[]}function qc(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}let Eo=De(null);Eo.displayName="OpenClosedContext";var pn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(pn||{});function Xc(){return de(Eo)}function u9({value:e,children:t}){return R.createElement(Eo.Provider,{value:e},t)}function d9({children:e}){return R.createElement(Eo.Provider,{value:null},e)}function Jc(e){let t=ce(e),n=se(!1);te(()=>(n.current=!1,()=>{n.current=!0,Ti(()=>{n.current&&t()})}),[t])}let f9=De(!1);function h9(){return de(f9)}function p9(e){let t=h9(),n=de(e1),[r,o]=K(()=>{var i;if(!t&&n!==null)return(i=n.current)!=null?i:null;if(on.isServer)return null;let s=e?.getElementById("headlessui-portal-root");if(s)return s;if(e===null)return null;let a=e.createElement("div");return a.setAttribute("id","headlessui-portal-root"),e.body.appendChild(a)});return te(()=>{r!==null&&(e!=null&&e.body.contains(r)||e==null||e.body.appendChild(r))},[r,e]),te(()=>{t||n!==null&&o(n.current)},[n,o,t]),r}let Qc=Jt,m9=He(function(e,t){let{ownerDocument:n=null,...r}=e,o=se(null),i=qe(Gl(h=>{o.current=h}),t),s=Oi(o.current),a=n??s,c=p9(a),u=de(qi),d=co(),f=Ge();return Jc(()=>{var h;c&&c.childNodes.length<=0&&((h=c.parentElement)==null||h.removeChild(c))}),c?X0(R.createElement("div",{"data-headlessui-portal":"",ref:h=>{d.dispose(),u&&h&&d.add(u.register(h))}},f({ourProps:{ref:i},theirProps:r,slot:{},defaultTag:Qc,name:"Portal"})),c):null});function g9(e,t){let n=qe(t),{enabled:r=!0,ownerDocument:o,...i}=e,s=Ge();return r?R.createElement(m9,{...i,ownerDocument:o,ref:n}):s({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:Qc,name:"Portal"})}let y9=Jt,e1=De(null);function v9(e,t){let{target:n,...r}=e,o={ref:qe(t)},i=Ge();return R.createElement(e1.Provider,{value:n},i({ourProps:o,theirProps:r,defaultTag:y9,name:"Popover.Group"}))}let qi=De(null);function b9(){let e=de(qi),t=se([]),n=ce(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=ce(i=>{let s=t.current.indexOf(i);s!==-1&&t.current.splice(s,1),e&&e.unregister(i)}),o=ve(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,ve(()=>function({children:i}){return R.createElement(qi.Provider,{value:o},i)},[o])]}let w9=He(g9),C9=He(v9),x9=Object.assign(w9,{Group:C9});function k9({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=ce(()=>{var o,i;let s=Nn(n),a=[];for(let c of e)c!==null&&(cn(c)?a.push(c):"current"in c&&cn(c.current)&&a.push(c.current));if(t!=null&&t.current)for(let c of t.current)a.push(c);for(let c of(o=s?.querySelectorAll("html > *, body > *"))!=null?o:[])c!==document.body&&c!==document.head&&cn(c)&&c.id!=="headlessui-portal-root"&&(n&&(c.contains(n)||c.contains((i=n?.getRootNode())==null?void 0:i.host))||a.some(u=>c.contains(u))||a.push(c));return a});return{resolveContainers:r,contains:ce(o=>r().some(i=>i.contains(o)))}}let t1=De(null);function n1({children:e,node:t}){let[n,r]=K(null),o=r1(t??n);return R.createElement(t1.Provider,{value:o},e,o===null&&R.createElement(Vn,{features:Fn.Hidden,ref:i=>{var s,a;if(i){for(let c of(a=(s=Nn(i))==null?void 0:s.querySelectorAll("html > *, body > *"))!=null?a:[])if(c!==document.body&&c!==document.head&&cn(c)&&c!=null&&c.contains(i)){r(c);break}}}}))}function r1(e=null){var t;return(t=de(t1))!=null?t:e}function L9(){let e=se(!1);return Ie(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var $t=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))($t||{});function o1(){let e=se(0);return dc(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}var E9=Object.defineProperty,M9=(e,t,n)=>t in e?E9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,i1=(e,t,n)=>(M9(e,typeof t!="symbol"?t+"":t,n),n),Se=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Se||{}),S9=(e=>(e[e.OpenPopover=0]="OpenPopover",e[e.ClosePopover=1]="ClosePopover",e[e.SetButton=2]="SetButton",e[e.SetButtonId=3]="SetButtonId",e[e.SetPanel=4]="SetPanel",e[e.SetPanelId=5]="SetPanelId",e))(S9||{});let T9={0:e=>e.popoverState===0?e:{...e,popoverState:0,__demoMode:!1},1(e){return e.popoverState===1?e:{...e,popoverState:1,__demoMode:!1}},2(e,t){return e.button===t.button?e:{...e,button:t.button}},3(e,t){return e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId}},4(e,t){return e.panel===t.panel?e:{...e,panel:t.panel}},5(e,t){return e.panelId===t.panelId?e:{...e,panelId:t.panelId}}};class Ta extends tc{constructor(t){super(t),i1(this,"actions",{close:()=>this.send({type:1}),refocusableClose:n=>{this.actions.close();let r=(()=>n?Ft(n)?n:"current"in n&&Ft(n.current)?n.current:this.state.button:this.state.button)();r?.focus()},open:()=>this.send({type:0}),setButtonId:n=>this.send({type:3,buttonId:n}),setButton:n=>this.send({type:2,button:n}),setPanelId:n=>this.send({type:5,panelId:n}),setPanel:n=>this.send({type:4,panel:n})}),i1(this,"selectors",{isPortalled:n=>{var r;if(!n.button||!n.panel)return!1;let o=(r=Nn(n.button))!=null?r:document;for(let f of o.querySelectorAll("body > *"))if(Number(f?.contains(n.button))^Number(f?.contains(n.panel)))return!0;let i=ho(o),s=i.indexOf(n.button),a=(s+i.length-1)%i.length,c=(s+1)%i.length,u=i[a],d=i[c];return!n.panel.contains(u)&&!n.panel.contains(d)}});{let n=this.state.id,r=ic.get(null);this.on(0,()=>r.actions.push(n)),this.on(1,()=>r.actions.pop(n))}}static new({id:t,__demoMode:n=!1}){return new Ta({id:t,__demoMode:n,popoverState:n?0:1,buttons:{current:[]},button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:{current:null},afterPanelSentinel:{current:null},afterButtonSentinel:{current:null}})}reduce(t,n){return je(n.type,T9,t,n)}}const s1=De(null);function Mo(e){let t=de(s1);if(t===null){let n=new Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Mo),n}return t}function D9({id:e,__demoMode:t=!1}){let n=ve(()=>Ta.new({id:e,__demoMode:t}),[]);return Jc(()=>n.dispose()),n}let Xi=De(null);Xi.displayName="PopoverGroupContext";function a1(){return de(Xi)}let So=De(null);So.displayName="PopoverPanelContext";function P9(){return de(So)}let A9="div";function N9(e,t){var n;let r=Pt(),{__demoMode:o=!1,...i}=e,s=D9({id:r,__demoMode:o}),a=se(null),c=qe(t,Gl(A=>{a.current=A})),[u,d,f,h,m]=un(s,ue(A=>[A.popoverState,A.button,A.panel,A.buttonId,A.panelId],[])),p=Ch((n=a.current)!=null?n:d),y=it(h),v=it(m),w=ve(()=>({buttonId:y,panelId:v,close:s.actions.close}),[y,v,s]),C=a1(),b=C?.registerPopover,L=ce(()=>{var A,$;let M=an((A=a.current)!=null?A:d);return($=C?.isFocusWithinPopoverGroup())!=null?$:M&&(d?.contains(M)||f?.contains(M))});te(()=>b?.(w),[b,w]);let[x,E]=b9(),D=r1(d),N=k9({mainTreeNode:D,portals:x,defaultContainers:[{get current(){return s.state.button}},{get current(){return s.state.panel}}]});xh(p,"focus",A=>{var $,M,P,S,_,V;A.target!==window&&$n(A.target)&&s.state.popoverState===Se.Open&&(L()||s.state.button&&s.state.panel&&(N.contains(A.target)||(M=($=s.state.beforePanelSentinel.current)==null?void 0:$.contains)!=null&&M.call($,A.target)||(S=(P=s.state.afterPanelSentinel.current)==null?void 0:P.contains)!=null&&S.call(P,A.target)||(V=(_=s.state.afterButtonSentinel.current)==null?void 0:_.contains)!=null&&V.call(_,A.target)||s.actions.close()))},!0);let W=u===Se.Open;wh(W,N.resolveContainers,(A,$)=>{s.actions.close(),lc($,$i.Loose)||(A.preventDefault(),d?.focus())});let O=kt({open:u===Se.Open,close:s.actions.refocusableClose}),B=un(s,ue(A=>je(A.popoverState,{[Se.Open]:pn.Open,[Se.Closed]:pn.Closed}),[])),Y={ref:c},z=Ge();return R.createElement(n1,{node:D},R.createElement(a9,null,R.createElement(So.Provider,{value:null},R.createElement(s1.Provider,{value:s},R.createElement(ql,{value:s.actions.refocusableClose},R.createElement(u9,{value:B},R.createElement(E,null,z({ourProps:Y,theirProps:i,slot:O,defaultTag:A9,name:"Popover"}))))))))}let R9="button";function F9(e,t){let n=Pt(),{id:r=`headlessui-popover-button-${n}`,disabled:o=!1,autoFocus:i=!1,...s}=e,a=Mo("Popover.Button"),[c,u,d,f,h,m,p]=un(a,ue(F=>[F.popoverState,a.selectors.isPortalled(F),F.button,F.buttonId,F.panel,F.panelId,F.afterButtonSentinel],[])),y=se(null),v=`headlessui-focus-sentinel-${Pt()}`,w=a1(),C=w?.closeOthers,b=P9()!==null;te(()=>{if(!b)return a.actions.setButtonId(r),()=>a.actions.setButtonId(null)},[b,r,a]);let[L]=K(()=>Symbol()),x=qe(y,t,o9(),ce(F=>{if(!b){if(F)a.state.buttons.current.push(L);else{let H=a.state.buttons.current.indexOf(L);H!==-1&&a.state.buttons.current.splice(H,1)}a.state.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),F&&a.actions.setButton(F)}})),E=qe(y,t),D=ce(F=>{var H,ne,ie;if(b){if(a.state.popoverState===Se.Closed)return;switch(F.key){case Ne.Space:case Ne.Enter:F.preventDefault(),(ne=(H=F.target).click)==null||ne.call(H),a.actions.close(),(ie=a.state.button)==null||ie.focus();break}}else switch(F.key){case Ne.Space:case Ne.Enter:F.preventDefault(),F.stopPropagation(),a.state.popoverState===Se.Closed?(C?.(a.state.buttonId),a.actions.open()):a.actions.close();break;case Ne.Escape:if(a.state.popoverState!==Se.Open)return C?.(a.state.buttonId);if(!y.current)return;let X=an(y.current);if(X&&!y.current.contains(X))return;F.preventDefault(),F.stopPropagation(),a.actions.close();break}}),N=ce(F=>{b||F.key===Ne.Space&&F.preventDefault()}),W=ce(F=>{var H,ne;Kl(F.currentTarget)||o||(b?(a.actions.close(),(H=a.state.button)==null||H.focus()):(F.preventDefault(),F.stopPropagation(),a.state.popoverState===Se.Closed?(C?.(a.state.buttonId),a.actions.open()):a.actions.close(),(ne=a.state.button)==null||ne.focus()))}),O=ce(F=>{F.preventDefault(),F.stopPropagation()}),{isFocusVisible:B,focusProps:Y}=Mi({autoFocus:i}),{isHovered:z,hoverProps:A}=Hl({isDisabled:o}),{pressed:$,pressProps:M}=Wl({disabled:o}),P=c===Se.Open,S=kt({open:P,active:$||P,disabled:o,hover:z,focus:B,autofocus:i}),_=hc(e,d),V=cr(b?{ref:E,type:_,onKeyDown:D,onClick:W,disabled:o||void 0,autoFocus:i}:{ref:x,id:f,type:_,"aria-expanded":c===Se.Open,"aria-controls":h?m:void 0,disabled:o||void 0,autoFocus:i,onKeyDown:D,onKeyUp:N,onClick:W,onMouseDown:O},Y,A,M),U=o1(),q=ce(()=>{if(!Ft(a.state.panel))return;let F=a.state.panel;function H(){je(U.current,{[$t.Forwards]:()=>tt(F,Pe.First),[$t.Backwards]:()=>tt(F,Pe.Last)})===Ut.Error&&tt(ho(sn(a.state.button)).filter(ne=>ne.dataset.headlessuiFocusGuard!=="true"),je(U.current,{[$t.Forwards]:Pe.Next,[$t.Backwards]:Pe.Previous}),{relativeTo:a.state.button})}H()}),I=Ge();return R.createElement(R.Fragment,null,I({ourProps:V,theirProps:s,slot:S,defaultTag:R9,name:"Popover.Button"}),P&&!b&&u&&R.createElement(Vn,{id:v,ref:p,features:Fn.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:q}))}let V9="div",$9=ln.RenderStrategy|ln.Static;function l1(e,t){let n=Pt(),{id:r=`headlessui-popover-backdrop-${n}`,transition:o=!1,...i}=e,s=Mo("Popover.Backdrop"),a=un(s,ue(w=>w.popoverState,[])),[c,u]=K(null),d=qe(t,u),f=Xc(),[h,m]=vc(o,c,f!==null?(f&pn.Open)===pn.Open:a===Se.Open),p=ce(w=>{if(Kl(w.currentTarget))return w.preventDefault();s.actions.close()}),y=kt({open:a===Se.Open}),v={ref:d,id:r,"aria-hidden":!0,onClick:p,...yc(m)};return Ge()({ourProps:v,theirProps:i,slot:y,defaultTag:V9,features:$9,visible:h,name:"Popover.Backdrop"})}let O9="div",_9=ln.RenderStrategy|ln.Static;function B9(e,t){let n=Pt(),{id:r=`headlessui-popover-panel-${n}`,focus:o=!1,anchor:i,portal:s=!1,modal:a=!1,transition:c=!1,...u}=e,d=Mo("Popover.Panel"),f=un(d,d.selectors.isPortalled),[h,m,p,y,v]=un(d,ue(I=>[I.popoverState,I.button,I.__demoMode,I.beforePanelSentinel,I.afterPanelSentinel],[])),w=`headlessui-focus-sentinel-before-${n}`,C=`headlessui-focus-sentinel-after-${n}`,b=se(null),L=r9(i),[x,E]=s9(L),D=i9();L&&(s=!0);let[N,W]=K(null),O=qe(b,t,L?x:null,d.actions.setPanel,W),B=Oi(m),Y=Oi(b.current);Ie(()=>(d.actions.setPanelId(r),()=>d.actions.setPanelId(null)),[r,d]);let z=Xc(),[A,$]=vc(c,N,z!==null?(z&pn.Open)===pn.Open:h===Se.Open);fh(A,m,d.actions.close),Dh(p?!1:a&&A,Y);let M=ce(I=>{var F;switch(I.key){case Ne.Escape:if(d.state.popoverState!==Se.Open||!b.current)return;let H=an(b.current);if(H&&!b.current.contains(H))return;I.preventDefault(),I.stopPropagation(),d.actions.close(),(F=d.state.button)==null||F.focus();break}});te(()=>{var I;e.static||h===Se.Closed&&((I=e.unmount)==null||I)&&d.actions.setPanel(null)},[h,e.unmount,e.static,d]),te(()=>{if(p||!o||h!==Se.Open||!b.current)return;let I=an(b.current);b.current.contains(I)||tt(b.current,Pe.First)},[p,o,b.current,h]);let P=kt({open:h===Se.Open,close:d.actions.refocusableClose}),S=cr(L?D():{},{ref:O,id:r,onKeyDown:M,onBlur:o&&h===Se.Open?I=>{var F,H,ne,ie,X;let le=I.relatedTarget;le&&b.current&&((F=b.current)!=null&&F.contains(le)||(d.actions.close(),((ne=(H=y.current)==null?void 0:H.contains)!=null&&ne.call(H,le)||(X=(ie=v.current)==null?void 0:ie.contains)!=null&&X.call(ie,le))&&le.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...u.style,...E,"--button-width":J3(A,m,!0).width},...yc($)}),_=o1(),V=ce(()=>{let I=b.current;if(!I)return;function F(){je(_.current,{[$t.Forwards]:()=>{var H;tt(I,Pe.First)===Ut.Error&&((H=d.state.afterPanelSentinel.current)==null||H.focus())},[$t.Backwards]:()=>{var H;(H=d.state.button)==null||H.focus({preventScroll:!0})}})}F()}),U=ce(()=>{let I=b.current;if(!I)return;function F(){je(_.current,{[$t.Forwards]:()=>{var H;if(!d.state.button)return;let ne=(H=sn(d.state.button))!=null?H:document.body,ie=ho(ne),X=ie.indexOf(d.state.button),le=ie.slice(0,X+1),ae=[...ie.slice(X+1),...le];for(let pe of ae.slice())if(pe.dataset.headlessuiFocusGuard==="true"||N!=null&&N.contains(pe)){let ee=ae.indexOf(pe);ee!==-1&&ae.splice(ee,1)}tt(ae,Pe.First,{sorted:!1})},[$t.Backwards]:()=>{var H;tt(I,Pe.Previous)===Ut.Error&&((H=d.state.button)==null||H.focus())}})}F()}),q=Ge();return R.createElement(d9,null,R.createElement(So.Provider,{value:r},R.createElement(ql,{value:d.actions.refocusableClose},R.createElement(x9,{enabled:s?e.static||A:!1,ownerDocument:B},A&&f&&R.createElement(Vn,{id:w,ref:y,features:Fn.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:V}),q({ourProps:S,theirProps:u,slot:P,defaultTag:O9,features:_9,visible:A,name:"Popover.Panel"}),A&&f&&R.createElement(Vn,{id:C,ref:v,features:Fn.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:U})))))}let I9="div";function j9(e,t){let n=se(null),r=qe(n,t),[o,i]=K([]),s=ce(y=>{i(v=>{let w=v.indexOf(y);if(w!==-1){let C=v.slice();return C.splice(w,1),C}return v})}),a=ce(y=>(i(v=>[...v,y]),()=>s(y))),c=ce(()=>{var y;let v=sn(n.current);if(!v)return!1;let w=an(n.current);return(y=n.current)!=null&&y.contains(w)?!0:o.some(C=>{var b,L;return((b=v.getElementById(C.buttonId.current))==null?void 0:b.contains(w))||((L=v.getElementById(C.panelId.current))==null?void 0:L.contains(w))})}),u=ce(y=>{for(let v of o)v.buttonId.current!==y&&v.close()}),d=ve(()=>({registerPopover:a,unregisterPopover:s,isFocusWithinPopoverGroup:c,closeOthers:u}),[a,s,c,u]),f=kt({}),h=e,m={ref:r},p=Ge();return R.createElement(n1,null,R.createElement(Xi.Provider,{value:d},p({ourProps:m,theirProps:h,slot:f,defaultTag:I9,name:"Popover.Group"})))}let H9=He(N9),c1=He(F9),W9=He(l1),U9=He(l1),u1=He(B9),Z9=He(j9),z9=Object.assign(H9,{Button:c1,Backdrop:U9,Overlay:W9,Panel:u1,Group:Z9});function K9({onFocus:e}){let[t,n]=K(!0),r=L9();return t?R.createElement(Vn,{as:"button",type:"button",features:Fn.Focusable,onFocus:o=>{o.preventDefault();let i,s=50;function a(){if(s--<=0){i&&cancelAnimationFrame(i);return}if(e()){if(cancelAnimationFrame(i),!r.current)return;n(!1);return}i=requestAnimationFrame(a)}i=requestAnimationFrame(a)}}):null}const d1=G.createContext(null);function Y9(){return{groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let o=(n=r.get(t))!=null?n:0;r.set(t,o+1);let i=Array.from(r.keys()).indexOf(t);function s(){let a=r.get(t);a>1?r.set(t,a-1):r.delete(t)}return[i,s]}}}function G9({children:e}){let t=G.useRef(Y9());return G.createElement(d1.Provider,{value:t},e)}function f1(e){let t=G.useContext(d1);if(!t)throw new Error("You must wrap your component in a <StableCollection>");let n=G.useId(),[r,o]=t.current.get(e,n);return G.useEffect(()=>o,[]),r}var q9=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(q9||{}),X9=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(X9||{}),J9=(e=>(e[e.SetSelectedIndex=0]="SetSelectedIndex",e[e.RegisterTab=1]="RegisterTab",e[e.UnregisterTab=2]="UnregisterTab",e[e.RegisterPanel=3]="RegisterPanel",e[e.UnregisterPanel=4]="UnregisterPanel",e))(J9||{});let Q9={0(e,t){var n;let r=On(e.tabs,d=>d.current),o=On(e.panels,d=>d.current),i=r.filter(d=>{var f;return!((f=d.current)!=null&&f.hasAttribute("disabled"))}),s={...e,tabs:r,panels:o};if(t.index<0||t.index>r.length-1){let d=je(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>je(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(i.length===0)return s;let f=je(d,{0:()=>r.indexOf(i[0]),1:()=>r.indexOf(i[i.length-1])});return{...s,selectedIndex:f===-1?e.selectedIndex:f}}let a=r.slice(0,t.index),c=[...r.slice(t.index),...a].find(d=>i.includes(d));if(!c)return s;let u=(n=r.indexOf(c))!=null?n:e.selectedIndex;return u===-1&&(u=e.selectedIndex),{...s,selectedIndex:u}},1(e,t){if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],r=On([...e.tabs,t.tab],i=>i.current),o=e.selectedIndex;return e.info.current.isControlled||(o=r.indexOf(n),o===-1&&(o=e.selectedIndex)),{...e,tabs:r,selectedIndex:o}},2(e,t){return{...e,tabs:e.tabs.filter(n=>n!==t.tab)}},3(e,t){return e.panels.includes(t.panel)?e:{...e,panels:On([...e.panels,t.panel],n=>n.current)}},4(e,t){return{...e,panels:e.panels.filter(n=>n!==t.panel)}}},Ji=De(null);Ji.displayName="TabsDataContext";function Hn(e){let t=de(Ji);if(t===null){let n=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Hn),n}return t}let Qi=De(null);Qi.displayName="TabsActionsContext";function es(e){let t=de(Qi);if(t===null){let n=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,es),n}return t}function ep(e,t){return je(t.type,Q9,e,t)}let tp="div";function np(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:o=!1,onChange:i,selectedIndex:s=null,...a}=e;const c=r?"vertical":"horizontal",u=o?"manual":"auto";let d=s!==null,f=it({isControlled:d}),h=qe(t),[m,p]=K0(ep,{info:f,selectedIndex:s??n,tabs:[],panels:[]}),y=kt({selectedIndex:m.selectedIndex}),v=it(i||(()=>{})),w=it(m.tabs),C=ve(()=>({orientation:c,activation:u,...m}),[c,u,m]),b=ce(O=>(p({type:1,tab:O}),()=>p({type:2,tab:O}))),L=ce(O=>(p({type:3,panel:O}),()=>p({type:4,panel:O}))),x=ce(O=>{E.current!==O&&v.current(O),d||p({type:0,index:O})}),E=it(d?e.selectedIndex:m.selectedIndex),D=ve(()=>({registerTab:b,registerPanel:L,change:x}),[]);Ie(()=>{p({type:0,index:s??n})},[s]),Ie(()=>{if(E.current===void 0||m.tabs.length<=0)return;let O=On(m.tabs,B=>B.current);O.some((B,Y)=>m.tabs[Y]!==B)&&x(O.indexOf(m.tabs[E.current]))});let N={ref:h},W=Ge();return R.createElement(G9,null,R.createElement(Qi.Provider,{value:D},R.createElement(Ji.Provider,{value:C},C.tabs.length<=0&&R.createElement(K9,{onFocus:()=>{var O,B;for(let Y of w.current)if(((O=Y.current)==null?void 0:O.tabIndex)===0)return(B=Y.current)==null||B.focus(),!0;return!1}}),W({ourProps:N,theirProps:a,slot:y,defaultTag:tp,name:"Tabs"}))))}let rp="div";function op(e,t){let{orientation:n,selectedIndex:r}=Hn("Tab.List"),o=qe(t),i=kt({selectedIndex:r}),s=e,a={ref:o,role:"tablist","aria-orientation":n};return Ge()({ourProps:a,theirProps:s,slot:i,defaultTag:rp,name:"Tabs.List"})}let ip="button";function sp(e,t){var n,r;let o=Pt(),{id:i=`headlessui-tabs-tab-${o}`,disabled:s=!1,autoFocus:a=!1,...c}=e,{orientation:u,activation:d,selectedIndex:f,tabs:h,panels:m}=Hn("Tab"),p=es("Tab"),y=Hn("Tab"),[v,w]=K(null),C=se(null),b=qe(C,t,w);Ie(()=>p.registerTab(C),[p,C]);let L=f1("tabs"),x=h.indexOf(C);x===-1&&(x=L);let E=x===f,D=ce(V=>{let U=V();if(U===Ut.Success&&d==="auto"){let q=an(C.current),I=y.tabs.findIndex(F=>F.current===q);I!==-1&&p.change(I)}return U}),N=ce(V=>{let U=h.map(q=>q.current).filter(Boolean);if(V.key===Ne.Space||V.key===Ne.Enter){V.preventDefault(),V.stopPropagation(),p.change(x);return}switch(V.key){case Ne.Home:case Ne.PageUp:return V.preventDefault(),V.stopPropagation(),D(()=>tt(U,Pe.First));case Ne.End:case Ne.PageDown:return V.preventDefault(),V.stopPropagation(),D(()=>tt(U,Pe.Last))}if(D(()=>je(u,{vertical(){return V.key===Ne.ArrowUp?tt(U,Pe.Previous|Pe.WrapAround):V.key===Ne.ArrowDown?tt(U,Pe.Next|Pe.WrapAround):Ut.Error},horizontal(){return V.key===Ne.ArrowLeft?tt(U,Pe.Previous|Pe.WrapAround):V.key===Ne.ArrowRight?tt(U,Pe.Next|Pe.WrapAround):Ut.Error}}))===Ut.Success)return V.preventDefault()}),W=se(!1),O=ce(()=>{var V;W.current||(W.current=!0,(V=C.current)==null||V.focus({preventScroll:!0}),p.change(x),Ti(()=>{W.current=!1}))}),B=ce(V=>{V.preventDefault()}),{isFocusVisible:Y,focusProps:z}=Mi({autoFocus:a}),{isHovered:A,hoverProps:$}=Hl({isDisabled:s}),{pressed:M,pressProps:P}=Wl({disabled:s}),S=kt({selected:E,hover:A,active:M,focus:Y,autofocus:a,disabled:s}),_=cr({ref:b,onKeyDown:N,onMouseDown:B,onClick:O,id:i,role:"tab",type:hc(e,v),"aria-controls":(r=(n=m[x])==null?void 0:n.current)==null?void 0:r.id,"aria-selected":E,tabIndex:E?0:-1,disabled:s||void 0,autoFocus:a},z,$,P);return Ge()({ourProps:_,theirProps:c,slot:S,defaultTag:ip,name:"Tabs.Tab"})}let ap="div";function lp(e,t){let{selectedIndex:n}=Hn("Tab.Panels"),r=qe(t),o=kt({selectedIndex:n}),i=e,s={ref:r};return Ge()({ourProps:s,theirProps:i,slot:o,defaultTag:ap,name:"Tabs.Panels"})}let cp="div",up=ln.RenderStrategy|ln.Static;function dp(e,t){var n,r,o,i;let s=Pt(),{id:a=`headlessui-tabs-panel-${s}`,tabIndex:c=0,...u}=e,{selectedIndex:d,tabs:f,panels:h}=Hn("Tab.Panel"),m=es("Tab.Panel"),p=se(null),y=qe(p,t);Ie(()=>m.registerPanel(p),[m,p]);let v=f1("panels"),w=h.indexOf(p);w===-1&&(w=v);let C=w===d,{isFocusVisible:b,focusProps:L}=Mi(),x=kt({selected:C,focus:b}),E=cr({ref:y,id:a,role:"tabpanel","aria-labelledby":(r=(n=f[w])==null?void 0:n.current)==null?void 0:r.id,tabIndex:C?c:-1},L),D=Ge();return!C&&((o=u.unmount)==null||o)&&!((i=u.static)!=null&&i)?R.createElement(Vn,{"aria-hidden":"true",...E}):D({ourProps:E,theirProps:u,slot:x,defaultTag:cp,features:up,visible:C,name:"Tabs.Panel"})}let fp=He(sp),h1=He(np),p1=He(op),m1=He(lp),g1=He(dp),hp=Object.assign(fp,{Group:h1,List:p1,Panels:m1,Panel:g1});const To=e=>l(h1,{...e,children:e.children}),Do=({children:e,className:t})=>l(p1,{className:t,children:e}),vr=({children:e,className:t,disabled:n,onClick:r,...o})=>l(hp,{onClick:r,className:t,disabled:!!n,...o,children:e}),Po=({children:e,className:t=""})=>l(m1,{className:t,children:e}),Wn=({children:e,className:t=""})=>l(g1,{className:t,children:e});var ts={exports:{}},pp={AED:"\u062F.\u0625",AFN:"\u060B",ALL:"L",AMD:"\u058F",ANG:"\u0192",AOA:"Kz",ARS:"$",AUD:"$",AWG:"\u0192",AZN:"\u20BC",BAM:"KM",BBD:"$",BDT:"\u09F3",BGN:"\u043B\u0432",BHD:".\u062F.\u0628",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BOV:"BOV",BRL:"R$",BSD:"$",BTC:"\u20BF",BTN:"Nu.",BWP:"P",BYN:"Br",BYR:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"$",CNH:"\xA5",CNY:"\xA5",COP:"$",COU:"COU",CRC:"\u20A1",CUC:"$",CUP:"\u20B1",CVE:"$",CZK:"K\u010D",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"\u062F\u062C",EEK:"kr",EGP:"\xA3",ERN:"Nfk",ETB:"Br",ETH:"\u039E",EUR:"\u20AC",FJD:"$",FKP:"\xA3",GBP:"\xA3",GEL:"\u20BE",GGP:"\xA3",GHC:"\u20B5",GHS:"GH\u20B5",GIP:"\xA3",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"\u20AA",IMP:"\xA3",INR:"\u20B9",IQD:"\u0639.\u062F",IRR:"\uFDFC",ISK:"kr",JEP:"\xA3",JMD:"J$",JOD:"JD",JPY:"\xA5",KES:"KSh",KGS:"\u043B\u0432",KHR:"\u17DB",KMF:"CF",KPW:"\u20A9",KRW:"\u20A9",KWD:"KD",KYD:"$",KZT:"\u20B8",LAK:"\u20AD",LBP:"\xA3",LKR:"\u20A8",LRD:"$",LSL:"M",LTC:"\u0141",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"\u0434\u0435\u043D",MMK:"K",MNT:"\u20AE",MOP:"MOP$",MRO:"UM",MRU:"UM",MUR:"\u20A8",MVR:"Rf",MWK:"MK",MXN:"$",MXV:"MXV",MYR:"RM",MZN:"MT",NAD:"$",NGN:"\u20A6",NIO:"C$",NOK:"kr",NPR:"\u20A8",NZD:"$",OMR:"\uFDFC",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"\u20B1",PKR:"\u20A8",PLN:"z\u0142",PYG:"Gs",QAR:"\uFDFC",RMB:"\uFFE5",RON:"lei",RSD:"\u0414\u0438\u043D.",RUB:"\u20BD",RWF:"R\u20A3",SAR:"\uFDFC",SBD:"$",SCR:"\u20A8",SDG:"\u062C.\u0633.",SEK:"kr",SGD:"S$",SHP:"\xA3",SLL:"Le",SOS:"S",SRD:"$",SSP:"\xA3",STD:"Db",STN:"Db",SVC:"$",SYP:"\xA3",SZL:"E",THB:"\u0E3F",TJS:"SM",TMT:"T",TND:"\u062F.\u062A",TOP:"T$",TRL:"\u20A4",TRY:"\u20BA",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"\u20B4",UGX:"USh",USD:"$",UYI:"UYI",UYU:"$U",UYW:"UYW",UZS:"\u043B\u0432",VEF:"Bs",VES:"Bs.S",VND:"\u20AB",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"\u0243",XCD:"$",XOF:"CFA",XPF:"\u20A3",XSU:"Sucre",XUA:"XUA",YER:"\uFDFC",ZAR:"R",ZMW:"ZK",ZWD:"Z$",ZWL:"$"};const ns=pp;ts.exports=function(t){if(typeof t!="string")return;const n=t.toUpperCase();if(Object.prototype.hasOwnProperty.call(ns,n))return ns[n]},ts.exports.currencySymbolMap=ns;var mp=ts.exports,gp=Ur(mp);const rs={"xx-small":"px-[6px] h-[25px]","x-small":"px-[12px] h-[36px]",small:"px-[16px] h-[40px]",medium:"px-[20px] h-[52px]",large:"px-[24px] h-[60px]"},yp={small:"max-w-[518px]",medium:"max-w-[641px]",large:"max-w-[830px]",extralarge:"max-w-[940px]"},vp={small:"h-[20px] min-w-[20px] text-xs",medium:"h-[36px] min-w-[36px] text-sm"},os=(...e)=>e.filter(Boolean).join(" "),Ao=e=>{const t=e?.includes("T"),n=new Date(e),r={month:"short",day:"numeric",year:"numeric"};t&&(r.hour="numeric",r.minute="2-digit",r.hour12=!0);let o=n.toLocaleString("en",r);return t&&(o=o.replace(/ AM| PM/,i=>i.toLowerCase()),o=o.replace(/,(?=\s\d{1,2}:\d{2})/,"")),o},vt=e=>e?Ao(e.split("T")[0]):"nil",Tt=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",bp=e=>{if(!e)return{};const{address_line1:t,address_line2:n,city:r,state:o,country:i,zip_code:s}=e;return{address:[t,n,r,o,i].filter(Boolean).join(", "),zipCode:s}},y1=e=>{if(!e)return{};const{address_line_one:t,address_line_two:n,city:r,state:o,country:i,zip_code:s}=e;return{address:[t,n,r,o,i].filter(Boolean).join(", "),zipCode:s}},Kt=e=>gp(e),wp=(e,t)=>{if(!e)return t;const{line1:n,line2:r,city:o,state:i,country:s,zip_code:a}=e,c=[n,r,o,i,s&&Tt(s),a].filter(Boolean);return c.length>0?c.join(", "):t},Cp={body1:"font-regular text-[25px] leading-[120%]",body2:"font-regular text-[20px] leading-[120%]",body3:"font-light text-[20px] leading-[120%]",body4:"font-regular text-[16px] leading-[140%]",body5:"font-light text-[16px] leading-[120%]",body6:"font-regular text-[13px] leading-[120%]",body7:"font-light text-[13px] leading-[120%]",body8:"font-regular text-[10px] leading-[120%]",body9:"font-light text-[10px] leading-[120%]"},j=({variant:e,className:t,as:n="p",children:r,color:o})=>l(n,{className:os(Cp[e],o,t),children:r}),xp={label1:"font-medium text-[61px] leading-[120%] block",label2:"font-medium text-[49px] leading-[120%] block",label3:"font-medium text-[39px] leading-[120%] block",label4:"font-medium text-[31px] leading-[120%] block",label5:"font-medium text-[25px] leading-[120%] block",label6:"font-medium text-[20px] leading-[120%] block",label7:"font-medium text-[16px] leading-[120%] block",label8:"font-medium text-[13px] leading-[120%] block",label9:"font-medium text-[10px] leading-[120%] block"},Z=({variant:e,className:t,as:n="span",children:r,color:o})=>l(n,{className:os(xp[e],o,t),children:r}),kp={h1:"font-bold text-[61px] leading-[140%]",h2:"font-bold text-[49px] leading-[140%]",h3:"font-bold text-[39px] leading-[140%]",h4:"font-bold text-[31px] leading-[140%]",h5:"font-bold text-[25px] leading-[140%]",h6:"font-bold text-[20px] leading-[140%]",h7:"font-bold text-[16px] leading-[140%]",h8:"font-bold text-[13px] leading-[140%]",h9:"font-bold text-[10px] leading-[140%]"},is=({variant:e,className:t,as:n="h1",children:r,color:o})=>l(n,{className:os(kp[e],o,t),children:r}),Lp=async({customerKey:e})=>{const{data:t}=await gt().get(`/sdk/customers/${e}/details`);return t},Ep=({customerKey:e})=>{const[t,n]=K(null),[r,o]=K(null),[i,s]=K(!1),a=async()=>{if(!e)return o("Missing customerKey");s(!0);try{const c=await Lp({customerKey:e});n(c?.data),o(null)}catch(c){const u=c,d=u?.response?.data?.data?.error||u?.message;o(d||"Failed to load customer details")}finally{s(!1)}};return te(()=>{a()},[e]),{customerDetails:t,error:r,isLoading:i,refetch:a}},Mp=async({customerKey:e})=>{const{data:t}=await gt().get(`/sdk/credit_systems/wallets/${e}`);return t},Sp=({customerKey:e})=>{const[t,n]=K(null),[r,o]=K(null),[i,s]=K(!1),a=async()=>{if(!e)return o("Missing customerKey");s(!0);try{const c=await Mp({customerKey:e});n(c?.data),o(null)}catch(c){const u=c,d=u?.response?.data?.data?.error||u?.message;o(d||"Failed to load customer wallet")}finally{s(!1)}};return te(()=>{a()},[e]),{customerWallets:t,error:r,isLoading:i,refetch:a}},Un=El(e=>({customerKey:"",setCustomerKey:t=>e({customerKey:t}),customerRefetch:()=>{},setCustomerRefetch:t=>e({customerRefetch:t}),plans:[],setPlans:t=>e({plans:t})}));var v1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Qt,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",a="minute",c="hour",u="day",d="week",f="month",h="quarter",m="year",p="date",y="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var $=["th","st","nd","rd"],M=A%100;return"["+A+($[(M-20)%10]||$[M]||$[0])+"]"}},b=function(A,$,M){var P=String(A);return!P||P.length>=$?A:""+Array($+1-P.length).join(M)+A},L={s:b,z:function(A){var $=-A.utcOffset(),M=Math.abs($),P=Math.floor(M/60),S=M%60;return($<=0?"+":"-")+b(P,2,"0")+":"+b(S,2,"0")},m:function A($,M){if($.date()<M.date())return-A(M,$);var P=12*(M.year()-$.year())+(M.month()-$.month()),S=$.clone().add(P,f),_=M-S<0,V=$.clone().add(P+(_?-1:1),f);return+(-(P+(M-S)/(_?S-V:V-S))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:f,y:m,w:d,d:u,D:p,h:c,m:a,s,ms:i,Q:h}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},x="en",E={};E[x]=C;var D="$isDayjsObject",N=function(A){return A instanceof Y||!(!A||!A[D])},W=function A($,M,P){var S;if(!$)return x;if(typeof $=="string"){var _=$.toLowerCase();E[_]&&(S=_),M&&(E[_]=M,S=_);var V=$.split("-");if(!S&&V.length>1)return A(V[0])}else{var U=$.name;E[U]=$,S=U}return!P&&S&&(x=S),S||!P&&x},O=function(A,$){if(N(A))return A.clone();var M=typeof $=="object"?$:{};return M.date=A,M.args=arguments,new Y(M)},B=L;B.l=W,B.i=N,B.w=function(A,$){return O(A,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var Y=function(){function A(M){this.$L=W(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[D]=!0}var $=A.prototype;return $.parse=function(M){this.$d=function(P){var S=P.date,_=P.utc;if(S===null)return new Date(NaN);if(B.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var V=S.match(v);if(V){var U=V[2]-1||0,q=(V[7]||"0").substring(0,3);return _?new Date(Date.UTC(V[1],U,V[3]||1,V[4]||0,V[5]||0,V[6]||0,q)):new Date(V[1],U,V[3]||1,V[4]||0,V[5]||0,V[6]||0,q)}}return new Date(S)}(M),this.init()},$.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},$.$utils=function(){return B},$.isValid=function(){return this.$d.toString()!==y},$.isSame=function(M,P){var S=O(M);return this.startOf(P)<=S&&S<=this.endOf(P)},$.isAfter=function(M,P){return O(M)<this.startOf(P)},$.isBefore=function(M,P){return this.endOf(P)<O(M)},$.$g=function(M,P,S){return B.u(M)?this[P]:this.set(S,M)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(M,P){var S=this,_=!!B.u(P)||P,V=B.p(M),U=function(le,ae){var pe=B.w(S.$u?Date.UTC(S.$y,ae,le):new Date(S.$y,ae,le),S);return _?pe:pe.endOf(u)},q=function(le,ae){return B.w(S.toDate()[le].apply(S.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice(ae)),S)},I=this.$W,F=this.$M,H=this.$D,ne="set"+(this.$u?"UTC":"");switch(V){case m:return _?U(1,0):U(31,11);case f:return _?U(1,F):U(0,F+1);case d:var ie=this.$locale().weekStart||0,X=(I<ie?I+7:I)-ie;return U(_?H-X:H+(6-X),F);case u:case p:return q(ne+"Hours",0);case c:return q(ne+"Minutes",1);case a:return q(ne+"Seconds",2);case s:return q(ne+"Milliseconds",3);default:return this.clone()}},$.endOf=function(M){return this.startOf(M,!1)},$.$set=function(M,P){var S,_=B.p(M),V="set"+(this.$u?"UTC":""),U=(S={},S[u]=V+"Date",S[p]=V+"Date",S[f]=V+"Month",S[m]=V+"FullYear",S[c]=V+"Hours",S[a]=V+"Minutes",S[s]=V+"Seconds",S[i]=V+"Milliseconds",S)[_],q=_===u?this.$D+(P-this.$W):P;if(_===f||_===m){var I=this.clone().set(p,1);I.$d[U](q),I.init(),this.$d=I.set(p,Math.min(this.$D,I.daysInMonth())).$d}else U&&this.$d[U](q);return this.init(),this},$.set=function(M,P){return this.clone().$set(M,P)},$.get=function(M){return this[B.p(M)]()},$.add=function(M,P){var S,_=this;M=Number(M);var V=B.p(P),U=function(F){var H=O(_);return B.w(H.date(H.date()+Math.round(F*M)),_)};if(V===f)return this.set(f,this.$M+M);if(V===m)return this.set(m,this.$y+M);if(V===u)return U(1);if(V===d)return U(7);var q=(S={},S[a]=r,S[c]=o,S[s]=n,S)[V]||1,I=this.$d.getTime()+M*q;return B.w(I,this)},$.subtract=function(M,P){return this.add(-1*M,P)},$.format=function(M){var P=this,S=this.$locale();if(!this.isValid())return S.invalidDate||y;var _=M||"YYYY-MM-DDTHH:mm:ssZ",V=B.z(this),U=this.$H,q=this.$m,I=this.$M,F=S.weekdays,H=S.months,ne=S.meridiem,ie=function(ae,pe,ee,J){return ae&&(ae[pe]||ae(P,_))||ee[pe].slice(0,J)},X=function(ae){return B.s(U%12||12,ae,"0")},le=ne||function(ae,pe,ee){var J=ae<12?"AM":"PM";return ee?J.toLowerCase():J};return _.replace(w,function(ae,pe){return pe||function(ee){switch(ee){case"YY":return String(P.$y).slice(-2);case"YYYY":return B.s(P.$y,4,"0");case"M":return I+1;case"MM":return B.s(I+1,2,"0");case"MMM":return ie(S.monthsShort,I,H,3);case"MMMM":return ie(H,I);case"D":return P.$D;case"DD":return B.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return ie(S.weekdaysMin,P.$W,F,2);case"ddd":return ie(S.weekdaysShort,P.$W,F,3);case"dddd":return F[P.$W];case"H":return String(U);case"HH":return B.s(U,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return le(U,q,!0);case"A":return le(U,q,!1);case"m":return String(q);case"mm":return B.s(q,2,"0");case"s":return String(P.$s);case"ss":return B.s(P.$s,2,"0");case"SSS":return B.s(P.$ms,3,"0");case"Z":return V}return null}(ae)||V.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(M,P,S){var _,V=this,U=B.p(P),q=O(M),I=(q.utcOffset()-this.utcOffset())*r,F=this-q,H=function(){return B.m(V,q)};switch(U){case m:_=H()/12;break;case f:_=H();break;case h:_=H()/3;break;case d:_=(F-I)/6048e5;break;case u:_=(F-I)/864e5;break;case c:_=F/o;break;case a:_=F/r;break;case s:_=F/n;break;default:_=F}return S?_:B.a(_)},$.daysInMonth=function(){return this.endOf(f).$D},$.$locale=function(){return E[this.$L]},$.locale=function(M,P){if(!M)return this.$L;var S=this.clone(),_=W(M,P,!0);return _&&(S.$L=_),S},$.clone=function(){return B.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},A}(),z=Y.prototype;return O.prototype=z,[["$ms",i],["$s",s],["$m",a],["$H",c],["$W",u],["$M",f],["$y",m],["$D",p]].forEach(function(A){z[A[1]]=function($){return this.$g($,A[0],A[1])}}),O.extend=function(A,$){return A.$i||(A($,Y,O),A.$i=!0),O},O.locale=W,O.isDayjs=N,O.unix=function(A){return O(1e3*A)},O.en=E[x],O.Ls=E,O.p={},O})})(v1);var Tp=v1.exports,b1=Ur(Tp);const Dp={amber:{50:"#FFF6E5",100:"#FFEDCC",500:"#FFA500",800:"#664200"},neutral:{100:"#F5F5F5",200:"#E5E5E5",400:"#A3A3A3",500:"#737373",800:"#262626",900:"#171717"},grey:{50:"#FAFAFA",100:"#F4F4F5",200:"#E4E4E7",300:"#D4D4D8",400:"#A1A1AA",500:"#71717A",600:"#52525B",700:"#3F3F46",800:"#27272A",900:"#18181B"},slate:{800:"#1E293B"},base:{danger:"#F31260",default:{600:"#52525B"}},cool:{orange:{50:"#FEF1EB",100:"#FCDFD7"}},bright:{orange:{50:"#FDEFEB"}},red:{100:"#FFE5E5",500:"#E60000",600:"#CF2140",900:"#2C030B"},pink:{100:"#FFE5F5",500:"#FF55C0",600:"#EC4899"},purple:{100:"#F0EEFE",500:"#705BFA"},green:{100:"#E9FFD4",200:"#E6F7EA",500:"#6FE200",600:"#0BB02F"},orange:{50:"#FFF6E5",100:"#FFEFD6",400:"#FFB733",500:"#FF9D00"},blue:{50:"#E5F2FF",500:"#007BFF"},metrifox:{primary:"#3D3D3D",secondary:"#DEF764",blue:"#006FEE",black:"#0F0F0F",success:"#17C964",white:"#FFFFFF",dark:"#191919",danger:"#DE1135",warning:"#F5A524"},foreground:{primary:"#0F172A",secondary:"#78716C",disabled:"#A8A29E"},stroke:{system:{primary:"#E7E5E4"}},background:{system:{primary:"#FFFFFF",disabled:"#E7E5E4",secondary:"#E8E9EE",light:"#FFFDFB"}},secondary:{light:"#FFFDFB"},rose:{50:"#FFF1F2"},lime:{50:"#F7FEE7",100:"#EDFF96",500:"#9DBD00",600:"#65A30D"},cyan:{500:"#06B6D4"}},Pp={colors:Dp},Ap=Pp.colors,Np=e=>{if(/^#([0-9A-Fa-f]{3}){1,2}$/.test(e))return e;const t=e.split("-");let n=Ap;for(const r of t)if(n&&typeof n=="object"&&r in n)n=n[r];else return;return typeof n=="string"?n:void 0},Rp={"danger-filled":l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:l("path",{d:"M21.76 15.92 15.36 4.4C14.5 2.85 13.31 2 12 2s-2.5.85-3.36 2.4l-6.4 11.52c-.81 1.47-.9 2.88-.25 3.99.65 1.11 1.93 1.72 3.61 1.72h12.8c1.68 0 2.96-.61 3.61-1.72.65-1.11.56-2.53-.25-3.99ZM11.25 9c0-.41.34-.75.75-.75s.75.34.75.75v5c0 .41-.34.75-.75.75s-.75-.34-.75-.75V9Zm1.46 8.71-.15.12c-.06.04-.12.07-.18.09-.06.03-.12.05-.19.06-.06.01-.13.02-.19.02s-.13-.01-.2-.02a.636.636 0 0 1-.18-.06.757.757 0 0 1-.18-.09l-.15-.12c-.18-.19-.29-.45-.29-.71 0-.26.11-.52.29-.71l.15-.12c.06-.04.12-.07.18-.09.06-.03.12-.05.18-.06.13-.03.27-.03.39 0 .07.01.13.03.19.06.06.02.12.05.18.09l.15.12c.18.19.29.45.29.71 0 .26-.11.52-.29.71Z"})}),"eye-slash-filled":g("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M21.271 9.178c-.29-.46-.6-.89-.92-1.29a1 1 0 0 0-1.49-.09l-3 3c.22.66.26 1.42.06 2.21a4.021 4.021 0 0 1-2.9 2.9c-.79.2-1.55.16-2.21-.06l-2.46 2.46c-.5.5-.34 1.38.33 1.64 1.07.41 2.18.62 3.32.62 1.78 0 3.51-.52 5.09-1.49 1.61-1 3.06-2.47 4.23-4.34.95-1.51.9-4.05-.05-5.56ZM14.02 9.98l-4.04 4.04c-.51-.52-.84-1.24-.84-2.02 0-1.57 1.28-2.86 2.86-2.86.78 0 1.5.33 2.02.84Z"}),l("path",{d:"m18.25 5.75-3.39 3.39A3.986 3.986 0 0 0 12 7.96c-2.24 0-4.04 1.81-4.04 4.04 0 1.12.45 2.13 1.18 2.86l-3.38 3.39h-.01c-1.11-.9-2.13-2.05-3-3.41-1-1.57-1-4.12 0-5.69C3.91 7.33 5.33 5.9 6.91 4.92c1.58-.96 3.31-1.49 5.09-1.49 2.23 0 4.39.82 6.25 2.32ZM14.858 11.998c0 1.57-1.28 2.86-2.86 2.86-.06 0-.11 0-.17-.02l3.01-3.01c.02.06.02.11.02.17Z"}),l("path",{d:"M21.769 2.229c-.3-.3-.79-.3-1.09 0l-18.45 18.46c-.3.3-.3.79 0 1.09a.758.758 0 0 0 1.08-.01l18.46-18.46c.31-.3.31-.78 0-1.08Z"})]}),"eye-filled":g("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M21.25 9.15C18.94 5.52 15.56 3.43 12 3.43c-1.78 0-3.51.52-5.09 1.49-1.58.98-3 2.41-4.16 4.23-1 1.57-1 4.12 0 5.69 2.31 3.64 5.69 5.72 9.25 5.72 1.78 0 3.51-.52 5.09-1.49 1.58-.98 3-2.41 4.16-4.23 1-1.56 1-4.12 0-5.69ZM12 16.04c-2.24 0-4.04-1.81-4.04-4.04S9.76 7.96 12 7.96s4.04 1.81 4.04 4.04-1.8 4.04-4.04 4.04Z"}),l("path",{d:"M11.998 9.14a2.855 2.855 0 0 0 0 5.71c1.57 0 2.86-1.28 2.86-2.85s-1.29-2.86-2.86-2.86Z"})]}),"check-circle-filled":l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:l("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2Zm4.78 7.7-5.67 5.67a.75.75 0 0 1-1.06 0l-2.83-2.83a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l2.3 2.3 5.14-5.14c.29-.29.77-.29 1.06 0 .29.29.29.76 0 1.06Z"})}),check:l("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M10 3L4.5 8.5L2 6",stroke:"#currentColor",strokeWidth:"1.6666",strokeLinecap:"round",strokeLinejoin:"round"})}),home:g("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M12 18.75c-.41 0-.75-.34-.75-.75v-3c0-.41.34-.75.75-.75s.75.34.75.75v3c0 .41-.34.75-.75.75Z"}),l("path",{d:"M17.6 22.56H6.4c-1.82 0-3.48-1.4-3.78-3.19L1.29 11.4c-.22-1.24.39-2.83 1.38-3.62L9.6 2.23c1.34-1.08 3.45-1.07 4.8.01l6.93 5.54c.98.79 1.58 2.38 1.38 3.62l-1.33 7.96c-.3 1.77-2 3.2-3.78 3.2ZM11.99 2.93c-.53 0-1.06.16-1.45.47L3.61 8.96c-.56.45-.96 1.49-.84 2.2l1.33 7.96c.18 1.05 1.23 1.94 2.3 1.94h11.2c1.07 0 2.12-.89 2.3-1.95l1.33-7.96c.11-.7-.29-1.76-.84-2.2l-6.93-5.54c-.4-.32-.94-.48-1.47-.48Z"})]}),task:g("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M17.62 9.621h-5.25c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h5.25a.749.749 0 1 1 0 1.5ZM7.12 10.38c-.19 0-.38-.07-.53-.22l-.75-.75a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l.22.22 1.72-1.72c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06l-2.25 2.25a.75.75 0 0 1-.53.22ZM17.62 16.621h-5.25c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h5.25a.749.749 0 1 1 0 1.5ZM7.12 17.38c-.19 0-.38-.07-.53-.22l-.75-.75a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l.22.22 1.72-1.72c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06l-2.25 2.25a.75.75 0 0 1-.53.22Z"}),l("path",{d:"M15 22.75H9c-5.43 0-7.75-2.32-7.75-7.75V9c0-5.43 2.32-7.75 7.75-7.75h6c5.43 0 7.75 2.32 7.75 7.75v6c0 5.43-2.32 7.75-7.75 7.75Zm-6-20C4.39 2.75 2.75 4.39 2.75 9v6c0 4.61 1.64 6.25 6.25 6.25h6c4.61 0 6.25-1.64 6.25-6.25V9c0-4.61-1.64-6.25-6.25-6.25H9Z"})]}),money:g("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M17 21.25H7c-3.65 0-5.75-2.1-5.75-5.75v-7c0-3.65 2.1-5.75 5.75-5.75h10c3.65 0 5.75 2.1 5.75 5.75v7c0 3.65-2.1 5.75-5.75 5.75Zm-10-17c-2.86 0-4.25 1.39-4.25 4.25v7c0 2.86 1.39 4.25 4.25 4.25h10c2.86 0 4.25-1.39 4.25-4.25v-7c0-2.86-1.39-4.25-4.25-4.25H7Z"}),l("path",{d:"M12 15.75c-2.07 0-3.75-1.68-3.75-3.75 0-2.07 1.68-3.75 3.75-3.75 2.07 0 3.75 1.68 3.75 3.75 0 2.07-1.68 3.75-3.75 3.75Zm0-6c-1.24 0-2.25 1.01-2.25 2.25s1.01 2.25 2.25 2.25 2.25-1.01 2.25-2.25S13.24 9.75 12 9.75ZM5.5 15.25c-.41 0-.75-.34-.75-.75v-5c0-.41.34-.75.75-.75s.75.34.75.75v5c0 .41-.34.75-.75.75ZM18.5 15.25c-.41 0-.75-.34-.75-.75v-5c0-.41.34-.75.75-.75s.75.34.75.75v5c0 .41-.34.75-.75.75Z"})]}),people:l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:l("path",{d:"M18 7.912h-.13c-1.89-.06-3.3-1.52-3.3-3.32 0-1.84 1.5-3.33 3.33-3.33s3.33 1.5 3.33 3.33a3.327 3.327 0 0 1-3.22 3.33c0-.01 0-.01-.01-.01Zm-.1-5.16c-1.01 0-1.83.82-1.83 1.83 0 .99.77 1.79 1.76 1.83.01-.01.09-.01.18 0a1.832 1.832 0 0 0-.11-3.66ZM18.009 15.28c-.39 0-.78-.03-1.17-.1a.75.75 0 0 1-.61-.87.75.75 0 0 1 .87-.61c1.23.21 2.53-.02 3.4-.6.47-.31.72-.7.72-1.09 0-.39-.26-.77-.72-1.08-.87-.58-2.19-.81-3.43-.59-.41.08-.8-.2-.87-.61-.07-.41.2-.8.61-.87 1.63-.29 3.32.02 4.52.82.88.59 1.39 1.43 1.39 2.33 0 .89-.5 1.74-1.39 2.34-.91.6-2.09.93-3.32.93ZM5.97 7.91h-.02a3.324 3.324 0 0 1-3.22-3.32c0-1.84 1.5-3.34 3.33-3.34s3.33 1.5 3.33 3.33c0 1.81-1.41 3.27-3.21 3.33l-.21-.75.07.75h-.07Zm.1-1.5c.06 0 .11 0 .17.01.89-.04 1.67-.84 1.67-1.83a1.83 1.83 0 1 0-1.93 1.83c.01-.01.05-.01.09-.01ZM5.96 15.28c-1.23 0-2.41-.33-3.32-.93-.88-.59-1.39-1.44-1.39-2.34 0-.89.51-1.74 1.39-2.33 1.2-.8 2.89-1.11 4.52-.82.41.07.68.46.61.87-.07.41-.46.69-.87.61-1.24-.22-2.55.01-3.43.59-.47.31-.72.69-.72 1.08 0 .39.26.78.72 1.09.87.58 2.17.81 3.4.6.41-.07.8.21.87.61.07.41-.2.8-.61.87-.39.07-.78.1-1.17.1ZM12 15.38h-.13c-1.89-.06-3.3-1.52-3.3-3.32 0-1.84 1.5-3.33 3.33-3.33s3.33 1.5 3.33 3.33a3.327 3.327 0 0 1-3.22 3.33c0-.01 0-.01-.01-.01Zm-.1-5.16c-1.01 0-1.83.82-1.83 1.83 0 .99.77 1.79 1.76 1.83.01-.01.09-.01.18 0 .97-.05 1.72-.85 1.73-1.83 0-1-.82-1.83-1.84-1.83ZM12.001 22.759c-1.2 0-2.4-.31-3.33-.94-.88-.59-1.39-1.43-1.39-2.33 0-.89.5-1.75 1.39-2.34 1.87-1.24 4.8-1.24 6.66 0 .88.59 1.39 1.43 1.39 2.33 0 .89-.5 1.75-1.39 2.34-.93.62-2.13.94-3.33.94Zm-2.5-4.35c-.47.31-.72.7-.72 1.09 0 .39.26.77.72 1.08 1.35.91 3.64.91 4.99 0 .47-.31.72-.7.72-1.09 0-.39-.26-.77-.72-1.08-1.34-.91-3.63-.9-4.99 0Z"})}),bill:g("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M12 22.252c-.82 0-1.64-.26-2.32-.77l-5.21-3.9a3.903 3.903 0 0 1-1.55-3.1V1.762h18.16v12.72c0 1.21-.58 2.37-1.55 3.1l-5.21 3.9c-.68.51-1.5.77-2.32.77Zm-7.58-19v11.22c0 .74.36 1.45.95 1.9l5.21 3.9c.84.63 2.01.63 2.85 0l5.21-3.9c.59-.45.95-1.16.95-1.9V3.252H4.42Z"}),l("path",{d:"M22 3.25H2c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h20c.41 0 .75.34.75.75s-.34.75-.75.75ZM16 8.75H8c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h8c.41 0 .75.34.75.75s-.34.75-.75.75ZM16 13.75H8c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h8c.41 0 .75.34.75.75s-.34.75-.75.75Z"})]}),"category-2":l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:l("path",{d:"M19 10.75h-2c-2.42 0-3.75-1.33-3.75-3.75V5c0-2.42 1.33-3.75 3.75-3.75h2c2.42 0 3.75 1.33 3.75 3.75v2c0 2.42-1.33 3.75-3.75 3.75Zm-2-8c-1.58 0-2.25.67-2.25 2.25v2c0 1.58.67 2.25 2.25 2.25h2c1.58 0 2.25-.67 2.25-2.25V5c0-1.58-.67-2.25-2.25-2.25h-2ZM7 22.75H5c-2.42 0-3.75-1.33-3.75-3.75v-2c0-2.42 1.33-3.75 3.75-3.75h2c2.42 0 3.75 1.33 3.75 3.75v2c0 2.42-1.33 3.75-3.75 3.75Zm-2-8c-1.58 0-2.25.67-2.25 2.25v2c0 1.58.67 2.25 2.25 2.25h2c1.58 0 2.25-.67 2.25-2.25v-2c0-1.58-.67-2.25-2.25-2.25H5ZM6 10.75c-2.62 0-4.75-2.13-4.75-4.75S3.38 1.25 6 1.25 10.75 3.38 10.75 6 8.62 10.75 6 10.75Zm0-8C4.21 2.75 2.75 4.21 2.75 6S4.21 9.25 6 9.25 9.25 7.79 9.25 6 7.79 2.75 6 2.75ZM18 22.75c-2.62 0-4.75-2.13-4.75-4.75s2.13-4.75 4.75-4.75 4.75 2.13 4.75 4.75-2.13 4.75-4.75 4.75Zm0-8c-1.79 0-3.25 1.46-3.25 3.25s1.46 3.25 3.25 3.25 3.25-1.46 3.25-3.25-1.46-3.25-3.25-3.25Z"})}),"money-add":g("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M12 15.25c-1.79 0-3.25-1.46-3.25-3.25S10.21 8.75 12 8.75s3.25 1.46 3.25 3.25-1.46 3.25-3.25 3.25Zm0-5c-.96 0-1.75.79-1.75 1.75s.79 1.75 1.75 1.75 1.75-.79 1.75-1.75-.79-1.75-1.75-1.75ZM18.5 15.25c-.41 0-.75-.34-.75-.75v-5c0-.41.34-.75.75-.75s.75.34.75.75v5c0 .41-.34.75-.75.75ZM5 22.75c-1.66 0-3.22-.88-4.06-2.31C.49 19.72.25 18.87.25 18c0-2.62 2.13-4.75 4.75-4.75S9.75 15.38 9.75 18c0 .87-.24 1.72-.69 2.45-.84 1.42-2.4 2.3-4.06 2.3Zm0-8c-1.79 0-3.25 1.46-3.25 3.25 0 .59.16 1.17.47 1.67.58.98 1.65 1.58 2.78 1.58A3.256 3.256 0 0 0 8.25 18c0-1.79-1.46-3.25-3.25-3.25Z"}),l("path",{d:"M6.498 18.73h-2.99c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h2.99c.41 0 .75.34.75.75s-.34.75-.75.75Z"}),l("path",{d:"M5 20.26c-.41 0-.75-.34-.75-.75v-2.99c0-.41.34-.75.75-.75s.75.34.75.75v2.99c0 .42-.34.75-.75.75Z"}),l("path",{d:"M17 20.75H8.5c-.41 0-.75-.34-.75-.75s.34-.75.75-.75H17c2.86 0 4.25-1.39 4.25-4.25V9c0-2.86-1.39-4.25-4.25-4.25H7C4.14 4.75 2.75 6.14 2.75 9v6.3c0 .41-.34.75-.75.75s-.75-.34-.75-.75V9c0-3.65 2.1-5.75 5.75-5.75h10c3.65 0 5.75 2.1 5.75 5.75v6c0 3.65-2.1 5.75-5.75 5.75Z"})]}),"money-time":g("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M12 15.25c-1.79 0-3.25-1.46-3.25-3.25S10.21 8.75 12 8.75s3.25 1.46 3.25 3.25-1.46 3.25-3.25 3.25Zm0-5c-.96 0-1.75.79-1.75 1.75s.79 1.75 1.75 1.75 1.75-.79 1.75-1.75-.79-1.75-1.75-1.75ZM18.5 15.25c-.41 0-.75-.34-.75-.75v-5c0-.41.34-.75.75-.75s.75.34.75.75v5c0 .41-.34.75-.75.75ZM5 22.75C2.38 22.75.25 20.62.25 18S2.38 13.25 5 13.25 9.75 15.38 9.75 18 7.62 22.75 5 22.75Zm0-8c-1.79 0-3.25 1.46-3.25 3.25S3.21 21.25 5 21.25 8.25 19.79 8.25 18 6.79 14.75 5 14.75Z"}),l("path",{d:"M4 19.752c-.25 0-.5-.13-.64-.36-.21-.35-.1-.82.26-1.03l.76-.46c.07-.04.12-.13.12-.21v-.93c0-.41.34-.75.75-.75s.75.34.75.75v.93c0 .61-.33 1.19-.85 1.5l-.76.46c-.12.07-.26.1-.39.1Z"}),l("path",{d:"M17 20.75H8.5c-.41 0-.75-.34-.75-.75s.34-.75.75-.75H17c2.86 0 4.25-1.39 4.25-4.25V9c0-2.86-1.39-4.25-4.25-4.25H7C4.14 4.75 2.75 6.14 2.75 9v6.2c0 .41-.34.75-.75.75s-.75-.34-.75-.75V9c0-3.65 2.1-5.75 5.75-5.75h10c3.65 0 5.75 2.1 5.75 5.75v6c0 3.65-2.1 5.75-5.75 5.75Z"})]}),"arrow-down":l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:l("path",{d:"M17.919 8.18H6.079c-.96 0-1.44 1.16-.76 1.84l5.18 5.18c.83.83 2.18.83 3.01 0l1.97-1.97 3.21-3.21c.67-.68.19-1.84-.77-1.84z"})}),"arrow-down-linear":l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",children:l("path",{stroke:"#currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.5",d:"M19.92 8.95l-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95"})}),"arrow-right":g("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M12.525 5.44167L17.5833 10.5L12.525 15.5583",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M3.41666 10.5H17.4417",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),"code-circle":g("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M8 14.751c-.19 0-.38-.07-.53-.22l-2-2a.755.755 0 0 1 0-1.06l2-2c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06l-1.47 1.47 1.47 1.47c.29.29.29.77 0 1.06-.15.15-.34.22-.53.22ZM16 14.751c-.19 0-.38-.07-.53-.22a.755.755 0 0 1 0-1.06l1.47-1.47-1.47-1.47a.755.755 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l2 2c.29.29.29.77 0 1.06l-2 2c-.15.15-.34.22-.53.22Z"}),l("path",{d:"M12 22.75C6.07 22.75 1.25 17.93 1.25 12S6.07 1.25 12 1.25 22.75 6.07 22.75 12 17.93 22.75 12 22.75Zm0-20C6.9 2.75 2.75 6.9 2.75 12S6.9 21.25 12 21.25s9.25-4.15 9.25-9.25S17.1 2.75 12 2.75Z"}),l("path",{d:"M11 15.08a.745.745 0 0 1-.68-1.05l2-4.67c.16-.38.6-.56.98-.39.38.16.56.6.39.99l-2 4.67c-.12.28-.4.45-.69.45Z"})]}),"note-2":g("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M15.808 20.179c-.26 0-.53-.01-.82-.04-.52-.04-1.11-.14-1.72-.29l-1.68-.4c-4.61-1.09-6.12-3.53-5.04-8.13l.98-4.19c.22-.95.48-1.72.8-2.36 1.72-3.55 5.01-3.23 7.35-2.68l1.67.39c2.34.55 3.82 1.42 4.65 2.75.82 1.33.95 3.04.4 5.38l-.98 4.18c-.86 3.66-2.65 5.39-5.61 5.39Zm-2.69-16.93c-1.67 0-2.73.69-3.44 2.17-.26.54-.49 1.21-.69 2.05l-.98 4.19c-.89 3.78.14 5.43 3.92 6.33l1.68.4c.54.13 1.05.21 1.51.25 2.72.27 4.07-.92 4.83-4.19l.98-4.18c.45-1.93.39-3.28-.21-4.25-.6-.97-1.78-1.63-3.72-2.08l-1.67-.39c-.83-.2-1.57-.3-2.21-.3Z"}),l("path",{d:"M8.33 22.252c-2.57 0-4.21-1.54-5.26-4.79l-1.28-3.95c-1.42-4.4-.15-6.88 4.23-8.3l1.58-.51c.52-.16.91-.27 1.26-.33.29-.06.57.05.74.28.17.23.2.53.08.79-.26.53-.49 1.2-.68 2.04l-.98 4.19c-.89 3.78.14 5.43 3.92 6.33l1.68.4c.54.13 1.05.21 1.51.25.32.03.58.25.67.56.08.31-.04.63-.3.81-.66.45-1.49.83-2.54 1.17l-1.58.52c-1.15.36-2.15.54-3.05.54Zm-.55-16.03-1.29.42c-3.57 1.15-4.42 2.83-3.27 6.41l1.28 3.95c1.16 3.57 2.84 4.43 6.41 3.28l1.58-.52c.06-.02.11-.04.17-.06l-1.06-.25c-4.61-1.09-6.12-3.53-5.04-8.13l.98-4.19c.07-.32.15-.63.24-.91ZM17.49 10.512c-.06 0-.12-.01-.19-.02l-4.85-1.23a.75.75 0 0 1 .37-1.45l4.85 1.23a.748.748 0 0 1-.18 1.47Z"}),l("path",{d:"M14.561 13.889c-.06 0-.12-.01-.19-.02l-2.91-.74a.75.75 0 0 1 .37-1.45l2.91.74c.4.1.64.51.54.91-.08.34-.38.56-.72.56Z"})]}),"note-add-bulk":g("svg",{width:"73",height:"72",viewBox:"0 0 73 72",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{opacity:"0.4",d:"M22.61 66H50.36C58.43 66 64.97 59.46 64.97 51.39V25.11C64.97 17.04 58.43 10.5 50.36 10.5H22.61C14.54 10.5 8 17.04 8 25.11V51.36C8 59.46 14.54 66 22.61 66Z",fill:"#currentColor"}),l("path",{d:"M25.3672 18.87C24.1072 18.87 23.1172 17.85 23.1172 16.62V8.25C23.1172 7.02 24.1072 6 25.3672 6C26.6272 6 27.6172 7.02 27.6172 8.25V16.59C27.6172 17.85 26.6272 18.87 25.3672 18.87Z",fill:"#currentColor"}),l("path",{d:"M47.6328 18.87C46.3728 18.87 45.3828 17.85 45.3828 16.62V8.25C45.3828 6.99 46.4028 6 47.6328 6C48.8928 6 49.8828 7.02 49.8828 8.25V16.59C49.8828 17.85 48.8928 18.87 47.6328 18.87Z",fill:"#currenColor"}),l("path",{d:"M36.5 44.25H31.43V39C31.43 37.77 30.41 36.75 29.18 36.75C27.95 36.75 26.93 37.77 26.93 39V44.25H21.5C20.27 44.25 19.25 45.27 19.25 46.5C19.25 47.73 20.27 48.75 21.5 48.75H26.93V54C26.93 55.23 27.95 56.25 29.18 56.25C30.41 56.25 31.43 55.23 31.43 54V48.75H36.5C37.73 48.75 38.75 47.73 38.75 46.5C38.75 45.27 37.73 44.25 36.5 44.25Z",fill:"#currentColor"})]}),gift:g("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M15.969 22.75h-8c-3.42 0-4.75-1.33-4.75-4.75v-8c0-.41.34-.75.75-.75h16c.41 0 .75.34.75.75v8c0 3.42-1.33 4.75-4.75 4.75Zm-11.25-12V18c0 2.58.67 3.25 3.25 3.25h8c2.58 0 3.25-.67 3.25-3.25v-7.25h-14.5Z"}),l("path",{d:"M19.5 10.75h-15c-1.75 0-2.75-1-2.75-2.75V7c0-1.75 1-2.75 2.75-2.75h15c1.7 0 2.75 1.05 2.75 2.75v1c0 1.7-1.05 2.75-2.75 2.75Zm-15-5c-.91 0-1.25.34-1.25 1.25v1c0 .91.34 1.25 1.25 1.25h15c.88 0 1.25-.37 1.25-1.25V7c0-.88-.37-1.25-1.25-1.25h-15Z"}),l("path",{d:"M11.64 5.749H6.12c-.21 0-.41-.09-.55-.24-.61-.67-.59-1.7.05-2.34l1.42-1.42c.66-.66 1.75-.66 2.41 0l2.72 2.72c.21.21.28.54.16.82-.11.28-.38.46-.69.46Zm-4.97-1.5h3.17l-1.45-1.44a.205.205 0 0 0-.29 0l-1.42 1.42c0 .01-.01.01-.01.02Z"}),l("path",{d:"M17.87 5.749h-5.52a.74.74 0 0 1-.69-.46c-.12-.28-.05-.6.16-.82l2.72-2.72c.66-.66 1.75-.66 2.41 0l1.42 1.42c.64.64.67 1.67.05 2.34-.14.15-.34.24-.55.24Zm-3.7-1.5h3.17l-.02-.02-1.42-1.42a.205.205 0 0 0-.29 0l-1.44 1.44ZM9.941 16.9a1.752 1.752 0 0 1-1.75-1.75V10c0-.41.34-.75.75-.75h6.04c.41 0 .75.34.75.75v5.13c0 .65-.35 1.24-.92 1.54-.57.31-1.26.27-1.8-.09l-.89-.6a.24.24 0 0 0-.28 0l-.94.62c-.29.2-.63.3-.96.3Zm-.25-6.15v4.39c0 .13.08.19.13.22s.15.06.26-.01l.94-.62c.59-.39 1.35-.39 1.93 0l.89.6c.11.07.21.04.26.01.05-.03.13-.09.13-.22v-4.38h-4.54v.01Z"})]}),"notification-bell":g("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M16.5455 4.27274C16.5455 5.62835 15.4466 6.72728 14.091 6.72728C12.7353 6.72728 11.6364 5.62835 11.6364 4.27274C11.6364 2.91713 12.7353 1.81819 14.091 1.81819C15.4466 1.81819 16.5455 2.91713 16.5455 4.27274Z"}),l("path",{d:"M10.3355 2.64766C10.2247 2.64017 10.1128 2.63637 10 2.63637C7.28883 2.63637 5.09095 4.83425 5.09095 7.54546V10.964C5.09095 11.4024 4.96118 11.831 4.71799 12.1958L3.592 13.8848C3.5024 14.0192 3.45459 14.1771 3.45459 14.3386V14.9091H16.5455V14.3386C16.5455 14.1771 16.4977 14.0192 16.4081 13.8848L15.2821 12.1958C15.0389 11.831 14.9091 11.4024 14.9091 10.964V8.28181C14.6448 8.33548 14.3712 8.36365 14.091 8.36365C11.8316 8.36365 10 6.53208 10 4.27274C10 3.69529 10.1197 3.14578 10.3355 2.64766Z"}),l("path",{d:"M10 17.7727C10.9038 17.7727 11.6364 17.0401 11.6364 16.1364H8.36368C8.36368 17.0401 9.09631 17.7727 10 17.7727Z"})]}),"book-saved":l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:l("path",{d:"M11.25 5.998v13.91c0 .71-.72 1.2-1.37.93-1.86-.78-4.17-1.46-5.81-1.68l-.31-.04c-.97-.12-1.76-1.01-1.76-1.98V5.248c0-1.2.97-2.17 2.17-2.17h.07c1.88.16 4.65 1.04 6.48 2.03a1 1 0 0 1 .53.89ZM19.83 3.078h-.06c-.24.02-.5.05-.77.1-1.23.2-2.69.62-4 1.14-.62.25-1.2.52-1.71.79-.33.18-.54.52-.54.89v13.91c0 .71.72 1.2 1.37.93 1.86-.78 4.17-1.46 5.81-1.68l.31-.04c.97-.12 1.76-1.01 1.76-1.98V5.248c0-1.2-.97-2.17-2.17-2.17Zm-.56 10.65c0 .39-.28.56-.62.37l-1.06-.59a.49.49 0 0 0-.41 0l-1.06.59c-.34.19-.62.02-.62-.37v-3.07c0-.46.38-.84.84-.84h2.1c.46 0 .84.38.84.84v3.07h-.01Z"})}),"message-question":l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:l("path",{d:"M17 2.43H7c-3 0-5 2-5 5v6c0 3 2 5 5 5v2.13c0 .8.89 1.28 1.55.83L13 18.43h4c3 0 5-2 5-5v-6c0-3-2-5-5-5ZM12 14.6a.749.749 0 1 1 0-1.5.749.749 0 1 1 0 1.5Zm1.26-4.15c-.39.26-.51.43-.51.71v.21c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-.21c0-1.16.85-1.73 1.17-1.95.37-.25.49-.42.49-.68 0-.5-.41-.91-.91-.91s-.91.41-.91.91c0 .41-.34.75-.75.75s-.75-.34-.75-.75c0-1.33 1.08-2.41 2.41-2.41s2.41 1.08 2.41 2.41c0 1.14-.84 1.71-1.15 1.92Z"})}),"circle-close":g("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M12 22.75C6.07 22.75 1.25 17.93 1.25 12S6.07 1.25 12 1.25 22.75 6.07 22.75 12 17.93 22.75 12 22.75Zm0-20C6.9 2.75 2.75 6.9 2.75 12S6.9 21.25 12 21.25s9.25-4.15 9.25-9.25S17.1 2.75 12 2.75Z"}),l("path",{d:"M9.17 15.58c-.19 0-.38-.07-.53-.22a.754.754 0 0 1 0-1.06l5.66-5.66c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06L9.7 15.36c-.14.15-.34.22-.53.22Z"}),l("path",{d:"M14.83 15.58c-.19 0-.38-.07-.53-.22L8.64 9.7a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l5.66 5.66c.29.29.29.77 0 1.06-.15.15-.34.22-.53.22Z"})]}),"circle-close-filled":l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:l("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2Zm3.36 12.3c.29.29.29.77 0 1.06-.15.15-.34.22-.53.22s-.38-.07-.53-.22l-2.3-2.3-2.3 2.3c-.15.15-.34.22-.53.22s-.38-.07-.53-.22a.754.754 0 0 1 0-1.06l2.3-2.3-2.3-2.3a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l2.3 2.3 2.3-2.3c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06l-2.3 2.3 2.3 2.3Z"})}),add:g("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M4.5 8H12.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M8.5 12V4",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),search:l("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:l("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.1821 12.2458C10.1658 13.0361 8.88866 13.5067 7.50167 13.5067C4.18704 13.5067 1.5 10.8189 1.5 7.50335C1.5 4.18779 4.18704 1.5 7.50167 1.5C10.8163 1.5 13.5033 4.18779 13.5033 7.50335C13.5033 8.89059 13.033 10.1679 12.243 11.1845L15.2799 14.2186C15.5731 14.5115 15.5734 14.9867 15.2806 15.2799C14.9878 15.5731 14.5128 15.5734 14.2196 15.2805L11.1821 12.2458ZM12.0029 7.50335C12.0029 9.99002 9.98765 12.0059 7.50167 12.0059C5.0157 12.0059 3.00042 9.99002 3.00042 7.50335C3.00042 5.01668 5.0157 3.00084 7.50167 3.00084C9.98765 3.00084 12.0029 5.01668 12.0029 7.50335Z"})}),upload:l("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M10.2749 7.9251V9.8251C10.2749 10.0771 10.1748 10.3187 9.99661 10.4968C9.81845 10.675 9.57681 10.7751 9.32485 10.7751H2.67485C2.4229 10.7751 2.18126 10.675 2.0031 10.4968C1.82494 10.3187 1.72485 10.0771 1.72485 9.8251V7.9251M8.37485 4.6001L5.99985 2.2251M5.99985 2.2251L3.62485 4.6001M5.99985 2.2251V7.9251",stroke:"#currentColor",strokeWidth:"0.7125",strokeLinecap:"round",strokeLinejoin:"round"})}),"arrow-left-linear":l("svg",{width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M7.99984 16.9201L1.47984 10.4001C0.709844 9.63008 0.709844 8.37008 1.47984 7.60008L7.99984 1.08008",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}),"arrow-right-linear":l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M5.99978 2.72418L10.3464 7.07085C10.8598 7.58418 10.8598 8.42418 10.3464 8.93751L5.99978 13.2842",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}),pen:g("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M11.0495 3.00002L4.2078 10.2417C3.94947 10.5167 3.69947 11.0584 3.64947 11.4334L3.34114 14.1333C3.2328 15.1083 3.9328 15.775 4.89947 15.6084L7.5828 15.15C7.9578 15.0834 8.4828 14.8084 8.74114 14.525L15.5828 7.28335C16.7661 6.03335 17.2995 4.60835 15.4578 2.86668C13.6245 1.14168 12.2328 1.75002 11.0495 3.00002Z",stroke:"#currentColor",strokeWidth:"1.25",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M9.9082 4.2085C10.2665 6.5085 12.1332 8.26683 14.4499 8.50016",stroke:"#currentColor",strokeWidth:"1.25",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M2.5 18.3333H17.5",stroke:"currentColor",strokeWidth:"1.25",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),times:l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24px",height:"24px",children:l("path",{d:"M 4.7070312 3.2929688 L 3.2929688 4.7070312 L 10.585938 12 L 3.2929688 19.292969 L 4.7070312 20.707031 L 12 13.414062 L 19.292969 20.707031 L 20.707031 19.292969 L 13.414062 12 L 20.707031 4.7070312 L 19.292969 3.2929688 L 12 10.585938 L 4.7070312 3.2929688 z"})}),"arrow-up":g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M18.0697 9.57L11.9997 3.5L5.92969 9.57",stroke:"#3F3F46",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M12 20.4999V3.66992",stroke:"#3F3F46",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),"arrow-up-light":l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M13.2797 10.0334L8.93306 5.68676C8.41973 5.17342 7.57973 5.17342 7.06639 5.68676L2.71973 10.0334",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}),"arrow-down-light":l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M13.2807 5.9668L8.93404 10.3135C8.4207 10.8268 7.5807 10.8268 7.06737 10.3135L2.7207 5.9668",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}),"settings-2-filled":l("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M13.9002 6.64679C12.6935 6.64679 12.2002 5.79345 12.8002 4.74679C13.1468 4.14012 12.9402 3.36679 12.3335 3.02012L11.1802 2.36012C10.6535 2.04679 9.9735 2.23345 9.66016 2.76012L9.58683 2.88679C8.98683 3.93345 8.00016 3.93345 7.3935 2.88679L7.32016 2.76012C7.02016 2.23345 6.34016 2.04679 5.8135 2.36012L4.66016 3.02012C4.0535 3.36679 3.84683 4.14679 4.1935 4.75345C4.80016 5.79345 4.30683 6.64679 3.10016 6.64679C2.40683 6.64679 1.8335 7.21345 1.8335 7.91345V9.08679C1.8335 9.78012 2.40016 10.3535 3.10016 10.3535C4.30683 10.3535 4.80016 11.2068 4.1935 12.2535C3.84683 12.8601 4.0535 13.6335 4.66016 13.9801L5.8135 14.6401C6.34016 14.9535 7.02016 14.7668 7.3335 14.2401L7.40683 14.1135C8.00683 13.0668 8.9935 13.0668 9.60016 14.1135L9.6735 14.2401C9.98683 14.7668 10.6668 14.9535 11.1935 14.6401L12.3468 13.9801C12.9535 13.6335 13.1602 12.8535 12.8135 12.2535C12.2068 11.2068 12.7002 10.3535 13.9068 10.3535C14.6002 10.3535 15.1735 9.78679 15.1735 9.08679V7.91345C15.1668 7.22012 14.6002 6.64679 13.9002 6.64679ZM8.50016 10.6668C7.30683 10.6668 6.3335 9.69345 6.3335 8.50012C6.3335 7.30679 7.30683 6.33345 8.50016 6.33345C9.6935 6.33345 10.6668 7.30679 10.6668 8.50012C10.6668 9.69345 9.6935 10.6668 8.50016 10.6668Z",fill:"#currentColor"})}),"settings-2":g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",stroke:"#currentColor",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M2.00049 12.8799V11.1199C2.00049 10.0799 2.85049 9.21994 3.90049 9.21994C5.71049 9.21994 6.45049 7.93994 5.54049 6.36994C5.02049 5.46994 5.33049 4.29994 6.24049 3.77994L7.97049 2.78994C8.76049 2.31994 9.78049 2.59994 10.2505 3.38994L10.3605 3.57994C11.2605 5.14994 12.7405 5.14994 13.6505 3.57994L13.7605 3.38994C14.2305 2.59994 15.2505 2.31994 16.0405 2.78994L17.7705 3.77994C18.6805 4.29994 18.9905 5.46994 18.4705 6.36994C17.5605 7.93994 18.3005 9.21994 20.1105 9.21994C21.1505 9.21994 22.0105 10.0699 22.0105 11.1199V12.8799C22.0105 13.9199 21.1605 14.7799 20.1105 14.7799C18.3005 14.7799 17.5605 16.0599 18.4705 17.6299C18.9905 18.5399 18.6805 19.6999 17.7705 20.2199L16.0405 21.2099C15.2505 21.6799 14.2305 21.3999 13.7605 20.6099L13.6505 20.4199C12.7505 18.8499 11.2705 18.8499 10.3605 20.4199L10.2505 20.6099C9.78049 21.3999 8.76049 21.6799 7.97049 21.2099L6.24049 20.2199C5.33049 19.6999 5.02049 18.5299 5.54049 17.6299C6.45049 16.0599 5.71049 14.7799 3.90049 14.7799C2.85049 14.7799 2.00049 13.9199 2.00049 12.8799Z",stroke:"#currentColor",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),"pen-fill":g("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M14.5 15.1665H2.5C2.22667 15.1665 2 14.9398 2 14.6665C2 14.3932 2.22667 14.1665 2.5 14.1665H14.5C14.7733 14.1665 15 14.3932 15 14.6665C15 14.9398 14.7733 15.1665 14.5 15.1665Z",fill:"#currentColor"}),l("path",{d:"M13.1799 2.81994C11.8866 1.52661 10.6199 1.49328 9.29322 2.81994L8.48655 3.62661C8.41989 3.69328 8.39322 3.79994 8.41989 3.89328C8.92655 5.65994 10.3399 7.07328 12.1066 7.57994C12.1332 7.58661 12.1599 7.59328 12.1866 7.59328C12.2599 7.59328 12.3266 7.56661 12.3799 7.51328L13.1799 6.70661C13.8399 6.05328 14.1599 5.41994 14.1599 4.77994C14.1666 4.11994 13.8466 3.47994 13.1799 2.81994Z",fill:"#currentColor"}),l("path",{d:"M10.9066 8.18654C10.7132 8.0932 10.5266 7.99987 10.3466 7.8932C10.1999 7.80654 10.0599 7.7132 9.91989 7.6132C9.80655 7.53987 9.67322 7.4332 9.54655 7.32654C9.53322 7.31987 9.48655 7.27987 9.43322 7.22654C9.21322 7.03987 8.96655 6.79987 8.74655 6.5332C8.72655 6.51987 8.69322 6.4732 8.64655 6.4132C8.57989 6.3332 8.46655 6.19987 8.36655 6.04654C8.28655 5.94654 8.19322 5.79987 8.10655 5.6532C7.99989 5.4732 7.90655 5.2932 7.81322 5.10654C7.69085 4.84431 7.34668 4.76641 7.14206 4.97103L3.39322 8.71987C3.30655 8.80654 3.22655 8.9732 3.20655 9.08654L2.84655 11.6399C2.77989 12.0932 2.90655 12.5199 3.18655 12.8065C3.42655 13.0399 3.75989 13.1665 4.11989 13.1665C4.19989 13.1665 4.27989 13.1599 4.35989 13.1465L6.91989 12.7865C7.03989 12.7665 7.20655 12.6865 7.28655 12.5999L11.0416 8.84484C11.2421 8.64432 11.1668 8.29929 10.9066 8.18654Z",fill:"#currentColor"})]}),"document-text1-outline":g("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",children:[l("path",{d:"M22 10v5c0 5-2 7-7 7H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M22 10h-4c-3 0-4-1-4-4V2l8 8ZM7 13h6M7 17h4",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),notification:g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M12.0186 2.91016C8.70862 2.91016 6.01862 5.60016 6.01862 8.91016V11.8002C6.01862 12.4102 5.75862 13.3402 5.44862 13.8602L4.29862 15.7702C3.58862 16.9502 4.07862 18.2602 5.37862 18.7002C9.68862 20.1402 14.3386 20.1402 18.6486 18.7002C19.8586 18.3002 20.3886 16.8702 19.7286 15.7702L18.5786 13.8602C18.2786 13.3402 18.0186 12.4102 18.0186 11.8002V8.91016C18.0186 5.61016 15.3186 2.91016 12.0186 2.91016Z",stroke:"#currentColor",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round"}),l("path",{d:"M13.8699 3.19994C13.5599 3.10994 13.2399 3.03994 12.9099 2.99994C11.9499 2.87994 11.0299 2.94994 10.1699 3.19994C10.4599 2.45994 11.1799 1.93994 12.0199 1.93994C12.8599 1.93994 13.5799 2.45994 13.8699 3.19994Z",stroke:"#currentColor",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M15.019 19.0601C15.019 20.7101 13.669 22.0601 12.019 22.0601C11.199 22.0601 10.439 21.7201 9.89904 21.1801C9.35904 20.6401 9.01904 19.8801 9.01904 19.0601",stroke:"#currentColor",strokeWidth:"2",strokeMiterlimit:"10"})]}),"message-question-outline":g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M17.0005 18.4302H13.0005L8.55048 21.3902C7.89048 21.8302 7.00049 21.3602 7.00049 20.5602V18.4302C4.00049 18.4302 2.00049 16.4302 2.00049 13.4302V7.43018C2.00049 4.43018 4.00049 2.43018 7.00049 2.43018H17.0005C20.0005 2.43018 22.0005 4.43018 22.0005 7.43018V13.4302C22.0005 16.4302 20.0005 18.4302 17.0005 18.4302Z",stroke:"#currentColor",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M11.9993 11.3599V11.1499C11.9993 10.4699 12.4194 10.1099 12.8394 9.81989C13.2494 9.53989 13.6593 9.1799 13.6593 8.5199C13.6593 7.5999 12.9193 6.85986 11.9993 6.85986C11.0793 6.85986 10.3394 7.5999 10.3394 8.5199",stroke:"#currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M11.995 13.75H12.004",stroke:"#currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),"add-circle":l("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M15.9989 2.6665C8.65219 2.6665 2.66553 8.65317 2.66553 15.9998C2.66553 23.3465 8.65219 29.3332 15.9989 29.3332C23.3455 29.3332 29.3322 23.3465 29.3322 15.9998C29.3322 8.65317 23.3455 2.6665 15.9989 2.6665ZM21.3322 16.9998H16.9989V21.3332C16.9989 21.8798 16.5455 22.3332 15.9989 22.3332C15.4522 22.3332 14.9989 21.8798 14.9989 21.3332V16.9998H10.6655C10.1189 16.9998 9.66553 16.5465 9.66553 15.9998C9.66553 15.4532 10.1189 14.9998 10.6655 14.9998H14.9989V10.6665C14.9989 10.1198 15.4522 9.6665 15.9989 9.6665C16.5455 9.6665 16.9989 10.1198 16.9989 10.6665V14.9998H21.3322C21.8789 14.9998 22.3322 15.4532 22.3322 15.9998C22.3322 16.5465 21.8789 16.9998 21.3322 16.9998Z"})}),copy:g("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M11.1668 8.60016V11.4002C11.1668 13.7335 10.2335 14.6668 7.90016 14.6668H5.10016C2.76683 14.6668 1.8335 13.7335 1.8335 11.4002V8.60016C1.8335 6.26683 2.76683 5.3335 5.10016 5.3335H7.90016C10.2335 5.3335 11.1668 6.26683 11.1668 8.60016Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M15.1668 4.60016V7.40016C15.1668 9.7335 14.2335 10.6668 11.9002 10.6668H11.1668V8.60016C11.1668 6.26683 10.2335 5.3335 7.90016 5.3335H5.8335V4.60016C5.8335 2.26683 6.76683 1.3335 9.10016 1.3335H11.9002C14.2335 1.3335 15.1668 2.26683 15.1668 4.60016Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),action:g("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M8.8335 15.9456C8.8335 16.8623 9.5835 17.6123 10.5002 17.6123C11.4168 17.6123 12.1668 16.8623 12.1668 15.9456C12.1668 15.029 11.4168 14.279 10.5002 14.279C9.5835 14.279 8.8335 15.029 8.8335 15.9456Z",stroke:"#currentColor",strokeWidth:"1.5"}),l("path",{d:"M8.8335 4.27913C8.8335 5.1958 9.5835 5.9458 10.5002 5.9458C11.4168 5.9458 12.1668 5.1958 12.1668 4.27913C12.1668 3.36247 11.4168 2.61247 10.5002 2.61247C9.5835 2.61247 8.8335 3.36247 8.8335 4.27913Z",stroke:"#currentColor",strokeWidth:"1.5"}),l("path",{d:"M8.8335 10.1121C8.8335 11.0288 9.5835 11.7788 10.5002 11.7788C11.4168 11.7788 12.1668 11.0288 12.1668 10.1121C12.1668 9.19547 11.4168 8.44547 10.5002 8.44547C9.5835 8.44547 8.8335 9.19547 8.8335 10.1121Z",stroke:"#currentColor",strokeWidth:"1.5"})]}),"info-circle":g("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M10.4998 18.4455C15.0832 18.4455 18.8332 14.6955 18.8332 10.1121C18.8332 5.52881 15.0832 1.77881 10.4998 1.77881C5.9165 1.77881 2.1665 5.52881 2.1665 10.1121C2.1665 14.6955 5.9165 18.4455 10.4998 18.4455Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M10.5 6.77881V10.9455",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M10.4956 13.4458H10.5031",stroke:"#currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),"info-circle-filled":l("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M9.0013 0.666748C4.40964 0.666748 0.667969 4.40841 0.667969 9.00008C0.667969 13.5917 4.40964 17.3334 9.0013 17.3334C13.593 17.3334 17.3346 13.5917 17.3346 9.00008C17.3346 4.40841 13.593 0.666748 9.0013 0.666748ZM8.3763 5.66675C8.3763 5.32508 8.65964 5.04175 9.0013 5.04175C9.34297 5.04175 9.6263 5.32508 9.6263 5.66675V9.83342C9.6263 10.1751 9.34297 10.4584 9.0013 10.4584C8.65964 10.4584 8.3763 10.1751 8.3763 9.83342V5.66675ZM9.76797 12.6501C9.7263 12.7584 9.66797 12.8417 9.59297 12.9251C9.50964 13.0001 9.41797 13.0584 9.31797 13.1001C9.21797 13.1417 9.10964 13.1667 9.0013 13.1667C8.89297 13.1667 8.78464 13.1417 8.68464 13.1001C8.58464 13.0584 8.49297 13.0001 8.40964 12.9251C8.33464 12.8417 8.2763 12.7584 8.23464 12.6501C8.19297 12.5501 8.16797 12.4417 8.16797 12.3334C8.16797 12.2251 8.19297 12.1167 8.23464 12.0167C8.2763 11.9167 8.33464 11.8251 8.40964 11.7417C8.49297 11.6667 8.58464 11.6084 8.68464 11.5667C8.88464 11.4834 9.11797 11.4834 9.31797 11.5667C9.41797 11.6084 9.50964 11.6667 9.59297 11.7417C9.66797 11.8251 9.7263 11.9167 9.76797 12.0167C9.80964 12.1167 9.83464 12.2251 9.83464 12.3334C9.83464 12.4417 9.80964 12.5501 9.76797 12.6501Z",fill:"#currentColor"})}),"course-up-line-duotone":g("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{opacity:"0.5",d:"M18.8332 5.9458L12.6832 12.0583C11.8523 12.8841 11.4365 13.2975 10.9207 13.2975C10.4048 13.2975 9.98984 12.8841 9.15817 12.0575L8.95817 11.8591C8.12734 11.0325 7.71067 10.6183 7.19484 10.6183C6.679 10.6183 6.26317 11.0325 5.43234 11.86L2.1665 15.1125",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M18.8333 10.5675V5.9458H14.1816",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"course-down-line-duotone":g("svg",{width:"27",height:"27",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[g("g",{clipPath:"url(#clip0_13667_69012)",children:[l("path",{opacity:"0.5",d:"M20.7041 19.1552L12.6745 15.8825C11.5897 15.4404 11.0467 15.2191 10.8452 14.7443C10.6436 14.2694 10.8619 13.7259 11.2979 12.6374L11.4024 12.3758C11.8387 11.288 12.0571 10.7426 11.8556 10.2678C11.654 9.79295 11.1103 9.572 10.0239 9.13054L5.75393 7.39518",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M16.45 20.9612L20.7043 19.1554L18.8867 14.8735",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),l("defs",{children:l("clipPath",{id:"clip0_13667_69012",children:l("rect",{width:"20",height:"20",fill:"white",transform:"translate(18.9102) rotate(67)"})})})]}),more:g("svg",{width:"29",height:"21",viewBox:"0 0 29 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M12.8335 16.6667C12.8335 17.8125 13.771 18.75 14.9168 18.75C16.0627 18.75 17.0002 17.8125 17.0002 16.6667C17.0002 15.5208 16.0627 14.5833 14.9168 14.5833C13.771 14.5833 12.8335 15.5208 12.8335 16.6667Z",fill:"#currentColor"}),l("path",{d:"M12.8335 10.4997C12.8335 11.6455 13.771 12.583 14.9168 12.583C16.0627 12.583 17.0002 11.6455 17.0002 10.4997C17.0002 9.35384 16.0627 8.41634 14.9168 8.41634C13.771 8.41634 12.8335 9.35384 12.8335 10.4997Z",fill:"#currentColor"}),l("path",{d:"M12.8335 4.33366C12.8335 5.47949 13.771 6.41699 14.9168 6.41699C16.0627 6.41699 17.0002 5.47949 17.0002 4.33366C17.0002 3.18783 16.0627 2.25033 14.9168 2.25033C13.771 2.25033 12.8335 3.18783 12.8335 4.33366Z",fill:"#currentColor"})]}),"image-upload":l("svg",{width:"35",height:"34",viewBox:"0 0 35 34",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M18.3186 1.18412L18.319 1.18457L24.9824 8.0185C25.1948 8.24551 25.3142 8.55126 25.3115 8.87096C25.3088 9.192 25.1831 9.49666 24.9654 9.71996C24.7481 9.94286 24.4567 10.0669 24.1549 10.0696C23.8544 10.0723 23.5623 9.95446 23.3417 9.73735L19.5234 5.82129L18.6654 4.94133V6.17034V20.8467C18.6654 21.1714 18.5395 21.4804 18.3192 21.7063C18.0994 21.9317 17.804 22.056 17.4987 22.056C17.1934 22.056 16.898 21.9317 16.6782 21.7063C16.4579 21.4804 16.332 21.1714 16.332 20.8467V6.17034V4.94133L15.474 5.82129L11.6524 9.74079L11.6521 9.74104C11.4323 9.96683 11.1367 10.0914 10.8312 10.0916C10.5257 10.0919 10.2299 9.96771 10.0098 9.74224C9.78921 9.51635 9.663 9.20722 9.66277 8.88221C9.66255 8.55732 9.78825 8.24811 10.0084 8.02191C10.0084 8.02182 10.0085 8.02174 10.0086 8.02165L16.675 1.18457L16.6755 1.18412C16.7844 1.07207 16.9132 0.983874 17.054 0.923935C17.1949 0.864008 17.3454 0.833336 17.497 0.833336C17.6487 0.833336 17.7992 0.864008 17.94 0.923935C18.0809 0.983874 18.2096 1.07207 18.3186 1.18412ZM22.9987 20.8467V20.492H30.832C31.5793 20.492 32.2987 20.7964 32.8311 21.3424C33.3639 21.8888 33.6654 22.6326 33.6654 23.4107V30.248C33.6654 31.0261 33.3639 31.7699 32.8311 32.3163C32.2987 32.8623 31.5793 33.1667 30.832 33.1667H4.16536C3.41805 33.1667 2.69872 32.8623 2.16634 32.3163C1.63353 31.7699 1.33203 31.0261 1.33203 30.248V23.4107C1.33203 22.6326 1.63353 21.8888 2.16634 21.3424C2.69872 20.7964 3.41805 20.492 4.16536 20.492H11.9987V20.8467C11.9987 22.3353 12.5752 23.7654 13.6052 24.8218C14.6356 25.8786 16.0359 26.4747 17.4987 26.4747C18.9615 26.4747 20.3618 25.8786 21.3922 24.8218C22.4222 23.7654 22.9987 22.3353 22.9987 20.8467ZM24.9938 30.2283C25.4874 30.5666 26.0692 30.748 26.6654 30.748C27.4652 30.748 28.2295 30.422 28.7911 29.8461C29.3523 29.2706 29.6654 28.4926 29.6654 27.684C29.6654 27.0808 29.491 26.4901 29.163 25.9866C28.8349 25.483 28.3672 25.0885 27.8176 24.855C27.2678 24.6215 26.6622 24.5601 26.0777 24.6794C25.4933 24.7986 24.9583 25.0925 24.5396 25.5219C24.121 25.9512 23.8374 26.4966 23.7225 27.0886C23.6078 27.6805 23.6666 28.2941 23.8921 28.8524C24.1176 29.4109 24.5003 29.8902 24.9938 30.2283Z",fill:"#currentColor",stroke:"#currentColor"})}),folder:g("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{opacity:"0.4",d:"M21.4588 2.6665H11.5388C11.0321 2.6665 10.6055 3.09317 10.6055 3.59984C10.6055 4.1065 11.0321 4.53317 11.5388 4.53317H15.8855L17.7521 7.01317C18.1655 7.55984 18.2188 7.63984 18.9921 7.63984H23.9521C24.4588 7.63984 24.9521 7.7065 25.4321 7.83984C25.4855 8.07984 25.5121 8.31984 25.5121 8.57317V9.03984C25.5121 9.5465 25.9388 9.97317 26.4455 9.97317C26.9521 9.97317 27.3788 9.5465 27.3788 9.03984V8.55984C27.3521 5.3065 24.7121 2.6665 21.4588 2.6665Z",fill:"#currentColor"}),l("path",{d:"M27.3527 8.71984C26.7793 8.3065 26.126 7.99984 25.4193 7.8265C24.9527 7.69317 24.446 7.6265 23.9393 7.6265H18.9793C18.206 7.6265 18.1527 7.5465 17.7393 6.99984L15.8727 4.51984C15.006 3.37317 14.326 2.6665 12.1527 2.6665H9.05935C5.80602 2.6665 3.16602 5.3065 3.16602 8.55984V23.4398C3.16602 26.6932 5.80602 29.3332 9.05935 29.3332H23.9393C27.1927 29.3332 29.8327 26.6932 29.8327 23.4398V13.5198C29.8327 11.5332 28.8593 9.7865 27.3527 8.71984ZM19.606 21.3332H13.3927C12.8727 21.3332 12.4593 20.9198 12.4593 20.3998C12.4593 19.8932 12.8727 19.4665 13.3927 19.4665H19.5927C20.0993 19.4665 20.526 19.8932 20.526 20.3998C20.526 20.9198 20.1127 21.3332 19.606 21.3332Z",fill:"#currentColor"})]}),"wallet-is-empty":l("svg",{width:"366",height:"306",viewBox:"0 0 366 306",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:g("g",{id:"Wallet is Empty",children:[l("path",{id:"Fill 1",fillRule:"evenodd",clipRule:"evenodd",d:"M246.294 291.811C246.294 294.185 215.743 296.11 178.056 296.11C140.369 296.11 109.816 294.185 109.816 291.811C109.816 289.438 140.369 287.513 178.056 287.513C215.743 287.513 246.294 289.438 246.294 291.811Z",fill:"#DCDCE2"}),l("path",{id:"Fill 13",fillRule:"evenodd",clipRule:"evenodd",d:"M198.75 4.96247C197.407 4.6389 196.574 3.28452 196.898 1.92805C197.22 0.580921 198.578 -0.253906 199.92 0.0696541C201.269 0.395288 202.093 1.75486 201.772 3.10303C201.448 4.45846 200.1 5.28706 198.75 4.96247Z",fill:"#DCDCE2"}),l("path",{id:"Stroke 25",d:"M14.168 170.379V173.603",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 27",d:"M7.72266 173.603L9.87191 175.752",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 29",d:"M4.5 180.051H7.72388",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 31",d:"M7.72266 186.498L9.87191 184.349",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 33",d:"M14.168 189.722V186.498",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 35",d:"M20.618 186.498L18.4688 184.349",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 37",d:"M23.8372 180.051H20.6133",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 39",d:"M20.618 173.603L18.4688 175.752",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 41",d:"M179.66 38.2V40.3493",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 43",d:"M174.293 43.5732H176.442",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 45",d:"M179.66 50.0209V47.8716",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 47",d:"M186.11 44.6478H183.961",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 49",d:"M61.4531 123.095V126.319",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 51",d:"M51.7852 132.767H55.009",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 53",d:"M60.375 141.364V138.14",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 55",d:"M70.0559 132.767H66.832",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 57",d:"M280.674 235.931C283.047 235.931 284.972 237.856 284.972 240.23C284.972 242.603 283.047 244.528 280.674 244.528C278.3 244.528 276.375 242.603 276.375 240.23",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 59",d:"M301.019 294.541C301.568 298.379 298.915 301.936 295.096 302.486C291.28 303.036 287.74 300.371 287.193 296.533C286.645 292.695 289.297 289.138 293.116 288.588",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Fill 61",fillRule:"evenodd",clipRule:"evenodd",d:"M301.102 195.095C303.707 194.271 307.7 191.045 308.624 187.573C309.462 190.642 312.975 194.271 316.146 194.546C312.578 195.827 309.166 199.631 308.624 202.618C308.256 199.572 303.537 195.539 301.102 195.095Z",fill:"#EBECEF"}),l("path",{id:"Fill 63",fillRule:"evenodd",clipRule:"evenodd",d:"M31.3711 234.318C32.6742 233.907 34.6704 232.293 35.1328 230.558C35.5516 232.092 37.3076 233.907 38.8935 234.045C37.1088 234.685 35.4028 236.586 35.1328 238.08C34.9479 236.558 32.5892 234.54 31.3711 234.318Z",fill:"#EBECEF"}),l("path",{id:"Fill 65",fillRule:"evenodd",clipRule:"evenodd",d:"M55.0103 91.9313C55.0103 93.7125 53.5666 95.1552 51.7864 95.1552C50.0052 95.1552 48.5625 93.7125 48.5625 91.9313C48.5625 90.1501 50.0052 88.7075 51.7864 88.7075C53.5666 88.7075 55.0103 90.1501 55.0103 91.9313Z",fill:"#D1D9E0"}),l("path",{id:"Fill 69",fillRule:"evenodd",clipRule:"evenodd",d:"M364.495 85.4829C364.495 87.8579 362.571 89.7819 360.197 89.7819C357.823 89.7819 355.898 87.8579 355.898 85.4829C355.898 83.109 357.823 81.1849 360.197 81.1849C362.571 81.1849 364.495 83.109 364.495 85.4829Z",fill:"#EBECEF"}),l("path",{id:"Stroke 73",fillRule:"evenodd",clipRule:"evenodd",d:"M117.342 69.3641C117.342 71.1453 115.899 72.588 114.118 72.588C112.337 72.588 110.895 71.1453 110.895 69.3641C110.895 67.5829 112.337 66.1403 114.118 66.1403C115.899 66.1403 117.342 67.5829 117.342 69.3641Z",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 75",fillRule:"evenodd",clipRule:"evenodd",d:"M67.2797 273.261C65.0614 274.105 62.5795 272.991 61.7356 270.773C60.8906 268.554 62.0057 266.072 64.224 265.228C66.4423 264.383 68.9242 265.498 69.7681 267.717C70.612 269.935 69.498 272.417 67.2797 273.261Z",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("g",{id:"menu",children:l("g",{id:"vuesax/bold/menu",children:g("g",{id:"menu_2",children:[l("path",{id:"Vector",d:"M235.214 136.436C250.344 136.436 262.608 124.171 262.608 109.042C262.608 93.9123 250.344 81.6476 235.214 81.6476C220.085 81.6476 207.82 93.9123 207.82 109.042C207.82 124.171 220.085 136.436 235.214 136.436Z",fill:"#F4F4F5"}),l("path",{id:"Vector_2",d:"M132.675 136.436C147.804 136.436 160.069 124.171 160.069 109.042C160.069 93.9123 147.804 81.6476 132.675 81.6476C117.546 81.6476 105.281 93.9123 105.281 109.042C105.281 124.171 117.546 136.436 132.675 136.436Z",fill:"#F4F4F5"}),l("path",{id:"Vector_3",d:"M235.214 250.269C250.344 250.269 262.608 238.004 262.608 222.875C262.608 207.745 250.344 195.481 235.214 195.481C220.085 195.481 207.82 207.745 207.82 222.875C207.82 238.004 220.085 250.269 235.214 250.269Z",fill:"#F4F4F5"}),l("path",{id:"Vector_4",d:"M132.675 250.269C147.804 250.269 160.069 238.004 160.069 222.875C160.069 207.745 147.804 195.481 132.675 195.481C117.546 195.481 105.281 207.745 105.281 222.875C105.281 238.004 117.546 250.269 132.675 250.269Z",fill:"#F4F4F5"})]})})})]})}),"money-bulk":g("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{opacity:".4",d:"M17 20.5H7c-3 0-5-1.5-5-5v-7c0-3.5 2-5 5-5h10c3 0 5 1.5 5 5v7c0 3.5-2 5-5 5Z",fill:"#currentColor"}),l("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM5.5 15.25c-.41 0-.75-.34-.75-.75v-5c0-.41.34-.75.75-.75s.75.34.75.75v5c0 .41-.34.75-.75.75ZM18.5 15.25c-.41 0-.75-.34-.75-.75v-5c0-.41.34-.75.75-.75s.75.34.75.75v5c0 .41-.34.75-.75.75Z",fill:"#currentColor"})]}),"money-time-bulk":g("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M5 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4Zm1 3.68c0 .61-.33 1.19-.85 1.5l-.76.46c-.12.07-.25.11-.38.11-.25 0-.5-.13-.64-.36-.21-.35-.1-.82.26-1.03l.76-.46c.07-.04.12-.13.12-.21v-.93c0-.41.34-.75.75-.75s.75.34.75.75v.92H6Z",fill:"#currentColor"}),l("path",{opacity:".4",d:"M22 9v6c0 3.5-2 5-5 5H8.45c.35-.59.55-1.27.55-2 0-2.21-1.79-4-4-4-1.2 0-2.27.53-3 1.36V9c0-3.5 2-5 5-5h10c3 0 5 1.5 5 5Z",fill:"#currentColor"}),l("path",{d:"M12 14.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM18.5 14.75c-.41 0-.75-.34-.75-.75v-4c0-.41.34-.75.75-.75s.75.34.75.75v4c0 .41-.34.75-.75.75Z",fill:"#currentColor"})]}),"note-1-bulk":g("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{opacity:".4",d:"M7.37 22h9.25a4.87 4.87 0 0 0 4.87-4.87V8.37a4.87 4.87 0 0 0-4.87-4.87H7.37A4.87 4.87 0 0 0 2.5 8.37v8.75c0 2.7 2.18 4.88 4.87 4.88Z",fill:"#currentColor"}),l("path",{d:"M8.29 6.29c-.42 0-.75-.34-.75-.75V2.75a.749.749 0 1 1 1.5 0v2.78c0 .42-.33.76-.75.76ZM15.71 6.29c-.42 0-.75-.34-.75-.75V2.75a.749.749 0 1 1 1.5 0v2.78c0 .42-.33.76-.75.76ZM14.78 13.71H7.36a.749.749 0 1 1 0-1.5h7.42a.749.749 0 1 1 0 1.5ZM12 17.422H7.36a.749.749 0 1 1 0-1.5H12a.749.749 0 1 1 0 1.5Z",fill:"#currentColor"})]}),"hamburger-menu":g("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M3.5 7H21.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l("path",{d:"M3.5 12H21.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l("path",{d:"M3.5 17H21.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),category:g("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M5.5 10H7.5C9.5 10 10.5 9 10.5 7V5C10.5 3 9.5 2 7.5 2H5.5C3.5 2 2.5 3 2.5 5V7C2.5 9 3.5 10 5.5 10Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M17.5 10H19.5C21.5 10 22.5 9 22.5 7V5C22.5 3 21.5 2 19.5 2H17.5C15.5 2 14.5 3 14.5 5V7C14.5 9 15.5 10 17.5 10Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M17.5 22H19.5C21.5 22 22.5 21 22.5 19V17C22.5 15 21.5 14 19.5 14H17.5C15.5 14 14.5 15 14.5 17V19C14.5 21 15.5 22 17.5 22Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M5.5 22H7.5C9.5 22 10.5 21 10.5 19V17C10.5 15 9.5 14 7.5 14H5.5C3.5 14 2.5 15 2.5 17V19C2.5 21 3.5 22 5.5 22Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),group:l("svg",{width:"5",height:"21",viewBox:"0 0 5 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M2.5 14C3.03043 14 3.53914 14.2107 3.91421 14.5858C4.28929 14.9609 4.5 15.4696 4.5 16C4.5 16.5304 4.28929 17.0391 3.91421 17.4142C3.53914 17.7893 3.03043 18 2.5 18C1.96957 18 1.46086 17.7893 1.08579 17.4142C0.710714 17.0391 0.5 16.5304 0.5 16C0.5 15.4696 0.710714 14.9609 1.08579 14.5858C1.46086 14.2107 1.96957 14 2.5 14ZM2.5 7C3.03043 7 3.53914 7.21071 3.91421 7.58579C4.28929 7.96086 4.5 8.46957 4.5 9C4.5 9.53043 4.28929 10.0391 3.91421 10.4142C3.53914 10.7893 3.03043 11 2.5 11C1.96957 11 1.46086 10.7893 1.08579 10.4142C0.710714 10.0391 0.5 9.53043 0.5 9C0.5 8.46957 0.710714 7.96086 1.08579 7.58579C1.46086 7.21071 1.96957 7 2.5 7ZM2.5 0C3.03043 0 3.53914 0.210714 3.91421 0.585786C4.28929 0.960859 4.5 1.46957 4.5 2C4.5 2.53043 4.28929 3.03914 3.91421 3.41421C3.53914 3.78929 3.03043 4 2.5 4C1.96957 4 1.46086 3.78929 1.08579 3.41421C0.710714 3.03914 0.5 2.53043 0.5 2C0.5 1.46957 0.710714 0.960859 1.08579 0.585786C1.46086 0.210714 1.96957 0 2.5 0Z",fill:"#currentColor"})}),trash:g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M21 5.98047C17.67 5.65047 14.32 5.48047 10.98 5.48047C9 5.48047 7.02 5.58047 5.04 5.78047L3 5.98047",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M8.5 4.97L8.72 3.66C8.88 2.71 9 2 10.69 2H13.31C15 2 15.13 2.75 15.28 3.67L15.5 4.97",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M18.8484 9.13965L18.1984 19.2096C18.0884 20.7796 17.9984 21.9996 15.2084 21.9996H8.78844C5.99844 21.9996 5.90844 20.7796 5.79844 19.2096L5.14844 9.13965",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M10.3281 16.5H13.6581",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M9.5 12.5H14.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),timer:l("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M11.4288 1.5H6.56881C3.74881 1.5 3.53131 4.035 5.05381 5.415L12.9438 12.585C14.4663 13.965 14.2488 16.5 11.4288 16.5H6.56881C3.74881 16.5 3.53131 13.965 5.05381 12.585L12.9438 5.415C14.4663 4.035 14.2488 1.5 11.4288 1.5Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),eye:g("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M12.9823 10C12.9823 11.65 11.649 12.9833 9.99896 12.9833C8.34896 12.9833 7.01562 11.65 7.01562 10C7.01562 8.35 8.34896 7.01666 9.99896 7.01666C11.649 7.01666 12.9823 8.35 12.9823 10Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M10.0018 16.8917C12.9435 16.8917 15.6852 15.1583 17.5935 12.1583C18.3435 10.9833 18.3435 9.00834 17.5935 7.83334C15.6852 4.83334 12.9435 3.10001 10.0018 3.10001C7.06016 3.10001 4.31849 4.83334 2.41016 7.83334C1.66016 9.00834 1.66016 10.9833 2.41016 12.1583C4.31849 15.1583 7.06016 16.8917 10.0018 16.8917Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"eye-slash":g("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M15.0319 9.47188L9.97188 14.5319C9.32188 13.8819 8.92188 12.9919 8.92188 12.0019C8.92188 10.0219 10.5219 8.42188 12.5019 8.42188C13.4919 8.42188 14.3819 8.82188 15.0319 9.47188Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M18.3237 5.77047C16.5737 4.45047 14.5737 3.73047 12.5037 3.73047C8.97375 3.73047 5.68375 5.81047 3.39375 9.41047C2.49375 10.8205 2.49375 13.1905 3.39375 14.6005C4.18375 15.8405 5.10375 16.9105 6.10375 17.7705",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M8.92188 19.5297C10.0619 20.0097 11.2719 20.2697 12.5019 20.2697C16.0319 20.2697 19.3219 18.1897 21.6119 14.5897C22.5119 13.1797 22.5119 10.8097 21.6119 9.39969C21.2819 8.87969 20.9219 8.38969 20.5519 7.92969",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M16.0075 12.6992C15.7475 14.1092 14.5975 15.2592 13.1875 15.5192",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M9.97 14.5312L2.5 22.0013",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M22.5013 2L15.0312 9.47",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),repeat:g("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M2.38281 3.43945H11.6095C12.7162 3.43945 13.6095 4.33279 13.6095 5.43945V7.65279",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M4.48948 1.33301L2.38281 3.43966L4.48948 5.54635",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M13.6095 12.56H4.38281C3.27615 12.56 2.38281 11.6667 2.38281 10.56V8.34668",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M11.5 14.6665L13.6067 12.5598L11.5 10.4531",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),"add-square":l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M11.1425 0.5H4.8575C2.1275 0.5 0.5 2.1275 0.5 4.8575V11.135C0.5 13.8725 2.1275 15.5 4.8575 15.5H11.135C13.865 15.5 15.4925 13.8725 15.4925 11.1425V4.8575C15.5 2.1275 13.8725 0.5 11.1425 0.5ZM12.5 8.5625H8.5625V12.5C8.5625 12.8075 8.3075 13.0625 8 13.0625C7.6925 13.0625 7.4375 12.8075 7.4375 12.5V8.5625H3.5C3.1925 8.5625 2.9375 8.3075 2.9375 8C2.9375 7.6925 3.1925 7.4375 3.5 7.4375H7.4375V3.5C7.4375 3.1925 7.6925 2.9375 8 2.9375C8.3075 2.9375 8.5625 3.1925 8.5625 3.5V7.4375H12.5C12.8075 7.4375 13.0625 7.6925 13.0625 8C13.0625 8.3075 12.8075 8.5625 12.5 8.5625Z",fill:"#currentColor"})}),"tick-circle":g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M12 22C17.5 22 22 17.5 22 12C22 6.5 17.5 2 12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7.75 12.0019L10.58 14.8319L16.25 9.17188",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"add-square-fill":g("svg",{width:"73",height:"72",viewBox:"0 0 73 72",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{opacity:"0.4",d:"M49.07 6H23.93C13.01 6 6.5 12.51 6.5 23.43V48.54C6.5 59.49 13.01 66 23.93 66H49.04C59.96 66 66.47 59.49 66.47 48.57V23.43C66.5 12.51 59.99 6 49.07 6Z",fill:"#currentColor"}),l("path",{d:"M48.5 33.75H38.75V24C38.75 22.77 37.73 21.75 36.5 21.75C35.27 21.75 34.25 22.77 34.25 24V33.75H24.5C23.27 33.75 22.25 34.77 22.25 36C22.25 37.23 23.27 38.25 24.5 38.25H34.25V48C34.25 49.23 35.27 50.25 36.5 50.25C37.73 50.25 38.75 49.23 38.75 48V38.25H48.5C49.73 38.25 50.75 37.23 50.75 36C50.75 34.77 49.73 33.75 48.5 33.75Z",fill:"#currentColor"})]}),"arrow-down-right":g("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M11.6797 18.5004L16.8897 13.2904C17.004 13.1778 17.0947 13.0436 17.1567 12.8957C17.2186 12.7477 17.2505 12.5889 17.2505 12.4284C17.2505 12.268 17.2186 12.1092 17.1567 11.9612C17.0947 11.8132 17.004 11.679 16.8897 11.5664L11.6797 6.35742",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M0.75 1.5V8.786C0.75 9.75218 1.13381 10.6788 1.81701 11.362C2.5002 12.0452 3.42682 12.429 4.393 12.429H17.24",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),logout:g("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M17.4395 15.12L19.9995 12.56L17.4395 10",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M9.75977 12.5596H19.9298",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M11.7598 20.5C7.33977 20.5 3.75977 17.5 3.75977 12.5C3.75977 7.5 7.33977 4.5 11.7598 4.5",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),image:g("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M36.7017 28.0338L31.485 15.8338C30.535 13.6004 29.1184 12.3338 27.5017 12.2504C25.9017 12.1671 24.3517 13.2838 23.1684 15.4171L20.0017 21.1004C19.335 22.3004 18.385 23.0171 17.3517 23.1004C16.3017 23.2004 15.2517 22.6504 14.4017 21.5671L14.035 21.1004C12.8517 19.6171 11.385 18.9004 9.88503 19.0504C8.38503 19.2004 7.10169 20.2338 6.25169 21.9171L3.36836 27.6671C2.33503 29.7504 2.43503 32.1671 3.65169 34.1338C4.86836 36.1004 6.98503 37.2838 9.30169 37.2838H30.5684C32.8017 37.2838 34.885 36.1671 36.1184 34.3004C37.385 32.4338 37.585 30.0838 36.7017 28.0338Z",fill:"#currentColor"}),l("path",{d:"M11.6177 13.9659C14.7289 13.9659 17.251 11.4438 17.251 8.33255C17.251 5.22135 14.7289 2.69922 11.6177 2.69922C8.5065 2.69922 5.98438 5.22135 5.98438 8.33255C5.98438 11.4438 8.5065 13.9659 11.6177 13.9659Z",fill:"#currentColor"})]}),"error-triangle-filled":g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M10.2898 3.85996L1.81978 18C1.64514 18.3024 1.55274 18.6453 1.55177 18.9945C1.55079 19.3437 1.64127 19.6871 1.8142 19.9905C1.98714 20.2939 2.2365 20.5467 2.53748 20.7238C2.83847 20.9009 3.18058 20.9961 3.52978 21H20.4698C20.819 20.9961 21.1611 20.9009 21.4621 20.7238C21.7631 20.5467 22.0124 20.2939 22.1854 19.9905C22.3583 19.6871 22.4488 19.3437 22.4478 18.9945C22.4468 18.6453 22.3544 18.3024 22.1798 18L13.7098 3.85996C13.5315 3.56607 13.2805 3.32308 12.981 3.15444C12.6814 2.98581 12.3435 2.89722 11.9998 2.89722C11.656 2.89722 11.3181 2.98581 11.0186 3.15444C10.7191 3.32308 10.468 3.56607 10.2898 3.85996Z",fill:"#currentColor"}),l("path",{d:"M12 9V13",stroke:"",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M12 16V16.5",stroke:"",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),archive:g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M19.5 10.22V19C19.5 21 19 22 16.5 22H7.5C5 22 4.5 21 4.5 19V10.22",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M5 2H19C21 2 22 3 22 5V7C22 9 21 10 19 10H5C3 10 2 9 2 7V5C2 3 3 2 5 2Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M10.1797 14H13.8197",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),lock:g("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M16.0015 23.1338C17.2018 23.1338 18.1748 22.1607 18.1748 20.9604C18.1748 19.7601 17.2018 18.7871 16.0015 18.7871C14.8012 18.7871 13.8281 19.7601 13.8281 20.9604C13.8281 22.1607 14.8012 23.1338 16.0015 23.1338Z",fill:"#currentColor"}),l("path",{d:"M24.3746 12.706V11.0393C24.3746 7.43935 23.508 2.66602 16.0013 2.66602C8.49464 2.66602 7.62797 7.43935 7.62797 11.0393V12.706C3.89464 13.1727 2.66797 15.066 2.66797 19.7193V22.1993C2.66797 27.666 4.33464 29.3327 9.8013 29.3327H22.2013C27.668 29.3327 29.3346 27.666 29.3346 22.1993V19.7193C29.3346 15.066 28.108 13.1727 24.3746 12.706ZM16.0013 24.986C13.7746 24.986 11.9746 23.1727 11.9746 20.9594C11.9746 18.7327 13.788 16.9327 16.0013 16.9327C18.2146 16.9327 20.028 18.746 20.028 20.9594C20.028 23.186 18.228 24.986 16.0013 24.986ZM9.8013 12.586C9.69464 12.586 9.6013 12.586 9.49464 12.586V11.0393C9.49464 7.13268 10.6013 4.53268 16.0013 4.53268C21.4013 4.53268 22.508 7.13268 22.508 11.0393V12.5993C22.4013 12.5993 22.308 12.5993 22.2013 12.5993H9.8013V12.586Z",fill:"#currentColor"})]}),"lock-outline":g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M6 10V8C6 4.69 7 2 12 2C17 2 18 4.69 18 8V10",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M12 18.5C13.3807 18.5 14.5 17.3807 14.5 16C14.5 14.6193 13.3807 13.5 12 13.5C10.6193 13.5 9.5 14.6193 9.5 16C9.5 17.3807 10.6193 18.5 12 18.5Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M17 22H7C3 22 2 21 2 17V15C2 11 3 10 7 10H17C21 10 22 11 22 15V17C22 21 21 22 17 22Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),minus:l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",children:l("path",{d:"M6 12h12",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),"arrow-3":g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M10.4478 6.71997L6.72778 3L3.00781 6.71997",fill:"#3F3F46"}),l("path",{d:"M10.4478 6.71997L6.72778 3L3.00781 6.71997",stroke:"#3F3F46",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M6.72656 21V3",stroke:"#3F3F46",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M13.5469 17.28L17.2669 21L20.9869 17.28",stroke:"#3F3F46",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M17.2656 3V21",stroke:"#3F3F46",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),filter:g("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M3.59896 1.40039H12.399C13.1323 1.40039 13.7323 2.00039 13.7323 2.73372V4.20039C13.7323 4.73372 13.399 5.40039 13.0656 5.73372L10.199 8.26706C9.79896 8.60039 9.53229 9.26706 9.53229 9.80039V12.6671C9.53229 13.0671 9.26563 13.6004 8.93229 13.8004L7.99896 14.4004C7.13229 14.9337 5.93229 14.3337 5.93229 13.2671V9.73372C5.93229 9.26706 5.66563 8.66706 5.39896 8.33372L2.86563 5.66706C2.53229 5.33372 2.26562 4.73372 2.26562 4.33372V2.80039C2.26562 2.00039 2.86563 1.40039 3.59896 1.40039Z",stroke:"#71717A",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7.28667 1.40039L4 6.66706",stroke:"#71717A",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),export:g("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M8.66797 7.33385L14.1346 1.86719",stroke:"#71717A",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M14.6648 4.53398V1.33398H11.4648",stroke:"#71717A",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7.33203 1.33398H5.9987C2.66536 1.33398 1.33203 2.66732 1.33203 6.00065V10.0007C1.33203 13.334 2.66536 14.6673 5.9987 14.6673H9.9987C13.332 14.6673 14.6654 13.334 14.6654 10.0007V8.66732",stroke:"#71717A",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),pause:g("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M7.1 13.24V3.76C7.1 2.86 6.72 2.5 5.76 2.5H3.34C2.38 2.5 2 2.86 2 3.76V13.24C2 14.14 2.38 14.5 3.34 14.5H5.76C6.72 14.5 7.1 14.14 7.1 13.24Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M13.9984 13.24V3.76C13.9984 2.86 13.6184 2.5 12.6584 2.5H10.2384C9.2851 2.5 8.89844 2.86 8.89844 3.76V13.24C8.89844 14.14 9.27844 14.5 10.2384 14.5H12.6584C13.6184 14.5 13.9984 14.14 13.9984 13.24Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"check-circle":g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M12 22C17.5 22 22 17.5 22 12C22 6.5 17.5 2 12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7.75 11.9999L10.58 14.8299L16.25 9.16992",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"money-icon":g("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{opacity:"0.4",d:"M14.167 17.0846H5.83366C3.33366 17.0846 1.66699 15.8346 1.66699 12.918V7.08464C1.66699 4.16797 3.33366 2.91797 5.83366 2.91797H14.167C16.667 2.91797 18.3337 4.16797 18.3337 7.08464V12.918C18.3337 15.8346 16.667 17.0846 14.167 17.0846Z",fill:"#705BFA"}),l("path",{d:"M10 12.5C11.3807 12.5 12.5 11.3807 12.5 10C12.5 8.61929 11.3807 7.5 10 7.5C8.61929 7.5 7.5 8.61929 7.5 10C7.5 11.3807 8.61929 12.5 10 12.5Z",fill:"#705BFA"}),l("path",{d:"M4.58301 12.7096C4.24134 12.7096 3.95801 12.4263 3.95801 12.0846V7.91797C3.95801 7.5763 4.24134 7.29297 4.58301 7.29297C4.92467 7.29297 5.20801 7.5763 5.20801 7.91797V12.0846C5.20801 12.4263 4.92467 12.7096 4.58301 12.7096Z",fill:"#705BFA"}),l("path",{d:"M15.417 12.7096C15.0753 12.7096 14.792 12.4263 14.792 12.0846V7.91797C14.792 7.5763 15.0753 7.29297 15.417 7.29297C15.7587 7.29297 16.042 7.5763 16.042 7.91797V12.0846C16.042 12.4263 15.7587 12.7096 15.417 12.7096Z",fill:"#705BFA"})]}),"check-icon":g("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{opacity:"0.4",d:"M9.99935 18.3346C14.6017 18.3346 18.3327 14.6037 18.3327 10.0013C18.3327 5.39893 14.6017 1.66797 9.99935 1.66797C5.39698 1.66797 1.66602 5.39893 1.66602 10.0013C1.66602 14.6037 5.39698 18.3346 9.99935 18.3346Z",fill:"#currentColor"}),l("path",{d:"M8.81719 12.9846C8.65052 12.9846 8.49219 12.918 8.37552 12.8013L6.01719 10.443C5.77552 10.2013 5.77552 9.8013 6.01719 9.55964C6.25885 9.31797 6.65885 9.31797 6.90052 9.55964L8.81719 11.4763L13.1005 7.19297C13.3422 6.9513 13.7422 6.9513 13.9839 7.19297C14.2255 7.43464 14.2255 7.83463 13.9839 8.0763L9.25885 12.8013C9.14219 12.918 8.98385 12.9846 8.81719 12.9846Z",fill:"#currentColor"})]}),"clock-icon":g("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{opacity:"0.4",d:"M9.99935 18.3346C14.6017 18.3346 18.3327 14.6037 18.3327 10.0013C18.3327 5.39893 14.6017 1.66797 9.99935 1.66797C5.39698 1.66797 1.66602 5.39893 1.66602 10.0013C1.66602 14.6037 5.39698 18.3346 9.99935 18.3346Z",fill:"#currentColor"}),l("path",{d:"M13.0909 13.2745C12.9826 13.2745 12.8742 13.2495 12.7742 13.1828L10.1909 11.6411C9.54922 11.2578 9.07422 10.4161 9.07422 9.67448V6.25781C9.07422 5.91615 9.35755 5.63281 9.69922 5.63281C10.0409 5.63281 10.3242 5.91615 10.3242 6.25781V9.67448C10.3242 9.97448 10.5742 10.4161 10.8326 10.5661L13.4159 12.1078C13.7159 12.2828 13.8076 12.6661 13.6326 12.9661C13.5076 13.1661 13.2992 13.2745 13.0909 13.2745Z",fill:"#currentColor"})]}),chart:g("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{opacity:"0.4",d:"M13.491 1.66797H6.50768C3.47435 1.66797 1.66602 3.4763 1.66602 6.50964V13.4846C1.66602 16.5263 3.47435 18.3346 6.50768 18.3346H13.4827C16.516 18.3346 18.3243 16.5263 18.3243 13.493V6.50964C18.3327 3.4763 16.5243 1.66797 13.491 1.66797Z",fill:"#currentColor"}),l("path",{d:"M5.83398 11.9596C5.49232 11.9596 5.20898 11.6763 5.20898 11.3346V8.66797C5.20898 8.3263 5.49232 8.04297 5.83398 8.04297C6.17565 8.04297 6.45898 8.3263 6.45898 8.66797V11.343C6.45898 11.6846 6.17565 11.9596 5.83398 11.9596Z",fill:"#currentColor"}),l("path",{d:"M10 13.4065C9.65833 13.4065 9.375 13.1232 9.375 12.7815V7.21484C9.375 6.87318 9.65833 6.58984 10 6.58984C10.3417 6.58984 10.625 6.87318 10.625 7.21484V12.7815C10.625 13.1232 10.3417 13.4065 10 13.4065Z",fill:"#currentColor"}),l("path",{d:"M14.166 11.9596C13.8243 11.9596 13.541 11.6763 13.541 11.3346V8.66797C13.541 8.3263 13.8243 8.04297 14.166 8.04297C14.5077 8.04297 14.791 8.3263 14.791 8.66797V11.343C14.791 11.6846 14.5077 11.9596 14.166 11.9596Z",fill:"#currentColor"})]}),google:g("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M29.074 13.3887H28V13.3333H16V18.6667H23.5354C22.436 21.7713 19.482 24 16 24C11.582 24 8.00002 20.418 8.00002 16C8.00002 11.582 11.582 7.99999 16 7.99999C18.0394 7.99999 19.8947 8.76932 21.3074 10.026L25.0787 6.25466C22.6974 4.03532 19.512 2.66666 16 2.66666C8.63669 2.66666 2.66669 8.63666 2.66669 16C2.66669 23.3633 8.63669 29.3333 16 29.3333C23.3634 29.3333 29.3334 23.3633 29.3334 16C29.3334 15.106 29.2414 14.2333 29.074 13.3887Z",fill:"#FFC107"}),l("path",{d:"M4.20398 9.79399L8.58465 13.0067C9.76998 10.072 12.6406 7.99999 16 7.99999C18.0393 7.99999 19.8946 8.76932 21.3073 10.026L25.0786 6.25466C22.6973 4.03532 19.512 2.66666 16 2.66666C10.8786 2.66666 6.43731 5.55799 4.20398 9.79399Z",fill:"#FF3D00"}),l("path",{d:"M16 29.3333C19.444 29.3333 22.5733 28.0153 24.9393 25.872L20.8127 22.38C19.4293 23.4327 17.7384 24.0019 16 24C12.532 24 9.58734 21.7887 8.478 18.7027L4.13 22.0527C6.33667 26.3707 10.818 29.3333 16 29.3333Z",fill:"#4CAF50"}),l("path",{d:"M29.074 13.3887H28V13.3333H16V18.6667H23.5353C23.0095 20.1443 22.0622 21.4355 20.8107 22.3807L20.8127 22.3793L24.9393 25.8713C24.6473 26.1367 29.3333 22.6667 29.3333 16C29.3333 15.106 29.2413 14.2333 29.074 13.3887Z",fill:"#1976D2"})]}),"tick-square":g("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M5.9987 15.1673H9.9987C13.332 15.1673 14.6654 13.834 14.6654 10.5007V6.50065C14.6654 3.16732 13.332 1.83398 9.9987 1.83398H5.9987C2.66536 1.83398 1.33203 3.16732 1.33203 6.50065V10.5007C1.33203 13.834 2.66536 15.1673 5.9987 15.1673Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M5.16797 8.49995L7.05464 10.3866L10.8346 6.61328",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),calendar:g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M16.7502 3.56V2C16.7502 1.59 16.4102 1.25 16.0002 1.25C15.5902 1.25 15.2502 1.59 15.2502 2V3.5H8.75023V2C8.75023 1.59 8.41023 1.25 8.00023 1.25C7.59023 1.25 7.25023 1.59 7.25023 2V3.56C4.55023 3.81 3.24023 5.42 3.04023 7.81C3.02023 8.1 3.26023 8.34 3.54023 8.34H20.4602C20.7502 8.34 20.9902 8.09 20.9602 7.81C20.7602 5.42 19.4502 3.81 16.7502 3.56Z",fill:"#currentColor"}),l("path",{d:"M20 9.83984H4C3.45 9.83984 3 10.2898 3 10.8398V16.9998C3 19.9998 4.5 21.9998 8 21.9998H16C19.5 21.9998 21 19.9998 21 16.9998V10.8398C21 10.2898 20.55 9.83984 20 9.83984ZM9.21 18.2098C9.16 18.2498 9.11 18.2998 9.06 18.3298C9 18.3698 8.94 18.3998 8.88 18.4198C8.82 18.4498 8.76 18.4698 8.7 18.4798C8.63 18.4898 8.57 18.4998 8.5 18.4998C8.37 18.4998 8.24 18.4698 8.12 18.4198C7.99 18.3698 7.89 18.2998 7.79 18.2098C7.61 18.0198 7.5 17.7598 7.5 17.4998C7.5 17.2398 7.61 16.9798 7.79 16.7898C7.89 16.6998 7.99 16.6298 8.12 16.5798C8.3 16.4998 8.5 16.4798 8.7 16.5198C8.76 16.5298 8.82 16.5498 8.88 16.5798C8.94 16.5998 9 16.6298 9.06 16.6698C9.11 16.7098 9.16 16.7498 9.21 16.7898C9.39 16.9798 9.5 17.2398 9.5 17.4998C9.5 17.7598 9.39 18.0198 9.21 18.2098ZM9.21 14.7098C9.02 14.8898 8.76 14.9998 8.5 14.9998C8.24 14.9998 7.98 14.8898 7.79 14.7098C7.61 14.5198 7.5 14.2598 7.5 13.9998C7.5 13.7398 7.61 13.4798 7.79 13.2898C8.07 13.0098 8.51 12.9198 8.88 13.0798C9.01 13.1298 9.12 13.1998 9.21 13.2898C9.39 13.4798 9.5 13.7398 9.5 13.9998C9.5 14.2598 9.39 14.5198 9.21 14.7098ZM12.71 18.2098C12.52 18.3898 12.26 18.4998 12 18.4998C11.74 18.4998 11.48 18.3898 11.29 18.2098C11.11 18.0198 11 17.7598 11 17.4998C11 17.2398 11.11 16.9798 11.29 16.7898C11.66 16.4198 12.34 16.4198 12.71 16.7898C12.89 16.9798 13 17.2398 13 17.4998C13 17.7598 12.89 18.0198 12.71 18.2098ZM12.71 14.7098C12.66 14.7498 12.61 14.7898 12.56 14.8298C12.5 14.8698 12.44 14.8998 12.38 14.9198C12.32 14.9498 12.26 14.9698 12.2 14.9798C12.13 14.9898 12.07 14.9998 12 14.9998C11.74 14.9998 11.48 14.8898 11.29 14.7098C11.11 14.5198 11 14.2598 11 13.9998C11 13.7398 11.11 13.4798 11.29 13.2898C11.38 13.1998 11.49 13.1298 11.62 13.0798C11.99 12.9198 12.43 13.0098 12.71 13.2898C12.89 13.4798 13 13.7398 13 13.9998C13 14.2598 12.89 14.5198 12.71 14.7098ZM16.21 18.2098C16.02 18.3898 15.76 18.4998 15.5 18.4998C15.24 18.4998 14.98 18.3898 14.79 18.2098C14.61 18.0198 14.5 17.7598 14.5 17.4998C14.5 17.2398 14.61 16.9798 14.79 16.7898C15.16 16.4198 15.84 16.4198 16.21 16.7898C16.39 16.9798 16.5 17.2398 16.5 17.4998C16.5 17.7598 16.39 18.0198 16.21 18.2098ZM16.21 14.7098C16.16 14.7498 16.11 14.7898 16.06 14.8298C16 14.8698 15.94 14.8998 15.88 14.9198C15.82 14.9498 15.76 14.9698 15.7 14.9798C15.63 14.9898 15.56 14.9998 15.5 14.9998C15.24 14.9998 14.98 14.8898 14.79 14.7098C14.61 14.5198 14.5 14.2598 14.5 13.9998C14.5 13.7398 14.61 13.4798 14.79 13.2898C14.89 13.1998 14.99 13.1298 15.12 13.0798C15.3 12.9998 15.5 12.9798 15.7 13.0198C15.76 13.0298 15.82 13.0498 15.88 13.0798C15.94 13.0998 16 13.1298 16.06 13.1698C16.11 13.2098 16.16 13.2498 16.21 13.2898C16.39 13.4798 16.5 13.7398 16.5 13.9998C16.5 14.2598 16.39 14.5198 16.21 14.7098Z",fill:"#currentColor"})]}),refresh:g("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M15.05 21.67C19.34 20.54 22.5 16.64 22.5 12C22.5 6.48 18.06 2 12.5 2C5.83 2 2.5 7.56 2.5 7.56M2.5 7.56V3M2.5 7.56H4.51H6.94",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M2.5 12C2.5 17.52 6.98 22 12.5 22",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"3 3"})]}),"design-tools":g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M2.95988 10.7201L3.87988 11.6201L11.6299 3.88012L10.6999 2.95012C9.91988 2.17012 9.10988 1.78012 8.30988 1.78012C7.50988 1.78012 6.69988 2.17012 5.91988 2.95012L2.95988 5.91012C1.36988 7.51012 1.36988 9.12012 2.95988 10.7201Z",fill:"#currentColor"}),l("path",{d:"M13.31 21.0701C14.88 22.6401 16.53 22.6401 18.1 21.0701L21.07 18.1101C22.63 16.5401 22.63 14.8901 21.07 13.3201L20.15 12.4001L12.4 20.1501L13.31 21.0701Z",fill:"#currentColor"}),l("path",{d:"M2.18991 20.0599C3.49991 16.7899 6.48991 12.5199 9.33991 9.72991C9.74991 12.3099 11.8099 14.3299 14.4099 14.6899C11.6099 17.5499 7.30991 20.5799 4.02991 21.8999C3.44991 22.1199 2.86991 21.9499 2.50991 21.5899C2.12991 21.2099 1.94991 20.6399 2.18991 20.0599Z",fill:"#currentColor"}),l("path",{d:"M10.2199 8.91004C10.4199 8.74004 10.6199 8.57004 10.8199 8.41004L12.6099 6.98004C12.6099 7.01004 12.6199 7.05004 12.6199 7.09004C12.7599 8.16004 13.2599 9.15004 14.0699 9.96004C14.8899 10.78 15.9099 11.28 17.0299 11.42C17.0599 11.42 17.0999 11.43 17.1299 11.43L15.6799 13.26C15.5399 13.44 15.3899 13.61 15.2299 13.79L14.5499 13.7C12.3999 13.4 10.6699 11.71 10.3299 9.57004L10.2199 8.91004Z",fill:"#currentColor"}),l("path",{d:"M13.57 6.38018C13.57 5.28018 13.99 4.23018 14.79 3.44018C15.4 2.82018 16.22 2.40018 17.22 2.28018L19.67 2.01018C21.01 1.86018 22.16 3.01018 22.01 4.36018L21.74 6.82018C21.5 9.01018 19.67 10.4102 17.73 10.4502C17.54 10.4602 17.33 10.4502 17.13 10.4302C16.28 10.3202 15.46 9.93018 14.77 9.25018C14.1 8.58018 13.72 7.79018 13.61 6.96018C13.59 6.76018 13.57 6.57018 13.57 6.38018Z",fill:"#currentColor"})]}),"design-tools-linear":g("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[g("g",{clipPath:"url(#clip0_1215_17258)",children:[l("path",{d:"M1.82539 16.7168C3.10873 13.5168 6.32539 9.16677 9.01706 7.00844L10.6587 5.69177C10.8671 5.54177 11.0754 5.40844 11.3087 5.31677C11.3087 5.46677 11.3171 5.63344 11.3421 5.79177C11.4337 6.49177 11.7504 7.14177 12.3087 7.7001C12.8754 8.26677 13.5671 8.6001 14.2754 8.69177C14.4421 8.7001 14.6087 8.71677 14.7754 8.7001C14.6837 8.95844 14.5421 9.2001 14.3671 9.4001L13.0671 11.0418C10.9171 13.7334 6.55039 16.9668 3.35873 18.2418C2.86706 18.4251 2.39206 18.2918 2.09206 17.9834C1.77539 17.6751 1.62539 17.2001 1.82539 16.7168Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M11.3083 5.31683C11.3083 4.40016 11.6583 3.52516 12.3166 2.8585C12.8249 2.35016 13.5166 2.00016 14.3416 1.89183L16.3916 1.66683C17.5083 1.54183 18.4666 2.49183 18.3333 3.62516L18.1083 5.67516C17.9083 7.50016 16.3833 8.66683 14.7666 8.70016C14.5999 8.70849 14.4249 8.70016 14.2666 8.69183C13.5583 8.60016 12.8666 8.27516 12.2999 7.70016C11.7416 7.14183 11.4249 6.49183 11.3333 5.79183C11.3249 5.6335 11.3083 5.47516 11.3083 5.31683Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M8.13255 7.94163C8.13255 10.1166 9.89922 11.8833 12.0742 11.8833",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M3.23372 9.3916L2.61706 8.78327C1.37539 7.5416 1.37539 6.3166 2.61706 5.07493L5.08372 2.60827C6.30872 1.38327 7.55039 1.38327 8.77539 2.60827",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l("path",{d:"M17.4074 11.2417C18.6324 12.4834 18.6324 13.7084 17.4074 14.95L14.9408 17.4167C13.7158 18.6417 12.4741 18.6417 11.2491 17.4167L10.6324 16.8",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l("path",{d:"M10.6257 16.7915L13.709 13.7082",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l("path",{d:"M3.23255 9.3916L5.69922 6.93327",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),l("defs",{children:l("clipPath",{id:"clip0_1215_17258",children:l("rect",{width:"20",height:"20",fill:"white",transform:"matrix(-1 0 0 -1 20 20)"})})})]}),building:g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M1 22H23",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M19.78 22.0098V17.5498",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M19.8001 10.8901C18.5801 10.8901 17.6001 11.8701 17.6001 13.0901V15.3601C17.6001 16.5801 18.5801 17.5601 19.8001 17.5601C21.0201 17.5601 22.0001 16.5801 22.0001 15.3601V13.0901C22.0001 11.8701 21.0201 10.8901 19.8001 10.8901Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M2.1001 21.9998V6.02979C2.1001 4.01979 3.10015 3.00977 5.09015 3.00977H11.3201C13.3101 3.00977 14.3001 4.01979 14.3001 6.02979V21.9998",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M5.80005 8.25H10.7501",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M5.80005 12H10.7501",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M8.25 22V18.25",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),book:g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M22 16.7402V4.67019C22 3.47019 21.02 2.58019 19.83 2.68019H19.77C17.67 2.86019 14.48 3.93019 12.7 5.05019L12.53 5.16019C12.24 5.34019 11.76 5.34019 11.47 5.16019L11.22 5.01019C9.44 3.90019 6.26 2.84019 4.16 2.67019C2.97 2.57019 2 3.47019 2 4.66019V16.7402C2 17.7002 2.78 18.6002 3.74 18.7202L4.03 18.7602C6.2 19.0502 9.55 20.1502 11.47 21.2002L11.51 21.2202C11.78 21.3702 12.21 21.3702 12.47 21.2202C14.39 20.1602 17.75 19.0502 19.93 18.7602L20.26 18.7202C21.22 18.6002 22 17.7002 22 16.7402Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M12 5.49023V20.4902",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7.75 8.49023H5.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M8.5 11.4902H5.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),menu:g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M17.5401 8.31014C18.8987 8.31014 20.0001 7.20876 20.0001 5.85014C20.0001 4.49152 18.8987 3.39014 17.5401 3.39014C16.1814 3.39014 15.0801 4.49152 15.0801 5.85014C15.0801 7.20876 16.1814 8.31014 17.5401 8.31014Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M6.46001 8.31014C7.81863 8.31014 8.92 7.20876 8.92 5.85014C8.92 4.49152 7.81863 3.39014 6.46001 3.39014C5.10139 3.39014 4 4.49152 4 5.85014C4 7.20876 5.10139 8.31014 6.46001 8.31014Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M17.5401 20.6099C18.8987 20.6099 20.0001 19.5086 20.0001 18.1499C20.0001 16.7913 18.8987 15.6899 17.5401 15.6899C16.1814 15.6899 15.0801 16.7913 15.0801 18.1499C15.0801 19.5086 16.1814 20.6099 17.5401 20.6099Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M6.46001 20.6099C7.81863 20.6099 8.92 19.5086 8.92 18.1499C8.92 16.7913 7.81863 15.6899 6.46001 15.6899C5.10139 15.6899 4 16.7913 4 18.1499C4 19.5086 5.10139 20.6099 6.46001 20.6099Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),profile:g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M12.1601 10.87C12.0601 10.86 11.9401 10.86 11.8301 10.87C9.45006 10.79 7.56006 8.84 7.56006 6.44C7.56006 3.99 9.54006 2 12.0001 2C14.4501 2 16.4401 3.99 16.4401 6.44C16.4301 8.84 14.5401 10.79 12.1601 10.87Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7.15997 14.56C4.73997 16.18 4.73997 18.82 7.15997 20.43C9.90997 22.27 14.42 22.27 17.17 20.43C19.59 18.81 19.59 16.17 17.17 14.56C14.43 12.73 9.91997 12.73 7.15997 14.56Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),scroll:g("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M7.4974 18.3334H12.4974C16.6641 18.3334 18.3307 16.6667 18.3307 12.5001V7.50008C18.3307 3.33341 16.6641 1.66675 12.4974 1.66675H7.4974C3.33073 1.66675 1.66406 3.33341 1.66406 7.50008V12.5001C1.66406 16.6667 3.33073 18.3334 7.4974 18.3334Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7.99844 7.4751L5.92344 9.5501C5.68177 9.79176 5.68177 10.2001 5.92344 10.4418L7.99844 12.5168",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M12 7.4751L14.075 9.5501C14.3167 9.79176 14.3167 10.2001 14.075 10.4418L12 12.5168",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),"programming-arrows":g("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M15.8359 13.3333V5.41667C15.8359 4.5 15.0859 3.75 14.1693 3.75H9.58594",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M11.6641 1.66675L9.16406 3.75008L11.6641 5.83341",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M15.8359 18.3333C17.2167 18.3333 18.3359 17.214 18.3359 15.8333C18.3359 14.4525 17.2167 13.3333 15.8359 13.3333C14.4552 13.3333 13.3359 14.4525 13.3359 15.8333C13.3359 17.214 14.4552 18.3333 15.8359 18.3333Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M4.16406 6.66675V14.5834C4.16406 15.5001 4.91406 16.2501 5.83073 16.2501H10.4141",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M8.33594 18.3334L10.8359 16.2501L8.33594 14.1667",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M4.16406 6.66675C5.54477 6.66675 6.66406 5.54746 6.66406 4.16675C6.66406 2.78604 5.54477 1.66675 4.16406 1.66675C2.78335 1.66675 1.66406 2.78604 1.66406 4.16675C1.66406 5.54746 2.78335 6.66675 4.16406 6.66675Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"chart-square":g("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M8.42394 9.29175H6.21561C5.69061 9.29175 5.26562 9.71671 5.26562 10.2417V14.5084H8.42394V9.29175V9.29175Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M10.6307 5.5H9.36405C8.83905 5.5 8.41406 5.92501 8.41406 6.45001V14.5H11.5724V6.45001C11.5724 5.92501 11.1557 5.5 10.6307 5.5Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M13.7865 10.7083H11.5781V14.5H14.7365V11.6583C14.7281 11.1333 14.3031 10.7083 13.7865 10.7083Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7.4974 18.3334H12.4974C16.6641 18.3334 18.3307 16.6667 18.3307 12.5001V7.50008C18.3307 3.33341 16.6641 1.66675 12.4974 1.66675H7.4974C3.33073 1.66675 1.66406 3.33341 1.66406 7.50008V12.5001C1.66406 16.6667 3.33073 18.3334 7.4974 18.3334Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"not-authorised":l("svg",{width:"567",height:"477",viewBox:"0 0 567 477",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:g("g",{id:"Wallet is Empty",children:[l("path",{id:"Fill 1",fillRule:"evenodd",clipRule:"evenodd",d:"M381.279 454.698C381.279 458.397 333.675 461.397 274.952 461.397C216.228 461.397 168.621 458.397 168.621 454.698C168.621 451.001 216.228 448.001 274.952 448.001C333.675 448.001 381.279 451.001 381.279 454.698Z",fill:"#DCDCE2"}),l("path",{id:"Stroke 3",d:"M261.521 24.3588C203.517 29.269 182.198 78.3658 199.663 106.985C211.986 127.177 232.868 154.466 271.795 147.92C310.719 141.373 313.999 105.349 293.499 100.449C272.999 95.5506 199.968 118.404 208.221 171.199C214.179 209.292 265.822 220.272 265.822 220.272",stroke:"#DCDCE2",strokeWidth:"1.74009",strokeDasharray:"6.09",fill:"none"}),l("path",{id:"Fill 13",fillRule:"evenodd",clipRule:"evenodd",d:"M307.202 7.73229C305.109 7.22812 303.812 5.11772 304.316 3.00409C304.818 0.905003 306.933 -0.395817 309.024 0.108351C311.127 0.615752 312.411 2.73423 311.911 4.83493C311.405 6.94695 309.306 8.23807 307.202 7.73229Z",fill:"#DCDCE2"}),l("path",{id:"Stroke 25",d:"M19.5938 265.483V270.506",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 27",d:"M9.54492 270.507L12.8939 273.856",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 29",d:"M4.52344 280.554H9.54685",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 31",d:"M9.54492 290.6L12.8939 287.251",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 33",d:"M19.5938 295.623V290.6",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 35",d:"M29.64 290.6L26.291 287.251",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 37",d:"M34.6601 280.554H29.6367",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 39",d:"M29.64 270.507L26.291 273.856",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 41",d:"M277.465 59.5231V62.872",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 43",d:"M269.092 67.8953H272.441",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 45",d:"M277.465 77.9412V74.5922",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 47",d:"M287.505 69.5707H284.156",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 49",d:"M93.2695 191.806V196.829",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 51",d:"M78.1992 206.877H83.2226",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 53",d:"M91.5938 220.273V215.249",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 55",d:"M106.666 206.877H101.643",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 57",d:"M434.86 367.625C438.559 367.625 441.558 370.624 441.558 374.324C441.558 378.022 438.559 381.021 434.86 381.021C431.161 381.021 428.162 378.022 428.162 374.324",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round",fill:"none"}),l("path",{id:"Stroke 59",d:"M466.564 458.951C467.419 464.931 463.286 470.473 457.335 471.33C451.388 472.187 445.872 468.035 445.02 462.055C444.167 456.074 448.298 450.531 454.249 449.674",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round",fill:"none"}),l("path",{id:"Fill 61",fillRule:"evenodd",clipRule:"evenodd",d:"M466.676 303.995C470.736 302.711 476.957 297.684 478.398 292.275C479.703 297.057 485.177 302.711 490.118 303.141C484.558 305.137 479.241 311.063 478.398 315.717C477.823 310.973 470.471 304.687 466.676 303.995Z",fill:"#EBECEF"}),l("path",{id:"Fill 63",fillRule:"evenodd",clipRule:"evenodd",d:"M46.3828 365.113C48.4134 364.471 51.5238 361.957 52.2443 359.253C52.8969 361.643 55.633 364.471 58.1041 364.686C55.3233 365.683 52.665 368.646 52.2443 370.974C51.9561 368.602 48.2809 365.458 46.3828 365.113Z",fill:"#EBECEF"}),l("path",{id:"Fill 65",fillRule:"evenodd",clipRule:"evenodd",d:"M83.2246 143.247C83.2246 146.023 80.975 148.271 78.2011 148.271C75.4257 148.271 73.1777 146.023 73.1777 143.247C73.1777 140.472 75.4257 138.224 78.2011 138.224C80.975 138.224 83.2246 140.472 83.2246 143.247Z",fill:"#D1D9E0"}),l("path",{id:"Fill 69",fillRule:"evenodd",clipRule:"evenodd",d:"M565.472 133.198C565.472 136.899 562.474 139.897 558.775 139.897C555.074 139.897 552.076 136.899 552.076 133.198C552.076 129.499 555.074 126.501 558.775 126.501C562.474 126.501 565.472 129.499 565.472 133.198Z",fill:"#EBECEF"}),l("path",{id:"Stroke 73",fillRule:"evenodd",clipRule:"evenodd",d:"M180.344 108.083C180.344 110.858 178.094 113.106 175.32 113.106C172.545 113.106 170.297 110.858 170.297 108.083C170.297 105.308 172.545 103.06 175.32 103.06C178.094 103.06 180.344 105.308 180.344 108.083Z",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round",fill:"none"}),l("path",{id:"Stroke 75",fillRule:"evenodd",clipRule:"evenodd",d:"M102.348 425.793C98.8919 427.108 95.0247 425.372 93.7097 421.916C92.393 418.459 94.1305 414.592 97.5871 413.277C101.044 411.96 104.911 413.698 106.226 417.154C107.541 420.611 105.805 424.478 102.348 425.793Z",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round",fill:"none"}),l("g",{id:"lock",children:g("g",{id:"vuesax/bold/lock",children:[l("path",{id:"Vector",d:"M284.131 335.746C297.112 335.746 307.636 325.222 307.636 312.24C307.636 299.259 297.112 288.735 284.131 288.735C271.149 288.735 260.625 299.259 260.625 312.24C260.625 325.222 271.149 335.746 284.131 335.746Z",fill:"#D4D4D8"}),l("path",{id:"Vector_2",d:"M374.69 222.977V204.951C374.69 166.015 365.316 114.39 284.128 114.39C202.94 114.39 193.567 166.015 193.567 204.951V222.977C153.189 228.024 139.922 248.501 139.922 298.829V325.652C139.922 384.776 157.948 402.802 217.072 402.802H351.184C410.308 402.802 428.334 384.776 428.334 325.652V298.829C428.334 248.501 415.067 228.024 374.69 222.977ZM284.128 355.791C260.046 355.791 240.578 336.179 240.578 312.24C240.578 288.158 260.19 268.69 284.128 268.69C308.066 268.69 327.678 288.302 327.678 312.24C327.678 336.323 308.21 355.791 284.128 355.791ZM217.072 221.679C215.919 221.679 214.909 221.679 213.755 221.679V204.951C213.755 162.699 225.725 134.578 284.128 134.578C342.532 134.578 354.501 162.699 354.501 204.951V221.823C353.347 221.823 352.338 221.823 351.184 221.823H217.072V221.679Z",fill:"#D4D4D8"})]})})]})}),"money-tick":g("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M6.09593 6.67136C6.72709 6.67136 7.23874 6.1597 7.23874 5.52855C7.23874 4.89739 6.72709 4.38574 6.09593 4.38574C5.46478 4.38574 4.95312 4.89739 4.95312 5.52855C4.95312 6.1597 5.46478 6.67136 6.09593 6.67136Z",stroke:"#currentColor",strokeWidth:"1.02853",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M9.07031 4.38574V6.67136",stroke:"#currentColor",strokeWidth:"1.02853",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M4.71948 8.27136C4.71948 8.6142 4.62349 8.93876 4.45436 9.21303C4.13894 9.74329 3.55839 10.0999 2.89099 10.0999C2.22359 10.0999 1.64304 9.74329 1.32762 9.21303C1.15849 8.93876 1.0625 8.6142 1.0625 8.27136C1.0625 7.26112 1.88075 6.44287 2.89099 6.44287C3.90123 6.44287 4.71948 7.26112 4.71948 8.27136Z",stroke:"#currentColor",strokeWidth:"1.02853",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M2.17969 8.27121L2.63223 8.72376L3.60591 7.82324",stroke:"#currentColor",strokeWidth:"1.02853",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M1.52344 7.03755V4.15768C1.52344 2.55775 2.43768 1.87207 3.80905 1.87207H8.38028C9.75164 1.87207 10.6659 2.55775 10.6659 4.15768V6.90042C10.6659 8.50035 9.75164 9.18603 8.38028 9.18603H4.49473",stroke:"#currentColor",strokeWidth:"1.02853",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),download:g("svg",{width:"19",height:"19",viewBox:"0 0 19 19",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M11.7653 17.1156H6.84114C3.13289 17.1156 1.54688 15.5296 1.54688 11.8213V11.7232C1.54688 8.36988 2.86855 6.75366 5.82911 6.47422C6.13121 6.45156 6.4182 6.67813 6.44841 6.98778C6.47862 7.29743 6.25205 7.57687 5.93485 7.60708C3.56338 7.82611 2.67974 8.94387 2.67974 11.7307V11.8289C2.67974 14.9027 3.76729 15.9903 6.84114 15.9903H11.7653C14.8392 15.9903 15.9267 14.9027 15.9267 11.8289V11.7307C15.9267 8.92876 15.028 7.811 12.6112 7.60708C12.3016 7.57687 12.0674 7.30499 12.0976 6.99534C12.1279 6.68569 12.3922 6.45156 12.7094 6.48177C15.7153 6.73855 17.0596 8.36233 17.0596 11.7383V11.8365C17.0596 15.5296 15.4736 17.1156 11.7653 17.1156Z",fill:"#71717A"}),l("path",{d:"M9.30081 12.1143C8.99116 12.1143 8.73438 11.8575 8.73438 11.5479V1.82034C8.73438 1.51069 8.99116 1.25391 9.30081 1.25391C9.61046 1.25391 9.86724 1.51069 9.86724 1.82034V11.5479C9.86724 11.8651 9.61046 12.1143 9.30081 12.1143Z",fill:"#292D32"}),l("path",{d:"M9.29969 12.9618C9.1562 12.9618 9.0127 12.909 8.89941 12.7957L6.36934 10.2656C6.15032 10.0466 6.15032 9.68407 6.36934 9.46505C6.58836 9.24603 6.95088 9.24603 7.1699 9.46505L9.29969 11.5948L11.4295 9.46505C11.6485 9.24603 12.011 9.24603 12.23 9.46505C12.4491 9.68407 12.4491 10.0466 12.23 10.2656L9.69997 12.7957C9.58669 12.909 9.44319 12.9618 9.29969 12.9618Z",fill:"#292D32"})]}),receipt:g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M22 6V8.42C22 10 21 11 19.42 11H16V4.01C16 2.9 16.91 2 18.02 2C19.11 2.01 20.11 2.45 20.83 3.17C21.55 3.9 22 4.9 22 6Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M2 7V21C2 21.83 2.93998 22.3 3.59998 21.8L5.31 20.52C5.71 20.22 6.27 20.26 6.63 20.62L8.28998 22.29C8.67998 22.68 9.32002 22.68 9.71002 22.29L11.39 20.61C11.74 20.26 12.3 20.22 12.69 20.52L14.4 21.8C15.06 22.29 16 21.82 16 21V4C16 2.9 16.9 2 18 2H7H6C3 2 2 3.79 2 6V7Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),"user-add":g("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M12 12.5C14.7614 12.5 17 10.2614 17 7.5C17 4.73858 14.7614 2.5 12 2.5C9.23858 2.5 7 4.73858 7 7.5C7 10.2614 9.23858 12.5 12 12.5Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M3.40991 22.5C3.40991 18.63 7.25991 15.5 11.9999 15.5C12.9599 15.5 13.8899 15.63 14.7599 15.87",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M22 18.5C22 18.82 21.96 19.13 21.88 19.43C21.79 19.83 21.63 20.22 21.42 20.56C20.73 21.72 19.46 22.5 18 22.5C16.97 22.5 16.04 22.11 15.34 21.47C15.04 21.21 14.78 20.9 14.58 20.56C14.21 19.96 14 19.25 14 18.5C14 17.42 14.43 16.43 15.13 15.71C15.86 14.96 16.88 14.5 18 14.5C19.18 14.5 20.25 15.01 20.97 15.83C21.61 16.54 22 17.48 22 18.5Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M19.49 18.48H16.51",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M18 17.02V20.01",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),"logo-placeholder":g("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("rect",{x:"0.5",y:"0.5",width:"41",height:"41",rx:"14.5",fill:"#F7FEE7"}),l("rect",{x:"0.5",y:"0.5",width:"41",height:"41",rx:"14.5",stroke:"#84CC16"}),l("path",{d:"M21.5 31.0003H13.08C11.92 31.0003 10.97 30.0703 10.97 28.9303V14.0903C10.97 11.4703 12.92 10.2803 15.31 11.4503L19.75 13.6303C20.71 14.1003 21.5 15.3503 21.5 16.4103V31.0003Z",stroke:"#65A30D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M30.97 24.0599V27.8399C30.97 29.9999 29.97 30.9999 27.81 30.9999H21.5V19.4199L21.97 19.5199L26.47 20.5299L28.5 20.9799C29.82 21.2699 30.9 21.9499 30.96 23.8699C30.97 23.9299 30.97 23.9899 30.97 24.0599Z",stroke:"#65A30D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M14.5 18H17.97",stroke:"#65A30D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M14.5 22H17.97",stroke:"#65A30D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M26.47 20.53V23.75C26.47 24.99 25.46 26 24.22 26C22.98 26 21.97 24.99 21.97 23.75V19.52L26.47 20.53Z",stroke:"#65A30D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M30.96 23.8703C30.9 25.0503 29.92 26.0003 28.72 26.0003C27.48 26.0003 26.47 24.9903 26.47 23.7503V20.5303L28.5 20.9803C29.82 21.2703 30.9 21.9503 30.96 23.8703Z",stroke:"#65A30D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),verify:g("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M6.08594 8.00005L7.6926 9.61339L10.9126 6.38672",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7.66594 1.63338C8.12594 1.24005 8.87927 1.24005 9.34594 1.63338L10.3993 2.54005C10.5993 2.71338 10.9726 2.85338 11.2393 2.85338H12.3726C13.0793 2.85338 13.6593 3.43338 13.6593 4.14005V5.27338C13.6593 5.53338 13.7993 5.91338 13.9726 6.11338L14.8793 7.16671C15.2726 7.62671 15.2726 8.38005 14.8793 8.84671L13.9726 9.90005C13.7993 10.1 13.6593 10.4734 13.6593 10.74V11.8734C13.6593 12.58 13.0793 13.16 12.3726 13.16H11.2393C10.9793 13.16 10.5993 13.3 10.3993 13.4734L9.34594 14.38C8.88594 14.7734 8.1326 14.7734 7.66594 14.38L6.6126 13.4734C6.4126 13.3 6.03927 13.16 5.7726 13.16H4.61927C3.9126 13.16 3.3326 12.58 3.3326 11.8734V10.7334C3.3326 10.4734 3.1926 10.1 3.02594 9.90005L2.12594 8.84005C1.73927 8.38005 1.73927 7.63338 2.12594 7.17338L3.02594 6.11338C3.1926 5.91338 3.3326 5.54005 3.3326 5.28005V4.13338C3.3326 3.42671 3.9126 2.84671 4.61927 2.84671H5.7726C6.0326 2.84671 6.4126 2.70671 6.6126 2.53338L7.66594 1.63338Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),infinity:l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M8.00057 7.99968C7.63475 8.7098 7.14429 9.34839 6.55257 9.88501C6.17966 10.258 5.70451 10.5121 5.1872 10.615C4.6699 10.718 4.13368 10.6652 3.64636 10.4634C3.15905 10.2616 2.74252 9.91983 2.44947 9.48128C2.15642 9.04273 2 8.52713 2 7.99968C2 7.47222 2.15642 6.95662 2.44947 6.51807C2.74252 6.07952 3.15905 5.73773 3.64636 5.53592C4.13368 5.33411 4.6699 5.28135 5.1872 5.38431C5.70451 5.48727 6.17966 5.74132 6.55257 6.11434C7.14429 6.65096 7.63475 7.28956 8.00057 7.99968ZM8.00057 7.99968C8.36639 7.28956 8.85685 6.65096 9.44857 6.11434C9.82148 5.74132 10.2966 5.48727 10.8139 5.38431C11.3312 5.28135 11.8675 5.33411 12.3548 5.53592C12.8421 5.73773 13.2586 6.07952 13.5517 6.51807C13.8447 6.95662 14.0011 7.47222 14.0011 7.99968C14.0011 8.52713 13.8447 9.04273 13.5517 9.48128C13.2586 9.91983 12.8421 10.2616 12.3548 10.4634C11.8675 10.6652 11.3312 10.718 10.8139 10.615C10.2966 10.5121 9.82148 10.258 9.44857 9.88501C8.85685 9.34839 8.36639 8.7098 8.00057 7.99968Z",stroke:"#currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),anchor:l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M8 14.6663C7.32222 14.6663 6.62778 14.5441 5.91667 14.2997C5.20556 14.0552 4.56111 13.7219 3.98333 13.2997C3.40556 12.8775 2.93067 12.383 2.55867 11.8163C2.18667 11.2497 2.00044 10.6441 2 9.99967V7.99967L4.66667 9.99967L3.63333 11.033C3.95556 11.5997 4.46667 12.0886 5.16667 12.4997C5.86667 12.9108 6.58889 13.1719 7.33333 13.283V7.33301H5.33333V5.99967H7.33333V5.21634C6.94444 5.0719 6.62511 4.83012 6.37533 4.49101C6.12556 4.1519 6.00044 3.7659 6 3.33301C6 2.77745 6.19444 2.30523 6.58333 1.91634C6.97222 1.52745 7.44444 1.33301 8 1.33301C8.55556 1.33301 9.02778 1.52745 9.41667 1.91634C9.80556 2.30523 10 2.77745 10 3.33301C10 3.76634 9.87511 4.15256 9.62533 4.49167C9.37556 4.83079 9.056 5.07234 8.66667 5.21634V5.99967H10.6667V7.33301H8.66667V13.283C9.41111 13.1719 10.1333 12.9108 10.8333 12.4997C11.5333 12.0886 12.0444 11.5997 12.3667 11.033L11.3333 9.99967L14 7.99967V9.99967C14 10.6441 13.814 11.2497 13.442 11.8163C13.07 12.383 12.5949 12.8775 12.0167 13.2997C11.4384 13.7219 10.794 14.0552 10.0833 14.2997C9.37267 14.5441 8.67822 14.6663 8 14.6663ZM8 3.99967C8.18889 3.99967 8.34733 3.9359 8.47533 3.80834C8.60333 3.68079 8.66711 3.52234 8.66667 3.33301C8.66622 3.14367 8.60222 2.98545 8.47467 2.85834C8.34711 2.73123 8.18889 2.66723 8 2.66634C7.81111 2.66545 7.65289 2.72945 7.52533 2.85834C7.39778 2.98723 7.33378 3.14545 7.33333 3.33301C7.33289 3.52056 7.39689 3.67901 7.52533 3.80834C7.65378 3.93767 7.812 4.00145 8 3.99967Z",fill:"#none"})}),"increment-quota":g("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M6.66634 2.99967C6.66634 2.0792 5.92014 1.33301 4.99967 1.33301C4.07921 1.33301 3.33301 2.0792 3.33301 2.99967V6.33301C3.33301 7.25347 4.07921 7.99967 4.99967 7.99967C5.92014 7.99967 6.66634 7.25347 6.66634 6.33301V2.99967Z",stroke:"#currentColor",strokeWidth:"1.33333"}),l("path",{d:"M11.9485 7.33301V1.33301L9.88574 2.83301",stroke:"#currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M10.667 10.667L12.667 12.667L10.667 14.667",stroke:"#currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M12.6667 12.667H5",stroke:"#currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})]}),"override-quota":g("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M3.51643 8.61065V7.09422C3.51643 5.88767 3.99573 4.73054 4.84889 3.87738C5.70205 3.02422 6.85918 2.54492 8.06573 2.54492C9.27227 2.54492 10.4294 3.02422 11.2826 3.87738C12.1357 4.73054 12.2359 5.19868 12.615 5.95689M2 13.1599C2 13.5621 2.15977 13.9478 2.44415 14.2322C2.72854 14.5166 3.11425 14.6764 3.51643 14.6764C3.91861 14.6764 4.30432 14.5166 4.58871 14.2322C4.8731 13.9478 5.03286 13.5621 5.03286 13.1599C5.03286 12.7578 4.8731 12.372 4.58871 12.0877C4.30432 11.8033 3.91861 11.6435 3.51643 11.6435C3.11425 11.6435 2.72854 11.8033 2.44415 12.0877C2.15977 12.372 2 12.7578 2 13.1599Z",stroke:"#currentColor",strokeWidth:"1.51643",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M9.96094 5.52148L12.8454 6.94546L14.2694 4.06096",stroke:"#currentColor",strokeWidth:"1.51643",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M13.2906 14.6753V10.126L11.7266 11.2633",stroke:"#currentColor",strokeWidth:"1.36479",strokeLinecap:"round",strokeLinejoin:"round"})]}),sandbox:g("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M19.953 8.017L21 15M21 15V17C21 17.7956 20.6839 18.5587 20.1213 19.1213C19.5587 19.6839 18.7956 20 18 20H6C5.20435 20 4.44129 19.6839 3.87868 19.1213C3.31607 18.5587 3 17.7956 3 17V15M21 15H3M3 15L4.245 6.703C4.31611 6.22948 4.55474 5.79719 4.91752 5.48468C5.28031 5.17218 5.74317 5.0002 6.222 5H10M13 3L18.5 4.5M15.75 3.75L13.75 10.75",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7 10.5C8.66667 9.83333 10.3333 9.83333 12 10.5C13.6667 11.1667 15.3333 11.1667 17 10.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"coming-soon":l("svg",{width:"567",height:"477",viewBox:"0 0 567 477",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:g("g",{id:"Wallet is Empty",children:[l("path",{id:"Fill 1",fillRule:"evenodd",clipRule:"evenodd",d:"M381.279 454.698C381.279 458.397 333.675 461.397 274.952 461.397C216.228 461.397 168.621 458.397 168.621 454.698C168.621 451.001 216.228 448.001 274.952 448.001C333.675 448.001 381.279 451.001 381.279 454.698Z",fill:"#DCDCE2"}),l("path",{id:"Stroke 3",d:"M261.521 24.3589C203.517 29.2691 182.198 78.3659 199.663 106.985C211.986 127.177 232.868 154.466 271.795 147.92C310.719 141.373 313.999 105.349 293.499 100.449C272.999 95.5507 199.968 118.404 208.221 171.199C214.179 209.292 265.822 220.272 265.822 220.272",stroke:"#DCDCE2",strokeWidth:"1.74009",strokeDasharray:"6.09"}),l("path",{id:"Fill 13",fillRule:"evenodd",clipRule:"evenodd",d:"M307.202 7.73247C305.109 7.2283 303.812 5.1179 304.316 3.00427C304.818 0.905186 306.933 -0.395634 309.024 0.108534C311.127 0.615935 312.411 2.73441 311.911 4.83512C311.405 6.94713 309.306 8.23825 307.202 7.73247Z",fill:"#DCDCE2"}),l("path",{id:"Stroke 25",d:"M19.5938 265.483V270.506",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 27",d:"M9.54492 270.506L12.8939 273.855",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 29",d:"M4.52344 280.554H9.54685",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 31",d:"M9.54492 290.6L12.8939 287.251",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 33",d:"M19.5938 295.623V290.599",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 35",d:"M29.64 290.6L26.291 287.251",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 37",d:"M34.6601 280.554H29.6367",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 39",d:"M29.64 270.506L26.291 273.855",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 41",d:"M277.465 59.5232V62.8721",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 43",d:"M269.092 67.8955H272.441",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 45",d:"M277.465 77.941V74.592",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 47",d:"M287.505 69.5706H284.156",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 49",d:"M93.2695 191.806V196.829",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 51",d:"M78.1992 206.877H83.2226",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 53",d:"M91.5938 220.273V215.249",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 55",d:"M106.666 206.877H101.643",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 57",d:"M434.86 367.625C438.559 367.625 441.558 370.624 441.558 374.324C441.558 378.022 438.559 381.021 434.86 381.021C431.161 381.021 428.162 378.022 428.162 374.324",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 59",d:"M466.564 458.951C467.419 464.93 463.286 470.473 457.335 471.33C451.388 472.187 445.872 468.035 445.02 462.055C444.167 456.074 448.298 450.531 454.249 449.674",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Fill 61",fillRule:"evenodd",clipRule:"evenodd",d:"M466.676 303.995C470.736 302.711 476.957 297.684 478.398 292.275C479.703 297.057 485.177 302.711 490.118 303.141C484.558 305.137 479.241 311.063 478.398 315.717C477.823 310.972 470.471 304.687 466.676 303.995Z",fill:"#EBECEF"}),l("path",{id:"Fill 63",fillRule:"evenodd",clipRule:"evenodd",d:"M46.3828 365.113C48.4134 364.472 51.5238 361.957 52.2443 359.253C52.8969 361.643 55.633 364.472 58.1041 364.686C55.3233 365.683 52.665 368.646 52.2443 370.974C51.9561 368.602 48.2809 365.459 46.3828 365.113Z",fill:"#EBECEF"}),l("path",{id:"Fill 65",fillRule:"evenodd",clipRule:"evenodd",d:"M83.2246 143.248C83.2246 146.023 80.975 148.271 78.2011 148.271C75.4257 148.271 73.1777 146.023 73.1777 143.248C73.1777 140.472 75.4257 138.224 78.2011 138.224C80.975 138.224 83.2246 140.472 83.2246 143.248Z",fill:"#D1D9E0"}),l("path",{id:"Fill 69",fillRule:"evenodd",clipRule:"evenodd",d:"M565.472 133.198C565.472 136.899 562.474 139.897 558.775 139.897C555.074 139.897 552.076 136.899 552.076 133.198C552.076 129.499 555.074 126.501 558.775 126.501C562.474 126.501 565.472 129.499 565.472 133.198Z",fill:"#EBECEF"}),l("path",{id:"Stroke 73",fillRule:"evenodd",clipRule:"evenodd",d:"M180.344 108.083C180.344 110.859 178.094 113.107 175.32 113.107C172.545 113.107 170.297 110.859 170.297 108.083C170.297 105.308 172.545 103.06 175.32 103.06C178.094 103.06 180.344 105.308 180.344 108.083Z",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 75",fillRule:"evenodd",clipRule:"evenodd",d:"M102.348 425.793C98.8919 427.108 95.0247 425.372 93.7097 421.916C92.393 418.459 94.1305 414.592 97.5871 413.277C101.044 411.96 104.911 413.698 106.226 417.154C107.541 420.611 105.805 424.478 102.348 425.793Z",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("g",{id:"timer",children:l("g",{id:"vuesax/bold/timer",children:g("g",{id:"timer_2",children:[l("path",{id:"Vector",d:"M284.132 152.604C215.202 152.604 159.105 208.7 159.105 277.63C159.105 346.561 215.202 402.801 284.132 402.801C353.063 402.801 409.159 346.705 409.159 277.775C409.159 208.844 353.063 152.604 284.132 152.604ZM294.948 273.016C294.948 278.928 290.045 283.831 284.132 283.831C278.22 283.831 273.317 278.928 273.317 273.016V200.913C273.317 195 278.22 190.097 284.132 190.097C290.045 190.097 294.948 195 294.948 200.913V273.016Z",fill:"#D4D4D8"}),l("path",{id:"Vector_2",d:"M325.806 135.299H242.455C236.687 135.299 232.072 130.685 232.072 124.916C232.072 119.148 236.687 114.389 242.455 114.389H325.806C331.575 114.389 336.189 119.004 336.189 124.772C336.189 130.54 331.575 135.299 325.806 135.299Z",fill:"#D4D4D8"})]})})})]})}),import:g("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M11.9999 9.12495C11.8415 9.12495 11.6832 9.06662 11.5582 8.94162C11.3165 8.69995 11.3165 8.29995 11.5582 8.05828L18.3915 1.22495C18.6332 0.983285 19.0332 0.983285 19.2749 1.22495C19.5165 1.46662 19.5165 1.86662 19.2749 2.10828L12.4415 8.94162C12.3249 9.05828 12.1665 9.12495 11.9999 9.12495Z",fill:"#292D32"}),l("path",{d:"M15.359 9.7916H11.334C10.9923 9.7916 10.709 9.50827 10.709 9.1666V5.1416C10.709 4.79993 10.9923 4.5166 11.334 4.5166C11.6757 4.5166 11.959 4.79993 11.959 5.1416V8.5416H15.359C15.7007 8.5416 15.984 8.82493 15.984 9.1666C15.984 9.50827 15.7007 9.7916 15.359 9.7916Z",fill:"#292D32"}),l("path",{d:"M12.9993 18.9584H7.99935C3.47435 18.9584 1.54102 17.0251 1.54102 12.5001V7.50008C1.54102 2.97508 3.47435 1.04175 7.99935 1.04175H9.66602C10.0077 1.04175 10.291 1.32508 10.291 1.66675C10.291 2.00841 10.0077 2.29175 9.66602 2.29175H7.99935C4.15768 2.29175 2.79102 3.65841 2.79102 7.50008V12.5001C2.79102 16.3417 4.15768 17.7084 7.99935 17.7084H12.9993C16.841 17.7084 18.2077 16.3417 18.2077 12.5001V10.8334C18.2077 10.4917 18.491 10.2084 18.8327 10.2084C19.1744 10.2084 19.4577 10.4917 19.4577 10.8334V12.5001C19.4577 17.0251 17.5243 18.9584 12.9993 18.9584Z",fill:"#292D32"})]}),extras:l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M14 6H10M14 6V2H10L10 6M14 6L14 10H10M10 6L6 6M10 6V10M2 10V14H6V10M2 10L6 10M2 10L2 6H6M6 10L6 6M6 10H10",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})}),"card-receive":g("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M1.33301 5.66699H9.66634",stroke:"currentColor",strokeWidth:"1.2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M4 11H5.33333",stroke:"currentColor",strokeWidth:"1.2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7 11H9.66667",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M14.6663 9.35301V10.7397C14.6663 13.0797 14.073 13.6663 11.7063 13.6663H4.29301C1.92634 13.6663 1.33301 13.0797 1.33301 10.7397V5.25967C1.33301 2.91967 1.92634 2.33301 4.29301 2.33301H9.66634",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M13.333 2.33301V6.33301L14.6663 4.99967",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M13.3333 6.33333L12 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),radar:l("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M3.99967 3.33333C5.11301 2.5 6.49967 2 7.99967 2C11.6797 2 14.6663 4.98667 14.6663 8.66667C14.6663 12.3467 11.6797 15.3333 7.99967 15.3333C4.31967 15.3333 1.33301 12.3467 1.33301 8.66667C1.33301 7.46 1.653 6.32666 2.21967 5.34666L7.99967 8.66667",stroke:"currentColor",strokeWidth:"1.2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}),subtitle:g("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M9.99967 15.1663H5.99967C2.37967 15.1663 0.833008 13.6197 0.833008 9.99967V5.99967C0.833008 2.37967 2.37967 0.833008 5.99967 0.833008H9.99967C13.6197 0.833008 15.1663 2.37967 15.1663 5.99967V9.99967C15.1663 13.6197 13.6197 15.1663 9.99967 15.1663ZM5.99967 1.83301C2.92634 1.83301 1.83301 2.92634 1.83301 5.99967V9.99967C1.83301 13.073 2.92634 14.1663 5.99967 14.1663H9.99967C13.073 14.1663 14.1663 13.073 14.1663 9.99967V5.99967C14.1663 2.92634 13.073 1.83301 9.99967 1.83301H5.99967Z",fill:"#27272A"}),l("path",{d:"M11.6669 11.8867H10.4336C10.1603 11.8867 9.93359 11.6601 9.93359 11.3867C9.93359 11.1134 10.1603 10.8867 10.4336 10.8867H11.6669C11.9403 10.8867 12.1669 11.1134 12.1669 11.3867C12.1669 11.6601 11.9403 11.8867 11.6669 11.8867Z",fill:"#27272A"}),l("path",{d:"M8.64634 11.8867H4.33301C4.05967 11.8867 3.83301 11.6601 3.83301 11.3867C3.83301 11.1134 4.05967 10.8867 4.33301 10.8867H8.64634C8.91967 10.8867 9.14634 11.1134 9.14634 11.3867C9.14634 11.6601 8.92634 11.8867 8.64634 11.8867Z",fill:"#27272A"}),l("path",{d:"M11.6671 9.37988H7.98047C7.70714 9.37988 7.48047 9.15322 7.48047 8.87988C7.48047 8.60655 7.70714 8.37988 7.98047 8.37988H11.6671C11.9405 8.37988 12.1671 8.60655 12.1671 8.87988C12.1671 9.15322 11.9405 9.37988 11.6671 9.37988Z",fill:"#27272A"}),l("path",{d:"M6.17967 9.37988H4.33301C4.05967 9.37988 3.83301 9.15322 3.83301 8.87988C3.83301 8.60655 4.05967 8.37988 4.33301 8.37988H6.17967C6.45301 8.37988 6.67967 8.60655 6.67967 8.87988C6.67967 9.15322 6.45301 9.37988 6.17967 9.37988Z",fill:"#27272A"})]})},he=({name:e,size:t=24,color:n="currentColor"})=>{const r=Rp[e];if(!r)return null;const o=n==="currentColor"?n:Np(n),{props:i}=r;return l("svg",{xmlns:i.xmlns,viewBox:i.viewBox,width:t,height:t,fill:i.fill==="none"?"none":o,stroke:i.fill==="none"?o:"none",children:i.children})};var br=(e=>(e.NONE="none",e.DAILY="daily",e.WEEKLY="weekly",e.MONTHLY="monthly",e.QUARTERLY="quarterly",e.YEARLY="yearly",e.BI_ANNUALLY="biannually",e))(br||{}),ke=(e=>(e.DAILY="daily",e.WEEKLY="weekly",e.MONTHLY="monthly",e.YEARLY="yearly",e.QUARTERLY="quarterly",e.BIANNUALLY="biannually",e.CUSTOM="custom",e))(ke||{}),No=(e=>(e.InAdvance="in_advance",e.InArrears="in_arrears",e))(No||{}),mn=(e=>(e.BOOLEAN="boolean",e.METERED="metered",e))(mn||{}),Fp=(e=>(e.ARCHIVED="archived",e.ACTIVE="active",e.ALL="all",e))(Fp||{}),Vp=(e=>(e.SOFT="soft",e.HARD="hard",e))(Vp||{}),We=(e=>(e.ACTIVE="active",e.IN_TRIAL="in_trial",e.CANCELED="canceled",e.EXPIRED="expired",e.DEACTIVATED="deactivated",e.PAUSED="paused",e))(We||{}),w1=(e=>(e.All="all",e.Draft="draft",e.Pending="pending",e.Open="open",e.Paid="paid",e.Due="due",e.Overdue="overdue",e.Voided="voided",e.WrittenOff="written_off",e.Refunded="refunded",e))(w1||{}),$p=(e=>(e.ONE_OFF="OneOff",e.FIXED_RECURRING="RecurringFixed",e.USAGE_BASED="UsageBased",e))($p||{}),gn=(e=>(e.PER_UNIT="per_unit",e.PER_PACKAGE="per_package",e.FLAT="flat",e))(gn||{}),Op=(e=>(e.SUM="sum",e.COUNT_UNIQUE="count_unique",e.COUNT="count",e.AVERAGE="average",e.MAX="max",e.MIN="min",e.LATEST="latest",e))(Op||{}),C1=(e=>(e.PAY_AS_YOU_GO="in_arrears",e.UPFRONT_COMMITMENT="in_advance",e))(C1||{}),_p=(e=>(e.PER_USE="per_use",e.PERSISTENT_USE="persistent_use",e))(_p||{}),Bp=(e=>(e.ROLLOVER="Rollover",e.INCLUDED="Included",e.PURCHASED="Purchased",e.PAY_AS_YOU_GO="Pay as you go",e))(Bp||{});const Ip=()=>({once:"once",daily:"per day",weekly:"per week",monthly:"per month",quarterly:"per quarter",yearly:"per year",biannually:"per 6 months"}),jp={draft:{color:"bg-grey-600",text:"Draft"},pending:{color:"bg-orange-500",text:"Pending"},open:{color:"bg-blue-500",text:"Open"},voided:{color:"bg-neutral-400",text:"Voided"},paid:{color:"bg-green-600",text:"Paid"},written_off:{color:"bg-orange-500",text:"Written Off"},refunded:{color:"bg-blue-500",text:"Refunded"},overdue:{color:"bg-metrifox-danger",text:"Overdue"},due:{color:"bg-metrifox-danger",text:"Due"}},Hp=e=>jp[e]||{color:"bg-blue-500",text:""},Wp={[We.ACTIVE]:{color:"bg-metrifox-success",text:"Active"},[We.IN_TRIAL]:{color:"bg-metrifox-blue",text:"In trial"},[We.CANCELED]:{color:"bg-metrifox-danger",text:"Canceled"},[We.EXPIRED]:{color:"bg-metrifox-danger",text:"Expired"},[We.DEACTIVATED]:{color:"bg-metrifox-danger",text:"Deactivated"},[We.PAUSED]:{color:"bg-grey-500",text:"Paused"}},Up=e=>Wp[e]||{color:"bg-metrifox-success",text:""};function Ue(e){return Math.floor(e).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}const Zp=(e,t,n="-")=>{try{return t.split(/[.[\]]+/).filter(Boolean).reduce((r,o)=>r[o],e)??n}catch{return n}},x1=(e,t)=>t.find(n=>n.price.billing_interval===e),k1=(e,t)=>t?.filter(n=>n.price.billing_interval===e),zp=(e,t=1)=>({[ke.QUARTERLY]:3,[ke.BIANNUALLY]:6,[ke.YEARLY]:12}[e]??1)*t,Kp={daily:"days",weekly:"weeks",monthly:"months",quarterly:"quarters",yearly:"years"},Yp=(e,t)=>e?.map((n,r)=>{const{first_unit:o,last_unit:i,unit_price:s,package_price:a,package_size:c,pricing_model:u,flat_fee:d}=n,f=Kt(t),h=r===0,m=r===e.length-1,p=()=>u===gn.PER_UNIT?h&&i===-1?"per unit":h?`First ${i}`:m?`Last ${o}`:`${o} to ${i}`:u===gn.PER_PACKAGE?h?`First ${i}`:m?`Last ${o}`:`${o} to ${i}`:u===gn.FLAT?h?`First ${i}`:m?`Last ${o}`:`${o} to ${i}`:"",y=()=>u===gn.PER_UNIT?`${f}${me(s)}`:u===gn.PER_PACKAGE&&c?`${f}${me(a)}`:u===gn.FLAT?`${f}${me(d)}`:"";return{label:p(),price:y(),package:c}}),L1=e=>{const t=e?.price?.owner,n=0,r=e?.price?.tiers?.find(f=>f.first_unit===n),o=Kt(e?.price?.currency)||"";if(!r)return{price:null,label:null,currencySymbol:null};const{unit_price:i,package_price:s,package_size:a,pricing_model:c,flat_fee:u,percentage:d}=r;return u?{price:me(u),label:"",currencySymbol:o,isPercentage:!1}:{per_unit:{price:me(i),label:`${t?.feature?.unit_singular||t?.credit_unit_singular||t?.unit_singular}`,currencySymbol:o,isPercentage:!1},per_package:{price:me(s),label:`${a} ${t?.feature?.unit_plural}`,currencySymbol:o,isPercentage:!1},percentage:{price:`${d}%`,label:`of ${t?.feature?.unit_plural}`,currencySymbol:o,isPercentage:!0}}[c]??{price:null,label:null,currencySymbol:null,isPercentage:null}},Gp=e=>{const t=new Set;for(const n of e)if(n){const r=[...n?.price_options||[],...n?.entitlement_price_options||[],...n?.credit_attachment_price_options||[]],o=r.some(i=>i.price?.invoice_timing===No.InAdvance);r.forEach(i=>{const s=i.price.invoice_timing===No.InAdvance&&i.price?.billing_interval,a=i.price.invoice_timing===No.InArrears&&i.price?.billing_interval,c=o?s:a;c&&t.add(c)})}return Array.from(t)},me=e=>{if(e==null||e==="")return"--";const t=Number(e),n="en";if(isNaN(t))return"--";if(t===0)return"0.00";const r=Math.abs(t);let o="";o=r.toFixed(6).split(".")[1]?.replace(/0+$/,"")||"";const i=o.match(/^0*/)?.[0].length||0,s=Math.min(i+2,6),a=Number(t.toFixed(s));return isFinite(a)?a.toLocaleString(n,{minimumFractionDigits:s,maximumFractionDigits:s}):"--"},ss=e=>{const t=new Map;for(const n of e){const r=n.feature?.id;r&&t.set(r,n)}return Array.from(t.values())},qp=(e,t)=>[...e].sort((n,r)=>{const o=n.feature?.id,i=r.feature?.id,s=o?t.get(o)??1/0:1/0,a=i?t.get(i)??1/0:1/0;return s-a}),Xp=e=>{const t=new Map;e?.forEach(o=>{const{entitlements:i=[],base_entitlements:s=[]}=o||{};ss([...i,...s]).forEach(a=>{const c=a.feature?.id;if(c){const u=t.get(c);u?u.count+=1:t.set(c,{count:1,entitlement:a})}})});const n=Array.from(t.entries()).sort(([o,i],[s,a])=>{if(a.count!==i.count)return a.count-i.count;const c=i.entitlement.feature?.key||o,u=a.entitlement.feature?.key||s;return c.localeCompare(u)}),r=new Map;return n.forEach(([o],i)=>{r.set(o,i)}),{frequencyMap:t,featureOrderMap:r}},Jp=({productKey:e,checkoutUsername:t})=>{if(t)return`${`${window.location.protocol}//${window.location.host}`}/${t}/pricing/${e}`},Qp=(e,t,n,r)=>{if(!e)return null;const o=Number(e.used||"0"),i=Number(e.amount||"0"),s=Number(e.balance||"0"),a=e.next_reset_at&&Ao(e.next_reset_at),c=e.amount===null||i===-1;let u=0;return c?u=100:i>0&&(u=Math.min(o/i*100,100)),{pool:t,balance:s,used:o,amount:c?1/0:i,color:n,percent:u,isUnlimited:c,order:r,nextResetAt:a}},e6=e=>{const t=[{key:"rollover_quantity_pool",name:"Rollover",color:"purple-500",order:1},{key:"included_pool",name:"Included",color:"cyan-500",order:2},{key:"purchased_pool",name:"Purchased",color:"blue-200",order:3},{key:"pay_as_you_go_pool",name:"Pay as you go",color:"blue-200",order:4}],n=[];for(const u of t){const d=e[u.key],f=Qp(d,u.name,u.color,u.order);f&&n.push(f)}const r=n.reduce((u,d)=>u+d.used,0),o=n.filter(u=>!u.isUnlimited),i=o.reduce((u,d)=>u+d.amount,0),s=o.reduce((u,d)=>u+d.balance,0),a=n.some(u=>u.isUnlimited),c=n.length;return{processedPools:n,totalUsed:r,totalAmount:i,totalBalance:s,isAnyUnlimited:a,calculatedPoolCount:c}},E1=e=>e.includes("PurchasedCredit")?"Purchased credits":e.includes("IncludedCredit")?"Included credits":e.includes("Overage")?"Overage":e,t6=e=>{const t=n=>new Date(n).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return{id:e.id,creditedDate:Ao(e.created_at),source:E1(e.allocation_type),amount:e.amount,balance:e.amount-e.consumed,consumed:e.consumed,validUntil:e.valid_until?t(e.valid_until):"",orderId:e.order_id||null,orderNumber:e.order_number||null,allocationType:e.allocation_type}},M1=({width:e=170,height:t=28})=>g("svg",{width:e,height:t,viewBox:"0 0 109 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.8067 11.1011L3.14332 4.129C3.05337 3.99689 3.0007 3.83743 3.0007 3.66554C3.0007 3.21055 3.36946 2.8418 3.82444 2.8418C4.27943 2.8418 4.64818 3.21067 4.64818 3.66554C4.64818 3.83302 4.59823 3.98875 4.51234 4.11871L6.77653 10.7372L8.01027 9.8381L9.28086 10.8577L11.5539 4.15702C11.4517 4.01983 11.3912 3.84975 11.3912 3.66554C11.3912 3.21055 11.76 2.8418 12.215 2.8418C12.67 2.8418 13.0387 3.21067 13.0387 3.66554C13.0387 3.83686 12.9864 3.99598 12.8969 4.12775L15.2467 11.0969C15.5919 11.1951 15.8447 11.5128 15.8447 11.8894C15.8447 12.3444 15.4758 12.7131 15.0208 12.7131C15.0119 12.7131 15.003 12.7129 14.994 12.7127C14.9374 12.7628 14.8811 12.8082 14.828 12.8471L8.89074 17.211C8.89153 17.2255 8.89187 17.2401 8.89187 17.2548C8.89187 17.7098 8.523 18.0786 8.06802 18.0786C7.61304 18.0786 7.24428 17.7097 7.24428 17.2548V17.2547L1.19998 12.6988C1.15014 12.7081 1.09895 12.7131 1.0464 12.7131C0.591413 12.7131 0.222656 12.3442 0.222656 11.8894C0.222656 11.5179 0.468569 11.2037 0.806473 11.1011H0.8067ZM5.61127 11.616L3.76839 6.28006L2.00383 11.7247L3.88355 13.1032L5.61127 11.6159V11.616ZM10.3818 11.762L12.1125 13.0939L14.0868 11.5975L12.1785 6.44302L10.3819 11.7621L10.3818 11.762ZM7.9853 11.2693L4.84019 13.829L8.05672 16.3512L11.2279 13.9857L7.9853 11.2693Z",fill:"#3D3D3D"}),l("path",{d:"M106.131 4.67773V4.50098H107.149V4.67773H106.736V5.78874H106.542V4.67773H106.131Z",fill:"#3D3D3D"}),l("path",{d:"M107.567 4.66281V5.78874H107.381V4.50098H107.752L108.059 5.62691H108.094L108.407 4.50098H108.777V5.78874H108.592V4.66281H108.556L108.248 5.78874H107.909L107.603 4.66281H107.567Z",fill:"#3D3D3D"}),l("path",{d:"M38.0201 16.5853V8.53632C38.0201 7.23736 37.6683 6.20512 36.9647 5.43958C36.2611 4.67415 35.252 4.29138 33.9377 4.29138C32.2831 4.29138 30.9763 4.94865 30.0175 6.26298C29.4144 4.94854 28.2855 4.29138 26.6309 4.29138C25.0382 4.29138 23.7701 4.94865 22.8267 6.26298V4.61606H19.6953V16.5852H22.9891V10.0902C22.9891 8.00256 23.7855 6.95879 25.3783 6.95879C26.0896 6.95879 26.569 7.16368 26.8165 7.57346C27.0639 7.98324 27.1876 8.55926 27.1876 9.30152V16.5851H30.4815V9.85821C30.4815 7.94074 31.247 6.98196 32.7779 6.98196C33.5511 6.98196 34.0613 7.19453 34.3088 7.61979C34.5562 8.04505 34.6799 8.65204 34.6799 9.44074V16.5852L38.0201 16.5853ZM51.1754 12.8739H48.0207C47.5568 14.0338 46.7449 14.6136 45.5851 14.6136C44.7036 14.6136 44.0193 14.343 43.5322 13.8017C43.0452 13.2605 42.7938 12.4718 42.7785 11.4357H51.361V11.1109C51.361 9.0078 50.8275 7.34156 49.7604 6.11222C48.6935 4.88277 47.2553 4.2681 45.446 4.2681C43.6985 4.2681 42.2604 4.87124 41.1314 6.07741C40.0026 7.28358 39.4382 8.81455 39.4382 10.6702C39.4382 12.5568 39.9987 14.0723 41.1199 15.2166C42.241 16.361 43.7218 16.9332 45.5619 16.9332C46.9382 16.9332 48.1251 16.5775 49.1226 15.8662C50.12 15.1548 50.8043 14.1574 51.1754 12.8739ZM48.0207 9.34808H42.7785C42.8711 8.51304 43.1573 7.85576 43.6367 7.37637C44.1161 6.89697 44.7191 6.65728 45.446 6.65728C46.2192 6.65728 46.8223 6.90861 47.2553 7.41106C47.6882 7.91373 47.9434 8.55937 48.0207 9.34808ZM59.158 4.61606H56.7224V0.997552H53.4517V4.61606H51.4568V6.84284H53.4517V13.0594C53.4517 14.4976 53.7107 15.4679 54.2288 15.9704C54.7468 16.473 55.7249 16.7243 57.1631 16.7243C57.6888 16.7243 58.3538 16.6934 59.158 16.6315V14.1264C58.8951 14.1574 58.5626 14.1729 58.1605 14.1729C57.8049 14.1729 57.5304 14.1459 57.337 14.0916C57.1437 14.0375 57.0007 13.9254 56.9079 13.7553C56.8151 13.5852 56.761 13.419 56.7455 13.2566C56.73 13.0942 56.7224 12.8352 56.7224 12.4795V6.84284H59.158V4.61606ZM67.8365 4.40733C67.5118 4.361 67.2721 4.33772 67.1174 4.33772C65.3235 4.33772 64.0323 5.16507 63.2437 6.81967V4.61606H60.1121V16.5852H63.406V11.1109C63.406 9.9511 63.661 9.02712 64.1714 8.33899C64.6818 7.65087 65.4781 7.30675 66.5606 7.30675C66.9472 7.30675 67.3724 7.3532 67.8363 7.44598L67.8365 4.40733ZM71.8061 0.0697271H68.5123V2.8532H71.8061V0.0697271ZM71.8061 4.61618H68.5123V16.5853H71.8061V4.61618ZM80.2526 0.0697271C80.1288 0.0697271 79.9509 0.0619314 79.719 0.0464489C79.4871 0.0309663 79.2745 0.0194383 79.0812 0.0116405C78.888 0.00384272 78.7062 0 78.5362 0C77.067 0 76.0156 0.313153 75.3814 0.939462C74.7475 1.56577 74.4305 2.58254 74.4305 3.98975V4.61606H72.482V6.84284H74.4305V16.5852H77.7243V6.84284H80.0438V4.61606H77.701V3.66507C77.701 3.1702 77.7976 2.84167 77.991 2.67927C78.1843 2.51688 78.5747 2.43573 79.1623 2.43573C79.2088 2.43573 79.5721 2.45122 80.2526 2.48207V0.0697271ZM86.681 4.26821C84.8099 4.26821 83.3021 4.84808 82.1577 6.00791C81.0134 7.16775 80.4412 8.6986 80.4412 10.6008C80.4412 12.5184 81.0056 14.057 82.1344 15.2168C83.2633 16.3766 84.7633 16.9565 86.6344 16.9565C88.5056 16.9565 90.0017 16.3766 91.1229 15.2168C92.244 14.0569 92.8046 12.5183 92.8046 10.6008C92.8046 8.69871 92.2441 7.16775 91.1229 6.00791C90.0017 4.84808 88.5212 4.26821 86.681 4.26821ZM86.5882 6.77345C87.5006 6.77345 88.2158 7.10977 88.7338 7.78241C89.2519 8.45517 89.5109 9.38684 89.5109 10.5775C89.5109 11.7992 89.2596 12.7541 88.757 13.4423C88.2545 14.1304 87.547 14.4744 86.6346 14.4744C85.7222 14.4744 85.0108 14.1342 84.5006 13.4538C83.9903 12.7734 83.7351 11.8223 83.7351 10.6007C83.7351 9.40989 83.9903 8.47438 84.5006 7.79394C85.0109 7.1135 85.7068 6.77345 86.5882 6.77345ZM105.032 4.61618H101.39L99.2796 7.81722L97.1456 4.61618H93.3878L97.3542 10.276L92.9935 16.5853H96.7281L99.2333 12.7115L101.762 16.5853H105.519L101.089 10.2064L105.032 4.61618Z",fill:"#3D3D3D"})]}),S1=({data:e})=>{const t=e?.customer,{address:n}=y1(t?.billing_configuration?.billing_address),{address:r}=bp(t),o=t?.primary_phone||t?.phone_numbers[0]?.phone_number,i=n??r,s=e?.line_items||[],a=e?.charge_items||[],c=e?.usage_items||[],u=e?.currency?.symbol,d=[...s.map(h=>({...h,itemType:"line_item"})),...a.map(h=>({...h,itemType:"charge_item"})),...c.map(h=>({...h,itemType:"usage_item"}))],f=wp({...e?.tenant?.default_address},"No Tenant address provided");return g(k,{children:[g(k,{className:"h-max w-full flex items-center justify-between",children:[g(k,{className:"flex items-center gap-3",children:[e?.tenant?.logo_url?l(k,{className:"h-[2.5rem] w-[2.5rem] border overflow-hidden rounded-full",children:l("img",{src:e?.tenant?.logo_url,alt:"logo"})}):l(k,{className:"rounded-full h-[2.8rem] w-[2.8rem] bg-grey-200 p-3",children:l(he,{name:"logo-placeholder",size:20})}),l(is,{variant:"h5",className:"text-metrifox-black font-bold",children:e?.tenant?.business_name})]}),g(k,{children:[l(is,{variant:"h5",className:"text-metrifox-black font-bold uppercase",children:"Invoice"}),l(j,{variant:"body7",className:"text-metrifox-black text-right",children:e?.invoice_number})]})]}),g(k,{className:"bg-grey-100 px-3.5 py-5 mt-4 rounded-md flex items-center justify-between",children:[g(k,{children:[l(Z,{variant:"label8",className:"font-medium text-grey-700",children:"Invoice no"}),l(j,{variant:"body7",className:"font-light text-grey-500 text-center mt-0.5",children:e?.invoice_number||"-"})]}),g(k,{children:[l(Z,{variant:"label8",className:"font-medium text-grey-700",children:"Issue date"}),l(j,{variant:"body7",className:"font-light text-grey-500 mt-0.5",children:vt(e?.issued_at)})]}),g(k,{children:[l(Z,{variant:"label8",className:"font-medium text-grey-700",children:"Due date"}),l(j,{variant:"body7",className:"font-light text-grey-500 mt-0.5",children:vt(e?.due_at)})]})]}),g(k,{className:"mt-6 flex justify-between",children:[g(k,{className:"text-gray-500 max-w-[12rem]",children:[l(Z,{variant:"label8",className:"font-medium text-grey-700",children:"From"}),g(k,{className:"text-gray-500 font-light space-y-1 mt-1",children:[l(j,{variant:"body7",children:e?.tenant?.business_name}),l(j,{variant:"body7",children:f})]})]}),g(k,{className:"text-right max-w-[12rem] ",children:[l(Z,{variant:"label8",className:"font-medium text-grey-700",children:"Billed to"}),g(k,{className:"text-gray-500 font-light space-y-1 mt-1",children:[l(Z,{variant:"label8",className:"font-medium text-metrifox-blue underline",children:e?.customer?.full_name}),l(j,{variant:"body7",children:i}),l(j,{variant:"body7",children:e?.customer?.primary_email}),g(j,{variant:"body7",children:[" ",o]})]})]})]}),l(k,{className:"mt-8",children:g(k,{className:"w-full",children:[g(k,{className:"bg-grey-200 p-2 rounded-md font-medium text-grey-700 grid grid-cols-5 gap-x-6",children:[l(Z,{variant:"label8",className:"w-[12rem]",children:"Item name"}),l(Z,{variant:"label8",children:"Price"}),l(Z,{variant:"label8",children:"Qty"}),l(Z,{variant:"label8",children:"Subtotal"}),l(Z,{variant:"label8",children:"Amount"})]}),l(k,{children:d?.map(h=>g(k,{className:"text-left font-normal text-grey-700 pt-6 pb-2 grid grid-cols-5 gap-x-6 border-t border-grey-200 px-3 py-5",children:[g(k,{className:"w-full",children:[l(Z,{variant:"label8",className:"font-medium text-metrifox-blue",children:h?.name}),l(j,{variant:"body8",children:h?.description})]}),l(j,{variant:"body6",color:"text-metrifox-black",children:h.itemType==="usage_item"?"Tier based pricing":`${u}${me(h.unit_price)}`}),l(j,{variant:"body8",children:h?.quantity}),g(j,{variant:"body8",children:[u,me(h?.total_amount)]}),g(j,{variant:"body8",children:[u,me(h?.amount)]})]},h?.id))})]})}),g(k,{className:"bg-neutral-100 p-2.5 w-[50%] ml-auto rounded-sm mt-5",children:[g(k,{className:"flex justify-between border-b pb-2",children:[g(k,{children:[l(Z,{variant:"label8",className:"font-medium text-neutral-900",children:"Subtotal"}),g(k,{className:"text-neutral-500 space-y-1 my-2",children:[l(j,{variant:"body8",children:"Discount"}),l(j,{variant:"body8",children:"Tax"})]}),l(Z,{variant:"label8",className:"font-medium text-grey-800",children:"Grand total"})]}),g(k,{className:"text-right",children:[g(Z,{variant:"label8",className:"font-medium text-grey-800",children:[u,me(e?.summary?.items_subtotal)]}),g(k,{className:"text-neutral-500 space-y-1 my-2",children:[g(j,{variant:"body8",children:[u,me(e?.summary?.total_discounts)]}),g(j,{variant:"body8",children:[u,me(e?.summary?.total_tax_amount)]})]}),g(Z,{variant:"label8",className:"font-medium text-grey-800",children:[u,me(e?.summary?.total_amount_paid)]})]})]}),g(k,{className:"flex justify-between pt-2",children:[g(k,{className:"space-y-3 font-medium text-neutral-900",children:[l(Z,{variant:"label8",children:"Amount paid"}),l(Z,{variant:"label8",children:"Amount due"})]}),g(k,{className:"text-right space-y-3 font-medium text-grey-800",children:[g(Z,{variant:"label8",children:[u,me(e?.summary?.total_amount_paid)]}),g(Z,{variant:"label7",children:[u,me(e?.summary?.total_outstanding_amount)]})]})]})]}),e?.comment&&g(k,{className:"flex items-center gap-1 text-[.625rem] bg-metrifox-white p-2 mt-40 border-[0.03rem] border-grey-300 rounded",children:[l(j,{variant:"body8",children:"Note:"}),l(j,{variant:"body8",children:e?.comment})]}),l(k,{className:"border-t-[0.03rem] border-grey-300 pb-3 w-full mt-20",children:g(k,{className:"flex items-center justify-center gap-2 mt-1",children:[l(j,{variant:"body8",className:"text-metrifox-black",children:"Powered by"}),l(M1,{height:30,width:100})]})})]})},T1=De({});function as(e){const t=se(null);return t.current===null&&(t.current=e()),t.current}const ls=typeof window<"u",D1=ls?Tn:te,cs=De(null);function us(e,t){e.indexOf(t)===-1&&e.push(t)}function ds(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ot=(e,t,n)=>n>t?t:n<e?e:n;function fs(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Zn=()=>{},_t=()=>{};process.env.NODE_ENV!=="production"&&(Zn=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(fs(t,n))},_t=(e,t,n)=>{if(!e)throw new Error(fs(t,n))});const Bt={},P1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function A1(e){return typeof e=="object"&&e!==null}const N1=e=>/^0[^.\s]+$/u.test(e);function hs(e){let t;return()=>(t===void 0&&(t=e()),t)}const at=e=>e,n6=(e,t)=>n=>t(e(n)),wr=(...e)=>e.reduce(n6),Cr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class ps{constructor(){this.subscriptions=[]}add(t){return us(this.subscriptions,t),()=>ds(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const bt=e=>e*1e3,lt=e=>e/1e3;function R1(e,t){return t?e*(1e3/t):0}const F1=new Set;function ms(e,t,n){e||F1.has(t)||(console.warn(fs(t,n)),F1.add(t))}const V1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,r6=1e-7,o6=12;function i6(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=V1(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>r6&&++a<o6);return s}function xr(e,t,n,r){if(e===t&&n===r)return at;const o=i=>i6(i,0,1,e,n);return i=>i===0||i===1?i:V1(o(i),t,r)}const $1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,O1=e=>t=>1-e(1-t),_1=xr(.33,1.53,.69,.99),gs=O1(_1),B1=$1(gs),I1=e=>(e*=2)<1?.5*gs(e):.5*(2-Math.pow(2,-10*(e-1))),ys=e=>1-Math.sin(Math.acos(e)),j1=O1(ys),H1=$1(ys),s6=xr(.42,0,1,1),a6=xr(0,0,.58,1),W1=xr(.42,0,.58,1),l6=e=>Array.isArray(e)&&typeof e[0]!="number",U1=e=>Array.isArray(e)&&typeof e[0]=="number",Z1={linear:at,easeIn:s6,easeInOut:W1,easeOut:a6,circIn:ys,circInOut:H1,circOut:j1,backIn:gs,backInOut:B1,backOut:_1,anticipate:I1},c6=e=>typeof e=="string",z1=e=>{if(U1(e)){_t(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return xr(t,n,r,o)}else if(c6(e))return _t(Z1[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Z1[e];return e},Ro=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function u6(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(d){s.has(d)&&(u.schedule(d),e()),d(a)}const u={schedule:(d,f=!1,h=!1)=>{const p=h&&o?n:r;return f&&s.add(d),p.has(d)||p.add(d),d},cancel:d=>{r.delete(d),s.delete(d)},process:d=>{if(a=d,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(c),n.clear(),o=!1,i&&(i=!1,u.process(d))}};return u}const d6=40;function K1(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Ro.reduce((b,L)=>(b[L]=u6(i),b),{}),{setup:a,read:c,resolveKeyframes:u,preUpdate:d,update:f,preRender:h,render:m,postRender:p}=s,y=()=>{const b=Bt.useManualTiming?o.timestamp:performance.now();n=!1,Bt.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(b-o.timestamp,d6),1)),o.timestamp=b,o.isProcessing=!0,a.process(o),c.process(o),u.process(o),d.process(o),f.process(o),h.process(o),m.process(o),p.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(y))},v=()=>{n=!0,r=!0,o.isProcessing||e(y)};return{schedule:Ro.reduce((b,L)=>{const x=s[L];return b[L]=(E,D=!1,N=!1)=>(n||v(),x.schedule(E,D,N)),b},{}),cancel:b=>{for(let L=0;L<Ro.length;L++)s[Ro[L]].cancel(b)},state:o,steps:s}}const{schedule:ge,cancel:It,state:Fe,steps:vs}=K1(typeof requestAnimationFrame<"u"?requestAnimationFrame:at,!0);let Fo;function f6(){Fo=void 0}const Xe={now:()=>(Fo===void 0&&Xe.set(Fe.isProcessing||Bt.useManualTiming?Fe.timestamp:performance.now()),Fo),set:e=>{Fo=e,queueMicrotask(f6)}},Y1=e=>t=>typeof t=="string"&&t.startsWith(e),bs=Y1("--"),h6=Y1("var(--"),ws=e=>h6(e)?p6.test(e.split("/*")[0].trim()):!1,p6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,zn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},kr={...zn,transform:e=>Ot(0,1,e)},Vo={...zn,default:1},Lr=e=>Math.round(e*1e5)/1e5,Cs=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function m6(e){return e==null}const g6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xs=(e,t)=>n=>!!(typeof n=="string"&&g6.test(n)&&n.startsWith(e)||t&&!m6(n)&&Object.prototype.hasOwnProperty.call(n,t)),G1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Cs);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},y6=e=>Ot(0,255,e),ks={...zn,transform:e=>Math.round(y6(e))},yn={test:xs("rgb","red"),parse:G1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ks.transform(e)+", "+ks.transform(t)+", "+ks.transform(n)+", "+Lr(kr.transform(r))+")"};function v6(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Ls={test:xs("#"),parse:v6,transform:yn.transform},Er=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Yt=Er("deg"),Dt=Er("%"),Q=Er("px"),b6=Er("vh"),w6=Er("vw"),q1=(()=>({...Dt,parse:e=>Dt.parse(e)/100,transform:e=>Dt.transform(e*100)}))(),Kn={test:xs("hsl","hue"),parse:G1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Dt.transform(Lr(t))+", "+Dt.transform(Lr(n))+", "+Lr(kr.transform(r))+")"},Te={test:e=>yn.test(e)||Ls.test(e)||Kn.test(e),parse:e=>yn.test(e)?yn.parse(e):Kn.test(e)?Kn.parse(e):Ls.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?yn.transform(e):Kn.transform(e),getAnimatableNone:e=>{const t=Te.parse(e);return t.alpha=0,Te.transform(t)}},C6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function x6(e){return isNaN(e)&&typeof e=="string"&&(e.match(Cs)?.length||0)+(e.match(C6)?.length||0)>0}const X1="number",J1="color",k6="var",L6="var(",Q1="${}",E6=/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 Mr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(E6,c=>(Te.test(c)?(r.color.push(i),o.push(J1),n.push(Te.parse(c))):c.startsWith(L6)?(r.var.push(i),o.push(k6),n.push(c)):(r.number.push(i),o.push(X1),n.push(parseFloat(c))),++i,Q1)).split(Q1);return{values:n,split:a,indexes:r,types:o}}function eu(e){return Mr(e).values}function tu(e){const{split:t,types:n}=Mr(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){const a=n[s];a===X1?i+=Lr(o[s]):a===J1?i+=Te.transform(o[s]):i+=o[s]}return i}}const M6=e=>typeof e=="number"?0:Te.test(e)?Te.getAnimatableNone(e):e;function S6(e){const t=eu(e);return tu(e)(t.map(M6))}const Gt={test:x6,parse:eu,createTransformer:tu,getAnimatableNone:S6};function Es(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function T6({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;o=Es(c,a,e+1/3),i=Es(c,a,e),s=Es(c,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function $o(e,t){return n=>n>0?t:e}const be=(e,t,n)=>e+(t-e)*n,Ms=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},D6=[Ls,yn,Kn],P6=e=>D6.find(t=>t.test(e));function nu(e){const t=P6(e);if(Zn(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Kn&&(n=T6(n)),n}const ru=(e,t)=>{const n=nu(e),r=nu(t);if(!n||!r)return $o(e,t);const o={...n};return i=>(o.red=Ms(n.red,r.red,i),o.green=Ms(n.green,r.green,i),o.blue=Ms(n.blue,r.blue,i),o.alpha=be(n.alpha,r.alpha,i),yn.transform(o))},Ss=new Set(["none","hidden"]);function A6(e,t){return Ss.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function N6(e,t){return n=>be(e,t,n)}function Ts(e){return typeof e=="number"?N6:typeof e=="string"?ws(e)?$o:Te.test(e)?ru:V6:Array.isArray(e)?ou:typeof e=="object"?Te.test(e)?ru:R6:$o}function ou(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Ts(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function R6(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Ts(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function F6(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][r[i]],a=e.values[s]??0;n[o]=a,r[i]++}return n}const V6=(e,t)=>{const n=Gt.createTransformer(t),r=Mr(e),o=Mr(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Ss.has(e)&&!o.values.length||Ss.has(t)&&!r.values.length?A6(e,t):wr(ou(F6(r,o),o.values),n):(Zn(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),$o(e,t))};function iu(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?be(e,t,n):Ts(e)(e,t)}const $6=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ge.update(t,n),stop:()=>It(t),now:()=>Fe.isProcessing?Fe.timestamp:Xe.now()}},su=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Oo=2e4;function Ds(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Oo;)t+=n,r=e.next(t);return t>=Oo?1/0:t}function O6(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Ds(r),Oo);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:lt(o)}}const _6=5;function au(e,t,n){const r=Math.max(t-_6,0);return R1(n-e(r),t-r)}const we={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ps=.001;function B6({duration:e=we.duration,bounce:t=we.bounce,velocity:n=we.velocity,mass:r=we.mass}){let o,i;Zn(e<=bt(we.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Ot(we.minDamping,we.maxDamping,s),e=Ot(we.minDuration,we.maxDuration,lt(e)),s<1?(o=u=>{const d=u*s,f=d*e,h=d-n,m=As(u,s),p=Math.exp(-f);return Ps-h/m*p},i=u=>{const f=u*s*e,h=f*n+n,m=Math.pow(s,2)*Math.pow(u,2)*e,p=Math.exp(-f),y=As(Math.pow(u,2),s);return(-o(u)+Ps>0?-1:1)*((h-m)*p)/y}):(o=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-Ps+d*f},i=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const a=5/e,c=j6(o,i,a);if(e=bt(e),isNaN(c))return{stiffness:we.stiffness,damping:we.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const I6=12;function j6(e,t,n){let r=n;for(let o=1;o<I6;o++)r=r-e(r)/t(r);return r}function As(e,t){return e*Math.sqrt(1-t*t)}const H6=["duration","bounce"],W6=["stiffness","damping","mass"];function lu(e,t){return t.some(n=>e[n]!==void 0)}function U6(e){let t={velocity:we.velocity,stiffness:we.stiffness,damping:we.damping,mass:we.mass,isResolvedFromDuration:!1,...e};if(!lu(e,W6)&&lu(e,H6))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Ot(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:we.mass,stiffness:o,damping:i}}else{const n=B6(e);t={...t,...n,mass:we.mass},t.isResolvedFromDuration=!0}return t}function _o(e=we.visualDuration,t=we.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:u,mass:d,duration:f,velocity:h,isResolvedFromDuration:m}=U6({...n,velocity:-lt(n.velocity||0)}),p=h||0,y=u/(2*Math.sqrt(c*d)),v=s-i,w=lt(Math.sqrt(c/d)),C=Math.abs(v)<5;r||(r=C?we.restSpeed.granular:we.restSpeed.default),o||(o=C?we.restDelta.granular:we.restDelta.default);let b;if(y<1){const x=As(w,y);b=E=>{const D=Math.exp(-y*w*E);return s-D*((p+y*w*v)/x*Math.sin(x*E)+v*Math.cos(x*E))}}else if(y===1)b=x=>s-Math.exp(-w*x)*(v+(p+w*v)*x);else{const x=w*Math.sqrt(y*y-1);b=E=>{const D=Math.exp(-y*w*E),N=Math.min(x*E,300);return s-D*((p+y*w*v)*Math.sinh(N)+x*v*Math.cosh(N))/x}}const L={calculatedDuration:m&&f||null,next:x=>{const E=b(x);if(m)a.done=x>=f;else{let D=x===0?p:0;y<1&&(D=x===0?bt(p):au(b,x,E));const N=Math.abs(D)<=r,W=Math.abs(s-E)<=o;a.done=N&&W}return a.value=a.done?s:E,a},toString:()=>{const x=Math.min(Ds(L),Oo),E=su(D=>L.next(x*D).value,x,30);return x+"ms "+E},toTransition:()=>{}};return L}_o.applyToOptions=e=>{const t=O6(e,100,_o);return e.ease=t.ease,e.duration=bt(t.duration),e.type="keyframes",e};function Ns({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:c,restDelta:u=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},m=N=>a!==void 0&&N<a||c!==void 0&&N>c,p=N=>a===void 0?c:c===void 0||Math.abs(a-N)<Math.abs(c-N)?a:c;let y=n*t;const v=f+y,w=s===void 0?v:s(v);w!==v&&(y=w-f);const C=N=>-y*Math.exp(-N/r),b=N=>w+C(N),L=N=>{const W=C(N),O=b(N);h.done=Math.abs(W)<=u,h.value=h.done?w:O};let x,E;const D=N=>{m(h.value)&&(x=N,E=_o({keyframes:[h.value,p(h.value)],velocity:au(b,N,h.value),damping:o,stiffness:i,restDelta:u,restSpeed:d}))};return D(0),{calculatedDuration:null,next:N=>{let W=!1;return!E&&x===void 0&&(W=!0,L(N),D(N)),x!==void 0&&N>=x?E.next(N-x):(!W&&L(N),h)}}}function Z6(e,t,n){const r=[],o=n||Bt.mix||iu,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||at:t;a=wr(c,a)}r.push(a)}return r}function cu(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(_t(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Z6(t,r,o),c=a.length,u=d=>{if(s&&d<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=Cr(e[f],e[f+1],d);return a[f](h)};return n?d=>u(Ot(e[0],e[i-1],d)):u}function z6(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Cr(0,t,r);e.push(be(n,1,o))}}function K6(e){const t=[0];return z6(t,e.length-1),t}function Y6(e,t){return e.map(n=>n*t)}function G6(e,t){return e.map(()=>t||W1).splice(0,e.length-1)}function Yn({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=l6(r)?r.map(z1):z1(r),i={done:!1,value:t[0]},s=Y6(n&&n.length===t.length?n:K6(t),e),a=cu(s,t,{ease:Array.isArray(o)?o:G6(t,o)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const q6=e=>e!==null;function Rs(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(q6),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const X6={decay:Ns,inertia:Ns,tween:Yn,keyframes:Yn,spring:_o};function uu(e){typeof e.type=="string"&&(e.type=X6[e.type])}class Fs{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const J6=e=>e/100;class Vs extends Fs{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Xe.now()&&this.tick(Xe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;uu(t);const{type:n=Yn,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const c=n||Yn;process.env.NODE_ENV!=="production"&&c!==Yn&&_t(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==Yn&&typeof a[0]!="number"&&(this.mixKeyframes=wr(J6,iu(a[0],a[1])),a=[0,100]);const u=c({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...a].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=Ds(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:d,repeat:f,repeatType:h,repeatDelay:m,type:p,onUpdate:y,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const w=this.currentTime-u*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?w<0:w>o;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let b=this.currentTime,L=r;if(f){const N=Math.min(this.currentTime,o)/a;let W=Math.floor(N),O=N%1;!O&&N>=1&&(O=1),O===1&&W--,W=Math.min(W,f+1),!!(W%2)&&(h==="reverse"?(O=1-O,m&&(O-=m/a)):h==="mirror"&&(L=s)),b=Ot(0,1,O)*a}const x=C?{done:!1,value:d[0]}:L.next(b);i&&(x.value=i(x.value));let{done:E}=x;!C&&c!==null&&(E=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return D&&p!==Ns&&(x.value=Rs(d,this.options,v,this.speed)),y&&y(x.value),D&&this.finish(),x}then(t,n){return this.finished.then(t,n)}get duration(){return lt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+lt(t)}get time(){return lt(this.currentTime)}set time(t){t=bt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Xe.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=lt(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=$6,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Xe.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Q6(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const vn=e=>e*180/Math.PI,$s=e=>{const t=vn(Math.atan2(e[1],e[0]));return Os(t)},e7={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:$s,rotateZ:$s,skewX:e=>vn(Math.atan(e[1])),skewY:e=>vn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Os=e=>(e=e%360,e<0&&(e+=360),e),du=$s,fu=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),hu=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),t7={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fu,scaleY:hu,scale:e=>(fu(e)+hu(e))/2,rotateX:e=>Os(vn(Math.atan2(e[6],e[5]))),rotateY:e=>Os(vn(Math.atan2(-e[2],e[0]))),rotateZ:du,rotate:du,skewX:e=>vn(Math.atan(e[4])),skewY:e=>vn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function _s(e){return e.includes("scale")?1:0}function Bs(e,t){if(!e||e==="none")return _s(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=t7,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=e7,o=a}if(!o)return _s(t);const i=r[t],s=o[1].split(",").map(r7);return typeof i=="function"?i(s):s[i]}const n7=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Bs(n,t)};function r7(e){return parseFloat(e.trim())}const Gn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qn=(()=>new Set(Gn))(),pu=e=>e===zn||e===Q,o7=new Set(["x","y","z"]),i7=Gn.filter(e=>!o7.has(e));function s7(e){const t=[];return i7.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const bn={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:(e,{transform:t})=>Bs(t,"x"),y:(e,{transform:t})=>Bs(t,"y")};bn.translateX=bn.x,bn.translateY=bn.y;const wn=new Set;let Is=!1,js=!1,Hs=!1;function mu(){if(js){const e=Array.from(wn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=s7(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{r.getValue(i)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}js=!1,Is=!1,wn.forEach(e=>e.complete(Hs)),wn.clear()}function gu(){wn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(js=!0)})}function a7(){Hs=!0,gu(),mu(),Hs=!1}class Ws{constructor(t,n,r,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(wn.add(this),Is||(Is=!0,ge.read(gu),ge.resolveKeyframes(mu))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}Q6(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),wn.delete(this)}cancel(){this.state==="scheduled"&&(wn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const l7=e=>e.startsWith("--");function c7(e,t,n){l7(t)?e.style.setProperty(t,n):e.style[t]=n}const u7=hs(()=>window.ScrollTimeline!==void 0),d7={};function f7(e,t){const n=hs(e);return()=>d7[t]??n()}const yu=f7(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Sr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,vu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Sr([0,.65,.55,1]),circOut:Sr([.55,0,1,.45]),backIn:Sr([.31,.01,.66,-.59]),backOut:Sr([.33,1.53,.69,.99])};function bu(e,t){if(e)return typeof e=="function"?yu()?su(e,t):"ease-out":U1(e)?Sr(e):Array.isArray(e)?e.map(n=>bu(n,t)||vu.easeOut):vu[e]}function h7(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:c}={},u=void 0){const d={[t]:n};c&&(d.offset=c);const f=bu(a,o);Array.isArray(f)&&(d.easing=f);const h={delay:r,duration:o,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(d,h)}function wu(e){return typeof e=="function"&&"applyToOptions"in e}function p7({type:e,...t}){return wu(e)&&yu()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class m7 extends Fs{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,_t(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=p7(t);this.animation=h7(n,r,o,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=Rs(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(d):c7(n,r,d),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return lt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+lt(t)}get time(){return lt(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=bt(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&u7()?(this.animation.timeline=t,at):n(this)}}const Cu={anticipate:I1,backInOut:B1,circInOut:H1};function g7(e){return e in Cu}function y7(e){typeof e.ease=="string"&&g7(e.ease)&&(e.ease=Cu[e.ease])}const xu=10;class v7 extends m7{constructor(t){y7(t),uu(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Vs({...s,autoplay:!1}),c=bt(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-xu).value,a.sample(c).value,xu),a.stop()}}const ku=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Gt.test(e)||e==="0")&&!e.startsWith("url("));function b7(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 w7(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=ku(o,t),a=ku(i,t);return Zn(s===a,`You are trying to animate ${t} from "${o}" to "${i}". "${s?i:o}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:b7(e)||(n==="spring"||wu(n))&&r}function Us(e){e.duration=0,e.type="keyframes"}const C7=new Set(["opacity","clipPath","filter","transform"]),x7=hs(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function k7(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return x7()&&n&&C7.has(n)&&(n!=="transform"||!u)&&!c&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const L7=40;class E7 extends Fs{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:c,motionValue:u,element:d,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Xe.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:c,motionValue:u,element:d,...f},m=d?.KeyframeResolver||Ws;this.keyframeResolver=new m(a,(p,y,v)=>this.onKeyframesResolved(p,y,h,!v),c,u,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:c,isHandoff:u,onUpdate:d}=r;this.resolvedAt=Xe.now(),w7(t,i,s,a)||((Bt.instantAnimations||!c)&&d?.(Rs(t,r,n)),t[0]=t[t.length-1],Us(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>L7?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!u&&k7(h)?new v7({...h,element:h.motionValue.owner.current}):new Vs(h);m.finished.then(()=>this.notifyFinished()).catch(at),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),a7()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const M7=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function S7(e){const t=M7.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const T7=4;function Lu(e,t,n=1){_t(n<=T7,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=S7(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return P1(s)?parseFloat(s):s}return ws(o)?Lu(o,t,n+1):o}function Zs(e,t){return e?.[t]??e?.default??e}const Eu=new Set(["width","height","top","left","right","bottom",...Gn]),D7={test:e=>e==="auto",parse:e=>e},Mu=e=>t=>t.test(e),Su=[zn,Q,Dt,Yt,w6,b6,D7],Tu=e=>Su.find(Mu(e));function P7(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||N1(e):!0}const A7=new Set(["brightness","contrast","saturate","opacity"]);function N7(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Cs)||[];if(!r)return e;const o=n.replace(r,"");let i=A7.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const R7=/\b([a-z-]*)\(.*?\)/gu,zs={...Gt,getAnimatableNone:e=>{const t=e.match(R7);return t?t.map(N7).join(" "):e}},Du={...zn,transform:Math.round},F7={rotate:Yt,rotateX:Yt,rotateY:Yt,rotateZ:Yt,scale:Vo,scaleX:Vo,scaleY:Vo,scaleZ:Vo,skew:Yt,skewX:Yt,skewY:Yt,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:kr,originX:q1,originY:q1,originZ:Q},Ks={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,radius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,top:Q,right:Q,bottom:Q,left:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,backgroundPositionX:Q,backgroundPositionY:Q,...F7,zIndex:Du,fillOpacity:kr,strokeOpacity:kr,numOctaves:Du},V7={...Ks,color:Te,backgroundColor:Te,outlineColor:Te,fill:Te,stroke:Te,borderColor:Te,borderTopColor:Te,borderRightColor:Te,borderBottomColor:Te,borderLeftColor:Te,filter:zs,WebkitFilter:zs},Pu=e=>V7[e];function Au(e,t){let n=Pu(e);return n!==zs&&(n=Gt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const $7=new Set(["auto","none","0"]);function O7(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!$7.has(i)&&Mr(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=Au(n,o)}class _7 extends Ws{constructor(t,n,r,o,i){super(t,n,r,o,i,!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 u=t[c];if(typeof u=="string"&&(u=u.trim(),ws(u))){const d=Lu(u,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Eu.has(r)||t.length!==2)return;const[o,i]=t,s=Tu(o),a=Tu(i);if(s!==a)if(pu(s)&&pu(a))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else bn[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||P7(t[o]))&&r.push(o);r.length&&O7(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=bn[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=bn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{t.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function B7(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const Nu=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function I7(e){return A1(e)&&"offsetHeight"in e}const Ru=30,j7=e=>!isNaN(parseFloat(e)),Tr={current:void 0};class H7{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=Xe.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Xe.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=j7(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ms(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ps);const r=this.events[t].add(n);return t==="change"?()=>{r(),ge.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}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()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Tr.current&&Tr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Xe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ru)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ru);return R1(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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Cn(e,t){return new H7(e,t)}const{schedule:Ys}=K1(queueMicrotask,!1),wt={x:!1,y:!1};function Fu(){return wt.x||wt.y}function W7(e){return e==="x"||e==="y"?wt[e]?null:(wt[e]=!0,()=>{wt[e]=!1}):wt.x||wt.y?null:(wt.x=wt.y=!0,()=>{wt.x=wt.y=!1})}function Vu(e,t){const n=B7(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function $u(e){return!(e.pointerType==="touch"||Fu())}function U7(e,t,n={}){const[r,o,i]=Vu(e,n),s=a=>{if(!$u(a))return;const{target:c}=a,u=t(c,a);if(typeof u!="function"||!c)return;const d=f=>{$u(f)&&(u(f),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const Ou=(e,t)=>t?e===t?!0:Ou(e,t.parentElement):!1,Gs=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Z7=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function z7(e){return Z7.has(e.tagName)||e.tabIndex!==-1}const Bo=new WeakSet;function _u(e){return t=>{t.key==="Enter"&&e(t)}}function qs(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const K7=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=_u(()=>{if(Bo.has(n))return;qs(n,"down");const o=_u(()=>{qs(n,"up")}),i=()=>qs(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Bu(e){return Gs(e)&&!Fu()}function Y7(e,t,n={}){const[r,o,i]=Vu(e,n),s=a=>{const c=a.currentTarget;if(!Bu(a))return;Bo.add(c);const u=t(c,a),d=(m,p)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),Bo.has(c)&&Bo.delete(c),Bu(m)&&typeof u=="function"&&u(m,{success:p})},f=m=>{d(m,c===window||c===document||n.useGlobalTarget||Ou(c,m.target))},h=m=>{d(m,!1)};window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),I7(a)&&(a.addEventListener("focus",u=>K7(u,o)),!z7(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Iu(e){return A1(e)&&"ownerSVGElement"in e}function G7(e){return Iu(e)&&e.tagName==="svg"}function q7(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],o=e[1+n],i=e[2+n],s=e[3+n],a=cu(o,i,s);return t?a(r):a}const Be=e=>!!(e&&e.getVelocity),X7=[...Su,Te,Gt],J7=e=>X7.find(Mu(e)),Xs=De({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Q7(e=!0){const t=de(cs);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=Pt();te(()=>{if(e)return o(i)},[e]);const s=ue(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const ju=De({strict:!1}),Hu={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"]},Xn={};for(const e in Hu)Xn[e]={isEnabled:t=>Hu[e].some(n=>!!t[n])};function e4(e){for(const t in e)Xn[t]={...Xn[t],...e[t]}}const t4=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 Io(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||t4.has(e)}let Wu=e=>!Io(e);function n4(e){typeof e=="function"&&(Wu=t=>t.startsWith("on")?!Io(t):e(t))}try{n4(require("@emotion/is-prop-valid").default)}catch{}function r4(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Wu(o)||n===!0&&Io(o)||!t&&!Io(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const jo=De({});function Ho(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Dr(e){return typeof e=="string"||Array.isArray(e)}const Js=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Qs=["initial",...Js];function Wo(e){return Ho(e.animate)||Qs.some(t=>Dr(e[t]))}function Uu(e){return!!(Wo(e)||e.variants)}function o4(e,t){if(Wo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Dr(n)?n:void 0,animate:Dr(r)?r:void 0}}return e.inherit!==!1?t:{}}function i4(e){const{initial:t,animate:n}=o4(e,de(jo));return ve(()=>({initial:t,animate:n}),[Zu(t),Zu(n)])}function Zu(e){return Array.isArray(e)?e.join(" "):e}const Pr={};function s4(e){for(const t in e)Pr[t]=e[t],bs(t)&&(Pr[t].isCSSVariable=!0)}function zu(e,{layout:t,layoutId:n}){return qn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Pr[e]||e==="opacity")}const a4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l4=Gn.length;function c4(e,t,n){let r="",o=!0;for(let i=0;i<l4;i++){const s=Gn[i],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 u=Nu(a,Ks[s]);if(!c){o=!1;const d=a4[s]||s;r+=`${d}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function ea(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const c in t){const u=t[c];if(qn.has(c)){s=!0;continue}else if(bs(c)){o[c]=u;continue}else{const d=Nu(u,Ks[c]);c.startsWith("origin")?(a=!0,i[c]=d):r[c]=d}}if(t.transform||(s||n?r.transform=c4(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:c="50%",originY:u="50%",originZ:d=0}=i;r.transformOrigin=`${c} ${u} ${d}`}}const ta=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ku(e,t,n){for(const r in t)!Be(t[r])&&!zu(r,n)&&(e[r]=t[r])}function u4({transformTemplate:e},t){return ve(()=>{const n=ta();return ea(n,t,e),Object.assign({},n.vars,n.style)},[t])}function d4(e,t){const n=e.style||{},r={};return Ku(r,n,e),Object.assign(r,u4(e,t)),r}function f4(e,t){const n={},r=d4(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 h4={offset:"stroke-dashoffset",array:"stroke-dasharray"},p4={offset:"strokeDashoffset",array:"strokeDasharray"};function m4(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?h4:p4;e[i.offset]=Q.transform(-r);const s=Q.transform(t),a=Q.transform(n);e[i.array]=`${s} ${a}`}function Yu(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},c,u,d){if(ea(e,a,u),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=d?.transformBox??"fill-box",delete f.transformBox),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&m4(f,o,i,s,!1)}const Gu=()=>({...ta(),attrs:{}}),qu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function g4(e,t,n,r){const o=ve(()=>{const i=Gu();return Yu(i,t,qu(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Ku(i,e.style,e),o.style={...i,...o.style}}return o}const y4=["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 na(e){return typeof e!="string"||e.includes("-")?!1:!!(y4.indexOf(e)>-1||/[A-Z]/u.test(e))}function v4(e,t,n,{latestValues:r},o,i=!1){const a=(na(e)?g4:f4)(t,r,o,e),c=r4(t,typeof e=="string",i),u=e!==Jt?{...c,...a,ref:n}:{},{children:d}=t,f=ve(()=>Be(d)?d.get():d,[d]);return Oa(e,{...u,children:f})}function Xu(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function ra(e,t,n,r){if(typeof t=="function"){const[o,i]=Xu(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=Xu(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Uo(e){return Be(e)?e.get():e}function b4({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:w4(n,r,o,e),renderState:t()}}function w4(e,t,n,r){const o={},i=r(e,{});for(const h in i)o[h]=Uo(i[h]);let{initial:s,animate:a}=e;const c=Wo(e),u=Uu(e);t&&u&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const f=d?a:s;if(f&&typeof f!="boolean"&&!Ho(f)){const h=Array.isArray(f)?f:[f];for(let m=0;m<h.length;m++){const p=ra(e,h[m]);if(p){const{transitionEnd:y,transition:v,...w}=p;for(const C in w){let b=w[C];if(Array.isArray(b)){const L=d?b.length-1:0;b=b[L]}b!==null&&(o[C]=b)}for(const C in y)o[C]=y[C]}}}return o}const Ju=e=>(t,n)=>{const r=de(jo),o=de(cs),i=()=>b4(e,t,r,o);return n?i():as(i)};function oa(e,t,n){const{style:r}=e,o={};for(const i in r)(Be(r[i])||t.style&&Be(t.style[i])||zu(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(o[i]=r[i]);return o}const C4=Ju({scrapeMotionValuesFromProps:oa,createRenderState:ta});function Qu(e,t,n){const r=oa(e,t,n);for(const o in e)if(Be(e[o])||Be(t[o])){const i=Gn.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const x4=Ju({scrapeMotionValuesFromProps:Qu,createRenderState:Gu}),k4=Symbol.for("motionComponentSymbol");function Jn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function L4(e,t,n){return ue(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Jn(n)&&(n.current=r))},[t])}const ia=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),E4="framerAppearId",ed="data-"+ia(E4),td=De({});function M4(e,t,n,r,o){const{visualElement:i}=de(jo),s=de(ju),a=de(cs),c=de(Xs).reducedMotion,u=se(null);r=r||s.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const d=u.current,f=de(td);d&&!d.projection&&o&&(d.type==="html"||d.type==="svg")&&S4(u.current,n,o,f);const h=se(!1);Y0(()=>{d&&h.current&&d.update(n,a)});const m=n[ed],p=se(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return D1(()=>{d&&(h.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),p.current&&d.animationState&&d.animationState.animateChanges())}),te(()=>{d&&(!p.current&&d.animationState&&d.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),p.current=!1),d.enteringChildren=void 0)}),d}function S4(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:nd(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Jn(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:u})}function nd(e){if(e)return e.options.allowProjection!==!1?e.projection:nd(e.parent)}function sa(e,{forwardMotionProps:t=!1}={},n,r){n&&e4(n);const o=na(e)?x4:C4;function i(a,c){let u;const d={...de(Xs),...a,layoutId:T4(a)},{isStatic:f}=d,h=i4(a),m=o(a,f);if(!f&&ls){D4(d,n);const p=P4(d);u=p.MeasureLayout,h.visualElement=M4(e,m,d,r,p.ProjectionNode)}return g(jo.Provider,{value:h,children:[u&&h.visualElement?l(u,{visualElement:h.visualElement,...d}):null,v4(e,a,L4(m,h.visualElement,c),m,f,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=$a(i);return s[k4]=e,s}function T4({layoutId:e}){const t=de(T1).id;return t&&e!==void 0?t+"-"+e:e}function D4(e,t){const n=de(ju).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Zn(!1,r,"lazy-strict-mode"):_t(!1,r,"lazy-strict-mode")}}function P4(e){const{drag:t,layout:n}=Xn;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function A4(e,t){if(typeof Proxy>"u")return sa;const n=new Map,r=(i,s)=>sa(i,s,e,t),o=(i,s)=>(process.env.NODE_ENV!=="production"&&ms(!1,"motion() is deprecated. Use motion.create() instead."),r(i,s));return new Proxy(o,{get:(i,s)=>s==="create"?r:(n.has(s)||n.set(s,sa(s,void 0,e,t)),n.get(s))})}function rd({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function N4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function R4(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 aa(e){return e===void 0||e===1}function la({scale:e,scaleX:t,scaleY:n}){return!aa(e)||!aa(t)||!aa(n)}function xn(e){return la(e)||od(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function od(e){return id(e.x)||id(e.y)}function id(e){return e&&e!=="0%"}function Zo(e,t,n){const r=e-n,o=t*r;return n+o}function sd(e,t,n,r,o){return o!==void 0&&(e=Zo(e,o,r)),Zo(e,n,r)+t}function ca(e,t=0,n=1,r,o){e.min=sd(e.min,t,n,r,o),e.max=sd(e.max,t,n,r,o)}function ad(e,{x:t,y:n}){ca(e.x,t.translate,t.scale,t.originPoint),ca(e.y,n.translate,n.scale,n.originPoint)}const ld=.999999999999,cd=1.0000000000001;function F4(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&er(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,ad(e,s)),r&&xn(i.latestValues)&&er(e,i.latestValues))}t.x<cd&&t.x>ld&&(t.x=1),t.y<cd&&t.y>ld&&(t.y=1)}function Qn(e,t){e.min=e.min+t,e.max=e.max+t}function ud(e,t,n,r,o=.5){const i=be(e.min,e.max,o);ca(e,t,n,i,r)}function er(e,t){ud(e.x,t.x,t.scaleX,t.scale,t.originX),ud(e.y,t.y,t.scaleY,t.scale,t.originY)}function dd(e,t){return rd(R4(e.getBoundingClientRect(),t))}function V4(e,t,n){const r=dd(e,n),{scroll:o}=t;return o&&(Qn(r.x,o.offset.x),Qn(r.y,o.offset.y)),r}const fd=()=>({translate:0,scale:1,origin:0,originPoint:0}),tr=()=>({x:fd(),y:fd()}),hd=()=>({min:0,max:0}),Le=()=>({x:hd(),y:hd()}),ua={current:null},pd={current:!1};function $4(){if(pd.current=!0,!!ls)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ua.current=e.matches;e.addEventListener("change",t),t()}else ua.current=!1}const O4=new WeakMap;function _4(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Be(o))e.addValue(r,o);else if(Be(i))e.addValue(r,Cn(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,Cn(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const md=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class B4{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ws,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 h=Xe.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,ge.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=Wo(n),this.isVariantNode=Uu(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const m=f[h];c[h]!==void 0&&Be(m)&&m.set(c[h])}}mount(t){this.current=t,O4.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)),pd.current||$4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ua.current,process.env.NODE_ENV!=="production"&&ms(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),It(this.notifyUpdate),It(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=qn.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&ge.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),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 Xn){const n=Xn[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Le()}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<md.length;r++){const o=md[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=_4(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=Cn(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(P1(r)||N1(r))?r=parseFloat(r):!J7(r)&&Gt.test(n)&&(r=Au(t,n)),this.setBaseTarget(t,Be(r)?r.get():r)),Be(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const i=ra(this.props,n,this.presenceContext?.custom);i&&(r=i[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Be(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ps),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Ys.render(this.render)}}class gd extends B4{constructor(){super(...arguments),this.KeyframeResolver=_7}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]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Be(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function yd(e,{style:t,vars:n},r,o){const i=e.style;let s;for(s in t)i[s]=t[s];o?.applyProjectionStyles(i,r);for(s in n)i.setProperty(s,n[s])}function I4(e){return window.getComputedStyle(e)}class j4 extends gd{constructor(){super(...arguments),this.type="html",this.renderInstance=yd}readValueFromInstance(t,n){if(qn.has(n))return this.projection?.isProjecting?_s(n):n7(t,n);{const r=I4(t),o=(bs(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return dd(t,n)}build(t,n,r){ea(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return oa(t,n,r)}}const vd=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 H4(e,t,n,r){yd(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(vd.has(o)?o:ia(o),t.attrs[o])}class W4 extends gd{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Le}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(qn.has(n)){const r=Pu(n);return r&&r.default||0}return n=vd.has(n)?n:ia(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Qu(t,n,r)}build(t,n,r){Yu(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){H4(t,n,r,o)}mount(t){this.isSVGTag=qu(t.tagName),super.mount(t)}}const U4=(e,t)=>na(e)?new W4(t):new j4(t,{allowProjection:e!==Jt});function nr(e,t,n){const r=e.getProps();return ra(r,t,n!==void 0?n:r.custom,e)}const da=e=>Array.isArray(e);function Z4(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Cn(n))}function z4(e){return da(e)?e[e.length-1]||0:e}function K4(e,t){const n=nr(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=z4(i[s]);Z4(e,s,a)}}function Y4(e){return!!(Be(e)&&e.add)}function fa(e,t){const n=e.getValue("willChange");if(Y4(n))return n.add(t);if(!n&&Bt.WillChange){const r=new Bt.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function bd(e){return e.props[ed]}const G4=e=>e!==null;function q4(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(G4),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const X4={type:"spring",stiffness:500,damping:25,restSpeed:10},J4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Q4={type:"keyframes",duration:.8},em={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tm=(e,{keyframes:t})=>t.length>2?Q4:qn.has(e)?e.startsWith("scale")?J4(t[1]):X4:em;function nm({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const ha=(e,t,n,r={},o,i)=>s=>{const a=Zs(r,e)||{},c=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-bt(c);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};nm(a)||Object.assign(d,tm(e,d)),d.duration&&(d.duration=bt(d.duration)),d.repeatDelay&&(d.repeatDelay=bt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Us(d),d.delay===0&&(f=!0)),(Bt.instantAnimations||Bt.skipAnimations)&&(f=!0,Us(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,f&&!i&&t.get()!==void 0){const h=q4(d.keyframes,a);if(h!==void 0){ge.update(()=>{d.onUpdate(h),d.onComplete()});return}}return a.isSync?new Vs(d):new E7(d)};function rm({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function wd(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in a){const f=e.getValue(d,e.latestValues[d]??null),h=a[d];if(h===void 0||u&&rm(u,d))continue;const m={delay:n,...Zs(i||{},d)},p=f.get();if(p!==void 0&&!f.isAnimating&&!Array.isArray(h)&&h===p&&!m.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const w=bd(e);if(w){const C=window.MotionHandoffAnimation(w,d,ge);C!==null&&(m.startTime=C,y=!0)}}fa(e,d),f.start(ha(d,f,h,e.shouldReduceMotion&&Eu.has(d)?{type:!1}:m,e,y));const v=f.animation;v&&c.push(v)}return s&&Promise.all(c).then(()=>{ge.update(()=>{s&&K4(e,s)})}),c}function Cd(e,t,n,r=0,o=1){const i=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(i,s):o===1?i*r:a-i*r}function pa(e,t,n={}){const r=nr(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(wd(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=o;return om(e,t,c,u,d,f,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[c,u]=a==="beforeChildren"?[i,s]:[s,i];return c().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function om(e,t,n=0,r=0,o=0,i=1,s){const a=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),a.push(pa(c,t,{...s,delay:n+(typeof r=="function"?0:r)+Cd(e.variantChildren,c,r,o,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(a)}function im(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>pa(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=pa(e,t,n);else{const o=typeof t=="function"?nr(e,t,n.custom):t;r=Promise.all(wd(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function xd(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}const sm=Qs.length;function kd(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?kd(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<sm;n++){const r=Qs[n],o=e.props[r];(Dr(o)||o===!1)&&(t[r]=o)}return t}const am=[...Js].reverse(),lm=Js.length;function cm(e){return t=>Promise.all(t.map(({animation:n,options:r})=>im(e,n,r)))}function um(e){let t=cm(e),n=Ld(),r=!0;const o=c=>(u,d)=>{const f=nr(e,d,c==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:h,transitionEnd:m,...p}=f;u={...u,...p,...m}}return u};function i(c){t=c(e)}function s(c){const{props:u}=e,d=kd(e.parent)||{},f=[],h=new Set;let m={},p=1/0;for(let v=0;v<lm;v++){const w=am[v],C=n[w],b=u[w]!==void 0?u[w]:d[w],L=Dr(b),x=w===c?C.isActive:null;x===!1&&(p=v);let E=b===d[w]&&b!==u[w]&&L;if(E&&r&&e.manuallyAnimateOnMount&&(E=!1),C.protectedKeys={...m},!C.isActive&&x===null||!b&&!C.prevProp||Ho(b)||typeof b=="boolean")continue;const D=dm(C.prevProp,b);let N=D||w===c&&C.isActive&&!E&&L||v>p&&L,W=!1;const O=Array.isArray(b)?b:[b];let B=O.reduce(o(w),{});x===!1&&(B={});const{prevResolvedValues:Y={}}=C,z={...Y,...B},A=P=>{N=!0,h.has(P)&&(W=!0,h.delete(P)),C.needsAnimating[P]=!0;const S=e.getValue(P);S&&(S.liveStyle=!1)};for(const P in z){const S=B[P],_=Y[P];if(m.hasOwnProperty(P))continue;let V=!1;da(S)&&da(_)?V=!xd(S,_):V=S!==_,V?S!=null?A(P):h.add(P):S!==void 0&&h.has(P)?A(P):C.protectedKeys[P]=!0}C.prevProp=b,C.prevResolvedValues=B,C.isActive&&(m={...m,...B}),r&&e.blockInitialAnimation&&(N=!1);const $=E&&D;N&&(!$||W)&&f.push(...O.map(P=>{const S={type:w};if(typeof P=="string"&&r&&!$&&e.manuallyAnimateOnMount&&e.parent){const{parent:_}=e,V=nr(_,P);if(_.enteringChildren&&V){const{delayChildren:U}=V.transition||{};S.delay=Cd(_.enteringChildren,e,U)}}return{animation:P,options:S}}))}if(h.size){const v={};if(typeof u.initial!="boolean"){const w=nr(e,Array.isArray(u.initial)?u.initial[0]:u.initial);w&&w.transition&&(v.transition=w.transition)}h.forEach(w=>{const C=e.getBaseTarget(w),b=e.getValue(w);b&&(b.liveStyle=!0),v[w]=C??null}),f.push({animation:v})}let y=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(f):Promise.resolve()}function a(c,u){if(n[c].isActive===u)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(c,u)),n[c].isActive=u;const d=s(c);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Ld()}}}function dm(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!xd(t,e):!1}function kn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ld(){return{animate:kn(!0),whileInView:kn(),whileHover:kn(),whileTap:kn(),whileDrag:kn(),whileFocus:kn(),exit:kn()}}class qt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class fm extends qt{constructor(t){super(t),t.animationState||(t.animationState=um(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ho(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(){this.node.animationState.reset(),this.unmountControls?.()}}let hm=0;class pm extends qt{constructor(){super(...arguments),this.id=hm++}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 o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const mm={animation:{Feature:fm},exit:{Feature:pm}};function Ar(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Nr(e){return{point:{x:e.pageX,y:e.pageY}}}const gm=e=>t=>Gs(t)&&e(t,Nr(t));function Rr(e,t,n,r){return Ar(e,t,gm(n),r)}const Ed=1e-4,ym=1-Ed,vm=1+Ed,Md=.01,bm=0-Md,wm=0+Md;function Ze(e){return e.max-e.min}function Cm(e,t,n){return Math.abs(e-t)<=n}function Sd(e,t,n,r=.5){e.origin=r,e.originPoint=be(t.min,t.max,e.origin),e.scale=Ze(n)/Ze(t),e.translate=be(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ym&&e.scale<=vm||isNaN(e.scale))&&(e.scale=1),(e.translate>=bm&&e.translate<=wm||isNaN(e.translate))&&(e.translate=0)}function Fr(e,t,n,r){Sd(e.x,t.x,n.x,r?r.originX:void 0),Sd(e.y,t.y,n.y,r?r.originY:void 0)}function Td(e,t,n){e.min=n.min+t.min,e.max=e.min+Ze(t)}function xm(e,t,n){Td(e.x,t.x,n.x),Td(e.y,t.y,n.y)}function Dd(e,t,n){e.min=t.min-n.min,e.max=e.min+Ze(t)}function Vr(e,t,n){Dd(e.x,t.x,n.x),Dd(e.y,t.y,n.y)}function ct(e){return[e("x"),e("y")]}const Pd=({current:e})=>e?e.ownerDocument.defaultView:null,Ad=(e,t)=>Math.abs(e-t);function km(e,t){const n=Ad(e.x,t.x),r=Ad(e.y,t.y);return Math.sqrt(n**2+r**2)}class Nd{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=ga(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,p=km(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!p)return;const{point:y}=h,{timestamp:v}=Fe;this.history.push({...y,timestamp:v});const{onStart:w,onMove:C}=this.handlers;m||(w&&w(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ma(m,this.transformPagePoint),ge.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:p,onSessionEnd:y,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=ga(h.type==="pointercancel"?this.lastMoveEventInfo:ma(m,this.transformPagePoint),this.history);this.startEvent&&p&&p(h,w),y&&y(h,w)},!Gs(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const a=Nr(t),c=ma(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=Fe;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,ga(c,this.history)),this.removeListeners=wr(Rr(this.contextWindow,"pointermove",this.handlePointerMove),Rr(this.contextWindow,"pointerup",this.handlePointerUp),Rr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),It(this.updatePoint)}}function ma(e,t){return t?{point:t(e.point)}:e}function Rd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ga({point:e},t){return{point:e,delta:Rd(e,Fd(t)),offset:Rd(e,Lm(t)),velocity:Em(t,.1)}}function Lm(e){return e[0]}function Fd(e){return e[e.length-1]}function Em(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Fd(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>bt(t)));)n--;if(!r)return{x:0,y:0};const i=lt(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Mm(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?be(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?be(n,e,r.max):Math.min(e,n)),e}function Vd(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 Sm(e,{top:t,left:n,bottom:r,right:o}){return{x:Vd(e.x,n,o),y:Vd(e.y,t,r)}}function $d(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 Tm(e,t){return{x:$d(e.x,t.x),y:$d(e.y,t.y)}}function Dm(e,t){let n=.5;const r=Ze(e),o=Ze(t);return o>r?n=Cr(t.min,t.max-r,e.min):r>o&&(n=Cr(e.min,e.max-o,t.min)),Ot(0,1,n)}function Pm(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 ya=.35;function Am(e=ya){return e===!1?e=0:e===!0&&(e=ya),{x:Od(e,"left","right"),y:Od(e,"top","bottom")}}function Od(e,t,n){return{min:_d(e,t),max:_d(e,n)}}function _d(e,t){return typeof e=="number"?e:e[t]||0}const Nm=new WeakMap;class Rm{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Le(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Nr(f).point)},s=(f,h)=>{const{drag:m,dragPropagation:p,onDragStart:y}=this.getProps();if(m&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=W7(m),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ct(w=>{let C=this.getAxisMotionValue(w).get()||0;if(Dt.test(C)){const{projection:b}=this.visualElement;if(b&&b.layout){const L=b.layout.layoutBox[w];L&&(C=Ze(L)*(parseFloat(C)/100))}}this.originPoint[w]=C}),y&&ge.postRender(()=>y(f,h)),fa(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:p,onDirectionLock:y,onDrag:v}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:w}=h;if(p&&this.currentDirection===null){this.currentDirection=Fm(w),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,w),this.updateAxis("y",h.point,w),this.visualElement.render(),v&&v(f,h)},c=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>ct(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Nd(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:Pd(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&ge.postRender(()=>a(r,o))}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.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!zo(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Mm(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&Jn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Sm(r.layoutBox,t):this.constraints=!1,this.elastic=Am(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ct(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=Pm(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Jn(t))return!1;const r=t.current;_t(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=V4(r,o.root,this.visualElement.getTransformPagePoint());let s=Tm(o.layout.layoutBox,i);if(n){const a=n(N4(s));this.hasMutatedConstraints=!!a,a&&(s=rd(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},u=ct(d=>{if(!zo(d,n,this.currentDirection))return;let f=c&&c[d]||{};s&&(f={min:0,max:0});const h=o?200:1e6,m=o?40:1e7,p={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,p)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return fa(this.visualElement,t),r.start(ha(t,r,0,n,this.visualElement,!1))}stopAnimation(){ct(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ct(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ct(n=>{const{drag:r}=this.getProps();if(!zo(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-be(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Jn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ct(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const c=a.get();o[s]=Dm({min:c,max:c},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ct(s=>{if(!zo(s,t,null))return;const a=this.getAxisMotionValue(s),{min:c,max:u}=this.constraints[s];a.set(be(c,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;Nm.set(this.visualElement,this);const t=this.visualElement.current,n=Rr(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Jn(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ge.read(r);const s=Ar(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(ct(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=ya,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function zo(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Fm(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Vm extends qt{constructor(t){super(t),this.removeGroupControls=at,this.removeListeners=at,this.controls=new Rm(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||at}unmount(){this.removeGroupControls(),this.removeListeners()}}const Bd=e=>(t,n)=>{e&&ge.postRender(()=>e(t,n))};class $m extends qt{constructor(){super(...arguments),this.removePointerDownListener=at}onPointerDown(t){this.session=new Nd(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Pd(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Bd(t),onStart:Bd(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&ge.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Rr(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 Ko={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Id(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const $r={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Q.test(e))e=parseFloat(e);else return e;const n=Id(e,t.target.x),r=Id(e,t.target.y);return`${n}% ${r}%`}},Om={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Gt.parse(e);if(o.length>5)return r;const i=Gt.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=c;const u=be(a,c,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};let va=!1;class _m extends G0{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;s4(Bm),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),va&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Ko.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,va=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||ge.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ys.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;va=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function jd(e){const[t,n]=Q7(),r=de(T1);return l(_m,{...e,layoutGroup:r,switchLayoutGroup:de(td),isPresent:t,safeToRemove:n})}const Bm={borderRadius:{...$r,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$r,borderTopRightRadius:$r,borderBottomLeftRadius:$r,borderBottomRightRadius:$r,boxShadow:Om};function Im(e,t,n){const r=Be(e)?e:Cn(e);return r.start(ha("",r,t,n)),r.animation}const jm=(e,t)=>e.depth-t.depth;class Hm{constructor(){this.children=[],this.isDirty=!1}add(t){us(this.children,t),this.isDirty=!0}remove(t){ds(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(jm),this.isDirty=!1,this.children.forEach(t)}}function Wm(e,t){const n=Xe.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(It(r),e(i-t))};return ge.setup(r,!0),()=>It(r)}const Hd=["TopLeft","TopRight","BottomLeft","BottomRight"],Um=Hd.length,Wd=e=>typeof e=="string"?parseFloat(e):e,Ud=e=>typeof e=="number"||Q.test(e);function Zm(e,t,n,r,o,i){o?(e.opacity=be(0,n.opacity??1,zm(r)),e.opacityExit=be(t.opacity??1,0,Km(r))):i&&(e.opacity=be(t.opacity??1,n.opacity??1,r));for(let s=0;s<Um;s++){const a=`border${Hd[s]}Radius`;let c=Zd(t,a),u=Zd(n,a);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Ud(c)===Ud(u)?(e[a]=Math.max(be(Wd(c),Wd(u),r),0),(Dt.test(u)||Dt.test(c))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=be(t.rotate||0,n.rotate||0,r))}function Zd(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const zm=zd(0,.5,j1),Km=zd(.5,.95,at);function zd(e,t,n){return r=>r<e?0:r>t?1:n(Cr(e,t,r))}function Kd(e,t){e.min=t.min,e.max=t.max}function ut(e,t){Kd(e.x,t.x),Kd(e.y,t.y)}function Yd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Gd(e,t,n,r,o){return e-=t,e=Zo(e,1/n,r),o!==void 0&&(e=Zo(e,1/o,r)),e}function Ym(e,t=0,n=1,r=.5,o,i=e,s=e){if(Dt.test(t)&&(t=parseFloat(t),t=be(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=be(i.min,i.max,r);e===i&&(a-=t),e.min=Gd(e.min,t,n,a,o),e.max=Gd(e.max,t,n,a,o)}function qd(e,t,[n,r,o],i,s){Ym(e,t[n],t[r],t[o],t.scale,i,s)}const Gm=["x","scaleX","originX"],qm=["y","scaleY","originY"];function Xd(e,t,n,r){qd(e.x,t,Gm,n?n.x:void 0,r?r.x:void 0),qd(e.y,t,qm,n?n.y:void 0,r?r.y:void 0)}function Jd(e){return e.translate===0&&e.scale===1}function Qd(e){return Jd(e.x)&&Jd(e.y)}function e0(e,t){return e.min===t.min&&e.max===t.max}function Xm(e,t){return e0(e.x,t.x)&&e0(e.y,t.y)}function t0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function n0(e,t){return t0(e.x,t.x)&&t0(e.y,t.y)}function r0(e){return Ze(e.x)/Ze(e.y)}function o0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Jm{constructor(){this.members=[]}add(t){us(this.members,t),t.scheduleRender()}remove(t){if(ds(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(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;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:o}=t.options;o===!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 Qm(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=n?.z||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:h,skewX:m,skewY:p}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),m&&(r+=`skewX(${m}deg) `),p&&(r+=`skewY(${p}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 ba=["","X","Y","Z"],e8=1e3;let t8=0;function wa(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function i0(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=bd(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ge,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&i0(r)}function s0({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=t8++,this.animationId=0,this.animationCommitId=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,this.nodes.forEach(o8),this.nodes.forEach(l8),this.nodes.forEach(c8),this.nodes.forEach(i8)},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 Hm)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new ps),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){if(this.instance)return;this.isSVG=Iu(s)&&!G7(s),this.instance=s;const{layoutId:a,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),e){let d,f=0;const h=()=>this.root.updateBlockedByResize=!1;ge.read(()=>{f=window.innerWidth}),e(s,()=>{const m=window.innerWidth;m!==f&&(f=m,this.root.updateBlockedByResize=!0,d&&d(),d=Wm(h,250),Ko.hasAnimatedSinceResize&&(Ko.hasAnimatedSinceResize=!1,this.nodes.forEach(c0)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||p8,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=u.getProps(),w=!this.targetLayout||!n0(this.targetLayout,m),C=!f&&h;if(this.options.layoutRoot||this.resumeFrom||C||f&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...Zs(p,"layout"),onPlay:y,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(d,C)}else f||c0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}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,this.eventHandlers.clear(),It(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(u8),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&&i0(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(a0);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(l0);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(a8),this.nodes.forEach(n8),this.nodes.forEach(r8)):this.nodes.forEach(l0),this.clearAllSnapshots();const a=Xe.now();Fe.delta=Ot(0,1e3/60,a-Fe.timestamp),Fe.timestamp=a,Fe.isProcessing=!0,vs.update.process(Fe),vs.preRender.process(Fe),vs.render.process(Fe),Fe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ys.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(s8),this.sharedNodes.forEach(d8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ge.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ge.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ze(this.snapshot.measuredBox.x)&&!Ze(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}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=Le(),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&&this.instance){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(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Qd(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;s&&this.instance&&(a||xn(this.latestValues)||d)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return s&&(c=this.removeTransform(c)),m8(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Le();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(g8))){const{scroll:u}=this.root;u&&(Qn(a.x,u.offset.x),Qn(a.y,u.offset.y))}return a}removeElementScroll(s){const a=Le();if(ut(a,s),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:f}=u;u!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&ut(a,s),Qn(a.x,d.offset.x),Qn(a.y,d.offset.y))}return a}applyTransform(s,a=!1){const c=Le();ut(c,s);for(let u=0;u<this.path.length;u++){const d=this.path[u];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&er(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),xn(d.latestValues)&&er(c,d.latestValues)}return xn(this.latestValues)&&er(c,this.latestValues),c}removeTransform(s){const a=Le();ut(a,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!xn(u.latestValues))continue;la(u.latestValues)&&u.updateSnapshot();const d=Le(),f=u.measurePageBox();ut(d,f),Xd(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return xn(this.latestValues)&&Xd(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!==Fe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=Fe.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Le(),this.relativeTargetOrigin=Le(),Vr(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ut(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Le(),this.targetWithTransforms=Le()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),xm(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ut(this.target,this.layout.layoutBox),ad(this.target,this.targetDelta)):ut(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Le(),this.relativeTargetOrigin=Le(),Vr(this.relativeTargetOrigin,this.target,h.target),ut(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||la(this.parent.latestValues)||od(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const s=this.getLead(),a=!!this.resumingFrom||this!==s;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Fe.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;ut(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;F4(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=Le());const{target:m}=s;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Yd(this.prevProjectionDelta.x,this.projectionDelta.x),Yd(this.prevProjectionDelta.y,this.projectionDelta.y)),Fr(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!o0(this.projectionDelta.x,this.prevProjectionDelta.x)||!o0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=tr(),this.projectionDelta=tr(),this.projectionDeltaWithTransform=tr()}setAnimationOrigin(s,a=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=tr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=Le(),m=c?c.source:void 0,p=this.layout?this.layout.source:void 0,y=m!==p,v=this.getStack(),w=!v||v.members.length<=1,C=!!(y&&!w&&this.options.crossfade===!0&&!this.path.some(h8));this.animationProgress=0;let b;this.mixTargetDelta=L=>{const x=L/1e3;u0(f.x,s.x,x),u0(f.y,s.y,x),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Vr(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f8(this.relativeTarget,this.relativeTargetOrigin,h,x),b&&Xm(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Le()),ut(b,this.relativeTarget)),y&&(this.animationValues=d,Zm(d,u,this.latestValues,x,C,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(It(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ge.update(()=>{Ko.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Cn(0)),this.currentAnimation=Im(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},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(e8),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:c,layout:u,latestValues:d}=s;if(!(!a||!c||!u)){if(this!==s&&this.layout&&u&&m0(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||Le();const f=Ze(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+f;const h=Ze(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+h}ut(a,c),er(a,d),Fr(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Jm),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.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 u=this.getStack();u&&u.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 u={};c.z&&wa("z",s,u,this.animationValues);for(let d=0;d<ba.length;d++)wa(`rotate${ba[d]}`,s,u,this.animationValues),wa(`skew${ba[d]}`,s,u,this.animationValues);s.render();for(const d in u)s.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Uo(a?.pointerEvents)||"",s.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Uo(a?.pointerEvents)||""),this.hasProjected&&!xn(this.latestValues)&&(s.transform=c?c({},""):"none",this.hasProjected=!1);return}s.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=Qm(this.projectionDeltaWithTransform,this.treeScale,d);c&&(f=c(d,f)),s.transform=f;const{x:h,y:m}=this.projectionDelta;s.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,u.animationValues?s.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const p in Pr){if(d[p]===void 0)continue;const{correct:y,applyTo:v,isCSSVariable:w}=Pr[p],C=f==="none"?d[p]:y(d[p],u);if(v){const b=v.length;for(let L=0;L<b;L++)s[v[L]]=C}else w?this.options.visualElement.renderState.vars[p]=C:s[p]=C}this.options.layoutId&&(s.pointerEvents=u===this?Uo(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(a0),this.root.sharedNodes.clear()}}}function n8(e){e.updateLayout()}function r8(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;o==="size"?ct(d=>{const f=i?t.measuredBox[d]:t.layoutBox[d],h=Ze(f);f.min=n[d].min,f.max=f.min+h}):m0(o,t.layoutBox,n)&&ct(d=>{const f=i?t.measuredBox[d]:t.layoutBox[d],h=Ze(n[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const s=tr();Fr(s,n,t.layoutBox);const a=tr();i?Fr(a,e.applyTransform(r,!0),t.measuredBox):Fr(a,n,t.layoutBox);const c=!Qd(s);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const m=Le();Vr(m,t.layoutBox,f.layoutBox);const p=Le();Vr(p,n,h.layoutBox),n0(m,p)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function o8(e){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 i8(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function s8(e){e.clearSnapshot()}function a0(e){e.clearMeasurements()}function l0(e){e.isLayoutDirty=!1}function a8(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function c0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function l8(e){e.resolveTargetDelta()}function c8(e){e.calcProjection()}function u8(e){e.resetSkewAndRotation()}function d8(e){e.removeLeadSnapshot()}function u0(e,t,n){e.translate=be(t.translate,0,n),e.scale=be(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function d0(e,t,n,r){e.min=be(t.min,n.min,r),e.max=be(t.max,n.max,r)}function f8(e,t,n,r){d0(e.x,t.x,n.x,r),d0(e.y,t.y,n.y,r)}function h8(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const p8={duration:.45,ease:[.4,0,.1,1]},f0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),h0=f0("applewebkit/")&&!f0("chrome/")?Math.round:at;function p0(e){e.min=h0(e.min),e.max=h0(e.max)}function m8(e){p0(e.x),p0(e.y)}function m0(e,t,n){return e==="position"||e==="preserve-aspect"&&!Cm(r0(t),r0(n),.2)}function g8(e){return e!==e.root&&e.scroll?.wasRoot}const y8=s0({attachResizeListener:(e,t)=>Ar(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ca={current:void 0},g0=s0({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ca.current){const e=new y8({});e.mount(window),e.setOptions({layoutScroll:!0}),Ca.current=e}return Ca.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),v8={pan:{Feature:$m},drag:{Feature:Vm,ProjectionNode:g0,MeasureLayout:jd}};function y0(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&ge.postRender(()=>i(t,Nr(t)))}class b8 extends qt{mount(){const{current:t}=this.node;t&&(this.unmount=U7(t,(n,r)=>(y0(this.node,r,"Start"),o=>y0(this.node,o,"End"))))}unmount(){}}class w8 extends qt{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=wr(Ar(this.node.current,"focus",()=>this.onFocus()),Ar(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function v0(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&ge.postRender(()=>i(t,Nr(t)))}class C8 extends qt{mount(){const{current:t}=this.node;t&&(this.unmount=Y7(t,(n,r)=>(v0(this.node,r,"Start"),(o,{success:i})=>v0(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const xa=new WeakMap,ka=new WeakMap,x8=e=>{const t=xa.get(e.target);t&&t(e)},k8=e=>{e.forEach(x8)};function L8({root:e,...t}){const n=e||document;ka.has(n)||ka.set(n,{});const r=ka.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(k8,{root:e,...t})),r[o]}function E8(e,t,n){const r=L8(t);return xa.set(e,n),r.observe(e),()=>{xa.delete(e),r.unobserve(e)}}const M8={some:0,all:1};class S8 extends qt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:M8[o]},a=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=u?d:f;h&&h(c)};return E8(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(T8(t,n))&&this.startObserver()}unmount(){}}function T8({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const D8={inView:{Feature:S8},tap:{Feature:C8},focus:{Feature:w8},hover:{Feature:b8}},P8={layout:{ProjectionNode:g0,MeasureLayout:jd}},A8={...mm,...D8,...v8,...P8},Yo=A4(A8,U4);function b0(e){const t=as(()=>Cn(e)),{isStatic:n}=de(Xs);if(n){const[,r]=K(e);te(()=>t.on("change",r),[])}return t}function w0(e,t){const n=b0(t()),r=()=>n.set(t());return r(),D1(()=>{const o=()=>ge.preRender(r,!1,!0),i=e.map(s=>s.on("change",o));return()=>{i.forEach(s=>s()),It(r)}}),n}function N8(e){Tr.current=[],e();const t=w0(Tr.current,e);return Tr.current=void 0,t}function R8(e,t,n,r){if(typeof e=="function")return N8(e);const o=typeof t=="function"?t:q7(t,n,r);return Array.isArray(e)?C0(e,o):C0([e],([i])=>o(i))}function C0(e,t){const n=as(()=>[]);return w0(e,()=>{n.length=0;const r=e.length;for(let o=0;o<r;o++)n[o]=e[o].get();return t(n)})}const Or=({isOpen:e,onClose:t,title:n,description:r,children:o,bottomContent:i,topContent:s,className:a,showCloseButton:c=!0,size:u="medium",variant:d="centered"})=>{const f=se(null);if(!e)return null;const h=yp[u],m={centered:{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9}},"right-slide":{initial:{x:"100%",opacity:0},animate:{x:"0%",opacity:1},exit:{x:"100%",opacity:0}}};return l(k,{onClick:p=>p.stopPropagation(),className:"fixed inset-0 z-[100] flex items-center justify-center overflow-y-hidden max-h-screen bg-metrifox-black/50 backdrop-blur-sm",children:g(Yo.div,{ref:f,initial:m[d].initial,animate:m[d].animate,exit:m[d].exit,transition:{duration:.3,ease:"easeOut"},className:`bg-metrifox-white shadow-lg w-full ${h} flex flex-col ${d==="right-slide"?"fixed right-0 top-0 bottom-0 h-[100vh] rounded-l-2xl":"mx-4 my-auto max-h-[90vh] rounded-2xl"}`,children:[s?l(k,{className:"p-4",children:s}):g(k,{className:`${n?"p-6":"py-4 px-6"} border-b border-grey-200`,children:[g(k,{className:"flex justify-between items-center",children:[l(is,{variant:"h6",color:"text-metrifox-black",children:n}),c&&l("span",{onClick:t,className:"cursor-pointer",children:l(he,{name:"circle-close",size:24,color:"grey-800"})})]}),r&&l(j,{variant:"body4",color:"text-grey-500",className:"mt-2 mr-6",children:r})]}),l(k,{className:`flex-grow overflow-y-auto p-6 max-h-[calc(90vh - 100px)] ${!i&&"rounded-b-2xl"} ${a}`,children:o}),i&&l(k,{className:"p-4 border-t border-grey-200",children:i})]})})};var x0={exports:{}};(function(e,t){(function(n,r){e.exports=r(R)})(typeof self<"u"?self:Qt,function(n){return function(){var r={155:function(C){C.exports=n}},o={};function i(C){var b=o[C];if(b!==void 0)return b.exports;var L=o[C]={exports:{}};return r[C](L,L.exports,i),L.exports}i.d=function(C,b){for(var L in b)i.o(b,L)&&!i.o(C,L)&&Object.defineProperty(C,L,{enumerable:!0,get:b[L]})},i.o=function(C,b){return Object.prototype.hasOwnProperty.call(C,b)},i.r=function(C){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(C,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(C,"__esModule",{value:!0})};var s={};i.r(s),i.d(s,{useReactToPrint:function(){return w}});var a=i(155);const c="printWindow";function u({level:C="error",messages:b,suppressErrors:L=!1}){L||(C==="error"?console.error(b):C==="warning"?console.warn(b):console.debug(b))}function d(C,b){if(b||!C){const L=document.getElementById(c);L&&document.body.removeChild(L)}}function f(C){return C instanceof Error?C:new Error("Unknown Error")}function h(C,b){const{documentTitle:L,onAfterPrint:x,onPrintError:E,preserveAfterPrint:D,print:N,suppressErrors:W}=b;setTimeout(()=>{var O,B;if(C.contentWindow){let Y=function(){x?.(),d(D)};if(C.contentWindow.focus(),N)N(C).then(Y).catch(z=>{E?E("print",f(z)):u({messages:["An error was thrown by the specified `print` function"],suppressErrors:W})});else{if(C.contentWindow.print){const z=(B=(O=C.contentDocument)===null||O===void 0?void 0:O.title)!==null&&B!==void 0?B:"",A=C.ownerDocument.title;L&&(C.ownerDocument.title=L,C.contentDocument&&(C.contentDocument.title=L)),C.contentWindow.print(),L&&(C.ownerDocument.title=A,C.contentDocument&&(C.contentDocument.title=z))}else u({messages:["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."],suppressErrors:W});[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some(z=>{var A,$;return(($=(A=navigator.userAgent)!==null&&A!==void 0?A:navigator.vendor)!==null&&$!==void 0?$:"opera"in window&&window.opera).match(z)})?setTimeout(Y,500):Y()}}else u({messages:["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/MatthewHerbst/react-to-print/issues/"],suppressErrors:W})},500)}function m(C){const b=[],L=document.createTreeWalker(C,NodeFilter.SHOW_ELEMENT,null);let x=L.nextNode();for(;x;)b.push(x),x=L.nextNode();return b}function p(C,b,L){const x=m(C),E=m(b);if(x.length===E.length)for(let D=0;D<x.length;D++){const N=x[D],W=E[D],O=N.shadowRoot;if(O!==null){const B=W.attachShadow({mode:O.mode});B.innerHTML=O.innerHTML,p(O,B,L)}}else u({messages:["When cloning shadow root content, source and target elements have different size. `onBeforePrint` likely resolved too early.",C,b],suppressErrors:L})}const y=`
|
|
25
|
+
*/var cc;function fh(){return cc||(cc=1,process.env.NODE_ENV!=="production"&&function(){function e(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=N,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,o=t.useRef,s=t.useEffect,i=t.useMemo,a=t.useDebugValue;Vi.useSyncExternalStoreWithSelector=function(c,u,d,f,h){var m=o(null);if(m.current===null){var p={hasValue:!1,value:null};m.current=p}else p=m.current;m=i(function(){function v(k){if(!b){if(b=!0,w=k,k=f(k),h!==void 0&&p.hasValue){var E=p.value;if(h(E,k))return C=E}return C=k}if(E=C,n(w,k))return E;var R=f(k);return h!==void 0&&h(E,R)?(w=k,E):(w=k,C=R)}var b=!1,w,C,L=d===void 0?null:d;return[function(){return v(u())},L===null?void 0:function(){return v(L())}]},[u,d,f,h]);var g=r(c,m[0],m[1]);return s(function(){p.hasValue=!0,p.value=g},[g]),a(g),g},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Vi}process.env.NODE_ENV==="production"?Ri.exports=dh():Ri.exports=fh();var hh=Ri.exports;function cn(e,t,n=oc){return hh.useSyncExternalStoreWithSelector(le(r=>e.subscribe(ph,r)),le(()=>e.state),le(()=>e.state),le(t),n)}function ph(e){return e}function mh(e,t){let n=Pt(),r=ac.get(t),[o,s]=cn(r,ue(i=>[r.selectors.isTop(i,n),r.selectors.inStack(i,n)],[r,n]));return je(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),e?s?o:!0:!1}function gh(e,t,n){let r=it(o=>{let s=o.getBoundingClientRect();s.x===0&&s.y===0&&s.width===0&&s.height===0&&n()});te(()=>{if(!e)return;let o=t===null?null:Ft(t)?t:t.current;if(!o)return;let s=Rt();if(typeof ResizeObserver<"u"){let i=new ResizeObserver(()=>r.current(o));i.observe(o),s.add(()=>i.disconnect())}if(typeof IntersectionObserver<"u"){let i=new IntersectionObserver(()=>r.current(o));i.observe(o),s.add(()=>i.disconnect())}return()=>s.dispose()},[t,r,e])}let $i=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),yh=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Pe=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(Pe||{}),Ut=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ut||{}),vh=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(vh||{});function ho(e=document.body){return e==null?[]:Array.from(e.querySelectorAll($i)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function bh(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(yh)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var _i=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(_i||{});function uc(e,t=0){var n;return e===((n=Nn(e))==null?void 0:n.body)?!1:He(t,{0(){return e.matches($i)},1(){let r=e;for(;r!==null;){if(r.matches($i))return!0;r=r.parentElement}return!1}})}var Ch=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Ch||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let wh=["textarea","input"].join(",");function xh(e){var t,n;return(n=(t=e?.matches)==null?void 0:t.call(e,wh))!=null?n:!1}function _n(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),s=t(r);if(o===null||s===null)return 0;let i=o.compareDocumentPosition(s);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function tt(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let s=Array.isArray(e)?e.length>0?on(e[0]):document:on(e),i=Array.isArray(e)?n?_n(e):e:t&64?bh(e):ho(e);o.length>0&&i.length>1&&(i=i.filter(m=>!o.some(p=>p!=null&&"current"in p?p?.current===m:p===m))),r=r??s?.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,i.indexOf(r))-1;if(t&4)return Math.max(0,i.indexOf(r))+1;if(t&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},d=0,f=i.length,h;do{if(d>=f||d+f<=0)return 0;let m=c+d;if(t&16)m=(m+f)%f;else{if(m<0)return 3;if(m>=f)return 1}h=i[m],h?.focus(u),d+=a}while(h!==sn(h));return t&6&&xh(h)&&h.select(),2}function dc(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function kh(){return/Android/gi.test(window.navigator.userAgent)}function fc(){return dc()||kh()}function po(e,t,n,r){let o=it(n);te(()=>{if(!e)return;function s(i){o.current(i)}return document.addEventListener(t,s,r),()=>document.removeEventListener(t,s,r)},[e,t,r])}function hc(e,t,n,r){let o=it(n);te(()=>{if(!e)return;function s(i){o.current(i)}return window.addEventListener(t,s,r),()=>window.removeEventListener(t,s,r)},[e,t,r])}const pc=30;function Lh(e,t,n){let r=it(n),o=ue(function(a,c){if(a.defaultPrevented)return;let u=c(a);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let d=function f(h){return typeof h=="function"?f(h()):Array.isArray(h)||h instanceof Set?h:[h]}(t);for(let f of d)if(f!==null&&(f.contains(u)||a.composed&&a.composedPath().includes(f)))return;return!uc(u,_i.Loose)&&u.tabIndex!==-1&&a.preventDefault(),r.current(a,u)},[r,t]),s=se(null);po(e,"pointerdown",a=>{var c,u;fc()||(s.current=((u=(c=a.composedPath)==null?void 0:c.call(a))==null?void 0:u[0])||a.target)},!0),po(e,"pointerup",a=>{if(fc()||!s.current)return;let c=s.current;return s.current=null,o(a,()=>c)},!0);let i=se({x:0,y:0});po(e,"touchstart",a=>{i.current.x=a.touches[0].clientX,i.current.y=a.touches[0].clientY},!0),po(e,"touchend",a=>{let c={x:a.changedTouches[0].clientX,y:a.changedTouches[0].clientY};if(!(Math.abs(c.x-i.current.x)>=pc||Math.abs(c.y-i.current.y)>=pc))return o(a,()=>$n(a.target)?a.target:null)},!0),hc(e,"blur",a=>o(a,()=>X3(window.document.activeElement)?window.document.activeElement:null),!0)}function Oi(...e){return ve(()=>Nn(...e),[...e])}function Eh(...e){return ve(()=>on(...e),[...e])}function Mh(e,t,n,r){let o=it(n);te(()=>{e=e??window;function s(i){o.current(i)}return e.addEventListener(t,s,r),()=>e.removeEventListener(t,s,r)},[e,t,r])}function mc(e,t){return ve(()=>{var n;if(e.type)return e.type;let r=(n=e.as)!=null?n:"button";if(typeof r=="string"&&r.toLowerCase()==="button"||t?.tagName==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function Sh(e){return q0(e.subscribe,e.getSnapshot,e.getSnapshot)}function Th(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...s){let i=t[o].call(n,...s);i&&(n=i,r.forEach(a=>a()))}}}function Dh(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=(n=t.defaultView)!=null?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),s=Math.max(0,e-o);n.style(r,"paddingRight",`${s}px`)}}}function Ph(){return dc()?{before({doc:e,d:t,meta:n}){function r(o){for(let s of n().containers)for(let i of s())if(i.contains(o))return!0;return!1}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=Rt();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let s=(o=window.scrollY)!=null?o:window.pageYOffset,i=null;t.addEventListener(e,"click",a=>{if($n(a.target))try{let c=a.target.closest("a");if(!c)return;let{hash:u}=new URL(c.href),d=e.querySelector(u);$n(d)&&!r(d)&&(i=d)}catch{}},!0),t.group(a=>{t.addEventListener(e,"touchstart",c=>{if(a.dispose(),$n(c.target)&&q3(c.target))if(r(c.target)){let u=c.target;for(;u.parentElement&&r(u.parentElement);)u=u.parentElement;a.style(u,"overscrollBehavior","contain")}else a.style(c.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",a=>{if($n(a.target)){if(J3(a.target))return;if(r(a.target)){let c=a.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let c=(a=window.scrollY)!=null?a:window.pageYOffset;s!==c&&window.scrollTo(0,s),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{}}function Ah(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function gc(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let un=Th(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Rt(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=gc(r.meta),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=gc(n.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta(){return e.computedMeta}},n=[Ph(),Dh(),Ah()];n.forEach(({before:r})=>r?.(t)),n.forEach(({after:r})=>r?.(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});un.subscribe(()=>{let e=un.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&un.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&un.dispatch("TEARDOWN",n)}});function Nh(e,t,n=()=>({containers:[]})){let r=Sh(un),o=t?r.get(t):void 0,s=o?o.count>0:!1;return je(()=>{if(!(!t||!e))return un.dispatch("PUSH",t,n),()=>un.dispatch("POP",t,n)},[e,t]),s}function Rh(e,t,n=()=>[document.body]){let r=mh(e,"scroll-lock");Nh(r,t,o=>{var s;return{containers:[...(s=o.containers)!=null?s:[],n]}})}function Fh(e=0){let[t,n]=K(e),r=ue(c=>n(c),[]),o=ue(c=>n(u=>u|c),[]),s=ue(c=>(t&c)===c,[t]),i=ue(c=>n(u=>u&~c),[]),a=ue(c=>n(u=>u^c),[]);return{flags:t,setFlag:r,addFlag:o,hasFlag:s,removeFlag:i,toggleFlag:a}}var yc,vc;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((yc=process==null?void 0:process.env)==null?void 0:yc.NODE_ENV)==="test"&&typeof((vc=Element?.prototype)==null?void 0:vc.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
|
26
|
+
`)),[]});var Vh=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Vh||{});function bc(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function Cc(e,t,n,r){let[o,s]=K(n),{hasFlag:i,addFlag:a,removeFlag:c}=Fh(e&&o?3:0),u=se(!1),d=se(!1),f=co();return je(()=>{var h;if(e){if(n&&s(!0),!t){n&&a(3);return}return(h=void 0)==null||h.call(r,n),$h(t,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&&(n?(a(3),c(4)):(a(4),c(2)))},run(){d.current?n?(c(3),a(4)):(c(4),a(3)):n?c(1):a(1)},done(){var m;d.current&&Bh(t)||(u.current=!1,c(7),n||s(!1),(m=void 0)==null||m.call(r,n))}})}},[e,n,t,f]),e?[o,{closed:i(1),enter:i(2),leave:i(4),transition:i(2)||i(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function $h(e,{prepare:t,run:n,done:r,inFlight:o}){let s=Rt();return Oh(e,{prepare:t,inFlight:o}),s.nextFrame(()=>{n(),s.requestAnimationFrame(()=>{s.add(_h(e,r))})}),s.dispose}function _h(e,t){var n,r;let o=Rt();if(!e)return o.dispose;let s=!1;o.add(()=>{s=!0});let i=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(a=>a instanceof CSSTransition))!=null?r:[];return i.length===0?(t(),o.dispose):(Promise.allSettled(i.map(a=>a.finished)).then(()=>{s||t()}),o.dispose)}function Oh(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function Bh(e){var t,n;return((n=(t=e.getAnimations)==null?void 0:t.call(e))!=null?n:[]).some(r=>r instanceof CSSTransition&&r.playState!=="finished")}function mo(){return typeof window<"u"}function On(e){return wc(e)?(e.nodeName||"").toLowerCase():"#document"}function nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Et(e){var t;return(t=(wc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wc(e){return mo()?e instanceof Node||e instanceof nt(e).Node:!1}function _e(e){return mo()?e instanceof Element||e instanceof nt(e).Element:!1}function Mt(e){return mo()?e instanceof HTMLElement||e instanceof nt(e).HTMLElement:!1}function xc(e){return!mo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof nt(e).ShadowRoot}const Ih=new Set(["inline","contents"]);function fr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=yt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Ih.has(o)}const jh=new Set(["table","td","th"]);function Hh(e){return jh.has(On(e))}const Wh=[":popover-open",":modal"];function go(e){return Wh.some(t=>{try{return e.matches(t)}catch{return!1}})}const Uh=["transform","translate","scale","rotate","perspective"],Zh=["transform","translate","scale","rotate","perspective","filter"],zh=["paint","layout","strict","content"];function Bi(e){const t=Ii(),n=_e(e)?yt(e):e;return Uh.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Zh.some(r=>(n.willChange||"").includes(r))||zh.some(r=>(n.contain||"").includes(r))}function Kh(e){let t=Zt(e);for(;Mt(t)&&!Bn(t);){if(Bi(t))return t;if(go(t))return null;t=Zt(t)}return null}function Ii(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Yh=new Set(["html","body","#document"]);function Bn(e){return Yh.has(On(e))}function yt(e){return nt(e).getComputedStyle(e)}function yo(e){return _e(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zt(e){if(On(e)==="html")return e;const t=e.assignedSlot||e.parentNode||xc(e)&&e.host||Et(e);return xc(t)?t.host:t}function kc(e){const t=Zt(e);return Bn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mt(t)&&fr(t)?t:kc(t)}function hr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=kc(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=nt(o);if(s){const a=ji(i);return t.concat(i,i.visualViewport||[],fr(o)?o:[],a&&n?hr(a):[])}return t.concat(o,hr(o,[],n))}function ji(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Gh(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}const dn=Math.min,Oe=Math.max,pr=Math.round,vo=Math.floor,St=e=>({x:e,y:e}),qh={left:"right",right:"left",bottom:"top",top:"bottom"},Xh={start:"end",end:"start"};function Lc(e,t,n){return Oe(e,dn(t,n))}function In(e,t){return typeof e=="function"?e(t):e}function zt(e){return e.split("-")[0]}function mr(e){return e.split("-")[1]}function Ec(e){return e==="x"?"y":"x"}function Mc(e){return e==="y"?"height":"width"}const Jh=new Set(["top","bottom"]);function Vt(e){return Jh.has(zt(e))?"y":"x"}function Sc(e){return Ec(Vt(e))}function Qh(e,t,n){n===void 0&&(n=!1);const r=mr(e),o=Sc(e),s=Mc(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=bo(i)),[i,bo(i)]}function e5(e){const t=bo(e);return[Hi(e),t,Hi(t)]}function Hi(e){return e.replace(/start|end/g,t=>Xh[t])}const Tc=["left","right"],Dc=["right","left"],t5=["top","bottom"],n5=["bottom","top"];function r5(e,t,n){switch(e){case"top":case"bottom":return n?t?Dc:Tc:t?Tc:Dc;case"left":case"right":return t?t5:n5;default:return[]}}function o5(e,t,n,r){const o=mr(e);let s=r5(zt(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Hi)))),s}function bo(e){return e.replace(/left|right|bottom|top/g,t=>qh[t])}function i5(e){return{top:0,right:0,bottom:0,left:0,...e}}function s5(e){return typeof e!="number"?i5(e):{top:e,right:e,bottom:e,left:e}}function Co(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Pc(e,t,n){let{reference:r,floating:o}=e;const s=Vt(t),i=Sc(t),a=Mc(i),c=zt(t),u=s==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let m;switch(c){case"top":m={x:d,y:r.y-o.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(mr(t)){case"start":m[i]-=h*(n&&u?-1:1);break;case"end":m[i]+=h*(n&&u?-1:1);break}return m}const a5=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Pc(u,r,c),h=r,m={},p=0;for(let g=0;g<a.length;g++){const{name:v,fn:b}=a[g],{x:w,y:C,data:L,reset:k}=await b({x:d,y:f,initialPlacement:r,placement:h,strategy:o,middlewareData:m,rects:u,platform:i,elements:{reference:e,floating:t}});d=w??d,f=C??f,m={...m,[v]:{...m[v],...L}},k&&p<=50&&(p++,typeof k=="object"&&(k.placement&&(h=k.placement),k.rects&&(u=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:d,y:f}=Pc(u,h,c)),g=-1)}return{x:d,y:f,placement:h,strategy:o,middlewareData:m}};async function wo(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=In(t,e),p=s5(m),v=a[h?f==="floating"?"reference":"floating":f],b=Co(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),w=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),L=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},k=Co(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:C,strategy:c}):w);return{top:(b.top-k.top+p.top)/L.y,bottom:(k.bottom-b.bottom+p.bottom)/L.y,left:(b.left-k.left+p.left)/L.x,right:(k.right-b.right+p.right)/L.x}}const l5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...v}=In(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=zt(o),w=Vt(a),C=zt(a)===a,L=await(c.isRTL==null?void 0:c.isRTL(u.floating)),k=h||(C||!g?[bo(a)]:e5(a)),E=p!=="none";!h&&E&&k.push(...o5(a,g,p,L));const R=[a,...k],P=await wo(t,v),W=[];let _=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&W.push(P[b]),f){const A=Qh(o,i,L);W.push(P[A[0]],P[A[1]])}if(_=[..._,{placement:o,overflows:W}],!W.every(A=>A<=0)){var B,Y;const A=(((B=s.flip)==null?void 0:B.index)||0)+1,$=R[A];if($&&(!(f==="alignment"?w!==Vt($):!1)||_.every(S=>Vt(S.placement)===w?S.overflows[0]>0:!0)))return{data:{index:A,overflows:_},reset:{placement:$}};let M=(Y=_.filter(D=>D.overflows[0]<=0).sort((D,S)=>D.overflows[1]-S.overflows[1])[0])==null?void 0:Y.placement;if(!M)switch(m){case"bestFit":{var z;const D=(z=_.filter(S=>{if(E){const O=Vt(S.placement);return O===w||O==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(O=>O>0).reduce((O,V)=>O+V,0)]).sort((S,O)=>S[1]-O[1])[0])==null?void 0:z[0];D&&(M=D);break}case"initialPlacement":M=a;break}if(o!==M)return{reset:{placement:M}}}return{}}}},c5=new Set(["left","top"]);async function u5(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=zt(n),a=mr(n),c=Vt(n)==="y",u=c5.has(i)?-1:1,d=s&&c?-1:1,f=In(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof p=="number"&&(m=a==="end"?p*-1:p),c?{x:m*d,y:h*u}:{x:h*u,y:m*d}}const d5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await u5(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},f5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:v=>{let{x:b,y:w}=v;return{x:b,y:w}}},...c}=In(e,t),u={x:n,y:r},d=await wo(t,c),f=Vt(zt(o)),h=Ec(f);let m=u[h],p=u[f];if(s){const v=h==="y"?"top":"left",b=h==="y"?"bottom":"right",w=m+d[v],C=m-d[b];m=Lc(w,m,C)}if(i){const v=f==="y"?"top":"left",b=f==="y"?"bottom":"right",w=p+d[v],C=p-d[b];p=Lc(w,p,C)}const g=a.fn({...t,[h]:m,[f]:p});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:s,[f]:i}}}}}},h5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...u}=In(e,t),d=await wo(t,u),f=zt(o),h=mr(o),m=Vt(o)==="y",{width:p,height:g}=s.floating;let v,b;f==="top"||f==="bottom"?(v=f,b=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(b=f,v=h==="end"?"top":"bottom");const w=g-d.top-d.bottom,C=p-d.left-d.right,L=dn(g-d[v],w),k=dn(p-d[b],C),E=!t.middlewareData.shift;let R=L,P=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=w),E&&!h){const _=Oe(d.left,0),B=Oe(d.right,0),Y=Oe(d.top,0),z=Oe(d.bottom,0);m?P=p-2*(_!==0||B!==0?_+B:Oe(d.left,d.right)):R=g-2*(Y!==0||z!==0?Y+z:Oe(d.top,d.bottom))}await c({...t,availableWidth:P,availableHeight:R});const W=await i.getDimensions(a.floating);return p!==W.width||g!==W.height?{reset:{rects:!0}}:{}}}};function Ac(e){const t=yt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Mt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=pr(n)!==s||pr(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Wi(e){return _e(e)?e:e.contextElement}function jn(e){const t=Wi(e);if(!Mt(t))return St(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Ac(t);let i=(s?pr(n.width):n.width)/r,a=(s?pr(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const p5=St(0);function Nc(e){const t=nt(e);return!Ii()||!t.visualViewport?p5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function m5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==nt(e)?!1:t}function fn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Wi(e);let i=St(1);t&&(r?_e(r)&&(i=jn(r)):i=jn(e));const a=m5(s,n,r)?Nc(s):St(0);let c=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,d=o.width/i.x,f=o.height/i.y;if(s){const h=nt(s),m=r&&_e(r)?nt(r):r;let p=h,g=ji(p);for(;g&&r&&m!==p;){const v=jn(g),b=g.getBoundingClientRect(),w=yt(g),C=b.left+(g.clientLeft+parseFloat(w.paddingLeft))*v.x,L=b.top+(g.clientTop+parseFloat(w.paddingTop))*v.y;c*=v.x,u*=v.y,d*=v.x,f*=v.y,c+=C,u+=L,p=nt(g),g=ji(p)}}return Co({width:d,height:f,x:c,y:u})}function xo(e,t){const n=yo(e).scrollLeft;return t?t.left+n:fn(Et(e)).left+n}function Rc(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-xo(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function g5(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Et(r),a=t?go(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},u=St(1);const d=St(0),f=Mt(r);if((f||!f&&!s)&&((On(r)!=="body"||fr(i))&&(c=yo(r)),Mt(r))){const m=fn(r);u=jn(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const h=i&&!f&&!s?Rc(i,c):St(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-c.scrollTop*u.y+d.y+h.y}}function y5(e){return Array.from(e.getClientRects())}function v5(e){const t=Et(e),n=yo(e),r=e.ownerDocument.body,o=Oe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Oe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+xo(e);const a=-n.scrollTop;return yt(r).direction==="rtl"&&(i+=Oe(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Fc=25;function b5(e,t){const n=nt(e),r=Et(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const d=Ii();(!d||d&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const u=xo(r);if(u<=0){const d=r.ownerDocument,f=d.body,h=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,p=Math.abs(r.clientWidth-f.clientWidth-m);p<=Fc&&(s-=p)}else u<=Fc&&(s+=u);return{width:s,height:i,x:a,y:c}}const C5=new Set(["absolute","fixed"]);function w5(e,t){const n=fn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Mt(e)?jn(e):St(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,u=r*s.y;return{width:i,height:a,x:c,y:u}}function Vc(e,t,n){let r;if(t==="viewport")r=b5(e,n);else if(t==="document")r=v5(Et(e));else if(_e(t))r=w5(t,n);else{const o=Nc(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Co(r)}function $c(e,t){const n=Zt(e);return n===t||!_e(n)||Bn(n)?!1:yt(n).position==="fixed"||$c(n,t)}function x5(e,t){const n=t.get(e);if(n)return n;let r=hr(e,[],!1).filter(a=>_e(a)&&On(a)!=="body"),o=null;const s=yt(e).position==="fixed";let i=s?Zt(e):e;for(;_e(i)&&!Bn(i);){const a=yt(i),c=Bi(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&C5.has(o.position)||fr(i)&&!c&&$c(e,i))?r=r.filter(d=>d!==i):o=a,i=Zt(i)}return t.set(e,r),r}function k5(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?go(t)?[]:x5(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((u,d)=>{const f=Vc(t,d,o);return u.top=Oe(f.top,u.top),u.right=dn(f.right,u.right),u.bottom=dn(f.bottom,u.bottom),u.left=Oe(f.left,u.left),u},Vc(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function L5(e){const{width:t,height:n}=Ac(e);return{width:t,height:n}}function E5(e,t,n){const r=Mt(t),o=Et(t),s=n==="fixed",i=fn(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=St(0);function u(){c.x=xo(o)}if(r||!r&&!s)if((On(t)!=="body"||fr(o))&&(a=yo(t)),r){const m=fn(t,!0,s,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&u();s&&!r&&o&&u();const d=o&&!r&&!s?Rc(o,a):St(0),f=i.left+a.scrollLeft-c.x-d.x,h=i.top+a.scrollTop-c.y-d.y;return{x:f,y:h,width:i.width,height:i.height}}function Ui(e){return yt(e).position==="static"}function _c(e,t){if(!Mt(e)||yt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Et(e)===n&&(n=n.ownerDocument.body),n}function Oc(e,t){const n=nt(e);if(go(e))return n;if(!Mt(e)){let o=Zt(e);for(;o&&!Bn(o);){if(_e(o)&&!Ui(o))return o;o=Zt(o)}return n}let r=_c(e,t);for(;r&&Hh(r)&&Ui(r);)r=_c(r,t);return r&&Bn(r)&&Ui(r)&&!Bi(r)?n:r||Kh(e)||n}const M5=async function(e){const t=this.getOffsetParent||Oc,n=this.getDimensions,r=await n(e.floating);return{reference:E5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function S5(e){return yt(e).direction==="rtl"}const T5={convertOffsetParentRelativeRectToViewportRelativeRect:g5,getDocumentElement:Et,getClippingRect:k5,getOffsetParent:Oc,getElementRects:M5,getClientRects:y5,getDimensions:L5,getScale:jn,isElement:_e,isRTL:S5};function Bc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function D5(e,t){let n=null,r;const o=Et(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:d,top:f,width:h,height:m}=u;if(a||t(),!h||!m)return;const p=vo(f),g=vo(o.clientWidth-(d+h)),v=vo(o.clientHeight-(f+m)),b=vo(d),C={rootMargin:-p+"px "+-g+"px "+-v+"px "+-b+"px",threshold:Oe(0,dn(1,c))||1};let L=!0;function k(E){const R=E[0].intersectionRatio;if(R!==c){if(!L)return i();R?i(!1,R):r=setTimeout(()=>{i(!1,1e-7)},1e3)}R===1&&!Bc(u,e.getBoundingClientRect())&&i(),L=!1}try{n=new IntersectionObserver(k,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,C)}n.observe(e)}return i(!0),s}function P5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Wi(e),d=o||s?[...u?hr(u):[],...hr(t)]:[];d.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const f=u&&a?D5(u,n):null;let h=-1,m=null;i&&(m=new ResizeObserver(b=>{let[w]=b;w&&w.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),n()}),u&&!c&&m.observe(u),m.observe(t));let p,g=c?fn(e):null;c&&v();function v(){const b=fn(e);g&&!Bc(g,b)&&n(),g=b,p=requestAnimationFrame(v)}return n(),()=>{var b;d.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),f?.(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(p)}}const Zi=wo,A5=d5,N5=f5,R5=l5,F5=h5,V5=(e,t,n)=>{const r=new Map,o={platform:T5,...n},s={...o.platform,_c:r};return a5(e,t,{...o,platform:s})};var $5=typeof document<"u",_5=function(){},ko=$5?Tn:_5;function Lo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Lo(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Lo(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Ic(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jc(e,t){const n=Ic(e);return Math.round(t*n)/n}function zi(e){const t=G.useRef(e);return ko(()=>{t.current=e}),t}function O5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[d,f]=G.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=G.useState(r);Lo(h,r)||m(r);const[p,g]=G.useState(null),[v,b]=G.useState(null),w=G.useCallback(S=>{S!==E.current&&(E.current=S,g(S))},[]),C=G.useCallback(S=>{S!==R.current&&(R.current=S,b(S))},[]),L=s||p,k=i||v,E=G.useRef(null),R=G.useRef(null),P=G.useRef(d),W=c!=null,_=zi(c),B=zi(o),Y=zi(u),z=G.useCallback(()=>{if(!E.current||!R.current)return;const S={placement:t,strategy:n,middleware:h};B.current&&(S.platform=B.current),V5(E.current,R.current,S).then(O=>{const V={...O,isPositioned:Y.current!==!1};A.current&&!Lo(P.current,V)&&(P.current=V,Wr.flushSync(()=>{f(V)}))})},[h,t,n,B,Y]);ko(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(S=>({...S,isPositioned:!1})))},[u]);const A=G.useRef(!1);ko(()=>(A.current=!0,()=>{A.current=!1}),[]),ko(()=>{if(L&&(E.current=L),k&&(R.current=k),L&&k){if(_.current)return _.current(L,k,z);z()}},[L,k,z,_,W]);const $=G.useMemo(()=>({reference:E,floating:R,setReference:w,setFloating:C}),[w,C]),M=G.useMemo(()=>({reference:L,floating:k}),[L,k]),D=G.useMemo(()=>{const S={position:n,left:0,top:0};if(!M.floating)return S;const O=jc(M.floating,d.x),V=jc(M.floating,d.y);return a?{...S,transform:"translate("+O+"px, "+V+"px)",...Ic(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:V}},[n,a,M.floating,d.x,d.y]);return G.useMemo(()=>({...d,update:z,refs:$,elements:M,floatingStyles:D}),[d,z,$,M,D])}const Hc=(e,t)=>({...A5(e),options:[e,t]}),B5=(e,t)=>({...N5(e),options:[e,t]}),I5=(e,t)=>({...R5(e),options:[e,t]}),j5=(e,t)=>({...F5(e),options:[e,t]}),Wc={...G},H5=Wc.useInsertionEffect,W5=H5||(e=>e());function Uc(e){const t=G.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return W5(()=>{t.current=e}),G.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}var Ki=typeof document<"u"?Tn:te;let Zc=!1,U5=0;const zc=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+U5++;function Z5(){const[e,t]=G.useState(()=>Zc?zc():void 0);return Ki(()=>{e==null&&t(zc())},[]),G.useEffect(()=>{Zc=!0},[]),e}const z5=Wc.useId,K5=z5||Z5;let gr;process.env.NODE_ENV!=="production"&&(gr=new Set);function Y5(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=gr)!=null&&e.has(o))){var s;(s=gr)==null||s.add(o),console.warn(o)}}function G5(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=gr)!=null&&e.has(o))){var s;(s=gr)==null||s.add(o),console.error(o)}}function q5(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const X5=G.createContext(null),J5=G.createContext(null),Q5=()=>{var e;return((e=G.useContext(X5))==null?void 0:e.id)||null},e9=()=>G.useContext(J5),t9="data-floating-ui-focusable";function n9(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=K5(),s=G.useRef({}),[i]=G.useState(()=>q5()),a=Q5()!=null;if(process.env.NODE_ENV!=="production"){const m=r.reference;m&&!_e(m)&&G5("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,u]=G.useState(r.reference),d=Uc((m,p,g)=>{s.current.openEvent=m?p:void 0,i.emit("openchange",{open:m,event:p,reason:g,nested:a}),n?.(m,p,g)}),f=G.useMemo(()=>({setPositionReference:u}),[]),h=G.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return G.useMemo(()=>({dataRef:s,open:t,onOpenChange:d,elements:h,events:i,floatingId:o,refs:f}),[t,d,h,i,o,f])}function r9(e){e===void 0&&(e={});const{nodeId:t}=e,n=n9({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[s,i]=G.useState(null),[a,c]=G.useState(null),d=o?.domReference||s,f=G.useRef(null),h=e9();Ki(()=>{d&&(f.current=d)},[d]);const m=O5({...e,elements:{...o,...a&&{reference:a}}}),p=G.useCallback(C=>{const L=_e(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),contextElement:C}:C;c(L),m.refs.setReference(L)},[m.refs]),g=G.useCallback(C=>{(_e(C)||C===null)&&(f.current=C,i(C)),(_e(m.refs.reference.current)||m.refs.reference.current===null||C!==null&&!_e(C))&&m.refs.setReference(C)},[m.refs]),v=G.useMemo(()=>({...m.refs,setReference:g,setPositionReference:p,domReference:f}),[m.refs,g,p]),b=G.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),w=G.useMemo(()=>({...m,...r,refs:v,elements:b,nodeId:t}),[m,v,b,t,r]);return Ki(()=>{r.dataRef.current.floatingContext=w;const C=h?.nodesRef.current.find(L=>L.id===t);C&&(C.context=w)}),G.useMemo(()=>({...m,context:w,refs:v,elements:b}),[m,v,b,w])}const Kc="active",Yc="selected";function Yi(e,t,n){const r=new Map,o=n==="item";let s=e;if(o&&e){const{[Kc]:i,[Yc]:a,...c}=e;s=c}return{...n==="floating"&&{tabIndex:-1,[t9]:""},...s,...t.map(i=>{const a=i?i[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((i,a)=>(a&&Object.entries(a).forEach(c=>{let[u,d]=c;if(!(o&&[Kc,Yc].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof d=="function"){var f;(f=r.get(u))==null||f.push(d),i[u]=function(){for(var h,m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];return(h=r.get(u))==null?void 0:h.map(v=>v(...p)).find(v=>v!==void 0)}}}else i[u]=d}),i),{})}}function o9(e){e===void 0&&(e=[]);const t=e.map(a=>a?.reference),n=e.map(a=>a?.floating),r=e.map(a=>a?.item),o=G.useCallback(a=>Yi(a,e,"reference"),t),s=G.useCallback(a=>Yi(a,e,"floating"),n),i=G.useCallback(a=>Yi(a,e,"item"),r);return G.useMemo(()=>({getReferenceProps:o,getFloatingProps:s,getItemProps:i}),[o,s,i])}function Gc(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const i9=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:o,offset:s=0,index:i=0,minItemsVisible:a=4,referenceOverflowThreshold:c=0,scrollRef:u,...d}=In(e,t),{rects:f,elements:{floating:h}}=t,m=n.current[i],p=u?.current||h,g=h.clientTop||p.clientTop,v=h.clientTop!==0,b=p.clientTop!==0,w=h===p;if(process.env.NODE_ENV!=="production"&&(t.placement.startsWith("bottom")||Y5('`placement` side must be "bottom" when using the `inner`',"middleware.")),!m)return{};const C={...t,...await Hc(-m.offsetTop-h.clientTop-f.reference.height/2-m.offsetHeight/2-s).fn(t)},L=await Zi(Gc(C,p.scrollHeight+g+h.clientTop),d),k=await Zi(C,{...d,elementContext:"reference"}),E=Oe(0,L.top),R=C.y+E,_=(p.scrollHeight>p.clientHeight?B=>B:pr)(Oe(0,p.scrollHeight+(v&&w||b?g*2:0)-E-Oe(0,L.bottom)));if(p.style.maxHeight=_+"px",p.scrollTop=E,o){const B=p.offsetHeight<m.offsetHeight*dn(a,n.current.length)-1||k.top>=-c||k.bottom>=-c;Wr.flushSync(()=>o(B))}return r&&(r.current=await Zi(Gc({...C,y:R},p.offsetHeight+g+h.clientTop),d)),{y:R}}});function s9(e,t){const{open:n,elements:r}=e,{enabled:o=!0,overflowRef:s,scrollRef:i,onChange:a}=t,c=Uc(a),u=G.useRef(!1),d=G.useRef(null),f=G.useRef(null);G.useEffect(()=>{if(!o)return;function m(g){if(g.ctrlKey||!p||s.current==null)return;const v=g.deltaY,b=s.current.top>=-.5,w=s.current.bottom>=-.5,C=p.scrollHeight-p.clientHeight,L=v<0?-1:1,k=v<0?"max":"min";p.scrollHeight<=p.clientHeight||(!b&&v>0||!w&&v<0?(g.preventDefault(),Wr.flushSync(()=>{c(E=>E+Math[k](v,C*L))})):/firefox/i.test(Gh())&&(p.scrollTop+=v))}const p=i?.current||r.floating;if(n&&p)return p.addEventListener("wheel",m),requestAnimationFrame(()=>{d.current=p.scrollTop,s.current!=null&&(f.current={...s.current})}),()=>{d.current=null,f.current=null,p.removeEventListener("wheel",m)}},[o,n,r.floating,s,i,c]);const h=G.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const m=i?.current||r.floating;if(!(!s.current||!m||!u.current)){if(d.current!==null){const p=m.scrollTop-d.current;(s.current.bottom<-.5&&p<-1||s.current.top<-.5&&p>1)&&Wr.flushSync(()=>c(g=>g+p))}requestAnimationFrame(()=>{d.current=m.scrollTop})}}}),[r.floating,c,s,i]);return G.useMemo(()=>o?{floating:h}:{},[o,h])}let yr=De({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});yr.displayName="FloatingContext";let Gi=De(null);Gi.displayName="PlacementContext";function a9(e){return ve(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function l9(){return de(yr).setReference}function c9(){let{getFloatingProps:e,slot:t}=de(yr);return ue((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function u9(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=de(Gi),n=ve(()=>e,[JSON.stringify(e,(o,s)=>{var i;return(i=s?.outerHTML)!=null?i:s})]);je(()=>{t?.(n??null)},[t,n]);let r=de(yr);return ve(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let qc=4;function d9({children:e,enabled:t=!0}){let[n,r]=K(null),[o,s]=K(0),i=se(null),[a,c]=K(null);f9(a);let u=t&&n!==null&&a!==null,{to:d="bottom",gap:f=0,offset:h=0,padding:m=0,inner:p}=h9(n,a),[g,v="center"]=d.split(" ");je(()=>{u&&s(0)},[u]);let{refs:b,floatingStyles:w,context:C}=r9({open:u,placement:g==="selection"?v==="center"?"bottom":`bottom-${v}`:v==="center"?`${g}`:`${g}-${v}`,strategy:"absolute",transform:!1,middleware:[Hc({mainAxis:g==="selection"?0:f,crossAxis:h}),B5({padding:m}),g!=="selection"&&I5({padding:m}),g==="selection"&&p?i9({...p,padding:m,overflowRef:i,offset:o,minItemsVisible:qc,referenceOverflowThreshold:m,onFallbackChange(B){var Y,z;if(!B)return;let A=C.elements.floating;if(!A)return;let $=parseFloat(getComputedStyle(A).scrollPaddingBottom)||0,M=Math.min(qc,A.childElementCount),D=0,S=0;for(let O of(z=(Y=C.elements.floating)==null?void 0:Y.childNodes)!=null?z:[])if(Ft(O)){let V=O.offsetTop,U=V+O.clientHeight+$,q=A.scrollTop,I=q+A.clientHeight;if(V>=q&&U<=I)M--;else{S=Math.max(0,Math.min(U,I)-Math.max(V,q)),D=O.clientHeight;break}}M>=1&&s(O=>{let V=D*M-S+$;return O>=V?O:V})}}):null,j5({padding:m,apply({availableWidth:B,availableHeight:Y,elements:z}){Object.assign(z.floating.style,{overflow:"auto",maxWidth:`${B}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${Y}px)`})}})].filter(Boolean),whileElementsMounted:P5}),[L=g,k=v]=C.placement.split("-");g==="selection"&&(L="selection");let E=ve(()=>({anchor:[L,k].filter(Boolean).join(" ")}),[L,k]),R=s9(C,{overflowRef:i,onChange:s}),{getReferenceProps:P,getFloatingProps:W}=o9([R]),_=le(B=>{c(B),b.setFloating(B)});return G.createElement(Gi.Provider,{value:r},G.createElement(yr.Provider,{value:{setFloating:_,setReference:b.setReference,styles:w,getReferenceProps:P,getFloatingProps:W,slot:E}},e))}function f9(e){je(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,r=parseFloat(n);if(isNaN(r))return;let o=parseInt(n);isNaN(o)||r!==o&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function h9(e,t){var n,r,o;let s=qi((n=e?.gap)!=null?n:"var(--anchor-gap, 0)",t),i=qi((r=e?.offset)!=null?r:"var(--anchor-offset, 0)",t),a=qi((o=e?.padding)!=null?o:"var(--anchor-padding, 0)",t);return{...e,gap:s,offset:i,padding:a}}function qi(e,t,n=void 0){let r=co(),o=le((c,u)=>{if(c==null)return[n,null];if(typeof c=="number")return[c,null];if(typeof c=="string"){if(!u)return[n,null];let d=Jc(c,u);return[d,f=>{let h=Xc(c);{let m=h.map(p=>window.getComputedStyle(u).getPropertyValue(p));r.requestAnimationFrame(function p(){r.nextFrame(p);let g=!1;for(let[b,w]of h.entries()){let C=window.getComputedStyle(u).getPropertyValue(w);if(m[b]!==C){m[b]=C,g=!0;break}}if(!g)return;let v=Jc(c,u);d!==v&&(f(v),d=v)})}return r.dispose}]}return[n,null]}),s=ve(()=>o(e,t)[0],[e,t]),[i=s,a]=K();return je(()=>{let[c,u]=o(e,t);if(a(c),!!u)return u(a)},[e,t]),i}function Xc(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let r=t[1].slice(0,n).trim(),o=t[1].slice(n+1).trim();return o?[r,...Xc(o)]:[r]}return[]}function Jc(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}let Eo=De(null);Eo.displayName="OpenClosedContext";var hn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(hn||{});function Qc(){return de(Eo)}function p9({value:e,children:t}){return N.createElement(Eo.Provider,{value:e},t)}function m9({children:e}){return N.createElement(Eo.Provider,{value:null},e)}function e1(e){let t=le(e),n=se(!1);te(()=>(n.current=!1,()=>{n.current=!0,Di(()=>{n.current&&t()})}),[t])}let g9=De(!1);function y9(){return de(g9)}function v9(e){let t=y9(),n=de(n1),[r,o]=K(()=>{var s;if(!t&&n!==null)return(s=n.current)!=null?s:null;if(rn.isServer)return null;let i=e?.getElementById("headlessui-portal-root");if(i)return i;if(e===null)return null;let a=e.createElement("div");return a.setAttribute("id","headlessui-portal-root"),e.body.appendChild(a)});return te(()=>{r!==null&&(e!=null&&e.body.contains(r)||e==null||e.body.appendChild(r))},[r,e]),te(()=>{t||n!==null&&o(n.current)},[n,o,t]),r}let t1=Sn,b9=We(function(e,t){let{ownerDocument:n=null,...r}=e,o=se(null),s=qe(Xl(h=>{o.current=h}),t),i=Oi(o.current),a=n??i,c=v9(a),u=de(Xi),d=co(),f=Ge();return e1(()=>{var h;c&&c.childNodes.length<=0&&((h=c.parentElement)==null||h.removeChild(c))}),c?t2(N.createElement("div",{"data-headlessui-portal":"",ref:h=>{d.dispose(),u&&h&&d.add(u.register(h))}},f({ourProps:{ref:s},theirProps:r,slot:{},defaultTag:t1,name:"Portal"})),c):null});function C9(e,t){let n=qe(t),{enabled:r=!0,ownerDocument:o,...s}=e,i=Ge();return r?N.createElement(b9,{...s,ownerDocument:o,ref:n}):i({ourProps:{ref:n},theirProps:s,slot:{},defaultTag:t1,name:"Portal"})}let w9=Sn,n1=De(null);function x9(e,t){let{target:n,...r}=e,o={ref:qe(t)},s=Ge();return N.createElement(n1.Provider,{value:n},s({ourProps:o,theirProps:r,defaultTag:w9,name:"Popover.Group"}))}let Xi=De(null);function k9(){let e=de(Xi),t=se([]),n=le(s=>(t.current.push(s),e&&e.register(s),()=>r(s))),r=le(s=>{let i=t.current.indexOf(s);i!==-1&&t.current.splice(i,1),e&&e.unregister(s)}),o=ve(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,ve(()=>function({children:s}){return N.createElement(Xi.Provider,{value:o},s)},[o])]}let L9=We(C9),E9=We(x9),M9=Object.assign(L9,{Group:E9});function S9({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=le(()=>{var o,s;let i=Nn(n),a=[];for(let c of e)c!==null&&(ln(c)?a.push(c):"current"in c&&ln(c.current)&&a.push(c.current));if(t!=null&&t.current)for(let c of t.current)a.push(c);for(let c of(o=i?.querySelectorAll("html > *, body > *"))!=null?o:[])c!==document.body&&c!==document.head&&ln(c)&&c.id!=="headlessui-portal-root"&&(n&&(c.contains(n)||c.contains((s=n?.getRootNode())==null?void 0:s.host))||a.some(u=>c.contains(u))||a.push(c));return a});return{resolveContainers:r,contains:le(o=>r().some(s=>s.contains(o)))}}let r1=De(null);function o1({children:e,node:t}){let[n,r]=K(null),o=i1(t??n);return N.createElement(r1.Provider,{value:o},e,o===null&&N.createElement(Vn,{features:Fn.Hidden,ref:s=>{var i,a;if(s){for(let c of(a=(i=Nn(s))==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?a:[])if(c!==document.body&&c!==document.head&&ln(c)&&c!=null&&c.contains(s)){r(c);break}}}}))}function i1(e=null){var t;return(t=de(r1))!=null?t:e}function T9(){let e=se(!1);return je(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var $t=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))($t||{});function s1(){let e=se(0);return hc(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}var D9=Object.defineProperty,P9=(e,t,n)=>t in e?D9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a1=(e,t,n)=>(P9(e,typeof t!="symbol"?t+"":t,n),n),Se=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Se||{}),A9=(e=>(e[e.OpenPopover=0]="OpenPopover",e[e.ClosePopover=1]="ClosePopover",e[e.SetButton=2]="SetButton",e[e.SetButtonId=3]="SetButtonId",e[e.SetPanel=4]="SetPanel",e[e.SetPanelId=5]="SetPanelId",e))(A9||{});let N9={0:e=>e.popoverState===0?e:{...e,popoverState:0,__demoMode:!1},1(e){return e.popoverState===1?e:{...e,popoverState:1,__demoMode:!1}},2(e,t){return e.button===t.button?e:{...e,button:t.button}},3(e,t){return e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId}},4(e,t){return e.panel===t.panel?e:{...e,panel:t.panel}},5(e,t){return e.panelId===t.panelId?e:{...e,panelId:t.panelId}}};class Aa extends rc{constructor(t){super(t),a1(this,"actions",{close:()=>this.send({type:1}),refocusableClose:n=>{this.actions.close();let r=(()=>n?Ft(n)?n:"current"in n&&Ft(n.current)?n.current:this.state.button:this.state.button)();r?.focus()},open:()=>this.send({type:0}),setButtonId:n=>this.send({type:3,buttonId:n}),setButton:n=>this.send({type:2,button:n}),setPanelId:n=>this.send({type:5,panelId:n}),setPanel:n=>this.send({type:4,panel:n})}),a1(this,"selectors",{isPortalled:n=>{var r;if(!n.button||!n.panel)return!1;let o=(r=Nn(n.button))!=null?r:document;for(let f of o.querySelectorAll("body > *"))if(Number(f?.contains(n.button))^Number(f?.contains(n.panel)))return!0;let s=ho(o),i=s.indexOf(n.button),a=(i+s.length-1)%s.length,c=(i+1)%s.length,u=s[a],d=s[c];return!n.panel.contains(u)&&!n.panel.contains(d)}});{let n=this.state.id,r=ac.get(null);this.on(0,()=>r.actions.push(n)),this.on(1,()=>r.actions.pop(n))}}static new({id:t,__demoMode:n=!1}){return new Aa({id:t,__demoMode:n,popoverState:n?0:1,buttons:{current:[]},button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:{current:null},afterPanelSentinel:{current:null},afterButtonSentinel:{current:null}})}reduce(t,n){return He(n.type,N9,t,n)}}const l1=De(null);function Mo(e){let t=de(l1);if(t===null){let n=new Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Mo),n}return t}function R9({id:e,__demoMode:t=!1}){let n=ve(()=>Aa.new({id:e,__demoMode:t}),[]);return e1(()=>n.dispose()),n}let Ji=De(null);Ji.displayName="PopoverGroupContext";function c1(){return de(Ji)}let So=De(null);So.displayName="PopoverPanelContext";function F9(){return de(So)}let V9="div";function $9(e,t){var n;let r=Pt(),{__demoMode:o=!1,...s}=e,i=R9({id:r,__demoMode:o}),a=se(null),c=qe(t,Xl(A=>{a.current=A})),[u,d,f,h,m]=cn(i,ue(A=>[A.popoverState,A.button,A.panel,A.buttonId,A.panelId],[])),p=Eh((n=a.current)!=null?n:d),g=it(h),v=it(m),b=ve(()=>({buttonId:g,panelId:v,close:i.actions.close}),[g,v,i]),w=c1(),C=w?.registerPopover,L=le(()=>{var A,$;let M=sn((A=a.current)!=null?A:d);return($=w?.isFocusWithinPopoverGroup())!=null?$:M&&(d?.contains(M)||f?.contains(M))});te(()=>C?.(b),[C,b]);let[k,E]=k9(),R=i1(d),P=S9({mainTreeNode:R,portals:k,defaultContainers:[{get current(){return i.state.button}},{get current(){return i.state.panel}}]});Mh(p,"focus",A=>{var $,M,D,S,O,V;A.target!==window&&$n(A.target)&&i.state.popoverState===Se.Open&&(L()||i.state.button&&i.state.panel&&(P.contains(A.target)||(M=($=i.state.beforePanelSentinel.current)==null?void 0:$.contains)!=null&&M.call($,A.target)||(S=(D=i.state.afterPanelSentinel.current)==null?void 0:D.contains)!=null&&S.call(D,A.target)||(V=(O=i.state.afterButtonSentinel.current)==null?void 0:O.contains)!=null&&V.call(O,A.target)||i.actions.close()))},!0);let W=u===Se.Open;Lh(W,P.resolveContainers,(A,$)=>{i.actions.close(),uc($,_i.Loose)||(A.preventDefault(),d?.focus())});let _=kt({open:u===Se.Open,close:i.actions.refocusableClose}),B=cn(i,ue(A=>He(A.popoverState,{[Se.Open]:hn.Open,[Se.Closed]:hn.Closed}),[])),Y={ref:c},z=Ge();return N.createElement(o1,{node:R},N.createElement(d9,null,N.createElement(So.Provider,{value:null},N.createElement(l1.Provider,{value:i},N.createElement(Jl,{value:i.actions.refocusableClose},N.createElement(p9,{value:B},N.createElement(E,null,z({ourProps:Y,theirProps:s,slot:_,defaultTag:V9,name:"Popover"}))))))))}let _9="button";function O9(e,t){let n=Pt(),{id:r=`headlessui-popover-button-${n}`,disabled:o=!1,autoFocus:s=!1,...i}=e,a=Mo("Popover.Button"),[c,u,d,f,h,m,p]=cn(a,ue(F=>[F.popoverState,a.selectors.isPortalled(F),F.button,F.buttonId,F.panel,F.panelId,F.afterButtonSentinel],[])),g=se(null),v=`headlessui-focus-sentinel-${Pt()}`,b=c1(),w=b?.closeOthers,C=F9()!==null;te(()=>{if(!C)return a.actions.setButtonId(r),()=>a.actions.setButtonId(null)},[C,r,a]);let[L]=K(()=>Symbol()),k=qe(g,t,l9(),le(F=>{if(!C){if(F)a.state.buttons.current.push(L);else{let H=a.state.buttons.current.indexOf(L);H!==-1&&a.state.buttons.current.splice(H,1)}a.state.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),F&&a.actions.setButton(F)}})),E=qe(g,t),R=le(F=>{var H,ne,ie;if(C){if(a.state.popoverState===Se.Closed)return;switch(F.key){case Ne.Space:case Ne.Enter:F.preventDefault(),(ne=(H=F.target).click)==null||ne.call(H),a.actions.close(),(ie=a.state.button)==null||ie.focus();break}}else switch(F.key){case Ne.Space:case Ne.Enter:F.preventDefault(),F.stopPropagation(),a.state.popoverState===Se.Closed?(w?.(a.state.buttonId),a.actions.open()):a.actions.close();break;case Ne.Escape:if(a.state.popoverState!==Se.Open)return w?.(a.state.buttonId);if(!g.current)return;let X=sn(g.current);if(X&&!g.current.contains(X))return;F.preventDefault(),F.stopPropagation(),a.actions.close();break}}),P=le(F=>{C||F.key===Ne.Space&&F.preventDefault()}),W=le(F=>{var H,ne;Gl(F.currentTarget)||o||(C?(a.actions.close(),(H=a.state.button)==null||H.focus()):(F.preventDefault(),F.stopPropagation(),a.state.popoverState===Se.Closed?(w?.(a.state.buttonId),a.actions.open()):a.actions.close(),(ne=a.state.button)==null||ne.focus()))}),_=le(F=>{F.preventDefault(),F.stopPropagation()}),{isFocusVisible:B,focusProps:Y}=Si({autoFocus:s}),{isHovered:z,hoverProps:A}=Ul({isDisabled:o}),{pressed:$,pressProps:M}=Zl({disabled:o}),D=c===Se.Open,S=kt({open:D,active:$||D,disabled:o,hover:z,focus:B,autofocus:s}),O=mc(e,d),V=cr(C?{ref:E,type:O,onKeyDown:R,onClick:W,disabled:o||void 0,autoFocus:s}:{ref:k,id:f,type:O,"aria-expanded":c===Se.Open,"aria-controls":h?m:void 0,disabled:o||void 0,autoFocus:s,onKeyDown:R,onKeyUp:P,onClick:W,onMouseDown:_},Y,A,M),U=s1(),q=le(()=>{if(!Ft(a.state.panel))return;let F=a.state.panel;function H(){He(U.current,{[$t.Forwards]:()=>tt(F,Pe.First),[$t.Backwards]:()=>tt(F,Pe.Last)})===Ut.Error&&tt(ho(on(a.state.button)).filter(ne=>ne.dataset.headlessuiFocusGuard!=="true"),He(U.current,{[$t.Forwards]:Pe.Next,[$t.Backwards]:Pe.Previous}),{relativeTo:a.state.button})}H()}),I=Ge();return N.createElement(N.Fragment,null,I({ourProps:V,theirProps:i,slot:S,defaultTag:_9,name:"Popover.Button"}),D&&!C&&u&&N.createElement(Vn,{id:v,ref:p,features:Fn.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:q}))}let B9="div",I9=an.RenderStrategy|an.Static;function u1(e,t){let n=Pt(),{id:r=`headlessui-popover-backdrop-${n}`,transition:o=!1,...s}=e,i=Mo("Popover.Backdrop"),a=cn(i,ue(b=>b.popoverState,[])),[c,u]=K(null),d=qe(t,u),f=Qc(),[h,m]=Cc(o,c,f!==null?(f&hn.Open)===hn.Open:a===Se.Open),p=le(b=>{if(Gl(b.currentTarget))return b.preventDefault();i.actions.close()}),g=kt({open:a===Se.Open}),v={ref:d,id:r,"aria-hidden":!0,onClick:p,...bc(m)};return Ge()({ourProps:v,theirProps:s,slot:g,defaultTag:B9,features:I9,visible:h,name:"Popover.Backdrop"})}let j9="div",H9=an.RenderStrategy|an.Static;function W9(e,t){let n=Pt(),{id:r=`headlessui-popover-panel-${n}`,focus:o=!1,anchor:s,portal:i=!1,modal:a=!1,transition:c=!1,...u}=e,d=Mo("Popover.Panel"),f=cn(d,d.selectors.isPortalled),[h,m,p,g,v]=cn(d,ue(I=>[I.popoverState,I.button,I.__demoMode,I.beforePanelSentinel,I.afterPanelSentinel],[])),b=`headlessui-focus-sentinel-before-${n}`,w=`headlessui-focus-sentinel-after-${n}`,C=se(null),L=a9(s),[k,E]=u9(L),R=c9();L&&(i=!0);let[P,W]=K(null),_=qe(C,t,L?k:null,d.actions.setPanel,W),B=Oi(m),Y=Oi(C.current);je(()=>(d.actions.setPanelId(r),()=>d.actions.setPanelId(null)),[r,d]);let z=Qc(),[A,$]=Cc(c,P,z!==null?(z&hn.Open)===hn.Open:h===Se.Open);gh(A,m,d.actions.close),Rh(p?!1:a&&A,Y);let M=le(I=>{var F;switch(I.key){case Ne.Escape:if(d.state.popoverState!==Se.Open||!C.current)return;let H=sn(C.current);if(H&&!C.current.contains(H))return;I.preventDefault(),I.stopPropagation(),d.actions.close(),(F=d.state.button)==null||F.focus();break}});te(()=>{var I;e.static||h===Se.Closed&&((I=e.unmount)==null||I)&&d.actions.setPanel(null)},[h,e.unmount,e.static,d]),te(()=>{if(p||!o||h!==Se.Open||!C.current)return;let I=sn(C.current);C.current.contains(I)||tt(C.current,Pe.First)},[p,o,C.current,h]);let D=kt({open:h===Se.Open,close:d.actions.refocusableClose}),S=cr(L?R():{},{ref:_,id:r,onKeyDown:M,onBlur:o&&h===Se.Open?I=>{var F,H,ne,ie,X;let ce=I.relatedTarget;ce&&C.current&&((F=C.current)!=null&&F.contains(ce)||(d.actions.close(),((ne=(H=g.current)==null?void 0:H.contains)!=null&&ne.call(H,ce)||(X=(ie=v.current)==null?void 0:ie.contains)!=null&&X.call(ie,ce))&&ce.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...u.style,...E,"--button-width":nh(A,m,!0).width},...bc($)}),O=s1(),V=le(()=>{let I=C.current;if(!I)return;function F(){He(O.current,{[$t.Forwards]:()=>{var H;tt(I,Pe.First)===Ut.Error&&((H=d.state.afterPanelSentinel.current)==null||H.focus())},[$t.Backwards]:()=>{var H;(H=d.state.button)==null||H.focus({preventScroll:!0})}})}F()}),U=le(()=>{let I=C.current;if(!I)return;function F(){He(O.current,{[$t.Forwards]:()=>{var H;if(!d.state.button)return;let ne=(H=on(d.state.button))!=null?H:document.body,ie=ho(ne),X=ie.indexOf(d.state.button),ce=ie.slice(0,X+1),ae=[...ie.slice(X+1),...ce];for(let pe of ae.slice())if(pe.dataset.headlessuiFocusGuard==="true"||P!=null&&P.contains(pe)){let ee=ae.indexOf(pe);ee!==-1&&ae.splice(ee,1)}tt(ae,Pe.First,{sorted:!1})},[$t.Backwards]:()=>{var H;tt(I,Pe.Previous)===Ut.Error&&((H=d.state.button)==null||H.focus())}})}F()}),q=Ge();return N.createElement(m9,null,N.createElement(So.Provider,{value:r},N.createElement(Jl,{value:d.actions.refocusableClose},N.createElement(M9,{enabled:i?e.static||A:!1,ownerDocument:B},A&&f&&N.createElement(Vn,{id:b,ref:g,features:Fn.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:V}),q({ourProps:S,theirProps:u,slot:D,defaultTag:j9,features:H9,visible:A,name:"Popover.Panel"}),A&&f&&N.createElement(Vn,{id:w,ref:v,features:Fn.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:U})))))}let U9="div";function Z9(e,t){let n=se(null),r=qe(n,t),[o,s]=K([]),i=le(g=>{s(v=>{let b=v.indexOf(g);if(b!==-1){let w=v.slice();return w.splice(b,1),w}return v})}),a=le(g=>(s(v=>[...v,g]),()=>i(g))),c=le(()=>{var g;let v=on(n.current);if(!v)return!1;let b=sn(n.current);return(g=n.current)!=null&&g.contains(b)?!0:o.some(w=>{var C,L;return((C=v.getElementById(w.buttonId.current))==null?void 0:C.contains(b))||((L=v.getElementById(w.panelId.current))==null?void 0:L.contains(b))})}),u=le(g=>{for(let v of o)v.buttonId.current!==g&&v.close()}),d=ve(()=>({registerPopover:a,unregisterPopover:i,isFocusWithinPopoverGroup:c,closeOthers:u}),[a,i,c,u]),f=kt({}),h=e,m={ref:r},p=Ge();return N.createElement(o1,null,N.createElement(Ji.Provider,{value:d},p({ourProps:m,theirProps:h,slot:f,defaultTag:U9,name:"Popover.Group"})))}let z9=We($9),d1=We(O9),K9=We(u1),Y9=We(u1),f1=We(W9),G9=We(Z9),q9=Object.assign(z9,{Button:d1,Backdrop:Y9,Overlay:K9,Panel:f1,Group:G9});function X9({onFocus:e}){let[t,n]=K(!0),r=T9();return t?N.createElement(Vn,{as:"button",type:"button",features:Fn.Focusable,onFocus:o=>{o.preventDefault();let s,i=50;function a(){if(i--<=0){s&&cancelAnimationFrame(s);return}if(e()){if(cancelAnimationFrame(s),!r.current)return;n(!1);return}s=requestAnimationFrame(a)}s=requestAnimationFrame(a)}}):null}const h1=G.createContext(null);function J9(){return{groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let o=(n=r.get(t))!=null?n:0;r.set(t,o+1);let s=Array.from(r.keys()).indexOf(t);function i(){let a=r.get(t);a>1?r.set(t,a-1):r.delete(t)}return[s,i]}}}function Q9({children:e}){let t=G.useRef(J9());return G.createElement(h1.Provider,{value:t},e)}function p1(e){let t=G.useContext(h1);if(!t)throw new Error("You must wrap your component in a <StableCollection>");let n=G.useId(),[r,o]=t.current.get(e,n);return G.useEffect(()=>o,[]),r}var ep=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(ep||{}),tp=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(tp||{}),np=(e=>(e[e.SetSelectedIndex=0]="SetSelectedIndex",e[e.RegisterTab=1]="RegisterTab",e[e.UnregisterTab=2]="UnregisterTab",e[e.RegisterPanel=3]="RegisterPanel",e[e.UnregisterPanel=4]="UnregisterPanel",e))(np||{});let rp={0(e,t){var n;let r=_n(e.tabs,d=>d.current),o=_n(e.panels,d=>d.current),s=r.filter(d=>{var f;return!((f=d.current)!=null&&f.hasAttribute("disabled"))}),i={...e,tabs:r,panels:o};if(t.index<0||t.index>r.length-1){let d=He(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>He(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(s.length===0)return i;let f=He(d,{0:()=>r.indexOf(s[0]),1:()=>r.indexOf(s[s.length-1])});return{...i,selectedIndex:f===-1?e.selectedIndex:f}}let a=r.slice(0,t.index),c=[...r.slice(t.index),...a].find(d=>s.includes(d));if(!c)return i;let u=(n=r.indexOf(c))!=null?n:e.selectedIndex;return u===-1&&(u=e.selectedIndex),{...i,selectedIndex:u}},1(e,t){if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],r=_n([...e.tabs,t.tab],s=>s.current),o=e.selectedIndex;return e.info.current.isControlled||(o=r.indexOf(n),o===-1&&(o=e.selectedIndex)),{...e,tabs:r,selectedIndex:o}},2(e,t){return{...e,tabs:e.tabs.filter(n=>n!==t.tab)}},3(e,t){return e.panels.includes(t.panel)?e:{...e,panels:_n([...e.panels,t.panel],n=>n.current)}},4(e,t){return{...e,panels:e.panels.filter(n=>n!==t.panel)}}},Qi=De(null);Qi.displayName="TabsDataContext";function Hn(e){let t=de(Qi);if(t===null){let n=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Hn),n}return t}let es=De(null);es.displayName="TabsActionsContext";function ts(e){let t=de(es);if(t===null){let n=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ts),n}return t}function op(e,t){return He(t.type,rp,e,t)}let ip="div";function sp(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:o=!1,onChange:s,selectedIndex:i=null,...a}=e;const c=r?"vertical":"horizontal",u=o?"manual":"auto";let d=i!==null,f=it({isControlled:d}),h=qe(t),[m,p]=X0(op,{info:f,selectedIndex:i??n,tabs:[],panels:[]}),g=kt({selectedIndex:m.selectedIndex}),v=it(s||(()=>{})),b=it(m.tabs),w=ve(()=>({orientation:c,activation:u,...m}),[c,u,m]),C=le(_=>(p({type:1,tab:_}),()=>p({type:2,tab:_}))),L=le(_=>(p({type:3,panel:_}),()=>p({type:4,panel:_}))),k=le(_=>{E.current!==_&&v.current(_),d||p({type:0,index:_})}),E=it(d?e.selectedIndex:m.selectedIndex),R=ve(()=>({registerTab:C,registerPanel:L,change:k}),[]);je(()=>{p({type:0,index:i??n})},[i]),je(()=>{if(E.current===void 0||m.tabs.length<=0)return;let _=_n(m.tabs,B=>B.current);_.some((B,Y)=>m.tabs[Y]!==B)&&k(_.indexOf(m.tabs[E.current]))});let P={ref:h},W=Ge();return N.createElement(Q9,null,N.createElement(es.Provider,{value:R},N.createElement(Qi.Provider,{value:w},w.tabs.length<=0&&N.createElement(X9,{onFocus:()=>{var _,B;for(let Y of b.current)if(((_=Y.current)==null?void 0:_.tabIndex)===0)return(B=Y.current)==null||B.focus(),!0;return!1}}),W({ourProps:P,theirProps:a,slot:g,defaultTag:ip,name:"Tabs"}))))}let ap="div";function lp(e,t){let{orientation:n,selectedIndex:r}=Hn("Tab.List"),o=qe(t),s=kt({selectedIndex:r}),i=e,a={ref:o,role:"tablist","aria-orientation":n};return Ge()({ourProps:a,theirProps:i,slot:s,defaultTag:ap,name:"Tabs.List"})}let cp="button";function up(e,t){var n,r;let o=Pt(),{id:s=`headlessui-tabs-tab-${o}`,disabled:i=!1,autoFocus:a=!1,...c}=e,{orientation:u,activation:d,selectedIndex:f,tabs:h,panels:m}=Hn("Tab"),p=ts("Tab"),g=Hn("Tab"),[v,b]=K(null),w=se(null),C=qe(w,t,b);je(()=>p.registerTab(w),[p,w]);let L=p1("tabs"),k=h.indexOf(w);k===-1&&(k=L);let E=k===f,R=le(V=>{let U=V();if(U===Ut.Success&&d==="auto"){let q=sn(w.current),I=g.tabs.findIndex(F=>F.current===q);I!==-1&&p.change(I)}return U}),P=le(V=>{let U=h.map(q=>q.current).filter(Boolean);if(V.key===Ne.Space||V.key===Ne.Enter){V.preventDefault(),V.stopPropagation(),p.change(k);return}switch(V.key){case Ne.Home:case Ne.PageUp:return V.preventDefault(),V.stopPropagation(),R(()=>tt(U,Pe.First));case Ne.End:case Ne.PageDown:return V.preventDefault(),V.stopPropagation(),R(()=>tt(U,Pe.Last))}if(R(()=>He(u,{vertical(){return V.key===Ne.ArrowUp?tt(U,Pe.Previous|Pe.WrapAround):V.key===Ne.ArrowDown?tt(U,Pe.Next|Pe.WrapAround):Ut.Error},horizontal(){return V.key===Ne.ArrowLeft?tt(U,Pe.Previous|Pe.WrapAround):V.key===Ne.ArrowRight?tt(U,Pe.Next|Pe.WrapAround):Ut.Error}}))===Ut.Success)return V.preventDefault()}),W=se(!1),_=le(()=>{var V;W.current||(W.current=!0,(V=w.current)==null||V.focus({preventScroll:!0}),p.change(k),Di(()=>{W.current=!1}))}),B=le(V=>{V.preventDefault()}),{isFocusVisible:Y,focusProps:z}=Si({autoFocus:a}),{isHovered:A,hoverProps:$}=Ul({isDisabled:i}),{pressed:M,pressProps:D}=Zl({disabled:i}),S=kt({selected:E,hover:A,active:M,focus:Y,autofocus:a,disabled:i}),O=cr({ref:C,onKeyDown:P,onMouseDown:B,onClick:_,id:s,role:"tab",type:mc(e,v),"aria-controls":(r=(n=m[k])==null?void 0:n.current)==null?void 0:r.id,"aria-selected":E,tabIndex:E?0:-1,disabled:i||void 0,autoFocus:a},z,$,D);return Ge()({ourProps:O,theirProps:c,slot:S,defaultTag:cp,name:"Tabs.Tab"})}let dp="div";function fp(e,t){let{selectedIndex:n}=Hn("Tab.Panels"),r=qe(t),o=kt({selectedIndex:n}),s=e,i={ref:r};return Ge()({ourProps:i,theirProps:s,slot:o,defaultTag:dp,name:"Tabs.Panels"})}let hp="div",pp=an.RenderStrategy|an.Static;function mp(e,t){var n,r,o,s;let i=Pt(),{id:a=`headlessui-tabs-panel-${i}`,tabIndex:c=0,...u}=e,{selectedIndex:d,tabs:f,panels:h}=Hn("Tab.Panel"),m=ts("Tab.Panel"),p=se(null),g=qe(p,t);je(()=>m.registerPanel(p),[m,p]);let v=p1("panels"),b=h.indexOf(p);b===-1&&(b=v);let w=b===d,{isFocusVisible:C,focusProps:L}=Si(),k=kt({selected:w,focus:C}),E=cr({ref:g,id:a,role:"tabpanel","aria-labelledby":(r=(n=f[b])==null?void 0:n.current)==null?void 0:r.id,tabIndex:w?c:-1},L),R=Ge();return!w&&((o=u.unmount)==null||o)&&!((s=u.static)!=null&&s)?N.createElement(Vn,{"aria-hidden":"true",...E}):R({ourProps:E,theirProps:u,slot:k,defaultTag:hp,features:pp,visible:w,name:"Tabs.Panel"})}let gp=We(up),m1=We(sp),g1=We(lp),y1=We(fp),v1=We(mp),yp=Object.assign(gp,{Group:m1,List:g1,Panels:y1,Panel:v1});const To=e=>l(m1,{...e,children:e.children}),Do=({children:e,className:t})=>l(g1,{className:t,children:e}),vr=({children:e,className:t,disabled:n,onClick:r,...o})=>l(yp,{onClick:r,className:t,disabled:!!n,...o,children:e}),Po=({children:e,className:t=""})=>l(y1,{className:t,children:e}),Wn=({children:e,className:t=""})=>l(v1,{className:t,children:e});var ns={exports:{}},vp={AED:"\u062F.\u0625",AFN:"\u060B",ALL:"L",AMD:"\u058F",ANG:"\u0192",AOA:"Kz",ARS:"$",AUD:"$",AWG:"\u0192",AZN:"\u20BC",BAM:"KM",BBD:"$",BDT:"\u09F3",BGN:"\u043B\u0432",BHD:".\u062F.\u0628",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BOV:"BOV",BRL:"R$",BSD:"$",BTC:"\u20BF",BTN:"Nu.",BWP:"P",BYN:"Br",BYR:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"$",CNH:"\xA5",CNY:"\xA5",COP:"$",COU:"COU",CRC:"\u20A1",CUC:"$",CUP:"\u20B1",CVE:"$",CZK:"K\u010D",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"\u062F\u062C",EEK:"kr",EGP:"\xA3",ERN:"Nfk",ETB:"Br",ETH:"\u039E",EUR:"\u20AC",FJD:"$",FKP:"\xA3",GBP:"\xA3",GEL:"\u20BE",GGP:"\xA3",GHC:"\u20B5",GHS:"GH\u20B5",GIP:"\xA3",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"\u20AA",IMP:"\xA3",INR:"\u20B9",IQD:"\u0639.\u062F",IRR:"\uFDFC",ISK:"kr",JEP:"\xA3",JMD:"J$",JOD:"JD",JPY:"\xA5",KES:"KSh",KGS:"\u043B\u0432",KHR:"\u17DB",KMF:"CF",KPW:"\u20A9",KRW:"\u20A9",KWD:"KD",KYD:"$",KZT:"\u20B8",LAK:"\u20AD",LBP:"\xA3",LKR:"\u20A8",LRD:"$",LSL:"M",LTC:"\u0141",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"\u0434\u0435\u043D",MMK:"K",MNT:"\u20AE",MOP:"MOP$",MRO:"UM",MRU:"UM",MUR:"\u20A8",MVR:"Rf",MWK:"MK",MXN:"$",MXV:"MXV",MYR:"RM",MZN:"MT",NAD:"$",NGN:"\u20A6",NIO:"C$",NOK:"kr",NPR:"\u20A8",NZD:"$",OMR:"\uFDFC",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"\u20B1",PKR:"\u20A8",PLN:"z\u0142",PYG:"Gs",QAR:"\uFDFC",RMB:"\uFFE5",RON:"lei",RSD:"\u0414\u0438\u043D.",RUB:"\u20BD",RWF:"R\u20A3",SAR:"\uFDFC",SBD:"$",SCR:"\u20A8",SDG:"\u062C.\u0633.",SEK:"kr",SGD:"S$",SHP:"\xA3",SLL:"Le",SOS:"S",SRD:"$",SSP:"\xA3",STD:"Db",STN:"Db",SVC:"$",SYP:"\xA3",SZL:"E",THB:"\u0E3F",TJS:"SM",TMT:"T",TND:"\u062F.\u062A",TOP:"T$",TRL:"\u20A4",TRY:"\u20BA",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"\u20B4",UGX:"USh",USD:"$",UYI:"UYI",UYU:"$U",UYW:"UYW",UZS:"\u043B\u0432",VEF:"Bs",VES:"Bs.S",VND:"\u20AB",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"\u0243",XCD:"$",XOF:"CFA",XPF:"\u20A3",XSU:"Sucre",XUA:"XUA",YER:"\uFDFC",ZAR:"R",ZMW:"ZK",ZWD:"Z$",ZWL:"$"};const rs=vp;ns.exports=function(t){if(typeof t!="string")return;const n=t.toUpperCase();if(Object.prototype.hasOwnProperty.call(rs,n))return rs[n]},ns.exports.currencySymbolMap=rs;var bp=ns.exports,Cp=Ur(bp);const os={"xx-small":"px-[6px] h-[25px]","x-small":"px-[12px] h-[36px]",small:"px-[16px] h-[40px]",medium:"px-[20px] h-[52px]",large:"px-[24px] h-[60px]"},wp={small:"max-w-[518px]",medium:"max-w-[641px]",large:"max-w-[830px]",extralarge:"max-w-[940px]"},xp={small:"h-[20px] min-w-[20px] text-xs",medium:"h-[36px] min-w-[36px] text-sm"},is=(...e)=>e.filter(Boolean).join(" "),Ao=e=>{const t=e?.includes("T"),n=new Date(e),r={month:"short",day:"numeric",year:"numeric"};t&&(r.hour="numeric",r.minute="2-digit",r.hour12=!0);let o=n.toLocaleString("en",r);return t&&(o=o.replace(/ AM| PM/,s=>s.toLowerCase()),o=o.replace(/,(?=\s\d{1,2}:\d{2})/,"")),o},vt=e=>e?Ao(e.split("T")[0]):"nil",Tt=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",kp=e=>{if(!e)return{};const{address_line1:t,address_line2:n,city:r,state:o,country:s,zip_code:i}=e;return{address:[t,n,r,o,s].filter(Boolean).join(", "),zipCode:i}},b1=e=>{if(!e)return{};const{address_line_one:t,address_line_two:n,city:r,state:o,country:s,zip_code:i}=e;return{address:[t,n,r,o,s].filter(Boolean).join(", "),zipCode:i}},Kt=e=>Cp(e),Lp=(e,t)=>{if(!e)return t;const{line1:n,line2:r,city:o,state:s,country:i,zip_code:a}=e,c=[n,r,o,s,i&&Tt(i),a].filter(Boolean);return c.length>0?c.join(", "):t},Ep={body1:"font-regular text-[25px] leading-[120%]",body2:"font-regular text-[20px] leading-[120%]",body3:"font-light text-[20px] leading-[120%]",body4:"font-regular text-[16px] leading-[140%]",body5:"font-light text-[16px] leading-[120%]",body6:"font-regular text-[13px] leading-[120%]",body7:"font-light text-[13px] leading-[120%]",body8:"font-regular text-[10px] leading-[120%]",body9:"font-light text-[10px] leading-[120%]"},j=({variant:e,className:t,as:n="p",children:r,color:o})=>l(n,{className:is(Ep[e],o,t),children:r}),Mp={label1:"font-medium text-[61px] leading-[120%] block",label2:"font-medium text-[49px] leading-[120%] block",label3:"font-medium text-[39px] leading-[120%] block",label4:"font-medium text-[31px] leading-[120%] block",label5:"font-medium text-[25px] leading-[120%] block",label6:"font-medium text-[20px] leading-[120%] block",label7:"font-medium text-[16px] leading-[120%] block",label8:"font-medium text-[13px] leading-[120%] block",label9:"font-medium text-[10px] leading-[120%] block"},Z=({variant:e,className:t,as:n="span",children:r,color:o})=>l(n,{className:is(Mp[e],o,t),children:r}),Sp={h1:"font-bold text-[61px] leading-[140%]",h2:"font-bold text-[49px] leading-[140%]",h3:"font-bold text-[39px] leading-[140%]",h4:"font-bold text-[31px] leading-[140%]",h5:"font-bold text-[25px] leading-[140%]",h6:"font-bold text-[20px] leading-[140%]",h7:"font-bold text-[16px] leading-[140%]",h8:"font-bold text-[13px] leading-[140%]",h9:"font-bold text-[10px] leading-[140%]"},ss=({variant:e,className:t,as:n="h1",children:r,color:o})=>l(n,{className:is(Sp[e],o,t),children:r}),Tp=async({customerKey:e})=>{const{data:t}=await gt().get(`/sdk/customers/${e}/details`);return t},Dp=({customerKey:e})=>{const[t,n]=K(null),[r,o]=K(null),[s,i]=K(!1),a=async()=>{if(!e)return o("Missing customerKey");i(!0);try{const c=await Tp({customerKey:e});n(c?.data),o(null)}catch(c){const u=c,d=u?.response?.data?.data?.error||u?.message;o(d||"Failed to load customer details")}finally{i(!1)}};return te(()=>{a()},[e]),{customerDetails:t,error:r,isLoading:s,refetch:a}},Pp=async({customerKey:e})=>{const{data:t}=await gt().get(`/sdk/credit_systems/wallets/${e}`);return t},Ap=({customerKey:e})=>{const[t,n]=K(null),[r,o]=K(null),[s,i]=K(!1),a=async()=>{if(!e)return o("Missing customerKey");i(!0);try{const c=await Pp({customerKey:e});n(c?.data),o(null)}catch(c){const u=c,d=u?.response?.data?.data?.error||u?.message;o(d||"Failed to load customer wallet")}finally{i(!1)}};return te(()=>{a()},[e]),{customerWallets:t,error:r,isLoading:s,refetch:a}},br=mi(e=>({customerKey:"",setCustomerKey:t=>e({customerKey:t}),customerRefetch:()=>{},setCustomerRefetch:t=>e({customerRefetch:t}),plans:[],setPlans:t=>e({plans:t})}));var C1={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Jt,function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",a="minute",c="hour",u="day",d="week",f="month",h="quarter",m="year",p="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var $=["th","st","nd","rd"],M=A%100;return"["+A+($[(M-20)%10]||$[M]||$[0])+"]"}},C=function(A,$,M){var D=String(A);return!D||D.length>=$?A:""+Array($+1-D.length).join(M)+A},L={s:C,z:function(A){var $=-A.utcOffset(),M=Math.abs($),D=Math.floor(M/60),S=M%60;return($<=0?"+":"-")+C(D,2,"0")+":"+C(S,2,"0")},m:function A($,M){if($.date()<M.date())return-A(M,$);var D=12*(M.year()-$.year())+(M.month()-$.month()),S=$.clone().add(D,f),O=M-S<0,V=$.clone().add(D+(O?-1:1),f);return+(-(D+(M-S)/(O?S-V:V-S))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:f,y:m,w:d,d:u,D:p,h:c,m:a,s:i,ms:s,Q:h}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},k="en",E={};E[k]=w;var R="$isDayjsObject",P=function(A){return A instanceof Y||!(!A||!A[R])},W=function A($,M,D){var S;if(!$)return k;if(typeof $=="string"){var O=$.toLowerCase();E[O]&&(S=O),M&&(E[O]=M,S=O);var V=$.split("-");if(!S&&V.length>1)return A(V[0])}else{var U=$.name;E[U]=$,S=U}return!D&&S&&(k=S),S||!D&&k},_=function(A,$){if(P(A))return A.clone();var M=typeof $=="object"?$:{};return M.date=A,M.args=arguments,new Y(M)},B=L;B.l=W,B.i=P,B.w=function(A,$){return _(A,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var Y=function(){function A(M){this.$L=W(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[R]=!0}var $=A.prototype;return $.parse=function(M){this.$d=function(D){var S=D.date,O=D.utc;if(S===null)return new Date(NaN);if(B.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var V=S.match(v);if(V){var U=V[2]-1||0,q=(V[7]||"0").substring(0,3);return O?new Date(Date.UTC(V[1],U,V[3]||1,V[4]||0,V[5]||0,V[6]||0,q)):new Date(V[1],U,V[3]||1,V[4]||0,V[5]||0,V[6]||0,q)}}return new Date(S)}(M),this.init()},$.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},$.$utils=function(){return B},$.isValid=function(){return this.$d.toString()!==g},$.isSame=function(M,D){var S=_(M);return this.startOf(D)<=S&&S<=this.endOf(D)},$.isAfter=function(M,D){return _(M)<this.startOf(D)},$.isBefore=function(M,D){return this.endOf(D)<_(M)},$.$g=function(M,D,S){return B.u(M)?this[D]:this.set(S,M)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(M,D){var S=this,O=!!B.u(D)||D,V=B.p(M),U=function(ce,ae){var pe=B.w(S.$u?Date.UTC(S.$y,ae,ce):new Date(S.$y,ae,ce),S);return O?pe:pe.endOf(u)},q=function(ce,ae){return B.w(S.toDate()[ce].apply(S.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(ae)),S)},I=this.$W,F=this.$M,H=this.$D,ne="set"+(this.$u?"UTC":"");switch(V){case m:return O?U(1,0):U(31,11);case f:return O?U(1,F):U(0,F+1);case d:var ie=this.$locale().weekStart||0,X=(I<ie?I+7:I)-ie;return U(O?H-X:H+(6-X),F);case u:case p:return q(ne+"Hours",0);case c:return q(ne+"Minutes",1);case a:return q(ne+"Seconds",2);case i:return q(ne+"Milliseconds",3);default:return this.clone()}},$.endOf=function(M){return this.startOf(M,!1)},$.$set=function(M,D){var S,O=B.p(M),V="set"+(this.$u?"UTC":""),U=(S={},S[u]=V+"Date",S[p]=V+"Date",S[f]=V+"Month",S[m]=V+"FullYear",S[c]=V+"Hours",S[a]=V+"Minutes",S[i]=V+"Seconds",S[s]=V+"Milliseconds",S)[O],q=O===u?this.$D+(D-this.$W):D;if(O===f||O===m){var I=this.clone().set(p,1);I.$d[U](q),I.init(),this.$d=I.set(p,Math.min(this.$D,I.daysInMonth())).$d}else U&&this.$d[U](q);return this.init(),this},$.set=function(M,D){return this.clone().$set(M,D)},$.get=function(M){return this[B.p(M)]()},$.add=function(M,D){var S,O=this;M=Number(M);var V=B.p(D),U=function(F){var H=_(O);return B.w(H.date(H.date()+Math.round(F*M)),O)};if(V===f)return this.set(f,this.$M+M);if(V===m)return this.set(m,this.$y+M);if(V===u)return U(1);if(V===d)return U(7);var q=(S={},S[a]=r,S[c]=o,S[i]=n,S)[V]||1,I=this.$d.getTime()+M*q;return B.w(I,this)},$.subtract=function(M,D){return this.add(-1*M,D)},$.format=function(M){var D=this,S=this.$locale();if(!this.isValid())return S.invalidDate||g;var O=M||"YYYY-MM-DDTHH:mm:ssZ",V=B.z(this),U=this.$H,q=this.$m,I=this.$M,F=S.weekdays,H=S.months,ne=S.meridiem,ie=function(ae,pe,ee,J){return ae&&(ae[pe]||ae(D,O))||ee[pe].slice(0,J)},X=function(ae){return B.s(U%12||12,ae,"0")},ce=ne||function(ae,pe,ee){var J=ae<12?"AM":"PM";return ee?J.toLowerCase():J};return O.replace(b,function(ae,pe){return pe||function(ee){switch(ee){case"YY":return String(D.$y).slice(-2);case"YYYY":return B.s(D.$y,4,"0");case"M":return I+1;case"MM":return B.s(I+1,2,"0");case"MMM":return ie(S.monthsShort,I,H,3);case"MMMM":return ie(H,I);case"D":return D.$D;case"DD":return B.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return ie(S.weekdaysMin,D.$W,F,2);case"ddd":return ie(S.weekdaysShort,D.$W,F,3);case"dddd":return F[D.$W];case"H":return String(U);case"HH":return B.s(U,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return ce(U,q,!0);case"A":return ce(U,q,!1);case"m":return String(q);case"mm":return B.s(q,2,"0");case"s":return String(D.$s);case"ss":return B.s(D.$s,2,"0");case"SSS":return B.s(D.$ms,3,"0");case"Z":return V}return null}(ae)||V.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(M,D,S){var O,V=this,U=B.p(D),q=_(M),I=(q.utcOffset()-this.utcOffset())*r,F=this-q,H=function(){return B.m(V,q)};switch(U){case m:O=H()/12;break;case f:O=H();break;case h:O=H()/3;break;case d:O=(F-I)/6048e5;break;case u:O=(F-I)/864e5;break;case c:O=F/o;break;case a:O=F/r;break;case i:O=F/n;break;default:O=F}return S?O:B.a(O)},$.daysInMonth=function(){return this.endOf(f).$D},$.$locale=function(){return E[this.$L]},$.locale=function(M,D){if(!M)return this.$L;var S=this.clone(),O=W(M,D,!0);return O&&(S.$L=O),S},$.clone=function(){return B.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},A}(),z=Y.prototype;return _.prototype=z,[["$ms",s],["$s",i],["$m",a],["$H",c],["$W",u],["$M",f],["$y",m],["$D",p]].forEach(function(A){z[A[1]]=function($){return this.$g($,A[0],A[1])}}),_.extend=function(A,$){return A.$i||(A($,Y,_),A.$i=!0),_},_.locale=W,_.isDayjs=P,_.unix=function(A){return _(1e3*A)},_.en=E[k],_.Ls=E,_.p={},_})})(C1);var Np=C1.exports,w1=Ur(Np);const Rp={amber:{50:"#FFF6E5",100:"#FFEDCC",500:"#FFA500",800:"#664200"},neutral:{100:"#F5F5F5",200:"#E5E5E5",400:"#A3A3A3",500:"#737373",800:"#262626",900:"#171717"},grey:{50:"#FAFAFA",100:"#F4F4F5",200:"#E4E4E7",300:"#D4D4D8",400:"#A1A1AA",500:"#71717A",600:"#52525B",700:"#3F3F46",800:"#27272A",900:"#18181B"},slate:{800:"#1E293B"},base:{danger:"#F31260",default:{600:"#52525B"}},cool:{orange:{50:"#FEF1EB",100:"#FCDFD7"}},bright:{orange:{50:"#FDEFEB"}},red:{100:"#FFE5E5",500:"#E60000",600:"#CF2140",900:"#2C030B"},pink:{100:"#FFE5F5",500:"#FF55C0",600:"#EC4899"},purple:{100:"#F0EEFE",500:"#705BFA"},green:{100:"#E9FFD4",200:"#E6F7EA",500:"#6FE200",600:"#0BB02F"},orange:{50:"#FFF6E5",100:"#FFEFD6",400:"#FFB733",500:"#FF9D00"},blue:{50:"#E5F2FF",500:"#007BFF"},metrifox:{primary:"#3D3D3D",secondary:"#DEF764",blue:"#006FEE",black:"#0F0F0F",success:"#17C964",white:"#FFFFFF",dark:"#191919",danger:"#DE1135",warning:"#F5A524"},foreground:{primary:"#0F172A",secondary:"#78716C",disabled:"#A8A29E"},stroke:{system:{primary:"#E7E5E4"}},background:{system:{primary:"#FFFFFF",disabled:"#E7E5E4",secondary:"#E8E9EE",light:"#FFFDFB"}},secondary:{light:"#FFFDFB"},rose:{50:"#FFF1F2"},lime:{50:"#F7FEE7",100:"#EDFF96",500:"#9DBD00",600:"#65A30D"},cyan:{500:"#06B6D4"}},Fp={colors:Rp},Vp=Fp.colors,$p=e=>{if(/^#([0-9A-Fa-f]{3}){1,2}$/.test(e))return e;const t=e.split("-");let n=Vp;for(const r of t)if(n&&typeof n=="object"&&r in n)n=n[r];else return;return typeof n=="string"?n:void 0},_p={"danger-filled":l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:l("path",{d:"M21.76 15.92 15.36 4.4C14.5 2.85 13.31 2 12 2s-2.5.85-3.36 2.4l-6.4 11.52c-.81 1.47-.9 2.88-.25 3.99.65 1.11 1.93 1.72 3.61 1.72h12.8c1.68 0 2.96-.61 3.61-1.72.65-1.11.56-2.53-.25-3.99ZM11.25 9c0-.41.34-.75.75-.75s.75.34.75.75v5c0 .41-.34.75-.75.75s-.75-.34-.75-.75V9Zm1.46 8.71-.15.12c-.06.04-.12.07-.18.09-.06.03-.12.05-.19.06-.06.01-.13.02-.19.02s-.13-.01-.2-.02a.636.636 0 0 1-.18-.06.757.757 0 0 1-.18-.09l-.15-.12c-.18-.19-.29-.45-.29-.71 0-.26.11-.52.29-.71l.15-.12c.06-.04.12-.07.18-.09.06-.03.12-.05.18-.06.13-.03.27-.03.39 0 .07.01.13.03.19.06.06.02.12.05.18.09l.15.12c.18.19.29.45.29.71 0 .26-.11.52-.29.71Z"})}),"eye-slash-filled":y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M21.271 9.178c-.29-.46-.6-.89-.92-1.29a1 1 0 0 0-1.49-.09l-3 3c.22.66.26 1.42.06 2.21a4.021 4.021 0 0 1-2.9 2.9c-.79.2-1.55.16-2.21-.06l-2.46 2.46c-.5.5-.34 1.38.33 1.64 1.07.41 2.18.62 3.32.62 1.78 0 3.51-.52 5.09-1.49 1.61-1 3.06-2.47 4.23-4.34.95-1.51.9-4.05-.05-5.56ZM14.02 9.98l-4.04 4.04c-.51-.52-.84-1.24-.84-2.02 0-1.57 1.28-2.86 2.86-2.86.78 0 1.5.33 2.02.84Z"}),l("path",{d:"m18.25 5.75-3.39 3.39A3.986 3.986 0 0 0 12 7.96c-2.24 0-4.04 1.81-4.04 4.04 0 1.12.45 2.13 1.18 2.86l-3.38 3.39h-.01c-1.11-.9-2.13-2.05-3-3.41-1-1.57-1-4.12 0-5.69C3.91 7.33 5.33 5.9 6.91 4.92c1.58-.96 3.31-1.49 5.09-1.49 2.23 0 4.39.82 6.25 2.32ZM14.858 11.998c0 1.57-1.28 2.86-2.86 2.86-.06 0-.11 0-.17-.02l3.01-3.01c.02.06.02.11.02.17Z"}),l("path",{d:"M21.769 2.229c-.3-.3-.79-.3-1.09 0l-18.45 18.46c-.3.3-.3.79 0 1.09a.758.758 0 0 0 1.08-.01l18.46-18.46c.31-.3.31-.78 0-1.08Z"})]}),"eye-filled":y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M21.25 9.15C18.94 5.52 15.56 3.43 12 3.43c-1.78 0-3.51.52-5.09 1.49-1.58.98-3 2.41-4.16 4.23-1 1.57-1 4.12 0 5.69 2.31 3.64 5.69 5.72 9.25 5.72 1.78 0 3.51-.52 5.09-1.49 1.58-.98 3-2.41 4.16-4.23 1-1.56 1-4.12 0-5.69ZM12 16.04c-2.24 0-4.04-1.81-4.04-4.04S9.76 7.96 12 7.96s4.04 1.81 4.04 4.04-1.8 4.04-4.04 4.04Z"}),l("path",{d:"M11.998 9.14a2.855 2.855 0 0 0 0 5.71c1.57 0 2.86-1.28 2.86-2.85s-1.29-2.86-2.86-2.86Z"})]}),"check-circle-filled":l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:l("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2Zm4.78 7.7-5.67 5.67a.75.75 0 0 1-1.06 0l-2.83-2.83a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l2.3 2.3 5.14-5.14c.29-.29.77-.29 1.06 0 .29.29.29.76 0 1.06Z"})}),check:l("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M10 3L4.5 8.5L2 6",stroke:"#currentColor",strokeWidth:"1.6666",strokeLinecap:"round",strokeLinejoin:"round"})}),home:y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M12 18.75c-.41 0-.75-.34-.75-.75v-3c0-.41.34-.75.75-.75s.75.34.75.75v3c0 .41-.34.75-.75.75Z"}),l("path",{d:"M17.6 22.56H6.4c-1.82 0-3.48-1.4-3.78-3.19L1.29 11.4c-.22-1.24.39-2.83 1.38-3.62L9.6 2.23c1.34-1.08 3.45-1.07 4.8.01l6.93 5.54c.98.79 1.58 2.38 1.38 3.62l-1.33 7.96c-.3 1.77-2 3.2-3.78 3.2ZM11.99 2.93c-.53 0-1.06.16-1.45.47L3.61 8.96c-.56.45-.96 1.49-.84 2.2l1.33 7.96c.18 1.05 1.23 1.94 2.3 1.94h11.2c1.07 0 2.12-.89 2.3-1.95l1.33-7.96c.11-.7-.29-1.76-.84-2.2l-6.93-5.54c-.4-.32-.94-.48-1.47-.48Z"})]}),task:y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M17.62 9.621h-5.25c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h5.25a.749.749 0 1 1 0 1.5ZM7.12 10.38c-.19 0-.38-.07-.53-.22l-.75-.75a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l.22.22 1.72-1.72c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06l-2.25 2.25a.75.75 0 0 1-.53.22ZM17.62 16.621h-5.25c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h5.25a.749.749 0 1 1 0 1.5ZM7.12 17.38c-.19 0-.38-.07-.53-.22l-.75-.75a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l.22.22 1.72-1.72c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06l-2.25 2.25a.75.75 0 0 1-.53.22Z"}),l("path",{d:"M15 22.75H9c-5.43 0-7.75-2.32-7.75-7.75V9c0-5.43 2.32-7.75 7.75-7.75h6c5.43 0 7.75 2.32 7.75 7.75v6c0 5.43-2.32 7.75-7.75 7.75Zm-6-20C4.39 2.75 2.75 4.39 2.75 9v6c0 4.61 1.64 6.25 6.25 6.25h6c4.61 0 6.25-1.64 6.25-6.25V9c0-4.61-1.64-6.25-6.25-6.25H9Z"})]}),money:y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M17 21.25H7c-3.65 0-5.75-2.1-5.75-5.75v-7c0-3.65 2.1-5.75 5.75-5.75h10c3.65 0 5.75 2.1 5.75 5.75v7c0 3.65-2.1 5.75-5.75 5.75Zm-10-17c-2.86 0-4.25 1.39-4.25 4.25v7c0 2.86 1.39 4.25 4.25 4.25h10c2.86 0 4.25-1.39 4.25-4.25v-7c0-2.86-1.39-4.25-4.25-4.25H7Z"}),l("path",{d:"M12 15.75c-2.07 0-3.75-1.68-3.75-3.75 0-2.07 1.68-3.75 3.75-3.75 2.07 0 3.75 1.68 3.75 3.75 0 2.07-1.68 3.75-3.75 3.75Zm0-6c-1.24 0-2.25 1.01-2.25 2.25s1.01 2.25 2.25 2.25 2.25-1.01 2.25-2.25S13.24 9.75 12 9.75ZM5.5 15.25c-.41 0-.75-.34-.75-.75v-5c0-.41.34-.75.75-.75s.75.34.75.75v5c0 .41-.34.75-.75.75ZM18.5 15.25c-.41 0-.75-.34-.75-.75v-5c0-.41.34-.75.75-.75s.75.34.75.75v5c0 .41-.34.75-.75.75Z"})]}),people:l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:l("path",{d:"M18 7.912h-.13c-1.89-.06-3.3-1.52-3.3-3.32 0-1.84 1.5-3.33 3.33-3.33s3.33 1.5 3.33 3.33a3.327 3.327 0 0 1-3.22 3.33c0-.01 0-.01-.01-.01Zm-.1-5.16c-1.01 0-1.83.82-1.83 1.83 0 .99.77 1.79 1.76 1.83.01-.01.09-.01.18 0a1.832 1.832 0 0 0-.11-3.66ZM18.009 15.28c-.39 0-.78-.03-1.17-.1a.75.75 0 0 1-.61-.87.75.75 0 0 1 .87-.61c1.23.21 2.53-.02 3.4-.6.47-.31.72-.7.72-1.09 0-.39-.26-.77-.72-1.08-.87-.58-2.19-.81-3.43-.59-.41.08-.8-.2-.87-.61-.07-.41.2-.8.61-.87 1.63-.29 3.32.02 4.52.82.88.59 1.39 1.43 1.39 2.33 0 .89-.5 1.74-1.39 2.34-.91.6-2.09.93-3.32.93ZM5.97 7.91h-.02a3.324 3.324 0 0 1-3.22-3.32c0-1.84 1.5-3.34 3.33-3.34s3.33 1.5 3.33 3.33c0 1.81-1.41 3.27-3.21 3.33l-.21-.75.07.75h-.07Zm.1-1.5c.06 0 .11 0 .17.01.89-.04 1.67-.84 1.67-1.83a1.83 1.83 0 1 0-1.93 1.83c.01-.01.05-.01.09-.01ZM5.96 15.28c-1.23 0-2.41-.33-3.32-.93-.88-.59-1.39-1.44-1.39-2.34 0-.89.51-1.74 1.39-2.33 1.2-.8 2.89-1.11 4.52-.82.41.07.68.46.61.87-.07.41-.46.69-.87.61-1.24-.22-2.55.01-3.43.59-.47.31-.72.69-.72 1.08 0 .39.26.78.72 1.09.87.58 2.17.81 3.4.6.41-.07.8.21.87.61.07.41-.2.8-.61.87-.39.07-.78.1-1.17.1ZM12 15.38h-.13c-1.89-.06-3.3-1.52-3.3-3.32 0-1.84 1.5-3.33 3.33-3.33s3.33 1.5 3.33 3.33a3.327 3.327 0 0 1-3.22 3.33c0-.01 0-.01-.01-.01Zm-.1-5.16c-1.01 0-1.83.82-1.83 1.83 0 .99.77 1.79 1.76 1.83.01-.01.09-.01.18 0 .97-.05 1.72-.85 1.73-1.83 0-1-.82-1.83-1.84-1.83ZM12.001 22.759c-1.2 0-2.4-.31-3.33-.94-.88-.59-1.39-1.43-1.39-2.33 0-.89.5-1.75 1.39-2.34 1.87-1.24 4.8-1.24 6.66 0 .88.59 1.39 1.43 1.39 2.33 0 .89-.5 1.75-1.39 2.34-.93.62-2.13.94-3.33.94Zm-2.5-4.35c-.47.31-.72.7-.72 1.09 0 .39.26.77.72 1.08 1.35.91 3.64.91 4.99 0 .47-.31.72-.7.72-1.09 0-.39-.26-.77-.72-1.08-1.34-.91-3.63-.9-4.99 0Z"})}),bill:y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M12 22.252c-.82 0-1.64-.26-2.32-.77l-5.21-3.9a3.903 3.903 0 0 1-1.55-3.1V1.762h18.16v12.72c0 1.21-.58 2.37-1.55 3.1l-5.21 3.9c-.68.51-1.5.77-2.32.77Zm-7.58-19v11.22c0 .74.36 1.45.95 1.9l5.21 3.9c.84.63 2.01.63 2.85 0l5.21-3.9c.59-.45.95-1.16.95-1.9V3.252H4.42Z"}),l("path",{d:"M22 3.25H2c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h20c.41 0 .75.34.75.75s-.34.75-.75.75ZM16 8.75H8c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h8c.41 0 .75.34.75.75s-.34.75-.75.75ZM16 13.75H8c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h8c.41 0 .75.34.75.75s-.34.75-.75.75Z"})]}),"category-2":l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:l("path",{d:"M19 10.75h-2c-2.42 0-3.75-1.33-3.75-3.75V5c0-2.42 1.33-3.75 3.75-3.75h2c2.42 0 3.75 1.33 3.75 3.75v2c0 2.42-1.33 3.75-3.75 3.75Zm-2-8c-1.58 0-2.25.67-2.25 2.25v2c0 1.58.67 2.25 2.25 2.25h2c1.58 0 2.25-.67 2.25-2.25V5c0-1.58-.67-2.25-2.25-2.25h-2ZM7 22.75H5c-2.42 0-3.75-1.33-3.75-3.75v-2c0-2.42 1.33-3.75 3.75-3.75h2c2.42 0 3.75 1.33 3.75 3.75v2c0 2.42-1.33 3.75-3.75 3.75Zm-2-8c-1.58 0-2.25.67-2.25 2.25v2c0 1.58.67 2.25 2.25 2.25h2c1.58 0 2.25-.67 2.25-2.25v-2c0-1.58-.67-2.25-2.25-2.25H5ZM6 10.75c-2.62 0-4.75-2.13-4.75-4.75S3.38 1.25 6 1.25 10.75 3.38 10.75 6 8.62 10.75 6 10.75Zm0-8C4.21 2.75 2.75 4.21 2.75 6S4.21 9.25 6 9.25 9.25 7.79 9.25 6 7.79 2.75 6 2.75ZM18 22.75c-2.62 0-4.75-2.13-4.75-4.75s2.13-4.75 4.75-4.75 4.75 2.13 4.75 4.75-2.13 4.75-4.75 4.75Zm0-8c-1.79 0-3.25 1.46-3.25 3.25s1.46 3.25 3.25 3.25 3.25-1.46 3.25-3.25-1.46-3.25-3.25-3.25Z"})}),"money-add":y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M12 15.25c-1.79 0-3.25-1.46-3.25-3.25S10.21 8.75 12 8.75s3.25 1.46 3.25 3.25-1.46 3.25-3.25 3.25Zm0-5c-.96 0-1.75.79-1.75 1.75s.79 1.75 1.75 1.75 1.75-.79 1.75-1.75-.79-1.75-1.75-1.75ZM18.5 15.25c-.41 0-.75-.34-.75-.75v-5c0-.41.34-.75.75-.75s.75.34.75.75v5c0 .41-.34.75-.75.75ZM5 22.75c-1.66 0-3.22-.88-4.06-2.31C.49 19.72.25 18.87.25 18c0-2.62 2.13-4.75 4.75-4.75S9.75 15.38 9.75 18c0 .87-.24 1.72-.69 2.45-.84 1.42-2.4 2.3-4.06 2.3Zm0-8c-1.79 0-3.25 1.46-3.25 3.25 0 .59.16 1.17.47 1.67.58.98 1.65 1.58 2.78 1.58A3.256 3.256 0 0 0 8.25 18c0-1.79-1.46-3.25-3.25-3.25Z"}),l("path",{d:"M6.498 18.73h-2.99c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h2.99c.41 0 .75.34.75.75s-.34.75-.75.75Z"}),l("path",{d:"M5 20.26c-.41 0-.75-.34-.75-.75v-2.99c0-.41.34-.75.75-.75s.75.34.75.75v2.99c0 .42-.34.75-.75.75Z"}),l("path",{d:"M17 20.75H8.5c-.41 0-.75-.34-.75-.75s.34-.75.75-.75H17c2.86 0 4.25-1.39 4.25-4.25V9c0-2.86-1.39-4.25-4.25-4.25H7C4.14 4.75 2.75 6.14 2.75 9v6.3c0 .41-.34.75-.75.75s-.75-.34-.75-.75V9c0-3.65 2.1-5.75 5.75-5.75h10c3.65 0 5.75 2.1 5.75 5.75v6c0 3.65-2.1 5.75-5.75 5.75Z"})]}),"money-time":y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M12 15.25c-1.79 0-3.25-1.46-3.25-3.25S10.21 8.75 12 8.75s3.25 1.46 3.25 3.25-1.46 3.25-3.25 3.25Zm0-5c-.96 0-1.75.79-1.75 1.75s.79 1.75 1.75 1.75 1.75-.79 1.75-1.75-.79-1.75-1.75-1.75ZM18.5 15.25c-.41 0-.75-.34-.75-.75v-5c0-.41.34-.75.75-.75s.75.34.75.75v5c0 .41-.34.75-.75.75ZM5 22.75C2.38 22.75.25 20.62.25 18S2.38 13.25 5 13.25 9.75 15.38 9.75 18 7.62 22.75 5 22.75Zm0-8c-1.79 0-3.25 1.46-3.25 3.25S3.21 21.25 5 21.25 8.25 19.79 8.25 18 6.79 14.75 5 14.75Z"}),l("path",{d:"M4 19.752c-.25 0-.5-.13-.64-.36-.21-.35-.1-.82.26-1.03l.76-.46c.07-.04.12-.13.12-.21v-.93c0-.41.34-.75.75-.75s.75.34.75.75v.93c0 .61-.33 1.19-.85 1.5l-.76.46c-.12.07-.26.1-.39.1Z"}),l("path",{d:"M17 20.75H8.5c-.41 0-.75-.34-.75-.75s.34-.75.75-.75H17c2.86 0 4.25-1.39 4.25-4.25V9c0-2.86-1.39-4.25-4.25-4.25H7C4.14 4.75 2.75 6.14 2.75 9v6.2c0 .41-.34.75-.75.75s-.75-.34-.75-.75V9c0-3.65 2.1-5.75 5.75-5.75h10c3.65 0 5.75 2.1 5.75 5.75v6c0 3.65-2.1 5.75-5.75 5.75Z"})]}),"arrow-down":l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:l("path",{d:"M17.919 8.18H6.079c-.96 0-1.44 1.16-.76 1.84l5.18 5.18c.83.83 2.18.83 3.01 0l1.97-1.97 3.21-3.21c.67-.68.19-1.84-.77-1.84z"})}),"arrow-down-linear":l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",children:l("path",{stroke:"#currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.5",d:"M19.92 8.95l-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95"})}),"arrow-right":y("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M12.525 5.44167L17.5833 10.5L12.525 15.5583",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M3.41666 10.5H17.4417",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),"code-circle":y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M8 14.751c-.19 0-.38-.07-.53-.22l-2-2a.755.755 0 0 1 0-1.06l2-2c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06l-1.47 1.47 1.47 1.47c.29.29.29.77 0 1.06-.15.15-.34.22-.53.22ZM16 14.751c-.19 0-.38-.07-.53-.22a.755.755 0 0 1 0-1.06l1.47-1.47-1.47-1.47a.755.755 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l2 2c.29.29.29.77 0 1.06l-2 2c-.15.15-.34.22-.53.22Z"}),l("path",{d:"M12 22.75C6.07 22.75 1.25 17.93 1.25 12S6.07 1.25 12 1.25 22.75 6.07 22.75 12 17.93 22.75 12 22.75Zm0-20C6.9 2.75 2.75 6.9 2.75 12S6.9 21.25 12 21.25s9.25-4.15 9.25-9.25S17.1 2.75 12 2.75Z"}),l("path",{d:"M11 15.08a.745.745 0 0 1-.68-1.05l2-4.67c.16-.38.6-.56.98-.39.38.16.56.6.39.99l-2 4.67c-.12.28-.4.45-.69.45Z"})]}),"note-2":y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M15.808 20.179c-.26 0-.53-.01-.82-.04-.52-.04-1.11-.14-1.72-.29l-1.68-.4c-4.61-1.09-6.12-3.53-5.04-8.13l.98-4.19c.22-.95.48-1.72.8-2.36 1.72-3.55 5.01-3.23 7.35-2.68l1.67.39c2.34.55 3.82 1.42 4.65 2.75.82 1.33.95 3.04.4 5.38l-.98 4.18c-.86 3.66-2.65 5.39-5.61 5.39Zm-2.69-16.93c-1.67 0-2.73.69-3.44 2.17-.26.54-.49 1.21-.69 2.05l-.98 4.19c-.89 3.78.14 5.43 3.92 6.33l1.68.4c.54.13 1.05.21 1.51.25 2.72.27 4.07-.92 4.83-4.19l.98-4.18c.45-1.93.39-3.28-.21-4.25-.6-.97-1.78-1.63-3.72-2.08l-1.67-.39c-.83-.2-1.57-.3-2.21-.3Z"}),l("path",{d:"M8.33 22.252c-2.57 0-4.21-1.54-5.26-4.79l-1.28-3.95c-1.42-4.4-.15-6.88 4.23-8.3l1.58-.51c.52-.16.91-.27 1.26-.33.29-.06.57.05.74.28.17.23.2.53.08.79-.26.53-.49 1.2-.68 2.04l-.98 4.19c-.89 3.78.14 5.43 3.92 6.33l1.68.4c.54.13 1.05.21 1.51.25.32.03.58.25.67.56.08.31-.04.63-.3.81-.66.45-1.49.83-2.54 1.17l-1.58.52c-1.15.36-2.15.54-3.05.54Zm-.55-16.03-1.29.42c-3.57 1.15-4.42 2.83-3.27 6.41l1.28 3.95c1.16 3.57 2.84 4.43 6.41 3.28l1.58-.52c.06-.02.11-.04.17-.06l-1.06-.25c-4.61-1.09-6.12-3.53-5.04-8.13l.98-4.19c.07-.32.15-.63.24-.91ZM17.49 10.512c-.06 0-.12-.01-.19-.02l-4.85-1.23a.75.75 0 0 1 .37-1.45l4.85 1.23a.748.748 0 0 1-.18 1.47Z"}),l("path",{d:"M14.561 13.889c-.06 0-.12-.01-.19-.02l-2.91-.74a.75.75 0 0 1 .37-1.45l2.91.74c.4.1.64.51.54.91-.08.34-.38.56-.72.56Z"})]}),"note-add-bulk":y("svg",{width:"73",height:"72",viewBox:"0 0 73 72",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{opacity:"0.4",d:"M22.61 66H50.36C58.43 66 64.97 59.46 64.97 51.39V25.11C64.97 17.04 58.43 10.5 50.36 10.5H22.61C14.54 10.5 8 17.04 8 25.11V51.36C8 59.46 14.54 66 22.61 66Z",fill:"#currentColor"}),l("path",{d:"M25.3672 18.87C24.1072 18.87 23.1172 17.85 23.1172 16.62V8.25C23.1172 7.02 24.1072 6 25.3672 6C26.6272 6 27.6172 7.02 27.6172 8.25V16.59C27.6172 17.85 26.6272 18.87 25.3672 18.87Z",fill:"#currentColor"}),l("path",{d:"M47.6328 18.87C46.3728 18.87 45.3828 17.85 45.3828 16.62V8.25C45.3828 6.99 46.4028 6 47.6328 6C48.8928 6 49.8828 7.02 49.8828 8.25V16.59C49.8828 17.85 48.8928 18.87 47.6328 18.87Z",fill:"#currenColor"}),l("path",{d:"M36.5 44.25H31.43V39C31.43 37.77 30.41 36.75 29.18 36.75C27.95 36.75 26.93 37.77 26.93 39V44.25H21.5C20.27 44.25 19.25 45.27 19.25 46.5C19.25 47.73 20.27 48.75 21.5 48.75H26.93V54C26.93 55.23 27.95 56.25 29.18 56.25C30.41 56.25 31.43 55.23 31.43 54V48.75H36.5C37.73 48.75 38.75 47.73 38.75 46.5C38.75 45.27 37.73 44.25 36.5 44.25Z",fill:"#currentColor"})]}),gift:y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M15.969 22.75h-8c-3.42 0-4.75-1.33-4.75-4.75v-8c0-.41.34-.75.75-.75h16c.41 0 .75.34.75.75v8c0 3.42-1.33 4.75-4.75 4.75Zm-11.25-12V18c0 2.58.67 3.25 3.25 3.25h8c2.58 0 3.25-.67 3.25-3.25v-7.25h-14.5Z"}),l("path",{d:"M19.5 10.75h-15c-1.75 0-2.75-1-2.75-2.75V7c0-1.75 1-2.75 2.75-2.75h15c1.7 0 2.75 1.05 2.75 2.75v1c0 1.7-1.05 2.75-2.75 2.75Zm-15-5c-.91 0-1.25.34-1.25 1.25v1c0 .91.34 1.25 1.25 1.25h15c.88 0 1.25-.37 1.25-1.25V7c0-.88-.37-1.25-1.25-1.25h-15Z"}),l("path",{d:"M11.64 5.749H6.12c-.21 0-.41-.09-.55-.24-.61-.67-.59-1.7.05-2.34l1.42-1.42c.66-.66 1.75-.66 2.41 0l2.72 2.72c.21.21.28.54.16.82-.11.28-.38.46-.69.46Zm-4.97-1.5h3.17l-1.45-1.44a.205.205 0 0 0-.29 0l-1.42 1.42c0 .01-.01.01-.01.02Z"}),l("path",{d:"M17.87 5.749h-5.52a.74.74 0 0 1-.69-.46c-.12-.28-.05-.6.16-.82l2.72-2.72c.66-.66 1.75-.66 2.41 0l1.42 1.42c.64.64.67 1.67.05 2.34-.14.15-.34.24-.55.24Zm-3.7-1.5h3.17l-.02-.02-1.42-1.42a.205.205 0 0 0-.29 0l-1.44 1.44ZM9.941 16.9a1.752 1.752 0 0 1-1.75-1.75V10c0-.41.34-.75.75-.75h6.04c.41 0 .75.34.75.75v5.13c0 .65-.35 1.24-.92 1.54-.57.31-1.26.27-1.8-.09l-.89-.6a.24.24 0 0 0-.28 0l-.94.62c-.29.2-.63.3-.96.3Zm-.25-6.15v4.39c0 .13.08.19.13.22s.15.06.26-.01l.94-.62c.59-.39 1.35-.39 1.93 0l.89.6c.11.07.21.04.26.01.05-.03.13-.09.13-.22v-4.38h-4.54v.01Z"})]}),"notification-bell":y("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M16.5455 4.27274C16.5455 5.62835 15.4466 6.72728 14.091 6.72728C12.7353 6.72728 11.6364 5.62835 11.6364 4.27274C11.6364 2.91713 12.7353 1.81819 14.091 1.81819C15.4466 1.81819 16.5455 2.91713 16.5455 4.27274Z"}),l("path",{d:"M10.3355 2.64766C10.2247 2.64017 10.1128 2.63637 10 2.63637C7.28883 2.63637 5.09095 4.83425 5.09095 7.54546V10.964C5.09095 11.4024 4.96118 11.831 4.71799 12.1958L3.592 13.8848C3.5024 14.0192 3.45459 14.1771 3.45459 14.3386V14.9091H16.5455V14.3386C16.5455 14.1771 16.4977 14.0192 16.4081 13.8848L15.2821 12.1958C15.0389 11.831 14.9091 11.4024 14.9091 10.964V8.28181C14.6448 8.33548 14.3712 8.36365 14.091 8.36365C11.8316 8.36365 10 6.53208 10 4.27274C10 3.69529 10.1197 3.14578 10.3355 2.64766Z"}),l("path",{d:"M10 17.7727C10.9038 17.7727 11.6364 17.0401 11.6364 16.1364H8.36368C8.36368 17.0401 9.09631 17.7727 10 17.7727Z"})]}),"book-saved":l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:l("path",{d:"M11.25 5.998v13.91c0 .71-.72 1.2-1.37.93-1.86-.78-4.17-1.46-5.81-1.68l-.31-.04c-.97-.12-1.76-1.01-1.76-1.98V5.248c0-1.2.97-2.17 2.17-2.17h.07c1.88.16 4.65 1.04 6.48 2.03a1 1 0 0 1 .53.89ZM19.83 3.078h-.06c-.24.02-.5.05-.77.1-1.23.2-2.69.62-4 1.14-.62.25-1.2.52-1.71.79-.33.18-.54.52-.54.89v13.91c0 .71.72 1.2 1.37.93 1.86-.78 4.17-1.46 5.81-1.68l.31-.04c.97-.12 1.76-1.01 1.76-1.98V5.248c0-1.2-.97-2.17-2.17-2.17Zm-.56 10.65c0 .39-.28.56-.62.37l-1.06-.59a.49.49 0 0 0-.41 0l-1.06.59c-.34.19-.62.02-.62-.37v-3.07c0-.46.38-.84.84-.84h2.1c.46 0 .84.38.84.84v3.07h-.01Z"})}),"message-question":l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:l("path",{d:"M17 2.43H7c-3 0-5 2-5 5v6c0 3 2 5 5 5v2.13c0 .8.89 1.28 1.55.83L13 18.43h4c3 0 5-2 5-5v-6c0-3-2-5-5-5ZM12 14.6a.749.749 0 1 1 0-1.5.749.749 0 1 1 0 1.5Zm1.26-4.15c-.39.26-.51.43-.51.71v.21c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-.21c0-1.16.85-1.73 1.17-1.95.37-.25.49-.42.49-.68 0-.5-.41-.91-.91-.91s-.91.41-.91.91c0 .41-.34.75-.75.75s-.75-.34-.75-.75c0-1.33 1.08-2.41 2.41-2.41s2.41 1.08 2.41 2.41c0 1.14-.84 1.71-1.15 1.92Z"})}),"circle-close":y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M12 22.75C6.07 22.75 1.25 17.93 1.25 12S6.07 1.25 12 1.25 22.75 6.07 22.75 12 17.93 22.75 12 22.75Zm0-20C6.9 2.75 2.75 6.9 2.75 12S6.9 21.25 12 21.25s9.25-4.15 9.25-9.25S17.1 2.75 12 2.75Z"}),l("path",{d:"M9.17 15.58c-.19 0-.38-.07-.53-.22a.754.754 0 0 1 0-1.06l5.66-5.66c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06L9.7 15.36c-.14.15-.34.22-.53.22Z"}),l("path",{d:"M14.83 15.58c-.19 0-.38-.07-.53-.22L8.64 9.7a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l5.66 5.66c.29.29.29.77 0 1.06-.15.15-.34.22-.53.22Z"})]}),"circle-close-filled":l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:l("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2Zm3.36 12.3c.29.29.29.77 0 1.06-.15.15-.34.22-.53.22s-.38-.07-.53-.22l-2.3-2.3-2.3 2.3c-.15.15-.34.22-.53.22s-.38-.07-.53-.22a.754.754 0 0 1 0-1.06l2.3-2.3-2.3-2.3a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l2.3 2.3 2.3-2.3c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06l-2.3 2.3 2.3 2.3Z"})}),add:y("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M4.5 8H12.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M8.5 12V4",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),search:l("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:l("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.1821 12.2458C10.1658 13.0361 8.88866 13.5067 7.50167 13.5067C4.18704 13.5067 1.5 10.8189 1.5 7.50335C1.5 4.18779 4.18704 1.5 7.50167 1.5C10.8163 1.5 13.5033 4.18779 13.5033 7.50335C13.5033 8.89059 13.033 10.1679 12.243 11.1845L15.2799 14.2186C15.5731 14.5115 15.5734 14.9867 15.2806 15.2799C14.9878 15.5731 14.5128 15.5734 14.2196 15.2805L11.1821 12.2458ZM12.0029 7.50335C12.0029 9.99002 9.98765 12.0059 7.50167 12.0059C5.0157 12.0059 3.00042 9.99002 3.00042 7.50335C3.00042 5.01668 5.0157 3.00084 7.50167 3.00084C9.98765 3.00084 12.0029 5.01668 12.0029 7.50335Z"})}),upload:l("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M10.2749 7.9251V9.8251C10.2749 10.0771 10.1748 10.3187 9.99661 10.4968C9.81845 10.675 9.57681 10.7751 9.32485 10.7751H2.67485C2.4229 10.7751 2.18126 10.675 2.0031 10.4968C1.82494 10.3187 1.72485 10.0771 1.72485 9.8251V7.9251M8.37485 4.6001L5.99985 2.2251M5.99985 2.2251L3.62485 4.6001M5.99985 2.2251V7.9251",stroke:"#currentColor",strokeWidth:"0.7125",strokeLinecap:"round",strokeLinejoin:"round"})}),"arrow-left-linear":l("svg",{width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M7.99984 16.9201L1.47984 10.4001C0.709844 9.63008 0.709844 8.37008 1.47984 7.60008L7.99984 1.08008",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}),"arrow-right-linear":l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M5.99978 2.72418L10.3464 7.07085C10.8598 7.58418 10.8598 8.42418 10.3464 8.93751L5.99978 13.2842",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}),pen:y("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M11.0495 3.00002L4.2078 10.2417C3.94947 10.5167 3.69947 11.0584 3.64947 11.4334L3.34114 14.1333C3.2328 15.1083 3.9328 15.775 4.89947 15.6084L7.5828 15.15C7.9578 15.0834 8.4828 14.8084 8.74114 14.525L15.5828 7.28335C16.7661 6.03335 17.2995 4.60835 15.4578 2.86668C13.6245 1.14168 12.2328 1.75002 11.0495 3.00002Z",stroke:"#currentColor",strokeWidth:"1.25",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M9.9082 4.2085C10.2665 6.5085 12.1332 8.26683 14.4499 8.50016",stroke:"#currentColor",strokeWidth:"1.25",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M2.5 18.3333H17.5",stroke:"currentColor",strokeWidth:"1.25",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),times:l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24px",height:"24px",children:l("path",{d:"M 4.7070312 3.2929688 L 3.2929688 4.7070312 L 10.585938 12 L 3.2929688 19.292969 L 4.7070312 20.707031 L 12 13.414062 L 19.292969 20.707031 L 20.707031 19.292969 L 13.414062 12 L 20.707031 4.7070312 L 19.292969 3.2929688 L 12 10.585938 L 4.7070312 3.2929688 z"})}),"arrow-up":y("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M18.0697 9.57L11.9997 3.5L5.92969 9.57",stroke:"#3F3F46",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M12 20.4999V3.66992",stroke:"#3F3F46",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),"arrow-up-light":l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M13.2797 10.0334L8.93306 5.68676C8.41973 5.17342 7.57973 5.17342 7.06639 5.68676L2.71973 10.0334",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}),"arrow-down-light":l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M13.2807 5.9668L8.93404 10.3135C8.4207 10.8268 7.5807 10.8268 7.06737 10.3135L2.7207 5.9668",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}),"settings-2-filled":l("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M13.9002 6.64679C12.6935 6.64679 12.2002 5.79345 12.8002 4.74679C13.1468 4.14012 12.9402 3.36679 12.3335 3.02012L11.1802 2.36012C10.6535 2.04679 9.9735 2.23345 9.66016 2.76012L9.58683 2.88679C8.98683 3.93345 8.00016 3.93345 7.3935 2.88679L7.32016 2.76012C7.02016 2.23345 6.34016 2.04679 5.8135 2.36012L4.66016 3.02012C4.0535 3.36679 3.84683 4.14679 4.1935 4.75345C4.80016 5.79345 4.30683 6.64679 3.10016 6.64679C2.40683 6.64679 1.8335 7.21345 1.8335 7.91345V9.08679C1.8335 9.78012 2.40016 10.3535 3.10016 10.3535C4.30683 10.3535 4.80016 11.2068 4.1935 12.2535C3.84683 12.8601 4.0535 13.6335 4.66016 13.9801L5.8135 14.6401C6.34016 14.9535 7.02016 14.7668 7.3335 14.2401L7.40683 14.1135C8.00683 13.0668 8.9935 13.0668 9.60016 14.1135L9.6735 14.2401C9.98683 14.7668 10.6668 14.9535 11.1935 14.6401L12.3468 13.9801C12.9535 13.6335 13.1602 12.8535 12.8135 12.2535C12.2068 11.2068 12.7002 10.3535 13.9068 10.3535C14.6002 10.3535 15.1735 9.78679 15.1735 9.08679V7.91345C15.1668 7.22012 14.6002 6.64679 13.9002 6.64679ZM8.50016 10.6668C7.30683 10.6668 6.3335 9.69345 6.3335 8.50012C6.3335 7.30679 7.30683 6.33345 8.50016 6.33345C9.6935 6.33345 10.6668 7.30679 10.6668 8.50012C10.6668 9.69345 9.6935 10.6668 8.50016 10.6668Z",fill:"#currentColor"})}),"settings-2":y("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",stroke:"#currentColor",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M2.00049 12.8799V11.1199C2.00049 10.0799 2.85049 9.21994 3.90049 9.21994C5.71049 9.21994 6.45049 7.93994 5.54049 6.36994C5.02049 5.46994 5.33049 4.29994 6.24049 3.77994L7.97049 2.78994C8.76049 2.31994 9.78049 2.59994 10.2505 3.38994L10.3605 3.57994C11.2605 5.14994 12.7405 5.14994 13.6505 3.57994L13.7605 3.38994C14.2305 2.59994 15.2505 2.31994 16.0405 2.78994L17.7705 3.77994C18.6805 4.29994 18.9905 5.46994 18.4705 6.36994C17.5605 7.93994 18.3005 9.21994 20.1105 9.21994C21.1505 9.21994 22.0105 10.0699 22.0105 11.1199V12.8799C22.0105 13.9199 21.1605 14.7799 20.1105 14.7799C18.3005 14.7799 17.5605 16.0599 18.4705 17.6299C18.9905 18.5399 18.6805 19.6999 17.7705 20.2199L16.0405 21.2099C15.2505 21.6799 14.2305 21.3999 13.7605 20.6099L13.6505 20.4199C12.7505 18.8499 11.2705 18.8499 10.3605 20.4199L10.2505 20.6099C9.78049 21.3999 8.76049 21.6799 7.97049 21.2099L6.24049 20.2199C5.33049 19.6999 5.02049 18.5299 5.54049 17.6299C6.45049 16.0599 5.71049 14.7799 3.90049 14.7799C2.85049 14.7799 2.00049 13.9199 2.00049 12.8799Z",stroke:"#currentColor",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),"pen-fill":y("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M14.5 15.1665H2.5C2.22667 15.1665 2 14.9398 2 14.6665C2 14.3932 2.22667 14.1665 2.5 14.1665H14.5C14.7733 14.1665 15 14.3932 15 14.6665C15 14.9398 14.7733 15.1665 14.5 15.1665Z",fill:"#currentColor"}),l("path",{d:"M13.1799 2.81994C11.8866 1.52661 10.6199 1.49328 9.29322 2.81994L8.48655 3.62661C8.41989 3.69328 8.39322 3.79994 8.41989 3.89328C8.92655 5.65994 10.3399 7.07328 12.1066 7.57994C12.1332 7.58661 12.1599 7.59328 12.1866 7.59328C12.2599 7.59328 12.3266 7.56661 12.3799 7.51328L13.1799 6.70661C13.8399 6.05328 14.1599 5.41994 14.1599 4.77994C14.1666 4.11994 13.8466 3.47994 13.1799 2.81994Z",fill:"#currentColor"}),l("path",{d:"M10.9066 8.18654C10.7132 8.0932 10.5266 7.99987 10.3466 7.8932C10.1999 7.80654 10.0599 7.7132 9.91989 7.6132C9.80655 7.53987 9.67322 7.4332 9.54655 7.32654C9.53322 7.31987 9.48655 7.27987 9.43322 7.22654C9.21322 7.03987 8.96655 6.79987 8.74655 6.5332C8.72655 6.51987 8.69322 6.4732 8.64655 6.4132C8.57989 6.3332 8.46655 6.19987 8.36655 6.04654C8.28655 5.94654 8.19322 5.79987 8.10655 5.6532C7.99989 5.4732 7.90655 5.2932 7.81322 5.10654C7.69085 4.84431 7.34668 4.76641 7.14206 4.97103L3.39322 8.71987C3.30655 8.80654 3.22655 8.9732 3.20655 9.08654L2.84655 11.6399C2.77989 12.0932 2.90655 12.5199 3.18655 12.8065C3.42655 13.0399 3.75989 13.1665 4.11989 13.1665C4.19989 13.1665 4.27989 13.1599 4.35989 13.1465L6.91989 12.7865C7.03989 12.7665 7.20655 12.6865 7.28655 12.5999L11.0416 8.84484C11.2421 8.64432 11.1668 8.29929 10.9066 8.18654Z",fill:"#currentColor"})]}),"document-text1-outline":y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",children:[l("path",{d:"M22 10v5c0 5-2 7-7 7H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M22 10h-4c-3 0-4-1-4-4V2l8 8ZM7 13h6M7 17h4",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),notification:y("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M12.0186 2.91016C8.70862 2.91016 6.01862 5.60016 6.01862 8.91016V11.8002C6.01862 12.4102 5.75862 13.3402 5.44862 13.8602L4.29862 15.7702C3.58862 16.9502 4.07862 18.2602 5.37862 18.7002C9.68862 20.1402 14.3386 20.1402 18.6486 18.7002C19.8586 18.3002 20.3886 16.8702 19.7286 15.7702L18.5786 13.8602C18.2786 13.3402 18.0186 12.4102 18.0186 11.8002V8.91016C18.0186 5.61016 15.3186 2.91016 12.0186 2.91016Z",stroke:"#currentColor",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round"}),l("path",{d:"M13.8699 3.19994C13.5599 3.10994 13.2399 3.03994 12.9099 2.99994C11.9499 2.87994 11.0299 2.94994 10.1699 3.19994C10.4599 2.45994 11.1799 1.93994 12.0199 1.93994C12.8599 1.93994 13.5799 2.45994 13.8699 3.19994Z",stroke:"#currentColor",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M15.019 19.0601C15.019 20.7101 13.669 22.0601 12.019 22.0601C11.199 22.0601 10.439 21.7201 9.89904 21.1801C9.35904 20.6401 9.01904 19.8801 9.01904 19.0601",stroke:"#currentColor",strokeWidth:"2",strokeMiterlimit:"10"})]}),"message-question-outline":y("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M17.0005 18.4302H13.0005L8.55048 21.3902C7.89048 21.8302 7.00049 21.3602 7.00049 20.5602V18.4302C4.00049 18.4302 2.00049 16.4302 2.00049 13.4302V7.43018C2.00049 4.43018 4.00049 2.43018 7.00049 2.43018H17.0005C20.0005 2.43018 22.0005 4.43018 22.0005 7.43018V13.4302C22.0005 16.4302 20.0005 18.4302 17.0005 18.4302Z",stroke:"#currentColor",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M11.9993 11.3599V11.1499C11.9993 10.4699 12.4194 10.1099 12.8394 9.81989C13.2494 9.53989 13.6593 9.1799 13.6593 8.5199C13.6593 7.5999 12.9193 6.85986 11.9993 6.85986C11.0793 6.85986 10.3394 7.5999 10.3394 8.5199",stroke:"#currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M11.995 13.75H12.004",stroke:"#currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),"add-circle":l("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M15.9989 2.6665C8.65219 2.6665 2.66553 8.65317 2.66553 15.9998C2.66553 23.3465 8.65219 29.3332 15.9989 29.3332C23.3455 29.3332 29.3322 23.3465 29.3322 15.9998C29.3322 8.65317 23.3455 2.6665 15.9989 2.6665ZM21.3322 16.9998H16.9989V21.3332C16.9989 21.8798 16.5455 22.3332 15.9989 22.3332C15.4522 22.3332 14.9989 21.8798 14.9989 21.3332V16.9998H10.6655C10.1189 16.9998 9.66553 16.5465 9.66553 15.9998C9.66553 15.4532 10.1189 14.9998 10.6655 14.9998H14.9989V10.6665C14.9989 10.1198 15.4522 9.6665 15.9989 9.6665C16.5455 9.6665 16.9989 10.1198 16.9989 10.6665V14.9998H21.3322C21.8789 14.9998 22.3322 15.4532 22.3322 15.9998C22.3322 16.5465 21.8789 16.9998 21.3322 16.9998Z"})}),copy:y("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M11.1668 8.60016V11.4002C11.1668 13.7335 10.2335 14.6668 7.90016 14.6668H5.10016C2.76683 14.6668 1.8335 13.7335 1.8335 11.4002V8.60016C1.8335 6.26683 2.76683 5.3335 5.10016 5.3335H7.90016C10.2335 5.3335 11.1668 6.26683 11.1668 8.60016Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M15.1668 4.60016V7.40016C15.1668 9.7335 14.2335 10.6668 11.9002 10.6668H11.1668V8.60016C11.1668 6.26683 10.2335 5.3335 7.90016 5.3335H5.8335V4.60016C5.8335 2.26683 6.76683 1.3335 9.10016 1.3335H11.9002C14.2335 1.3335 15.1668 2.26683 15.1668 4.60016Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),action:y("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M8.8335 15.9456C8.8335 16.8623 9.5835 17.6123 10.5002 17.6123C11.4168 17.6123 12.1668 16.8623 12.1668 15.9456C12.1668 15.029 11.4168 14.279 10.5002 14.279C9.5835 14.279 8.8335 15.029 8.8335 15.9456Z",stroke:"#currentColor",strokeWidth:"1.5"}),l("path",{d:"M8.8335 4.27913C8.8335 5.1958 9.5835 5.9458 10.5002 5.9458C11.4168 5.9458 12.1668 5.1958 12.1668 4.27913C12.1668 3.36247 11.4168 2.61247 10.5002 2.61247C9.5835 2.61247 8.8335 3.36247 8.8335 4.27913Z",stroke:"#currentColor",strokeWidth:"1.5"}),l("path",{d:"M8.8335 10.1121C8.8335 11.0288 9.5835 11.7788 10.5002 11.7788C11.4168 11.7788 12.1668 11.0288 12.1668 10.1121C12.1668 9.19547 11.4168 8.44547 10.5002 8.44547C9.5835 8.44547 8.8335 9.19547 8.8335 10.1121Z",stroke:"#currentColor",strokeWidth:"1.5"})]}),"info-circle":y("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M10.4998 18.4455C15.0832 18.4455 18.8332 14.6955 18.8332 10.1121C18.8332 5.52881 15.0832 1.77881 10.4998 1.77881C5.9165 1.77881 2.1665 5.52881 2.1665 10.1121C2.1665 14.6955 5.9165 18.4455 10.4998 18.4455Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M10.5 6.77881V10.9455",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M10.4956 13.4458H10.5031",stroke:"#currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),"info-circle-filled":l("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M9.0013 0.666748C4.40964 0.666748 0.667969 4.40841 0.667969 9.00008C0.667969 13.5917 4.40964 17.3334 9.0013 17.3334C13.593 17.3334 17.3346 13.5917 17.3346 9.00008C17.3346 4.40841 13.593 0.666748 9.0013 0.666748ZM8.3763 5.66675C8.3763 5.32508 8.65964 5.04175 9.0013 5.04175C9.34297 5.04175 9.6263 5.32508 9.6263 5.66675V9.83342C9.6263 10.1751 9.34297 10.4584 9.0013 10.4584C8.65964 10.4584 8.3763 10.1751 8.3763 9.83342V5.66675ZM9.76797 12.6501C9.7263 12.7584 9.66797 12.8417 9.59297 12.9251C9.50964 13.0001 9.41797 13.0584 9.31797 13.1001C9.21797 13.1417 9.10964 13.1667 9.0013 13.1667C8.89297 13.1667 8.78464 13.1417 8.68464 13.1001C8.58464 13.0584 8.49297 13.0001 8.40964 12.9251C8.33464 12.8417 8.2763 12.7584 8.23464 12.6501C8.19297 12.5501 8.16797 12.4417 8.16797 12.3334C8.16797 12.2251 8.19297 12.1167 8.23464 12.0167C8.2763 11.9167 8.33464 11.8251 8.40964 11.7417C8.49297 11.6667 8.58464 11.6084 8.68464 11.5667C8.88464 11.4834 9.11797 11.4834 9.31797 11.5667C9.41797 11.6084 9.50964 11.6667 9.59297 11.7417C9.66797 11.8251 9.7263 11.9167 9.76797 12.0167C9.80964 12.1167 9.83464 12.2251 9.83464 12.3334C9.83464 12.4417 9.80964 12.5501 9.76797 12.6501Z",fill:"#currentColor"})}),"course-up-line-duotone":y("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{opacity:"0.5",d:"M18.8332 5.9458L12.6832 12.0583C11.8523 12.8841 11.4365 13.2975 10.9207 13.2975C10.4048 13.2975 9.98984 12.8841 9.15817 12.0575L8.95817 11.8591C8.12734 11.0325 7.71067 10.6183 7.19484 10.6183C6.679 10.6183 6.26317 11.0325 5.43234 11.86L2.1665 15.1125",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M18.8333 10.5675V5.9458H14.1816",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"course-down-line-duotone":y("svg",{width:"27",height:"27",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y("g",{clipPath:"url(#clip0_13667_69012)",children:[l("path",{opacity:"0.5",d:"M20.7041 19.1552L12.6745 15.8825C11.5897 15.4404 11.0467 15.2191 10.8452 14.7443C10.6436 14.2694 10.8619 13.7259 11.2979 12.6374L11.4024 12.3758C11.8387 11.288 12.0571 10.7426 11.8556 10.2678C11.654 9.79295 11.1103 9.572 10.0239 9.13054L5.75393 7.39518",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M16.45 20.9612L20.7043 19.1554L18.8867 14.8735",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),l("defs",{children:l("clipPath",{id:"clip0_13667_69012",children:l("rect",{width:"20",height:"20",fill:"white",transform:"translate(18.9102) rotate(67)"})})})]}),more:y("svg",{width:"29",height:"21",viewBox:"0 0 29 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M12.8335 16.6667C12.8335 17.8125 13.771 18.75 14.9168 18.75C16.0627 18.75 17.0002 17.8125 17.0002 16.6667C17.0002 15.5208 16.0627 14.5833 14.9168 14.5833C13.771 14.5833 12.8335 15.5208 12.8335 16.6667Z",fill:"#currentColor"}),l("path",{d:"M12.8335 10.4997C12.8335 11.6455 13.771 12.583 14.9168 12.583C16.0627 12.583 17.0002 11.6455 17.0002 10.4997C17.0002 9.35384 16.0627 8.41634 14.9168 8.41634C13.771 8.41634 12.8335 9.35384 12.8335 10.4997Z",fill:"#currentColor"}),l("path",{d:"M12.8335 4.33366C12.8335 5.47949 13.771 6.41699 14.9168 6.41699C16.0627 6.41699 17.0002 5.47949 17.0002 4.33366C17.0002 3.18783 16.0627 2.25033 14.9168 2.25033C13.771 2.25033 12.8335 3.18783 12.8335 4.33366Z",fill:"#currentColor"})]}),"image-upload":l("svg",{width:"35",height:"34",viewBox:"0 0 35 34",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M18.3186 1.18412L18.319 1.18457L24.9824 8.0185C25.1948 8.24551 25.3142 8.55126 25.3115 8.87096C25.3088 9.192 25.1831 9.49666 24.9654 9.71996C24.7481 9.94286 24.4567 10.0669 24.1549 10.0696C23.8544 10.0723 23.5623 9.95446 23.3417 9.73735L19.5234 5.82129L18.6654 4.94133V6.17034V20.8467C18.6654 21.1714 18.5395 21.4804 18.3192 21.7063C18.0994 21.9317 17.804 22.056 17.4987 22.056C17.1934 22.056 16.898 21.9317 16.6782 21.7063C16.4579 21.4804 16.332 21.1714 16.332 20.8467V6.17034V4.94133L15.474 5.82129L11.6524 9.74079L11.6521 9.74104C11.4323 9.96683 11.1367 10.0914 10.8312 10.0916C10.5257 10.0919 10.2299 9.96771 10.0098 9.74224C9.78921 9.51635 9.663 9.20722 9.66277 8.88221C9.66255 8.55732 9.78825 8.24811 10.0084 8.02191C10.0084 8.02182 10.0085 8.02174 10.0086 8.02165L16.675 1.18457L16.6755 1.18412C16.7844 1.07207 16.9132 0.983874 17.054 0.923935C17.1949 0.864008 17.3454 0.833336 17.497 0.833336C17.6487 0.833336 17.7992 0.864008 17.94 0.923935C18.0809 0.983874 18.2096 1.07207 18.3186 1.18412ZM22.9987 20.8467V20.492H30.832C31.5793 20.492 32.2987 20.7964 32.8311 21.3424C33.3639 21.8888 33.6654 22.6326 33.6654 23.4107V30.248C33.6654 31.0261 33.3639 31.7699 32.8311 32.3163C32.2987 32.8623 31.5793 33.1667 30.832 33.1667H4.16536C3.41805 33.1667 2.69872 32.8623 2.16634 32.3163C1.63353 31.7699 1.33203 31.0261 1.33203 30.248V23.4107C1.33203 22.6326 1.63353 21.8888 2.16634 21.3424C2.69872 20.7964 3.41805 20.492 4.16536 20.492H11.9987V20.8467C11.9987 22.3353 12.5752 23.7654 13.6052 24.8218C14.6356 25.8786 16.0359 26.4747 17.4987 26.4747C18.9615 26.4747 20.3618 25.8786 21.3922 24.8218C22.4222 23.7654 22.9987 22.3353 22.9987 20.8467ZM24.9938 30.2283C25.4874 30.5666 26.0692 30.748 26.6654 30.748C27.4652 30.748 28.2295 30.422 28.7911 29.8461C29.3523 29.2706 29.6654 28.4926 29.6654 27.684C29.6654 27.0808 29.491 26.4901 29.163 25.9866C28.8349 25.483 28.3672 25.0885 27.8176 24.855C27.2678 24.6215 26.6622 24.5601 26.0777 24.6794C25.4933 24.7986 24.9583 25.0925 24.5396 25.5219C24.121 25.9512 23.8374 26.4966 23.7225 27.0886C23.6078 27.6805 23.6666 28.2941 23.8921 28.8524C24.1176 29.4109 24.5003 29.8902 24.9938 30.2283Z",fill:"#currentColor",stroke:"#currentColor"})}),folder:y("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{opacity:"0.4",d:"M21.4588 2.6665H11.5388C11.0321 2.6665 10.6055 3.09317 10.6055 3.59984C10.6055 4.1065 11.0321 4.53317 11.5388 4.53317H15.8855L17.7521 7.01317C18.1655 7.55984 18.2188 7.63984 18.9921 7.63984H23.9521C24.4588 7.63984 24.9521 7.7065 25.4321 7.83984C25.4855 8.07984 25.5121 8.31984 25.5121 8.57317V9.03984C25.5121 9.5465 25.9388 9.97317 26.4455 9.97317C26.9521 9.97317 27.3788 9.5465 27.3788 9.03984V8.55984C27.3521 5.3065 24.7121 2.6665 21.4588 2.6665Z",fill:"#currentColor"}),l("path",{d:"M27.3527 8.71984C26.7793 8.3065 26.126 7.99984 25.4193 7.8265C24.9527 7.69317 24.446 7.6265 23.9393 7.6265H18.9793C18.206 7.6265 18.1527 7.5465 17.7393 6.99984L15.8727 4.51984C15.006 3.37317 14.326 2.6665 12.1527 2.6665H9.05935C5.80602 2.6665 3.16602 5.3065 3.16602 8.55984V23.4398C3.16602 26.6932 5.80602 29.3332 9.05935 29.3332H23.9393C27.1927 29.3332 29.8327 26.6932 29.8327 23.4398V13.5198C29.8327 11.5332 28.8593 9.7865 27.3527 8.71984ZM19.606 21.3332H13.3927C12.8727 21.3332 12.4593 20.9198 12.4593 20.3998C12.4593 19.8932 12.8727 19.4665 13.3927 19.4665H19.5927C20.0993 19.4665 20.526 19.8932 20.526 20.3998C20.526 20.9198 20.1127 21.3332 19.606 21.3332Z",fill:"#currentColor"})]}),"wallet-is-empty":l("svg",{width:"366",height:"306",viewBox:"0 0 366 306",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:y("g",{id:"Wallet is Empty",children:[l("path",{id:"Fill 1",fillRule:"evenodd",clipRule:"evenodd",d:"M246.294 291.811C246.294 294.185 215.743 296.11 178.056 296.11C140.369 296.11 109.816 294.185 109.816 291.811C109.816 289.438 140.369 287.513 178.056 287.513C215.743 287.513 246.294 289.438 246.294 291.811Z",fill:"#DCDCE2"}),l("path",{id:"Fill 13",fillRule:"evenodd",clipRule:"evenodd",d:"M198.75 4.96247C197.407 4.6389 196.574 3.28452 196.898 1.92805C197.22 0.580921 198.578 -0.253906 199.92 0.0696541C201.269 0.395288 202.093 1.75486 201.772 3.10303C201.448 4.45846 200.1 5.28706 198.75 4.96247Z",fill:"#DCDCE2"}),l("path",{id:"Stroke 25",d:"M14.168 170.379V173.603",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 27",d:"M7.72266 173.603L9.87191 175.752",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 29",d:"M4.5 180.051H7.72388",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 31",d:"M7.72266 186.498L9.87191 184.349",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 33",d:"M14.168 189.722V186.498",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 35",d:"M20.618 186.498L18.4688 184.349",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 37",d:"M23.8372 180.051H20.6133",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 39",d:"M20.618 173.603L18.4688 175.752",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 41",d:"M179.66 38.2V40.3493",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 43",d:"M174.293 43.5732H176.442",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 45",d:"M179.66 50.0209V47.8716",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 47",d:"M186.11 44.6478H183.961",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 49",d:"M61.4531 123.095V126.319",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 51",d:"M51.7852 132.767H55.009",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 53",d:"M60.375 141.364V138.14",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 55",d:"M70.0559 132.767H66.832",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 57",d:"M280.674 235.931C283.047 235.931 284.972 237.856 284.972 240.23C284.972 242.603 283.047 244.528 280.674 244.528C278.3 244.528 276.375 242.603 276.375 240.23",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 59",d:"M301.019 294.541C301.568 298.379 298.915 301.936 295.096 302.486C291.28 303.036 287.74 300.371 287.193 296.533C286.645 292.695 289.297 289.138 293.116 288.588",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Fill 61",fillRule:"evenodd",clipRule:"evenodd",d:"M301.102 195.095C303.707 194.271 307.7 191.045 308.624 187.573C309.462 190.642 312.975 194.271 316.146 194.546C312.578 195.827 309.166 199.631 308.624 202.618C308.256 199.572 303.537 195.539 301.102 195.095Z",fill:"#EBECEF"}),l("path",{id:"Fill 63",fillRule:"evenodd",clipRule:"evenodd",d:"M31.3711 234.318C32.6742 233.907 34.6704 232.293 35.1328 230.558C35.5516 232.092 37.3076 233.907 38.8935 234.045C37.1088 234.685 35.4028 236.586 35.1328 238.08C34.9479 236.558 32.5892 234.54 31.3711 234.318Z",fill:"#EBECEF"}),l("path",{id:"Fill 65",fillRule:"evenodd",clipRule:"evenodd",d:"M55.0103 91.9313C55.0103 93.7125 53.5666 95.1552 51.7864 95.1552C50.0052 95.1552 48.5625 93.7125 48.5625 91.9313C48.5625 90.1501 50.0052 88.7075 51.7864 88.7075C53.5666 88.7075 55.0103 90.1501 55.0103 91.9313Z",fill:"#D1D9E0"}),l("path",{id:"Fill 69",fillRule:"evenodd",clipRule:"evenodd",d:"M364.495 85.4829C364.495 87.8579 362.571 89.7819 360.197 89.7819C357.823 89.7819 355.898 87.8579 355.898 85.4829C355.898 83.109 357.823 81.1849 360.197 81.1849C362.571 81.1849 364.495 83.109 364.495 85.4829Z",fill:"#EBECEF"}),l("path",{id:"Stroke 73",fillRule:"evenodd",clipRule:"evenodd",d:"M117.342 69.3641C117.342 71.1453 115.899 72.588 114.118 72.588C112.337 72.588 110.895 71.1453 110.895 69.3641C110.895 67.5829 112.337 66.1403 114.118 66.1403C115.899 66.1403 117.342 67.5829 117.342 69.3641Z",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("path",{id:"Stroke 75",fillRule:"evenodd",clipRule:"evenodd",d:"M67.2797 273.261C65.0614 274.105 62.5795 272.991 61.7356 270.773C60.8906 268.554 62.0057 266.072 64.224 265.228C66.4423 264.383 68.9242 265.498 69.7681 267.717C70.612 269.935 69.498 272.417 67.2797 273.261Z",stroke:"#D2D8DF",strokeWidth:"1.63099",strokeLinecap:"round"}),l("g",{id:"menu",children:l("g",{id:"vuesax/bold/menu",children:y("g",{id:"menu_2",children:[l("path",{id:"Vector",d:"M235.214 136.436C250.344 136.436 262.608 124.171 262.608 109.042C262.608 93.9123 250.344 81.6476 235.214 81.6476C220.085 81.6476 207.82 93.9123 207.82 109.042C207.82 124.171 220.085 136.436 235.214 136.436Z",fill:"#F4F4F5"}),l("path",{id:"Vector_2",d:"M132.675 136.436C147.804 136.436 160.069 124.171 160.069 109.042C160.069 93.9123 147.804 81.6476 132.675 81.6476C117.546 81.6476 105.281 93.9123 105.281 109.042C105.281 124.171 117.546 136.436 132.675 136.436Z",fill:"#F4F4F5"}),l("path",{id:"Vector_3",d:"M235.214 250.269C250.344 250.269 262.608 238.004 262.608 222.875C262.608 207.745 250.344 195.481 235.214 195.481C220.085 195.481 207.82 207.745 207.82 222.875C207.82 238.004 220.085 250.269 235.214 250.269Z",fill:"#F4F4F5"}),l("path",{id:"Vector_4",d:"M132.675 250.269C147.804 250.269 160.069 238.004 160.069 222.875C160.069 207.745 147.804 195.481 132.675 195.481C117.546 195.481 105.281 207.745 105.281 222.875C105.281 238.004 117.546 250.269 132.675 250.269Z",fill:"#F4F4F5"})]})})})]})}),"money-bulk":y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{opacity:".4",d:"M17 20.5H7c-3 0-5-1.5-5-5v-7c0-3.5 2-5 5-5h10c3 0 5 1.5 5 5v7c0 3.5-2 5-5 5Z",fill:"#currentColor"}),l("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM5.5 15.25c-.41 0-.75-.34-.75-.75v-5c0-.41.34-.75.75-.75s.75.34.75.75v5c0 .41-.34.75-.75.75ZM18.5 15.25c-.41 0-.75-.34-.75-.75v-5c0-.41.34-.75.75-.75s.75.34.75.75v5c0 .41-.34.75-.75.75Z",fill:"#currentColor"})]}),"money-time-bulk":y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{d:"M5 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4Zm1 3.68c0 .61-.33 1.19-.85 1.5l-.76.46c-.12.07-.25.11-.38.11-.25 0-.5-.13-.64-.36-.21-.35-.1-.82.26-1.03l.76-.46c.07-.04.12-.13.12-.21v-.93c0-.41.34-.75.75-.75s.75.34.75.75v.92H6Z",fill:"#currentColor"}),l("path",{opacity:".4",d:"M22 9v6c0 3.5-2 5-5 5H8.45c.35-.59.55-1.27.55-2 0-2.21-1.79-4-4-4-1.2 0-2.27.53-3 1.36V9c0-3.5 2-5 5-5h10c3 0 5 1.5 5 5Z",fill:"#currentColor"}),l("path",{d:"M12 14.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM18.5 14.75c-.41 0-.75-.34-.75-.75v-4c0-.41.34-.75.75-.75s.75.34.75.75v4c0 .41-.34.75-.75.75Z",fill:"#currentColor"})]}),"note-1-bulk":y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor",children:[l("path",{opacity:".4",d:"M7.37 22h9.25a4.87 4.87 0 0 0 4.87-4.87V8.37a4.87 4.87 0 0 0-4.87-4.87H7.37A4.87 4.87 0 0 0 2.5 8.37v8.75c0 2.7 2.18 4.88 4.87 4.88Z",fill:"#currentColor"}),l("path",{d:"M8.29 6.29c-.42 0-.75-.34-.75-.75V2.75a.749.749 0 1 1 1.5 0v2.78c0 .42-.33.76-.75.76ZM15.71 6.29c-.42 0-.75-.34-.75-.75V2.75a.749.749 0 1 1 1.5 0v2.78c0 .42-.33.76-.75.76ZM14.78 13.71H7.36a.749.749 0 1 1 0-1.5h7.42a.749.749 0 1 1 0 1.5ZM12 17.422H7.36a.749.749 0 1 1 0-1.5H12a.749.749 0 1 1 0 1.5Z",fill:"#currentColor"})]}),"hamburger-menu":y("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M3.5 7H21.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l("path",{d:"M3.5 12H21.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l("path",{d:"M3.5 17H21.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),category:y("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M5.5 10H7.5C9.5 10 10.5 9 10.5 7V5C10.5 3 9.5 2 7.5 2H5.5C3.5 2 2.5 3 2.5 5V7C2.5 9 3.5 10 5.5 10Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M17.5 10H19.5C21.5 10 22.5 9 22.5 7V5C22.5 3 21.5 2 19.5 2H17.5C15.5 2 14.5 3 14.5 5V7C14.5 9 15.5 10 17.5 10Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M17.5 22H19.5C21.5 22 22.5 21 22.5 19V17C22.5 15 21.5 14 19.5 14H17.5C15.5 14 14.5 15 14.5 17V19C14.5 21 15.5 22 17.5 22Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M5.5 22H7.5C9.5 22 10.5 21 10.5 19V17C10.5 15 9.5 14 7.5 14H5.5C3.5 14 2.5 15 2.5 17V19C2.5 21 3.5 22 5.5 22Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),group:l("svg",{width:"5",height:"21",viewBox:"0 0 5 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M2.5 14C3.03043 14 3.53914 14.2107 3.91421 14.5858C4.28929 14.9609 4.5 15.4696 4.5 16C4.5 16.5304 4.28929 17.0391 3.91421 17.4142C3.53914 17.7893 3.03043 18 2.5 18C1.96957 18 1.46086 17.7893 1.08579 17.4142C0.710714 17.0391 0.5 16.5304 0.5 16C0.5 15.4696 0.710714 14.9609 1.08579 14.5858C1.46086 14.2107 1.96957 14 2.5 14ZM2.5 7C3.03043 7 3.53914 7.21071 3.91421 7.58579C4.28929 7.96086 4.5 8.46957 4.5 9C4.5 9.53043 4.28929 10.0391 3.91421 10.4142C3.53914 10.7893 3.03043 11 2.5 11C1.96957 11 1.46086 10.7893 1.08579 10.4142C0.710714 10.0391 0.5 9.53043 0.5 9C0.5 8.46957 0.710714 7.96086 1.08579 7.58579C1.46086 7.21071 1.96957 7 2.5 7ZM2.5 0C3.03043 0 3.53914 0.210714 3.91421 0.585786C4.28929 0.960859 4.5 1.46957 4.5 2C4.5 2.53043 4.28929 3.03914 3.91421 3.41421C3.53914 3.78929 3.03043 4 2.5 4C1.96957 4 1.46086 3.78929 1.08579 3.41421C0.710714 3.03914 0.5 2.53043 0.5 2C0.5 1.46957 0.710714 0.960859 1.08579 0.585786C1.46086 0.210714 1.96957 0 2.5 0Z",fill:"#currentColor"})}),trash:y("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M21 5.98047C17.67 5.65047 14.32 5.48047 10.98 5.48047C9 5.48047 7.02 5.58047 5.04 5.78047L3 5.98047",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M8.5 4.97L8.72 3.66C8.88 2.71 9 2 10.69 2H13.31C15 2 15.13 2.75 15.28 3.67L15.5 4.97",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M18.8484 9.13965L18.1984 19.2096C18.0884 20.7796 17.9984 21.9996 15.2084 21.9996H8.78844C5.99844 21.9996 5.90844 20.7796 5.79844 19.2096L5.14844 9.13965",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M10.3281 16.5H13.6581",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M9.5 12.5H14.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),timer:l("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M11.4288 1.5H6.56881C3.74881 1.5 3.53131 4.035 5.05381 5.415L12.9438 12.585C14.4663 13.965 14.2488 16.5 11.4288 16.5H6.56881C3.74881 16.5 3.53131 13.965 5.05381 12.585L12.9438 5.415C14.4663 4.035 14.2488 1.5 11.4288 1.5Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),eye:y("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M12.9823 10C12.9823 11.65 11.649 12.9833 9.99896 12.9833C8.34896 12.9833 7.01562 11.65 7.01562 10C7.01562 8.35 8.34896 7.01666 9.99896 7.01666C11.649 7.01666 12.9823 8.35 12.9823 10Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M10.0018 16.8917C12.9435 16.8917 15.6852 15.1583 17.5935 12.1583C18.3435 10.9833 18.3435 9.00834 17.5935 7.83334C15.6852 4.83334 12.9435 3.10001 10.0018 3.10001C7.06016 3.10001 4.31849 4.83334 2.41016 7.83334C1.66016 9.00834 1.66016 10.9833 2.41016 12.1583C4.31849 15.1583 7.06016 16.8917 10.0018 16.8917Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"eye-slash":y("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M15.0319 9.47188L9.97188 14.5319C9.32188 13.8819 8.92188 12.9919 8.92188 12.0019C8.92188 10.0219 10.5219 8.42188 12.5019 8.42188C13.4919 8.42188 14.3819 8.82188 15.0319 9.47188Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M18.3237 5.77047C16.5737 4.45047 14.5737 3.73047 12.5037 3.73047C8.97375 3.73047 5.68375 5.81047 3.39375 9.41047C2.49375 10.8205 2.49375 13.1905 3.39375 14.6005C4.18375 15.8405 5.10375 16.9105 6.10375 17.7705",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M8.92188 19.5297C10.0619 20.0097 11.2719 20.2697 12.5019 20.2697C16.0319 20.2697 19.3219 18.1897 21.6119 14.5897C22.5119 13.1797 22.5119 10.8097 21.6119 9.39969C21.2819 8.87969 20.9219 8.38969 20.5519 7.92969",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M16.0075 12.6992C15.7475 14.1092 14.5975 15.2592 13.1875 15.5192",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M9.97 14.5312L2.5 22.0013",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M22.5013 2L15.0312 9.47",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),repeat:y("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M2.38281 3.43945H11.6095C12.7162 3.43945 13.6095 4.33279 13.6095 5.43945V7.65279",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M4.48948 1.33301L2.38281 3.43966L4.48948 5.54635",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M13.6095 12.56H4.38281C3.27615 12.56 2.38281 11.6667 2.38281 10.56V8.34668",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M11.5 14.6665L13.6067 12.5598L11.5 10.4531",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),"add-square":l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M11.1425 0.5H4.8575C2.1275 0.5 0.5 2.1275 0.5 4.8575V11.135C0.5 13.8725 2.1275 15.5 4.8575 15.5H11.135C13.865 15.5 15.4925 13.8725 15.4925 11.1425V4.8575C15.5 2.1275 13.8725 0.5 11.1425 0.5ZM12.5 8.5625H8.5625V12.5C8.5625 12.8075 8.3075 13.0625 8 13.0625C7.6925 13.0625 7.4375 12.8075 7.4375 12.5V8.5625H3.5C3.1925 8.5625 2.9375 8.3075 2.9375 8C2.9375 7.6925 3.1925 7.4375 3.5 7.4375H7.4375V3.5C7.4375 3.1925 7.6925 2.9375 8 2.9375C8.3075 2.9375 8.5625 3.1925 8.5625 3.5V7.4375H12.5C12.8075 7.4375 13.0625 7.6925 13.0625 8C13.0625 8.3075 12.8075 8.5625 12.5 8.5625Z",fill:"#currentColor"})}),"tick-circle":y("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M12 22C17.5 22 22 17.5 22 12C22 6.5 17.5 2 12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7.75 12.0019L10.58 14.8319L16.25 9.17188",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"add-square-fill":y("svg",{width:"73",height:"72",viewBox:"0 0 73 72",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{opacity:"0.4",d:"M49.07 6H23.93C13.01 6 6.5 12.51 6.5 23.43V48.54C6.5 59.49 13.01 66 23.93 66H49.04C59.96 66 66.47 59.49 66.47 48.57V23.43C66.5 12.51 59.99 6 49.07 6Z",fill:"#currentColor"}),l("path",{d:"M48.5 33.75H38.75V24C38.75 22.77 37.73 21.75 36.5 21.75C35.27 21.75 34.25 22.77 34.25 24V33.75H24.5C23.27 33.75 22.25 34.77 22.25 36C22.25 37.23 23.27 38.25 24.5 38.25H34.25V48C34.25 49.23 35.27 50.25 36.5 50.25C37.73 50.25 38.75 49.23 38.75 48V38.25H48.5C49.73 38.25 50.75 37.23 50.75 36C50.75 34.77 49.73 33.75 48.5 33.75Z",fill:"#currentColor"})]}),"arrow-down-right":y("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M11.6797 18.5004L16.8897 13.2904C17.004 13.1778 17.0947 13.0436 17.1567 12.8957C17.2186 12.7477 17.2505 12.5889 17.2505 12.4284C17.2505 12.268 17.2186 12.1092 17.1567 11.9612C17.0947 11.8132 17.004 11.679 16.8897 11.5664L11.6797 6.35742",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M0.75 1.5V8.786C0.75 9.75218 1.13381 10.6788 1.81701 11.362C2.5002 12.0452 3.42682 12.429 4.393 12.429H17.24",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),logout:y("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M17.4395 15.12L19.9995 12.56L17.4395 10",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M9.75977 12.5596H19.9298",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M11.7598 20.5C7.33977 20.5 3.75977 17.5 3.75977 12.5C3.75977 7.5 7.33977 4.5 11.7598 4.5",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),image:y("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M36.7017 28.0338L31.485 15.8338C30.535 13.6004 29.1184 12.3338 27.5017 12.2504C25.9017 12.1671 24.3517 13.2838 23.1684 15.4171L20.0017 21.1004C19.335 22.3004 18.385 23.0171 17.3517 23.1004C16.3017 23.2004 15.2517 22.6504 14.4017 21.5671L14.035 21.1004C12.8517 19.6171 11.385 18.9004 9.88503 19.0504C8.38503 19.2004 7.10169 20.2338 6.25169 21.9171L3.36836 27.6671C2.33503 29.7504 2.43503 32.1671 3.65169 34.1338C4.86836 36.1004 6.98503 37.2838 9.30169 37.2838H30.5684C32.8017 37.2838 34.885 36.1671 36.1184 34.3004C37.385 32.4338 37.585 30.0838 36.7017 28.0338Z",fill:"#currentColor"}),l("path",{d:"M11.6177 13.9659C14.7289 13.9659 17.251 11.4438 17.251 8.33255C17.251 5.22135 14.7289 2.69922 11.6177 2.69922C8.5065 2.69922 5.98438 5.22135 5.98438 8.33255C5.98438 11.4438 8.5065 13.9659 11.6177 13.9659Z",fill:"#currentColor"})]}),"error-triangle-filled":y("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M10.2898 3.85996L1.81978 18C1.64514 18.3024 1.55274 18.6453 1.55177 18.9945C1.55079 19.3437 1.64127 19.6871 1.8142 19.9905C1.98714 20.2939 2.2365 20.5467 2.53748 20.7238C2.83847 20.9009 3.18058 20.9961 3.52978 21H20.4698C20.819 20.9961 21.1611 20.9009 21.4621 20.7238C21.7631 20.5467 22.0124 20.2939 22.1854 19.9905C22.3583 19.6871 22.4488 19.3437 22.4478 18.9945C22.4468 18.6453 22.3544 18.3024 22.1798 18L13.7098 3.85996C13.5315 3.56607 13.2805 3.32308 12.981 3.15444C12.6814 2.98581 12.3435 2.89722 11.9998 2.89722C11.656 2.89722 11.3181 2.98581 11.0186 3.15444C10.7191 3.32308 10.468 3.56607 10.2898 3.85996Z",fill:"#currentColor"}),l("path",{d:"M12 9V13",stroke:"",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M12 16V16.5",stroke:"",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),archive:y("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M19.5 10.22V19C19.5 21 19 22 16.5 22H7.5C5 22 4.5 21 4.5 19V10.22",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M5 2H19C21 2 22 3 22 5V7C22 9 21 10 19 10H5C3 10 2 9 2 7V5C2 3 3 2 5 2Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M10.1797 14H13.8197",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),lock:y("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M16.0015 23.1338C17.2018 23.1338 18.1748 22.1607 18.1748 20.9604C18.1748 19.7601 17.2018 18.7871 16.0015 18.7871C14.8012 18.7871 13.8281 19.7601 13.8281 20.9604C13.8281 22.1607 14.8012 23.1338 16.0015 23.1338Z",fill:"#currentColor"}),l("path",{d:"M24.3746 12.706V11.0393C24.3746 7.43935 23.508 2.66602 16.0013 2.66602C8.49464 2.66602 7.62797 7.43935 7.62797 11.0393V12.706C3.89464 13.1727 2.66797 15.066 2.66797 19.7193V22.1993C2.66797 27.666 4.33464 29.3327 9.8013 29.3327H22.2013C27.668 29.3327 29.3346 27.666 29.3346 22.1993V19.7193C29.3346 15.066 28.108 13.1727 24.3746 12.706ZM16.0013 24.986C13.7746 24.986 11.9746 23.1727 11.9746 20.9594C11.9746 18.7327 13.788 16.9327 16.0013 16.9327C18.2146 16.9327 20.028 18.746 20.028 20.9594C20.028 23.186 18.228 24.986 16.0013 24.986ZM9.8013 12.586C9.69464 12.586 9.6013 12.586 9.49464 12.586V11.0393C9.49464 7.13268 10.6013 4.53268 16.0013 4.53268C21.4013 4.53268 22.508 7.13268 22.508 11.0393V12.5993C22.4013 12.5993 22.308 12.5993 22.2013 12.5993H9.8013V12.586Z",fill:"#currentColor"})]}),"lock-outline":y("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M6 10V8C6 4.69 7 2 12 2C17 2 18 4.69 18 8V10",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M12 18.5C13.3807 18.5 14.5 17.3807 14.5 16C14.5 14.6193 13.3807 13.5 12 13.5C10.6193 13.5 9.5 14.6193 9.5 16C9.5 17.3807 10.6193 18.5 12 18.5Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M17 22H7C3 22 2 21 2 17V15C2 11 3 10 7 10H17C21 10 22 11 22 15V17C22 21 21 22 17 22Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),minus:l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",children:l("path",{d:"M6 12h12",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),"arrow-3":y("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M10.4478 6.71997L6.72778 3L3.00781 6.71997",fill:"#3F3F46"}),l("path",{d:"M10.4478 6.71997L6.72778 3L3.00781 6.71997",stroke:"#3F3F46",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M6.72656 21V3",stroke:"#3F3F46",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M13.5469 17.28L17.2669 21L20.9869 17.28",stroke:"#3F3F46",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M17.2656 3V21",stroke:"#3F3F46",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),filter:y("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M3.59896 1.40039H12.399C13.1323 1.40039 13.7323 2.00039 13.7323 2.73372V4.20039C13.7323 4.73372 13.399 5.40039 13.0656 5.73372L10.199 8.26706C9.79896 8.60039 9.53229 9.26706 9.53229 9.80039V12.6671C9.53229 13.0671 9.26563 13.6004 8.93229 13.8004L7.99896 14.4004C7.13229 14.9337 5.93229 14.3337 5.93229 13.2671V9.73372C5.93229 9.26706 5.66563 8.66706 5.39896 8.33372L2.86563 5.66706C2.53229 5.33372 2.26562 4.73372 2.26562 4.33372V2.80039C2.26562 2.00039 2.86563 1.40039 3.59896 1.40039Z",stroke:"#71717A",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7.28667 1.40039L4 6.66706",stroke:"#71717A",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),export:y("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M8.66797 7.33385L14.1346 1.86719",stroke:"#71717A",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M14.6648 4.53398V1.33398H11.4648",stroke:"#71717A",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7.33203 1.33398H5.9987C2.66536 1.33398 1.33203 2.66732 1.33203 6.00065V10.0007C1.33203 13.334 2.66536 14.6673 5.9987 14.6673H9.9987C13.332 14.6673 14.6654 13.334 14.6654 10.0007V8.66732",stroke:"#71717A",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),pause:y("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M7.1 13.24V3.76C7.1 2.86 6.72 2.5 5.76 2.5H3.34C2.38 2.5 2 2.86 2 3.76V13.24C2 14.14 2.38 14.5 3.34 14.5H5.76C6.72 14.5 7.1 14.14 7.1 13.24Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M13.9984 13.24V3.76C13.9984 2.86 13.6184 2.5 12.6584 2.5H10.2384C9.2851 2.5 8.89844 2.86 8.89844 3.76V13.24C8.89844 14.14 9.27844 14.5 10.2384 14.5H12.6584C13.6184 14.5 13.9984 14.14 13.9984 13.24Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"check-circle":y("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M12 22C17.5 22 22 17.5 22 12C22 6.5 17.5 2 12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7.75 11.9999L10.58 14.8299L16.25 9.16992",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"money-icon":y("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{opacity:"0.4",d:"M14.167 17.0846H5.83366C3.33366 17.0846 1.66699 15.8346 1.66699 12.918V7.08464C1.66699 4.16797 3.33366 2.91797 5.83366 2.91797H14.167C16.667 2.91797 18.3337 4.16797 18.3337 7.08464V12.918C18.3337 15.8346 16.667 17.0846 14.167 17.0846Z",fill:"#705BFA"}),l("path",{d:"M10 12.5C11.3807 12.5 12.5 11.3807 12.5 10C12.5 8.61929 11.3807 7.5 10 7.5C8.61929 7.5 7.5 8.61929 7.5 10C7.5 11.3807 8.61929 12.5 10 12.5Z",fill:"#705BFA"}),l("path",{d:"M4.58301 12.7096C4.24134 12.7096 3.95801 12.4263 3.95801 12.0846V7.91797C3.95801 7.5763 4.24134 7.29297 4.58301 7.29297C4.92467 7.29297 5.20801 7.5763 5.20801 7.91797V12.0846C5.20801 12.4263 4.92467 12.7096 4.58301 12.7096Z",fill:"#705BFA"}),l("path",{d:"M15.417 12.7096C15.0753 12.7096 14.792 12.4263 14.792 12.0846V7.91797C14.792 7.5763 15.0753 7.29297 15.417 7.29297C15.7587 7.29297 16.042 7.5763 16.042 7.91797V12.0846C16.042 12.4263 15.7587 12.7096 15.417 12.7096Z",fill:"#705BFA"})]}),"check-icon":y("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{opacity:"0.4",d:"M9.99935 18.3346C14.6017 18.3346 18.3327 14.6037 18.3327 10.0013C18.3327 5.39893 14.6017 1.66797 9.99935 1.66797C5.39698 1.66797 1.66602 5.39893 1.66602 10.0013C1.66602 14.6037 5.39698 18.3346 9.99935 18.3346Z",fill:"#currentColor"}),l("path",{d:"M8.81719 12.9846C8.65052 12.9846 8.49219 12.918 8.37552 12.8013L6.01719 10.443C5.77552 10.2013 5.77552 9.8013 6.01719 9.55964C6.25885 9.31797 6.65885 9.31797 6.90052 9.55964L8.81719 11.4763L13.1005 7.19297C13.3422 6.9513 13.7422 6.9513 13.9839 7.19297C14.2255 7.43464 14.2255 7.83463 13.9839 8.0763L9.25885 12.8013C9.14219 12.918 8.98385 12.9846 8.81719 12.9846Z",fill:"#currentColor"})]}),"clock-icon":y("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{opacity:"0.4",d:"M9.99935 18.3346C14.6017 18.3346 18.3327 14.6037 18.3327 10.0013C18.3327 5.39893 14.6017 1.66797 9.99935 1.66797C5.39698 1.66797 1.66602 5.39893 1.66602 10.0013C1.66602 14.6037 5.39698 18.3346 9.99935 18.3346Z",fill:"#currentColor"}),l("path",{d:"M13.0909 13.2745C12.9826 13.2745 12.8742 13.2495 12.7742 13.1828L10.1909 11.6411C9.54922 11.2578 9.07422 10.4161 9.07422 9.67448V6.25781C9.07422 5.91615 9.35755 5.63281 9.69922 5.63281C10.0409 5.63281 10.3242 5.91615 10.3242 6.25781V9.67448C10.3242 9.97448 10.5742 10.4161 10.8326 10.5661L13.4159 12.1078C13.7159 12.2828 13.8076 12.6661 13.6326 12.9661C13.5076 13.1661 13.2992 13.2745 13.0909 13.2745Z",fill:"#currentColor"})]}),chart:y("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{opacity:"0.4",d:"M13.491 1.66797H6.50768C3.47435 1.66797 1.66602 3.4763 1.66602 6.50964V13.4846C1.66602 16.5263 3.47435 18.3346 6.50768 18.3346H13.4827C16.516 18.3346 18.3243 16.5263 18.3243 13.493V6.50964C18.3327 3.4763 16.5243 1.66797 13.491 1.66797Z",fill:"#currentColor"}),l("path",{d:"M5.83398 11.9596C5.49232 11.9596 5.20898 11.6763 5.20898 11.3346V8.66797C5.20898 8.3263 5.49232 8.04297 5.83398 8.04297C6.17565 8.04297 6.45898 8.3263 6.45898 8.66797V11.343C6.45898 11.6846 6.17565 11.9596 5.83398 11.9596Z",fill:"#currentColor"}),l("path",{d:"M10 13.4065C9.65833 13.4065 9.375 13.1232 9.375 12.7815V7.21484C9.375 6.87318 9.65833 6.58984 10 6.58984C10.3417 6.58984 10.625 6.87318 10.625 7.21484V12.7815C10.625 13.1232 10.3417 13.4065 10 13.4065Z",fill:"#currentColor"}),l("path",{d:"M14.166 11.9596C13.8243 11.9596 13.541 11.6763 13.541 11.3346V8.66797C13.541 8.3263 13.8243 8.04297 14.166 8.04297C14.5077 8.04297 14.791 8.3263 14.791 8.66797V11.343C14.791 11.6846 14.5077 11.9596 14.166 11.9596Z",fill:"#currentColor"})]}),google:y("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M29.074 13.3887H28V13.3333H16V18.6667H23.5354C22.436 21.7713 19.482 24 16 24C11.582 24 8.00002 20.418 8.00002 16C8.00002 11.582 11.582 7.99999 16 7.99999C18.0394 7.99999 19.8947 8.76932 21.3074 10.026L25.0787 6.25466C22.6974 4.03532 19.512 2.66666 16 2.66666C8.63669 2.66666 2.66669 8.63666 2.66669 16C2.66669 23.3633 8.63669 29.3333 16 29.3333C23.3634 29.3333 29.3334 23.3633 29.3334 16C29.3334 15.106 29.2414 14.2333 29.074 13.3887Z",fill:"#FFC107"}),l("path",{d:"M4.20398 9.79399L8.58465 13.0067C9.76998 10.072 12.6406 7.99999 16 7.99999C18.0393 7.99999 19.8946 8.76932 21.3073 10.026L25.0786 6.25466C22.6973 4.03532 19.512 2.66666 16 2.66666C10.8786 2.66666 6.43731 5.55799 4.20398 9.79399Z",fill:"#FF3D00"}),l("path",{d:"M16 29.3333C19.444 29.3333 22.5733 28.0153 24.9393 25.872L20.8127 22.38C19.4293 23.4327 17.7384 24.0019 16 24C12.532 24 9.58734 21.7887 8.478 18.7027L4.13 22.0527C6.33667 26.3707 10.818 29.3333 16 29.3333Z",fill:"#4CAF50"}),l("path",{d:"M29.074 13.3887H28V13.3333H16V18.6667H23.5353C23.0095 20.1443 22.0622 21.4355 20.8107 22.3807L20.8127 22.3793L24.9393 25.8713C24.6473 26.1367 29.3333 22.6667 29.3333 16C29.3333 15.106 29.2413 14.2333 29.074 13.3887Z",fill:"#1976D2"})]}),"tick-square":y("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M5.9987 15.1673H9.9987C13.332 15.1673 14.6654 13.834 14.6654 10.5007V6.50065C14.6654 3.16732 13.332 1.83398 9.9987 1.83398H5.9987C2.66536 1.83398 1.33203 3.16732 1.33203 6.50065V10.5007C1.33203 13.834 2.66536 15.1673 5.9987 15.1673Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M5.16797 8.49995L7.05464 10.3866L10.8346 6.61328",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),calendar:y("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M16.7502 3.56V2C16.7502 1.59 16.4102 1.25 16.0002 1.25C15.5902 1.25 15.2502 1.59 15.2502 2V3.5H8.75023V2C8.75023 1.59 8.41023 1.25 8.00023 1.25C7.59023 1.25 7.25023 1.59 7.25023 2V3.56C4.55023 3.81 3.24023 5.42 3.04023 7.81C3.02023 8.1 3.26023 8.34 3.54023 8.34H20.4602C20.7502 8.34 20.9902 8.09 20.9602 7.81C20.7602 5.42 19.4502 3.81 16.7502 3.56Z",fill:"#currentColor"}),l("path",{d:"M20 9.83984H4C3.45 9.83984 3 10.2898 3 10.8398V16.9998C3 19.9998 4.5 21.9998 8 21.9998H16C19.5 21.9998 21 19.9998 21 16.9998V10.8398C21 10.2898 20.55 9.83984 20 9.83984ZM9.21 18.2098C9.16 18.2498 9.11 18.2998 9.06 18.3298C9 18.3698 8.94 18.3998 8.88 18.4198C8.82 18.4498 8.76 18.4698 8.7 18.4798C8.63 18.4898 8.57 18.4998 8.5 18.4998C8.37 18.4998 8.24 18.4698 8.12 18.4198C7.99 18.3698 7.89 18.2998 7.79 18.2098C7.61 18.0198 7.5 17.7598 7.5 17.4998C7.5 17.2398 7.61 16.9798 7.79 16.7898C7.89 16.6998 7.99 16.6298 8.12 16.5798C8.3 16.4998 8.5 16.4798 8.7 16.5198C8.76 16.5298 8.82 16.5498 8.88 16.5798C8.94 16.5998 9 16.6298 9.06 16.6698C9.11 16.7098 9.16 16.7498 9.21 16.7898C9.39 16.9798 9.5 17.2398 9.5 17.4998C9.5 17.7598 9.39 18.0198 9.21 18.2098ZM9.21 14.7098C9.02 14.8898 8.76 14.9998 8.5 14.9998C8.24 14.9998 7.98 14.8898 7.79 14.7098C7.61 14.5198 7.5 14.2598 7.5 13.9998C7.5 13.7398 7.61 13.4798 7.79 13.2898C8.07 13.0098 8.51 12.9198 8.88 13.0798C9.01 13.1298 9.12 13.1998 9.21 13.2898C9.39 13.4798 9.5 13.7398 9.5 13.9998C9.5 14.2598 9.39 14.5198 9.21 14.7098ZM12.71 18.2098C12.52 18.3898 12.26 18.4998 12 18.4998C11.74 18.4998 11.48 18.3898 11.29 18.2098C11.11 18.0198 11 17.7598 11 17.4998C11 17.2398 11.11 16.9798 11.29 16.7898C11.66 16.4198 12.34 16.4198 12.71 16.7898C12.89 16.9798 13 17.2398 13 17.4998C13 17.7598 12.89 18.0198 12.71 18.2098ZM12.71 14.7098C12.66 14.7498 12.61 14.7898 12.56 14.8298C12.5 14.8698 12.44 14.8998 12.38 14.9198C12.32 14.9498 12.26 14.9698 12.2 14.9798C12.13 14.9898 12.07 14.9998 12 14.9998C11.74 14.9998 11.48 14.8898 11.29 14.7098C11.11 14.5198 11 14.2598 11 13.9998C11 13.7398 11.11 13.4798 11.29 13.2898C11.38 13.1998 11.49 13.1298 11.62 13.0798C11.99 12.9198 12.43 13.0098 12.71 13.2898C12.89 13.4798 13 13.7398 13 13.9998C13 14.2598 12.89 14.5198 12.71 14.7098ZM16.21 18.2098C16.02 18.3898 15.76 18.4998 15.5 18.4998C15.24 18.4998 14.98 18.3898 14.79 18.2098C14.61 18.0198 14.5 17.7598 14.5 17.4998C14.5 17.2398 14.61 16.9798 14.79 16.7898C15.16 16.4198 15.84 16.4198 16.21 16.7898C16.39 16.9798 16.5 17.2398 16.5 17.4998C16.5 17.7598 16.39 18.0198 16.21 18.2098ZM16.21 14.7098C16.16 14.7498 16.11 14.7898 16.06 14.8298C16 14.8698 15.94 14.8998 15.88 14.9198C15.82 14.9498 15.76 14.9698 15.7 14.9798C15.63 14.9898 15.56 14.9998 15.5 14.9998C15.24 14.9998 14.98 14.8898 14.79 14.7098C14.61 14.5198 14.5 14.2598 14.5 13.9998C14.5 13.7398 14.61 13.4798 14.79 13.2898C14.89 13.1998 14.99 13.1298 15.12 13.0798C15.3 12.9998 15.5 12.9798 15.7 13.0198C15.76 13.0298 15.82 13.0498 15.88 13.0798C15.94 13.0998 16 13.1298 16.06 13.1698C16.11 13.2098 16.16 13.2498 16.21 13.2898C16.39 13.4798 16.5 13.7398 16.5 13.9998C16.5 14.2598 16.39 14.5198 16.21 14.7098Z",fill:"#currentColor"})]}),refresh:y("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M15.05 21.67C19.34 20.54 22.5 16.64 22.5 12C22.5 6.48 18.06 2 12.5 2C5.83 2 2.5 7.56 2.5 7.56M2.5 7.56V3M2.5 7.56H4.51H6.94",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M2.5 12C2.5 17.52 6.98 22 12.5 22",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"3 3"})]}),"design-tools":y("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M2.95988 10.7201L3.87988 11.6201L11.6299 3.88012L10.6999 2.95012C9.91988 2.17012 9.10988 1.78012 8.30988 1.78012C7.50988 1.78012 6.69988 2.17012 5.91988 2.95012L2.95988 5.91012C1.36988 7.51012 1.36988 9.12012 2.95988 10.7201Z",fill:"#currentColor"}),l("path",{d:"M13.31 21.0701C14.88 22.6401 16.53 22.6401 18.1 21.0701L21.07 18.1101C22.63 16.5401 22.63 14.8901 21.07 13.3201L20.15 12.4001L12.4 20.1501L13.31 21.0701Z",fill:"#currentColor"}),l("path",{d:"M2.18991 20.0599C3.49991 16.7899 6.48991 12.5199 9.33991 9.72991C9.74991 12.3099 11.8099 14.3299 14.4099 14.6899C11.6099 17.5499 7.30991 20.5799 4.02991 21.8999C3.44991 22.1199 2.86991 21.9499 2.50991 21.5899C2.12991 21.2099 1.94991 20.6399 2.18991 20.0599Z",fill:"#currentColor"}),l("path",{d:"M10.2199 8.91004C10.4199 8.74004 10.6199 8.57004 10.8199 8.41004L12.6099 6.98004C12.6099 7.01004 12.6199 7.05004 12.6199 7.09004C12.7599 8.16004 13.2599 9.15004 14.0699 9.96004C14.8899 10.78 15.9099 11.28 17.0299 11.42C17.0599 11.42 17.0999 11.43 17.1299 11.43L15.6799 13.26C15.5399 13.44 15.3899 13.61 15.2299 13.79L14.5499 13.7C12.3999 13.4 10.6699 11.71 10.3299 9.57004L10.2199 8.91004Z",fill:"#currentColor"}),l("path",{d:"M13.57 6.38018C13.57 5.28018 13.99 4.23018 14.79 3.44018C15.4 2.82018 16.22 2.40018 17.22 2.28018L19.67 2.01018C21.01 1.86018 22.16 3.01018 22.01 4.36018L21.74 6.82018C21.5 9.01018 19.67 10.4102 17.73 10.4502C17.54 10.4602 17.33 10.4502 17.13 10.4302C16.28 10.3202 15.46 9.93018 14.77 9.25018C14.1 8.58018 13.72 7.79018 13.61 6.96018C13.59 6.76018 13.57 6.57018 13.57 6.38018Z",fill:"#currentColor"})]}),"design-tools-linear":y("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y("g",{clipPath:"url(#clip0_1215_17258)",children:[l("path",{d:"M1.82539 16.7168C3.10873 13.5168 6.32539 9.16677 9.01706 7.00844L10.6587 5.69177C10.8671 5.54177 11.0754 5.40844 11.3087 5.31677C11.3087 5.46677 11.3171 5.63344 11.3421 5.79177C11.4337 6.49177 11.7504 7.14177 12.3087 7.7001C12.8754 8.26677 13.5671 8.6001 14.2754 8.69177C14.4421 8.7001 14.6087 8.71677 14.7754 8.7001C14.6837 8.95844 14.5421 9.2001 14.3671 9.4001L13.0671 11.0418C10.9171 13.7334 6.55039 16.9668 3.35873 18.2418C2.86706 18.4251 2.39206 18.2918 2.09206 17.9834C1.77539 17.6751 1.62539 17.2001 1.82539 16.7168Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M11.3083 5.31683C11.3083 4.40016 11.6583 3.52516 12.3166 2.8585C12.8249 2.35016 13.5166 2.00016 14.3416 1.89183L16.3916 1.66683C17.5083 1.54183 18.4666 2.49183 18.3333 3.62516L18.1083 5.67516C17.9083 7.50016 16.3833 8.66683 14.7666 8.70016C14.5999 8.70849 14.4249 8.70016 14.2666 8.69183C13.5583 8.60016 12.8666 8.27516 12.2999 7.70016C11.7416 7.14183 11.4249 6.49183 11.3333 5.79183C11.3249 5.6335 11.3083 5.47516 11.3083 5.31683Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M8.13255 7.94163C8.13255 10.1166 9.89922 11.8833 12.0742 11.8833",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M3.23372 9.3916L2.61706 8.78327C1.37539 7.5416 1.37539 6.3166 2.61706 5.07493L5.08372 2.60827C6.30872 1.38327 7.55039 1.38327 8.77539 2.60827",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l("path",{d:"M17.4074 11.2417C18.6324 12.4834 18.6324 13.7084 17.4074 14.95L14.9408 17.4167C13.7158 18.6417 12.4741 18.6417 11.2491 17.4167L10.6324 16.8",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l("path",{d:"M10.6257 16.7915L13.709 13.7082",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l("path",{d:"M3.23255 9.3916L5.69922 6.93327",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),l("defs",{children:l("clipPath",{id:"clip0_1215_17258",children:l("rect",{width:"20",height:"20",fill:"white",transform:"matrix(-1 0 0 -1 20 20)"})})})]}),building:y("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M1 22H23",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M19.78 22.0098V17.5498",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M19.8001 10.8901C18.5801 10.8901 17.6001 11.8701 17.6001 13.0901V15.3601C17.6001 16.5801 18.5801 17.5601 19.8001 17.5601C21.0201 17.5601 22.0001 16.5801 22.0001 15.3601V13.0901C22.0001 11.8701 21.0201 10.8901 19.8001 10.8901Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M2.1001 21.9998V6.02979C2.1001 4.01979 3.10015 3.00977 5.09015 3.00977H11.3201C13.3101 3.00977 14.3001 4.01979 14.3001 6.02979V21.9998",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M5.80005 8.25H10.7501",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M5.80005 12H10.7501",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M8.25 22V18.25",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),book:y("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M22 16.7402V4.67019C22 3.47019 21.02 2.58019 19.83 2.68019H19.77C17.67 2.86019 14.48 3.93019 12.7 5.05019L12.53 5.16019C12.24 5.34019 11.76 5.34019 11.47 5.16019L11.22 5.01019C9.44 3.90019 6.26 2.84019 4.16 2.67019C2.97 2.57019 2 3.47019 2 4.66019V16.7402C2 17.7002 2.78 18.6002 3.74 18.7202L4.03 18.7602C6.2 19.0502 9.55 20.1502 11.47 21.2002L11.51 21.2202C11.78 21.3702 12.21 21.3702 12.47 21.2202C14.39 20.1602 17.75 19.0502 19.93 18.7602L20.26 18.7202C21.22 18.6002 22 17.7002 22 16.7402Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M12 5.49023V20.4902",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7.75 8.49023H5.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M8.5 11.4902H5.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),menu:y("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M17.5401 8.31014C18.8987 8.31014 20.0001 7.20876 20.0001 5.85014C20.0001 4.49152 18.8987 3.39014 17.5401 3.39014C16.1814 3.39014 15.0801 4.49152 15.0801 5.85014C15.0801 7.20876 16.1814 8.31014 17.5401 8.31014Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M6.46001 8.31014C7.81863 8.31014 8.92 7.20876 8.92 5.85014C8.92 4.49152 7.81863 3.39014 6.46001 3.39014C5.10139 3.39014 4 4.49152 4 5.85014C4 7.20876 5.10139 8.31014 6.46001 8.31014Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M17.5401 20.6099C18.8987 20.6099 20.0001 19.5086 20.0001 18.1499C20.0001 16.7913 18.8987 15.6899 17.5401 15.6899C16.1814 15.6899 15.0801 16.7913 15.0801 18.1499C15.0801 19.5086 16.1814 20.6099 17.5401 20.6099Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M6.46001 20.6099C7.81863 20.6099 8.92 19.5086 8.92 18.1499C8.92 16.7913 7.81863 15.6899 6.46001 15.6899C5.10139 15.6899 4 16.7913 4 18.1499C4 19.5086 5.10139 20.6099 6.46001 20.6099Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),profile:y("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M12.1601 10.87C12.0601 10.86 11.9401 10.86 11.8301 10.87C9.45006 10.79 7.56006 8.84 7.56006 6.44C7.56006 3.99 9.54006 2 12.0001 2C14.4501 2 16.4401 3.99 16.4401 6.44C16.4301 8.84 14.5401 10.79 12.1601 10.87Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7.15997 14.56C4.73997 16.18 4.73997 18.82 7.15997 20.43C9.90997 22.27 14.42 22.27 17.17 20.43C19.59 18.81 19.59 16.17 17.17 14.56C14.43 12.73 9.91997 12.73 7.15997 14.56Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),scroll:y("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M7.4974 18.3334H12.4974C16.6641 18.3334 18.3307 16.6667 18.3307 12.5001V7.50008C18.3307 3.33341 16.6641 1.66675 12.4974 1.66675H7.4974C3.33073 1.66675 1.66406 3.33341 1.66406 7.50008V12.5001C1.66406 16.6667 3.33073 18.3334 7.4974 18.3334Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7.99844 7.4751L5.92344 9.5501C5.68177 9.79176 5.68177 10.2001 5.92344 10.4418L7.99844 12.5168",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M12 7.4751L14.075 9.5501C14.3167 9.79176 14.3167 10.2001 14.075 10.4418L12 12.5168",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),"programming-arrows":y("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M15.8359 13.3333V5.41667C15.8359 4.5 15.0859 3.75 14.1693 3.75H9.58594",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M11.6641 1.66675L9.16406 3.75008L11.6641 5.83341",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M15.8359 18.3333C17.2167 18.3333 18.3359 17.214 18.3359 15.8333C18.3359 14.4525 17.2167 13.3333 15.8359 13.3333C14.4552 13.3333 13.3359 14.4525 13.3359 15.8333C13.3359 17.214 14.4552 18.3333 15.8359 18.3333Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M4.16406 6.66675V14.5834C4.16406 15.5001 4.91406 16.2501 5.83073 16.2501H10.4141",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M8.33594 18.3334L10.8359 16.2501L8.33594 14.1667",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M4.16406 6.66675C5.54477 6.66675 6.66406 5.54746 6.66406 4.16675C6.66406 2.78604 5.54477 1.66675 4.16406 1.66675C2.78335 1.66675 1.66406 2.78604 1.66406 4.16675C1.66406 5.54746 2.78335 6.66675 4.16406 6.66675Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"chart-square":y("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M8.42394 9.29175H6.21561C5.69061 9.29175 5.26562 9.71671 5.26562 10.2417V14.5084H8.42394V9.29175V9.29175Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M10.6307 5.5H9.36405C8.83905 5.5 8.41406 5.92501 8.41406 6.45001V14.5H11.5724V6.45001C11.5724 5.92501 11.1557 5.5 10.6307 5.5Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M13.7865 10.7083H11.5781V14.5H14.7365V11.6583C14.7281 11.1333 14.3031 10.7083 13.7865 10.7083Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7.4974 18.3334H12.4974C16.6641 18.3334 18.3307 16.6667 18.3307 12.5001V7.50008C18.3307 3.33341 16.6641 1.66675 12.4974 1.66675H7.4974C3.33073 1.66675 1.66406 3.33341 1.66406 7.50008V12.5001C1.66406 16.6667 3.33073 18.3334 7.4974 18.3334Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"not-authorised":l("svg",{width:"567",height:"477",viewBox:"0 0 567 477",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y("g",{id:"Wallet is Empty",children:[l("path",{id:"Fill 1",fillRule:"evenodd",clipRule:"evenodd",d:"M381.279 454.698C381.279 458.397 333.675 461.397 274.952 461.397C216.228 461.397 168.621 458.397 168.621 454.698C168.621 451.001 216.228 448.001 274.952 448.001C333.675 448.001 381.279 451.001 381.279 454.698Z",fill:"#DCDCE2"}),l("path",{id:"Stroke 3",d:"M261.521 24.3588C203.517 29.269 182.198 78.3658 199.663 106.985C211.986 127.177 232.868 154.466 271.795 147.92C310.719 141.373 313.999 105.349 293.499 100.449C272.999 95.5506 199.968 118.404 208.221 171.199C214.179 209.292 265.822 220.272 265.822 220.272",stroke:"#DCDCE2",strokeWidth:"1.74009",strokeDasharray:"6.09",fill:"none"}),l("path",{id:"Fill 13",fillRule:"evenodd",clipRule:"evenodd",d:"M307.202 7.73229C305.109 7.22812 303.812 5.11772 304.316 3.00409C304.818 0.905003 306.933 -0.395817 309.024 0.108351C311.127 0.615752 312.411 2.73423 311.911 4.83493C311.405 6.94695 309.306 8.23807 307.202 7.73229Z",fill:"#DCDCE2"}),l("path",{id:"Stroke 25",d:"M19.5938 265.483V270.506",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 27",d:"M9.54492 270.507L12.8939 273.856",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 29",d:"M4.52344 280.554H9.54685",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 31",d:"M9.54492 290.6L12.8939 287.251",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 33",d:"M19.5938 295.623V290.6",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 35",d:"M29.64 290.6L26.291 287.251",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 37",d:"M34.6601 280.554H29.6367",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 39",d:"M29.64 270.507L26.291 273.856",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 41",d:"M277.465 59.5231V62.872",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 43",d:"M269.092 67.8953H272.441",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 45",d:"M277.465 77.9412V74.5922",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 47",d:"M287.505 69.5707H284.156",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 49",d:"M93.2695 191.806V196.829",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 51",d:"M78.1992 206.877H83.2226",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 53",d:"M91.5938 220.273V215.249",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 55",d:"M106.666 206.877H101.643",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 57",d:"M434.86 367.625C438.559 367.625 441.558 370.624 441.558 374.324C441.558 378.022 438.559 381.021 434.86 381.021C431.161 381.021 428.162 378.022 428.162 374.324",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round",fill:"none"}),l("path",{id:"Stroke 59",d:"M466.564 458.951C467.419 464.931 463.286 470.473 457.335 471.33C451.388 472.187 445.872 468.035 445.02 462.055C444.167 456.074 448.298 450.531 454.249 449.674",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round",fill:"none"}),l("path",{id:"Fill 61",fillRule:"evenodd",clipRule:"evenodd",d:"M466.676 303.995C470.736 302.711 476.957 297.684 478.398 292.275C479.703 297.057 485.177 302.711 490.118 303.141C484.558 305.137 479.241 311.063 478.398 315.717C477.823 310.973 470.471 304.687 466.676 303.995Z",fill:"#EBECEF"}),l("path",{id:"Fill 63",fillRule:"evenodd",clipRule:"evenodd",d:"M46.3828 365.113C48.4134 364.471 51.5238 361.957 52.2443 359.253C52.8969 361.643 55.633 364.471 58.1041 364.686C55.3233 365.683 52.665 368.646 52.2443 370.974C51.9561 368.602 48.2809 365.458 46.3828 365.113Z",fill:"#EBECEF"}),l("path",{id:"Fill 65",fillRule:"evenodd",clipRule:"evenodd",d:"M83.2246 143.247C83.2246 146.023 80.975 148.271 78.2011 148.271C75.4257 148.271 73.1777 146.023 73.1777 143.247C73.1777 140.472 75.4257 138.224 78.2011 138.224C80.975 138.224 83.2246 140.472 83.2246 143.247Z",fill:"#D1D9E0"}),l("path",{id:"Fill 69",fillRule:"evenodd",clipRule:"evenodd",d:"M565.472 133.198C565.472 136.899 562.474 139.897 558.775 139.897C555.074 139.897 552.076 136.899 552.076 133.198C552.076 129.499 555.074 126.501 558.775 126.501C562.474 126.501 565.472 129.499 565.472 133.198Z",fill:"#EBECEF"}),l("path",{id:"Stroke 73",fillRule:"evenodd",clipRule:"evenodd",d:"M180.344 108.083C180.344 110.858 178.094 113.106 175.32 113.106C172.545 113.106 170.297 110.858 170.297 108.083C170.297 105.308 172.545 103.06 175.32 103.06C178.094 103.06 180.344 105.308 180.344 108.083Z",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round",fill:"none"}),l("path",{id:"Stroke 75",fillRule:"evenodd",clipRule:"evenodd",d:"M102.348 425.793C98.8919 427.108 95.0247 425.372 93.7097 421.916C92.393 418.459 94.1305 414.592 97.5871 413.277C101.044 411.96 104.911 413.698 106.226 417.154C107.541 420.611 105.805 424.478 102.348 425.793Z",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round",fill:"none"}),l("g",{id:"lock",children:y("g",{id:"vuesax/bold/lock",children:[l("path",{id:"Vector",d:"M284.131 335.746C297.112 335.746 307.636 325.222 307.636 312.24C307.636 299.259 297.112 288.735 284.131 288.735C271.149 288.735 260.625 299.259 260.625 312.24C260.625 325.222 271.149 335.746 284.131 335.746Z",fill:"#D4D4D8"}),l("path",{id:"Vector_2",d:"M374.69 222.977V204.951C374.69 166.015 365.316 114.39 284.128 114.39C202.94 114.39 193.567 166.015 193.567 204.951V222.977C153.189 228.024 139.922 248.501 139.922 298.829V325.652C139.922 384.776 157.948 402.802 217.072 402.802H351.184C410.308 402.802 428.334 384.776 428.334 325.652V298.829C428.334 248.501 415.067 228.024 374.69 222.977ZM284.128 355.791C260.046 355.791 240.578 336.179 240.578 312.24C240.578 288.158 260.19 268.69 284.128 268.69C308.066 268.69 327.678 288.302 327.678 312.24C327.678 336.323 308.21 355.791 284.128 355.791ZM217.072 221.679C215.919 221.679 214.909 221.679 213.755 221.679V204.951C213.755 162.699 225.725 134.578 284.128 134.578C342.532 134.578 354.501 162.699 354.501 204.951V221.823C353.347 221.823 352.338 221.823 351.184 221.823H217.072V221.679Z",fill:"#D4D4D8"})]})})]})}),"money-tick":y("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M6.09593 6.67136C6.72709 6.67136 7.23874 6.1597 7.23874 5.52855C7.23874 4.89739 6.72709 4.38574 6.09593 4.38574C5.46478 4.38574 4.95312 4.89739 4.95312 5.52855C4.95312 6.1597 5.46478 6.67136 6.09593 6.67136Z",stroke:"#currentColor",strokeWidth:"1.02853",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M9.07031 4.38574V6.67136",stroke:"#currentColor",strokeWidth:"1.02853",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M4.71948 8.27136C4.71948 8.6142 4.62349 8.93876 4.45436 9.21303C4.13894 9.74329 3.55839 10.0999 2.89099 10.0999C2.22359 10.0999 1.64304 9.74329 1.32762 9.21303C1.15849 8.93876 1.0625 8.6142 1.0625 8.27136C1.0625 7.26112 1.88075 6.44287 2.89099 6.44287C3.90123 6.44287 4.71948 7.26112 4.71948 8.27136Z",stroke:"#currentColor",strokeWidth:"1.02853",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M2.17969 8.27121L2.63223 8.72376L3.60591 7.82324",stroke:"#currentColor",strokeWidth:"1.02853",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M1.52344 7.03755V4.15768C1.52344 2.55775 2.43768 1.87207 3.80905 1.87207H8.38028C9.75164 1.87207 10.6659 2.55775 10.6659 4.15768V6.90042C10.6659 8.50035 9.75164 9.18603 8.38028 9.18603H4.49473",stroke:"#currentColor",strokeWidth:"1.02853",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),download:y("svg",{width:"19",height:"19",viewBox:"0 0 19 19",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M11.7653 17.1156H6.84114C3.13289 17.1156 1.54688 15.5296 1.54688 11.8213V11.7232C1.54688 8.36988 2.86855 6.75366 5.82911 6.47422C6.13121 6.45156 6.4182 6.67813 6.44841 6.98778C6.47862 7.29743 6.25205 7.57687 5.93485 7.60708C3.56338 7.82611 2.67974 8.94387 2.67974 11.7307V11.8289C2.67974 14.9027 3.76729 15.9903 6.84114 15.9903H11.7653C14.8392 15.9903 15.9267 14.9027 15.9267 11.8289V11.7307C15.9267 8.92876 15.028 7.811 12.6112 7.60708C12.3016 7.57687 12.0674 7.30499 12.0976 6.99534C12.1279 6.68569 12.3922 6.45156 12.7094 6.48177C15.7153 6.73855 17.0596 8.36233 17.0596 11.7383V11.8365C17.0596 15.5296 15.4736 17.1156 11.7653 17.1156Z",fill:"#71717A"}),l("path",{d:"M9.30081 12.1143C8.99116 12.1143 8.73438 11.8575 8.73438 11.5479V1.82034C8.73438 1.51069 8.99116 1.25391 9.30081 1.25391C9.61046 1.25391 9.86724 1.51069 9.86724 1.82034V11.5479C9.86724 11.8651 9.61046 12.1143 9.30081 12.1143Z",fill:"#292D32"}),l("path",{d:"M9.29969 12.9618C9.1562 12.9618 9.0127 12.909 8.89941 12.7957L6.36934 10.2656C6.15032 10.0466 6.15032 9.68407 6.36934 9.46505C6.58836 9.24603 6.95088 9.24603 7.1699 9.46505L9.29969 11.5948L11.4295 9.46505C11.6485 9.24603 12.011 9.24603 12.23 9.46505C12.4491 9.68407 12.4491 10.0466 12.23 10.2656L9.69997 12.7957C9.58669 12.909 9.44319 12.9618 9.29969 12.9618Z",fill:"#292D32"})]}),receipt:y("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M22 6V8.42C22 10 21 11 19.42 11H16V4.01C16 2.9 16.91 2 18.02 2C19.11 2.01 20.11 2.45 20.83 3.17C21.55 3.9 22 4.9 22 6Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M2 7V21C2 21.83 2.93998 22.3 3.59998 21.8L5.31 20.52C5.71 20.22 6.27 20.26 6.63 20.62L8.28998 22.29C8.67998 22.68 9.32002 22.68 9.71002 22.29L11.39 20.61C11.74 20.26 12.3 20.22 12.69 20.52L14.4 21.8C15.06 22.29 16 21.82 16 21V4C16 2.9 16.9 2 18 2H7H6C3 2 2 3.79 2 6V7Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),"user-add":y("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M12 12.5C14.7614 12.5 17 10.2614 17 7.5C17 4.73858 14.7614 2.5 12 2.5C9.23858 2.5 7 4.73858 7 7.5C7 10.2614 9.23858 12.5 12 12.5Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M3.40991 22.5C3.40991 18.63 7.25991 15.5 11.9999 15.5C12.9599 15.5 13.8899 15.63 14.7599 15.87",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M22 18.5C22 18.82 21.96 19.13 21.88 19.43C21.79 19.83 21.63 20.22 21.42 20.56C20.73 21.72 19.46 22.5 18 22.5C16.97 22.5 16.04 22.11 15.34 21.47C15.04 21.21 14.78 20.9 14.58 20.56C14.21 19.96 14 19.25 14 18.5C14 17.42 14.43 16.43 15.13 15.71C15.86 14.96 16.88 14.5 18 14.5C19.18 14.5 20.25 15.01 20.97 15.83C21.61 16.54 22 17.48 22 18.5Z",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M19.49 18.48H16.51",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M18 17.02V20.01",stroke:"#currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]}),"logo-placeholder":y("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("rect",{x:"0.5",y:"0.5",width:"41",height:"41",rx:"14.5",fill:"#F7FEE7"}),l("rect",{x:"0.5",y:"0.5",width:"41",height:"41",rx:"14.5",stroke:"#84CC16"}),l("path",{d:"M21.5 31.0003H13.08C11.92 31.0003 10.97 30.0703 10.97 28.9303V14.0903C10.97 11.4703 12.92 10.2803 15.31 11.4503L19.75 13.6303C20.71 14.1003 21.5 15.3503 21.5 16.4103V31.0003Z",stroke:"#65A30D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M30.97 24.0599V27.8399C30.97 29.9999 29.97 30.9999 27.81 30.9999H21.5V19.4199L21.97 19.5199L26.47 20.5299L28.5 20.9799C29.82 21.2699 30.9 21.9499 30.96 23.8699C30.97 23.9299 30.97 23.9899 30.97 24.0599Z",stroke:"#65A30D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M14.5 18H17.97",stroke:"#65A30D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M14.5 22H17.97",stroke:"#65A30D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M26.47 20.53V23.75C26.47 24.99 25.46 26 24.22 26C22.98 26 21.97 24.99 21.97 23.75V19.52L26.47 20.53Z",stroke:"#65A30D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M30.96 23.8703C30.9 25.0503 29.92 26.0003 28.72 26.0003C27.48 26.0003 26.47 24.9903 26.47 23.7503V20.5303L28.5 20.9803C29.82 21.2703 30.9 21.9503 30.96 23.8703Z",stroke:"#65A30D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),verify:y("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M6.08594 8.00005L7.6926 9.61339L10.9126 6.38672",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7.66594 1.63338C8.12594 1.24005 8.87927 1.24005 9.34594 1.63338L10.3993 2.54005C10.5993 2.71338 10.9726 2.85338 11.2393 2.85338H12.3726C13.0793 2.85338 13.6593 3.43338 13.6593 4.14005V5.27338C13.6593 5.53338 13.7993 5.91338 13.9726 6.11338L14.8793 7.16671C15.2726 7.62671 15.2726 8.38005 14.8793 8.84671L13.9726 9.90005C13.7993 10.1 13.6593 10.4734 13.6593 10.74V11.8734C13.6593 12.58 13.0793 13.16 12.3726 13.16H11.2393C10.9793 13.16 10.5993 13.3 10.3993 13.4734L9.34594 14.38C8.88594 14.7734 8.1326 14.7734 7.66594 14.38L6.6126 13.4734C6.4126 13.3 6.03927 13.16 5.7726 13.16H4.61927C3.9126 13.16 3.3326 12.58 3.3326 11.8734V10.7334C3.3326 10.4734 3.1926 10.1 3.02594 9.90005L2.12594 8.84005C1.73927 8.38005 1.73927 7.63338 2.12594 7.17338L3.02594 6.11338C3.1926 5.91338 3.3326 5.54005 3.3326 5.28005V4.13338C3.3326 3.42671 3.9126 2.84671 4.61927 2.84671H5.7726C6.0326 2.84671 6.4126 2.70671 6.6126 2.53338L7.66594 1.63338Z",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),infinity:l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M8.00057 7.99968C7.63475 8.7098 7.14429 9.34839 6.55257 9.88501C6.17966 10.258 5.70451 10.5121 5.1872 10.615C4.6699 10.718 4.13368 10.6652 3.64636 10.4634C3.15905 10.2616 2.74252 9.91983 2.44947 9.48128C2.15642 9.04273 2 8.52713 2 7.99968C2 7.47222 2.15642 6.95662 2.44947 6.51807C2.74252 6.07952 3.15905 5.73773 3.64636 5.53592C4.13368 5.33411 4.6699 5.28135 5.1872 5.38431C5.70451 5.48727 6.17966 5.74132 6.55257 6.11434C7.14429 6.65096 7.63475 7.28956 8.00057 7.99968ZM8.00057 7.99968C8.36639 7.28956 8.85685 6.65096 9.44857 6.11434C9.82148 5.74132 10.2966 5.48727 10.8139 5.38431C11.3312 5.28135 11.8675 5.33411 12.3548 5.53592C12.8421 5.73773 13.2586 6.07952 13.5517 6.51807C13.8447 6.95662 14.0011 7.47222 14.0011 7.99968C14.0011 8.52713 13.8447 9.04273 13.5517 9.48128C13.2586 9.91983 12.8421 10.2616 12.3548 10.4634C11.8675 10.6652 11.3312 10.718 10.8139 10.615C10.2966 10.5121 9.82148 10.258 9.44857 9.88501C8.85685 9.34839 8.36639 8.7098 8.00057 7.99968Z",stroke:"#currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),anchor:l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"#currentColor",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M8 14.6663C7.32222 14.6663 6.62778 14.5441 5.91667 14.2997C5.20556 14.0552 4.56111 13.7219 3.98333 13.2997C3.40556 12.8775 2.93067 12.383 2.55867 11.8163C2.18667 11.2497 2.00044 10.6441 2 9.99967V7.99967L4.66667 9.99967L3.63333 11.033C3.95556 11.5997 4.46667 12.0886 5.16667 12.4997C5.86667 12.9108 6.58889 13.1719 7.33333 13.283V7.33301H5.33333V5.99967H7.33333V5.21634C6.94444 5.0719 6.62511 4.83012 6.37533 4.49101C6.12556 4.1519 6.00044 3.7659 6 3.33301C6 2.77745 6.19444 2.30523 6.58333 1.91634C6.97222 1.52745 7.44444 1.33301 8 1.33301C8.55556 1.33301 9.02778 1.52745 9.41667 1.91634C9.80556 2.30523 10 2.77745 10 3.33301C10 3.76634 9.87511 4.15256 9.62533 4.49167C9.37556 4.83079 9.056 5.07234 8.66667 5.21634V5.99967H10.6667V7.33301H8.66667V13.283C9.41111 13.1719 10.1333 12.9108 10.8333 12.4997C11.5333 12.0886 12.0444 11.5997 12.3667 11.033L11.3333 9.99967L14 7.99967V9.99967C14 10.6441 13.814 11.2497 13.442 11.8163C13.07 12.383 12.5949 12.8775 12.0167 13.2997C11.4384 13.7219 10.794 14.0552 10.0833 14.2997C9.37267 14.5441 8.67822 14.6663 8 14.6663ZM8 3.99967C8.18889 3.99967 8.34733 3.9359 8.47533 3.80834C8.60333 3.68079 8.66711 3.52234 8.66667 3.33301C8.66622 3.14367 8.60222 2.98545 8.47467 2.85834C8.34711 2.73123 8.18889 2.66723 8 2.66634C7.81111 2.66545 7.65289 2.72945 7.52533 2.85834C7.39778 2.98723 7.33378 3.14545 7.33333 3.33301C7.33289 3.52056 7.39689 3.67901 7.52533 3.80834C7.65378 3.93767 7.812 4.00145 8 3.99967Z",fill:"#none"})}),"increment-quota":y("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M6.66634 2.99967C6.66634 2.0792 5.92014 1.33301 4.99967 1.33301C4.07921 1.33301 3.33301 2.0792 3.33301 2.99967V6.33301C3.33301 7.25347 4.07921 7.99967 4.99967 7.99967C5.92014 7.99967 6.66634 7.25347 6.66634 6.33301V2.99967Z",stroke:"#currentColor",strokeWidth:"1.33333"}),l("path",{d:"M11.9485 7.33301V1.33301L9.88574 2.83301",stroke:"#currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M10.667 10.667L12.667 12.667L10.667 14.667",stroke:"#currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M12.6667 12.667H5",stroke:"#currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})]}),"override-quota":y("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M3.51643 8.61065V7.09422C3.51643 5.88767 3.99573 4.73054 4.84889 3.87738C5.70205 3.02422 6.85918 2.54492 8.06573 2.54492C9.27227 2.54492 10.4294 3.02422 11.2826 3.87738C12.1357 4.73054 12.2359 5.19868 12.615 5.95689M2 13.1599C2 13.5621 2.15977 13.9478 2.44415 14.2322C2.72854 14.5166 3.11425 14.6764 3.51643 14.6764C3.91861 14.6764 4.30432 14.5166 4.58871 14.2322C4.8731 13.9478 5.03286 13.5621 5.03286 13.1599C5.03286 12.7578 4.8731 12.372 4.58871 12.0877C4.30432 11.8033 3.91861 11.6435 3.51643 11.6435C3.11425 11.6435 2.72854 11.8033 2.44415 12.0877C2.15977 12.372 2 12.7578 2 13.1599Z",stroke:"#currentColor",strokeWidth:"1.51643",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M9.96094 5.52148L12.8454 6.94546L14.2694 4.06096",stroke:"#currentColor",strokeWidth:"1.51643",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M13.2906 14.6753V10.126L11.7266 11.2633",stroke:"#currentColor",strokeWidth:"1.36479",strokeLinecap:"round",strokeLinejoin:"round"})]}),sandbox:y("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M19.953 8.017L21 15M21 15V17C21 17.7956 20.6839 18.5587 20.1213 19.1213C19.5587 19.6839 18.7956 20 18 20H6C5.20435 20 4.44129 19.6839 3.87868 19.1213C3.31607 18.5587 3 17.7956 3 17V15M21 15H3M3 15L4.245 6.703C4.31611 6.22948 4.55474 5.79719 4.91752 5.48468C5.28031 5.17218 5.74317 5.0002 6.222 5H10M13 3L18.5 4.5M15.75 3.75L13.75 10.75",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7 10.5C8.66667 9.83333 10.3333 9.83333 12 10.5C13.6667 11.1667 15.3333 11.1667 17 10.5",stroke:"#currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),"coming-soon":l("svg",{width:"567",height:"477",viewBox:"0 0 567 477",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:y("g",{id:"Wallet is Empty",children:[l("path",{id:"Fill 1",fillRule:"evenodd",clipRule:"evenodd",d:"M381.279 454.698C381.279 458.397 333.675 461.397 274.952 461.397C216.228 461.397 168.621 458.397 168.621 454.698C168.621 451.001 216.228 448.001 274.952 448.001C333.675 448.001 381.279 451.001 381.279 454.698Z",fill:"#DCDCE2"}),l("path",{id:"Stroke 3",d:"M261.521 24.3589C203.517 29.2691 182.198 78.3659 199.663 106.985C211.986 127.177 232.868 154.466 271.795 147.92C310.719 141.373 313.999 105.349 293.499 100.449C272.999 95.5507 199.968 118.404 208.221 171.199C214.179 209.292 265.822 220.272 265.822 220.272",stroke:"#DCDCE2",strokeWidth:"1.74009",strokeDasharray:"6.09"}),l("path",{id:"Fill 13",fillRule:"evenodd",clipRule:"evenodd",d:"M307.202 7.73247C305.109 7.2283 303.812 5.1179 304.316 3.00427C304.818 0.905186 306.933 -0.395634 309.024 0.108534C311.127 0.615935 312.411 2.73441 311.911 4.83512C311.405 6.94713 309.306 8.23825 307.202 7.73247Z",fill:"#DCDCE2"}),l("path",{id:"Stroke 25",d:"M19.5938 265.483V270.506",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 27",d:"M9.54492 270.506L12.8939 273.855",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 29",d:"M4.52344 280.554H9.54685",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 31",d:"M9.54492 290.6L12.8939 287.251",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 33",d:"M19.5938 295.623V290.599",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 35",d:"M29.64 290.6L26.291 287.251",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 37",d:"M34.6601 280.554H29.6367",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 39",d:"M29.64 270.506L26.291 273.855",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 41",d:"M277.465 59.5232V62.8721",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 43",d:"M269.092 67.8955H272.441",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 45",d:"M277.465 77.941V74.592",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 47",d:"M287.505 69.5706H284.156",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 49",d:"M93.2695 191.806V196.829",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 51",d:"M78.1992 206.877H83.2226",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 53",d:"M91.5938 220.273V215.249",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 55",d:"M106.666 206.877H101.643",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 57",d:"M434.86 367.625C438.559 367.625 441.558 370.624 441.558 374.324C441.558 378.022 438.559 381.021 434.86 381.021C431.161 381.021 428.162 378.022 428.162 374.324",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 59",d:"M466.564 458.951C467.419 464.93 463.286 470.473 457.335 471.33C451.388 472.187 445.872 468.035 445.02 462.055C444.167 456.074 448.298 450.531 454.249 449.674",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Fill 61",fillRule:"evenodd",clipRule:"evenodd",d:"M466.676 303.995C470.736 302.711 476.957 297.684 478.398 292.275C479.703 297.057 485.177 302.711 490.118 303.141C484.558 305.137 479.241 311.063 478.398 315.717C477.823 310.972 470.471 304.687 466.676 303.995Z",fill:"#EBECEF"}),l("path",{id:"Fill 63",fillRule:"evenodd",clipRule:"evenodd",d:"M46.3828 365.113C48.4134 364.472 51.5238 361.957 52.2443 359.253C52.8969 361.643 55.633 364.472 58.1041 364.686C55.3233 365.683 52.665 368.646 52.2443 370.974C51.9561 368.602 48.2809 365.459 46.3828 365.113Z",fill:"#EBECEF"}),l("path",{id:"Fill 65",fillRule:"evenodd",clipRule:"evenodd",d:"M83.2246 143.248C83.2246 146.023 80.975 148.271 78.2011 148.271C75.4257 148.271 73.1777 146.023 73.1777 143.248C73.1777 140.472 75.4257 138.224 78.2011 138.224C80.975 138.224 83.2246 140.472 83.2246 143.248Z",fill:"#D1D9E0"}),l("path",{id:"Fill 69",fillRule:"evenodd",clipRule:"evenodd",d:"M565.472 133.198C565.472 136.899 562.474 139.897 558.775 139.897C555.074 139.897 552.076 136.899 552.076 133.198C552.076 129.499 555.074 126.501 558.775 126.501C562.474 126.501 565.472 129.499 565.472 133.198Z",fill:"#EBECEF"}),l("path",{id:"Stroke 73",fillRule:"evenodd",clipRule:"evenodd",d:"M180.344 108.083C180.344 110.859 178.094 113.107 175.32 113.107C172.545 113.107 170.297 110.859 170.297 108.083C170.297 105.308 172.545 103.06 175.32 103.06C178.094 103.06 180.344 105.308 180.344 108.083Z",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("path",{id:"Stroke 75",fillRule:"evenodd",clipRule:"evenodd",d:"M102.348 425.793C98.8919 427.108 95.0247 425.372 93.7097 421.916C92.393 418.459 94.1305 414.592 97.5871 413.277C101.044 411.96 104.911 413.698 106.226 417.154C107.541 420.611 105.805 424.478 102.348 425.793Z",stroke:"#D2D8DF",strokeWidth:"2.5414",strokeLinecap:"round"}),l("g",{id:"timer",children:l("g",{id:"vuesax/bold/timer",children:y("g",{id:"timer_2",children:[l("path",{id:"Vector",d:"M284.132 152.604C215.202 152.604 159.105 208.7 159.105 277.63C159.105 346.561 215.202 402.801 284.132 402.801C353.063 402.801 409.159 346.705 409.159 277.775C409.159 208.844 353.063 152.604 284.132 152.604ZM294.948 273.016C294.948 278.928 290.045 283.831 284.132 283.831C278.22 283.831 273.317 278.928 273.317 273.016V200.913C273.317 195 278.22 190.097 284.132 190.097C290.045 190.097 294.948 195 294.948 200.913V273.016Z",fill:"#D4D4D8"}),l("path",{id:"Vector_2",d:"M325.806 135.299H242.455C236.687 135.299 232.072 130.685 232.072 124.916C232.072 119.148 236.687 114.389 242.455 114.389H325.806C331.575 114.389 336.189 119.004 336.189 124.772C336.189 130.54 331.575 135.299 325.806 135.299Z",fill:"#D4D4D8"})]})})})]})}),import:y("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M11.9999 9.12495C11.8415 9.12495 11.6832 9.06662 11.5582 8.94162C11.3165 8.69995 11.3165 8.29995 11.5582 8.05828L18.3915 1.22495C18.6332 0.983285 19.0332 0.983285 19.2749 1.22495C19.5165 1.46662 19.5165 1.86662 19.2749 2.10828L12.4415 8.94162C12.3249 9.05828 12.1665 9.12495 11.9999 9.12495Z",fill:"#292D32"}),l("path",{d:"M15.359 9.7916H11.334C10.9923 9.7916 10.709 9.50827 10.709 9.1666V5.1416C10.709 4.79993 10.9923 4.5166 11.334 4.5166C11.6757 4.5166 11.959 4.79993 11.959 5.1416V8.5416H15.359C15.7007 8.5416 15.984 8.82493 15.984 9.1666C15.984 9.50827 15.7007 9.7916 15.359 9.7916Z",fill:"#292D32"}),l("path",{d:"M12.9993 18.9584H7.99935C3.47435 18.9584 1.54102 17.0251 1.54102 12.5001V7.50008C1.54102 2.97508 3.47435 1.04175 7.99935 1.04175H9.66602C10.0077 1.04175 10.291 1.32508 10.291 1.66675C10.291 2.00841 10.0077 2.29175 9.66602 2.29175H7.99935C4.15768 2.29175 2.79102 3.65841 2.79102 7.50008V12.5001C2.79102 16.3417 4.15768 17.7084 7.99935 17.7084H12.9993C16.841 17.7084 18.2077 16.3417 18.2077 12.5001V10.8334C18.2077 10.4917 18.491 10.2084 18.8327 10.2084C19.1744 10.2084 19.4577 10.4917 19.4577 10.8334V12.5001C19.4577 17.0251 17.5243 18.9584 12.9993 18.9584Z",fill:"#292D32"})]}),extras:l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M14 6H10M14 6V2H10L10 6M14 6L14 10H10M10 6L6 6M10 6V10M2 10V14H6V10M2 10L6 10M2 10L2 6H6M6 10L6 6M6 10H10",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})}),"card-receive":y("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M1.33301 5.66699H9.66634",stroke:"currentColor",strokeWidth:"1.2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M4 11H5.33333",stroke:"currentColor",strokeWidth:"1.2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M7 11H9.66667",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M14.6663 9.35301V10.7397C14.6663 13.0797 14.073 13.6663 11.7063 13.6663H4.29301C1.92634 13.6663 1.33301 13.0797 1.33301 10.7397V5.25967C1.33301 2.91967 1.92634 2.33301 4.29301 2.33301H9.66634",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M13.333 2.33301V6.33301L14.6663 4.99967",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l("path",{d:"M13.3333 6.33333L12 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),radar:l("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("path",{d:"M3.99967 3.33333C5.11301 2.5 6.49967 2 7.99967 2C11.6797 2 14.6663 4.98667 14.6663 8.66667C14.6663 12.3467 11.6797 15.3333 7.99967 15.3333C4.31967 15.3333 1.33301 12.3467 1.33301 8.66667C1.33301 7.46 1.653 6.32666 2.21967 5.34666L7.99967 8.66667",stroke:"currentColor",strokeWidth:"1.2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}),subtitle:y("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M9.99967 15.1663H5.99967C2.37967 15.1663 0.833008 13.6197 0.833008 9.99967V5.99967C0.833008 2.37967 2.37967 0.833008 5.99967 0.833008H9.99967C13.6197 0.833008 15.1663 2.37967 15.1663 5.99967V9.99967C15.1663 13.6197 13.6197 15.1663 9.99967 15.1663ZM5.99967 1.83301C2.92634 1.83301 1.83301 2.92634 1.83301 5.99967V9.99967C1.83301 13.073 2.92634 14.1663 5.99967 14.1663H9.99967C13.073 14.1663 14.1663 13.073 14.1663 9.99967V5.99967C14.1663 2.92634 13.073 1.83301 9.99967 1.83301H5.99967Z",fill:"#27272A"}),l("path",{d:"M11.6669 11.8867H10.4336C10.1603 11.8867 9.93359 11.6601 9.93359 11.3867C9.93359 11.1134 10.1603 10.8867 10.4336 10.8867H11.6669C11.9403 10.8867 12.1669 11.1134 12.1669 11.3867C12.1669 11.6601 11.9403 11.8867 11.6669 11.8867Z",fill:"#27272A"}),l("path",{d:"M8.64634 11.8867H4.33301C4.05967 11.8867 3.83301 11.6601 3.83301 11.3867C3.83301 11.1134 4.05967 10.8867 4.33301 10.8867H8.64634C8.91967 10.8867 9.14634 11.1134 9.14634 11.3867C9.14634 11.6601 8.92634 11.8867 8.64634 11.8867Z",fill:"#27272A"}),l("path",{d:"M11.6671 9.37988H7.98047C7.70714 9.37988 7.48047 9.15322 7.48047 8.87988C7.48047 8.60655 7.70714 8.37988 7.98047 8.37988H11.6671C11.9405 8.37988 12.1671 8.60655 12.1671 8.87988C12.1671 9.15322 11.9405 9.37988 11.6671 9.37988Z",fill:"#27272A"}),l("path",{d:"M6.17967 9.37988H4.33301C4.05967 9.37988 3.83301 9.15322 3.83301 8.87988C3.83301 8.60655 4.05967 8.37988 4.33301 8.37988H6.17967C6.45301 8.37988 6.67967 8.60655 6.67967 8.87988C6.67967 9.15322 6.45301 9.37988 6.17967 9.37988Z",fill:"#27272A"})]})},he=({name:e,size:t=24,color:n="currentColor"})=>{const r=_p[e];if(!r)return null;const o=n==="currentColor"?n:$p(n),{props:s}=r;return l("svg",{xmlns:s.xmlns,viewBox:s.viewBox,width:t,height:t,fill:s.fill==="none"?"none":o,stroke:s.fill==="none"?o:"none",children:s.children})};var Cr=(e=>(e.NONE="none",e.DAILY="daily",e.WEEKLY="weekly",e.MONTHLY="monthly",e.QUARTERLY="quarterly",e.YEARLY="yearly",e.BI_ANNUALLY="biannually",e))(Cr||{}),ke=(e=>(e.DAILY="daily",e.WEEKLY="weekly",e.MONTHLY="monthly",e.YEARLY="yearly",e.QUARTERLY="quarterly",e.BIANNUALLY="biannually",e.CUSTOM="custom",e))(ke||{}),No=(e=>(e.InAdvance="in_advance",e.InArrears="in_arrears",e))(No||{}),pn=(e=>(e.BOOLEAN="boolean",e.METERED="metered",e))(pn||{}),Op=(e=>(e.ARCHIVED="archived",e.ACTIVE="active",e.ALL="all",e))(Op||{}),Bp=(e=>(e.SOFT="soft",e.HARD="hard",e))(Bp||{}),Ue=(e=>(e.ACTIVE="active",e.IN_TRIAL="in_trial",e.CANCELED="canceled",e.EXPIRED="expired",e.DEACTIVATED="deactivated",e.PAUSED="paused",e))(Ue||{}),x1=(e=>(e.All="all",e.Draft="draft",e.Pending="pending",e.Open="open",e.Paid="paid",e.Due="due",e.Overdue="overdue",e.Voided="voided",e.WrittenOff="written_off",e.Refunded="refunded",e))(x1||{}),Ip=(e=>(e.ONE_OFF="OneOff",e.FIXED_RECURRING="RecurringFixed",e.USAGE_BASED="UsageBased",e))(Ip||{}),mn=(e=>(e.PER_UNIT="per_unit",e.PER_PACKAGE="per_package",e.FLAT="flat",e.PERCENTAGE="percentage",e))(mn||{}),jp=(e=>(e.SUM="sum",e.COUNT_UNIQUE="count_unique",e.COUNT="count",e.AVERAGE="average",e.MAX="max",e.MIN="min",e.LATEST="latest",e))(jp||{}),k1=(e=>(e.PAY_AS_YOU_GO="in_arrears",e.UPFRONT_COMMITMENT="in_advance",e))(k1||{}),Hp=(e=>(e.PER_USE="per_use",e.PERSISTENT_USE="persistent_use",e))(Hp||{}),Wp=(e=>(e.ROLLOVER="Rollover",e.INCLUDED="Included",e.PURCHASED="Purchased",e.PAY_AS_YOU_GO="Pay as you go",e))(Wp||{}),L1=(e=>(e.DRAFT="draft",e))(L1||{});const Up=()=>({once:"once",daily:"per day",weekly:"per week",monthly:"per month",quarterly:"per quarter",yearly:"per year",biannually:"per 6 months"}),Zp={draft:{color:"bg-grey-600",text:"Draft"},pending:{color:"bg-orange-500",text:"Pending"},open:{color:"bg-blue-500",text:"Open"},voided:{color:"bg-neutral-400",text:"Voided"},paid:{color:"bg-green-600",text:"Paid"},written_off:{color:"bg-orange-500",text:"Written Off"},refunded:{color:"bg-blue-500",text:"Refunded"},overdue:{color:"bg-metrifox-danger",text:"Overdue"},due:{color:"bg-metrifox-danger",text:"Due"}},zp=e=>Zp[e]||{color:"bg-blue-500",text:""},Kp={[Ue.ACTIVE]:{color:"bg-metrifox-success",text:"Active"},[Ue.IN_TRIAL]:{color:"bg-metrifox-blue",text:"In trial"},[Ue.CANCELED]:{color:"bg-metrifox-danger",text:"Canceled"},[Ue.EXPIRED]:{color:"bg-metrifox-danger",text:"Expired"},[Ue.DEACTIVATED]:{color:"bg-metrifox-danger",text:"Deactivated"},[Ue.PAUSED]:{color:"bg-grey-500",text:"Paused"}},Yp=e=>Kp[e]||{color:"bg-metrifox-success",text:""};function Ze(e){return Math.floor(e).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}const Gp=(e,t,n="-")=>{try{return t.split(/[.[\]]+/).filter(Boolean).reduce((r,o)=>r[o],e)??n}catch{return n}},E1=(e,t)=>t.find(n=>n.price.billing_interval===e),M1=(e,t)=>t?.filter(n=>n.price.billing_interval===e),qp=(e,t=1)=>({[ke.QUARTERLY]:3,[ke.BIANNUALLY]:6,[ke.YEARLY]:12}[e]??1)*t,Xp={daily:"days",weekly:"weeks",monthly:"months",quarterly:"quarters",yearly:"years"},Jp=(e,t)=>e?.map((n,r)=>{const{first_unit:o,last_unit:s,unit_price:i,package_price:a,package_size:c,pricing_model:u,flat_fee:d}=n,f=Kt(t),h=r===0,m=r===e.length-1,p=()=>u===mn.PER_UNIT?h&&s===-1?"per unit":h?`First ${s}`:m?`Last ${o}`:`${o} to ${s}`:u===mn.PER_PACKAGE?h?`First ${s}`:m?`Last ${o}`:`${o} to ${s}`:u===mn.FLAT?h?`First ${s}`:m?`Last ${o}`:`${o} to ${s}`:"",g=()=>u===mn.PER_UNIT?`${f}${me(i)}`:u===mn.PER_PACKAGE&&c?`${f}${me(a)}`:u===mn.FLAT?`${f}${me(d)}`:"";return{label:p(),price:g(),package:c}}),as=e=>{const t=e?.price?.owner,n=0,r=e?.price?.tiers?.find(f=>f.first_unit===n),o=Kt(e?.price?.currency)||"";if(!r)return{price:null,label:null,currencySymbol:null};const{unit_price:s,package_price:i,package_size:a,pricing_model:c,flat_fee:u,percentage:d}=r;return u?{price:me(u),label:"",currencySymbol:o,isPercentage:!1}:{per_unit:{price:me(s),label:`${t?.feature?.unit_singular||t?.credit_unit_singular||t?.unit_singular}`,currencySymbol:o,isPercentage:!1},per_package:{price:me(i),label:`${a} ${t?.feature?.unit_plural}`,currencySymbol:o,isPercentage:!1},percentage:{price:`${d}%`,label:`of ${t?.feature?.unit_plural}`,currencySymbol:o,isPercentage:!0}}[c]??{price:null,label:null,currencySymbol:null,isPercentage:null}},Qp=e=>{const t=new Set;for(const n of e)if(n){const r=[...n?.price_options||[],...n?.entitlement_price_options||[],...n?.credit_attachment_price_options||[]],o=r.some(s=>s.price?.invoice_timing===No.InAdvance);r.forEach(s=>{const i=s.price.invoice_timing===No.InAdvance&&s.price?.billing_interval,a=s.price.invoice_timing===No.InArrears&&s.price?.billing_interval,c=o?i:a;c&&t.add(c)})}return Array.from(t)},me=e=>{if(e==null||e==="")return"--";const t=Number(e),n="en";if(isNaN(t))return"--";if(t===0)return"0.00";const r=Math.abs(t);let o="";o=r.toFixed(6).split(".")[1]?.replace(/0+$/,"")||"";const s=o.match(/^0*/)?.[0].length||0,i=Math.min(s+2,6),a=Number(t.toFixed(i));return isFinite(a)?a.toLocaleString(n,{minimumFractionDigits:i,maximumFractionDigits:i}):"--"},ls=e=>{const t=new Map;for(const n of e){const r=n.feature?.id;r&&t.set(r,n)}return Array.from(t.values())},e6=(e,t)=>[...e].sort((n,r)=>{const o=n.feature?.id,s=r.feature?.id,i=o?t.get(o)??1/0:1/0,a=s?t.get(s)??1/0:1/0;return i-a}),t6=e=>{const t=new Map;e?.forEach(o=>{const{entitlements:s=[],base_entitlements:i=[]}=o||{};ls([...s,...i]).forEach(a=>{const c=a.feature?.id;if(c){const u=t.get(c);u?u.count+=1:t.set(c,{count:1,entitlement:a})}})});const n=Array.from(t.entries()).sort(([o,s],[i,a])=>{if(a.count!==s.count)return a.count-s.count;const c=s.entitlement.feature?.key||o,u=a.entitlement.feature?.key||i;return c.localeCompare(u)}),r=new Map;return n.forEach(([o],s)=>{r.set(o,s)}),{frequencyMap:t,featureOrderMap:r}},n6=({productKey:e,checkoutUsername:t})=>{if(t)return`${`${window.location.protocol}//${window.location.host}`}/${t}/pricing/${e}`},r6=(e,t,n,r)=>{if(!e)return null;const o=Number(e.used||"0"),s=Number(e.amount||"0"),i=Number(e.balance||"0"),a=e.next_reset_at&&Ao(e.next_reset_at),c=e.amount===null||s===-1;let u=0;return c?u=100:s>0&&(u=Math.min(o/s*100,100)),{pool:t,balance:i,used:o,amount:c?1/0:s,color:n,percent:u,isUnlimited:c,order:r,nextResetAt:a}},o6=e=>{const t=[{key:"rollover_quantity_pool",name:"Rollover",color:"purple-500",order:1},{key:"included_pool",name:"Included",color:"cyan-500",order:2},{key:"purchased_pool",name:"Purchased",color:"blue-200",order:3},{key:"pay_as_you_go_pool",name:"Pay as you go",color:"blue-200",order:4}],n=[];for(const u of t){const d=e[u.key],f=r6(d,u.name,u.color,u.order);f&&n.push(f)}const r=n.reduce((u,d)=>u+d.used,0),o=n.filter(u=>!u.isUnlimited),s=o.reduce((u,d)=>u+d.amount,0),i=o.reduce((u,d)=>u+d.balance,0),a=n.some(u=>u.isUnlimited),c=n.length;return{processedPools:n,totalUsed:r,totalAmount:s,totalBalance:i,isAnyUnlimited:a,calculatedPoolCount:c}},S1=e=>e.includes("PurchasedCredit")?"Purchased credits":e.includes("IncludedCredit")?"Included credits":e.includes("Overage")?"Overage":e,i6=e=>{const t=n=>new Date(n).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return{id:e.id,creditedDate:Ao(e.created_at),source:S1(e.allocation_type),amount:e.amount,balance:e.amount-e.consumed,consumed:e.consumed,validUntil:e.valid_until?t(e.valid_until):"",orderId:e.order_id||null,orderNumber:e.order_number||null,allocationType:e.allocation_type}},T1=({width:e=170,height:t=28})=>y("svg",{width:e,height:t,viewBox:"0 0 109 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.8067 11.1011L3.14332 4.129C3.05337 3.99689 3.0007 3.83743 3.0007 3.66554C3.0007 3.21055 3.36946 2.8418 3.82444 2.8418C4.27943 2.8418 4.64818 3.21067 4.64818 3.66554C4.64818 3.83302 4.59823 3.98875 4.51234 4.11871L6.77653 10.7372L8.01027 9.8381L9.28086 10.8577L11.5539 4.15702C11.4517 4.01983 11.3912 3.84975 11.3912 3.66554C11.3912 3.21055 11.76 2.8418 12.215 2.8418C12.67 2.8418 13.0387 3.21067 13.0387 3.66554C13.0387 3.83686 12.9864 3.99598 12.8969 4.12775L15.2467 11.0969C15.5919 11.1951 15.8447 11.5128 15.8447 11.8894C15.8447 12.3444 15.4758 12.7131 15.0208 12.7131C15.0119 12.7131 15.003 12.7129 14.994 12.7127C14.9374 12.7628 14.8811 12.8082 14.828 12.8471L8.89074 17.211C8.89153 17.2255 8.89187 17.2401 8.89187 17.2548C8.89187 17.7098 8.523 18.0786 8.06802 18.0786C7.61304 18.0786 7.24428 17.7097 7.24428 17.2548V17.2547L1.19998 12.6988C1.15014 12.7081 1.09895 12.7131 1.0464 12.7131C0.591413 12.7131 0.222656 12.3442 0.222656 11.8894C0.222656 11.5179 0.468569 11.2037 0.806473 11.1011H0.8067ZM5.61127 11.616L3.76839 6.28006L2.00383 11.7247L3.88355 13.1032L5.61127 11.6159V11.616ZM10.3818 11.762L12.1125 13.0939L14.0868 11.5975L12.1785 6.44302L10.3819 11.7621L10.3818 11.762ZM7.9853 11.2693L4.84019 13.829L8.05672 16.3512L11.2279 13.9857L7.9853 11.2693Z",fill:"#3D3D3D"}),l("path",{d:"M106.131 4.67773V4.50098H107.149V4.67773H106.736V5.78874H106.542V4.67773H106.131Z",fill:"#3D3D3D"}),l("path",{d:"M107.567 4.66281V5.78874H107.381V4.50098H107.752L108.059 5.62691H108.094L108.407 4.50098H108.777V5.78874H108.592V4.66281H108.556L108.248 5.78874H107.909L107.603 4.66281H107.567Z",fill:"#3D3D3D"}),l("path",{d:"M38.0201 16.5853V8.53632C38.0201 7.23736 37.6683 6.20512 36.9647 5.43958C36.2611 4.67415 35.252 4.29138 33.9377 4.29138C32.2831 4.29138 30.9763 4.94865 30.0175 6.26298C29.4144 4.94854 28.2855 4.29138 26.6309 4.29138C25.0382 4.29138 23.7701 4.94865 22.8267 6.26298V4.61606H19.6953V16.5852H22.9891V10.0902C22.9891 8.00256 23.7855 6.95879 25.3783 6.95879C26.0896 6.95879 26.569 7.16368 26.8165 7.57346C27.0639 7.98324 27.1876 8.55926 27.1876 9.30152V16.5851H30.4815V9.85821C30.4815 7.94074 31.247 6.98196 32.7779 6.98196C33.5511 6.98196 34.0613 7.19453 34.3088 7.61979C34.5562 8.04505 34.6799 8.65204 34.6799 9.44074V16.5852L38.0201 16.5853ZM51.1754 12.8739H48.0207C47.5568 14.0338 46.7449 14.6136 45.5851 14.6136C44.7036 14.6136 44.0193 14.343 43.5322 13.8017C43.0452 13.2605 42.7938 12.4718 42.7785 11.4357H51.361V11.1109C51.361 9.0078 50.8275 7.34156 49.7604 6.11222C48.6935 4.88277 47.2553 4.2681 45.446 4.2681C43.6985 4.2681 42.2604 4.87124 41.1314 6.07741C40.0026 7.28358 39.4382 8.81455 39.4382 10.6702C39.4382 12.5568 39.9987 14.0723 41.1199 15.2166C42.241 16.361 43.7218 16.9332 45.5619 16.9332C46.9382 16.9332 48.1251 16.5775 49.1226 15.8662C50.12 15.1548 50.8043 14.1574 51.1754 12.8739ZM48.0207 9.34808H42.7785C42.8711 8.51304 43.1573 7.85576 43.6367 7.37637C44.1161 6.89697 44.7191 6.65728 45.446 6.65728C46.2192 6.65728 46.8223 6.90861 47.2553 7.41106C47.6882 7.91373 47.9434 8.55937 48.0207 9.34808ZM59.158 4.61606H56.7224V0.997552H53.4517V4.61606H51.4568V6.84284H53.4517V13.0594C53.4517 14.4976 53.7107 15.4679 54.2288 15.9704C54.7468 16.473 55.7249 16.7243 57.1631 16.7243C57.6888 16.7243 58.3538 16.6934 59.158 16.6315V14.1264C58.8951 14.1574 58.5626 14.1729 58.1605 14.1729C57.8049 14.1729 57.5304 14.1459 57.337 14.0916C57.1437 14.0375 57.0007 13.9254 56.9079 13.7553C56.8151 13.5852 56.761 13.419 56.7455 13.2566C56.73 13.0942 56.7224 12.8352 56.7224 12.4795V6.84284H59.158V4.61606ZM67.8365 4.40733C67.5118 4.361 67.2721 4.33772 67.1174 4.33772C65.3235 4.33772 64.0323 5.16507 63.2437 6.81967V4.61606H60.1121V16.5852H63.406V11.1109C63.406 9.9511 63.661 9.02712 64.1714 8.33899C64.6818 7.65087 65.4781 7.30675 66.5606 7.30675C66.9472 7.30675 67.3724 7.3532 67.8363 7.44598L67.8365 4.40733ZM71.8061 0.0697271H68.5123V2.8532H71.8061V0.0697271ZM71.8061 4.61618H68.5123V16.5853H71.8061V4.61618ZM80.2526 0.0697271C80.1288 0.0697271 79.9509 0.0619314 79.719 0.0464489C79.4871 0.0309663 79.2745 0.0194383 79.0812 0.0116405C78.888 0.00384272 78.7062 0 78.5362 0C77.067 0 76.0156 0.313153 75.3814 0.939462C74.7475 1.56577 74.4305 2.58254 74.4305 3.98975V4.61606H72.482V6.84284H74.4305V16.5852H77.7243V6.84284H80.0438V4.61606H77.701V3.66507C77.701 3.1702 77.7976 2.84167 77.991 2.67927C78.1843 2.51688 78.5747 2.43573 79.1623 2.43573C79.2088 2.43573 79.5721 2.45122 80.2526 2.48207V0.0697271ZM86.681 4.26821C84.8099 4.26821 83.3021 4.84808 82.1577 6.00791C81.0134 7.16775 80.4412 8.6986 80.4412 10.6008C80.4412 12.5184 81.0056 14.057 82.1344 15.2168C83.2633 16.3766 84.7633 16.9565 86.6344 16.9565C88.5056 16.9565 90.0017 16.3766 91.1229 15.2168C92.244 14.0569 92.8046 12.5183 92.8046 10.6008C92.8046 8.69871 92.2441 7.16775 91.1229 6.00791C90.0017 4.84808 88.5212 4.26821 86.681 4.26821ZM86.5882 6.77345C87.5006 6.77345 88.2158 7.10977 88.7338 7.78241C89.2519 8.45517 89.5109 9.38684 89.5109 10.5775C89.5109 11.7992 89.2596 12.7541 88.757 13.4423C88.2545 14.1304 87.547 14.4744 86.6346 14.4744C85.7222 14.4744 85.0108 14.1342 84.5006 13.4538C83.9903 12.7734 83.7351 11.8223 83.7351 10.6007C83.7351 9.40989 83.9903 8.47438 84.5006 7.79394C85.0109 7.1135 85.7068 6.77345 86.5882 6.77345ZM105.032 4.61618H101.39L99.2796 7.81722L97.1456 4.61618H93.3878L97.3542 10.276L92.9935 16.5853H96.7281L99.2333 12.7115L101.762 16.5853H105.519L101.089 10.2064L105.032 4.61618Z",fill:"#3D3D3D"})]}),D1=({data:e})=>{const t=e?.customer,{address:n}=b1(t?.billing_configuration?.billing_address),{address:r}=kp(t),o=t?.primary_phone||t?.phone_numbers[0]?.phone_number,s=n??r,i=e?.line_items||[],a=e?.charge_items||[],c=e?.usage_items||[],u=e?.currency?.symbol,d=[...i.map(h=>({...h,itemType:"line_item"})),...a.map(h=>({...h,itemType:"charge_item"})),...c.map(h=>({...h,itemType:"usage_item"}))],f=Lp({...e?.tenant?.default_address},"No Tenant address provided");return y(x,{children:[y(x,{className:"h-max w-full flex items-center justify-between",children:[y(x,{className:"flex items-center gap-3",children:[e?.tenant?.logo_url?l(x,{className:"h-[2.5rem] w-[2.5rem] border overflow-hidden rounded-full",children:l("img",{src:e?.tenant?.logo_url,alt:"logo"})}):l(x,{className:"rounded-full h-[2.8rem] w-[2.8rem] bg-grey-200 p-3",children:l(he,{name:"logo-placeholder",size:20})}),l(ss,{variant:"h5",className:"text-metrifox-black font-bold",children:e?.tenant?.business_name})]}),y(x,{children:[l(ss,{variant:"h5",className:"text-metrifox-black font-bold uppercase",children:"Invoice"}),l(j,{variant:"body7",className:"text-metrifox-black text-right",children:e?.invoice_number})]})]}),y(x,{className:"bg-grey-100 px-3.5 py-5 mt-4 rounded-md flex items-center justify-between",children:[y(x,{children:[l(Z,{variant:"label8",className:"font-medium text-grey-700",children:"Invoice no"}),l(j,{variant:"body7",className:"font-light text-grey-500 text-center mt-0.5",children:e?.invoice_number||"-"})]}),y(x,{children:[l(Z,{variant:"label8",className:"font-medium text-grey-700",children:"Issue date"}),l(j,{variant:"body7",className:"font-light text-grey-500 mt-0.5",children:vt(e?.issued_at)})]}),y(x,{children:[l(Z,{variant:"label8",className:"font-medium text-grey-700",children:"Due date"}),l(j,{variant:"body7",className:"font-light text-grey-500 mt-0.5",children:vt(e?.due_at)})]})]}),y(x,{className:"mt-6 flex justify-between",children:[y(x,{className:"text-gray-500 max-w-[12rem]",children:[l(Z,{variant:"label8",className:"font-medium text-grey-700",children:"From"}),y(x,{className:"text-gray-500 font-light space-y-1 mt-1",children:[l(j,{variant:"body7",children:e?.tenant?.business_name}),l(j,{variant:"body7",children:f})]})]}),y(x,{className:"text-right max-w-[12rem] ",children:[l(Z,{variant:"label8",className:"font-medium text-grey-700",children:"Billed to"}),y(x,{className:"text-gray-500 font-light space-y-1 mt-1",children:[l(Z,{variant:"label8",className:"font-medium text-metrifox-blue underline",children:e?.customer?.full_name}),l(j,{variant:"body7",children:s}),l(j,{variant:"body7",children:e?.customer?.primary_email}),y(j,{variant:"body7",children:[" ",o]})]})]})]}),l(x,{className:"mt-8",children:y(x,{className:"w-full",children:[y(x,{className:"bg-grey-200 p-2 rounded-md font-medium text-grey-700 grid grid-cols-5 gap-x-6",children:[l(Z,{variant:"label8",className:"w-[12rem]",children:"Item name"}),l(Z,{variant:"label8",children:"Price"}),l(Z,{variant:"label8",children:"Qty"}),l(Z,{variant:"label8",children:"Subtotal"}),l(Z,{variant:"label8",children:"Amount"})]}),l(x,{children:d?.map(h=>y(x,{className:"text-left font-normal text-grey-700 pt-6 pb-2 grid grid-cols-5 gap-x-6 border-t border-grey-200 px-3 py-5",children:[y(x,{className:"w-full",children:[l(Z,{variant:"label8",className:"font-medium text-metrifox-blue",children:h?.name}),l(j,{variant:"body8",children:h?.description})]}),l(j,{variant:"body6",color:"text-metrifox-black",children:h.itemType==="usage_item"?"Tier based pricing":`${u}${me(h.unit_price)}`}),l(j,{variant:"body8",children:h?.quantity}),y(j,{variant:"body8",children:[u,me(h?.total_amount)]}),y(j,{variant:"body8",children:[u,me(h?.amount)]})]},h?.id))})]})}),y(x,{className:"bg-neutral-100 p-2.5 w-[50%] ml-auto rounded-sm mt-5",children:[y(x,{className:"flex justify-between border-b pb-2",children:[y(x,{children:[l(Z,{variant:"label8",className:"font-medium text-neutral-900",children:"Subtotal"}),y(x,{className:"text-neutral-500 space-y-1 my-2",children:[l(j,{variant:"body8",children:"Discount"}),l(j,{variant:"body8",children:"Tax"})]}),l(Z,{variant:"label8",className:"font-medium text-grey-800",children:"Grand total"})]}),y(x,{className:"text-right",children:[y(Z,{variant:"label8",className:"font-medium text-grey-800",children:[u,me(e?.summary?.items_subtotal)]}),y(x,{className:"text-neutral-500 space-y-1 my-2",children:[y(j,{variant:"body8",children:[u,me(e?.summary?.total_discounts)]}),y(j,{variant:"body8",children:[u,me(e?.summary?.total_tax_amount)]})]}),y(Z,{variant:"label8",className:"font-medium text-grey-800",children:[u,me(e?.summary?.total_amount_paid)]})]})]}),y(x,{className:"flex justify-between pt-2",children:[y(x,{className:"space-y-3 font-medium text-neutral-900",children:[l(Z,{variant:"label8",children:"Amount paid"}),l(Z,{variant:"label8",children:"Amount due"})]}),y(x,{className:"text-right space-y-3 font-medium text-grey-800",children:[y(Z,{variant:"label8",children:[u,me(e?.summary?.total_amount_paid)]}),y(Z,{variant:"label7",children:[u,me(e?.summary?.total_outstanding_amount)]})]})]})]}),e?.comment&&y(x,{className:"flex items-center gap-1 text-[.625rem] bg-metrifox-white p-2 mt-40 border-[0.03rem] border-grey-300 rounded",children:[l(j,{variant:"body8",children:"Note:"}),l(j,{variant:"body8",children:e?.comment})]}),l(x,{className:"border-t-[0.03rem] border-grey-300 pb-3 w-full mt-20",children:y(x,{className:"flex items-center justify-center gap-2 mt-1",children:[l(j,{variant:"body8",className:"text-metrifox-black",children:"Powered by"}),l(T1,{height:30,width:100})]})})]})},P1=De({});function cs(e){const t=se(null);return t.current===null&&(t.current=e()),t.current}const us=typeof window<"u",A1=us?Tn:te,ds=De(null);function fs(e,t){e.indexOf(t)===-1&&e.push(t)}function hs(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const _t=(e,t,n)=>n>t?t:n<e?e:n;function ps(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Un=()=>{},Ot=()=>{};process.env.NODE_ENV!=="production"&&(Un=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(ps(t,n))},Ot=(e,t,n)=>{if(!e)throw new Error(ps(t,n))});const Bt={},N1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function R1(e){return typeof e=="object"&&e!==null}const F1=e=>/^0[^.\s]+$/u.test(e);function ms(e){let t;return()=>(t===void 0&&(t=e()),t)}const at=e=>e,s6=(e,t)=>n=>t(e(n)),wr=(...e)=>e.reduce(s6),xr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class gs{constructor(){this.subscriptions=[]}add(t){return fs(this.subscriptions,t),()=>hs(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let s=0;s<o;s++){const i=this.subscriptions[s];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const bt=e=>e*1e3,lt=e=>e/1e3;function V1(e,t){return t?e*(1e3/t):0}const $1=new Set;function ys(e,t,n){e||$1.has(t)||(console.warn(ps(t,n)),$1.add(t))}const _1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,a6=1e-7,l6=12;function c6(e,t,n,r,o){let s,i,a=0;do i=t+(n-t)/2,s=_1(i,r,o)-e,s>0?n=i:t=i;while(Math.abs(s)>a6&&++a<l6);return i}function kr(e,t,n,r){if(e===t&&n===r)return at;const o=s=>c6(s,0,1,e,n);return s=>s===0||s===1?s:_1(o(s),t,r)}const O1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,B1=e=>t=>1-e(1-t),I1=kr(.33,1.53,.69,.99),vs=B1(I1),j1=O1(vs),H1=e=>(e*=2)<1?.5*vs(e):.5*(2-Math.pow(2,-10*(e-1))),bs=e=>1-Math.sin(Math.acos(e)),W1=B1(bs),U1=O1(bs),u6=kr(.42,0,1,1),d6=kr(0,0,.58,1),Z1=kr(.42,0,.58,1),f6=e=>Array.isArray(e)&&typeof e[0]!="number",z1=e=>Array.isArray(e)&&typeof e[0]=="number",K1={linear:at,easeIn:u6,easeInOut:Z1,easeOut:d6,circIn:bs,circInOut:U1,circOut:W1,backIn:vs,backInOut:j1,backOut:I1,anticipate:H1},h6=e=>typeof e=="string",Y1=e=>{if(z1(e)){Ot(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return kr(t,n,r,o)}else if(h6(e))return Ot(K1[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),K1[e];return e},Ro=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function p6(e,t){let n=new Set,r=new Set,o=!1,s=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(d){i.has(d)&&(u.schedule(d),e()),d(a)}const u={schedule:(d,f=!1,h=!1)=>{const p=h&&o?n:r;return f&&i.add(d),p.has(d)||p.add(d),d},cancel:d=>{r.delete(d),i.delete(d)},process:d=>{if(a=d,o){s=!0;return}o=!0,[n,r]=[r,n],n.forEach(c),n.clear(),o=!1,s&&(s=!1,u.process(d))}};return u}const m6=40;function G1(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=Ro.reduce((C,L)=>(C[L]=p6(s),C),{}),{setup:a,read:c,resolveKeyframes:u,preUpdate:d,update:f,preRender:h,render:m,postRender:p}=i,g=()=>{const C=Bt.useManualTiming?o.timestamp:performance.now();n=!1,Bt.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(C-o.timestamp,m6),1)),o.timestamp=C,o.isProcessing=!0,a.process(o),c.process(o),u.process(o),d.process(o),f.process(o),h.process(o),m.process(o),p.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,o.isProcessing||e(g)};return{schedule:Ro.reduce((C,L)=>{const k=i[L];return C[L]=(E,R=!1,P=!1)=>(n||v(),k.schedule(E,R,P)),C},{}),cancel:C=>{for(let L=0;L<Ro.length;L++)i[Ro[L]].cancel(C)},state:o,steps:i}}const{schedule:ge,cancel:It,state:Fe,steps:Cs}=G1(typeof requestAnimationFrame<"u"?requestAnimationFrame:at,!0);let Fo;function g6(){Fo=void 0}const Xe={now:()=>(Fo===void 0&&Xe.set(Fe.isProcessing||Bt.useManualTiming?Fe.timestamp:performance.now()),Fo),set:e=>{Fo=e,queueMicrotask(g6)}},q1=e=>t=>typeof t=="string"&&t.startsWith(e),ws=q1("--"),y6=q1("var(--"),xs=e=>y6(e)?v6.test(e.split("/*")[0].trim()):!1,v6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Zn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Lr={...Zn,transform:e=>_t(0,1,e)},Vo={...Zn,default:1},Er=e=>Math.round(e*1e5)/1e5,ks=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function b6(e){return e==null}const C6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ls=(e,t)=>n=>!!(typeof n=="string"&&C6.test(n)&&n.startsWith(e)||t&&!b6(n)&&Object.prototype.hasOwnProperty.call(n,t)),X1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,i,a]=r.match(ks);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},w6=e=>_t(0,255,e),Es={...Zn,transform:e=>Math.round(w6(e))},gn={test:Ls("rgb","red"),parse:X1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Es.transform(e)+", "+Es.transform(t)+", "+Es.transform(n)+", "+Er(Lr.transform(r))+")"};function x6(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Ms={test:Ls("#"),parse:x6,transform:gn.transform},Mr=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Yt=Mr("deg"),Dt=Mr("%"),Q=Mr("px"),k6=Mr("vh"),L6=Mr("vw"),J1=(()=>({...Dt,parse:e=>Dt.parse(e)/100,transform:e=>Dt.transform(e*100)}))(),zn={test:Ls("hsl","hue"),parse:X1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Dt.transform(Er(t))+", "+Dt.transform(Er(n))+", "+Er(Lr.transform(r))+")"},Te={test:e=>gn.test(e)||Ms.test(e)||zn.test(e),parse:e=>gn.test(e)?gn.parse(e):zn.test(e)?zn.parse(e):Ms.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?gn.transform(e):zn.transform(e),getAnimatableNone:e=>{const t=Te.parse(e);return t.alpha=0,Te.transform(t)}},E6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function M6(e){return isNaN(e)&&typeof e=="string"&&(e.match(ks)?.length||0)+(e.match(E6)?.length||0)>0}const Q1="number",eu="color",S6="var",T6="var(",tu="${}",D6=/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 Sr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let s=0;const a=t.replace(D6,c=>(Te.test(c)?(r.color.push(s),o.push(eu),n.push(Te.parse(c))):c.startsWith(T6)?(r.var.push(s),o.push(S6),n.push(c)):(r.number.push(s),o.push(Q1),n.push(parseFloat(c))),++s,tu)).split(tu);return{values:n,split:a,indexes:r,types:o}}function nu(e){return Sr(e).values}function ru(e){const{split:t,types:n}=Sr(e),r=t.length;return o=>{let s="";for(let i=0;i<r;i++)if(s+=t[i],o[i]!==void 0){const a=n[i];a===Q1?s+=Er(o[i]):a===eu?s+=Te.transform(o[i]):s+=o[i]}return s}}const P6=e=>typeof e=="number"?0:Te.test(e)?Te.getAnimatableNone(e):e;function A6(e){const t=nu(e);return ru(e)(t.map(P6))}const Gt={test:M6,parse:nu,createTransformer:ru,getAnimatableNone:A6};function Ss(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function N6({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,s=0,i=0;if(!t)o=s=i=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;o=Ss(c,a,e+1/3),s=Ss(c,a,e),i=Ss(c,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:r}}function $o(e,t){return n=>n>0?t:e}const be=(e,t,n)=>e+(t-e)*n,Ts=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},R6=[Ms,gn,zn],F6=e=>R6.find(t=>t.test(e));function ou(e){const t=F6(e);if(Un(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===zn&&(n=N6(n)),n}const iu=(e,t)=>{const n=ou(e),r=ou(t);if(!n||!r)return $o(e,t);const o={...n};return s=>(o.red=Ts(n.red,r.red,s),o.green=Ts(n.green,r.green,s),o.blue=Ts(n.blue,r.blue,s),o.alpha=be(n.alpha,r.alpha,s),gn.transform(o))},Ds=new Set(["none","hidden"]);function V6(e,t){return Ds.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function $6(e,t){return n=>be(e,t,n)}function Ps(e){return typeof e=="number"?$6:typeof e=="string"?xs(e)?$o:Te.test(e)?iu:B6:Array.isArray(e)?su:typeof e=="object"?Te.test(e)?iu:_6:$o}function su(e,t){const n=[...e],r=n.length,o=e.map((s,i)=>Ps(s)(s,t[i]));return s=>{for(let i=0;i<r;i++)n[i]=o[i](s);return n}}function _6(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Ps(e[o])(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}}function O6(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],i=e.indexes[s][r[s]],a=e.values[i]??0;n[o]=a,r[s]++}return n}const B6=(e,t)=>{const n=Gt.createTransformer(t),r=Sr(e),o=Sr(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Ds.has(e)&&!o.values.length||Ds.has(t)&&!r.values.length?V6(e,t):wr(su(O6(r,o),o.values),n):(Un(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),$o(e,t))};function au(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?be(e,t,n):Ps(e)(e,t)}const I6=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ge.update(t,n),stop:()=>It(t),now:()=>Fe.isProcessing?Fe.timestamp:Xe.now()}},lu=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)r+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},_o=2e4;function As(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<_o;)t+=n,r=e.next(t);return t>=_o?1/0:t}function j6(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(As(r),_o);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:lt(o)}}const H6=5;function cu(e,t,n){const r=Math.max(t-H6,0);return V1(n-e(r),t-r)}const Ce={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ns=.001;function W6({duration:e=Ce.duration,bounce:t=Ce.bounce,velocity:n=Ce.velocity,mass:r=Ce.mass}){let o,s;Un(e<=bt(Ce.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=_t(Ce.minDamping,Ce.maxDamping,i),e=_t(Ce.minDuration,Ce.maxDuration,lt(e)),i<1?(o=u=>{const d=u*i,f=d*e,h=d-n,m=Rs(u,i),p=Math.exp(-f);return Ns-h/m*p},s=u=>{const f=u*i*e,h=f*n+n,m=Math.pow(i,2)*Math.pow(u,2)*e,p=Math.exp(-f),g=Rs(Math.pow(u,2),i);return(-o(u)+Ns>0?-1:1)*((h-m)*p)/g}):(o=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-Ns+d*f},s=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const a=5/e,c=Z6(o,s,a);if(e=bt(e),isNaN(c))return{stiffness:Ce.stiffness,damping:Ce.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:i*2*Math.sqrt(r*u),duration:e}}}const U6=12;function Z6(e,t,n){let r=n;for(let o=1;o<U6;o++)r=r-e(r)/t(r);return r}function Rs(e,t){return e*Math.sqrt(1-t*t)}const z6=["duration","bounce"],K6=["stiffness","damping","mass"];function uu(e,t){return t.some(n=>e[n]!==void 0)}function Y6(e){let t={velocity:Ce.velocity,stiffness:Ce.stiffness,damping:Ce.damping,mass:Ce.mass,isResolvedFromDuration:!1,...e};if(!uu(e,K6)&&uu(e,z6))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,s=2*_t(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Ce.mass,stiffness:o,damping:s}}else{const n=W6(e);t={...t,...n,mass:Ce.mass},t.isResolvedFromDuration=!0}return t}function Oo(e=Ce.visualDuration,t=Ce.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const s=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:c,damping:u,mass:d,duration:f,velocity:h,isResolvedFromDuration:m}=Y6({...n,velocity:-lt(n.velocity||0)}),p=h||0,g=u/(2*Math.sqrt(c*d)),v=i-s,b=lt(Math.sqrt(c/d)),w=Math.abs(v)<5;r||(r=w?Ce.restSpeed.granular:Ce.restSpeed.default),o||(o=w?Ce.restDelta.granular:Ce.restDelta.default);let C;if(g<1){const k=Rs(b,g);C=E=>{const R=Math.exp(-g*b*E);return i-R*((p+g*b*v)/k*Math.sin(k*E)+v*Math.cos(k*E))}}else if(g===1)C=k=>i-Math.exp(-b*k)*(v+(p+b*v)*k);else{const k=b*Math.sqrt(g*g-1);C=E=>{const R=Math.exp(-g*b*E),P=Math.min(k*E,300);return i-R*((p+g*b*v)*Math.sinh(P)+k*v*Math.cosh(P))/k}}const L={calculatedDuration:m&&f||null,next:k=>{const E=C(k);if(m)a.done=k>=f;else{let R=k===0?p:0;g<1&&(R=k===0?bt(p):cu(C,k,E));const P=Math.abs(R)<=r,W=Math.abs(i-E)<=o;a.done=P&&W}return a.value=a.done?i:E,a},toString:()=>{const k=Math.min(As(L),_o),E=lu(R=>L.next(k*R).value,k,30);return k+"ms "+E},toTransition:()=>{}};return L}Oo.applyToOptions=e=>{const t=j6(e,100,Oo);return e.ease=t.ease,e.duration=bt(t.duration),e.type="keyframes",e};function Fs({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:i,min:a,max:c,restDelta:u=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},m=P=>a!==void 0&&P<a||c!==void 0&&P>c,p=P=>a===void 0?c:c===void 0||Math.abs(a-P)<Math.abs(c-P)?a:c;let g=n*t;const v=f+g,b=i===void 0?v:i(v);b!==v&&(g=b-f);const w=P=>-g*Math.exp(-P/r),C=P=>b+w(P),L=P=>{const W=w(P),_=C(P);h.done=Math.abs(W)<=u,h.value=h.done?b:_};let k,E;const R=P=>{m(h.value)&&(k=P,E=Oo({keyframes:[h.value,p(h.value)],velocity:cu(C,P,h.value),damping:o,stiffness:s,restDelta:u,restSpeed:d}))};return R(0),{calculatedDuration:null,next:P=>{let W=!1;return!E&&k===void 0&&(W=!0,L(P),R(P)),k!==void 0&&P>=k?E.next(P-k):(!W&&L(P),h)}}}function G6(e,t,n){const r=[],o=n||Bt.mix||au,s=e.length-1;for(let i=0;i<s;i++){let a=o(e[i],e[i+1]);if(t){const c=Array.isArray(t)?t[i]||at:t;a=wr(c,a)}r.push(a)}return r}function du(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(Ot(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=G6(t,r,o),c=a.length,u=d=>{if(i&&d<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=xr(e[f],e[f+1],d);return a[f](h)};return n?d=>u(_t(e[0],e[s-1],d)):u}function q6(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=xr(0,t,r);e.push(be(n,1,o))}}function X6(e){const t=[0];return q6(t,e.length-1),t}function J6(e,t){return e.map(n=>n*t)}function Q6(e,t){return e.map(()=>t||Z1).splice(0,e.length-1)}function Kn({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=f6(r)?r.map(Y1):Y1(r),s={done:!1,value:t[0]},i=J6(n&&n.length===t.length?n:X6(t),e),a=du(i,t,{ease:Array.isArray(o)?o:Q6(t,o)});return{calculatedDuration:e,next:c=>(s.value=a(c),s.done=c>=e,s)}}const e7=e=>e!==null;function Vs(e,{repeat:t,repeatType:n="loop"},r,o=1){const s=e.filter(e7),a=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const t7={decay:Fs,inertia:Fs,tween:Kn,keyframes:Kn,spring:Oo};function fu(e){typeof e.type=="string"&&(e.type=t7[e.type])}class $s{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const n7=e=>e/100;class _s extends $s{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Xe.now()&&this.tick(Xe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;fu(t);const{type:n=Kn,repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:i=0}=t;let{keyframes:a}=t;const c=n||Kn;process.env.NODE_ENV!=="production"&&c!==Kn&&Ot(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==Kn&&typeof a[0]!="number"&&(this.mixKeyframes=wr(n7,au(a[0],a[1])),a=[0,100]);const u=c({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...a].reverse(),velocity:-i})),u.calculatedDuration===null&&(u.calculatedDuration=As(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:s,mirroredGenerator:i,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:d,repeat:f,repeatType:h,repeatDelay:m,type:p,onUpdate:g,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const b=this.currentTime-u*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?b<0:b>o;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let C=this.currentTime,L=r;if(f){const P=Math.min(this.currentTime,o)/a;let W=Math.floor(P),_=P%1;!_&&P>=1&&(_=1),_===1&&W--,W=Math.min(W,f+1),!!(W%2)&&(h==="reverse"?(_=1-_,m&&(_-=m/a)):h==="mirror"&&(L=i)),C=_t(0,1,_)*a}const k=w?{done:!1,value:d[0]}:L.next(C);s&&(k.value=s(k.value));let{done:E}=k;!w&&c!==null&&(E=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return R&&p!==Fs&&(k.value=Vs(d,this.options,v,this.speed)),g&&g(k.value),R&&this.finish(),k}then(t,n){return this.finished.then(t,n)}get duration(){return lt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+lt(t)}get time(){return lt(this.currentTime)}set time(t){t=bt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Xe.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=lt(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=I6,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Xe.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function r7(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const yn=e=>e*180/Math.PI,Os=e=>{const t=yn(Math.atan2(e[1],e[0]));return Bs(t)},o7={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Os,rotateZ:Os,skewX:e=>yn(Math.atan(e[1])),skewY:e=>yn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Bs=e=>(e=e%360,e<0&&(e+=360),e),hu=Os,pu=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),mu=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),i7={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:pu,scaleY:mu,scale:e=>(pu(e)+mu(e))/2,rotateX:e=>Bs(yn(Math.atan2(e[6],e[5]))),rotateY:e=>Bs(yn(Math.atan2(-e[2],e[0]))),rotateZ:hu,rotate:hu,skewX:e=>yn(Math.atan(e[4])),skewY:e=>yn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Is(e){return e.includes("scale")?1:0}function js(e,t){if(!e||e==="none")return Is(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=i7,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=o7,o=a}if(!o)return Is(t);const s=r[t],i=o[1].split(",").map(a7);return typeof s=="function"?s(i):i[s]}const s7=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return js(n,t)};function a7(e){return parseFloat(e.trim())}const Yn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Gn=(()=>new Set(Yn))(),gu=e=>e===Zn||e===Q,l7=new Set(["x","y","z"]),c7=Yn.filter(e=>!l7.has(e));function u7(e){const t=[];return c7.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const vn={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:(e,{transform:t})=>js(t,"x"),y:(e,{transform:t})=>js(t,"y")};vn.translateX=vn.x,vn.translateY=vn.y;const bn=new Set;let Hs=!1,Ws=!1,Us=!1;function yu(){if(Ws){const e=Array.from(bn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=u7(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([s,i])=>{r.getValue(s)?.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ws=!1,Hs=!1,bn.forEach(e=>e.complete(Us)),bn.clear()}function vu(){bn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ws=!0)})}function d7(){Us=!0,vu(),yu(),Us=!1}class Zs{constructor(t,n,r,o,s,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=s,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(bn.add(this),Hs||(Hs=!0,ge.read(vu),ge.resolveKeyframes(yu))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const s=o?.get(),i=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,i);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=i),o&&s===void 0&&o.set(t[0])}r7(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),bn.delete(this)}cancel(){this.state==="scheduled"&&(bn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const f7=e=>e.startsWith("--");function h7(e,t,n){f7(t)?e.style.setProperty(t,n):e.style[t]=n}const p7=ms(()=>window.ScrollTimeline!==void 0),m7={};function g7(e,t){const n=ms(e);return()=>m7[t]??n()}const bu=g7(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Tr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Cu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Tr([0,.65,.55,1]),circOut:Tr([.55,0,1,.45]),backIn:Tr([.31,.01,.66,-.59]),backOut:Tr([.33,1.53,.69,.99])};function wu(e,t){if(e)return typeof e=="function"?bu()?lu(e,t):"ease-out":z1(e)?Tr(e):Array.isArray(e)?e.map(n=>wu(n,t)||Cu.easeOut):Cu[e]}function y7(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:i="loop",ease:a="easeOut",times:c}={},u=void 0){const d={[t]:n};c&&(d.offset=c);const f=wu(a,o);Array.isArray(f)&&(d.easing=f);const h={delay:r,duration:o,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(d,h)}function xu(e){return typeof e=="function"&&"applyToOptions"in e}function v7({type:e,...t}){return xu(e)&&bu()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class b7 extends $s{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:s,allowFlatten:i=!1,finalKeyframe:a,onComplete:c}=t;this.isPseudoElement=!!s,this.allowFlatten=i,this.options=t,Ot(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=v7(t);this.animation=y7(n,r,o,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const d=Vs(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(d):h7(n,r,d),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return lt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+lt(t)}get time(){return lt(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=bt(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&p7()?(this.animation.timeline=t,at):n(this)}}const ku={anticipate:H1,backInOut:j1,circInOut:U1};function C7(e){return e in ku}function w7(e){typeof e.ease=="string"&&C7(e.ease)&&(e.ease=ku[e.ease])}const Lu=10;class x7 extends b7{constructor(t){w7(t),fu(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:s,...i}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new _s({...i,autoplay:!1}),c=bt(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-Lu).value,a.sample(c).value,Lu),a.stop()}}const Eu=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Gt.test(e)||e==="0")&&!e.startsWith("url("));function k7(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 L7(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],i=Eu(o,t),a=Eu(s,t);return Un(i===a,`You are trying to animate ${t} from "${o}" to "${s}". "${i?s:o}" is not an animatable value.`,"value-not-animatable"),!i||!a?!1:k7(e)||(n==="spring"||xu(n))&&r}function zs(e){e.duration=0,e.type="keyframes"}const E7=new Set(["opacity","clipPath","filter","transform"]),M7=ms(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function S7(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:s,type:i}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return M7()&&n&&E7.has(n)&&(n!=="transform"||!u)&&!c&&!r&&o!=="mirror"&&s!==0&&i!=="inertia"}const T7=40;class D7 extends $s{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:i="loop",keyframes:a,name:c,motionValue:u,element:d,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Xe.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:s,repeatType:i,name:c,motionValue:u,element:d,...f},m=d?.KeyframeResolver||Zs;this.keyframeResolver=new m(a,(p,g,v)=>this.onKeyframesResolved(p,g,h,!v),c,u,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:s,type:i,velocity:a,delay:c,isHandoff:u,onUpdate:d}=r;this.resolvedAt=Xe.now(),L7(t,s,i,a)||((Bt.instantAnimations||!c)&&d?.(Vs(t,r,n)),t[0]=t[t.length-1],zs(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>T7?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!u&&S7(h)?new x7({...h,element:h.motionValue.owner.current}):new _s(h);m.finished.then(()=>this.notifyFinished()).catch(at),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),d7()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const P7=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function A7(e){const t=P7.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const N7=4;function Mu(e,t,n=1){Ot(n<=N7,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=A7(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const i=s.trim();return N1(i)?parseFloat(i):i}return xs(o)?Mu(o,t,n+1):o}function Ks(e,t){return e?.[t]??e?.default??e}const Su=new Set(["width","height","top","left","right","bottom",...Yn]),R7={test:e=>e==="auto",parse:e=>e},Tu=e=>t=>t.test(e),Du=[Zn,Q,Dt,Yt,L6,k6,R7],Pu=e=>Du.find(Tu(e));function F7(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||F1(e):!0}const V7=new Set(["brightness","contrast","saturate","opacity"]);function $7(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ks)||[];if(!r)return e;const o=n.replace(r,"");let s=V7.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const _7=/\b([a-z-]*)\(.*?\)/gu,Ys={...Gt,getAnimatableNone:e=>{const t=e.match(_7);return t?t.map($7).join(" "):e}},Au={...Zn,transform:Math.round},O7={rotate:Yt,rotateX:Yt,rotateY:Yt,rotateZ:Yt,scale:Vo,scaleX:Vo,scaleY:Vo,scaleZ:Vo,skew:Yt,skewX:Yt,skewY:Yt,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:Lr,originX:J1,originY:J1,originZ:Q},Gs={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,radius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,top:Q,right:Q,bottom:Q,left:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,backgroundPositionX:Q,backgroundPositionY:Q,...O7,zIndex:Au,fillOpacity:Lr,strokeOpacity:Lr,numOctaves:Au},B7={...Gs,color:Te,backgroundColor:Te,outlineColor:Te,fill:Te,stroke:Te,borderColor:Te,borderTopColor:Te,borderRightColor:Te,borderBottomColor:Te,borderLeftColor:Te,filter:Ys,WebkitFilter:Ys},Nu=e=>B7[e];function Ru(e,t){let n=Nu(e);return n!==Ys&&(n=Gt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const I7=new Set(["auto","none","0"]);function j7(e,t,n){let r=0,o;for(;r<e.length&&!o;){const s=e[r];typeof s=="string"&&!I7.has(s)&&Sr(s).values.length&&(o=e[r]),r++}if(o&&n)for(const s of t)e[s]=Ru(n,o)}class H7 extends Zs{constructor(t,n,r,o,s){super(t,n,r,o,s,!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 u=t[c];if(typeof u=="string"&&(u=u.trim(),xs(u))){const d=Mu(u,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Su.has(r)||t.length!==2)return;const[o,s]=t,i=Pu(o),a=Pu(s);if(i!==a)if(gu(i)&&gu(a))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else vn[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||F7(t[o]))&&r.push(o);r.length&&j7(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=vn[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,i=r[s];r[s]=vn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{t.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function W7(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const Fu=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function U7(e){return R1(e)&&"offsetHeight"in e}const Vu=30,Z7=e=>!isNaN(parseFloat(e)),Dr={current:void 0};class z7{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=Xe.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Xe.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Z7(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ys(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new gs);const r=this.events[t].add(n);return t==="change"?()=>{r(),ge.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}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()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Dr.current&&Dr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Xe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Vu)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Vu);return V1(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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Cn(e,t){return new z7(e,t)}const{schedule:qs}=G1(queueMicrotask,!1),Ct={x:!1,y:!1};function $u(){return Ct.x||Ct.y}function K7(e){return e==="x"||e==="y"?Ct[e]?null:(Ct[e]=!0,()=>{Ct[e]=!1}):Ct.x||Ct.y?null:(Ct.x=Ct.y=!0,()=>{Ct.x=Ct.y=!1})}function _u(e,t){const n=W7(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Ou(e){return!(e.pointerType==="touch"||$u())}function Y7(e,t,n={}){const[r,o,s]=_u(e,n),i=a=>{if(!Ou(a))return;const{target:c}=a,u=t(c,a);if(typeof u!="function"||!c)return;const d=f=>{Ou(f)&&(u(f),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,o)};return r.forEach(a=>{a.addEventListener("pointerenter",i,o)}),s}const Bu=(e,t)=>t?e===t?!0:Bu(e,t.parentElement):!1,Xs=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,G7=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function q7(e){return G7.has(e.tagName)||e.tabIndex!==-1}const Bo=new WeakSet;function Iu(e){return t=>{t.key==="Enter"&&e(t)}}function Js(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const X7=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Iu(()=>{if(Bo.has(n))return;Js(n,"down");const o=Iu(()=>{Js(n,"up")}),s=()=>Js(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function ju(e){return Xs(e)&&!$u()}function J7(e,t,n={}){const[r,o,s]=_u(e,n),i=a=>{const c=a.currentTarget;if(!ju(a))return;Bo.add(c);const u=t(c,a),d=(m,p)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),Bo.has(c)&&Bo.delete(c),ju(m)&&typeof u=="function"&&u(m,{success:p})},f=m=>{d(m,c===window||c===document||n.useGlobalTarget||Bu(c,m.target))},h=m=>{d(m,!1)};window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",i,o),U7(a)&&(a.addEventListener("focus",u=>X7(u,o)),!q7(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function Hu(e){return R1(e)&&"ownerSVGElement"in e}function Q7(e){return Hu(e)&&e.tagName==="svg"}function e4(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],o=e[1+n],s=e[2+n],i=e[3+n],a=du(o,s,i);return t?a(r):a}const Be=e=>!!(e&&e.getVelocity),t4=[...Du,Te,Gt],n4=e=>t4.find(Tu(e)),Qs=De({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function r4(e=!0){const t=de(ds);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=Pt();te(()=>{if(e)return o(s)},[e]);const i=ue(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,i]:[!0]}const Wu=De({strict:!1}),Uu={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"]},qn={};for(const e in Uu)qn[e]={isEnabled:t=>Uu[e].some(n=>!!t[n])};function o4(e){for(const t in e)qn[t]={...qn[t],...e[t]}}const i4=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 Io(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||i4.has(e)}let Zu=e=>!Io(e);function s4(e){typeof e=="function"&&(Zu=t=>t.startsWith("on")?!Io(t):e(t))}try{s4(require("@emotion/is-prop-valid").default)}catch{}function a4(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Zu(o)||n===!0&&Io(o)||!t&&!Io(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const jo=De({});function Ho(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Pr(e){return typeof e=="string"||Array.isArray(e)}const ea=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ta=["initial",...ea];function Wo(e){return Ho(e.animate)||ta.some(t=>Pr(e[t]))}function zu(e){return!!(Wo(e)||e.variants)}function l4(e,t){if(Wo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Pr(n)?n:void 0,animate:Pr(r)?r:void 0}}return e.inherit!==!1?t:{}}function c4(e){const{initial:t,animate:n}=l4(e,de(jo));return ve(()=>({initial:t,animate:n}),[Ku(t),Ku(n)])}function Ku(e){return Array.isArray(e)?e.join(" "):e}const Ar={};function u4(e){for(const t in e)Ar[t]=e[t],ws(t)&&(Ar[t].isCSSVariable=!0)}function Yu(e,{layout:t,layoutId:n}){return Gn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ar[e]||e==="opacity")}const d4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},f4=Yn.length;function h4(e,t,n){let r="",o=!0;for(let s=0;s<f4;s++){const i=Yn[s],a=e[i];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(i.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const u=Fu(a,Gs[i]);if(!c){o=!1;const d=d4[i]||i;r+=`${d}(${u}) `}n&&(t[i]=u)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function na(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let i=!1,a=!1;for(const c in t){const u=t[c];if(Gn.has(c)){i=!0;continue}else if(ws(c)){o[c]=u;continue}else{const d=Fu(u,Gs[c]);c.startsWith("origin")?(a=!0,s[c]=d):r[c]=d}}if(t.transform||(i||n?r.transform=h4(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:c="50%",originY:u="50%",originZ:d=0}=s;r.transformOrigin=`${c} ${u} ${d}`}}const ra=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Gu(e,t,n){for(const r in t)!Be(t[r])&&!Yu(r,n)&&(e[r]=t[r])}function p4({transformTemplate:e},t){return ve(()=>{const n=ra();return na(n,t,e),Object.assign({},n.vars,n.style)},[t])}function m4(e,t){const n=e.style||{},r={};return Gu(r,n,e),Object.assign(r,p4(e,t)),r}function g4(e,t){const n={},r=m4(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 y4={offset:"stroke-dashoffset",array:"stroke-dasharray"},v4={offset:"strokeDashoffset",array:"strokeDasharray"};function b4(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?y4:v4;e[s.offset]=Q.transform(-r);const i=Q.transform(t),a=Q.transform(n);e[s.array]=`${i} ${a}`}function qu(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:s=1,pathOffset:i=0,...a},c,u,d){if(na(e,a,u),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=d?.transformBox??"fill-box",delete f.transformBox),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&b4(f,o,s,i,!1)}const Xu=()=>({...ra(),attrs:{}}),Ju=e=>typeof e=="string"&&e.toLowerCase()==="svg";function C4(e,t,n,r){const o=ve(()=>{const s=Xu();return qu(s,t,Ju(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Gu(s,e.style,e),o.style={...s,...o.style}}return o}const w4=["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 oa(e){return typeof e!="string"||e.includes("-")?!1:!!(w4.indexOf(e)>-1||/[A-Z]/u.test(e))}function x4(e,t,n,{latestValues:r},o,s=!1){const a=(oa(e)?C4:g4)(t,r,o,e),c=a4(t,typeof e=="string",s),u=e!==Sn?{...c,...a,ref:n}:{},{children:d}=t,f=ve(()=>Be(d)?d.get():d,[d]);return Ia(e,{...u,children:f})}function Qu(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function ia(e,t,n,r){if(typeof t=="function"){const[o,s]=Qu(r);t=t(n!==void 0?n:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=Qu(r);t=t(n!==void 0?n:e.custom,o,s)}return t}function Uo(e){return Be(e)?e.get():e}function k4({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:L4(n,r,o,e),renderState:t()}}function L4(e,t,n,r){const o={},s=r(e,{});for(const h in s)o[h]=Uo(s[h]);let{initial:i,animate:a}=e;const c=Wo(e),u=zu(e);t&&u&&!c&&e.inherit!==!1&&(i===void 0&&(i=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||i===!1;const f=d?a:i;if(f&&typeof f!="boolean"&&!Ho(f)){const h=Array.isArray(f)?f:[f];for(let m=0;m<h.length;m++){const p=ia(e,h[m]);if(p){const{transitionEnd:g,transition:v,...b}=p;for(const w in b){let C=b[w];if(Array.isArray(C)){const L=d?C.length-1:0;C=C[L]}C!==null&&(o[w]=C)}for(const w in g)o[w]=g[w]}}}return o}const ed=e=>(t,n)=>{const r=de(jo),o=de(ds),s=()=>k4(e,t,r,o);return n?s():cs(s)};function sa(e,t,n){const{style:r}=e,o={};for(const s in r)(Be(r[s])||t.style&&Be(t.style[s])||Yu(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(o[s]=r[s]);return o}const E4=ed({scrapeMotionValuesFromProps:sa,createRenderState:ra});function td(e,t,n){const r=sa(e,t,n);for(const o in e)if(Be(e[o])||Be(t[o])){const s=Yn.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[s]=e[o]}return r}const M4=ed({scrapeMotionValuesFromProps:td,createRenderState:Xu}),S4=Symbol.for("motionComponentSymbol");function Xn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function T4(e,t,n){return ue(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Xn(n)&&(n.current=r))},[t])}const aa=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),D4="framerAppearId",nd="data-"+aa(D4),rd=De({});function P4(e,t,n,r,o){const{visualElement:s}=de(jo),i=de(Wu),a=de(ds),c=de(Qs).reducedMotion,u=se(null);r=r||i.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const d=u.current,f=de(rd);d&&!d.projection&&o&&(d.type==="html"||d.type==="svg")&&A4(u.current,n,o,f);const h=se(!1);J0(()=>{d&&h.current&&d.update(n,a)});const m=n[nd],p=se(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return A1(()=>{d&&(h.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),p.current&&d.animationState&&d.animationState.animateChanges())}),te(()=>{d&&(!p.current&&d.animationState&&d.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),p.current=!1),d.enteringChildren=void 0)}),d}function A4(e,t,n,r){const{layoutId:o,layout:s,drag:i,dragConstraints:a,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:od(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!i||a&&Xn(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:u})}function od(e){if(e)return e.options.allowProjection!==!1?e.projection:od(e.parent)}function la(e,{forwardMotionProps:t=!1}={},n,r){n&&o4(n);const o=oa(e)?M4:E4;function s(a,c){let u;const d={...de(Qs),...a,layoutId:N4(a)},{isStatic:f}=d,h=c4(a),m=o(a,f);if(!f&&us){R4(d,n);const p=F4(d);u=p.MeasureLayout,h.visualElement=P4(e,m,d,r,p.ProjectionNode)}return y(jo.Provider,{value:h,children:[u&&h.visualElement?l(u,{visualElement:h.visualElement,...d}):null,x4(e,a,T4(m,h.visualElement,c),m,f,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const i=Ba(s);return i[S4]=e,i}function N4({layoutId:e}){const t=de(P1).id;return t&&e!==void 0?t+"-"+e:e}function R4(e,t){const n=de(Wu).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Un(!1,r,"lazy-strict-mode"):Ot(!1,r,"lazy-strict-mode")}}function F4(e){const{drag:t,layout:n}=qn;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function V4(e,t){if(typeof Proxy>"u")return la;const n=new Map,r=(s,i)=>la(s,i,e,t),o=(s,i)=>(process.env.NODE_ENV!=="production"&&ys(!1,"motion() is deprecated. Use motion.create() instead."),r(s,i));return new Proxy(o,{get:(s,i)=>i==="create"?r:(n.has(i)||n.set(i,la(i,void 0,e,t)),n.get(i))})}function id({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function $4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function _4(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 ca(e){return e===void 0||e===1}function ua({scale:e,scaleX:t,scaleY:n}){return!ca(e)||!ca(t)||!ca(n)}function wn(e){return ua(e)||sd(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function sd(e){return ad(e.x)||ad(e.y)}function ad(e){return e&&e!=="0%"}function Zo(e,t,n){const r=e-n,o=t*r;return n+o}function ld(e,t,n,r,o){return o!==void 0&&(e=Zo(e,o,r)),Zo(e,n,r)+t}function da(e,t=0,n=1,r,o){e.min=ld(e.min,t,n,r,o),e.max=ld(e.max,t,n,r,o)}function cd(e,{x:t,y:n}){da(e.x,t.translate,t.scale,t.originPoint),da(e.y,n.translate,n.scale,n.originPoint)}const ud=.999999999999,dd=1.0000000000001;function O4(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let s,i;for(let a=0;a<o;a++){s=n[a],i=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Qn(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,cd(e,i)),r&&wn(s.latestValues)&&Qn(e,s.latestValues))}t.x<dd&&t.x>ud&&(t.x=1),t.y<dd&&t.y>ud&&(t.y=1)}function Jn(e,t){e.min=e.min+t,e.max=e.max+t}function fd(e,t,n,r,o=.5){const s=be(e.min,e.max,o);da(e,t,n,s,r)}function Qn(e,t){fd(e.x,t.x,t.scaleX,t.scale,t.originX),fd(e.y,t.y,t.scaleY,t.scale,t.originY)}function hd(e,t){return id(_4(e.getBoundingClientRect(),t))}function B4(e,t,n){const r=hd(e,n),{scroll:o}=t;return o&&(Jn(r.x,o.offset.x),Jn(r.y,o.offset.y)),r}const pd=()=>({translate:0,scale:1,origin:0,originPoint:0}),er=()=>({x:pd(),y:pd()}),md=()=>({min:0,max:0}),Le=()=>({x:md(),y:md()}),fa={current:null},gd={current:!1};function I4(){if(gd.current=!0,!!us)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>fa.current=e.matches;e.addEventListener("change",t),t()}else fa.current=!1}const j4=new WeakMap;function H4(e,t,n){for(const r in t){const o=t[r],s=n[r];if(Be(o))e.addValue(r,o);else if(Be(s))e.addValue(r,Cn(o,{owner:e}));else if(s!==o)if(e.hasValue(r)){const i=e.getValue(r);i.liveStyle===!0?i.jump(o):i.hasAnimated||i.set(o)}else{const i=e.getStaticValue(r);e.addValue(r,Cn(i!==void 0?i:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const yd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class W4{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:s,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Zs,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 h=Xe.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,ge.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=i;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=Wo(n),this.isVariantNode=zu(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const m=f[h];c[h]!==void 0&&Be(m)&&m.set(c[h])}}mount(t){this.current=t,j4.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)),gd.current||I4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:fa.current,process.env.NODE_ENV!=="production"&&ys(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),It(this.notifyUpdate),It(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Gn.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&ge.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{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 qn){const n=qn[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Le()}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<yd.length;r++){const o=yd[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,i=t[s];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=H4(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=Cn(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(N1(r)||F1(r))?r=parseFloat(r):!n4(r)&&Gt.test(n)&&(r=Ru(t,n)),this.setBaseTarget(t,Be(r)?r.get():r)),Be(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=ia(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Be(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new gs),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){qs.render(this.render)}}class vd extends W4{constructor(){super(...arguments),this.KeyframeResolver=H7}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]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Be(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function bd(e,{style:t,vars:n},r,o){const s=e.style;let i;for(i in t)s[i]=t[i];o?.applyProjectionStyles(s,r);for(i in n)s.setProperty(i,n[i])}function U4(e){return window.getComputedStyle(e)}class Z4 extends vd{constructor(){super(...arguments),this.type="html",this.renderInstance=bd}readValueFromInstance(t,n){if(Gn.has(n))return this.projection?.isProjecting?Is(n):s7(t,n);{const r=U4(t),o=(ws(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return hd(t,n)}build(t,n,r){na(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return sa(t,n,r)}}const Cd=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 z4(e,t,n,r){bd(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Cd.has(o)?o:aa(o),t.attrs[o])}class K4 extends vd{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Le}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Gn.has(n)){const r=Nu(n);return r&&r.default||0}return n=Cd.has(n)?n:aa(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return td(t,n,r)}build(t,n,r){qu(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){z4(t,n,r,o)}mount(t){this.isSVGTag=Ju(t.tagName),super.mount(t)}}const Y4=(e,t)=>oa(e)?new K4(t):new Z4(t,{allowProjection:e!==Sn});function tr(e,t,n){const r=e.getProps();return ia(r,t,n!==void 0?n:r.custom,e)}const ha=e=>Array.isArray(e);function G4(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Cn(n))}function q4(e){return ha(e)?e[e.length-1]||0:e}function X4(e,t){const n=tr(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const i in s){const a=q4(s[i]);G4(e,i,a)}}function J4(e){return!!(Be(e)&&e.add)}function pa(e,t){const n=e.getValue("willChange");if(J4(n))return n.add(t);if(!n&&Bt.WillChange){const r=new Bt.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function wd(e){return e.props[nd]}const Q4=e=>e!==null;function em(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(Q4),s=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[s]}const tm={type:"spring",stiffness:500,damping:25,restSpeed:10},nm=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),rm={type:"keyframes",duration:.8},om={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},im=(e,{keyframes:t})=>t.length>2?rm:Gn.has(e)?e.startsWith("scale")?nm(t[1]):tm:om;function sm({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:i,repeatDelay:a,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const ma=(e,t,n,r={},o,s)=>i=>{const a=Ks(r,e)||{},c=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-bt(c);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{i(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:o};sm(a)||Object.assign(d,im(e,d)),d.duration&&(d.duration=bt(d.duration)),d.repeatDelay&&(d.repeatDelay=bt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(zs(d),d.delay===0&&(f=!0)),(Bt.instantAnimations||Bt.skipAnimations)&&(f=!0,zs(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,f&&!s&&t.get()!==void 0){const h=em(d.keyframes,a);if(h!==void 0){ge.update(()=>{d.onUpdate(h),d.onComplete()});return}}return a.isSync?new _s(d):new D7(d)};function am({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function xd(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:i,...a}=t;r&&(s=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in a){const f=e.getValue(d,e.latestValues[d]??null),h=a[d];if(h===void 0||u&&am(u,d))continue;const m={delay:n,...Ks(s||{},d)},p=f.get();if(p!==void 0&&!f.isAnimating&&!Array.isArray(h)&&h===p&&!m.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const b=wd(e);if(b){const w=window.MotionHandoffAnimation(b,d,ge);w!==null&&(m.startTime=w,g=!0)}}pa(e,d),f.start(ma(d,f,h,e.shouldReduceMotion&&Su.has(d)?{type:!1}:m,e,g));const v=f.animation;v&&c.push(v)}return i&&Promise.all(c).then(()=>{ge.update(()=>{i&&X4(e,i)})}),c}function kd(e,t,n,r=0,o=1){const s=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),i=e.size,a=(i-1)*r;return typeof n=="function"?n(s,i):o===1?s*r:a-s*r}function ga(e,t,n={}){const r=tr(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(xd(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=o;return lm(e,t,c,u,d,f,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[c,u]=a==="beforeChildren"?[s,i]:[i,s];return c().then(()=>u())}else return Promise.all([s(),i(n.delay)])}function lm(e,t,n=0,r=0,o=0,s=1,i){const a=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),a.push(ga(c,t,{...i,delay:n+(typeof r=="function"?0:r)+kd(e.variantChildren,c,r,o,s)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(a)}function cm(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>ga(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=ga(e,t,n);else{const o=typeof t=="function"?tr(e,t,n.custom):t;r=Promise.all(xd(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Ld(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}const um=ta.length;function Ed(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Ed(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<um;n++){const r=ta[n],o=e.props[r];(Pr(o)||o===!1)&&(t[r]=o)}return t}const dm=[...ea].reverse(),fm=ea.length;function hm(e){return t=>Promise.all(t.map(({animation:n,options:r})=>cm(e,n,r)))}function pm(e){let t=hm(e),n=Md(),r=!0;const o=c=>(u,d)=>{const f=tr(e,d,c==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:h,transitionEnd:m,...p}=f;u={...u,...p,...m}}return u};function s(c){t=c(e)}function i(c){const{props:u}=e,d=Ed(e.parent)||{},f=[],h=new Set;let m={},p=1/0;for(let v=0;v<fm;v++){const b=dm[v],w=n[b],C=u[b]!==void 0?u[b]:d[b],L=Pr(C),k=b===c?w.isActive:null;k===!1&&(p=v);let E=C===d[b]&&C!==u[b]&&L;if(E&&r&&e.manuallyAnimateOnMount&&(E=!1),w.protectedKeys={...m},!w.isActive&&k===null||!C&&!w.prevProp||Ho(C)||typeof C=="boolean")continue;const R=mm(w.prevProp,C);let P=R||b===c&&w.isActive&&!E&&L||v>p&&L,W=!1;const _=Array.isArray(C)?C:[C];let B=_.reduce(o(b),{});k===!1&&(B={});const{prevResolvedValues:Y={}}=w,z={...Y,...B},A=D=>{P=!0,h.has(D)&&(W=!0,h.delete(D)),w.needsAnimating[D]=!0;const S=e.getValue(D);S&&(S.liveStyle=!1)};for(const D in z){const S=B[D],O=Y[D];if(m.hasOwnProperty(D))continue;let V=!1;ha(S)&&ha(O)?V=!Ld(S,O):V=S!==O,V?S!=null?A(D):h.add(D):S!==void 0&&h.has(D)?A(D):w.protectedKeys[D]=!0}w.prevProp=C,w.prevResolvedValues=B,w.isActive&&(m={...m,...B}),r&&e.blockInitialAnimation&&(P=!1);const $=E&&R;P&&(!$||W)&&f.push(..._.map(D=>{const S={type:b};if(typeof D=="string"&&r&&!$&&e.manuallyAnimateOnMount&&e.parent){const{parent:O}=e,V=tr(O,D);if(O.enteringChildren&&V){const{delayChildren:U}=V.transition||{};S.delay=kd(O.enteringChildren,e,U)}}return{animation:D,options:S}}))}if(h.size){const v={};if(typeof u.initial!="boolean"){const b=tr(e,Array.isArray(u.initial)?u.initial[0]:u.initial);b&&b.transition&&(v.transition=b.transition)}h.forEach(b=>{const w=e.getBaseTarget(b),C=e.getValue(b);C&&(C.liveStyle=!0),v[b]=w??null}),f.push({animation:v})}let g=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(f):Promise.resolve()}function a(c,u){if(n[c].isActive===u)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(c,u)),n[c].isActive=u;const d=i(c);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:i,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Md()}}}function mm(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ld(t,e):!1}function xn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Md(){return{animate:xn(!0),whileInView:xn(),whileHover:xn(),whileTap:xn(),whileDrag:xn(),whileFocus:xn(),exit:xn()}}class qt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class gm extends qt{constructor(t){super(t),t.animationState||(t.animationState=pm(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ho(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(){this.node.animationState.reset(),this.unmountControls?.()}}let ym=0;class vm extends qt{constructor(){super(...arguments),this.id=ym++}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 o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const bm={animation:{Feature:gm},exit:{Feature:vm}};function Nr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Rr(e){return{point:{x:e.pageX,y:e.pageY}}}const Cm=e=>t=>Xs(t)&&e(t,Rr(t));function Fr(e,t,n,r){return Nr(e,t,Cm(n),r)}const Sd=1e-4,wm=1-Sd,xm=1+Sd,Td=.01,km=0-Td,Lm=0+Td;function ze(e){return e.max-e.min}function Em(e,t,n){return Math.abs(e-t)<=n}function Dd(e,t,n,r=.5){e.origin=r,e.originPoint=be(t.min,t.max,e.origin),e.scale=ze(n)/ze(t),e.translate=be(n.min,n.max,e.origin)-e.originPoint,(e.scale>=wm&&e.scale<=xm||isNaN(e.scale))&&(e.scale=1),(e.translate>=km&&e.translate<=Lm||isNaN(e.translate))&&(e.translate=0)}function Vr(e,t,n,r){Dd(e.x,t.x,n.x,r?r.originX:void 0),Dd(e.y,t.y,n.y,r?r.originY:void 0)}function Pd(e,t,n){e.min=n.min+t.min,e.max=e.min+ze(t)}function Mm(e,t,n){Pd(e.x,t.x,n.x),Pd(e.y,t.y,n.y)}function Ad(e,t,n){e.min=t.min-n.min,e.max=e.min+ze(t)}function $r(e,t,n){Ad(e.x,t.x,n.x),Ad(e.y,t.y,n.y)}function ct(e){return[e("x"),e("y")]}const Nd=({current:e})=>e?e.ownerDocument.defaultView:null,Rd=(e,t)=>Math.abs(e-t);function Sm(e,t){const n=Rd(e.x,t.x),r=Rd(e.y,t.y);return Math.sqrt(n**2+r**2)}class Fd{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:s=!1,distanceThreshold:i=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=va(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,p=Sm(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!p)return;const{point:g}=h,{timestamp:v}=Fe;this.history.push({...g,timestamp:v});const{onStart:b,onMove:w}=this.handlers;m||(b&&b(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ya(m,this.transformPagePoint),ge.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=va(h.type==="pointercancel"?this.lastMoveEventInfo:ya(m,this.transformPagePoint),this.history);this.startEvent&&p&&p(h,b),g&&g(h,b)},!Xs(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=o||window;const a=Rr(t),c=ya(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=Fe;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,va(c,this.history)),this.removeListeners=wr(Fr(this.contextWindow,"pointermove",this.handlePointerMove),Fr(this.contextWindow,"pointerup",this.handlePointerUp),Fr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),It(this.updatePoint)}}function ya(e,t){return t?{point:t(e.point)}:e}function Vd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function va({point:e},t){return{point:e,delta:Vd(e,$d(t)),offset:Vd(e,Tm(t)),velocity:Dm(t,.1)}}function Tm(e){return e[0]}function $d(e){return e[e.length-1]}function Dm(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=$d(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>bt(t)));)n--;if(!r)return{x:0,y:0};const s=lt(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const i={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Pm(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?be(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?be(n,e,r.max):Math.min(e,n)),e}function _d(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 Am(e,{top:t,left:n,bottom:r,right:o}){return{x:_d(e.x,n,o),y:_d(e.y,t,r)}}function Od(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 Nm(e,t){return{x:Od(e.x,t.x),y:Od(e.y,t.y)}}function Rm(e,t){let n=.5;const r=ze(e),o=ze(t);return o>r?n=xr(t.min,t.max-r,e.min):r>o&&(n=xr(e.min,e.max-o,t.min)),_t(0,1,n)}function Fm(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 ba=.35;function Vm(e=ba){return e===!1?e=0:e===!0&&(e=ba),{x:Bd(e,"left","right"),y:Bd(e,"top","bottom")}}function Bd(e,t,n){return{min:Id(e,t),max:Id(e,n)}}function Id(e,t){return typeof e=="number"?e:e[t]||0}const $m=new WeakMap;class _m{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Le(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const s=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Rr(f).point)},i=(f,h)=>{const{drag:m,dragPropagation:p,onDragStart:g}=this.getProps();if(m&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=K7(m),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ct(b=>{let w=this.getAxisMotionValue(b).get()||0;if(Dt.test(w)){const{projection:C}=this.visualElement;if(C&&C.layout){const L=C.layout.layoutBox[b];L&&(w=ze(L)*(parseFloat(w)/100))}}this.originPoint[b]=w}),g&&ge.postRender(()=>g(f,h)),pa(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:p,onDirectionLock:g,onDrag:v}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:b}=h;if(p&&this.currentDirection===null){this.currentDirection=Om(b),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",h.point,b),this.updateAxis("y",h.point,b),this.visualElement.render(),v&&v(f,h)},c=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>ct(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Fd(t,{onSessionStart:s,onStart:i,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:Nd(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!r)return;const{velocity:i}=o;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&ge.postRender(()=>a(r,o))}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.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!zo(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let i=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(i=Pm(i,this.constraints[t],this.elastic[t])),s.set(i)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&Xn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Am(r.layoutBox,t):this.constraints=!1,this.elastic=Vm(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ct(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Fm(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Xn(t))return!1;const r=t.current;Ot(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=B4(r,o.root,this.visualElement.getTransformPagePoint());let i=Nm(o.layout.layoutBox,s);if(n){const a=n($4(i));this.hasMutatedConstraints=!!a,a&&(i=id(a))}return i}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},u=ct(d=>{if(!zo(d,n,this.currentDirection))return;let f=c&&c[d]||{};i&&(f={min:0,max:0});const h=o?200:1e6,m=o?40:1e7,p={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(d,p)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return pa(this.visualElement,t),r.start(ma(t,r,0,n,this.visualElement,!1))}stopAnimation(){ct(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ct(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ct(n=>{const{drag:r}=this.getProps();if(!zo(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:i,max:a}=o.layout.layoutBox[n];s.set(t[n]-be(i,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Xn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ct(i=>{const a=this.getAxisMotionValue(i);if(a&&this.constraints!==!1){const c=a.get();o[i]=Rm({min:c,max:c},this.constraints[i])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ct(i=>{if(!zo(i,t,null))return;const a=this.getAxisMotionValue(i),{min:c,max:u}=this.constraints[i];a.set(be(c,u,o[i]))})}addListeners(){if(!this.visualElement.current)return;$m.set(this.visualElement,this);const t=this.visualElement.current,n=Fr(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Xn(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ge.read(r);const i=Nr(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(ct(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())});return()=>{i(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:i=ba,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:i,dragMomentum:a}}}function zo(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Om(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Bm extends qt{constructor(t){super(t),this.removeGroupControls=at,this.removeListeners=at,this.controls=new _m(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||at}unmount(){this.removeGroupControls(),this.removeListeners()}}const jd=e=>(t,n)=>{e&&ge.postRender(()=>e(t,n))};class Im extends qt{constructor(){super(...arguments),this.removePointerDownListener=at}onPointerDown(t){this.session=new Fd(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Nd(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:jd(t),onStart:jd(n),onMove:r,onEnd:(s,i)=>{delete this.session,o&&ge.postRender(()=>o(s,i))}}}mount(){this.removePointerDownListener=Fr(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 Ko={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Hd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const _r={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Q.test(e))e=parseFloat(e);else return e;const n=Hd(e,t.target.x),r=Hd(e,t.target.y);return`${n}% ${r}%`}},jm={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Gt.parse(e);if(o.length>5)return r;const s=Gt.createTransformer(e),i=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;o[0+i]/=a,o[1+i]/=c;const u=be(a,c,.5);return typeof o[2+i]=="number"&&(o[2+i]/=u),typeof o[3+i]=="number"&&(o[3+i]/=u),s(o)}};let Ca=!1;class Hm extends Q0{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;u4(Wm),s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),Ca&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Ko.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:s}=this.props,{projection:i}=r;return i&&(i.isPresent=s,Ca=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?i.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?i.promote():i.relegate()||ge.postRender(()=>{const a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),qs.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Ca=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Wd(e){const[t,n]=r4(),r=de(P1);return l(Hm,{...e,layoutGroup:r,switchLayoutGroup:de(rd),isPresent:t,safeToRemove:n})}const Wm={borderRadius:{..._r,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_r,borderTopRightRadius:_r,borderBottomLeftRadius:_r,borderBottomRightRadius:_r,boxShadow:jm};function Um(e,t,n){const r=Be(e)?e:Cn(e);return r.start(ma("",r,t,n)),r.animation}const Zm=(e,t)=>e.depth-t.depth;class zm{constructor(){this.children=[],this.isDirty=!1}add(t){fs(this.children,t),this.isDirty=!0}remove(t){hs(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Zm),this.isDirty=!1,this.children.forEach(t)}}function Km(e,t){const n=Xe.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(It(r),e(s-t))};return ge.setup(r,!0),()=>It(r)}const Ud=["TopLeft","TopRight","BottomLeft","BottomRight"],Ym=Ud.length,Zd=e=>typeof e=="string"?parseFloat(e):e,zd=e=>typeof e=="number"||Q.test(e);function Gm(e,t,n,r,o,s){o?(e.opacity=be(0,n.opacity??1,qm(r)),e.opacityExit=be(t.opacity??1,0,Xm(r))):s&&(e.opacity=be(t.opacity??1,n.opacity??1,r));for(let i=0;i<Ym;i++){const a=`border${Ud[i]}Radius`;let c=Kd(t,a),u=Kd(n,a);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||zd(c)===zd(u)?(e[a]=Math.max(be(Zd(c),Zd(u),r),0),(Dt.test(u)||Dt.test(c))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=be(t.rotate||0,n.rotate||0,r))}function Kd(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const qm=Yd(0,.5,W1),Xm=Yd(.5,.95,at);function Yd(e,t,n){return r=>r<e?0:r>t?1:n(xr(e,t,r))}function Gd(e,t){e.min=t.min,e.max=t.max}function ut(e,t){Gd(e.x,t.x),Gd(e.y,t.y)}function qd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Xd(e,t,n,r,o){return e-=t,e=Zo(e,1/n,r),o!==void 0&&(e=Zo(e,1/o,r)),e}function Jm(e,t=0,n=1,r=.5,o,s=e,i=e){if(Dt.test(t)&&(t=parseFloat(t),t=be(i.min,i.max,t/100)-i.min),typeof t!="number")return;let a=be(s.min,s.max,r);e===s&&(a-=t),e.min=Xd(e.min,t,n,a,o),e.max=Xd(e.max,t,n,a,o)}function Jd(e,t,[n,r,o],s,i){Jm(e,t[n],t[r],t[o],t.scale,s,i)}const Qm=["x","scaleX","originX"],e8=["y","scaleY","originY"];function Qd(e,t,n,r){Jd(e.x,t,Qm,n?n.x:void 0,r?r.x:void 0),Jd(e.y,t,e8,n?n.y:void 0,r?r.y:void 0)}function e0(e){return e.translate===0&&e.scale===1}function t0(e){return e0(e.x)&&e0(e.y)}function n0(e,t){return e.min===t.min&&e.max===t.max}function t8(e,t){return n0(e.x,t.x)&&n0(e.y,t.y)}function r0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function o0(e,t){return r0(e.x,t.x)&&r0(e.y,t.y)}function i0(e){return ze(e.x)/ze(e.y)}function s0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class n8{constructor(){this.members=[]}add(t){fs(this.members,t),t.scheduleRender()}remove(t){if(hs(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(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const s=this.members[o];if(s.isPresent!==!1){r=s;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:o}=t.options;o===!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 r8(e,t,n){let r="";const o=e.x.translate/t.x,s=e.y.translate/t.y,i=n?.z||0;if((o||s||i)&&(r=`translate3d(${o}px, ${s}px, ${i}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:h,skewX:m,skewY:p}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),m&&(r+=`skewX(${m}deg) `),p&&(r+=`skewY(${p}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 wa=["","X","Y","Z"],o8=1e3;let i8=0;function xa(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function a0(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=wd(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ge,!(o||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&a0(r)}function l0({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(i={},a=t?.()){this.id=i8++,this.animationId=0,this.animationCommitId=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,this.nodes.forEach(l8),this.nodes.forEach(f8),this.nodes.forEach(h8),this.nodes.forEach(c8)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,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 zm)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new gs),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const c=this.eventHandlers.get(i);c&&c.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=Hu(i)&&!Q7(i),this.instance=i;const{layoutId:a,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),e){let d,f=0;const h=()=>this.root.updateBlockedByResize=!1;ge.read(()=>{f=window.innerWidth}),e(i,()=>{const m=window.innerWidth;m!==f&&(f=m,this.root.updateBlockedByResize=!0,d&&d(),d=Km(h,250),Ko.hasAnimatedSinceResize&&(Ko.hasAnimatedSinceResize=!1,this.nodes.forEach(d0)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||v8,{onLayoutAnimationStart:g,onLayoutAnimationComplete:v}=u.getProps(),b=!this.targetLayout||!o0(this.targetLayout,m),w=!f&&h;if(this.options.layoutRoot||this.resumeFrom||w||f&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...Ks(p,"layout"),onPlay:g,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(d,w)}else f||d0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),It(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(p8),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&a0(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(c0);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(u0);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(d8),this.nodes.forEach(s8),this.nodes.forEach(a8)):this.nodes.forEach(u0),this.clearAllSnapshots();const a=Xe.now();Fe.delta=_t(0,1e3/60,a-Fe.timestamp),Fe.timestamp=a,Fe.isProcessing=!0,Cs.update.process(Fe),Cs.preRender.process(Fe),Cs.render.process(Fe),Fe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,qs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(u8),this.sharedNodes.forEach(m8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ge.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ge.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ze(this.snapshot.measuredBox.x)&&!ze(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}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 i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Le(),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,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!o)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!t0(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;i&&this.instance&&(a||wn(this.latestValues)||d)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return i&&(c=this.removeTransform(c)),b8(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return Le();const a=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(C8))){const{scroll:u}=this.root;u&&(Jn(a.x,u.offset.x),Jn(a.y,u.offset.y))}return a}removeElementScroll(i){const a=Le();if(ut(a,i),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:f}=u;u!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&ut(a,i),Jn(a.x,d.offset.x),Jn(a.y,d.offset.y))}return a}applyTransform(i,a=!1){const c=Le();ut(c,i);for(let u=0;u<this.path.length;u++){const d=this.path[u];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Qn(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),wn(d.latestValues)&&Qn(c,d.latestValues)}return wn(this.latestValues)&&Qn(c,this.latestValues),c}removeTransform(i){const a=Le();ut(a,i);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!wn(u.latestValues))continue;ua(u.latestValues)&&u.updateSnapshot();const d=Le(),f=u.measurePageBox();ut(d,f),Qd(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return wn(this.latestValues)&&Qd(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.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!==Fe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(i||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=Fe.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Le(),this.relativeTargetOrigin=Le(),$r(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ut(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Le(),this.targetWithTransforms=Le()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Mm(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ut(this.target,this.layout.layoutBox),cd(this.target,this.targetDelta)):ut(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Le(),this.relativeTargetOrigin=Le(),$r(this.relativeTargetOrigin,this.target,h.target),ut(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ua(this.parent.latestValues)||sd(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const i=this.getLead(),a=!!this.resumingFrom||this!==i;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Fe.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;ut(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;O4(this.layoutCorrected,this.treeScale,this.path,a),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=Le());const{target:m}=i;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(qd(this.prevProjectionDelta.x,this.projectionDelta.x),qd(this.prevProjectionDelta.y,this.projectionDelta.y)),Vr(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!s0(this.projectionDelta.x,this.prevProjectionDelta.x)||!s0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=er(),this.projectionDelta=er(),this.projectionDeltaWithTransform=er()}setAnimationOrigin(i,a=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=er();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=Le(),m=c?c.source:void 0,p=this.layout?this.layout.source:void 0,g=m!==p,v=this.getStack(),b=!v||v.members.length<=1,w=!!(g&&!b&&this.options.crossfade===!0&&!this.path.some(y8));this.animationProgress=0;let C;this.mixTargetDelta=L=>{const k=L/1e3;f0(f.x,i.x,k),f0(f.y,i.y,k),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&($r(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),g8(this.relativeTarget,this.relativeTargetOrigin,h,k),C&&t8(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Le()),ut(C,this.relativeTarget)),g&&(this.animationValues=d,Gm(d,u,this.latestValues,k,w,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(It(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ge.update(()=>{Ko.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Cn(0)),this.currentAnimation=Um(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),i.onUpdate&&i.onUpdate(a)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.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 i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(o8),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:c,layout:u,latestValues:d}=i;if(!(!a||!c||!u)){if(this!==i&&this.layout&&u&&y0(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||Le();const f=ze(this.layout.layoutBox.x);c.x.min=i.target.x.min,c.x.max=c.x.min+f;const h=ze(this.layout.layoutBox.y);c.y.min=i.target.y.min,c.y.max=c.y.min+h}ut(a,c),Qn(a,d),Vr(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new n8),this.sharedNodes.get(i).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){const{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let a=!1;const{latestValues:c}=i;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const u={};c.z&&xa("z",i,u,this.animationValues);for(let d=0;d<wa.length;d++)xa(`rotate${wa[d]}`,i,u,this.animationValues),xa(`skew${wa[d]}`,i,u,this.animationValues);i.render();for(const d in u)i.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);i.scheduleRender()}applyProjectionStyles(i,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=Uo(a?.pointerEvents)||"",i.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=Uo(a?.pointerEvents)||""),this.hasProjected&&!wn(this.latestValues)&&(i.transform=c?c({},""):"none",this.hasProjected=!1);return}i.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=r8(this.projectionDeltaWithTransform,this.treeScale,d);c&&(f=c(d,f)),i.transform=f;const{x:h,y:m}=this.projectionDelta;i.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,u.animationValues?i.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:i.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const p in Ar){if(d[p]===void 0)continue;const{correct:g,applyTo:v,isCSSVariable:b}=Ar[p],w=f==="none"?d[p]:g(d[p],u);if(v){const C=v.length;for(let L=0;L<C;L++)i[v[L]]=w}else b?this.options.visualElement.renderState.vars[p]=w:i[p]=w}this.options.layoutId&&(i.pointerEvents=u===this?Uo(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(c0),this.root.sharedNodes.clear()}}}function s8(e){e.updateLayout()}function a8(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;o==="size"?ct(d=>{const f=s?t.measuredBox[d]:t.layoutBox[d],h=ze(f);f.min=n[d].min,f.max=f.min+h}):y0(o,t.layoutBox,n)&&ct(d=>{const f=s?t.measuredBox[d]:t.layoutBox[d],h=ze(n[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const i=er();Vr(i,n,t.layoutBox);const a=er();s?Vr(a,e.applyTransform(r,!0),t.measuredBox):Vr(a,n,t.layoutBox);const c=!t0(i);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const m=Le();$r(m,t.layoutBox,f.layoutBox);const p=Le();$r(p,n,h.layoutBox),o0(m,p)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:i,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function l8(e){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 c8(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function u8(e){e.clearSnapshot()}function c0(e){e.clearMeasurements()}function u0(e){e.isLayoutDirty=!1}function d8(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function d0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function f8(e){e.resolveTargetDelta()}function h8(e){e.calcProjection()}function p8(e){e.resetSkewAndRotation()}function m8(e){e.removeLeadSnapshot()}function f0(e,t,n){e.translate=be(t.translate,0,n),e.scale=be(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function h0(e,t,n,r){e.min=be(t.min,n.min,r),e.max=be(t.max,n.max,r)}function g8(e,t,n,r){h0(e.x,t.x,n.x,r),h0(e.y,t.y,n.y,r)}function y8(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const v8={duration:.45,ease:[.4,0,.1,1]},p0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),m0=p0("applewebkit/")&&!p0("chrome/")?Math.round:at;function g0(e){e.min=m0(e.min),e.max=m0(e.max)}function b8(e){g0(e.x),g0(e.y)}function y0(e,t,n){return e==="position"||e==="preserve-aspect"&&!Em(i0(t),i0(n),.2)}function C8(e){return e!==e.root&&e.scroll?.wasRoot}const w8=l0({attachResizeListener:(e,t)=>Nr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ka={current:void 0},v0=l0({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ka.current){const e=new w8({});e.mount(window),e.setOptions({layoutScroll:!0}),ka.current=e}return ka.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),x8={pan:{Feature:Im},drag:{Feature:Bm,ProjectionNode:v0,MeasureLayout:Wd}};function b0(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=r[o];s&&ge.postRender(()=>s(t,Rr(t)))}class k8 extends qt{mount(){const{current:t}=this.node;t&&(this.unmount=Y7(t,(n,r)=>(b0(this.node,r,"Start"),o=>b0(this.node,o,"End"))))}unmount(){}}class L8 extends qt{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=wr(Nr(this.node.current,"focus",()=>this.onFocus()),Nr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function C0(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),s=r[o];s&&ge.postRender(()=>s(t,Rr(t)))}class E8 extends qt{mount(){const{current:t}=this.node;t&&(this.unmount=J7(t,(n,r)=>(C0(this.node,r,"Start"),(o,{success:s})=>C0(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const La=new WeakMap,Ea=new WeakMap,M8=e=>{const t=La.get(e.target);t&&t(e)},S8=e=>{e.forEach(M8)};function T8({root:e,...t}){const n=e||document;Ea.has(n)||Ea.set(n,{});const r=Ea.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(S8,{root:e,...t})),r[o]}function D8(e,t,n){const r=T8(t);return La.set(e,n),r.observe(e),()=>{La.delete(e),r.unobserve(e)}}const P8={some:0,all:1};class A8 extends qt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:s}=t,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:P8[o]},a=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=u?d:f;h&&h(c)};return D8(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(N8(t,n))&&this.startObserver()}unmount(){}}function N8({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const R8={inView:{Feature:A8},tap:{Feature:E8},focus:{Feature:L8},hover:{Feature:k8}},F8={layout:{ProjectionNode:v0,MeasureLayout:Wd}},V8={...bm,...R8,...x8,...F8},Yo=V4(V8,Y4);function w0(e){const t=cs(()=>Cn(e)),{isStatic:n}=de(Qs);if(n){const[,r]=K(e);te(()=>t.on("change",r),[])}return t}function x0(e,t){const n=w0(t()),r=()=>n.set(t());return r(),A1(()=>{const o=()=>ge.preRender(r,!1,!0),s=e.map(i=>i.on("change",o));return()=>{s.forEach(i=>i()),It(r)}}),n}function $8(e){Dr.current=[],e();const t=x0(Dr.current,e);return Dr.current=void 0,t}function _8(e,t,n,r){if(typeof e=="function")return $8(e);const o=typeof t=="function"?t:e4(t,n,r);return Array.isArray(e)?k0(e,o):k0([e],([s])=>o(s))}function k0(e,t){const n=cs(()=>[]);return x0(e,()=>{n.length=0;const r=e.length;for(let o=0;o<r;o++)n[o]=e[o].get();return t(n)})}const Or=({isOpen:e,onClose:t,title:n,description:r,children:o,bottomContent:s,topContent:i,className:a,showCloseButton:c=!0,size:u="medium",variant:d="centered"})=>{const f=se(null);if(!e)return null;const h=wp[u],m={centered:{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9}},"right-slide":{initial:{x:"100%",opacity:0},animate:{x:"0%",opacity:1},exit:{x:"100%",opacity:0}}};return l(x,{onClick:p=>p.stopPropagation(),className:"fixed inset-0 z-[100] flex items-center justify-center overflow-y-hidden max-h-screen bg-metrifox-black/50 backdrop-blur-sm",children:y(Yo.div,{ref:f,initial:m[d].initial,animate:m[d].animate,exit:m[d].exit,transition:{duration:.3,ease:"easeOut"},className:`bg-metrifox-white shadow-lg w-full ${h} flex flex-col ${d==="right-slide"?"fixed right-0 top-0 bottom-0 h-[100vh] rounded-l-2xl":"mx-4 my-auto max-h-[90vh] rounded-2xl"}`,children:[i?l(x,{className:"p-4",children:i}):y(x,{className:`${n?"p-6":"py-4 px-6"} border-b border-grey-200`,children:[y(x,{className:"flex justify-between items-center",children:[l(ss,{variant:"h6",color:"text-metrifox-black",children:n}),c&&l("span",{onClick:t,className:"cursor-pointer",children:l(he,{name:"circle-close",size:24,color:"grey-800"})})]}),r&&l(j,{variant:"body4",color:"text-grey-500",className:"mt-2 mr-6",children:r})]}),l(x,{className:`flex-grow overflow-y-auto p-6 max-h-[calc(90vh - 100px)] ${!s&&"rounded-b-2xl"} ${a}`,children:o}),s&&l(x,{className:"p-4 border-t border-grey-200",children:s})]})})};var L0={exports:{}};(function(e,t){(function(n,r){e.exports=r(N)})(typeof self<"u"?self:Jt,function(n){return function(){var r={155:function(w){w.exports=n}},o={};function s(w){var C=o[w];if(C!==void 0)return C.exports;var L=o[w]={exports:{}};return r[w](L,L.exports,s),L.exports}s.d=function(w,C){for(var L in C)s.o(C,L)&&!s.o(w,L)&&Object.defineProperty(w,L,{enumerable:!0,get:C[L]})},s.o=function(w,C){return Object.prototype.hasOwnProperty.call(w,C)},s.r=function(w){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(w,"__esModule",{value:!0})};var i={};s.r(i),s.d(i,{useReactToPrint:function(){return b}});var a=s(155);const c="printWindow";function u({level:w="error",messages:C,suppressErrors:L=!1}){L||(w==="error"?console.error(C):w==="warning"?console.warn(C):console.debug(C))}function d(w,C){if(C||!w){const L=document.getElementById(c);L&&document.body.removeChild(L)}}function f(w){return w instanceof Error?w:new Error("Unknown Error")}function h(w,C){const{documentTitle:L,onAfterPrint:k,onPrintError:E,preserveAfterPrint:R,print:P,suppressErrors:W}=C;setTimeout(()=>{var _,B;if(w.contentWindow){let Y=function(){k?.(),d(R)};if(w.contentWindow.focus(),P)P(w).then(Y).catch(z=>{E?E("print",f(z)):u({messages:["An error was thrown by the specified `print` function"],suppressErrors:W})});else{if(w.contentWindow.print){const z=(B=(_=w.contentDocument)===null||_===void 0?void 0:_.title)!==null&&B!==void 0?B:"",A=w.ownerDocument.title;L&&(w.ownerDocument.title=L,w.contentDocument&&(w.contentDocument.title=L)),w.contentWindow.print(),L&&(w.ownerDocument.title=A,w.contentDocument&&(w.contentDocument.title=z))}else u({messages:["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."],suppressErrors:W});[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some(z=>{var A,$;return(($=(A=navigator.userAgent)!==null&&A!==void 0?A:navigator.vendor)!==null&&$!==void 0?$:"opera"in window&&window.opera).match(z)})?setTimeout(Y,500):Y()}}else u({messages:["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/MatthewHerbst/react-to-print/issues/"],suppressErrors:W})},500)}function m(w){const C=[],L=document.createTreeWalker(w,NodeFilter.SHOW_ELEMENT,null);let k=L.nextNode();for(;k;)C.push(k),k=L.nextNode();return C}function p(w,C,L){const k=m(w),E=m(C);if(k.length===E.length)for(let R=0;R<k.length;R++){const P=k[R],W=E[R],_=P.shadowRoot;if(_!==null){const B=W.attachShadow({mode:_.mode});B.innerHTML=_.innerHTML,p(_,B,L)}}else u({messages:["When cloning shadow root content, source and target elements have different size. `onBeforePrint` likely resolved too early.",w,C],suppressErrors:L})}const g=`
|
|
27
27
|
@page {
|
|
28
28
|
/* Remove browser default header (title) and footer (url) */
|
|
29
29
|
margin: 0;
|
|
@@ -36,10 +36,10 @@ import*as G from"react";import R,{Fragment as Jt,useRef as se,useCallback as ue,
|
|
|
36
36
|
-webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
`;function v(C,
|
|
40
|
-
`)}catch(xe){u({messages:["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/MatthewHerbst/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",fe,`Original error: ${f(xe).message}`],level:"warning"})}ye.setAttribute("id",`react-to-print-${J}`),U&&ye.setAttribute("nonce",U),ye.appendChild(F.createTextNode(Je)),F.head.appendChild(ye)}}else if(fe.getAttribute("href"))if(fe.hasAttribute("disabled"))u({messages:["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",fe],level:"warning"}),b(fe);else{const ye=F.createElement(fe.tagName);for(let Ce=0,Je=fe.attributes.length;Ce<Je;++Ce){const xe=fe.attributes[Ce];xe&&ye.setAttribute(xe.nodeName,(O=xe.nodeValue)!==null&&O!==void 0?O:"")}ye.onload=()=>{b(ye)},ye.onerror=(Ce,Je,xe,dt,Qo)=>{b(ye,["Failed to load",ye,"Error:",Qo])},U&&ye.setAttribute("nonce",U),F.head.appendChild(ye)}else u({messages:["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",fe],level:"warning"}),b(fe)}}}$===0&&h(C,x)}function w({bodyClass:C,contentRef:b,copyShadowRoots:L,documentTitle:x,fonts:E,ignoreGlobalStyles:D,nonce:N,onAfterPrint:W,onBeforePrint:O,onPrintError:B,pageStyle:Y,preserveAfterPrint:z,print:A,printIframeProps:$,suppressErrors:M}){return(0,a.useCallback)(S=>{function _(){const V={bodyClass:C,contentRef:b,copyShadowRoots:L,documentTitle:x,fonts:E,ignoreGlobalStyles:D,nonce:N,onAfterPrint:W,onPrintError:B,pageStyle:Y,preserveAfterPrint:z,print:A,suppressErrors:M},U=function(F){const H=document.createElement("iframe");return H.width=`${document.documentElement.clientWidth}px`,H.height=`${document.documentElement.clientHeight}px`,H.style.position="absolute",H.style.top=`-${document.documentElement.clientHeight+100}px`,H.style.left=`-${document.documentElement.clientWidth+100}px`,H.id=c,H.srcdoc="<!DOCTYPE html>",F&&(F.allow&&(H.allow=F.allow),F.referrerPolicy!==void 0&&(H.referrerPolicy=F.referrerPolicy),F.sandbox!==void 0&&(H.sandbox=F.sandbox)),H}($),q=function(F,H){const{contentRef:ne,fonts:ie,ignoreGlobalStyles:X,suppressErrors:le}=H,ae=function({contentRef:ye,optionalContent:Ce,suppressErrors:Je}){return Ce&&typeof Ce=="function"?(ye&&u({level:"warning",messages:['"react-to-print" received a `contentRef` option and an optional-content param passed to its callback. The `contentRef` option will be ignored.']}),Ce()):ye?ye.current:void u({messages:['"react-to-print" did not receive a `contentRef` option or a optional-content param pass to its callback.'],suppressErrors:Je})}({contentRef:ne,optionalContent:F,suppressErrors:le});if(!ae)return;const pe=ae.cloneNode(!0),ee=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),J=pe.querySelectorAll("img"),Ee=pe.querySelectorAll("video"),fe=ie?ie.length:0;return{contentNode:ae,clonedContentNode:pe,clonedImgNodes:J,clonedVideoNodes:Ee,numResourcesToLoad:(X?0:ee.length)+J.length+Ee.length+fe,originalCanvasNodes:ae.querySelectorAll("canvas")}}(S,V);if(!q)return void u({messages:["There is nothing to print"],suppressErrors:M});const I=function(F,H,ne){const{suppressErrors:ie}=F,X=[],le=[];return function(ae,pe){X.includes(ae)?u({level:"debug",messages:["Tried to mark a resource that has already been handled",ae],suppressErrors:ie}):(pe?(u({messages:['"react-to-print" was unable to load a resource but will continue attempting to print the page',...pe],suppressErrors:ie}),le.push(ae)):X.push(ae),X.length+le.length===H&&h(ne,F))}}(V,q.numResourcesToLoad,U);(function(F,H,ne,ie){F.onload=()=>{v(F,H,ne,ie)},document.body.appendChild(F)})(U,I,q,V)}d(z,!0),O?O().then(()=>{_()}).catch(V=>{B?.("onBeforePrint",f(V))}):_()},[C,b,L,x,E,D,N,W,O,B,Y,z,A,M])}return s}()})})(x0);var F8=x0.exports,k0=(e=>(e.PDF="PDF",e.Email="Email",e))(k0||{});const Go=({size:e,color:t})=>l(k,{className:`animate-spin inline-block ${e=="big"?"size-8":"size-4"} border-[2px] ${t=="white"?"border-gray-400 border-t-transparent text-white":"border-metrifox-primary border-t-transparent text-metrifox-primary"} rounded-full dark:text-metrifox-primary`,role:"status","aria-label":"loading",children:l("span",{className:"sr-only",children:"Loading..."})}),_r=({children:e,onClick:t,className:n,isLoading:r,size:o="small",leadingIcon:i,trailingIcon:s,href:a,...c})=>l("button",{className:`px-4 py-2 text-[13px]/[16.9px] whitespace-nowrap flex items-center justify-center !gap-2 font-semibold text-white bg-metrifox-primary rounded-lg disabled:opacity-60 hover:opacity-90 ${rs[o]} ${n}`,onClick:()=>a?window.open(a,"_blank"):t?.(),...c,children:r?l(Go,{color:"white"}):g(ze,{children:[i&&l(he,{name:i,size:16}),e,s&&l(he,{name:s,size:16})]})}),qo=({children:e,onClick:t,className:n,leadingIcon:r,trailingIcon:o,iconColor:i,iconSize:s=16,isLoading:a,...c})=>l("button",{className:`!p-0 text-[13px]/[15.6px] whitespace-nowrap flex items-center justify-center gap-1 font-semibold text-metrifox-primary bg-transparent border-none ${n}`,onClick:t,...c,children:a?l(Go,{}):g(ze,{children:[r&&l(he,{name:r,size:s,color:i}),e,o&&l(he,{name:o,size:s,color:i})]})}),Xo=({children:e,onClick:t,className:n,isLoading:r,leadingIcon:o,trailingIcon:i,size:s="small",...a})=>l("button",{className:`flex items-center justify-center !gap-2 text-[13px]/[16.9px] font-semibold text-metrifox-black bg-transparent border border-grey-300 rounded-lg ${rs[s]} ${n}`,onClick:t,...a,children:r?l(Go,{color:"white"}):g(ze,{children:[o&&l(he,{name:o,size:16}),e,i&&l(he,{name:i,size:16})]})}),La=({children:e,onClick:t,className:n,isLoading:r,size:o="small",...i})=>l("button",{className:`px-4 py-2 text-[13px]/[16.9px] font-medium text-metrifox-black bg-background-system-secondary rounded-[8px] ${rs[o]} ${n}`,onClick:t,...i,children:r?l(Go,{}):e}),V8=({contentRef:e,content:t,containerBgColor:n="bg-neutral-100",panelShadow:r,panelWidth:o="w-full"})=>{const i=F8.useReactToPrint({contentRef:e}),s=[k0.PDF],a=()=>{setTimeout(()=>{e.current&&i()},100)};return l(k,{className:`${n} flex flex-col justify-center`,children:g(To,{className:"my-6 px-4",children:[g(k,{className:"flex items-center justify-between",children:[l(Do,{className:"w-max border border-neutral-200 text-grey-500 px-1.5 py-1 rounded-2xl",children:s.map(c=>l(vr,{className:"data-[selected]:bg-metrifox-primary data-[selected]:border data-[selected]:border-grey-50 outline-none data-[selected]:text-grey-50 rounded-xl px-16 py-1.5",children:c},c))}),g(La,{className:"flex items-center gap-1 !px-3 !py-6",size:"x-small",onClick:a,children:[l(Z,{variant:"label8",className:"text-metrifox-black flex items-center gap-2.5",children:"Download"}),l(he,{name:"download",size:16,color:"metrifox-black"})]})]}),g(Po,{children:[l(Wn,{children:l(k,{ref:e,className:`bg-metrifox-white ${r} p-8 rounded-xl border-t-8 border-metrifox-black h-full mt-8 ${o} mx-auto`,children:t||"Nothing to display"})}),l(Wn,{className:"h-screen text-center py-20",children:l("p",{children:"Coming soon"})})]})]})})},L0=({isOpen:e,onClose:t,contentRef:n,content:r,modalTitle:o,modalDescription:i})=>l(Or,{isOpen:e,onClose:t,title:o,description:i,size:"large",variant:"right-slide",className:"!p-0",children:l(V8,{contentRef:n,content:r})}),Ln=({label:e,onClick:t,disabled:n,variant:r="normal",active:o})=>{const i={next:"rounded-tr-[8px] rounded-br-[8px]",prev:"rounded-tl-[8px] rounded-bl-[8px] border-r-0",normal:"w-[38px] flex items-center justify-center py-1 border-r-0",display:"w-[38px] flex items-center justify-center py-1 cursor-default border-r-0"},s=o?"bg-grey-200 font-semibold":"";return l("button",{className:`px-3 py-2 text-grey-500 hover:text-grey-800 border disabled:opacity-50 ${i[r]} ${s}`,onClick:t,disabled:n,children:e})},$8=({currentPage:e,totalPages:t,onPageChange:n})=>g("div",{className:"flex items-center justify-center pt-6",children:[l(Ln,{label:"Prev",onClick:()=>n(e-1),disabled:e===1,variant:"prev"}),(()=>{const r=[];r.push(l(Ln,{label:1,onClick:()=>n(1),variant:"normal",active:e===1},1)),e>2&&r.push(l(Ln,{label:"...",onClick:()=>{},variant:"display"},"ellipsis-start"));const o=Math.max(2,e-1),i=Math.min(t-1,e+1);for(let s=o;s<=i;s++)r.push(l(Ln,{label:s,onClick:()=>n(s),variant:"normal",active:e===s},s));return e<t-1&&r.push(l(Ln,{label:"...",onClick:()=>{},variant:"display"},"ellipsis-end")),t>1&&r.push(l(Ln,{label:t,onClick:()=>n(t),variant:"normal",active:e===t},t)),r})(),l(Ln,{label:"Next",onClick:()=>n(e+1),disabled:e===t,variant:"next"})]}),Br=({columns:e,data:t,pagination:n,filters:r,actions:o,onRowClick:i,view:s="list",gridView:a,isLoading:c,skelentonRow:u=2,emptyState:d,isLastColumnSticky:f=!1,actionButton:h,className:m,emptyStateClassName:p,tab:y})=>{const[v,w]=K(!1),[C,b]=K(""),[L,x]=K("");if(te(()=>{w(!1),b(""),x("")},[y]),t?.length===0&&!C&&!L&&!c)return l("div",{className:`h-[55vh] flex items-center justify-center ${p}`,children:d||null});const E=N=>N?l(j,{variant:"body6",color:"text-grey-700",children:String(N)}):"-",D=a?.style?`${a?.style}`:"grid-cols-2 gap-2";return g("div",{className:`overflow-x-auto px-3 rounded-2xl bg-metrifox-white ${m}`,children:[l("div",{className:"px-3 mb-6",children:g("div",{className:"flex justify-between items-center",children:[o&&o,g("div",{className:"flex justify-end w-full gap-x-2 items-center",children:[r&&l(Xo,{className:"!border-grey-300 !text-grey-500",size:"x-small",leadingIcon:"filter",onClick:()=>w(!v),children:"Filter"}),h&&l(La,{className:"!text-metrifox-white !bg-metrifox-primary",size:"x-small",onClick:h.onClick,children:h.text})]})]})}),s==="list"&&l("div",{className:"w-full overflow-x-hidden hover:overflow-x-auto scrollbar",children:g("table",{className:"min-w-full border-collapse text-left relative",children:[l("thead",{children:l("tr",{children:e.map((N,W)=>l("th",{className:`px-3 py-2 text-sm font-semibold text-gray-700 border-b border-grey-100 whitespace-nowrap
|
|
39
|
+
`;function v(w,C,L,k){var E,R,P,W,_;const{contentNode:B,clonedContentNode:Y,clonedImgNodes:z,clonedVideoNodes:A,numResourcesToLoad:$,originalCanvasNodes:M}=L,{bodyClass:D,fonts:S,ignoreGlobalStyles:O,pageStyle:V,nonce:U,suppressErrors:q,copyShadowRoots:I}=k;w.onload=null;const F=(E=w.contentDocument)!==null&&E!==void 0?E:(R=w.contentWindow)===null||R===void 0?void 0:R.document;if(F){const H=F.body.appendChild(Y);I&&p(B,H,!!q),S&&(!((P=w.contentDocument)===null||P===void 0)&&P.fonts&&(!((W=w.contentWindow)===null||W===void 0)&&W.FontFace)?S.forEach(ee=>{const J=new FontFace(ee.family,ee.source,{weight:ee.weight,style:ee.style});w.contentDocument.fonts.add(J),J.loaded.then(()=>{C(J)}).catch(Ee=>{C(J,["Failed loading the font:",J,"Load error:",f(Ee)])})}):(S.forEach(ee=>{C(ee)}),u({messages:['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'],suppressErrors:q})));const ne=V??g,ie=F.createElement("style");U&&(ie.setAttribute("nonce",U),F.head.setAttribute("nonce",U)),ie.appendChild(F.createTextNode(ne)),F.head.appendChild(ie),D&&F.body.classList.add(...D.split(" "));const X=F.querySelectorAll("canvas");for(let ee=0;ee<M.length;++ee){const J=M[ee],Ee=X[ee];if(Ee===void 0){u({messages:["A canvas element could not be copied for printing, has it loaded? `onBeforePrint` likely resolved too early.",J],suppressErrors:q});continue}const fe=Ee.getContext("2d");fe&&fe.drawImage(J,0,0)}for(let ee=0;ee<z.length;ee++){const J=z[ee],Ee=J.getAttribute("src");if(Ee){const fe=new Image;fe.onload=()=>{C(J)},fe.onerror=(ye,we,Je,xe,dt)=>{C(J,["Error loading <img>",J,"Error",dt])},fe.src=Ee}else C(J,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it.',J])}for(let ee=0;ee<A.length;ee++){const J=A[ee];J.preload="auto";const Ee=J.getAttribute("poster");if(Ee){const fe=new Image;fe.onload=()=>{C(J)},fe.onerror=(ye,we,Je,xe,dt)=>{C(J,["Error loading video poster",Ee,"for video",J,"Error:",dt])},fe.src=Ee}else J.readyState>=2?C(J):J.src?(J.onloadeddata=()=>{C(J)},J.onerror=(fe,ye,we,Je,xe)=>{C(J,["Error loading video",J,"Error",xe])},J.onstalled=()=>{C(J,["Loading video stalled, skipping",J])}):C(J,["Error loading video, `src` is empty",J])}const ce="select",ae=B.querySelectorAll(ce),pe=F.querySelectorAll(ce);for(let ee=0;ee<ae.length;ee++)pe[ee].value=ae[ee].value;if(!O){const ee=document.querySelectorAll("style, link[rel~='stylesheet'], link[as='style']");for(let J=0,Ee=ee.length;J<Ee;++J){const fe=ee[J];if(fe.tagName.toLowerCase()==="style"){const ye=F.createElement(fe.tagName),we=fe.sheet;if(we){let Je="";try{const xe=we.cssRules.length;for(let dt=0;dt<xe;++dt)typeof we.cssRules[dt].cssText=="string"&&(Je+=`${we.cssRules[dt].cssText}\r
|
|
40
|
+
`)}catch(xe){u({messages:["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/MatthewHerbst/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",fe,`Original error: ${f(xe).message}`],level:"warning"})}ye.setAttribute("id",`react-to-print-${J}`),U&&ye.setAttribute("nonce",U),ye.appendChild(F.createTextNode(Je)),F.head.appendChild(ye)}}else if(fe.getAttribute("href"))if(fe.hasAttribute("disabled"))u({messages:["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",fe],level:"warning"}),C(fe);else{const ye=F.createElement(fe.tagName);for(let we=0,Je=fe.attributes.length;we<Je;++we){const xe=fe.attributes[we];xe&&ye.setAttribute(xe.nodeName,(_=xe.nodeValue)!==null&&_!==void 0?_:"")}ye.onload=()=>{C(ye)},ye.onerror=(we,Je,xe,dt,Qo)=>{C(ye,["Failed to load",ye,"Error:",Qo])},U&&ye.setAttribute("nonce",U),F.head.appendChild(ye)}else u({messages:["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",fe],level:"warning"}),C(fe)}}}$===0&&h(w,k)}function b({bodyClass:w,contentRef:C,copyShadowRoots:L,documentTitle:k,fonts:E,ignoreGlobalStyles:R,nonce:P,onAfterPrint:W,onBeforePrint:_,onPrintError:B,pageStyle:Y,preserveAfterPrint:z,print:A,printIframeProps:$,suppressErrors:M}){return(0,a.useCallback)(S=>{function O(){const V={bodyClass:w,contentRef:C,copyShadowRoots:L,documentTitle:k,fonts:E,ignoreGlobalStyles:R,nonce:P,onAfterPrint:W,onPrintError:B,pageStyle:Y,preserveAfterPrint:z,print:A,suppressErrors:M},U=function(F){const H=document.createElement("iframe");return H.width=`${document.documentElement.clientWidth}px`,H.height=`${document.documentElement.clientHeight}px`,H.style.position="absolute",H.style.top=`-${document.documentElement.clientHeight+100}px`,H.style.left=`-${document.documentElement.clientWidth+100}px`,H.id=c,H.srcdoc="<!DOCTYPE html>",F&&(F.allow&&(H.allow=F.allow),F.referrerPolicy!==void 0&&(H.referrerPolicy=F.referrerPolicy),F.sandbox!==void 0&&(H.sandbox=F.sandbox)),H}($),q=function(F,H){const{contentRef:ne,fonts:ie,ignoreGlobalStyles:X,suppressErrors:ce}=H,ae=function({contentRef:ye,optionalContent:we,suppressErrors:Je}){return we&&typeof we=="function"?(ye&&u({level:"warning",messages:['"react-to-print" received a `contentRef` option and an optional-content param passed to its callback. The `contentRef` option will be ignored.']}),we()):ye?ye.current:void u({messages:['"react-to-print" did not receive a `contentRef` option or a optional-content param pass to its callback.'],suppressErrors:Je})}({contentRef:ne,optionalContent:F,suppressErrors:ce});if(!ae)return;const pe=ae.cloneNode(!0),ee=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),J=pe.querySelectorAll("img"),Ee=pe.querySelectorAll("video"),fe=ie?ie.length:0;return{contentNode:ae,clonedContentNode:pe,clonedImgNodes:J,clonedVideoNodes:Ee,numResourcesToLoad:(X?0:ee.length)+J.length+Ee.length+fe,originalCanvasNodes:ae.querySelectorAll("canvas")}}(S,V);if(!q)return void u({messages:["There is nothing to print"],suppressErrors:M});const I=function(F,H,ne){const{suppressErrors:ie}=F,X=[],ce=[];return function(ae,pe){X.includes(ae)?u({level:"debug",messages:["Tried to mark a resource that has already been handled",ae],suppressErrors:ie}):(pe?(u({messages:['"react-to-print" was unable to load a resource but will continue attempting to print the page',...pe],suppressErrors:ie}),ce.push(ae)):X.push(ae),X.length+ce.length===H&&h(ne,F))}}(V,q.numResourcesToLoad,U);(function(F,H,ne,ie){F.onload=()=>{v(F,H,ne,ie)},document.body.appendChild(F)})(U,I,q,V)}d(z,!0),_?_().then(()=>{O()}).catch(V=>{B?.("onBeforePrint",f(V))}):O()},[w,C,L,k,E,R,P,W,_,B,Y,z,A,M])}return i}()})})(L0);var O8=L0.exports,E0=(e=>(e.PDF="PDF",e.Email="Email",e))(E0||{});const Go=({size:e,color:t})=>l(x,{className:`animate-spin inline-block ${e=="big"?"size-8":"size-4"} border-[2px] ${t=="white"?"border-gray-400 border-t-transparent text-white":"border-metrifox-primary border-t-transparent text-metrifox-primary"} rounded-full dark:text-metrifox-primary`,role:"status","aria-label":"loading",children:l("span",{className:"sr-only",children:"Loading..."})}),nr=({children:e,onClick:t,className:n,isLoading:r,size:o="small",leadingIcon:s,trailingIcon:i,href:a,...c})=>l("button",{className:`px-4 py-2 text-[13px]/[16.9px] whitespace-nowrap flex items-center justify-center !gap-2 font-semibold text-white bg-metrifox-primary rounded-lg disabled:opacity-60 hover:opacity-90 ${os[o]} ${n}`,onClick:()=>a?window.open(a,"_blank"):t?.(),...c,children:r?l(Go,{color:"white"}):y(Ie,{children:[s&&l(he,{name:s,size:16}),e,i&&l(he,{name:i,size:16})]})}),qo=({children:e,onClick:t,className:n,leadingIcon:r,trailingIcon:o,iconColor:s,iconSize:i=16,isLoading:a,...c})=>l("button",{className:`!p-0 text-[13px]/[15.6px] whitespace-nowrap flex items-center justify-center gap-1 font-semibold text-metrifox-primary bg-transparent border-none ${n}`,onClick:t,...c,children:a?l(Go,{}):y(Ie,{children:[r&&l(he,{name:r,size:i,color:s}),e,o&&l(he,{name:o,size:i,color:s})]})}),Xo=({children:e,onClick:t,className:n,isLoading:r,leadingIcon:o,trailingIcon:s,size:i="small",...a})=>l("button",{className:`flex items-center justify-center !gap-2 text-[13px]/[16.9px] font-semibold text-metrifox-black bg-transparent border border-grey-300 rounded-lg ${os[i]} ${n}`,onClick:t,...a,children:r?l(Go,{color:"white"}):y(Ie,{children:[o&&l(he,{name:o,size:16}),e,s&&l(he,{name:s,size:16})]})}),Ma=({children:e,onClick:t,className:n,isLoading:r,size:o="small",...s})=>l("button",{className:`px-4 py-2 text-[13px]/[16.9px] font-medium text-metrifox-black bg-background-system-secondary rounded-[8px] ${os[o]} ${n}`,onClick:t,...s,children:r?l(Go,{}):e}),B8=({contentRef:e,content:t,containerBgColor:n="bg-neutral-100",panelShadow:r,panelWidth:o="w-full"})=>{const s=O8.useReactToPrint({contentRef:e}),i=[E0.PDF],a=()=>{setTimeout(()=>{e.current&&s()},100)};return l(x,{className:`${n} flex flex-col justify-center`,children:y(To,{className:"my-6 px-4",children:[y(x,{className:"flex items-center justify-between",children:[l(Do,{className:"w-max border border-neutral-200 text-grey-500 px-1.5 py-1 rounded-2xl",children:i.map(c=>l(vr,{className:"data-[selected]:bg-metrifox-primary data-[selected]:border data-[selected]:border-grey-50 outline-none data-[selected]:text-grey-50 rounded-xl px-16 py-1.5",children:c},c))}),y(Ma,{className:"flex items-center gap-1 !px-3 !py-6",size:"x-small",onClick:a,children:[l(Z,{variant:"label8",className:"text-metrifox-black flex items-center gap-2.5",children:"Download"}),l(he,{name:"download",size:16,color:"metrifox-black"})]})]}),y(Po,{children:[l(Wn,{children:l(x,{ref:e,className:`bg-metrifox-white ${r} p-8 rounded-xl border-t-8 border-metrifox-black h-full mt-8 ${o} mx-auto`,children:t||"Nothing to display"})}),l(Wn,{className:"h-screen text-center py-20",children:l("p",{children:"Coming soon"})})]})]})})},M0=({isOpen:e,onClose:t,contentRef:n,content:r,modalTitle:o,modalDescription:s})=>l(Or,{isOpen:e,onClose:t,title:o,description:s,size:"large",variant:"right-slide",className:"!p-0",children:l(B8,{contentRef:n,content:r})}),kn=({label:e,onClick:t,disabled:n,variant:r="normal",active:o})=>{const s={next:"rounded-tr-[8px] rounded-br-[8px]",prev:"rounded-tl-[8px] rounded-bl-[8px] border-r-0",normal:"w-[38px] flex items-center justify-center py-1 border-r-0",display:"w-[38px] flex items-center justify-center py-1 cursor-default border-r-0"},i=o?"bg-grey-200 font-semibold":"";return l("button",{className:`px-3 py-2 text-grey-500 hover:text-grey-800 border disabled:opacity-50 ${s[r]} ${i}`,onClick:t,disabled:n,children:e})},I8=({currentPage:e,totalPages:t,onPageChange:n})=>y("div",{className:"flex items-center justify-center pt-6",children:[l(kn,{label:"Prev",onClick:()=>n(e-1),disabled:e===1,variant:"prev"}),(()=>{const r=[];r.push(l(kn,{label:1,onClick:()=>n(1),variant:"normal",active:e===1},1)),e>2&&r.push(l(kn,{label:"...",onClick:()=>{},variant:"display"},"ellipsis-start"));const o=Math.max(2,e-1),s=Math.min(t-1,e+1);for(let i=o;i<=s;i++)r.push(l(kn,{label:i,onClick:()=>n(i),variant:"normal",active:e===i},i));return e<t-1&&r.push(l(kn,{label:"...",onClick:()=>{},variant:"display"},"ellipsis-end")),t>1&&r.push(l(kn,{label:t,onClick:()=>n(t),variant:"normal",active:e===t},t)),r})(),l(kn,{label:"Next",onClick:()=>n(e+1),disabled:e===t,variant:"next"})]}),Br=({columns:e,data:t,pagination:n,filters:r,actions:o,onRowClick:s,view:i="list",gridView:a,isLoading:c,skelentonRow:u=2,emptyState:d,isLastColumnSticky:f=!1,actionButton:h,className:m,emptyStateClassName:p,tab:g})=>{const[v,b]=K(!1),[w,C]=K(""),[L,k]=K("");if(te(()=>{b(!1),C(""),k("")},[g]),t?.length===0&&!w&&!L&&!c)return l("div",{className:`h-[55vh] flex items-center justify-center ${p}`,children:d||null});const E=P=>P?l(j,{variant:"body6",color:"text-grey-700",children:String(P)}):"-",R=a?.style?`${a?.style}`:"grid-cols-2 gap-2";return y("div",{className:`overflow-x-auto px-3 rounded-2xl bg-metrifox-white ${m}`,children:[l("div",{className:"px-3 mb-6",children:y("div",{className:"flex justify-between items-center",children:[o&&o,y("div",{className:"flex justify-end w-full gap-x-2 items-center",children:[r&&l(Xo,{className:"!border-grey-300 !text-grey-500",size:"x-small",leadingIcon:"filter",onClick:()=>b(!v),children:"Filter"}),h&&l(Ma,{className:"!text-metrifox-white !bg-metrifox-primary",size:"x-small",onClick:h.onClick,children:h.text})]})]})}),i==="list"&&l("div",{className:"w-full overflow-x-hidden hover:overflow-x-auto scrollbar",children:y("table",{className:"min-w-full border-collapse text-left relative",children:[l("thead",{children:l("tr",{children:e.map((P,W)=>l("th",{className:`px-3 py-2 text-sm font-semibold text-gray-700 border-b border-grey-100 whitespace-nowrap
|
|
41
41
|
${W===e.length-1&&f?"sticky right-0 bg-white z-10":""}
|
|
42
|
-
`,children:typeof
|
|
42
|
+
`,children:typeof P.header=="string"?l(Z,{variant:"label8",color:"text-metrifox-black",children:P.header}):P.header},W))})}),y("tbody",{children:[c&&[...Array(u)].map((P,W)=>l(j8,{columns:e.length},W)),!c&&t?.map((P,W)=>l("tr",{onClick:()=>s?.(P),className:`relative ${s?"cursor-pointer hover:bg-grey-100":"cursor-default"}`,children:e.map((_,B)=>l("td",{className:`px-3 py-4 text-grey-700 border-grey-100 whitespace-nowrap
|
|
43
43
|
${W===t.length-1?"border-t":"border-y"}
|
|
44
44
|
${B===e.length-1&&f?"z-10 right-0 bg-white relative":""}
|
|
45
|
-
`,children:O.render?O.render(N):E(Zp(N,O.key))},B))},W))]})]})}),s==="grid"&&l("div",{className:`grid ${D}`,children:t?.map((N,W)=>l("div",{className:i?"cursor-pointer":"cursor-default",onClick:()=>i?.(N),children:a?.renderItem(N)},W))}),n&&l($8,{currentPage:n.currentPage,totalPages:n.totalPages,onPageChange:n.onPageChange})]})},O8=({columns:e})=>l("tr",{children:Array.from({length:e}).map((t,n)=>l("td",{className:"px-3 py-4 border-b border-grey-100",children:l("div",{className:"mt-1 h-4 w-20 rounded-md bg-grey-200"})},n))}),jt=({children:e,size:t="medium",background:n="transparent",textColor:r=""})=>{const o=vp[t];return l(k,{className:`inline-flex items-center ${n} min-w-fit justify-center rounded-full px-2.5 py-1 border gap-x-2 ${o} ${n==="transparent"?"border-grey-300":"border-none"} ${r}`,children:e})},_8=async({subscriptionId:e})=>{const{data:t}=await gt().get(`/sdk/subscriptions/${e}/billing-history`);return t},B8=({subscriptionId:e})=>{const[t,n]=K(null),[r,o]=K(!1),i=async()=>{if(!e){At.error("Missing subscriptionId");return}o(!0);try{const s=await _8({subscriptionId:e});n(s?.data)}catch(s){At.error(s instanceof Error?s.message:"Failed to load billing history")}finally{o(!1)}};return te(()=>{i()},[e]),{billingHistory:t,isLoading:r,refetch:i}},I8=async({invoiceId:e})=>{const{data:t}=await gt().get(`/sdk/invoices/${e}/view`);return t},E0=({invoiceId:e})=>{const[t,n]=K(null),[r,o]=K(!1),i=async()=>{if(e){o(!0);try{const s=await I8({invoiceId:e});n(s?.data)}catch(s){At.error(s instanceof Error?s.message:"Failed to load invoice details")}finally{o(!1)}}};return te(()=>{i()},[e]),{invoiceDetails:t,isLoading:r,refetch:i}},j8=({subscriptionId:e})=>{const[t,n]=K(!1),[r,o]=K(null),i=se(null),{billingHistory:s}=B8({subscriptionId:e}),{invoiceDetails:a}=E0({invoiceId:r||""}),c=d=>{d.status===w1.Paid&&d.invoice_id&&(o(d.invoice_id),n(!0))},u=[{header:"Total amount",render:d=>{const{text:f,color:h}=Hp(d.status),m=Kt(d.currency);return l(k,{children:g(k,{className:"flex items-center gap-2",children:[g(k,{className:"flex items-center",children:[l(j,{className:"capitalize",variant:"body6",color:"text-grey-700",children:m}),l(j,{className:"capitalize",variant:"body6",color:"text-grey-700",children:me(d.total_amount)})]}),l(jt,{size:"small",background:`${h}`,children:l(Z,{variant:"label9",className:"capitalize text-metrifox-white",children:f})})]})})}},{header:"Invoice number",render:d=>l(j,{className:"capitalize",variant:"body6",color:"text-grey-700",children:d.invoice_number||"-"})},{header:"Source type",render:d=>l(j,{className:"capitalize",variant:"body6",color:"text-grey-700",children:Tt(d.source_type==="billing_cycle"?"subscription":d.source_type).replace(/_/g," ")})},{header:"Issue date",render:d=>l(j,{className:"capitalize",variant:"body6",color:"text-grey-700",children:d.issued_date?b1(d.issued_date).format("MMM D, YYYY"):"-"})},{header:"Due date",render:d=>l(j,{className:"capitalize",variant:"body6",color:"text-grey-700",children:d.due_date?b1(d.due_date).format("MMM D, YYYY"):"-"})},{header:"Amount paid",render:d=>{const f=Kt(d.currency);return g(k,{className:"flex items-center",children:[l(j,{className:"capitalize",variant:"body6",color:"text-grey-700",children:f}),l(j,{className:"capitalize",variant:"body6",color:"text-grey-700",children:me(d.amount_paid)})]})}}];return!s||s?.length===0?null:g(k,{className:"bg-grey-100 rounded-2xl p-4",children:[g(k,{className:"flex items-center gap-1",children:[l(k,{className:"p-1.5 bg-grey-200 rounded-lg",children:l(he,{name:"receipt",size:16,color:"grey-500"})}),l(Z,{variant:"label7",className:"text-metrifox-black font-medium",children:"Billing history"})]}),l(Br,{columns:u,data:s,onRowClick:c,className:"mt-2"}),t&&r&&l(L0,{isOpen:t,onClose:()=>{n(!1),o(null)},contentRef:i,content:l(S1,{data:a}),modalTitle:"Invoice PDF"})]})},H8=async({subscriptionId:e})=>{const{data:t}=await gt().get(`/sdk/subscriptions/${e}/entitlements-usage`);return t},W8=async({subscriptionId:e})=>{const{data:t}=await gt().get(`/sdk/subscriptions/${e}/entitlements-summary`);return t},U8=({subscriptionId:e})=>{const[t,n]=K(null),[r,o]=K(null),[i,s]=K(!1),[a,c]=K(null),[u,d]=K(null),[f,h]=K(!1),m=async()=>{if(!e)return o("Missing subscription");s(!0);try{const y=await H8({subscriptionId:e});n(y.data),o(null)}catch(y){const v=y,w=v?.response?.data?.data?.error||v?.message;o(w||"Failed to load entitlement usage")}finally{s(!1)}},p=async()=>{if(!e)return d("Missing subscription");h(!0);try{const y=await W8({subscriptionId:e});c(y.data),d(null)}catch(y){const v=y,w=v?.response?.data?.data?.error||v?.message;d(w||"Failed to load entitlement summary")}finally{h(!1)}};return te(()=>{m(),p()},[e]),{entitlementUsage:t||[],usageError:r,isUsageLoading:i,refetchUsage:m,entitlementSummary:a||[],summaryError:u,isSummaryLoading:f,refetchSummary:p}},Z8=({entitlements:e})=>{const t=Ip();return l(Br,{columns:[{header:"Feature",render:n=>l(k,{children:g(k,{className:"flex flex-col gap-y-1 items-start",children:[l(j,{variant:"body6",color:"text-gray-700",children:n.feature_name}),l(jt,{background:"bg-grey-100",textColor:"text-metrifox-black",size:"small",children:n.feature_key})]})})},{header:"Type",render:n=>{const r={[mn.METERED]:"bg-metrifox-blue",[mn.BOOLEAN]:"bg-metrifox-warning"};return g(k,{children:[l(jt,{size:"small",textColor:"text-metrifox-white",background:r[n.feature_type],children:l(j,{variant:"body6",children:Tt(n.feature_type)})}),n.usage_model&&g(j,{variant:"body7",color:"text-metrifox-blue",className:"mt-1",children:[Tt(n.usage_model?.split("_").join(" ")),n.feature_type===mn.METERED?n.prepaid?"/ Prepaid":`/ ${Tt(n.price_type)}`:""]})]})}},{header:"Included allowance",render:n=>l(k,{children:l(j,{variant:"body6",children:n.feature_type===mn.BOOLEAN?"Unlimited":`${Ue(n.included_allowance||0)}${n.included_allowance_reset_interval!==br.NONE?` ${t[n.included_allowance_reset_interval].toLowerCase()}`:""}`})})},{header:"Usage limits",render:n=>l(k,{children:l(j,{variant:"body6",children:(r=>{if(r.feature_type===mn.BOOLEAN)return"Unlimited";if(r.price_type===C1.PAY_AS_YOU_GO){const o=r.usage_limit??"Unlimited";let i="";return r.usage_limit_reset_interval&&r.usage_limit_reset_interval!==br.NONE&&(i=` ${t[r.usage_limit_reset_interval].toLowerCase()}`),`${o}${i}`}if(r.purchased_qty!==null&&r.purchased_qty!==void 0){const o=Ue(r.purchased_qty),i=r.billing_interval&&r.billing_interval!==br.NONE?` ${t[r.billing_interval].toLowerCase()}`:"",s=r.soft_limit_enabled?"Soft limits enabled":"";return`${o}${i} ${s}`}if(r.included_allowance!==null&&r.included_allowance!==void 0){const o=Ue(r.included_allowance);let i="";return r.included_allowance_reset_interval&&r.included_allowance_reset_interval!==br.NONE&&(i=` ${t[r.included_allowance_reset_interval].toLowerCase()}`),`${o}${i}`}return"0"})(n)})})}],data:e,emptyState:l(ze,{children:g(k,{className:"flex flex-col items-center gap-y-3 w-fit mx-auto ",children:[l(he,{name:"note-2",color:"neutral-200",size:72}),l(j,{variant:"body4",color:"text-grey-400",children:"No entitlements attached to this subscription"})]})})})},z8=({triggerFunc:e,trigger:t,caretIcon:n,isOpenDefault:r=!1,triggerClassName:o="",triggerOpenClassName:i="",contentClassName:s="",mainClassName:a="",children:c,caretPosition:u="end"})=>{const[d,f]=K(r);return e&&(e.current=h=>f(h)),g(k,{className:`w-full ${a}`,children:[g(k,{onClick:()=>f(!d),className:`flex items-start justify-between gap-2 w-full px-4 py-2 bg-gray-100 cursor-pointer ${d&&i||o}`,children:[u==="start"&&l("span",{className:`transform transition-transform duration-300 ${d?"rotate-180":"rotate-0"}`,children:n||l(he,{name:"arrow-down",size:24,color:"grey-500"})}),typeof t=="function"?t(d):t,u==="end"&&l("span",{className:`transform transition-transform duration-300 ${d?"rotate-180":"rotate-0"}`,children:n||l(he,{name:"arrow-down",size:24,color:"grey-500"})})]}),d&&l(k,{className:`p-4 ${s}`,children:typeof c=="function"?c(()=>f(!d)):c})]})},K8=({meteredEntitlements:e})=>l(k,{className:"rounded-2xl px-3 pt-5",children:g(k,{children:[g(k,{className:"flex-1 grid grid-cols-4 border-b border-grey-100 gap-x-4 py-3 pl-3 pr-12",children:[l(k,{children:l(Z,{variant:"label8",color:"text-metrifox-black",children:"Feature"})}),l(k,{children:l(Z,{variant:"label8",color:"text-metrifox-black",children:"Type"})}),l(k,{className:"col-span-2",children:l(Z,{variant:"label8",color:"text-metrifox-black",children:"Usage"})})]}),l(k,{className:"w-8"}),e.length>0?e.map(t=>{const{processedPools:n,totalUsed:r,totalAmount:o,totalBalance:i,isAnyUnlimited:s}=e6(t),a=(c,u)=>u>0?c/u*100:0;return l(k,{className:"py-4 px-4 border-b border-grey-100 last:border-0",children:l(z8,{trigger:g(k,{className:"flex-1 grid grid-cols-4 gap-4 items-center pr-8",children:[g(k,{className:"flex flex-col gap-y-1 items-start",children:[l(j,{variant:"body6",color:"text-gray-700",children:t.feature_name}),l(jt,{background:"bg-grey-100",textColor:"text-metrifox-black",size:"small",children:t.feature_key})]}),l(k,{children:l(j,{variant:"body7",color:"text-metrifox-blue",className:"mt-1",children:Tt(t.type?.split("_").join(" "))})}),g(k,{className:"col-span-2",children:[l(j,{variant:"body6",color:"text-grey-700",children:!s&&(i<0?`${Ue(Math.abs(i))} used above limit`:`${Ue(i)} left`)}),g(k,{className:"w-full flex items-center gap-x-2",children:[l(k,{className:"w-96 h-[6px] my-[6px] bg-grey-300 flex items-center justify-start rounded overflow-hidden",children:s?l(k,{className:"h-[6px] bg-metrifox-blue rounded",style:{width:"100%"}}):n.filter(c=>!c.isUnlimited&&c.used>0).sort((c,u)=>c.order-u.order).map(c=>l(k,{className:"h-[6px] bg-metrifox-blue",style:{width:`${a(c.used,o)}%`}},c.pool))}),l(j,{variant:"body6",color:"text-grey-700",children:s?`${Ue(r)}/Unlimited`:`${Ue(r)}/${Ue(o)}`})]})]})]}),triggerClassName:"!p-0 !bg-transparent !item-center",contentClassName:"!p-0",caretIcon:l(he,{name:"arrow-down-linear",size:16,color:"grey-500"}),children:l(k,{className:"w-full rounded-lg overflow-hidden flex flex-col items-start justify-start gap-y-0 pt-4",children:n.map((c,u)=>g(k,{className:"w-full flex items-center px-6 py-3 bg-grey-100 gap-x-40",children:[l(j,{variant:"body6",color:"text-grey-700",children:c.pool}),g(k,{children:[l(j,{variant:"body6",color:"text-grey-700",children:!c.isUnlimited&&(c.balance<0?`${Ue(Math.abs(c.balance))} used above limit`:`${Ue(c.balance)} left`)}),g(k,{className:"w-full flex items-center gap-x-2",children:[l(k,{className:"w-72 h-[6px] my-[6px] bg-grey-300 flex items-center justify-start rounded overflow-hidden",children:l(k,{className:`h-[6px] bg-${c.color}`,style:{width:`${c.percent}%`}})}),l(j,{variant:"body6",color:"text-grey-700",children:c.isUnlimited?`${Ue(c.used)}/ Unlimited`:`${Ue(c.used)}/${Ue(c.amount)}`})]}),c.nextResetAt&&g(j,{variant:"body6",color:"text-grey-500",children:["resets on ",c.nextResetAt]})]})]},u))})})},t.id)}):g(k,{className:"flex flex-col items-center gap-y-3 w-fit mx-auto py-12 ",children:[l(he,{name:"note-1-bulk",color:"neutral-200",size:72}),l(j,{variant:"body4",color:"text-grey-400",children:"No metered entitlements attached to this subscription"})]})]})}),Y8=({subscriptionId:e})=>{const{entitlementUsage:t,entitlementSummary:n}=U8({subscriptionId:e}),r=t?.filter(o=>o.type!==mn.BOOLEAN)||[];return g(k,{className:"bg-grey-100 rounded-2xl p-4",children:[l(k,{className:"flex items-center justify-between",children:g(k,{className:"flex items-center gap-1",children:[l(k,{className:"p-1.5 bg-grey-200 rounded-lg",children:l(he,{name:"radar",size:16,color:"grey-500"})}),l(Z,{variant:"label7",className:"text-metrifox-black font-medium",children:"Entitlements"})]})}),l(k,{className:"bg-metrifox-white rounded-2xl p-4 mt-2",children:g(To,{children:[g(Do,{className:"w-max bg-grey-100 border border-neutral-200 text-grey-500 px-1.5 py-1 rounded-2xl",children:[l(vr,{className:"w-max data-[selected]:bg-metrifox-primary data-[selected]:border data-[selected]:border-grey-200 outline-none data-[selected]:text-metrifox-white rounded-xl px-8 py-2",children:l(j,{variant:"body6",children:"Summary"})}),r.length>0&&l(vr,{className:"w-max data-[selected]:bg-metrifox-primary data-[selected]:border data-[selected]:border-grey-200 outline-none data-[selected]:text-metrifox-white rounded-xl px-8 py-2",children:l(j,{variant:"body6",children:"Usage"})})]}),g(Po,{children:[l(Wn,{children:l(Z8,{entitlements:n})}),r.length>0&&l(Wn,{children:l(K8,{meteredEntitlements:r})})]})]})})]})},G8=({tenantDetails:e,paymentMethod:t})=>{const{address:n}=y1(e?.billing_address),r=[{label:"Billed to",value:e?.full_name||"-"},{label:"Billing email",value:e?.billing_email||"-"},{label:"Billing address",value:n||"-"}];return g(k,{className:"bg-grey-100 rounded-2xl p-4",children:[l(k,{className:"flex items-center justify-between",children:g(k,{className:"flex items-center gap-1",children:[l(k,{className:"p-1.5 bg-grey-200 rounded-lg",children:l(he,{name:"money",size:18,color:"grey-500"})}),l(Z,{variant:"label7",className:"text-metrifox-black font-medium",children:"Payment"})]})}),l(k,{className:"bg-grey-200 rounded-t-2xl px-3 pt-2.5 pb-4 mt-2",children:l(Z,{variant:"label8",className:"text-grey-500 font-medium",children:"Details"})}),g(k,{className:"bg-metrifox-white grid grid-cols-3 gap-8 justify-between rounded-2xl p-4 -mt-2.5",children:[r?.map((o,i)=>g(k,{children:[l(Z,{variant:"label8",className:"text-grey-500",children:o?.label}),l(Z,{variant:"label7",className:"text-grey-600 font-medium mt-2",children:o?.value||"-"})]},i)),g(k,{children:[l(Z,{variant:"label8",className:"text-grey-500",children:"Payment method"}),t?g(k,{className:"flex items-center gap-x-2 mt-2",children:[g(j,{variant:"body6",color:"text-grey-600 font-medium",children:[Tt(t?.brand)," ",t?.display_name," "]}),g(j,{variant:"body6",className:"text-neutral-500 font-light",children:["Expires ",t?.exp_month,"/",t?.exp_year]})]}):l("span",{children:"-"})]})]})]})},q8=({progress:e})=>{const t=R8(e,[0,20,100],[0,0,1]);return l(Yo.svg,{width:"16",height:"16",viewBox:"0 0 25 25",children:l(Yo.path,{d:"M5.5 11.5L10.5 16.5L19.5 7.60001",fill:"transparent",stroke:"#1E4D37",strokeWidth:2,style:{pathLength:t}})})},X8=({text:e,children:t,showCopyIcon:n})=>{const r=b0(90),[o,i]=K(!1),s=a=>{navigator.clipboard.writeText(a).catch(()=>{})};return g(k,{className:"*:ml-1 flex items-center bg-grey-200 w-fit py-0.5 px-2 rounded-xl font-medium",children:[t||l(j,{variant:"body6",color:"text-grey-700",className:"!ml-0",children:e}),n&&l(ze,{children:o?g(ze,{children:[l(Yo.div,{initial:{x:0},animate:{x:100},style:{x:r},transition:{duration:.25,ease:"easeOut"}}),l(q8,{progress:r})]}):l("button",{className:"w-fit",type:"button",onClick:a=>{a.stopPropagation(),s(e),i(!0),setTimeout(()=>i(!1),2e3)},children:l(he,{name:"copy",color:"grey-500",size:16})})})]})},J8=async({product_key:e,customer_key:t})=>{const{data:n}=await gt().get(`/sdk/product_catalogues/products/published-plans?product_key=${e}&customer_key=${t}`);return n},Q8=({product_key:e,customer_key:t})=>{const[n,r]=K(null),[o,i]=K(!1),s=async()=>{if(!e){At.error("Missing product_key");return}i(!0);try{const a=await J8({product_key:e,customer_key:t});r(a?.data)}catch(a){At.error(a instanceof Error?a.message:"Failed to load product plans")}finally{i(!1)}};return te(()=>{s()},[e]),{productPlans:n,isLoading:o,refetch:s}},eg=e=>{const t=Gp(e||[]),[n,r]=K(""),o=[...t.includes(ke.DAILY)?[ke.DAILY]:[],...t.includes(ke.WEEKLY)?[ke.WEEKLY]:[],...t.includes(ke.MONTHLY)?[ke.MONTHLY]:[],...t.includes(ke.QUARTERLY)?[ke.QUARTERLY]:[],...t.includes(ke.BIANNUALLY)?[ke.BIANNUALLY]:[],...t.includes(ke.YEARLY)?[ke.YEARLY]:[]];return te(()=>{!n&&o[0]&&r(o[0])},[o,n]),{intervals:o,selectedInterval:n,setSelectedInterval:r}},M0=({selectedInterval:e,publishedOnly:t=!1})=>{const{plans:n}=Un(),r=c=>{if(c)return t?c?.is_visible?c:void 0:c},o=n?.some(c=>!!r(c)?.description),i=n?.some(c=>!!r(c)?.trial_duration_value),s=n?.some(c=>{const u=r(c);return u?u.price_options?.some(d=>d.price?.billing_interval===e)||u.is_free||u.is_custom:!1}),a=n?.some(c=>{const u=r(c);return u?[u.credit_attachment_price_options,u.entitlement_price_options].some(d=>Array.isArray(d)&&d.some(f=>f.price?.billing_interval===e)):!1});return{shouldShowDescription:o,shouldShowFreeTrial:i,shouldShowFixedPrice:s,shouldShowDynamicPrices:a}},S0=({entitlements:e,baseEntitlementsPlanName:t,credits:n})=>{const r=ss(e).filter(o=>o?.is_visible);return g(k,{children:[l(Z,{variant:"label7",className:"text-metrifox-primary mb-3",as:"p",children:t?`Everything in ${t} plus:`:"\xA0"}),g("ul",{className:"flex flex-col gap-y-3",children:[n?.map((o,i)=>g("li",{className:"flex items-center gap-[10px]",children:[l(he,{name:"check",color:"green-600",size:16}),l(j,{variant:"body5",children:o.included_usage_text})]},i)),r?.map((o,i)=>g("li",{className:"flex items-center gap-[10px]",children:[l(he,{name:"check",color:"green-600",size:16}),l(j,{variant:"body5",children:o.display_text})]},i))]})]})},tg=e=>{const t=e?.price?.billing_interval,n=e?.price.tiers,r=e?.price.currency,o=e?.price?.invoice_timing,i=Kt(r),s=y=>{const v=e?.price?.owner,w=v?.included_usage||0,C=y?.find(N=>N.first_unit===w);if(!C)return{price:null,label:null};const{unit_price:b,package_price:L,package_size:x,pricing_model:E,flat_fee:D}=C;return D?{price:D.toFixed(2),label:""}:{per_unit:{price:b?.toFixed(2),label:`per. ${v?.feature?.unit_singular||v?.credit_unit_singular}`},per_package:{price:L?.toFixed(2),label:`for ${x} ${v?.feature?.unit_plural}`}}[E]??{price:null,label:null}},{price:a,label:c}=s(n),u=e?.price?.is_custom&&e?.price?.billing_interval_value>1?`every ${e?.price?.billing_interval_value} ${Kp[t]}`:t,d=[ke.DAILY,ke.WEEKLY],f={[ke.DAILY]:"day",[ke.WEEKLY]:"week"},h=t,m=d.includes(h)?f[h]:"month",p=(zp(t,e?.price?.billing_interval_value)*(e?.price?.price??0)).toFixed(2);return{amount:(e?.price?.price??0).toFixed(2),billedText:u,intervalText:m,billingAmount:p,tierPrice:a,tierLabel:c,currencySymbol:i,invoiceTiming:o,intervalValue:e?.price?.billing_interval_value}},ng=({priceOption:e,interval:t})=>{const{amount:n,billedText:r,billingAmount:o,intervalText:i,currencySymbol:s,intervalValue:a}=tg(e),c=me(n).split("."),u=c?c[0]:"0",d=c&&c.length>1?c[1]:"00";return g(k,{className:"p-2 border-b border-grey-200 last:border-0",children:[l(k,{className:"flex items-center justify-between",children:l(Z,{variant:"label7",className:"text-grey-600 mb-2",children:"Fixed recurring"})}),g(k,{className:"flex items-end",children:[g(Z,{variant:"label3",className:"text-[var(--price-color,#0F0F0F)]",children:[s,u]}),g(Z,{variant:"label6",className:"mb-[5px] text-metrifox-black",children:[".",d]}),g(j,{variant:"body4",className:"mb-[5px] text-grey-500",children:["/",i]})]}),(t!==ke.MONTHLY||a!==1)&&g(j,{className:"-mt-2",variant:"body6",children:["Billed"," ",g(Z,{as:"span",variant:"label8",className:"inline-block",children:[s,me(o)," ",r.toLowerCase()]})]})]})},rg=({dynamicPrices:e,showMoreCard:t,showMore:n})=>{const[r,o]=K("");return g(k,{className:t?"":"h-[75px] flex flex-col",children:[(t?e:e.slice(0,2)).map(i=>{const s=i?.price?.name||i?.price?.owner?.feature?.name||i?.price?.owner?.name,a=Yp(i?.price.tiers,i.price.currency),{price:c,label:u,currencySymbol:d,isPercentage:f}=L1(i),h=a?.length===1;return t?g(k,{className:"p-2 border-b border-grey-200 last:border-0",children:[g(k,{className:"flex justify-between items-center",children:[l(Z,{variant:"label7",className:"text-grey-600 mb-1",children:s}),h&&g(k,{className:"flex items-center cursor-pointer",children:[g(Z,{variant:"label7",color:"text-metrifox-black",children:[!f&&d,c]}),u&&g(j,{variant:"body5",color:"text-grey-500",className:"mr-1",children:[f?"\xA0":"/",u]})]})]}),!h&&g(k,{className:"flex justify-between items-center",children:[l(j,{variant:"body5",className:"text-grey-700",children:"Starts at"}),g(k,{className:"flex items-center cursor-pointer",onClick:m=>{m.stopPropagation(),o(r===i.id?"":i.id)},children:[g(Z,{variant:"label7",color:"text-metrifox-black",children:[!f&&d,c]}),g(j,{variant:"body5",color:"text-grey-500",className:"mr-1",children:[f?"\xA0":"/",u]}),a.length>1&&l(he,{name:r===i.id?"arrow-up-light":"arrow-down-linear",size:16,color:"grey-400"})]})]}),r===i.id&&a.length>1&&l(k,{className:"bg-grey-200 p-2 mt-1 rounded-lg",children:l(k,{className:"flex flex-col gap-y",children:a?.map(m=>g(k,{className:"flex justify-between items-center",children:[l(j,{variant:"body7",color:"text-grey-700",children:m?.label}),g(j,{variant:"body7",color:"text-grey-700",children:[m?.price,m?.package?`/${m?.package} ${u}`:""]})]},m?.label))})})]},i.id):l(k,{className:"mt-1",children:g(k,{className:"flex items-center gap-x-1 flex-wrap",children:[l(Z,{variant:"label8",className:"text-grey-600 whitespace-nowrap",children:s}),l(j,{variant:"body7",children:h?"at":"from"}),g(k,{className:"flex items-center",children:[g(Z,{variant:"label7",color:"text-metrifox-black",children:[!f&&d,c]}),u&&g(j,{variant:"body7",color:"text-grey-500",children:[f?"\xA0":"/",u]})]})]})},i.id)}),!t&&!!e?.length&&l(k,{className:"flex items-center justify-center mt-auto mb-2",children:l(qo,{onClick:i=>{n(),i?.stopPropagation()},className:"mt-2",children:l(j,{variant:"body8",className:"text-metrifox-blue underline",children:"Explore all priced features"})})})]})},og=({priceOption:e})=>{const{price:t,label:n,currencySymbol:r,isPercentage:o}=L1(e),i=me(t).split("."),s=i?i[0]:"0",a=i&&i.length>1?i[1]:"00";return g(k,{className:"p-2 border-b border-grey-200 last:border-0",children:[l(k,{className:"flex items-center justify-between",children:l(Z,{variant:"label7",className:"text-grey-600 mb-2",children:"Starts at"})}),g(k,{className:"flex items-end",children:[!o&&g(ze,{children:[g(Z,{variant:"label3",className:"text-[var(--price-color,#0F0F0F)]",children:[r,s]}),g(Z,{variant:"label6",className:"mb-[5px] text-metrifox-black",children:[".",a]})]}),o&&l(Z,{variant:"label3",className:"text-[var(--price-color,#0F0F0F)]",children:t}),n&&g(j,{variant:"body4",className:"mb-[5px] text-grey-500",children:[o?"\xA0":"/",n]})]})]})},ig=({interval:e,priceOptions:t,entitlementPriceOptions:n,creditAttachmentPriceOptions:r,isPricePage:o,trialTag:i,showMoreCard:s,isFree:a,isCustom:c,showMore:u})=>{const{shouldShowFixedPrice:d,shouldShowFreeTrial:f,shouldShowDynamicPrices:h}=M0({selectedInterval:e,publishedOnly:o}),m=x1(e,t),p=k1(e,n),y=k1(e,r),v=p.length===1&&!m,w=[...y,...v?[]:p];return g(k,{className:s?"bg-grey-100 border border-grey-200 rounded-2xl p-2 mb-3":"w-full",children:[d&&g(k,{className:s?"":"h-[94px]",children:[a&&l(k,{className:"p-2 border-b border-grey-200 last:border-0",children:g(k,{className:"flex items-center justify-between pt-[21px] pb-4",children:[l(Z,{variant:"label3",children:"Free"}),!o]})}),c&&l(k,{className:"p-2 border-b border-grey-200 last:border-0",children:g(k,{className:"flex items-center justify-between pt-[21px] pb-4",children:[l(Z,{variant:"label4",children:"Custom"}),!o]})}),!m&&!a&&!c&&!v&&l(k,{className:"p-2 border-b border-grey-200 last:border-0",children:g(k,{className:"flex items-center justify-between pt-[21px] pb-4",children:[l(Z,{variant:"label4",children:"No fixed price"}),!o]})}),m&&l(ng,{interval:e,priceOption:m}),v&&!m&&l(og,{priceOption:p[0]})]}),f&&!o&&l(k,{className:"h-6",children:i}),h&&l(rg,{dynamicPrices:w,showMoreCard:!!s,showMore:u})]})},sg=({description:e,entitlements:t,baseEntitlementsPlanName:n,priceContent:r})=>g(k,{children:[l(Z,{variant:"label7",className:"mb-2",children:"Description"}),l(j,{variant:"body5",className:"mb-4 whitespace-pre-wrap",children:e}),r,l(S0,{entitlements:t,baseEntitlementsPlanName:n})]});function ag(e){te(function(){typeof e=="function"&&e()},[])}var lg="Expected a function",T0=0/0,cg="[object Symbol]",ug=/^\s+|\s+$/g,dg=/^[-+]0x[0-9a-f]+$/i,fg=/^0b[01]+$/i,hg=/^0o[0-7]+$/i,pg=parseInt,mg=typeof Qt=="object"&&Qt&&Qt.Object===Object&&Qt,gg=typeof self=="object"&&self&&self.Object===Object&&self,yg=mg||gg||Function("return this")(),vg=Object.prototype,bg=vg.toString,wg=Math.max,Cg=Math.min,Ea=function(){return yg.Date.now()};function xg(e,t,n){var r,o,i,s,a,c,u=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(lg);t=D0(t)||0,Ma(n)&&(d=!!n.leading,f="maxWait"in n,i=f?wg(D0(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function m(E){var D=r,N=o;return r=o=void 0,u=E,s=e.apply(N,D),s}function p(E){return u=E,a=setTimeout(w,t),d?m(E):s}function y(E){var D=E-c,N=E-u,W=t-D;return f?Cg(W,i-N):W}function v(E){var D=E-c,N=E-u;return c===void 0||D>=t||D<0||f&&N>=i}function w(){var E=Ea();if(v(E))return C(E);a=setTimeout(w,y(E))}function C(E){return a=void 0,h&&r?m(E):(r=o=void 0,s)}function b(){a!==void 0&&clearTimeout(a),u=0,r=c=o=a=void 0}function L(){return a===void 0?s:C(Ea())}function x(){var E=Ea(),D=v(E);if(r=arguments,o=this,c=E,D){if(a===void 0)return p(c);if(f)return a=setTimeout(w,t),m(c)}return a===void 0&&(a=setTimeout(w,t)),s}return x.cancel=b,x.flush=L,x}function Ma(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function kg(e){return!!e&&typeof e=="object"}function Lg(e){return typeof e=="symbol"||kg(e)&&bg.call(e)==cg}function D0(e){if(typeof e=="number")return e;if(Lg(e))return T0;if(Ma(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ma(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(ug,"");var n=fg.test(e);return n||hg.test(e)?pg(e.slice(2),n?2:8):dg.test(e)?T0:+e}var Eg=xg,Mg=Ur(Eg);function Sg(e,t,n){var r=ue(function(i){return Mg(i,t,n)},[t,n]),o=se(r(e));return te(function(){o.current=r(e)},[e,r]),o.current}function Tg(e,t){var n=se(!1);typeof t<"u"&&!Array.isArray(t)?t=[t]:Array.isArray(t)&&t.length===0&&console.warn("Using [] as the second argument makes useDidUpdate a noop. The second argument should either be `undefined` or an array of length greater than 0."),te(function(){n.current?e():n.current=!0},t),te(function(){return function(){n.current=!1}},[])}var P0=typeof window>"u"?te:Tn;function Dg(e,t){t===void 0&&(t=!1);var n=t?P0:te,r=se(e);return n(function(){r.current=e}),r}function Pg(e){var t=Dg(e);function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];typeof t.current=="function"&&t.current.apply(t,r)}return n}var Ag=process.env.NODE_ENV!=="production",A0=function(){};if(Ag){var Ng=function(e){var t="Warning: ".concat(e);typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}};A0=function(e,t){e||Ng(t)}}function Rg(e,t,n,r,o,i){r===void 0&&(r={}),o===void 0&&(o=!0),i===void 0&&(i=!1);var s=Pg(n),a=i?P0:te;a(function(){return A0(typeof e<"u","[useGlobalObjectEventListener]: Cannot attach event handlers to undefined."),typeof e<"u"&&o?(e.addEventListener(t,s,r),function(){e.removeEventListener(t,s,r)}):function(){}},[t,r])}function Fg(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=!1),typeof window<"u"?Rg(window,"resize",e,{passive:!0},t,n):console.warn("useOnWindowResize can't attach an event listener as window is undefined.")}var N0="...",Vg=0,Jo=function(){return"__clamp_text_key__".concat(Vg++)};function $g(e){var t=e.text,n=e.ellipsis,r=n===void 0?N0:n,o=e.lines,i=o===void 0?3:o,s=e.expanded,a=s===void 0?!1:s,c=e.debounceTime,u=c===void 0?300:c,d=e.charWidth,f=d===void 0?1.2:d,h=K(function(){return{noClamp:!1,clampedText:".",key:Jo()}}),m=h[0],p=m.noClamp,y=m.clampedText,v=m.key,w=h[1],C=se(),b=se(0),L=ue(function(E){var D=E.lineHeight,N=E.originalText,W=E.expanded,O=E.ellipsis,B=E.lines,Y=E.charWidth,z=C.current;if(!z)return;if(!N||W){w({noClamp:!0,clampedText:N,key:Jo()});return}var A=D*B+1,$=0;typeof O=="string"?$=O===N0?5:Math.ceil(O.length*Y):typeof O=="number"&&($=Math.ceil(O*Y));var M=0,P=0,S=N.length;if(!z.clientHeight)return;function _(){var U,q=(U=z?.clientHeight)!==null&&U!==void 0?U:1;q<=A?M=P+1:S=P-1}for(;M<=S;){if(P=Math.floor((M+S)/2),z.innerText=N.slice(0,P),P===N.length){w({clampedText:N,noClamp:!0,key:Jo()});return}_()}var V=N.slice(0,Math.max(P-$,0)).trim()+(typeof O=="string"?O:"");z.innerText=V,w({noClamp:!1,clampedText:V,key:Jo()})},[]),x=Sg(L,u);return Fg(function(){return x({lineHeight:b.current,originalText:t,expanded:a,ellipsis:r,lines:i,charWidth:f})}),ag(function(){var E,D;if(t&&!b.current){var N=((D=(E=C.current)===null||E===void 0?void 0:E.clientHeight)!==null&&D!==void 0?D:1)+1;b.current=N,L({lineHeight:N,originalText:t,expanded:a,ellipsis:r,lines:i,charWidth:f})}}),Tg(function(){L({lineHeight:b.current,originalText:t,expanded:a,ellipsis:r,lines:i,charWidth:f})},[a,t,f,r,i]),[C,{noClamp:p,clampedText:y,key:v}]}const Og=({description:e,showDetails:t})=>{const[n,{noClamp:r,clampedText:o,key:i}]=$g({text:e,ellipsis:12.5,lines:3});return e?l(j,{variant:"body6",children:g("span",{ref:n,className:"w-full inline-block",children:[o,!r&&g(ze,{children:["...",l(qo,{onClick:s=>{t(),s?.stopPropagation()},className:"!inline",children:l(j,{variant:"body6",className:"text-metrifox-blue border-b border-metrifox-blue",children:"See more"})})]})]},i)}):null},_g=({selectedInterval:e,intervals:t,setSelectedInterval:n})=>l(k,{className:"rounded-2xl p-1 flex bg-[var(--card-background-color,#F5F5F5)]",children:t.map(r=>{const o=e===r;return l(k,{className:`py-[4px] px-3 rounded-[12px] cursor-pointer ${o?"bg-[var(--active-tab-color,#3D3D3D)]":""}`,onClick:()=>n(r),children:l(j,{variant:"body4",color:o?"text-[var(--button-text,#FFFFFF)]":"text-[var(--tab-color,#A1A1AA)]",children:Tt(r)})},r)})}),Bg=({product:e,tenantDetails:t})=>{const[n,r]=K(!1),[o,i]=K(null),{customerKey:s,setPlans:a}=Un(),c=e?.product_key,u=t?.tenant_checkout_username,d=Jp({productKey:c,checkoutUsername:u}),{productPlans:f}=Q8({product_key:c,customer_key:s}),h=ve(()=>{const x=f?.plans||[],E=new Map;return x.forEach(D=>{D.is_visible&&(!E.get(D.offering_key)||D.is_current_plan)&&E.set(D.offering_key,D)}),Array.from(E.values())},[f]),m=ve(()=>h?.findIndex(x=>x?.is_current_plan)??-1,[h]),{intervals:p,selectedInterval:y,setSelectedInterval:v}=eg(h||[]),{shouldShowDescription:w}=M0({selectedInterval:y,publishedOnly:!0}),C=x=>{i(x),r(!0)},b=()=>{r(!1),i(null)},L=x=>{window.open(x,"_blank","noopener,noreferrer")};return te(()=>{h&&h?.length>0&&a(h)},[h,a]),!h||h?.length===0?null:l(ze,{children:g(k,{className:"bg-grey-100 rounded-2xl p-4",children:[l(k,{className:"flex items-center justify-between",children:g(k,{className:"flex items-center gap-1",children:[l(k,{className:"p-1.5 bg-grey-200 rounded-lg",children:l(he,{name:"subtitle",size:18,color:"grey-500"})}),g(k,{className:"flex gap-x-2",children:[l(Z,{variant:"label7",className:"text-metrifox-black font-medium",children:"Plan"}),l("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:"underline text-metrifox-blue",children:l(X8,{text:d,children:l(j,{variant:"body6",color:"text-metrifox-blue",className:"truncate w-[165px]",children:d})})})]})]})}),g(k,{className:"bg-metrifox-white rounded-2xl mt-2 p-4",children:[p.length>0&&l(k,{className:"flex justify-center mb-2.5",children:l(_g,{selectedInterval:y,intervals:p,setSelectedInterval:v})}),l(k,{className:"flex gap-x-2 overflow-x-auto whitespace-nowrap px-6 py-4 -mx-4 [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar-track]:bg-grey-100 [&::-webkit-scrollbar-thumb]:bg-grey-300 [&::-webkit-scrollbar-thumb]:rounded-full",children:h?.map((x,E)=>{const D=x?.is_current_plan,{name:N,entitlements:W,base_entitlement_plan_name:O,is_free:B,is_custom:Y,description:z,price_options:A,entitlement_price_options:$,credit_attachment_price_options:M,credit_attachments:P,trial_duration_unit:S,trial_duration_value:_}=x,V=x1(y,[...A,...$]),U=S&&_,q=_===1?S:`${S}s`;if(!V&&!B&&!Y)return null;const I=ss([...W]).filter(le=>le?.is_visible),{featureOrderMap:F}=Xp(h||[]),H=qp(I,F),ne=P?.filter(le=>le.included_usage),ie=D&&e?.subscription?.status===We.ACTIVE,X=le=>l(ig,{trialTag:U&&l(jt,{background:"bg-grey-300",textColor:"text-metrifox-black",size:"small",children:l(j,{variant:"body6",children:`${_} ${q} Free trial`})}),interval:y,priceOptions:A,entitlementPriceOptions:$,creditAttachmentPriceOptions:M,isPricePage:!1,showMoreCard:!!le,showMore:()=>C(x),isFree:B,isCustom:Y});return g(Jt,{children:[g(k,{className:"w-[20rem] mb-8 flex-none text-wrap cursor-pointer",children:[l(k,{className:`${D?"bg-metrifox-primary":"bg-grey-200"} rounded-t-2xl px-3 pt-2.5 pb-4 mt-2"`,children:l(Z,{variant:"label8",className:`${D?"text-metrifox-white":"text-grey-500"} font-medium`,children:x.name})}),l(k,{className:`${D?"border-b border-x":"border"} border-grey-200 h-full flex flex-col justify-between rounded-2xl p-2 -mt-2.5 transition-all duration-200 ${D?"bg-yellow-gradient":"bg-metrifox-white"}`,children:g(k,{className:"w-full min-h-[25rem]",children:[w&&l(k,{className:"h-[51px] mt-1",children:l(Og,{description:z,showDetails:()=>C(x)})}),X(),l(_r,{onClick:()=>L(x?.checkout_url),className:"w-full bg-metrifox-primary hover:bg-metrifox-primary-dark my-4",disabled:ie,children:l(Z,{variant:"label8",className:"text-metrifox-white",children:ie?"Current plan":E>=m?"Upgrade":"Downgrade"})}),l(k,{className:"px-2 mt-3",children:l(S0,{entitlements:H,credits:ne,baseEntitlementsPlanName:O})})]})})]}),l(Or,{isOpen:n&&o?.offering_key===x.offering_key,onClose:b,title:N,size:"small",bottomContent:l(k,{className:"flex justify-end gap-x-2",children:l(La,{onClick:b,children:"Close"})}),children:o&&l(sg,{baseEntitlementsPlanName:o.base_entitlement_plan_name,description:o.description,entitlements:o.entitlements,priceContent:X(!0)})})]},E)})})]})]})})},Ig=()=>l(k,{className:"flex justify-center items-center gap-x-2 h-full",children:g(k,{className:"flex items-center gap-1",children:[l(j,{variant:"body7",color:"text-metrifox-black",children:"Powered by"}),l(M1,{height:30,width:100})]})}),jg=({trigger:e,children:t,className:n="bg-metrifox-white rounded-[10px] shadow-md",shouldMatchWidth:r,anchorGap:o=4,anchorTo:i="bottom start",anchorOffset:s=0})=>{const a=se(null),[c,u]=K(null);Tn(()=>{a.current&&u(a.current.offsetWidth)},[]);const d=r&&c?c:"auto";return g(z9,{className:"relative",children:[l(c1,{className:"outline-none w-full cursor-pointer",ref:a,as:"span",children:e}),l(u1,{anchor:{gap:o,to:i,offset:s},className:`${n} absolute z-10 transition duration-200 ease-out data-[closed]:scale-95 data-[closed]:opacity-0`,style:{width:d},transition:!0,children:({close:f})=>typeof t=="function"?l(ze,{children:t(f)}):l(ze,{children:t})})]})},Hg=async e=>{const{data:t}=await gt().post("/sdk/subscriptions/schedule-cancellation",e);return t},Wg=({subscriptionId:e,isOpen:t,onClose:n})=>{const[r,o]=K(!1),{customerRefetch:i}=Un();return g(Or,{size:"small",title:"Cancel subscription?",isOpen:t,onClose:n,bottomContent:g(k,{className:"flex justify-end gap-x-2",children:[l(Xo,{className:"text-primary-500",onClick:n,size:"x-small",children:"Cancel"}),l(_r,{className:"!bg-metrifox-danger text-metrifox-white",onClick:async()=>{o(!0);try{const s=await Hg({id:e});At.success(s.message),o(!1),n(),i()}catch(s){At.error(s instanceof Error?s.message:"An error ocurred"),o(!1)}},size:"x-small",isLoading:r,disabled:r,children:"Confirm"})]}),showCloseButton:!1,className:"bg-metrifox-white",children:[l(Z,{variant:"label7",children:"Are you sure you want to proceed?"}),l(j,{variant:"body4",color:"text-metrifox-black",className:"mt-5",children:"This subscription is scheduled to be canceled at the end of the billing cycle"})]})},Ug=async e=>{const{data:t}=await gt().post("/sdk/subscriptions/revert-cancellation",e);return t},Zg=({subscriptionId:e,isOpen:t,onClose:n})=>{const[r,o]=K(!1),{customerRefetch:i}=Un();return g(Or,{size:"small",title:"Undo cancellation?",isOpen:t,onClose:n,bottomContent:g(k,{className:"flex justify-end gap-x-2",children:[l(Xo,{className:"text-primary-500",onClick:n,size:"x-small",children:"Cancel"}),l(_r,{className:"text-metrifox-white",onClick:async()=>{o(!0);try{const s=await Ug({id:e});At.success(s.message),o(!1),n(),i()}catch(s){At.error(s instanceof Error?s.message:"An error ocurred"),o(!1)}},size:"x-small",isLoading:r,disabled:r,children:"Next"})]}),showCloseButton:!1,className:"bg-metrifox-white",children:[l(j,{variant:"body4",color:"text-metrifox-black",children:"Keep subscription active?"}),l(j,{variant:"body4",color:"text-metrifox-black",className:"mt-5",children:"The subscription would keep going and renew as usual."})]})},zg=({subscription:e})=>{const[t,n]=K(!1),[r,o]=K(!1);return g(k,{children:[e?.ends_at?l(k,{onClick:()=>o(!0),className:"cursor-pointer",children:l(j,{variant:"body6",className:"text-metrifox-danger",children:"Undo cancellation"})}):l(k,{onClick:()=>n(!0),className:"cursor-pointer",children:l(j,{variant:"body6",className:"text-metrifox-danger",children:"Cancel subscription"})}),l(Wg,{subscriptionId:e?.id,isOpen:t,onClose:()=>n(!1)}),l(Zg,{subscriptionId:e?.id,isOpen:r,onClose:()=>o(!1)})]})},Kg=({subscriptionLineItems:e,handleUpdateQuantity:t,canUpdateQuantities:n})=>{const[r,o]=K(!1),i=e[0];return g(k,{children:[g(k,{className:"bg-grey-200 rounded-t-2xl px-3 pt-2.5 pb-4 mt-4 flex items-center justify-between cursor-pointer",onClick:()=>o(!r),children:[l(Z,{variant:"label8",className:"text-grey-500 font-medium",children:"Items"}),g(k,{className:"flex gap-x-2",children:[n&&l(qo,{className:"!text-metrifox-blue underline cursor-pointer",onClick:s=>{s?.stopPropagation(),t()},children:"Update items"}),l("span",{className:`transform transition-transform duration-300 ${r?"rotate-180":"rotate-0"}`,children:l(he,{name:"arrow-down",size:14,color:"grey-500"})})]})]}),l(k,{className:"bg-metrifox-white rounded-2xl p-2 -mt-2.5 space-y-2",children:r?l(ze,{children:e?.map((s,a)=>l(k,{className:"bg-grey-50 border border-grey-200 rounded-lg p-2 flex justify-between",children:g(k,{className:"w-full flex items-center justify-between",children:[l(k,{className:"flex items-center gap-4",children:g(k,{className:"flex items-center gap-1",children:[l(Z,{variant:"label8",className:"text-grey-800 font-medium",children:Tt(s?.name)}),s?.is_addon&&l(jt,{size:"small",background:"bg-grey-300",textColor:"text-metrifox-black",children:"Add-on"})]})}),g(j,{variant:"body6",className:"text-grey-800 font-medium",children:[Kt(s?.currency_code),me(s?.unit_price||s?.total_amount)]})]})},a))}):g(k,{className:"bg-grey-100 rounded-lg p-2 flex items-center justify-between cursor-pointer",children:[g(Z,{variant:"label8",className:"text-grey-800 font-medium",children:[i?.name," ",l("span",{children:"\u2022"})," ",e.length," item(s)"]}),g(k,{className:"flex items-center gap-1",children:[g(j,{variant:"body6",className:"text-grey-800 font-medium",children:[Kt(i?.currency_code),me(i?.unit_price||i?.total_amount)]}),g(j,{variant:"body6",className:"text-metrifox-blue",children:["+ ",e.length-1," prices(s)"]})]})]})})]})},Yg=({subscription:e,tenantDetails:t})=>{const n=e?.status,{text:r,color:o}=Up(n),{customerKey:i}=Un(),s=[{label:"Current plan",value:`${e?.plan_name||"-"}`},{label:"Status",value:l(jt,{size:"small",background:o,textColor:"text-metrifox-white",children:Tt(r)||"-"})},{label:"Start date",value:vt(e?.starts_at)},...n===We.IN_TRIAL?[{label:"Trial end date",value:vt(e?.trial_end_date)}]:[{label:"End date",value:e?.ends_at?vt(e?.ends_at):"-"}],...n===We.IN_TRIAL?[{label:"Trial period",value:e?.starts_at&&e?.trial_end_date?g(Z,{variant:"label7",className:"text-grey-600",children:[vt(e?.starts_at)," -"," ",vt(e?.trial_end_date)]}):"-"}]:[],...n===We.ACTIVE?[{label:"Renewal date",value:e?.renews_at?vt(e?.renews_at):"-"}]:[],...n===We.ACTIVE?[{label:"Current billing period",value:e?.current_billing_period_start&&e?.current_billing_period_end?g(k,{children:[g(Z,{variant:"label7",className:"text-grey-600",children:[vt(e.current_billing_period_start)," -"," ",vt(e.current_billing_period_end)]}),l(jt,{size:"small",background:"bg-grey-200",textColor:"text-metrifox-black",children:"Auto-renew"})]}):"-"}]:[],...n===We.ACTIVE?[{label:"Next billing date",value:e?.renews_at?vt(e?.renews_at):"-"}]:[],...n===We.ACTIVE?[{label:"Next estimated bill",value:e?.next_billing_amount?l(k,{children:g(Z,{variant:"label7",className:"text-grey-600",children:[Kt(e.currency_code),e.next_billing_amount]})}):"-"}]:[]],a=()=>{const c=`${window.location.origin}/${t.tenant_checkout_username}/${e.offering_key}/subscriptions/${e.id}?customer=${i}`;window.open(c,"_blank","noopener,noreferrer")};return l(k,{children:g(k,{className:"bg-grey-100 rounded-2xl p-4",children:[g(k,{className:"flex items-center justify-between",children:[g(k,{className:"flex items-center gap-1",children:[l(k,{className:"p-1.5 bg-grey-200 rounded-lg",children:l(he,{name:"money",size:18,color:"grey-500"})}),l(Z,{variant:"label7",className:"text-metrifox-black font-medium",children:"Subscription"})]}),e.status!==We.CANCELED&&l(jg,{trigger:l(he,{name:"more",size:20,color:"grey-500"}),anchorTo:"bottom end",className:"bg-metrifox-white rounded-md shadow-md p-4",children:l(zg,{subscription:e})})]}),l(k,{className:"bg-grey-200 rounded-t-2xl px-3 pt-2.5 pb-4 mt-2",children:l(Z,{variant:"label8",className:"text-grey-500 font-medium",children:"Details"})}),l(k,{className:"bg-metrifox-white flex justify-between flex-wrap gap-8 rounded-2xl p-4 -mt-2.5",children:s?.map((c,u)=>g(k,{className:"",children:[l(Z,{variant:"label8",className:"text-grey-500",children:c?.label}),l(Z,{variant:"label7",className:`text-grey-600 font-medium mt-2 ${c?.value==="-"?"text-center":""}`,children:c?.value})]},u))}),e?.subscription_items?.length>0&&l(Kg,{subscriptionLineItems:e?.subscription_items,handleUpdateQuantity:a,canUpdateQuantities:e?.can_update_quantities})]})})},Gg=({upcomingInvoice:e})=>{const[t,n]=K(!1),r=se(null),{invoiceDetails:o}=E0({invoiceId:e?.invoice_id});return g(k,{children:[g(k,{className:"bg-grey-100 rounded-2xl p-4 w-full flex items-center justify-between",children:[g(k,{className:"flex items-center gap-3",children:[l(Z,{variant:"label7",className:"font-medium text-metrifox-black",children:"Upcoming Invoice"}),l(k,{className:"flex items-center gap-2",children:l(jt,{background:"bg-purple-500",size:"small",children:g(Z,{variant:"label8",className:"text-metrifox-white",children:[e?.currency?.symbol,e?.amount]})})}),g(j,{variant:"body6",className:"text-metrifox-black",children:["Due"," ",new Date(e?.due_date).toLocaleString(e?.currency?.country_code,{month:"short",day:"numeric",year:"numeric"})]})]}),l(qo,{className:"!text-metrifox-blue underline cursor-pointer",onClick:()=>{n(!0)},children:"Preview invoice"})]}),t&&l(L0,{isOpen:t,onClose:()=>n(!1),contentRef:r,content:l(S1,{data:o}),modalTitle:"Invoice preview"})]})},R0=({tabs:e,activeTab:t,handleTabClick:n,count:r,className:o,tabButtonClassName:i,activeTabButtonClassName:s})=>l(k,{className:"flex justify-between",children:l(k,{className:`flex gap-x-6 items-center ${o}`,children:e.map(a=>g(Xo,{onClick:()=>n(a.key),className:`!font-normal !text-grey-500 !border-grey-300 !rounded-xl !px-3 ${i} ${t===a.key?"flex gap-3 items-center !text-metrifox-white !bg-metrifox-primary "+s:""}`,children:[l(k,{children:a.label}),t===a.key&&r&&l(k,{className:"flex items-center bg-metrifox-secondary justify-center rounded-md h-5 px-[6px]",children:l(Z,{variant:"label8",color:"text-metrifox-primary",children:Ue(r??0)})}),a.count&&l(k,{className:`flex items-center justify-center rounded-md h-5 px-[6px] ${t===a.key?"bg-metrifox-secondary":"bg-grey-100"}`,children:l(Z,{variant:"label8",color:"text-metrifox-primary",children:Ue(r??0)})})]},a.key))})}),qg=async({walletId:e,status:t})=>{const{data:n}=await gt().get(`/sdk/credit_systems/wallets/${e}/credit-allocations`,{params:{status:t||void 0}});return n},Xg=({walletId:e,status:t})=>{const[n,r]=K(null),[o,i]=K(null),[s,a]=K(!1),c=async()=>{if(!e)return i("Missing walletId");a(!0);try{const u=await qg({walletId:e,status:t});r(u?.data),i(null)}catch(u){const d=u,f=d?.response?.data?.data?.error||d?.message;i(f||"Failed to load credit allocations")}finally{a(!1)}};return te(()=>{c()},[e,t]),{creditAllocations:n,error:o,isLoading:s,refetch:c}},Jg=({consumed:e,total:t,className:n=""})=>{const r=t>0?e/t*100:0;return g(k,{className:`w-full ${n}`,children:[g(k,{className:"flex justify-between text-xs text-grey-600 mb-1",children:[l("span",{children:e.toFixed(0)}),l("span",{children:"/"}),l("span",{children:t.toFixed(0)})]}),l(k,{className:"w-full bg-grey-200 rounded-full h-2 overflow-hidden",children:l(k,{className:"bg-blue-500 h-2 rounded-full transition-all duration-300 ease-in-out",style:{width:`${r}%`}})})]})},Qg=async({allocationId:e})=>{const{data:t}=await gt().get(`/sdk/credit_systems/wallets/${e}/credit-transaction`);return t},ey=({allocationId:e})=>{const[t,n]=K(null),[r,o]=K(null),[i,s]=K(!1),a=async()=>{if(!e)return o("Missing AllocationId");s(!0);try{const c=await Qg({allocationId:e});n(c?.data),o(null)}catch(c){const u=c,d=u?.response?.data?.data?.error||u?.message;o(d||"Failed to load credit allocation")}finally{s(!1)}};return te(()=>{a()},[e]),{creditTransactions:t,error:r,isLoading:i,refetch:a}},ty=({allocationId:e,isOpen:t,onClose:n})=>{const{creditTransactions:r,isLoading:o}=ey({allocationId:e}),i=r?.allocation_type,s=E1(i||""),a=(r?.transactions||[]).map(c=>({date:Ao(c.created_at),event:c.event_name||"-",quantity:c.quantity,amount:-Math.abs(c.amount)}));return l(Or,{size:"large",title:s,isOpen:t,onClose:()=>n(),className:"bg-metrifox-white",children:l(Br,{columns:[{key:"date",header:"Date",render:c=>l(j,{variant:"body6",className:"text-md",children:c.date})},{key:"event",header:"Event",render:c=>l(j,{variant:"body6",className:"text-lg",children:c.event})},{key:"quantity",header:"Quantity",render:c=>l(j,{variant:"body6",className:"text-lg",children:c.quantity})},{key:"amount",header:"Amount",render:c=>l(j,{variant:"body6",className:"text-lg text-[#D12C2C]",children:me(c.amount)})}],data:a,isLoading:o,emptyState:g(k,{className:"flex flex-col items-center justify-center gap-3 py-12",children:[l(he,{name:"wallet-is-empty",size:84,color:"grey-400"}),l(Z,{variant:"label7",color:"text-grey-500",children:"No transactions found"})]})})})},ny=({tenantDetails:e,subscription:t,wallets:n})=>{const[r,o]=K(0),[i,s]=K(""),[a,c]=K(!1),[u,d]=K(""),[f,h]=K("active"),m=x=>{h(x)},p=[{key:"active",label:"Active"},{key:"expired",label:"Expired"},{key:"overage",label:"Overage"}],{creditAllocations:y,isLoading:v}=Xg({walletId:i,status:f}),w=y?.map(x=>t6(x));te(()=>{n&&n.length>0&&!i&&s(n?.[0]?.id)},[n,i]);const C=[{header:"Credited date",render:x=>g(k,{className:"flex flex-col",children:[l(j,{variant:"body6",className:"text-grey-700 font-medium",children:x.creditedDate}),x.orderId&&x.orderNumber&&l(j,{variant:"body6",className:"underline",children:x.orderNumber}),x.invoiceId&&l(j,{variant:"body6",className:"underline",children:x.invoiceId})]})},{key:"source",header:"Source"},{header:"Amount",render:x=>l(j,{variant:"body6",color:"text-grey-700",children:me(x.amount)})},{header:"Balance",render:x=>g(k,{className:"space-y-2",children:[g(j,{variant:"body6",className:"text-grey-700 font-medium",children:[x.balance," ",x.source==="Overage"?"":"available"]}),l(Jg,{consumed:x.consumed,total:x.amount})]})},{header:"Valid until",render:x=>l(j,{variant:"body6",color:"text-grey-700",children:x.validUntil?new Date(x.validUntil).toLocaleDateString():"No expiration"})}],b=x=>{const E=`${window.location.origin}/${e.tenant_checkout_username}/checkout/${t.offering_key}?customer=${e.customer_key}&credit=${x}`;window.open(E,"_blank","noopener,noreferrer")};if(!n||n.length===0)return null;const L=x=>{c(!0),d(x.id)};return g(k,{className:"bg-grey-100 rounded-2xl p-4",children:[g(k,{className:"flex items-center gap-1",children:[l(k,{className:"p-1.5 bg-grey-200 rounded-lg",children:l(he,{name:"card-receive",size:16,color:"grey-500"})}),l(Z,{variant:"label7",className:"text-metrifox-black font-medium",children:"Wallet balance"})]}),l(k,{className:"bg-metrifox-white rounded-2xl p-4 mt-2",children:n.length>1?g(To,{defaultIndex:r,onChange:o,children:[l(Do,{className:"w-max bg-grey-100 border border-neutral-200 text-grey-500 px-1.5 py-1 rounded-2xl",children:n.map(x=>l(vr,{onClick:()=>s(x.id),className:"w-max data-[selected]:bg-metrifox-primary data-[selected]:border data-[selected]:border-grey-200 outline-none data-[selected]:text-metrifox-white rounded-xl px-8 py-2",children:l(j,{variant:"body6",children:x.name})},x.id))}),l(Po,{children:n.map(x=>g(Wn,{children:[l(k,{className:"bg-grey-100 rounded-lg p-6 mt-4",children:g(k,{className:"w-full flex items-center justify-between gap-1",children:[g(k,{className:"text-center",children:[l(k,{className:"flex items-center justify-center gap-1",children:l(Z,{variant:"label8",className:"text-grey-500 font-medium",children:"Total available balance"})}),g(k,{className:"flex items-baseline justify-center gap-1",children:[l(Z,{variant:"label6",className:"text-neutral-800 font-medium",children:me(x.balance)}),l(Z,{variant:"label8",className:"text-grey-500 mt-3.5",children:x.name})]})]}),l(_r,{type:"button",size:"small",onClick:()=>b(x.credit_key),className:"text-metrifox-white",children:"Top up"})]})}),l(R0,{tabs:p,activeTab:f,handleTabClick:m,count:v?0:y?.length,className:"my-2"}),l(Br,{columns:C,data:w,onRowClick:L,isLoading:v,emptyState:g(k,{className:"flex flex-col items-center justify-center gap-3 py-12",children:[l(he,{name:"wallet-is-empty",size:84,color:"grey-400"}),l(Z,{variant:"label7",color:"text-grey-500",children:f==="active"?"No active credit allocations found":f==="expired"?"No expired credit allocations found":"No overage credit allocations found"})]}),emptyStateClassName:"!h-auto"})]},x.id))})]}):n[0]&&g(ze,{children:[l(k,{className:"bg-grey-100 rounded-lg p-6 mt-4",children:g(k,{className:"w-full flex items-center justify-between gap-1",children:[g(k,{className:"text-center",children:[l(k,{className:"flex items-center justify-center gap-1",children:l(Z,{variant:"label8",className:"text-grey-500 font-medium",children:"Total available balance"})}),g(k,{className:"flex items-baseline justify-center gap-1",children:[l(Z,{variant:"label6",className:"text-neutral-800 font-medium",children:me(n[0].balance)}),l(Z,{variant:"label8",className:"text-grey-500 mt-3.5",children:n[0].name})]})]}),l(_r,{type:"button",size:"small",onClick:()=>n[0]?.id&&b(n[0].credit_key),className:"text-metrifox-white",children:"Top up"})]})}),l(R0,{tabs:p,activeTab:f,handleTabClick:m,count:v?0:y?.length,className:"my-2"}),l(Br,{columns:C,data:w,onRowClick:L,isLoading:v,emptyState:g(k,{className:"flex flex-col items-center justify-center gap-3 py-12",children:[l(he,{name:"wallet-is-empty",size:84,color:"grey-400"}),l(Z,{variant:"label7",color:"text-grey-500",children:f==="active"?"No active credit allocations found":f==="expired"?"No expired credit allocations found":"No overage credit allocations found"})]}),emptyStateClassName:"!h-auto"})]})}),l(ty,{allocationId:u,isOpen:a,onClose:()=>{c(!1),d("")}})]})},ry=[{key:"upcomingInvoice"},{key:"subscription"},{key:"creditBalance"},{key:"entitlementUsage"},{key:"paymentOverview"},{key:"billingHistory"},{key:"plan"}],oy={upcomingInvoice:"upcoming-invoice",subscription:"subscription",creditBalance:"credit-balance",entitlementUsage:"entitlement-usage",paymentOverview:"payment-overview",billingHistory:"billing-history",plan:"plan"},F0=({product:e,tenantDetails:t,sectionsConfig:n,customerWallets:r})=>{const o=n||ry,i={upcomingInvoice:()=>e?.subscription?.upcoming_invoice?l(Gg,{upcomingInvoice:e.subscription.upcoming_invoice}):null,subscription:()=>e?.subscription?l(Yg,{subscription:e.subscription,tenantDetails:t}):null,creditBalance:()=>r&&r.length>0?l(ny,{subscription:e.subscription,tenantDetails:t,wallets:r}):null,entitlementUsage:()=>e?.subscription?l(Y8,{subscriptionId:e?.subscription?.id}):null,paymentOverview:()=>l(G8,{paymentMethod:e.payment_method,tenantDetails:t}),billingHistory:()=>e?.subscription?.id?l(j8,{subscriptionId:e.subscription?.id}):null,plan:()=>e?.product_key?l(Bg,{product:e,tenantDetails:t}):null};return g(k,{className:"space-y-4",children:[o.filter(s=>!s.hidden).map(s=>{const a=oy[s.key]??s.key;if(s.component)return l("section",{id:a,className:"space-y-4",children:l(s.component,{product:e,tenantDetails:t,...s.props})},s.key);const c=i[s.key],u=c?c(s.props):null;return u?l("section",{id:a,children:u},s.key):null}),l(Ig,{})," "]})},iy=({customerKey:e,sectionsConfig:t})=>{const[n,r]=K(0),{setCustomerKey:o,setCustomerRefetch:i}=Un(),{customerDetails:s,error:a,refetch:c,isLoading:u}=Ep({customerKey:e}),{customerWallets:d}=Sp({customerKey:e});if(te(()=>{o(e),i(c)},[]),a)return l(k,{className:"max-w-[60rem] mx-auto py-6 px-4",children:g("div",{className:"bg-red-50 p-4 rounded-lg text-red-700",children:["Error loading customer details: ",a]})});if(u||!s)return l(k,{className:"max-w-[60rem] mx-auto py-6 px-4",children:g("div",{className:"animate-pulse space-y-4",children:[l("div",{className:"h-12 bg-gray-200 rounded-lg"}),l("div",{className:"h-16 bg-gray-200 rounded-lg"}),[1,2,3,4,5].map(p=>l("div",{className:"h-48 bg-gray-200 rounded-lg"},p))]})});const{subscriptions:f,...h}=s||{},m=f||[];return l(c3,{children:l(k,{className:"max-w-[60rem] mx-auto py-6 px-4 space-y-4",children:m&&m.length>1?g(To,{defaultIndex:n,onChange:p=>r(p),children:[l(Do,{className:"w-max bg-grey-100 border border-grey-200 text-grey-500 px-1.5 py-1 mb-4 rounded-2xl",children:m.map(p=>l(vr,{className:"w-max data-[selected]:bg-metrifox-primary data-[selected]:border data-[selected]:border-grey-200 outline-none data-[selected]:text-metrifox-white rounded-xl px-8 py-2",children:l(j,{variant:"body6",children:p.product_name})},p.product_key))}),l(Po,{children:m.map(p=>l(Wn,{children:l(F0,{product:p,tenantDetails:h,sectionsConfig:t,customerWallets:d})},p.product_key))})]}):l(ze,{children:m.map(p=>l(F0,{product:p,tenantDetails:h,sectionsConfig:t,customerWallets:d},p.product_key))})})})};export{iy as CustomerPortal,Vf as metrifoxInit};
|
|
45
|
+
`,children:_.render?_.render(P):E(Gp(P,_.key))},B))},W))]})]})}),i==="grid"&&l("div",{className:`grid ${R}`,children:t?.map((P,W)=>l("div",{className:s?"cursor-pointer":"cursor-default",onClick:()=>s?.(P),children:a?.renderItem(P)},W))}),n&&l(I8,{currentPage:n.currentPage,totalPages:n.totalPages,onPageChange:n.onPageChange})]})},j8=({columns:e})=>l("tr",{children:Array.from({length:e}).map((t,n)=>l("td",{className:"px-3 py-4 border-b border-grey-100",children:l("div",{className:"mt-1 h-4 w-20 rounded-md bg-grey-200"})},n))}),jt=({children:e,size:t="medium",background:n="transparent",textColor:r=""})=>{const o=xp[t];return l(x,{className:`inline-flex items-center ${n} min-w-fit justify-center rounded-full px-2.5 py-1 border gap-x-2 ${o} ${n==="transparent"?"border-grey-300":"border-none"} ${r}`,children:e})},H8=async({subscriptionId:e})=>{const{data:t}=await gt().get(`/sdk/subscriptions/${e}/billing-history`);return t},W8=({subscriptionId:e})=>{const[t,n]=K(null),[r,o]=K(!1),s=async()=>{if(!e){At.error("Missing subscriptionId");return}o(!0);try{const i=await H8({subscriptionId:e});n(i?.data)}catch(i){At.error(i instanceof Error?i.message:"Failed to load billing history")}finally{o(!1)}};return te(()=>{s()},[e]),{billingHistory:t,isLoading:r,refetch:s}},U8=async({invoiceId:e})=>{const{data:t}=await gt().get(`/sdk/invoices/${e}/view`);return t},S0=({invoiceId:e})=>{const[t,n]=K(null),[r,o]=K(!1),s=async()=>{if(e){o(!0);try{const i=await U8({invoiceId:e});n(i?.data)}catch(i){At.error(i instanceof Error?i.message:"Failed to load invoice details")}finally{o(!1)}}};return te(()=>{s()},[e]),{invoiceDetails:t,isLoading:r,refetch:s}},Z8=({subscriptionId:e})=>{const[t,n]=K(!1),[r,o]=K(null),s=se(null),{billingHistory:i}=W8({subscriptionId:e}),{invoiceDetails:a}=S0({invoiceId:r||""}),c=d=>{d.status===x1.Paid&&d.invoice_id&&(o(d.invoice_id),n(!0))},u=[{header:"Total amount",render:d=>{const{text:f,color:h}=zp(d.status),m=Kt(d.currency);return l(x,{children:y(x,{className:"flex items-center gap-2",children:[y(x,{className:"flex items-center",children:[l(j,{className:"capitalize",variant:"body6",color:"text-grey-700",children:m}),l(j,{className:"capitalize",variant:"body6",color:"text-grey-700",children:me(d.total_amount)})]}),l(jt,{size:"small",background:`${h}`,children:l(Z,{variant:"label9",className:"capitalize text-metrifox-white",children:f})})]})})}},{header:"Invoice number",render:d=>l(j,{className:"capitalize",variant:"body6",color:"text-grey-700",children:d.invoice_number||"-"})},{header:"Source type",render:d=>l(j,{className:"capitalize",variant:"body6",color:"text-grey-700",children:Tt(d.source_type==="billing_cycle"?"subscription":d.source_type).replace(/_/g," ")})},{header:"Issue date",render:d=>l(j,{className:"capitalize",variant:"body6",color:"text-grey-700",children:d.issued_date?w1(d.issued_date).format("MMM D, YYYY"):"-"})},{header:"Due date",render:d=>l(j,{className:"capitalize",variant:"body6",color:"text-grey-700",children:d.due_date?w1(d.due_date).format("MMM D, YYYY"):"-"})},{header:"Amount paid",render:d=>{const f=Kt(d.currency);return y(x,{className:"flex items-center",children:[l(j,{className:"capitalize",variant:"body6",color:"text-grey-700",children:f}),l(j,{className:"capitalize",variant:"body6",color:"text-grey-700",children:me(d.amount_paid)})]})}}];return!i||i?.length===0?null:y(x,{className:"bg-grey-100 rounded-2xl p-4",children:[y(x,{className:"flex items-center gap-1",children:[l(x,{className:"p-1.5 bg-grey-200 rounded-lg",children:l(he,{name:"receipt",size:16,color:"grey-500"})}),l(Z,{variant:"label7",className:"text-metrifox-black font-medium",children:"Billing history"})]}),l(Br,{columns:u,data:i,onRowClick:c,className:"mt-2"}),t&&r&&l(M0,{isOpen:t,onClose:()=>{n(!1),o(null)},contentRef:s,content:l(D1,{data:a}),modalTitle:"Invoice PDF"})]})},z8=async({subscriptionId:e})=>{const{data:t}=await gt().get(`/sdk/subscriptions/${e}/entitlements-usage`);return t},K8=async({subscriptionId:e})=>{const{data:t}=await gt().get(`/sdk/subscriptions/${e}/entitlements-summary`);return t},Y8=({subscriptionId:e})=>{const[t,n]=K(null),[r,o]=K(null),[s,i]=K(!1),[a,c]=K(null),[u,d]=K(null),[f,h]=K(!1),m=async()=>{if(!e)return o("Missing subscription");i(!0);try{const g=await z8({subscriptionId:e});n(g.data),o(null)}catch(g){const v=g,b=v?.response?.data?.data?.error||v?.message;o(b||"Failed to load entitlement usage")}finally{i(!1)}},p=async()=>{if(!e)return d("Missing subscription");h(!0);try{const g=await K8({subscriptionId:e});c(g.data),d(null)}catch(g){const v=g,b=v?.response?.data?.data?.error||v?.message;d(b||"Failed to load entitlement summary")}finally{h(!1)}};return te(()=>{m(),p()},[e]),{entitlementUsage:t||[],usageError:r,isUsageLoading:s,refetchUsage:m,entitlementSummary:a||[],summaryError:u,isSummaryLoading:f,refetchSummary:p}},G8=({entitlements:e})=>{const t=Up();return l(Br,{columns:[{header:"Feature",render:n=>l(x,{children:y(x,{className:"flex flex-col gap-y-1 items-start",children:[l(j,{variant:"body6",color:"text-gray-700",children:n.feature_name}),l(jt,{background:"bg-grey-100",textColor:"text-metrifox-black",size:"small",children:n.feature_key})]})})},{header:"Type",render:n=>{const r={[pn.METERED]:"bg-metrifox-blue",[pn.BOOLEAN]:"bg-metrifox-warning"};return y(x,{children:[l(jt,{size:"small",textColor:"text-metrifox-white",background:r[n.feature_type],children:l(j,{variant:"body6",children:Tt(n.feature_type)})}),n.usage_model&&y(j,{variant:"body7",color:"text-metrifox-blue",className:"mt-1",children:[Tt(n.usage_model?.split("_").join(" ")),n.feature_type===pn.METERED?n.prepaid?"/ Prepaid":`/ ${Tt(n.price_type)}`:""]})]})}},{header:"Included allowance",render:n=>l(x,{children:l(j,{variant:"body6",children:n.feature_type===pn.BOOLEAN?"Unlimited":`${Ze(n.included_allowance||0)}${n.included_allowance_reset_interval!==Cr.NONE?` ${t[n.included_allowance_reset_interval].toLowerCase()}`:""}`})})},{header:"Usage limits",render:n=>l(x,{children:l(j,{variant:"body6",children:(r=>{if(r.feature_type===pn.BOOLEAN)return"Unlimited";if(r.price_type===k1.PAY_AS_YOU_GO){const o=r.usage_limit??"Unlimited";let s="";return r.usage_limit_reset_interval&&r.usage_limit_reset_interval!==Cr.NONE&&(s=` ${t[r.usage_limit_reset_interval].toLowerCase()}`),`${o}${s}`}if(r.purchased_qty!==null&&r.purchased_qty!==void 0){const o=Ze(r.purchased_qty),s=r.billing_interval&&r.billing_interval!==Cr.NONE?` ${t[r.billing_interval].toLowerCase()}`:"",i=r.soft_limit_enabled?"Soft limits enabled":"";return`${o}${s} ${i}`}if(r.included_allowance!==null&&r.included_allowance!==void 0){const o=Ze(r.included_allowance);let s="";return r.included_allowance_reset_interval&&r.included_allowance_reset_interval!==Cr.NONE&&(s=` ${t[r.included_allowance_reset_interval].toLowerCase()}`),`${o}${s}`}return"0"})(n)})})}],data:e,emptyState:l(Ie,{children:y(x,{className:"flex flex-col items-center gap-y-3 w-fit mx-auto ",children:[l(he,{name:"note-2",color:"neutral-200",size:72}),l(j,{variant:"body4",color:"text-grey-400",children:"No entitlements attached to this subscription"})]})})})},q8=({triggerFunc:e,trigger:t,caretIcon:n,isOpenDefault:r=!1,triggerClassName:o="",triggerOpenClassName:s="",contentClassName:i="",mainClassName:a="",children:c,caretPosition:u="end"})=>{const[d,f]=K(r);return e&&(e.current=h=>f(h)),y(x,{className:`w-full ${a}`,children:[y(x,{onClick:()=>f(!d),className:`flex items-start justify-between gap-2 w-full px-4 py-2 bg-gray-100 cursor-pointer ${d&&s||o}`,children:[u==="start"&&l("span",{className:`transform transition-transform duration-300 ${d?"rotate-180":"rotate-0"}`,children:n||l(he,{name:"arrow-down",size:24,color:"grey-500"})}),typeof t=="function"?t(d):t,u==="end"&&l("span",{className:`transform transition-transform duration-300 ${d?"rotate-180":"rotate-0"}`,children:n||l(he,{name:"arrow-down",size:24,color:"grey-500"})})]}),d&&l(x,{className:`p-4 ${i}`,children:typeof c=="function"?c(()=>f(!d)):c})]})},X8=({meteredEntitlements:e})=>l(x,{className:"rounded-2xl px-3 pt-5",children:y(x,{children:[y(x,{className:"flex-1 grid grid-cols-4 border-b border-grey-100 gap-x-4 py-3 pl-3 pr-12",children:[l(x,{children:l(Z,{variant:"label8",color:"text-metrifox-black",children:"Feature"})}),l(x,{children:l(Z,{variant:"label8",color:"text-metrifox-black",children:"Type"})}),l(x,{className:"col-span-2",children:l(Z,{variant:"label8",color:"text-metrifox-black",children:"Usage"})})]}),l(x,{className:"w-8"}),e.length>0?e.map(t=>{const{processedPools:n,totalUsed:r,totalAmount:o,totalBalance:s,isAnyUnlimited:i}=o6(t),a=(c,u)=>u>0?c/u*100:0;return l(x,{className:"py-4 px-4 border-b border-grey-100 last:border-0",children:l(q8,{trigger:y(x,{className:"flex-1 grid grid-cols-4 gap-4 items-center pr-8",children:[y(x,{className:"flex flex-col gap-y-1 items-start",children:[l(j,{variant:"body6",color:"text-gray-700",children:t.feature_name}),l(jt,{background:"bg-grey-100",textColor:"text-metrifox-black",size:"small",children:t.feature_key})]}),l(x,{children:l(j,{variant:"body7",color:"text-metrifox-blue",className:"mt-1",children:Tt(t.type?.split("_").join(" "))})}),y(x,{className:"col-span-2",children:[l(j,{variant:"body6",color:"text-grey-700",children:!i&&(s<0?`${Ze(Math.abs(s))} used above limit`:`${Ze(s)} left`)}),y(x,{className:"w-full flex items-center gap-x-2",children:[l(x,{className:"w-96 h-[6px] my-[6px] bg-grey-300 flex items-center justify-start rounded overflow-hidden",children:i?l(x,{className:"h-[6px] bg-metrifox-blue rounded",style:{width:"100%"}}):n.filter(c=>!c.isUnlimited&&c.used>0).sort((c,u)=>c.order-u.order).map(c=>l(x,{className:"h-[6px] bg-metrifox-blue",style:{width:`${a(c.used,o)}%`}},c.pool))}),l(j,{variant:"body6",color:"text-grey-700",children:i?`${Ze(r)}/Unlimited`:`${Ze(r)}/${Ze(o)}`})]})]})]}),triggerClassName:"!p-0 !bg-transparent !item-center",contentClassName:"!p-0",caretIcon:l(he,{name:"arrow-down-linear",size:16,color:"grey-500"}),children:l(x,{className:"w-full rounded-lg overflow-hidden flex flex-col items-start justify-start gap-y-0 pt-4",children:n.map((c,u)=>y(x,{className:"w-full flex items-center px-6 py-3 bg-grey-100 gap-x-40",children:[l(j,{variant:"body6",color:"text-grey-700",children:c.pool}),y(x,{children:[l(j,{variant:"body6",color:"text-grey-700",children:!c.isUnlimited&&(c.balance<0?`${Ze(Math.abs(c.balance))} used above limit`:`${Ze(c.balance)} left`)}),y(x,{className:"w-full flex items-center gap-x-2",children:[l(x,{className:"w-72 h-[6px] my-[6px] bg-grey-300 flex items-center justify-start rounded overflow-hidden",children:l(x,{className:`h-[6px] bg-${c.color}`,style:{width:`${c.percent}%`}})}),l(j,{variant:"body6",color:"text-grey-700",children:c.isUnlimited?`${Ze(c.used)}/ Unlimited`:`${Ze(c.used)}/${Ze(c.amount)}`})]}),c.nextResetAt&&y(j,{variant:"body6",color:"text-grey-500",children:["resets on ",c.nextResetAt]})]})]},u))})})},t.id)}):y(x,{className:"flex flex-col items-center gap-y-3 w-fit mx-auto py-12 ",children:[l(he,{name:"note-1-bulk",color:"neutral-200",size:72}),l(j,{variant:"body4",color:"text-grey-400",children:"No metered entitlements attached to this subscription"})]})]})}),J8=({subscriptionId:e})=>{const{entitlementUsage:t,entitlementSummary:n}=Y8({subscriptionId:e}),r=t?.filter(o=>o.type!==pn.BOOLEAN)||[];return y(x,{className:"bg-grey-100 rounded-2xl p-4",children:[l(x,{className:"flex items-center justify-between",children:y(x,{className:"flex items-center gap-1",children:[l(x,{className:"p-1.5 bg-grey-200 rounded-lg",children:l(he,{name:"radar",size:16,color:"grey-500"})}),l(Z,{variant:"label7",className:"text-metrifox-black font-medium",children:"Entitlements"})]})}),l(x,{className:"bg-metrifox-white rounded-2xl p-4 mt-2",children:y(To,{children:[y(Do,{className:"w-max bg-grey-100 border border-neutral-200 text-grey-500 px-1.5 py-1 rounded-2xl",children:[l(vr,{className:"w-max data-[selected]:bg-metrifox-primary data-[selected]:border data-[selected]:border-grey-200 outline-none data-[selected]:text-metrifox-white rounded-xl px-8 py-2",children:l(j,{variant:"body6",children:"Summary"})}),r.length>0&&l(vr,{className:"w-max data-[selected]:bg-metrifox-primary data-[selected]:border data-[selected]:border-grey-200 outline-none data-[selected]:text-metrifox-white rounded-xl px-8 py-2",children:l(j,{variant:"body6",children:"Usage"})})]}),y(Po,{children:[l(Wn,{children:l(G8,{entitlements:n})}),r.length>0&&l(Wn,{children:l(X8,{meteredEntitlements:r})})]})]})})]})},Q8=({tenantDetails:e,paymentMethod:t})=>{const{address:n}=b1(e?.billing_address),r=[{label:"Billed to",value:e?.full_name||"-"},{label:"Billing email",value:e?.billing_email||"-"},{label:"Billing address",value:n||"-"}];return y(x,{className:"bg-grey-100 rounded-2xl p-4",children:[l(x,{className:"flex items-center justify-between",children:y(x,{className:"flex items-center gap-1",children:[l(x,{className:"p-1.5 bg-grey-200 rounded-lg",children:l(he,{name:"money",size:18,color:"grey-500"})}),l(Z,{variant:"label7",className:"text-metrifox-black font-medium",children:"Payment"})]})}),l(x,{className:"bg-grey-200 rounded-t-2xl px-3 pt-2.5 pb-4 mt-2",children:l(Z,{variant:"label8",className:"text-grey-500 font-medium",children:"Details"})}),y(x,{className:"bg-metrifox-white grid grid-cols-3 gap-8 justify-between rounded-2xl p-4 -mt-2.5",children:[r?.map((o,s)=>y(x,{children:[l(Z,{variant:"label8",className:"text-grey-500",children:o?.label}),l(Z,{variant:"label7",className:"text-grey-600 font-medium mt-2",children:o?.value||"-"})]},s)),y(x,{children:[l(Z,{variant:"label8",className:"text-grey-500",children:"Payment method"}),t?y(x,{className:"flex items-center gap-x-2 mt-2",children:[y(j,{variant:"body6",color:"text-grey-600 font-medium",children:[Tt(t?.brand)," ",t?.display_name," "]}),y(j,{variant:"body6",className:"text-neutral-500 font-light",children:["Expires ",t?.exp_month,"/",t?.exp_year]})]}):l("span",{children:"-"})]})]})]})},eg=({progress:e})=>{const t=_8(e,[0,20,100],[0,0,1]);return l(Yo.svg,{width:"16",height:"16",viewBox:"0 0 25 25",children:l(Yo.path,{d:"M5.5 11.5L10.5 16.5L19.5 7.60001",fill:"transparent",stroke:"#1E4D37",strokeWidth:2,style:{pathLength:t}})})},tg=({text:e,children:t,showCopyIcon:n})=>{const r=w0(90),[o,s]=K(!1),i=a=>{navigator.clipboard.writeText(a).catch(()=>{})};return y(x,{className:"*:ml-1 flex items-center bg-grey-200 w-fit py-0.5 px-2 rounded-xl font-medium",children:[t||l(j,{variant:"body6",color:"text-grey-700",className:"!ml-0",children:e}),n&&l(Ie,{children:o?y(Ie,{children:[l(Yo.div,{initial:{x:0},animate:{x:100},style:{x:r},transition:{duration:.25,ease:"easeOut"}}),l(eg,{progress:r})]}):l("button",{className:"w-fit",type:"button",onClick:a=>{a.stopPropagation(),i(e),s(!0),setTimeout(()=>s(!1),2e3)},children:l(he,{name:"copy",color:"grey-500",size:16})})})]})},T0=mi(e=>({plans:[],setPlans:t=>e(n=>({plans:typeof t=="function"?t(n.plans):t}))})),Sa=({selectedInterval:e,publishedOnly:t=!1})=>{const{plans:n}=T0(),[r,o]=K(40),s=d=>{if(!d)return;const f=d.published_version||d,h=d.draft_version;return t?f?.is_visible?f:void 0:f||h},i=n?.some(d=>!!s(d)?.description),a=n?.some(d=>!!s(d)?.trial_duration_value),c=n?.some(d=>{const f=s(d);return f?f.price_options?.some(h=>h.price?.billing_interval===e)||f.entitlement_price_options?.filter(h=>h.price.billing_interval===e).length===1||f.is_free||f.is_custom:!1}),u=n?.some(d=>{const f=s(d);return f?[f.credit_attachment_price_options,f.entitlement_price_options].some(h=>Array.isArray(h)&&h.some(m=>m.price?.billing_interval===e)):!1});return te(()=>{n.forEach(d=>{const f=s(d);if(!f)return;const h=[...f.credit_attachment_price_options||[],...f.entitlement_price_options||[]].filter(b=>b.price?.billing_interval===e),m=b=>{const w=b,C=w?.price?.name||w?.price?.owner?.feature?.name||w?.price?.owner?.name,{price:L,label:k,currencySymbol:E}=as(w);return`${C} from ${E}${L}${k?`/${k}`:""}`.length>40?39:24},p=h[0]?m(h[0]):0,g=h[1]?m(h[1]):0,v=p+g;o(b=>v>b?v:b)})},[n,e]),{dynamicCardHeight:r,shouldShowDescription:i,shouldShowFreeTrial:a,shouldShowFixedPrice:c,shouldShowDynamicPrices:u}},D0=({entitlements:e,baseEntitlementsPlanName:t,credits:n})=>{const r=ls(e).filter(o=>o?.is_visible);return y(x,{children:[l(Z,{variant:"label7",className:"text-metrifox-primary mb-3",as:"p",children:t?`Everything in ${t} plus:`:"\xA0"}),y("ul",{className:"flex flex-col gap-y-3",children:[n?.map((o,s)=>y("li",{className:"flex items-center gap-[10px]",children:[" ",l(he,{name:"check",color:"green-600",size:16}),l(j,{variant:"body5",children:o.included_usage_text})]},s)),r?.map((o,s)=>y("li",{className:"flex items-center gap-[10px]",children:[" ",l(he,{name:"check",color:"green-600",size:16}),l(j,{variant:"body5",children:o.display_text})]},s))]})]})},ng=e=>{const t=e?.price?.billing_interval,n=e?.price.tiers,r=e?.price.currency,o=e?.price?.invoice_timing,s=Kt(r),i=g=>{const v=e?.price?.owner,b=v?.included_usage||0,w=g?.find(P=>P.first_unit===b);if(!w)return{price:null,label:null};const{unit_price:C,package_price:L,package_size:k,pricing_model:E,flat_fee:R}=w;return R?{price:R.toFixed(2),label:""}:{per_unit:{price:C?.toFixed(2),label:`per. ${v?.feature?.unit_singular||v?.credit_unit_singular}`},per_package:{price:L?.toFixed(2),label:`for ${k} ${v?.feature?.unit_plural}`}}[E]??{price:null,label:null}},{price:a,label:c}=i(n),u=e?.price?.is_custom&&e?.price?.billing_interval_value>1?`every ${e?.price?.billing_interval_value} ${Xp[t]}`:t,d=[ke.DAILY,ke.WEEKLY],f={[ke.DAILY]:"day",[ke.WEEKLY]:"week"},h=t,m=d.includes(h)?f[h]:"month",p=(qp(t,e?.price?.billing_interval_value)*(e?.price?.price??0)).toFixed(2);return{amount:(e?.price?.price??0).toFixed(2),billedText:u,intervalText:m,billingAmount:p,tierPrice:a,tierLabel:c,currencySymbol:s,invoiceTiming:o,intervalValue:e?.price?.billing_interval_value}},rg=({priceOption:e,interval:t})=>{const{amount:n,billedText:r,billingAmount:o,intervalText:s,currencySymbol:i,intervalValue:a}=ng(e),c=me(n).split("."),u=c?c[0]:"0",d=c&&c.length>1?c[1]:"00";return y(x,{className:"p-2 border-b border-grey-200 last:border-0",children:[l(x,{className:"flex items-center justify-between",children:l(Z,{variant:"label7",className:"text-grey-600 mb-2",children:"Fixed recurring"})}),y(x,{className:"flex items-end",children:[y(Z,{variant:"label3",className:"text-[var(--price-color,#0F0F0F)]",children:[i,u]}),y(Z,{variant:"label6",className:"mb-[5px] text-metrifox-black",children:[".",d]}),y(j,{variant:"body4",className:"mb-[5px] text-grey-500",children:["/",s]})]}),(t!==ke.MONTHLY||a!==1)&&y(j,{className:"-mt-2",variant:"body6",children:["Billed"," ",y(Z,{as:"span",variant:"label8",className:"inline-block",children:[i,me(o)," ",r.toLowerCase()]})]})]})},og=({interval:e,dynamicPrices:t,showMoreCard:n,showMore:r})=>{const[o,s]=K(""),{dynamicCardHeight:i}=Sa({selectedInterval:e}),a=n?"":"flex flex-col",c=n?{}:{height:i+20};return y(x,{className:a,style:c,children:[(n?t:t.slice(0,2)).map(u=>{const d=u?.price?.name||u?.price?.owner?.feature?.name||u?.price?.owner?.name,f=Jp(u?.price.tiers,u.price.currency),{price:h,label:m,currencySymbol:p,isPercentage:g}=as(u),v=f?.length===1;return n?y(x,{className:"p-2 border-b border-grey-200 last:border-0",children:[y(x,{className:"flex justify-between items-center",children:[l(Z,{variant:"label7",className:"text-grey-600 mb-1",children:d}),v&&y(x,{className:"flex items-center cursor-pointer",children:[y(Z,{variant:"label7",color:"text-metrifox-black",children:[!g&&p,h]}),m&&y(j,{variant:"body5",color:"text-grey-500",className:"mr-1",children:[g?"\xA0":"/",m]})]})]}),!v&&y(x,{className:"flex justify-between items-center",children:[l(j,{variant:"body5",className:"text-grey-700",children:"Starts at"}),y(x,{className:"flex items-center cursor-pointer",onClick:b=>{b.stopPropagation(),s(o===u.id?"":u.id)},children:[y(Z,{variant:"label7",color:"text-metrifox-black",children:[!g&&p,h]}),y(j,{variant:"body5",color:"text-grey-500",className:"mr-1",children:[g?"\xA0":"/",m]}),f.length>1&&l(he,{name:o===u.id?"arrow-up-light":"arrow-down-linear",size:16,color:"grey-400"})]})]}),o===u.id&&f.length>1&&l(x,{className:"bg-grey-200 p-2 mt-1 rounded-lg",children:l(x,{className:"flex flex-col gap-y",children:f?.map(b=>y(x,{className:"flex justify-between items-center",children:[l(j,{variant:"body7",color:"text-grey-700",children:b?.label}),y(j,{variant:"body7",color:"text-grey-700",children:[b?.price,b?.package?`/${b?.package} ${m}`:""]})]},b?.label))})})]},u.id):l(x,{className:"mt-1",children:y(x,{className:"flex items-center gap-x-1 flex-wrap",children:[l(Z,{variant:"label8",className:"text-grey-600 whitespace-nowrap",children:d}),l(j,{variant:"body7",children:v?"at":"from"}),y(x,{className:"flex items-center",children:[y(Z,{variant:"label7",color:"text-metrifox-black",children:[!g&&p,h]}),m&&y(j,{variant:"body7",color:"text-grey-500",children:[g?"\xA0":"/",m]})]})]})},u.id)}),!n&&!!t?.length&&l(x,{className:"flex justify-center mt-auto",children:l(qo,{onClick:u=>{r(),u?.stopPropagation()},className:"mt-2",children:l(j,{variant:"body8",className:"text-metrifox-blue underline",children:"Explore all priced features \u2192"})})})]})},P0=({priceOption:e})=>{const{price:t,label:n,currencySymbol:r,isPercentage:o}=as(e),s=me(t).split("."),i=s?s[0]:"0",a=s&&s.length>1?s[1]:"00";return y(x,{className:"p-2 border-b border-grey-200 last:border-0",children:[l(x,{className:"flex items-center justify-between",children:l(Z,{variant:"label7",className:"text-grey-600 mb-2",children:"Starts at"})}),y(x,{className:"flex items-end",children:[!o&&y(Ie,{children:[y(Z,{variant:"label3",className:"text-[var(--price-color,#0F0F0F)]",children:[r,i]}),y(Z,{variant:"label6",className:"mb-[5px] text-metrifox-black",children:[".",a]})]}),o&&l(Z,{variant:"label3",className:"text-[var(--price-color,#0F0F0F)]",children:t}),n&&y(j,{variant:"body4",className:"mb-[5px] text-grey-500",children:[o?"\xA0":"/",n]})]})]})},ig=({interval:e,priceOptions:t,entitlementPriceOptions:n,creditAttachmentPriceOptions:r,isPricePage:o,trialTag:s,showMoreCard:i,isFree:a,isCustom:c,showMore:u,addPriceButton:d})=>{const{shouldShowFixedPrice:f,shouldShowFreeTrial:h,shouldShowDynamicPrices:m}=Sa({selectedInterval:e,publishedOnly:o}),p=E1(e,t),g=M1(e,n),v=M1(e,r),b=g.length===1&&!p,w=v.length===1&&!p&&g.length===0,C=[...w?[]:v,...b?[]:g];return!o&&!p&&g.length===0&&!v.length&&!a&&!c?y(Ie,{children:[l(x,{className:"h-[94px] flex items-center",children:l(x,{className:"w-full bg-grey-100 border border-grey-200 rounded-2xl p-2 mb-3",children:d||l(j,{variant:"body6",children:"No price added yet"})})}),h&&l(x,{className:"h-6"})]}):y(x,{className:i?"bg-grey-100 border border-grey-200 rounded-2xl p-2 mb-3":"",children:[f&&y(x,{className:i?"":"h-[94px]",children:[a&&l(x,{className:"p-2 border-b border-grey-200 last:border-0",children:l(x,{className:"flex items-center justify-between pt-[21px] pb-4",children:l(Z,{variant:"label3",children:"Free"})})}),c&&l(x,{className:"p-2 border-b border-grey-200 last:border-0",children:l(x,{className:"flex items-center justify-between pt-[21px] pb-4",children:l(Z,{variant:"label4",children:"Custom"})})}),!p&&!a&&!c&&!b&&!w&&l(x,{className:"p-2 border-b border-grey-200 last:border-0",children:l(x,{className:"flex items-center justify-between pt-[21px] pb-4",children:l(Z,{variant:"label4",children:"No fixed price"})})}),p&&l(rg,{interval:e,priceOption:p}),b&&!p&&l(P0,{priceOption:g[0]}),w&&!p&&!b&&l(P0,{priceOption:v[0]})]}),h&&!o&&l(x,{className:"h-6",children:s}),m&&l(og,{interval:e,dynamicPrices:C,showMoreCard:i,showMore:u})]})},sg=({description:e,entitlements:t,baseEntitlementsPlanName:n,priceContent:r})=>y(x,{children:[l(Z,{variant:"label7",className:"mb-2",children:"Description"}),l(j,{variant:"body5",className:"mb-4",children:e}),r,l(D0,{entitlements:t,baseEntitlementsPlanName:n})]});function ag(e){te(function(){typeof e=="function"&&e()},[])}var lg="Expected a function",A0=0/0,cg="[object Symbol]",ug=/^\s+|\s+$/g,dg=/^[-+]0x[0-9a-f]+$/i,fg=/^0b[01]+$/i,hg=/^0o[0-7]+$/i,pg=parseInt,mg=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,gg=typeof self=="object"&&self&&self.Object===Object&&self,yg=mg||gg||Function("return this")(),vg=Object.prototype,bg=vg.toString,Cg=Math.max,wg=Math.min,Ta=function(){return yg.Date.now()};function xg(e,t,n){var r,o,s,i,a,c,u=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(lg);t=N0(t)||0,Da(n)&&(d=!!n.leading,f="maxWait"in n,s=f?Cg(N0(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h);function m(E){var R=r,P=o;return r=o=void 0,u=E,i=e.apply(P,R),i}function p(E){return u=E,a=setTimeout(b,t),d?m(E):i}function g(E){var R=E-c,P=E-u,W=t-R;return f?wg(W,s-P):W}function v(E){var R=E-c,P=E-u;return c===void 0||R>=t||R<0||f&&P>=s}function b(){var E=Ta();if(v(E))return w(E);a=setTimeout(b,g(E))}function w(E){return a=void 0,h&&r?m(E):(r=o=void 0,i)}function C(){a!==void 0&&clearTimeout(a),u=0,r=c=o=a=void 0}function L(){return a===void 0?i:w(Ta())}function k(){var E=Ta(),R=v(E);if(r=arguments,o=this,c=E,R){if(a===void 0)return p(c);if(f)return a=setTimeout(b,t),m(c)}return a===void 0&&(a=setTimeout(b,t)),i}return k.cancel=C,k.flush=L,k}function Da(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function kg(e){return!!e&&typeof e=="object"}function Lg(e){return typeof e=="symbol"||kg(e)&&bg.call(e)==cg}function N0(e){if(typeof e=="number")return e;if(Lg(e))return A0;if(Da(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Da(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(ug,"");var n=fg.test(e);return n||hg.test(e)?pg(e.slice(2),n?2:8):dg.test(e)?A0:+e}var Eg=xg,Mg=Ur(Eg);function Sg(e,t,n){var r=ue(function(s){return Mg(s,t,n)},[t,n]),o=se(r(e));return te(function(){o.current=r(e)},[e,r]),o.current}function Tg(e,t){var n=se(!1);typeof t<"u"&&!Array.isArray(t)?t=[t]:Array.isArray(t)&&t.length===0&&console.warn("Using [] as the second argument makes useDidUpdate a noop. The second argument should either be `undefined` or an array of length greater than 0."),te(function(){n.current?e():n.current=!0},t),te(function(){return function(){n.current=!1}},[])}var R0=typeof window>"u"?te:Tn;function Dg(e,t){t===void 0&&(t=!1);var n=t?R0:te,r=se(e);return n(function(){r.current=e}),r}function Pg(e){var t=Dg(e);function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];typeof t.current=="function"&&t.current.apply(t,r)}return n}var Ag=process.env.NODE_ENV!=="production",F0=function(){};if(Ag){var Ng=function(e){var t="Warning: ".concat(e);typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}};F0=function(e,t){e||Ng(t)}}function Rg(e,t,n,r,o,s){r===void 0&&(r={}),o===void 0&&(o=!0),s===void 0&&(s=!1);var i=Pg(n),a=s?R0:te;a(function(){return F0(typeof e<"u","[useGlobalObjectEventListener]: Cannot attach event handlers to undefined."),typeof e<"u"&&o?(e.addEventListener(t,i,r),function(){e.removeEventListener(t,i,r)}):function(){}},[t,r])}function Fg(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=!1),typeof window<"u"?Rg(window,"resize",e,{passive:!0},t,n):console.warn("useOnWindowResize can't attach an event listener as window is undefined.")}var V0="...",Vg=0,Jo=function(){return"__clamp_text_key__".concat(Vg++)};function $g(e){var t=e.text,n=e.ellipsis,r=n===void 0?V0:n,o=e.lines,s=o===void 0?3:o,i=e.expanded,a=i===void 0?!1:i,c=e.debounceTime,u=c===void 0?300:c,d=e.charWidth,f=d===void 0?1.2:d,h=K(function(){return{noClamp:!1,clampedText:".",key:Jo()}}),m=h[0],p=m.noClamp,g=m.clampedText,v=m.key,b=h[1],w=se(),C=se(0),L=ue(function(E){var R=E.lineHeight,P=E.originalText,W=E.expanded,_=E.ellipsis,B=E.lines,Y=E.charWidth,z=w.current;if(!z)return;if(!P||W){b({noClamp:!0,clampedText:P,key:Jo()});return}var A=R*B+1,$=0;typeof _=="string"?$=_===V0?5:Math.ceil(_.length*Y):typeof _=="number"&&($=Math.ceil(_*Y));var M=0,D=0,S=P.length;if(!z.clientHeight)return;function O(){var U,q=(U=z?.clientHeight)!==null&&U!==void 0?U:1;q<=A?M=D+1:S=D-1}for(;M<=S;){if(D=Math.floor((M+S)/2),z.innerText=P.slice(0,D),D===P.length){b({clampedText:P,noClamp:!0,key:Jo()});return}O()}var V=P.slice(0,Math.max(D-$,0)).trim()+(typeof _=="string"?_:"");z.innerText=V,b({noClamp:!1,clampedText:V,key:Jo()})},[]),k=Sg(L,u);return Fg(function(){return k({lineHeight:C.current,originalText:t,expanded:a,ellipsis:r,lines:s,charWidth:f})}),ag(function(){var E,R;if(t&&!C.current){var P=((R=(E=w.current)===null||E===void 0?void 0:E.clientHeight)!==null&&R!==void 0?R:1)+1;C.current=P,L({lineHeight:P,originalText:t,expanded:a,ellipsis:r,lines:s,charWidth:f})}}),Tg(function(){L({lineHeight:C.current,originalText:t,expanded:a,ellipsis:r,lines:s,charWidth:f})},[a,t,f,r,s]),[w,{noClamp:p,clampedText:g,key:v}]}const _g=({description:e,showDetails:t})=>{const[n,{noClamp:r,clampedText:o,key:s}]=$g({text:e,ellipsis:12.5,lines:3});return e?l(j,{variant:"body6",children:y("span",{ref:n,className:"w-full inline-block",children:[o,!r&&y(Ie,{children:["...",l(qo,{onClick:i=>{t(),i?.stopPropagation()},className:"!inline",children:l(j,{variant:"body6",className:"text-metrifox-blue border-b border-metrifox-blue",children:"See more"})})]})]},s)}):null},$0=({plan:e,interval:t,featureOrderMap:n,isPricePage:r,isCustomerPortal:o,statusTag:s,addPriceButton:i,buttonText:a,isCurrentPlan:c,planActions:u,cardAction:d,buttonAction:f})=>{const{setPlans:h}=T0(),{shouldShowDescription:m}=Sa({selectedInterval:t,publishedOnly:r}),[p,g]=K(!1),{name:v,entitlements:b,base_entitlements_plan_name:w,is_free:C,is_custom:L,custom_cta_text:k,description:E,price_options:R,entitlement_price_options:P,credit_attachment_price_options:W,credit_attachments:_,trial_duration_unit:B,trial_duration_value:Y,version_id:z,is_visible:A,is_invoiceable:$,status:M}=e,D=E1(t,[...R,...P,...W]),S=B&&Y,O=Y===1?B:`${B}s`,V=ls([...b]).filter(X=>X?.is_visible),U=e6(V,n),q=_?.filter(X=>X.included_usage);if(te(()=>{e&&h(X=>[...X,e])},[e,h]),!D&&!C&&!L&&r||!A&&r||!$&&r||!D&&M!==L1.DRAFT&&(R?.length>0||P?.length>0||W?.length>0))return null;const I=X=>l(ig,{trialTag:S&&l(jt,{background:"bg-grey-300",textColor:"text-metrifox-black",size:"small",children:l(j,{variant:"body6",children:`${Y} ${O} Free trial`})}),offering:e,interval:t,priceOptions:R,entitlementPriceOptions:P,creditAttachmentPriceOptions:W,isPricePage:r,versionId:z,showMoreCard:X,showMore:()=>g(!0),isFree:C,isCustom:L,addPriceButton:i}),F=r?"md:[width:calc((100%-48px)/3)] md:[min-width:calc((100%-48px)/3)] w-full":"relative flex-[0_0_auto] w-[330px] cursor-pointer",H=L?k:C?"Get started":S?`Start ${Y} ${O} free trial`:"Buy now",ne=r?H:a,ie=()=>{f?.()};return y(x,{className:`flex flex-col rounded-2xl border border-grey-100 text-wrap shrink-0 ${c?"bg-metrifox-primary":"bg-grey-200"} ${F}`,onClick:d,children:[y(x,{className:"flex items-center justify-between pl-4 pr-[5px] pt-[6px] pb-[2px]",children:[l(Z,{variant:"label7",className:`${c?"text-metrifox-white":"text-grey-700"}`,children:v}),y(x,{className:"flex items-center gap-x-2",children:[s," ",u]})]}),y(x,{className:`flex-grow bg-grey-50 rounded-2xl border border-grey-200 w-full p-2 pb-[40px] ${c?"bg-yellow-gradient":"bg-metrifox-white"}`,children:[m&&l(x,{className:"min-h-[51px] mt-1",children:l(_g,{description:E,showDetails:()=>g(!0)})}),I(),(r||o)&&l(nr,{className:"w-full !text-[var(--button-text,#FFFFFF)] !bg-[var(--button-color,#3D3D3D)] mt-3",onClick:ie,disabled:c,children:ne}),l(x,{className:"px-2 mt-3",children:l(D0,{entitlements:U,credits:q,baseEntitlementsPlanName:w})})]}),l(Or,{isOpen:p,onClose:()=>g(!1),title:v,size:"small",bottomContent:y(x,{className:"flex justify-end gap-x-2",children:[l(Ma,{onClick:()=>g(!1),children:r?"Cancel":"Close"}),r&&l(nr,{onClick:ie,children:ne})]}),children:l(sg,{baseEntitlementsPlanName:w,description:E,entitlements:b,priceContent:I(!0)})})]})},Og=async({product_key:e,customer_key:t})=>{const{data:n}=await gt().get(`/sdk/product_catalogues/products/published-plans?product_key=${e}&customer_key=${t}`);return n},Bg=({product_key:e,customer_key:t})=>{const[n,r]=K(null),[o,s]=K(!1),i=async()=>{if(!e){At.error("Missing product_key");return}s(!0);try{const a=await Og({product_key:e,customer_key:t});r(a?.data)}catch(a){At.error(a instanceof Error?a.message:"Failed to load product plans")}finally{s(!1)}};return te(()=>{i()},[e]),{productPlans:n,isLoading:o,refetch:i}},Ig=e=>{const t=Qp(e||[]),[n,r]=K(""),o=[...t.includes(ke.DAILY)?[ke.DAILY]:[],...t.includes(ke.WEEKLY)?[ke.WEEKLY]:[],...t.includes(ke.MONTHLY)?[ke.MONTHLY]:[],...t.includes(ke.QUARTERLY)?[ke.QUARTERLY]:[],...t.includes(ke.BIANNUALLY)?[ke.BIANNUALLY]:[],...t.includes(ke.YEARLY)?[ke.YEARLY]:[]];return te(()=>{!n&&o[0]&&r(o[0])},[o,n]),{intervals:o,selectedInterval:n,setSelectedInterval:r}},jg=({selectedInterval:e,intervals:t,setSelectedInterval:n})=>l(x,{className:"rounded-2xl p-1 flex bg-[var(--card-background-color,#F5F5F5)]",children:t.map(r=>{const o=e===r;return l(x,{className:`py-[4px] px-3 rounded-[12px] cursor-pointer ${o?"bg-[var(--active-tab-color,#3D3D3D)]":""}`,onClick:()=>n(r),children:l(j,{variant:"body4",color:o?"text-[var(--button-text,#FFFFFF)]":"text-[var(--tab-color,#A1A1AA)]",children:Tt(r)})},r)})}),Hg=({product:e,tenantDetails:t})=>{const{customerKey:n,setPlans:r}=br(),o=e?.product_key,s=t?.tenant_checkout_username,i=n6({productKey:o,checkoutUsername:s}),{productPlans:a}=Bg({product_key:o,customer_key:n}),c=ve(()=>{const p=a?.plans||[],g=new Map;return p.forEach(v=>{v.is_visible&&(!g.get(v.offering_key)||v.is_current_plan)&&g.set(v.offering_key,v)}),Array.from(g.values())},[a]),u=ve(()=>c?.findIndex(p=>p?.is_current_plan)??-1,[c]),{intervals:d,selectedInterval:f,setSelectedInterval:h}=Ig(c||[]),m=p=>{window.open(p,"_blank","noopener,noreferrer")};return te(()=>{c&&c?.length>0&&r(c)},[c,r]),!c||c?.length===0?null:l(Ie,{children:y(x,{className:"bg-grey-100 rounded-2xl p-4",children:[l(x,{className:"flex items-center justify-between",children:y(x,{className:"flex items-center gap-1",children:[l(x,{className:"p-1.5 bg-grey-200 rounded-lg",children:l(he,{name:"subtitle",size:18,color:"grey-500"})}),y(x,{className:"flex gap-x-2",children:[l(Z,{variant:"label7",className:"text-metrifox-black font-medium",children:"Plan"}),l("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"underline text-metrifox-blue",children:l(tg,{text:i,children:l(j,{variant:"body6",color:"text-metrifox-blue",className:"truncate w-[165px]",children:i})})})]})]})}),y(x,{className:"bg-metrifox-white rounded-2xl mt-2 p-4",children:[d.length>0&&l(x,{className:"flex justify-center mb-2.5",children:l(jg,{selectedInterval:f,intervals:d,setSelectedInterval:h})}),l(x,{className:"flex gap-x-2 overflow-x-auto whitespace-nowrap px-6 py-4 -mx-4 [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar-track]:bg-grey-100 [&::-webkit-scrollbar-thumb]:bg-grey-300 [&::-webkit-scrollbar-thumb]:rounded-full",children:c?.map((p,g)=>{const v=p?.is_current_plan,{featureOrderMap:b}=t6(c||[]),w=v&&e?.subscription?.status===Ue.ACTIVE?"Current plan":g>=u?"Upgrade":"Downgrade";return l($0,{plan:p,featureOrderMap:b,interval:f,buttonText:w,buttonAction:()=>m(p?.checkout_url),isCurrentPlan:v,isCustomerPortal:!0},p.id)})})]})]})})},Wg=()=>l(x,{className:"flex justify-center items-center gap-x-2 h-full",children:y(x,{className:"flex items-center gap-1",children:[l(j,{variant:"body7",color:"text-metrifox-black",children:"Powered by"}),l(T1,{height:30,width:100})]})}),Ug=({trigger:e,children:t,className:n="bg-metrifox-white rounded-[10px] shadow-md",shouldMatchWidth:r,anchorGap:o=4,anchorTo:s="bottom start",anchorOffset:i=0})=>{const a=se(null),[c,u]=K(null);Tn(()=>{a.current&&u(a.current.offsetWidth)},[]);const d=r&&c?c:"auto";return y(q9,{className:"relative",children:[l(d1,{className:"outline-none w-full cursor-pointer",ref:a,as:"span",children:e}),l(f1,{anchor:{gap:o,to:s,offset:i},className:`${n} absolute z-10 transition duration-200 ease-out data-[closed]:scale-95 data-[closed]:opacity-0`,style:{width:d},transition:!0,children:({close:f})=>typeof t=="function"?l(Ie,{children:t(f)}):l(Ie,{children:t})})]})},Zg=async e=>{const{data:t}=await gt().post("/sdk/subscriptions/schedule-cancellation",e);return t},zg=({subscriptionId:e,isOpen:t,onClose:n})=>{const[r,o]=K(!1),{customerRefetch:s}=br();return y(Or,{size:"small",title:"Cancel subscription?",isOpen:t,onClose:n,bottomContent:y(x,{className:"flex justify-end gap-x-2",children:[l(Xo,{className:"text-primary-500",onClick:n,size:"x-small",children:"Cancel"}),l(nr,{className:"!bg-metrifox-danger text-metrifox-white",onClick:async()=>{o(!0);try{const i=await Zg({id:e});At.success(i.message),o(!1),n(),s()}catch(i){At.error(i instanceof Error?i.message:"An error ocurred"),o(!1)}},size:"x-small",isLoading:r,disabled:r,children:"Confirm"})]}),showCloseButton:!1,className:"bg-metrifox-white",children:[l(Z,{variant:"label7",children:"Are you sure you want to proceed?"}),l(j,{variant:"body4",color:"text-metrifox-black",className:"mt-5",children:"This subscription is scheduled to be canceled at the end of the billing cycle"})]})},Kg=async e=>{const{data:t}=await gt().post("/sdk/subscriptions/revert-cancellation",e);return t},Yg=({subscriptionId:e,isOpen:t,onClose:n})=>{const[r,o]=K(!1),{customerRefetch:s}=br();return y(Or,{size:"small",title:"Undo cancellation?",isOpen:t,onClose:n,bottomContent:y(x,{className:"flex justify-end gap-x-2",children:[l(Xo,{className:"text-primary-500",onClick:n,size:"x-small",children:"Cancel"}),l(nr,{className:"text-metrifox-white",onClick:async()=>{o(!0);try{const i=await Kg({id:e});At.success(i.message),o(!1),n(),s()}catch(i){At.error(i instanceof Error?i.message:"An error ocurred"),o(!1)}},size:"x-small",isLoading:r,disabled:r,children:"Next"})]}),showCloseButton:!1,className:"bg-metrifox-white",children:[l(j,{variant:"body4",color:"text-metrifox-black",children:"Keep subscription active?"}),l(j,{variant:"body4",color:"text-metrifox-black",className:"mt-5",children:"The subscription would keep going and renew as usual."})]})},Gg=({subscription:e})=>{const[t,n]=K(!1),[r,o]=K(!1);return y(x,{children:[e?.ends_at?l(x,{onClick:()=>o(!0),className:"cursor-pointer",children:l(j,{variant:"body6",className:"text-metrifox-danger",children:"Undo cancellation"})}):l(x,{onClick:()=>n(!0),className:"cursor-pointer",children:l(j,{variant:"body6",className:"text-metrifox-danger",children:"Cancel subscription"})}),l(zg,{subscriptionId:e?.id,isOpen:t,onClose:()=>n(!1)}),l(Yg,{subscriptionId:e?.id,isOpen:r,onClose:()=>o(!1)})]})},qg=({subscriptionLineItems:e,handleUpdateQuantity:t,canUpdateQuantities:n})=>{const[r,o]=K(!1),s=e[0];return y(x,{children:[y(x,{className:"bg-grey-200 rounded-t-2xl px-3 pt-2.5 pb-4 mt-4 flex items-center justify-between cursor-pointer",onClick:()=>o(!r),children:[l(Z,{variant:"label8",className:"text-grey-500 font-medium",children:"Items"}),y(x,{className:"flex gap-x-2",children:[n&&l(qo,{className:"!text-metrifox-blue underline cursor-pointer",onClick:i=>{i?.stopPropagation(),t()},children:"Update items"}),l("span",{className:`transform transition-transform duration-300 ${r?"rotate-180":"rotate-0"}`,children:l(he,{name:"arrow-down",size:14,color:"grey-500"})})]})]}),l(x,{className:"bg-metrifox-white rounded-2xl p-2 -mt-2.5 space-y-2",children:r?l(Ie,{children:e?.map((i,a)=>l(x,{className:"bg-grey-50 border border-grey-200 rounded-lg p-2 flex justify-between",children:y(x,{className:"w-full flex items-center justify-between",children:[l(x,{className:"flex items-center gap-4",children:y(x,{className:"flex items-center gap-1",children:[l(Z,{variant:"label8",className:"text-grey-800 font-medium",children:Tt(i?.name)}),i?.is_addon&&l(jt,{size:"small",background:"bg-grey-300",textColor:"text-metrifox-black",children:"Add-on"})]})}),y(j,{variant:"body6",className:"text-grey-800 font-medium",children:[Kt(i?.currency_code),me(i?.unit_price||i?.total_amount)]})]})},a))}):y(x,{className:"bg-grey-100 rounded-lg p-2 flex items-center justify-between cursor-pointer",children:[y(Z,{variant:"label8",className:"text-grey-800 font-medium",children:[s?.name," ",l("span",{children:"\u2022"})," ",e.length," item(s)"]}),y(x,{className:"flex items-center gap-1",children:[y(j,{variant:"body6",className:"text-grey-800 font-medium",children:[Kt(s?.currency_code),me(s?.unit_price||s?.total_amount)]}),y(j,{variant:"body6",className:"text-metrifox-blue",children:["+ ",e.length-1," prices(s)"]})]})]})})]})},Xg=({subscription:e,tenantDetails:t})=>{const n=e?.status,{text:r,color:o}=Yp(n),{customerKey:s}=br(),i=[{label:"Current plan",value:`${e?.plan_name||"-"}`},{label:"Status",value:l(jt,{size:"small",background:o,textColor:"text-metrifox-white",children:Tt(r)||"-"})},{label:"Start date",value:vt(e?.starts_at)},...n===Ue.IN_TRIAL?[{label:"Trial end date",value:vt(e?.trial_end_date)}]:[{label:"End date",value:e?.ends_at?vt(e?.ends_at):"-"}],...n===Ue.IN_TRIAL?[{label:"Trial period",value:e?.starts_at&&e?.trial_end_date?y(Z,{variant:"label7",className:"text-grey-600",children:[vt(e?.starts_at)," -"," ",vt(e?.trial_end_date)]}):"-"}]:[],...n===Ue.ACTIVE?[{label:"Renewal date",value:e?.renews_at?vt(e?.renews_at):"-"}]:[],...n===Ue.ACTIVE?[{label:"Current billing period",value:e?.current_billing_period_start&&e?.current_billing_period_end?y(x,{children:[y(Z,{variant:"label7",className:"text-grey-600",children:[vt(e.current_billing_period_start)," -"," ",vt(e.current_billing_period_end)]}),l(jt,{size:"small",background:"bg-grey-200",textColor:"text-metrifox-black",children:"Auto-renew"})]}):"-"}]:[],...n===Ue.ACTIVE?[{label:"Next billing date",value:e?.renews_at?vt(e?.renews_at):"-"}]:[],...n===Ue.ACTIVE?[{label:"Next estimated bill",value:e?.next_billing_amount?l(x,{children:y(Z,{variant:"label7",className:"text-grey-600",children:[Kt(e.currency_code),e.next_billing_amount]})}):"-"}]:[]],a=()=>{const c=`${window.location.origin}/${t.tenant_checkout_username}/${e.offering_key}/subscriptions/${e.id}?customer=${s}`;window.open(c,"_blank","noopener,noreferrer")};return l(x,{children:y(x,{className:"bg-grey-100 rounded-2xl p-4",children:[y(x,{className:"flex items-center justify-between",children:[y(x,{className:"flex items-center gap-1",children:[l(x,{className:"p-1.5 bg-grey-200 rounded-lg",children:l(he,{name:"money",size:18,color:"grey-500"})}),l(Z,{variant:"label7",className:"text-metrifox-black font-medium",children:"Subscription"})]}),e.status!==Ue.CANCELED&&l(Ug,{trigger:l(he,{name:"more",size:20,color:"grey-500"}),anchorTo:"bottom end",className:"bg-metrifox-white rounded-md shadow-md p-4",children:l(Gg,{subscription:e})})]}),l(x,{className:"bg-grey-200 rounded-t-2xl px-3 pt-2.5 pb-4 mt-2",children:l(Z,{variant:"label8",className:"text-grey-500 font-medium",children:"Details"})}),l(x,{className:"bg-metrifox-white flex justify-between flex-wrap gap-8 rounded-2xl p-4 -mt-2.5",children:i?.map((c,u)=>y(x,{className:"",children:[l(Z,{variant:"label8",className:"text-grey-500",children:c?.label}),l(Z,{variant:"label7",className:`text-grey-600 font-medium mt-2 ${c?.value==="-"?"text-center":""}`,children:c?.value})]},u))}),e?.subscription_items?.length>0&&l(qg,{subscriptionLineItems:e?.subscription_items,handleUpdateQuantity:a,canUpdateQuantities:e?.can_update_quantities})]})})},Jg=({upcomingInvoice:e})=>{const[t,n]=K(!1),r=se(null),{invoiceDetails:o}=S0({invoiceId:e?.invoice_id});return y(x,{children:[y(x,{className:"bg-grey-100 rounded-2xl p-4 w-full flex items-center justify-between",children:[y(x,{className:"flex items-center gap-3",children:[l(Z,{variant:"label7",className:"font-medium text-metrifox-black",children:"Upcoming Invoice"}),l(x,{className:"flex items-center gap-2",children:l(jt,{background:"bg-purple-500",size:"small",children:y(Z,{variant:"label8",className:"text-metrifox-white",children:[e?.currency?.symbol,e?.amount]})})}),y(j,{variant:"body6",className:"text-metrifox-black",children:["Due"," ",new Date(e?.due_date).toLocaleString(e?.currency?.country_code,{month:"short",day:"numeric",year:"numeric"})]})]}),l(qo,{className:"!text-metrifox-blue underline cursor-pointer",onClick:()=>{n(!0)},children:"Preview invoice"})]}),t&&l(M0,{isOpen:t,onClose:()=>n(!1),contentRef:r,content:l(D1,{data:o}),modalTitle:"Invoice preview"})]})},_0=({tabs:e,activeTab:t,handleTabClick:n,count:r,className:o,tabButtonClassName:s,activeTabButtonClassName:i})=>l(x,{className:"flex justify-between",children:l(x,{className:`flex gap-x-6 items-center ${o}`,children:e.map(a=>y(Xo,{onClick:()=>n(a.key),className:`!font-normal !text-grey-500 !border-grey-300 !rounded-xl !px-3 ${s} ${t===a.key?"flex gap-3 items-center !text-metrifox-white !bg-metrifox-primary "+i:""}`,children:[l(x,{children:a.label}),t===a.key&&r&&l(x,{className:"flex items-center bg-metrifox-secondary justify-center rounded-md h-5 px-[6px]",children:l(Z,{variant:"label8",color:"text-metrifox-primary",children:Ze(r??0)})}),a.count&&l(x,{className:`flex items-center justify-center rounded-md h-5 px-[6px] ${t===a.key?"bg-metrifox-secondary":"bg-grey-100"}`,children:l(Z,{variant:"label8",color:"text-metrifox-primary",children:Ze(r??0)})})]},a.key))})}),Qg=async({walletId:e,status:t})=>{const{data:n}=await gt().get(`/sdk/credit_systems/wallets/${e}/credit-allocations`,{params:{status:t||void 0}});return n},ey=({walletId:e,status:t})=>{const[n,r]=K(null),[o,s]=K(null),[i,a]=K(!1),c=async()=>{if(!e)return s("Missing walletId");a(!0);try{const u=await Qg({walletId:e,status:t});r(u?.data),s(null)}catch(u){const d=u,f=d?.response?.data?.data?.error||d?.message;s(f||"Failed to load credit allocations")}finally{a(!1)}};return te(()=>{c()},[e,t]),{creditAllocations:n,error:o,isLoading:i,refetch:c}},ty=({consumed:e,total:t,className:n=""})=>{const r=t>0?e/t*100:0;return y(x,{className:`w-full ${n}`,children:[y(x,{className:"flex justify-between text-xs text-grey-600 mb-1",children:[l("span",{children:e.toFixed(0)}),l("span",{children:"/"}),l("span",{children:t.toFixed(0)})]}),l(x,{className:"w-full bg-grey-200 rounded-full h-2 overflow-hidden",children:l(x,{className:"bg-blue-500 h-2 rounded-full transition-all duration-300 ease-in-out",style:{width:`${r}%`}})})]})},ny=async({allocationId:e})=>{const{data:t}=await gt().get(`/sdk/credit_systems/wallets/${e}/credit-transaction`);return t},ry=({allocationId:e})=>{const[t,n]=K(null),[r,o]=K(null),[s,i]=K(!1),a=async()=>{if(!e)return o("Missing AllocationId");i(!0);try{const c=await ny({allocationId:e});n(c?.data),o(null)}catch(c){const u=c,d=u?.response?.data?.data?.error||u?.message;o(d||"Failed to load credit allocation")}finally{i(!1)}};return te(()=>{a()},[e]),{creditTransactions:t,error:r,isLoading:s,refetch:a}},oy=({allocationId:e,isOpen:t,onClose:n})=>{const{creditTransactions:r,isLoading:o}=ry({allocationId:e}),s=r?.allocation_type,i=S1(s||""),a=(r?.transactions||[]).map(c=>({date:Ao(c.created_at),event:c.event_name||"-",quantity:c.quantity,amount:-Math.abs(c.amount)}));return l(Or,{size:"large",title:i,isOpen:t,onClose:()=>n(),className:"bg-metrifox-white",children:l(Br,{columns:[{key:"date",header:"Date",render:c=>l(j,{variant:"body6",className:"text-md",children:c.date})},{key:"event",header:"Event",render:c=>l(j,{variant:"body6",className:"text-lg",children:c.event})},{key:"quantity",header:"Quantity",render:c=>l(j,{variant:"body6",className:"text-lg",children:c.quantity})},{key:"amount",header:"Amount",render:c=>l(j,{variant:"body6",className:"text-lg text-[#D12C2C]",children:me(c.amount)})}],data:a,isLoading:o,emptyState:y(x,{className:"flex flex-col items-center justify-center gap-3 py-12",children:[l(he,{name:"wallet-is-empty",size:84,color:"grey-400"}),l(Z,{variant:"label7",color:"text-grey-500",children:"No transactions found"})]})})})},iy=({tenantDetails:e,subscription:t,wallets:n})=>{const[r,o]=K(0),[s,i]=K(""),[a,c]=K(!1),[u,d]=K(""),[f,h]=K("active"),m=k=>{h(k)},p=[{key:"active",label:"Active"},{key:"expired",label:"Expired"},{key:"overage",label:"Overage"}],{creditAllocations:g,isLoading:v}=ey({walletId:s,status:f}),b=g?.map(k=>i6(k));te(()=>{n&&n.length>0&&!s&&i(n?.[0]?.id)},[n,s]);const w=[{header:"Credited date",render:k=>y(x,{className:"flex flex-col",children:[l(j,{variant:"body6",className:"text-grey-700 font-medium",children:k.creditedDate}),k.orderId&&k.orderNumber&&l(j,{variant:"body6",className:"underline",children:k.orderNumber}),k.invoiceId&&l(j,{variant:"body6",className:"underline",children:k.invoiceId})]})},{key:"source",header:"Source"},{header:"Amount",render:k=>l(j,{variant:"body6",color:"text-grey-700",children:me(k.amount)})},{header:"Balance",render:k=>y(x,{className:"space-y-2",children:[y(j,{variant:"body6",className:"text-grey-700 font-medium",children:[k.balance," ",k.source==="Overage"?"":"available"]}),l(ty,{consumed:k.consumed,total:k.amount})]})},{header:"Valid until",render:k=>l(j,{variant:"body6",color:"text-grey-700",children:k.validUntil?new Date(k.validUntil).toLocaleDateString():"No expiration"})}],C=k=>{const E=`${window.location.origin}/${e.tenant_checkout_username}/checkout/${t.offering_key}?customer=${e.customer_key}&credit=${k}`;window.open(E,"_blank","noopener,noreferrer")};if(!n||n.length===0)return null;const L=k=>{c(!0),d(k.id)};return y(x,{className:"bg-grey-100 rounded-2xl p-4",children:[y(x,{className:"flex items-center gap-1",children:[l(x,{className:"p-1.5 bg-grey-200 rounded-lg",children:l(he,{name:"card-receive",size:16,color:"grey-500"})}),l(Z,{variant:"label7",className:"text-metrifox-black font-medium",children:"Wallet balance"})]}),l(x,{className:"bg-metrifox-white rounded-2xl p-4 mt-2",children:n.length>1?y(To,{defaultIndex:r,onChange:o,children:[l(Do,{className:"w-max bg-grey-100 border border-neutral-200 text-grey-500 px-1.5 py-1 rounded-2xl",children:n.map(k=>l(vr,{onClick:()=>i(k.id),className:"w-max data-[selected]:bg-metrifox-primary data-[selected]:border data-[selected]:border-grey-200 outline-none data-[selected]:text-metrifox-white rounded-xl px-8 py-2",children:l(j,{variant:"body6",children:k.name})},k.id))}),l(Po,{children:n.map(k=>y(Wn,{children:[l(x,{className:"bg-grey-100 rounded-lg p-6 mt-4",children:y(x,{className:"w-full flex items-center justify-between gap-1",children:[y(x,{className:"text-center",children:[l(x,{className:"flex items-center justify-center gap-1",children:l(Z,{variant:"label8",className:"text-grey-500 font-medium",children:"Total available balance"})}),y(x,{className:"flex items-baseline justify-center gap-1",children:[l(Z,{variant:"label6",className:"text-neutral-800 font-medium",children:me(k.balance)}),l(Z,{variant:"label8",className:"text-grey-500 mt-3.5",children:k.name})]})]}),l(nr,{type:"button",size:"small",onClick:()=>C(k.credit_key),className:"text-metrifox-white",children:"Top up"})]})}),l(_0,{tabs:p,activeTab:f,handleTabClick:m,count:v?0:g?.length,className:"my-2"}),l(Br,{columns:w,data:b,onRowClick:L,isLoading:v,emptyState:y(x,{className:"flex flex-col items-center justify-center gap-3 py-12",children:[l(he,{name:"wallet-is-empty",size:84,color:"grey-400"}),l(Z,{variant:"label7",color:"text-grey-500",children:f==="active"?"No active credit allocations found":f==="expired"?"No expired credit allocations found":"No overage credit allocations found"})]}),emptyStateClassName:"!h-auto"})]},k.id))})]}):n[0]&&y(Ie,{children:[l(x,{className:"bg-grey-100 rounded-lg p-6 mt-4",children:y(x,{className:"w-full flex items-center justify-between gap-1",children:[y(x,{className:"text-center",children:[l(x,{className:"flex items-center justify-center gap-1",children:l(Z,{variant:"label8",className:"text-grey-500 font-medium",children:"Total available balance"})}),y(x,{className:"flex items-baseline justify-center gap-1",children:[l(Z,{variant:"label6",className:"text-neutral-800 font-medium",children:me(n[0].balance)}),l(Z,{variant:"label8",className:"text-grey-500 mt-3.5",children:n[0].name})]})]}),l(nr,{type:"button",size:"small",onClick:()=>n[0]?.id&&C(n[0].credit_key),className:"text-metrifox-white",children:"Top up"})]})}),l(_0,{tabs:p,activeTab:f,handleTabClick:m,count:v?0:g?.length,className:"my-2"}),l(Br,{columns:w,data:b,onRowClick:L,isLoading:v,emptyState:y(x,{className:"flex flex-col items-center justify-center gap-3 py-12",children:[l(he,{name:"wallet-is-empty",size:84,color:"grey-400"}),l(Z,{variant:"label7",color:"text-grey-500",children:f==="active"?"No active credit allocations found":f==="expired"?"No expired credit allocations found":"No overage credit allocations found"})]}),emptyStateClassName:"!h-auto"})]})}),l(oy,{allocationId:u,isOpen:a,onClose:()=>{c(!1),d("")}})]})},sy=[{key:"upcomingInvoice"},{key:"subscription"},{key:"creditBalance"},{key:"entitlementUsage"},{key:"paymentOverview"},{key:"billingHistory"},{key:"plan"}],ay={upcomingInvoice:"upcoming-invoice",subscription:"subscription",creditBalance:"credit-balance",entitlementUsage:"entitlement-usage",paymentOverview:"payment-overview",billingHistory:"billing-history",plan:"plan"},O0=({product:e,tenantDetails:t,sectionsConfig:n,customerWallets:r})=>{const o=n||sy,s={upcomingInvoice:()=>e?.subscription?.upcoming_invoice?l(Jg,{upcomingInvoice:e.subscription.upcoming_invoice}):null,subscription:()=>e?.subscription?l(Xg,{subscription:e.subscription,tenantDetails:t}):null,creditBalance:()=>r&&r.length>0?l(iy,{subscription:e.subscription,tenantDetails:t,wallets:r}):null,entitlementUsage:()=>e?.subscription?l(J8,{subscriptionId:e?.subscription?.id}):null,paymentOverview:()=>l(Q8,{paymentMethod:e.payment_method,tenantDetails:t}),billingHistory:()=>e?.subscription?.id?l(Z8,{subscriptionId:e.subscription?.id}):null,plan:()=>e?.product_key?l(Hg,{product:e,tenantDetails:t}):null};return y(x,{className:"space-y-4",children:[o.filter(i=>!i.hidden).map(i=>{const a=ay[i.key]??i.key;if(i.component)return l("section",{id:a,className:"space-y-4",children:l(i.component,{product:e,tenantDetails:t,...i.props})},i.key);const c=s[i.key],u=c?c(i.props):null;return u?l("section",{id:a,children:u},i.key):null}),l(Wg,{})," "]})},ly=({customerKey:e,sectionsConfig:t})=>{const[n,r]=K(0),{setCustomerKey:o,setCustomerRefetch:s}=br(),{customerDetails:i,error:a,refetch:c,isLoading:u}=Dp({customerKey:e}),{customerWallets:d}=Ap({customerKey:e});if(te(()=>{o(e),s(c)},[]),a)return l(x,{className:"max-w-[60rem] mx-auto py-6 px-4",children:y("div",{className:"bg-red-50 p-4 rounded-lg text-red-700",children:["Error loading customer details: ",a]})});if(u||!i)return l(x,{className:"max-w-[60rem] mx-auto py-6 px-4",children:y("div",{className:"animate-pulse space-y-4",children:[l("div",{className:"h-12 bg-gray-200 rounded-lg"}),l("div",{className:"h-16 bg-gray-200 rounded-lg"}),[1,2,3,4,5].map(p=>l("div",{className:"h-48 bg-gray-200 rounded-lg"},p))]})});const{subscriptions:f,...h}=i||{},m=f||[];return l(h3,{children:l(x,{className:"max-w-[60rem] mx-auto py-6 px-4 space-y-4",children:m&&m.length>1?y(To,{defaultIndex:n,onChange:p=>r(p),children:[l(Do,{className:"w-max bg-grey-100 border border-grey-200 text-grey-500 px-1.5 py-1 mb-4 rounded-2xl",children:m.map(p=>l(vr,{className:"w-max data-[selected]:bg-metrifox-primary data-[selected]:border data-[selected]:border-grey-200 outline-none data-[selected]:text-metrifox-white rounded-xl px-8 py-2",children:l(j,{variant:"body6",children:p.product_name})},p.product_key))}),l(Po,{children:m.map(p=>l(Wn,{children:l(O0,{product:p,tenantDetails:h,sectionsConfig:t,customerWallets:d})},p.product_key))})]}):l(Ie,{children:m.map(p=>l(O0,{product:p,tenantDetails:h,sectionsConfig:t,customerWallets:d},p.product_key))})})})};export{ly as CustomerPortal,$0 as PriceCard,Bf as metrifoxInit};
|